diff --git a/README.md b/README.md index f47d25f..9f21e71 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ -# Oakestra-Frontend +# Oakestra-Dashboard -You can find a detailed description [here](docs/README.md) +You can find a detailed description [here](https://www.oakestra.io/docs/) -This is the fist implementation of a frontend for the Oakestra framework. -The Oakestra frontend sends API calls to the System-Manager and displays the results. +The Dashboard is a sophisticated web-based user interface for the Oakestra system. It is designed to provide +users with a comprehensive set of tools to deploy applications to a Oakestra cluster, +effectively manage cluster resources, and troubleshoot any issues that may arise. ## Development server +First download the files and then run `npm i` to install all necessary packages + Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. ## Code scaffolding @@ -19,7 +22,15 @@ Run `ng build` to build the project. The build artifacts will be stored in the ` ## Run -Export system manager url: `export SYSTEM_MANAGER=` +Export system manager url: `echo "API_ADDRESS=:10000" > .env` Run `docker-compose up --build` to start the Website with docker compose. This starts the website on the port 8888 which then accesses the Oakestra System Manager on the configured IP address. + +## NGX Theme + +This Dashboard was developed with the help of the [ngx-admin template](https://github.com/akveo/ngx-admin). + +Besides the other components, there is also a @core and a @theme folder, which contains important +components and services needed for the NXG theme. In general, however, no components of the +Oakestra Dashboard are contained here. diff --git a/angular.json b/angular.json index 9734cea..2f1cfef 100644 --- a/angular.json +++ b/angular.json @@ -32,11 +32,10 @@ } ], "styles": [ + "node_modules/@nebular/theme/styles/prebuilt/default.css", + "src/app/@theme/styles/styles.scss", "src/styles.scss", - "src/theme.scss", - "node_modules/shepherd.js/dist/css/shepherd.css", - "node_modules/leaflet/dist/leaflet.css", - "node_modules/leaflet-routing-machine/dist/leaflet-routing-machine.css" + "node_modules/leaflet/dist/leaflet.css" ], "scripts": ["src/assets/js/graph.js", "src/assets/js/map.js"] }, @@ -46,7 +45,7 @@ { "type": "initial", "maximumWarning": "500kb", - "maximumError": "1mb" + "maximumError": "5mb" }, { "type": "anyComponentStyle", @@ -99,7 +98,9 @@ "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "assets": ["src/favicon.ico", "src/assets"], - "styles": ["src/styles.css"], + "styles": ["src/styles.css", + "src/app/@theme/styles/styles.scss" + ], "scripts": [] } }, diff --git a/dist/oakestra-dashboard/322.5c3e348e5ae9146e.js b/dist/oakestra-dashboard/322.5c3e348e5ae9146e.js new file mode 100644 index 0000000..51894f9 --- /dev/null +++ b/dist/oakestra-dashboard/322.5c3e348e5ae9146e.js @@ -0,0 +1 @@ +(self.webpackChunkoakestra_dashboard=self.webpackChunkoakestra_dashboard||[]).push([[322],{6322:(td,Bs,D)=>{"use strict";D.r(Bs),D.d(Bs,{ControlModule:()=>Ep});var Y=D(6895),K=D(8937),k=D(4006),vt=D(529),r=D(4650),q=D(4654),wi=D(5017),Ft=D(3238);const kt=[[["caption"]],[["colgroup"],["col"]]],ue=["caption","colgroup, col"];let Xi=(()=>{class i extends q.zC{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275cmp=r.Xpm({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(e,n){2&e&&r.ekj("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[r._Bn([{provide:q.zC,useExisting:i},{provide:q.pN,useExisting:i},{provide:q.nl,useClass:q.oF},{provide:wi.k,useClass:wi.yy},{provide:q.pF,useValue:null}]),r.qOj],ngContentSelectors:ue,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(r.F$t(kt),r.Hsn(0),r.Hsn(1,1),r.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[q.T$,q.FT,q.$E,q.bH],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),i})(),Ki=(()=>{class i extends q.O_{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275dir=r.lG2({type:i,selectors:[["","matCellDef",""]],features:[r._Bn([{provide:q.O_,useExisting:i}]),r.qOj]}),i})(),Ci=(()=>{class i extends q.D5{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275dir=r.lG2({type:i,selectors:[["","matHeaderCellDef",""]],features:[r._Bn([{provide:q.D5,useExisting:i}]),r.qOj]}),i})(),oi=(()=>{class i extends q.fo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275dir=r.lG2({type:i,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[r._Bn([{provide:q.fo,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),r.qOj]}),i})(),Be=(()=>{class i extends q.Af{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275dir=r.lG2({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[r.qOj]}),i})(),Mi=(()=>{class i extends q.hD{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275dir=r.lG2({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[r.qOj]}),i})(),tn=(()=>{class i extends q.s${}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275dir=r.lG2({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[r._Bn([{provide:q.s$,useExisting:i}]),r.qOj]}),i})(),en=(()=>{class i extends q.Sq{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275dir=r.lG2({type:i,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[r._Bn([{provide:q.Sq,useExisting:i}]),r.qOj]}),i})(),Rt=(()=>{class i extends q.xN{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275cmp=r.Xpm({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[r._Bn([{provide:q.xN,useExisting:i}]),r.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&r.GkF(0,0)},dependencies:[q.Kb],encapsulation:2}),i})(),Dn=(()=>{class i extends q._J{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275cmp=r.Xpm({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[r._Bn([{provide:q._J,useExisting:i}]),r.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&r.GkF(0,0)},dependencies:[q.Kb],encapsulation:2}),i})(),Ti=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=r.oAB({type:i}),i.\u0275inj=r.cJS({imports:[Ft.BQ,q.HT,Ft.BQ]}),i})();var W=D(9653),qt=D(493),It=D(1281);const St=["determinateSpinner"];function ft(i,t){if(1&i&&(r.O4$(),r.TgZ(0,"svg",11),r._UZ(1,"circle",12),r.qZA()),2&i){const e=r.oxw();r.uIk("viewBox",e._viewBox()),r.xp6(1),r.Udp("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),r.uIk("r",e._circleRadius())}}const at=(0,Ft.pj)(class{constructor(i){this._elementRef=i}},"primary"),xe=new r.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Oe(){return{diameter:Zn}}}),Zn=100;let zn=(()=>{class i extends at{constructor(e,n,o){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=Zn,this._noopAnimations="NoopAnimations"===n&&!!o&&!o._forceAnimations,o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,(0,It.su)(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=(0,It.su)(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=(0,It.su)(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(r.SBq),r.Y36(r.QbO,8),r.Y36(xe))},i.\u0275cmp=r.Xpm({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(1&e&&r.Gf(St,5),2&e){let o;r.iGM(o=r.CRH())&&(n._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(e,n){2&e&&(r.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),r.Udp("width",n.diameter,"px")("height",n.diameter,"px"),r.ekj("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===n.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[r.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(e,n){if(1&e&&(r.YNc(0,ft,2,8,"ng-template",null,0,r.W1O),r.TgZ(2,"div",1,2),r.O4$(),r.TgZ(4,"svg",3),r._UZ(5,"circle",4),r.qZA()(),r.kcU(),r.TgZ(6,"div",5)(7,"div",6)(8,"div",7),r.GkF(9,8),r.qZA(),r.TgZ(10,"div",9),r.GkF(11,8),r.qZA(),r.TgZ(12,"div",10),r.GkF(13,8),r.qZA()()()),2&e){const o=r.MAs(1);r.xp6(4),r.uIk("viewBox",n._viewBox()),r.xp6(1),r.Udp("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),r.uIk("r",n._circleRadius()),r.xp6(4),r.Q6J("ngTemplateOutlet",o),r.xp6(2),r.Q6J("ngTemplateOutlet",o),r.xp6(2),r.Q6J("ngTemplateOutlet",o)}},dependencies:[Y.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),En=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=r.oAB({type:i}),i.\u0275inj=r.cJS({imports:[Y.ez,Ft.BQ]}),i})();D(2687);let on=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=r.oAB({type:i}),i.\u0275inj=r.cJS({}),i})(),Ys=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=r.oAB({type:i}),i.\u0275inj=r.cJS({imports:[on,Ft.BQ,Ft.si,Y.ez,on,Ft.BQ]}),i})();var x=D(4535),Js=D(4254),nt=D(1324),Gs=D(6366),Kt=D(7234),$s=D(3782),Jt=D(5122),Pi=D(4389),gr=D(6405);let ki=(()=>{class i{constructor(e,n){this.userService=e,this.store=n,this.menuItems=[{title:"Application Dashboard",icon:"home-outline",link:"/control",home:!0},{title:"Service Dashboard",icon:"activity",link:"/control/services"},{title:"Infrastructure Dashboard",icon:"monitor",link:"/control/infrastructure",hidden:!this.userService.hasRole(Jt.u.ADMIN)&&!this.userService.hasRole(Jt.u.INF_Provider)},{title:"MANAGEMENT",group:!0},{title:"Users",icon:"person",link:"/control/users",hidden:!this.userService.hasRole(Jt.u.ADMIN)&&!this.userService.hasRole(Jt.u.ORGANIZATION_ADMIN)},{title:"Organisations",icon:"people",link:"/control/organization",hidden:!this.userService.hasRole(Jt.u.ADMIN)},{title:"Mail Service",icon:"email",link:"/control/settings",hidden:!this.userService.hasRole(Jt.u.ADMIN)},{title:"GENERAL",group:!0},{title:"FAQ",icon:"question-mark-circle",link:"/control/faq"},{title:"Contact",icon:"message-circle",link:"/control/help"}]}ngOnInit(){this.store.dispatch((0,nt.PR)({name:this.userService.getUsername()})),this.userService.hasRole(Jt.u.ADMIN)&&this.store.dispatch((0,nt.Xu)())}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(Pi.K),r.Y36(W.yh))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-navbar"]],decls:3,vars:1,consts:[[3,"items"]],template:function(e,n){1&e&&(r.TgZ(0,"ngx-one-column-layout"),r._UZ(1,"nb-menu",0)(2,"router-outlet"),r.qZA()),2&e&&(r.xp6(1),r.Q6J("items",n.menuItems))},dependencies:[K.lC,x.mBz,gr.s]}),i})();var Ai=D(8505),Qs=D(5698),Si=D(9300),ri=D(7206),ai=D(5125),xt=(()=>{return(i=xt||(xt={})).UPDATE="Update",i.ADD="Add",i.DELETE="Delete",i.CANCEL="Cancel",xt;var i})(),Ue=D(4362),fe=D(7775),rn=D(4004);let _r=(()=>{class i{static download(e){const n={element:{dynamicDownload:null}},o={microservices:[Object.assign({},this.cleanService(e))]};console.log(e);const a=e.microservice_name+".json";n.element.dynamicDownload||(n.element.dynamicDownload=document.createElement("a"));const c=n.element.dynamicDownload,d=a.indexOf(".json")>-1?"text/json":"text/plain";c.setAttribute("href",`data:${d};charset=utf-8,${encodeURIComponent(JSON.stringify(o))}`),c.setAttribute("download",a);const u=new MouseEvent("click");c.dispatchEvent(u)}static cleanService(e){var n,o,a,c,d,u,p,g,_,v,y,w,M,T,A,O,E,z,Z,R,N,U;const V={microservice_name:null!==(n=e.microservice_name)&&void 0!==n?n:null,microservice_namespace:null!==(o=e.microservice_namespace)&&void 0!==o?o:null,virtualization:null!==(a=e.virtualization)&&void 0!==a?a:null,description:null!==(c=e.description)&&void 0!==c?c:null,cmd:null!==(d=e.cmd)&&void 0!==d?d:null,memory:null!==(u=e.memory)&&void 0!==u?u:null,vcpus:null!==(p=e.vcpus)&&void 0!==p?p:null,vgpus:null!==(g=e.vgpus)&&void 0!==g?g:null,vtpus:null!==(_=e.vtpus)&&void 0!==_?_:null,bandwidth_in:null!==(v=e.bandwidth_in)&&void 0!==v?v:null,bandwidth_out:null!==(y=e.bandwidth_out)&&void 0!==y?y:null,storage:null!==(w=e.storage)&&void 0!==w?w:null,code:null!==(M=e.code)&&void 0!==M?M:null,state:null!==(T=e.state)&&void 0!==T?T:null,port:null!==(A=e.port)&&void 0!==A?A:null,addresses:null!==(O=e.addresses)&&void 0!==O?O:null,added_files:null!==(E=e.added_files)&&void 0!==E?E:null,constraints:null!==(z=e.constraints)&&void 0!==z?z:null,status:null!==(Z=e.status)&&void 0!==Z?Z:null,connectivity:null!==(R=e.connectivity)&&void 0!==R?R:null,args:null!==(N=e.args)&&void 0!==N?N:null,environment:null!==(U=e.environment)&&void 0!==U?U:null},et={};for(const[it,rt]of Object.entries(V))null!==rt&&(et[it]=rt);return et}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=r.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function br(i,t){1&i&&(r.TgZ(0,"div",11),r._UZ(1,"mat-spinner",12),r.qZA()),2&i&&(r.xp6(1),r.Q6J("diameter",30))}function Nn(i,t){1&i&&(r.TgZ(0,"div",13),r._uU(1," No instances of this service. "),r.qZA())}function vr(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"nb-list",14)(1,"nb-list-item")(2,"div",15)(3,"p"),r._uU(4),r.qZA()(),r.TgZ(5,"div",16)(6,"p",17),r._uU(7),r.qZA()(),r.TgZ(8,"div",18)(9,"button",19),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.deleteInstance(c.service,a))}),r._UZ(10,"nb-icon",20),r.qZA(),r.TgZ(11,"button",21),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.routeToInstanceDetail(a))}),r._UZ(12,"nb-icon",22),r.qZA()()()()}if(2&i){const e=t.$implicit;r.xp6(4),r.hij("Instance ",e.instance_number,""),r.xp6(3),r.Oqu(e.status)}}let yr=(()=>{class i{constructor(e,n,o,a,c){this.router=e,this.api=n,this.dialog=o,this.store=a,this.nbMenuService=c,this.isLoading=!1,this.menuItems=[{title:"Edit",icon:"edit-2-outline"},{title:"Delete",icon:"trash-2"},{title:"Deploy",icon:"paper-plane-outline"},{title:"Download Config",icon:"download-outline"}]}ngOnInit(){this.menuTag=`action-menu${this.service._id.$oid}`,this.nbMenuService.onItemClick().pipe((0,Si.h)(({tag:e})=>e===this.menuTag),(0,rn.U)(({item:{title:e}})=>e)).subscribe(e=>{var n;switch(e){case"Edit":this.router.navigate(["control/deploy",null===(n=this.service._id)||void 0===n?void 0:n.$oid]);break;case"Delete":this.deleteService(this.service);break;case"Deploy":this.deployService(this.service);break;case"Download Config":this.downloadConfig(this.service)}})}deleteService(e){console.log("Delete"),console.log(e),this.store.dispatch((0,nt.wo)({service:e}))}deleteInstance(e,n){this.api.deleteInstance(e,n).subscribe(),this.store.dispatch((0,nt.U2)({appId:this.appId}))}routeToInstanceDetail(e){var n;console.log("Go to instance Detail"),console.log(e),this.router.navigate(["control/services",null===(n=this.service._id)||void 0===n?void 0:n.$oid,e.instance_number])}deployService(e){console.log("Deploy"),this.isLoading=!0,this.api.deployService(e).pipe((0,Ai.b)(()=>{""!==this.appId&&setTimeout(()=>{console.log("Fertig"),this.isLoading=!1,this.store.dispatch((0,nt.U2)({appId:this.appId}))},5e3)})).subscribe()}downloadConfig(e){_r.download(e)}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(K.F0),r.Y36(fe.s),r.Y36(x.Gln),r.Y36(W.yh),r.Y36(x.kkI))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-service-item"]],inputs:{service:"service",appId:"appId"},decls:14,vars:6,consts:[[1,"service"],[1,"disable_ripple"],[1,"w3-col","s4","l5","m5","service-name"],[1,"w3-col","s4","l6","m6","w3-right","statusField",3,"click"],[1,"statusField"],["class","spinner",4,"ngIf"],[1,"w3-col","s1","l1","m1","w3-right","actions"],["nbButton","","ghost","","type","button",3,"nbContextMenu","nbContextMenuTag"],["icon","more-vertical-outline"],["class","noInstance",4,"ngIf"],["class","w3-row instance",4,"ngFor","ngForOf"],[1,"spinner"],[3,"diameter"],[1,"noInstance"],[1,"w3-row","instance"],[1,"w3-col","s5","l5","m5"],[1,"w3-col","l7","m7","s7","statusField"],[1,"statusText"],[1,"w3-col","l1","m1","s1","w3-right","instance-buttons"],["nbTooltip","Delete Instance","nbButton","","ghost","","type","button",3,"click"],["icon","trash-2"],["nbTooltip","View Instance Details","nbButton","","ghost","","type","button",3,"click"],["icon","arrowhead-right-outline"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-accordion",0)(1,"nb-accordion-item")(2,"nb-accordion-item-header",1)(3,"p",2),r._uU(4),r.qZA(),r.TgZ(5,"div",3),r.NdJ("click",function(a){return a.stopPropagation()}),r.TgZ(6,"div",4),r.YNc(7,br,2,1,"div",5),r.qZA()(),r.TgZ(8,"div",6)(9,"button",7),r._UZ(10,"nb-icon",8),r.qZA()()(),r.TgZ(11,"nb-accordion-item-body"),r.YNc(12,Nn,2,0,"div",9),r.YNc(13,vr,13,2,"nb-list",10),r.qZA()()()),2&e&&(r.xp6(4),r.hij(" ",n.service.microservice_name," "),r.xp6(3),r.Q6J("ngIf",n.isLoading),r.xp6(2),r.Q6J("nbContextMenu",n.menuItems)("nbContextMenuTag",n.menuTag),r.xp6(3),r.Q6J("ngIf",0===(null==n.service.instance_list?null:n.service.instance_list.length)||!n.service.instance_list),r.xp6(1),r.Q6J("ngForOf",n.service.instance_list))},dependencies:[Y.sg,Y.O5,zn,x.DPz,x.zP_,x.qBV,x.fMN,x.jNv,x.qCO,x.SaG,x.YZd,x.AvE,x.SrF],styles:[".service[_ngcontent-%COMP%]{margin-bottom:20px}.service[_ngcontent-%COMP%] nb-accordion-item-header[_ngcontent-%COMP%]{padding:0}.service[_ngcontent-%COMP%] .service-name[_ngcontent-%COMP%], .service[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 0 15px}.service[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{padding-right:90px}.statusField[_ngcontent-%COMP%]{cursor:pointer;align-items:center;display:inline-flex}.statusField[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{align-items:center}.noInstance[_ngcontent-%COMP%]{padding-top:10px;text-align:center;font-size:large}.instance-buttons[_ngcontent-%COMP%]{display:flex}"]}),i})();function xr(i,t){if(1&i&&(r.TgZ(0,"nb-option",5),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.Q6J("value",e),r.xp6(1),r.hij(" ",e.application_name," ")}}function wr(i,t){if(1&i&&r._UZ(0,"app-service-item",14),2&i){const e=t.$implicit,n=r.oxw(3);r.Q6J("service",e)("appId",n.appId)}}function pe(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div",8),r.YNc(1,wr,1,2,"app-service-item",9),r.ALo(2,"async"),r._UZ(3,"br"),r.TgZ(4,"div")(5,"button",10),r._UZ(6,"nb-icon",11),r._uU(7," Create New Service "),r.qZA(),r.TgZ(8,"button",12),r.NdJ("click",function(){r.CHM(e);const o=r.oxw(2);return r.KtG(o.deployAllServices())}),r._UZ(9,"nb-icon",13),r._uU(10," Deploy All "),r.qZA()()()}if(2&i){const e=r.oxw(2);r.xp6(1),r.Q6J("ngForOf",r.lcZ(2,1,e.services$))}}function H(i,t){1&i&&(r.TgZ(0,"div",15)(1,"p"),r._uU(2,"No Service in this application."),r.qZA(),r._UZ(3,"br"),r.TgZ(4,"div",16)(5,"button",17),r._UZ(6,"nb-icon",11),r._uU(7," Create new service "),r.qZA()()())}function Xs(i,t){if(1&i&&(r.TgZ(0,"div"),r.YNc(1,pe,11,3,"div",6),r.ALo(2,"async"),r.YNc(3,H,8,0,"div",7),r.ALo(4,"async"),r.qZA()),2&i){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",r.lcZ(2,2,e.services$).length>0),r.xp6(2),r.Q6J("ngIf",0===r.lcZ(4,4,e.services$).length)}}let Ks=(()=>{class i{constructor(e,n,o,a,c){this.router=e,this.api=n,this.dialog=o,this.store=a,this.nbMenuService=c,this.DialogAction=xt,this.apps$=this.store.pipe((0,W.Ys)(ri.A)),this.currentApp$=this.store.pipe((0,W.Ys)(ri.R)),this.services$=this.store.pipe((0,W.Ys)(ai.z)),this.appId="",this.isLoading=!1,this.menuItems=[{title:"Edit",icon:"edit-2-outline"},{title:"Delete",icon:"trash-2"},{title:"Deploy",icon:"paper-plane-outline"},{title:"Download Config",icon:"download-outline"}]}ngOnInit(){this.store.select(Ue.H).pipe((0,Si.h)(e=>!!e),(0,Ai.b)(e=>this.store.dispatch((0,nt.i6)({id:e._id.$oid})))).subscribe(),this.store.select(ri.A).pipe((0,Si.h)(e=>e.length>0),(0,Ai.b)(e=>{this.store.dispatch((0,nt.zl)({application:e[0]})),this.selectedItem=e[0]})).subscribe()}setCurrentApplication(){this.store.dispatch((0,nt.zl)({application:this.selectedItem}))}deployService(e){this.isLoading=!0,this.api.deployService(e).pipe((0,Ai.b)(()=>{""!==this.appId&&setTimeout(()=>{this.isLoading=!1,this.store.dispatch((0,nt.U2)({appId:this.appId}))},5e3)})).subscribe()}deployAllServices(){this.services$.pipe((0,Qs.q)(1)).subscribe(e=>{e.forEach(n=>{this.deployService(n)})})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(K.F0),r.Y36(fe.s),r.Y36(x.Gln),r.Y36(W.yh),r.Y36(x.kkI))},i.\u0275cmp=r.Xpm({type:i,selectors:[["dev-home"]],inputs:{userID:"userID"},decls:17,vars:7,consts:[[1,"service-header"],[1,"app-select"],[3,"selected","selectedChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["class","servicesList",4,"ngIf"],["class","content",4,"ngIf"],[1,"servicesList"],[3,"service","appId",4,"ngFor","ngForOf"],["id","createService","nbButton","","routerLink","/control/deploy","color","primary"],["icon","plus"],["nbButton","","type","button","color","primary",3,"click"],["icon","paper-plane-outline"],[3,"service","appId"],[1,"content"],[1,"alignEnd"],["id","createServiceEmpty","nbButton","","routerLink","/control/deploy","color","primary"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"div",0)(3,"h1"),r._uU(4,"Services"),r.qZA(),r.TgZ(5,"div",1)(6,"h2"),r._uU(7,"Application: \xa0"),r.qZA(),r.TgZ(8,"nb-select",2),r.NdJ("selectedChange",function(a){return n.selectedItem=a})("selectedChange",function(){return n.setCurrentApplication()}),r.YNc(9,xr,2,2,"nb-option",3),r.ALo(10,"async"),r.qZA()()()()(),r.TgZ(11,"nb-card")(12,"nb-card-header"),r._uU(13," Service List "),r.qZA(),r.TgZ(14,"nb-card-body"),r.YNc(15,Xs,5,6,"div",4),r.ALo(16,"async"),r.qZA()()),2&e&&(r.xp6(8),r.Q6J("selected",n.selectedItem),r.xp6(1),r.Q6J("ngForOf",r.lcZ(10,3,n.apps$)),r.xp6(6),r.Q6J("ngIf",r.lcZ(16,5,n.currentApp$)))},dependencies:[Y.sg,Y.O5,K.rH,x.Asz,x.yKW,x.ndF,x.DPz,x.fMN,x.rs,x.q51,yr,Y.Ov],styles:[".service-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}button[_ngcontent-%COMP%]{margin:5px}.app-select[_ngcontent-%COMP%]{display:flex;align-items:center}.servicesList[_ngcontent-%COMP%]{padding:10px}"]}),i})(),to=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-help"]],decls:9,vars:0,consts:[["color","primary","target","_blank","href","https://www.oakestra.io/","nbButton","",1,"button"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h1"),r._uU(3,"Contact"),r.qZA()(),r.TgZ(4,"nb-card-body")(5,"p"),r._uU(6," If you have found a bug or just have a question about using the system, please write us and we will contact you as soon as possible to solve the problem. "),r.qZA(),r.TgZ(7,"a",0),r._uU(8,"Oakestra Team"),r.qZA()()())},dependencies:[x.Asz,x.yKW,x.ndF,x.DPz],styles:[".content-cards[_ngcontent-%COMP%]{margin:20px 20px 20px 40px}"]}),i})();var qe=D(4017),Bn=D(4073);let eo=(()=>{class i{generateService(e,n,o,a,c,d,u){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),n),o),a),c),d),u)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=r.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),li=(()=>{class i{constructor(e){this.dialogRef=e,this.canViewLatConstrains=!0}onRadioChange(e){this.canViewLatConstrains=1===e.value}cancel(){this.dialogRef.close({event:"Cancel"})}save(e){this.dialogRef.close({event:"save",data:e})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.X4l))},i.\u0275cmp=r.Xpm({type:i,selectors:[["dialog-content-example-dialog"]],inputs:{data:"data"},decls:31,vars:4,consts:[[1,"radioDiv"],["required","",3,"ngModel","ngModelChange"],["value","latency",1,"blackRadio",3,"change"],["value","geo",1,"blackRadio",3,"change"],[1,"w3-row"],[1,"w3-col","l4","m4","s12","w3-row-padding"],["nbInput","","placeholder","Threshold","type","number",3,"ngModel","ngModelChange"],["nbSuffix",""],["nbInput","","max","100","min","0","placeholder","Rigidness","type","number",3,"ngModel","ngModelChange"],["nbInput","","placeholder","Convergence Time","type","number",3,"ngModel","ngModelChange"],["status","primary","nbButton","",3,"click"],["status","accent","nbButton","",3,"click"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header"),r._uU(2," Connection settings "),r.qZA(),r.TgZ(3,"nb-card-body")(4,"div",0)(5,"nb-radio-group",1),r.NdJ("ngModelChange",function(a){return n.data.type=a}),r.TgZ(6,"nb-radio",2),r.NdJ("change",function(a){return n.onRadioChange(a)}),r._uU(7," latency "),r.qZA(),r.TgZ(8,"nb-radio",3),r.NdJ("change",function(a){return n.onRadioChange(a)}),r._uU(9,"geo"),r.qZA()()(),r.TgZ(10,"div",4)(11,"div",5)(12,"nb-form-field")(13,"input",6),r.NdJ("ngModelChange",function(a){return n.data.threshold=a}),r.qZA(),r.TgZ(14,"span",7),r._uU(15,"ms\xa0"),r.qZA()()(),r.TgZ(16,"div",5)(17,"nb-form-field")(18,"input",8),r.NdJ("ngModelChange",function(a){return n.data.rigidness=a}),r.qZA(),r.TgZ(19,"span",7),r._uU(20,"%\xa0"),r.qZA()()(),r.TgZ(21,"div",5)(22,"nb-form-field")(23,"input",9),r.NdJ("ngModelChange",function(a){return n.data.convergence_time=a}),r.qZA(),r.TgZ(24,"span",7),r._uU(25,"sec\xa0"),r.qZA()()()()(),r.TgZ(26,"nb-card-footer")(27,"button",10),r.NdJ("click",function(){return n.save(n.data)}),r._uU(28,"Save"),r.qZA(),r.TgZ(29,"button",11),r.NdJ("click",function(){return n.cancel()}),r._uU(30,"Cancel"),r.qZA()()()),2&e&&(r.xp6(5),r.Q6J("ngModel",n.data.type),r.xp6(8),r.Q6J("ngModel",n.data.threshold),r.xp6(5),r.Q6J("ngModel",n.data.rigidness),r.xp6(5),r.Q6J("ngModel",n.data.convergence_time))},dependencies:[k.Fj,k.wV,k.JJ,k.Q7,k.qQ,k.Fd,k.On,x.Asz,x.yKW,x.XWE,x.ndF,x.DPz,x.h8i,x.jBG,x.yyc,x.r3g,x.MFI],styles:["radioDiv[_ngcontent-%COMP%]{padding-bottom:32px;margin:20px 0}",".mdc-radio__outer-circle[_ngcontent-%COMP%]{border-color:#000!important}"]}),i})();class we{}function Cr(i,t){if(1&i&&(r.TgZ(0,"nb-option",13),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.Q6J("value",e._id.$oid),r.xp6(1),r.hij(" ",e.microservice_name," ")}}function Mr(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"nb-form-field")(4,"label",7),r._uU(5,"Target Service"),r.qZA(),r.TgZ(6,"nb-select",8),r.YNc(7,Cr,2,2,"nb-option",9),r.qZA()()(),r.TgZ(8,"button",10),r.NdJ("click",function(){const a=r.CHM(e).index,c=r.oxw();return r.KtG(c.openDialog(a))}),r._UZ(9,"nb-icon",11),r.qZA(),r.TgZ(10,"button",10),r.NdJ("click",function(){const a=r.CHM(e).index,c=r.oxw();return r.KtG(c.deleteConnection(a))}),r._UZ(11,"nb-icon",12),r.qZA()()()}if(2&i){const e=t.$implicit,n=r.oxw();r.xp6(6),r.MGl("placeholder","target_microservice_id ",e.target_microservice_id,""),r.xp6(1),r.Q6J("ngForOf",n.dropdownServices)}}let Tr=(()=>{class i extends we{constructor(e,n){super(),this.dialog=e,this.store=n,this.connectivity=[],this.services$=this.store.pipe((0,W.Ys)(ai.z))}ngOnInit(){var e,n;this.connectivity=null!==(n=null===(e=this.service)||void 0===e?void 0:e.connectivity)&&void 0!==n?n:[],this.services$.pipe((0,rn.U)(o=>this.service?o.filter(a=>a.microserviceID!==this.service.microserviceID):o),(0,Ai.b)(o=>this.dropdownServices=o)).subscribe(),console.log(this.dropdownServices)}addConnectivity(){this.connectivity.push({con_constraints:[],target_microservice_id:""})}deleteConnection(e){this.connectivity.splice(e,1)}openDialog(e){this.dialog.open(li,{context:{data:this.connectivity[e]}}).onClose.subscribe(o=>{console.log(o),this.saveDialogData(o,e)})}saveDialogData(e,n){0===this.connectivity[n].con_constraints.length&&this.connectivity[n].con_constraints.push({type:e.type,threshold:e.threshold,rigidness:e.rigidness,convergence_time:e.convergence_time})}getData(){return{connectivity:this.connectivity}}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.Gln),r.Y36(W.yh))},i.\u0275cmp=r.Xpm({type:i,selectors:[["form-connectivity"]],inputs:{service:"service"},features:[r.qOj],decls:7,vars:1,consts:[[1,"addButtonDiv"],["size","large","nbButton","","ghost","",1,"add-btn",3,"click"],["icon","plus"],["id","contentInside",4,"ngFor","ngForOf"],["id","contentInside"],[1,"w3-row"],[1,"w3-col","l6","m6","s6","w3-row-padding"],[1,"label"],["fullWidth","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["nbButton","","ghost","",3,"click"],["icon","settings"],["icon","trash-2"],[3,"value"]],template:function(e,n){1&e&&(r.TgZ(0,"div",0)(1,"h4"),r._uU(2,"Connectivity:\xa0"),r.qZA(),r.TgZ(3,"button",1),r.NdJ("click",function(){return n.addConnectivity()}),r._UZ(4,"nb-icon",2),r.qZA()(),r.TgZ(5,"div"),r.YNc(6,Mr,12,2,"div",3),r.qZA()),2&e&&(r.xp6(6),r.Q6J("ngForOf",n.connectivity))},dependencies:[Y.sg,x.DPz,x.fMN,x.jBG,x.rs,x.q51],styles:[".connectivityCard[_ngcontent-%COMP%]{flex-direction:row!important}.addButtonDiv[_ngcontent-%COMP%]{display:flex}.w3-row[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),i})();var He=(()=>{return(i=He||(He={})).LATENCY="latency",i.GEO="geo",i.DIRECT="direct",He;var i})();let io=(()=>{class i{constructor(e,n,o){this.fb=e,this.parent=n,this.apiService=o,this.formGroupName="latency_"}ngOnInit(){this.parentForm=this.parent.form,this.parentForm.addControl(this.formGroupName,this.fb.group({area:[""],threshold:[""],rigidness:[""],convergence_time:[""]}))}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu),r.Y36(k.sg),r.Y36(fe.s))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-latency-constraints"]],features:[r._Bn([],[{provide:k.gN,useExisting:k.sg}])],decls:34,vars:1,consts:[[3,"formGroupName"],[1,"w3-row"],[1,"w3-col","l12","m12","s12","w3-row-padding"],[1,"label"],["placeholder","Area","formControlName","area","nbTooltip","Specifies the area in which the constraint is in effect","required",""],["value","munich1"],["value","munich2"],["value","frankfurt"],[1,"w3-col","l4","m4","s6","w3-row-padding"],["nbInput","","placeholder","Threshold","formControlName","threshold","nbTooltip","Maximum latency","type","number","value","0"],["nbSuffix",""],["nbInput","","placeholder","Rigidness","formControlName","rigidness","max","1","min","0","step","0.01","type","number","value","0"],["nbInput","","placeholder","Convergence Time","formControlName","convergence_time","type","number","value","300"]],template:function(e,n){1&e&&(r.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"nb-form-field")(4,"label",3),r._uU(5,"Area"),r.qZA(),r.TgZ(6,"nb-select",4)(7,"nb-option",5),r._uU(8,"Munich 1"),r.qZA(),r.TgZ(9,"nb-option",6),r._uU(10,"Munich 2"),r.qZA(),r.TgZ(11,"nb-option",7),r._uU(12,"Frankfurt"),r.qZA()()()(),r.TgZ(13,"div",8)(14,"nb-form-field")(15,"label",3),r._uU(16,"Threshold"),r.qZA(),r._UZ(17,"input",9),r.TgZ(18,"span",10),r._uU(19,"ms\xa0"),r.qZA()()(),r.TgZ(20,"div",8)(21,"nb-form-field")(22,"label",3),r._uU(23,"Rigidness"),r.qZA(),r._UZ(24,"input",11),r.TgZ(25,"span",10),r._uU(26,"%\xa0"),r.qZA()()(),r.TgZ(27,"div",8)(28,"nb-form-field")(29,"label",3),r._uU(30,"Convergence Time"),r.qZA(),r._UZ(31,"input",12),r.TgZ(32,"span",10),r._uU(33,"sec\xa0"),r.qZA()()()()()),2&e&&r.Q6J("formGroupName",n.formGroupName)},dependencies:[k._Y,k.Fj,k.wV,k.JJ,k.JL,k.Q7,k.qQ,k.Fd,k.F,k.u,k.x0,x.h8i,x.jBG,x.yyc,x.rs,x.q51,x.jNv]}),i})(),Pr=(()=>{class i{constructor(e,n){this.fb=e,this.parent=n,this.longitude=0,this.latitude=0,this.location="",this.formGroupName="geo_"}ngOnInit(){this.parentForm=this.parent.form,this.parentForm.addControl(this.formGroupName,this.fb.group({convergence_time:[0],rigidness:[0],threshold:[0],location:[""]}))}updateLongLat(){this.location=`(${this.longitude},${this.latitude})`,console.log(this.location)}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu),r.Y36(k.sg))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-geo-constraints"]],features:[r._Bn([],[{provide:k.gN,useExisting:k.sg}])],decls:34,vars:1,consts:[[3,"formGroupName"],[1,"w3-row"],[1,"w3-col","l4","m4","s6","w3-row-padding"],[1,"label"],["placeholder","Longitude","nbInput","","type","number",3,"change"],["placeholder","Latitude","nbInput","","type","number",3,"change"],[1,"w3-col","w3-rest"],[1,"w3-col","l4","m4","s12","w3-row-padding"],["nbInput","","placeholder","Threshold","formControlName","threshold","type","number"],["nbSuffix",""],["nbInput","","placeholder","Rigidness","formControlName","rigidness","max","100","min","0","type","number","value","0"],["nbInput","","placeholder","Convergence Time","formControlName","convergence_time","type","number","value","300"]],template:function(e,n){1&e&&(r.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"nb-form-field")(4,"label",3),r._uU(5,"Longitude"),r.qZA(),r.TgZ(6,"input",4),r.NdJ("change",function(){return n.updateLongLat()}),r.qZA()()(),r.TgZ(7,"div",2)(8,"nb-form-field")(9,"label",3),r._uU(10,"Latitude"),r.qZA(),r.TgZ(11,"input",5),r.NdJ("change",function(){return n.updateLongLat()}),r.qZA()()(),r._UZ(12,"div",6),r.TgZ(13,"div",7)(14,"nb-form-field")(15,"label",3),r._uU(16,"Threshold"),r.qZA(),r._UZ(17,"input",8),r.TgZ(18,"span",9),r._uU(19,"km\xa0"),r.qZA()()(),r.TgZ(20,"div",7)(21,"nb-form-field")(22,"label",3),r._uU(23,"Rigidness"),r.qZA(),r._UZ(24,"input",10),r.TgZ(25,"span",9),r._uU(26,"%\xa0"),r.qZA()()(),r.TgZ(27,"div",7)(28,"nb-form-field")(29,"label",3),r._uU(30,"Convergence Time"),r.qZA(),r._UZ(31,"input",11),r.TgZ(32,"span",9),r._uU(33,"sec\xa0"),r.qZA()()()()()),2&e&&r.Q6J("formGroupName",n.formGroupName)},dependencies:[k._Y,k.Fj,k.wV,k.JJ,k.JL,k.qQ,k.Fd,k.F,k.u,k.x0,x.h8i,x.jBG,x.yyc]}),i})();function an(i,t){if(1&i&&(r.TgZ(0,"nb-option",7),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.Q6J("value",e),r.xp6(1),r.Oqu(e)}}let kr=(()=>{class i{constructor(e,n,o){this.fb=e,this.parent=n,this.apiService=o,this.clusterOptions=[],this.formGroupName="direct_"}ngOnInit(){this.apiService.getClusters().subscribe(e=>{console.log(e),this.clusterOptions=e.map(n=>n.cluster_name),console.log(this.clusterOptions)}),this.parentForm=this.parent.form,this.parentForm.addControl(this.formGroupName,this.fb.group({node:[""],cluster:[]}))}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu),r.Y36(k.sg),r.Y36(fe.s))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-cluster-constraints"]],features:[r._Bn([],[{provide:k.gN,useExisting:k.sg}])],decls:13,vars:2,consts:[[3,"formGroupName"],[1,"w3-row"],[1,"w3-col","l6","m6","s6","w3-row-padding"],[1,"label"],["fullWidth","","placeholder","Cluster","formControlName","cluster","nbTooltip","Specifies the cluster in which the constraint is in effect"],[3,"value",4,"ngFor","ngForOf"],["fullWidth","","placeholder","Node","nbInput","","formControlName","node","nbTooltip","Node"],[3,"value"]],template:function(e,n){1&e&&(r.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"nb-form-field")(4,"label",3),r._uU(5,"Cluster"),r.qZA(),r.TgZ(6,"nb-select",4),r.YNc(7,an,2,2,"nb-option",5),r.qZA()()(),r.TgZ(8,"div",2)(9,"nb-form-field")(10,"label",3),r._uU(11,"Node"),r.qZA(),r._UZ(12,"input",6),r.qZA()()()()),2&e&&(r.Q6J("formGroupName",n.formGroupName),r.xp6(7),r.Q6J("ngForOf",n.clusterOptions))},dependencies:[Y.sg,k._Y,k.Fj,k.JJ,k.JL,k.F,k.u,k.x0,x.h8i,x.jBG,x.rs,x.q51,x.jNv],styles:[".w3-row[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),i})();function Ar(i,t){1&i&&(r.ynx(0),r._uU(1,"Latency Constraints"),r.BQk())}function Sr(i,t){1&i&&(r.ynx(0),r._uU(1,"Geo Constraints"),r.BQk())}function Or(i,t){1&i&&(r.ynx(0),r._uU(1,"Cluster Constraints"),r.BQk())}function Lr(i,t){1&i&&(r.ynx(0),r._UZ(1,"app-latency-constraints"),r.BQk())}function Un(i,t){1&i&&(r.ynx(0),r._UZ(1,"app-geo-constraints"),r.BQk())}function Oi(i,t){1&i&&(r.ynx(0),r._UZ(1,"app-cluster-constraints"),r.BQk())}function no(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div")(1,"div",5)(2,"div")(3,"h5",0),r.ynx(4,6),r.YNc(5,Ar,2,0,"ng-container",7),r.YNc(6,Sr,2,0,"ng-container",7),r.YNc(7,Or,2,0,"ng-container",7),r.BQk(),r.qZA(),r.TgZ(8,"div",0)(9,"h5"),r._uU(10),r.qZA(),r.TgZ(11,"button",8),r.NdJ("click",function(){const a=r.CHM(e).index,c=r.oxw();return r.KtG(c.deleteConstraint(a))}),r._UZ(12,"nb-icon",9),r.qZA()()(),r.ynx(13,6),r.YNc(14,Lr,2,0,"ng-container",7),r.YNc(15,Un,2,0,"ng-container",7),r.YNc(16,Oi,2,0,"ng-container",7),r.BQk(),r.qZA()()}if(2&i){const e=t.$implicit,n=r.oxw();r.xp6(4),r.Q6J("ngSwitch",e),r.xp6(1),r.Q6J("ngSwitchCase",n.ConstraintType.LATENCY),r.xp6(1),r.Q6J("ngSwitchCase",n.ConstraintType.GEO),r.xp6(1),r.Q6J("ngSwitchCase",n.ConstraintType.DIRECT),r.xp6(3),r.hij("",n.headlineHelper(e.type)," constraint:"),r.xp6(3),r.Q6J("ngSwitch",e.type),r.xp6(1),r.Q6J("ngSwitchCase",n.ConstraintType.LATENCY),r.xp6(1),r.Q6J("ngSwitchCase",n.ConstraintType.GEO),r.xp6(1),r.Q6J("ngSwitchCase",n.ConstraintType.DIRECT)}}let so=(()=>{class i extends we{constructor(e,n,o){super(),this.nbMenuService=e,this.apiService=n,this.formBuilder=o,this.constraints=[],this.constraintsType=[],this.node=[],this.cluster=[],this.items=[{title:"Latency Constraints"},{title:"Geo Constraints"},{title:"Cluster Constraints"}],this.ConstraintType=He,this.constraintsForm=new k.cw({})}ngOnInit(){this.nbMenuService.onItemClick().pipe((0,Si.h)(({tag:e})=>"constraints-menu"===e),(0,rn.U)(({item:{title:e}})=>e)).subscribe(e=>{switch(e){case"Latency Constraints":this.addConstrains(He.LATENCY);break;case"Geo Constraints":this.addConstrains(He.GEO);break;case"Cluster Constraints":this.addConstrains(He.DIRECT);break;default:console.log("No event for this tag")}})}addConstrains(e){const n={area:"",cluster:"",convergence_time:0,location:"",node:"",rigidness:0,threshold:0,type:e};this.constraintsType.push(e),this.constraints.push(n),console.log(this.constraintsForm)}isConstraintType(e,n){return this.constraintsType[n]===e}deleteConstraint(e){this.constraints.splice(e,1),this.constraintsType.splice(e,1);const n=Object.keys(this.constraintsForm.getRawValue())[e];this.constraintsForm.removeControl(n)}headlineHelper(e){const n=e.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}getConstraintsName(e){return e.startsWith("direct")||e.startsWith("geo")||e.startsWith("latency")?e.split("_")[0]:null}getData(){const e=[],n=this.constraintsForm.getRawValue();for(const o in n){console.log(o),console.log(n[o]);const a=this.getConstraintsName(o);a&&e.push(Object.assign({type:a},n[o]))}return{constraints:e}}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.kkI),r.Y36(fe.s),r.Y36(k.qu))},i.\u0275cmp=r.Xpm({type:i,selectors:[["form-constraints"]],inputs:{service:"service"},features:[r.qOj],decls:7,vars:3,consts:[[1,"addButtonDiv"],["nbButton","","ghost","","size","large","nbContextMenuTag","constraints-menu",3,"nbContextMenu"],["icon","plus"],[3,"formGroup"],[4,"ngFor","ngForOf"],[1,"constraints"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nbButton","","ghost","","type","button",3,"click"],["icon","trash-2"]],template:function(e,n){1&e&&(r.TgZ(0,"div",0)(1,"h4",0),r._uU(2,"Constraints:"),r.qZA(),r.TgZ(3,"button",1),r._UZ(4,"nb-icon",2),r.qZA()(),r.TgZ(5,"form",3),r.YNc(6,no,17,9,"div",4),r.qZA()),2&e&&(r.xp6(3),r.Q6J("nbContextMenu",n.items),r.xp6(2),r.Q6J("formGroup",n.constraintsForm),r.xp6(1),r.Q6J("ngForOf",n.constraints))},dependencies:[Y.sg,Y.RF,Y.n9,k._Y,k.JL,k.sg,x.DPz,x.fMN,x.SrF,io,Pr,kr],styles:[".constraints[_ngcontent-%COMP%] .addButtonDiv[_ngcontent-%COMP%]{vertical-align:super}.addButtonDiv[_ngcontent-%COMP%]{display:flex}nb-form-field[_ngcontent-%COMP%]{padding:10px 0}"]}),i})();var ci=D(4934);let dt=(()=>{class i extends we{constructor(e,n){super(),this.api=e,this.notifyService=n}ngOnInit(){var e,n,o,a,c,d;this.data={code:null!==(n=null===(e=this.service)||void 0===e?void 0:e.code)&&void 0!==n?n:"",state:null!==(a=null===(o=this.service)||void 0===o?void 0:o.state)&&void 0!==a?a:"",added_files:null!==(d=null===(c=this.service)||void 0===c?void 0:c.added_files)&&void 0!==d?d:[]}}deleteFiles(e){this.data.added_files.splice(e,1)}addFileInput(){this.data.added_files.push("")}onFileSelected(e,n,o){const a=e.target.files[0];if(a){const c=new FormData;c.append("file",a),this.api.fileUpload(c).subscribe({next:u=>{"file"===o?this.data.added_files[n]=u.path:"code"===o?this.data.code=u.path:"state"===o&&(this.data.state=u.path)},error:()=>{this.notifyService.notify(ci.k.error,"File not supported")}})}}getData(){return this.data}trackByIdx(e){return e}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(fe.s),r.Y36(qe.g))},i.\u0275cmp=r.Xpm({type:i,selectors:[["form-file-select"]],inputs:{service:"service"},features:[r.qOj],decls:5,vars:1,consts:[[1,"fileForm"],[1,"label"],["nbInput","","nbTooltip","Define an image for the service","placeholder","Code","value","docker.io/library/nginx:latest","required","","type","url","fullWidth","",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-form-field",0)(1,"label",1),r._uU(2,"Code"),r.qZA(),r.TgZ(3,"input",2),r.NdJ("ngModelChange",function(a){return n.data.code=a}),r.qZA()(),r._UZ(4,"br")),2&e&&(r.xp6(3),r.Q6J("ngModel",n.data.code))},dependencies:[k.Fj,k.JJ,k.Q7,k.On,x.h8i,x.jBG,x.jNv],styles:[".fileDiv[_ngcontent-%COMP%]{max-width:90%;display:inline-flex}.file-upload-div[_ngcontent-%COMP%]{align-content:baseline;text-align:center}.file-upload[_ngcontent-%COMP%]{float:left;position:relative}.hide[_ngcontent-%COMP%]{display:none}nb-form-field[_ngcontent-%COMP%]{padding:0}"]}),i})(),wt=(()=>{class i extends we{constructor(){super(...arguments),this.upload=new r.vpe,this.filename="Select File to Upload",this.sampleService={microservices:[{microservice_name:"name",microservice_namespace:"namespace","...":"..."}]}}loadFile(e){this.file=e.target.files[0],console.log(this.file),this.filename=this.file.name}uploadDocument(){if(this.file){const e=new FileReader;e.onload=()=>{var n;const o=JSON.parse((null!==(n=e.result)&&void 0!==n?n:"").toString());console.log(o),this.upload.emit(o.microservices)},e.readAsText(this.file)}}getData(){return""}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275cmp=r.Xpm({type:i,selectors:[["form-file-upload"]],inputs:{service:"service"},outputs:{upload:"upload"},features:[r.qOj],decls:16,vars:5,consts:[[1,"content",3,"click"],[1,"sample-code"],[1,"file-upload-div"],[1,"file-upload"],["accept","application/JSON","type","file",1,"file-input",3,"change"],["fileUpload",""],["color","primary","nbButton","","type","button",3,"disabled","click"]],template:function(e,n){if(1&e){const o=r.EpF();r.TgZ(0,"div",0),r.NdJ("click",function(){r.CHM(o);const c=r.MAs(11);return r.KtG(c.click())}),r._uU(1),r.TgZ(2,"div",1)(3,"p"),r._uU(4,"The file must be formatted as follows:"),r.qZA(),r.TgZ(5,"pre"),r._uU(6),r.ALo(7,"json"),r.qZA()()(),r.TgZ(8,"div",2)(9,"div",3)(10,"input",4,5),r.NdJ("change",function(c){return n.loadFile(c)}),r.qZA()(),r.TgZ(12,"button",6),r.NdJ("click",function(){return n.uploadDocument()}),r._uU(13," Upload Config "),r.qZA(),r.TgZ(14,"p"),r._uU(15,"The file should contain only the microservice array"),r.qZA()()}2&e&&(r.xp6(1),r.hij(" ",n.filename," "),r.xp6(5),r.Oqu(r.lcZ(7,3,n.sampleService)),r.xp6(6),r.Q6J("disabled",void 0===n.file))},dependencies:[x.DPz,Y.Ts],styles:[".content[_ngcontent-%COMP%]{height:50vh;display:flex;justify-content:center;flex-direction:column;align-items:center;font-size:2rem;color:#d3d3d3;padding-top:20px}.content[_ngcontent-%COMP%] .sample-code[_ngcontent-%COMP%]{padding-top:40px;display:flex;flex-direction:column;font-size:1.5rem}.content[_ngcontent-%COMP%] .sample-code[_ngcontent-%COMP%] pre[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .sample-code[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;color:#d3d3d3}.file-upload-div[_ngcontent-%COMP%]{text-align:center}.file-upload-div[_ngcontent-%COMP%] .file-upload[_ngcontent-%COMP%]{display:none}.file-upload-div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:10px}"]}),i})(),ln=(()=>{class i extends we{constructor(e){super(),this.fb=e,this.applicationId="to set"}ngOnInit(){var e,n,o,a,c,d,u,p;this.form=this.fb.group({microserviceID:["1234"],microservice_name:[null!==(n=null===(e=this.service)||void 0===e?void 0:e.microservice_name)&&void 0!==n?n:"",k.kI.required],microservice_namespace:[null!==(a=null===(o=this.service)||void 0===o?void 0:o.microservice_namespace)&&void 0!==a?a:""],virtualization:[null!==(d=null===(c=this.service)||void 0===c?void 0:c.virtualization)&&void 0!==d?d:""],description:[null!==(p=null===(u=this.service)||void 0===u?void 0:u.description)&&void 0!==p?p:""]})}getData(){return this.form.value}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu))},i.\u0275cmp=r.Xpm({type:i,selectors:[["form-service-info"]],inputs:{service:"service"},features:[r.qOj],decls:31,vars:1,consts:[[3,"formGroup"],[1,"w3-row"],[1,"w3-col","l6","s12","w3-row-padding"],[1,"label"],["nbInput","","formControlName","microservice_namespace","placeholder","Service Namespace","required","","fullWidth",""],["nbInput","","fullWidth","","formControlName","microservice_name","placeholder","Service Name","required",""],["formControlName","virtualization","fullWidth","","placeholder","Virtualization","required",""],["value","container"],["value","unikernel"],["value","vm"],[1,"w3-col","l12","s12","w3-row-padding"],["cols","3","fullWidth","","nbInput","","formControlName","description","placeholder","Description of the service"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header"),r._uU(2," General information: "),r.qZA(),r.TgZ(3,"nb-card-body")(4,"form",0)(5,"div",1)(6,"div",2)(7,"nb-form-field")(8,"label",3),r._uU(9,"Service Namespace"),r.qZA(),r._UZ(10,"input",4),r.qZA()(),r.TgZ(11,"div",2)(12,"nb-form-field")(13,"label",3),r._uU(14,"Service Name"),r.qZA(),r._UZ(15,"input",5),r.qZA()(),r.TgZ(16,"div",2)(17,"label",3),r._uU(18,"Virtualization"),r.qZA(),r.TgZ(19,"nb-select",6)(20,"nb-option",7),r._uU(21,"Container"),r.qZA(),r.TgZ(22,"nb-option",8),r._uU(23,"Unikernel"),r.qZA(),r.TgZ(24,"nb-option",9),r._uU(25,"Vm"),r.qZA()()(),r.TgZ(26,"div",10)(27,"nb-form-field")(28,"label",3),r._uU(29,"Description"),r.qZA(),r._UZ(30,"textarea",11),r.qZA()()()()()()),2&e&&(r.xp6(4),r.Q6J("formGroup",n.form))},dependencies:[k._Y,k.Fj,k.JJ,k.JL,k.Q7,k.sg,k.u,x.Asz,x.yKW,x.ndF,x.h8i,x.jBG,x.rs,x.q51]}),i})(),di=(()=>{class i extends we{constructor(e){super(),this.fb=e,this.requirements={}}ngOnInit(){var e,n,o,a,c,d,u,p,g;this.form=this.fb.group({memory:[null===(e=this.service)||void 0===e?void 0:e.memory],vcpus:[null===(n=this.service)||void 0===n?void 0:n.vcpus],vgpus:[null===(o=this.service)||void 0===o?void 0:o.vgpus],vtpus:[null===(a=this.service)||void 0===a?void 0:a.vtpus],bandwidth_in:[null===(c=this.service)||void 0===c?void 0:c.bandwidth_in],bandwidth_out:[null===(d=this.service)||void 0===d?void 0:d.bandwidth_out],storage:[null===(u=this.service)||void 0===u?void 0:u.storage],port:[null!==(g=null===(p=this.service)||void 0===p?void 0:p.port)&&void 0!==g?g:""]}),this.form.patchValue(this.requirements)}getData(){return this.form.value}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu))},i.\u0275cmp=r.Xpm({type:i,selectors:[["form-requirements"]],inputs:{service:"service"},features:[r.qOj],decls:54,vars:1,consts:[[3,"formGroup"],[1,"w3-row"],[1,"w3-col","l3","m4","s6","w3-row-padding"],[1,"label"],["nbInput","","min","0","formControlName","memory","value","1024","placeholder","Memory","required","","type","number","label","asd"],["nbSuffix",""],["nbInput","","min","0","formControlName","vcpus","placeholder","Vcpus","required","","type","number","value","1"],["nbInput","","min","0","placeholder","Vgpus","formControlName","vgpus","required","","type","number","value","0"],["nbInput","","placeholder","Vtpus","min","0","formControlName","vtpus","required","","type","number","value","0"],["nbInput","","nbTooltip","Minimum bandwidth-ingress needed for service","min","0","required","","type","number","value","0","formControlName","bandwidth_in","placeholder","Bandwidth In"],["nbInput","","nbTooltip","Minimum bandwidth-egress needed for service","min","0","required","","type","number","value","0","formControlName","bandwidth_out","placeholder","Bandwidth_out"],["nbInput","","placeholder","Storage","min","0","formControlName","storage","required","","type","number","value","0"],["placeholder","Port","nbInput","","formControlName","port","nbTooltip","Port for exposure of the service","required","","type","text"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header"),r._uU(2," Requirements: "),r.qZA(),r.TgZ(3,"nb-card-body")(4,"form",0)(5,"div",1)(6,"div",2)(7,"nb-form-field")(8,"label",3),r._uU(9,"Memory"),r.qZA(),r._UZ(10,"input",4),r.TgZ(11,"span",5),r._uU(12,"MB\xa0"),r.qZA()()(),r.TgZ(13,"div",2)(14,"nb-form-field")(15,"label",3),r._uU(16,"Vcpus"),r.qZA(),r._UZ(17,"input",6),r.qZA()(),r.TgZ(18,"div",2)(19,"nb-form-field")(20,"label",3),r._uU(21,"Vgpus"),r.qZA(),r._UZ(22,"input",7),r.qZA()(),r.TgZ(23,"div",2)(24,"nb-form-field")(25,"label",3),r._uU(26,"Vtpus"),r.qZA(),r._UZ(27,"input",8),r.qZA()(),r.TgZ(28,"div",2)(29,"nb-form-field")(30,"label",3),r._uU(31,"Bandwidth In"),r.qZA(),r._UZ(32,"input",9),r.TgZ(33,"span",5),r._uU(34,"KB\xa0"),r.qZA()()(),r.TgZ(35,"div",2)(36,"nb-form-field")(37,"label",3),r._uU(38,"Bandwidth Out"),r.qZA(),r._UZ(39,"input",10),r.TgZ(40,"span",5),r._uU(41,"KB\xa0"),r.qZA()()(),r.TgZ(42,"div",2)(43,"nb-form-field")(44,"label",3),r._uU(45,"Storage"),r.qZA(),r._UZ(46,"input",11),r.TgZ(47,"span",5),r._uU(48,"MB\xa0"),r.qZA()()(),r.TgZ(49,"div",2)(50,"nb-form-field")(51,"label",3),r._uU(52,"Port"),r.qZA(),r._UZ(53,"input",12),r.qZA()()()()()()),2&e&&(r.xp6(4),r.Q6J("formGroup",n.form))},dependencies:[k._Y,k.Fj,k.wV,k.JJ,k.JL,k.Q7,k.qQ,k.sg,k.u,x.Asz,x.yKW,x.ndF,x.h8i,x.jBG,x.yyc,x.jNv]}),i})();function hi(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div",9)(1,"p"),r._uU(2,"Instances:"),r.qZA(),r.TgZ(3,"div",3)(4,"div",10)(5,"nb-form-field")(6,"label",5),r._uU(7,"From"),r.qZA(),r.TgZ(8,"input",11),r.NdJ("ngModelChange",function(o){const c=r.CHM(e).index,d=r.oxw();return r.KtG(d.instances[c].from=o)}),r.qZA()()(),r.TgZ(9,"div",10)(10,"nb-form-field")(11,"label",5),r._uU(12,"To"),r.qZA(),r.TgZ(13,"input",12),r.NdJ("ngModelChange",function(o){const c=r.CHM(e).index,d=r.oxw();return r.KtG(d.instances[c].to=o)}),r.qZA()()(),r.TgZ(14,"div",10)(15,"nb-form-field")(16,"label",5),r._uU(17,"Start"),r.qZA(),r.TgZ(18,"input",13),r.NdJ("ngModelChange",function(o){const c=r.CHM(e).index,d=r.oxw();return r.KtG(d.instances[c].start=o)}),r.qZA()()()()()}if(2&i){const e=t.index,n=r.oxw();r.xp6(8),r.Q6J("ngModel",n.instances[e].from),r.xp6(5),r.Q6J("ngModel",n.instances[e].to),r.xp6(5),r.Q6J("ngModel",n.instances[e].start)}}let qn=(()=>{class i extends we{constructor(e){super(),this.fb=e,this.instances=[]}ngOnInit(){var e,n,o,a,c,d,u,p,g;this.form=this.fb.group({rr_ip:null!==(o=null===(n=null===(e=this.service)||void 0===e?void 0:e.addresses)||void 0===n?void 0:n.rr_ip)&&void 0!==o?o:[""],closest_ip:null!==(d=null===(c=null===(a=this.service)||void 0===a?void 0:a.addresses)||void 0===c?void 0:c.closest_ip)&&void 0!==d?d:[""]}),this.instances.push({from:"",to:"",start:""}),0===(null===(g=null===(p=null===(u=this.service)||void 0===u?void 0:u.addresses)||void 0===p?void 0:p.instances)||void 0===g?void 0:g.length)&&(this.instances=this.service.addresses.instances)}getData(){return null}trackByIdx(e){return e}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu))},i.\u0275cmp=r.Xpm({type:i,selectors:[["form-addresses"]],inputs:{service:"service"},features:[r.qOj],decls:21,vars:3,consts:[[1,"expansion-header"],["icon","info","nbTooltip","Optional - If the specified IP addresses are unoccupied, the service will be provided at these addresses.","pack","eva"],[3,"formGroup"],[1,"w3-row"],[1,"w3-col","l6","m6","s12","w3-row-padding"],[1,"label"],["fullWidth","","placeholder","RR-IP","nbInput","","formControlName","rr_ip","nbTooltip","Optional - IP chosen for round-robin addressation (10.30.30.30)","type","text"],["fullWidth","","nbInput","","nbTooltip","Optional - The orchestrator may choose the closest IP to the given one","type","text","formControlName","closest_ip","placeholder","Closest_ip"],["class","full-width instance",4,"ngFor","ngForOf","ngForTrackBy"],[1,"full-width","instance"],[1,"w3-col","l4","m4","s12","w3-row-padding"],["fullWidth","","nbInput","","placeholder","From","type","text",3,"ngModel","ngModelChange"],["fullWidth","","nbInput","","placeholder","To","type","text",3,"ngModel","ngModelChange"],["fullWidth","","nbInput","","placeholder","Start","type","text",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-accordion")(2,"nb-accordion-item")(3,"nb-accordion-item-header",0),r._uU(4," Addresses "),r._UZ(5,"nb-icon",1),r.qZA(),r.TgZ(6,"nb-accordion-item-body")(7,"form",2)(8,"div",3)(9,"div",4)(10,"nb-form-field")(11,"label",5),r._uU(12,"RR-IP"),r.qZA(),r._UZ(13,"input",6),r.qZA()(),r.TgZ(14,"div",4)(15,"nb-form-field")(16,"label",5),r._uU(17,"Closest IP"),r.qZA(),r._UZ(18,"input",7),r.qZA()()()(),r._UZ(19,"br"),r.YNc(20,hi,19,3,"div",8),r.qZA()()()()),2&e&&(r.xp6(7),r.Q6J("formGroup",n.form),r.xp6(13),r.Q6J("ngForOf",n.instances)("ngForTrackBy",n.trackByIdx))},dependencies:[Y.sg,k._Y,k.Fj,k.JJ,k.JL,k.On,k.sg,k.u,x.Asz,x.h8i,x.fMN,x.jBG,x.jNv,x.qCO,x.SaG,x.YZd,x.AvE]}),i})();function tt(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div")(1,"div",5)(2,"nb-form-field")(3,"input",6),r.NdJ("ngModelChange",function(o){const c=r.CHM(e).index,d=r.oxw();return r.KtG(d.environment[c]=o)}),r.qZA(),r.TgZ(4,"button",7),r.NdJ("click",function(){const a=r.CHM(e).index,c=r.oxw();return r.KtG(c.deleteEnvironment(a))}),r._UZ(5,"nb-icon",8),r.qZA()()()()}if(2&i){const e=t.index,n=r.oxw();r.xp6(3),r.Q6J("ngModel",n.environment[e])}}function At(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div")(1,"div",5)(2,"nb-form-field")(3,"input",9),r.NdJ("ngModelChange",function(o){const c=r.CHM(e).index,d=r.oxw();return r.KtG(d.cmdArray[c]=o)}),r.qZA(),r.TgZ(4,"button",7),r.NdJ("click",function(){const a=r.CHM(e).index,c=r.oxw();return r.KtG(c.deleteCmd(a))}),r._UZ(5,"nb-icon",8),r.qZA()()()()}if(2&i){const e=t.index,n=r.oxw();r.xp6(3),r.Q6J("ngModel",n.cmdArray[e])}}function Hn(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div")(1,"div",5)(2,"nb-form-field")(3,"input",10),r.NdJ("ngModelChange",function(o){const c=r.CHM(e).index,d=r.oxw();return r.KtG(d.argsArray[c]=o)}),r.qZA(),r.TgZ(4,"button",7),r.NdJ("click",function(){const a=r.CHM(e).index,c=r.oxw();return r.KtG(c.deleteArgument(a))}),r._UZ(5,"nb-icon",8),r.qZA()()()()}if(2&i){const e=t.index,n=r.oxw();r.xp6(3),r.Q6J("ngModel",n.argsArray[e])}}let cn=(()=>{class i extends we{ngOnInit(){var e,n,o,a,c,d;this.argsArray=null!==(n=null===(e=this.service)||void 0===e?void 0:e.args)&&void 0!==n?n:[],this.environment=null!==(a=null===(o=this.service)||void 0===o?void 0:o.environment)&&void 0!==a?a:[],this.cmdArray=null!==(d=null===(c=this.service)||void 0===c?void 0:c.cmd)&&void 0!==d?d:[]}addArgument(){this.argsArray.push("")}deleteArgument(e){this.argsArray.splice(e,1)}addEnvironment(){this.environment.push("")}deleteEnvironment(e){this.environment.splice(e,1)}addCmd(){this.cmdArray.push("")}deleteCmd(e){this.cmdArray.splice(e,1)}getData(){return{args:this.argsArray,environment:this.environment}}trackByIdx(e){return e}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=r.n5z(i)))(n||i)}}(),i.\u0275cmp=r.Xpm({type:i,selectors:[["form-arguments"]],inputs:{service:"service"},features:[r.qOj],decls:25,vars:6,consts:[[1,"addButtonDiv"],["nbButton","","ghost","","size","large",3,"click"],["icon","plus"],[1,"w3-row"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"w3-col","l4","m6","s12","w3-row-padding"],["nbInput","","placeholder","Environment","type","text",3,"ngModel","ngModelChange"],["nbSuffix","","nbButton","","ghost","","size","large",3,"click"],["icon","trash-2"],["nbInput","","placeholder","Cmd","type","text",3,"ngModel","ngModelChange"],["placeholder","Args - Key Value","nbInput","","type","text",1,"addButtonDiv",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header"),r._uU(2,"Additional Arguments"),r.qZA(),r.TgZ(3,"nb-card-body")(4,"div",0)(5,"h4"),r._uU(6,"Environment:"),r.qZA(),r.TgZ(7,"button",1),r.NdJ("click",function(){return n.addEnvironment()}),r._UZ(8,"nb-icon",2),r.qZA()(),r.TgZ(9,"div",3),r.YNc(10,tt,6,1,"div",4),r.qZA(),r.TgZ(11,"div",0)(12,"h4"),r._uU(13,"Cmd:"),r.qZA(),r.TgZ(14,"button",1),r.NdJ("click",function(){return n.addCmd()}),r._UZ(15,"nb-icon",2),r.qZA()(),r.TgZ(16,"div",3),r.YNc(17,At,6,1,"div",4),r.qZA(),r.TgZ(18,"div",0)(19,"h4"),r._uU(20,"Arguments:"),r.qZA(),r.TgZ(21,"button",1),r.NdJ("click",function(){return n.addArgument()}),r._UZ(22,"nb-icon",2),r.qZA()(),r.TgZ(23,"div",3),r.YNc(24,Hn,6,1,"div",4),r.qZA()()()),2&e&&(r.xp6(10),r.Q6J("ngForOf",n.environment)("ngForTrackBy",n.trackByIdx),r.xp6(7),r.Q6J("ngForOf",n.cmdArray)("ngForTrackBy",n.trackByIdx),r.xp6(7),r.Q6J("ngForOf",n.argsArray)("ngForTrackBy",n.trackByIdx))},dependencies:[Y.sg,k.Fj,k.JJ,k.On,x.Asz,x.yKW,x.ndF,x.DPz,x.h8i,x.fMN,x.jBG,x.yyc],styles:[".addButtonDiv[_ngcontent-%COMP%]{display:flex}nb-form-field[_ngcontent-%COMP%]{padding:10px 0}"]}),i})();const te=["serviceInfo"],Dr=["requirements"],dn=["addresses"],We=["arguments"],Ot=["constraints"],Ve=["connectivity"],Li=["fileSelect"];let ui=(()=>{class i{constructor(e,n,o,a,c,d,u){this.route=e,this.api=n,this.router=o,this.notifyService=a,this.store=c,this.slaGenerator=d,this.serviceGenerator=u,this.editingService=!1,this.app$=this.store.pipe((0,W.Ys)(ri.R)),this.currentUser$=this.store.pipe((0,W.Ys)(Ue.H)),this.services$=this.store.pipe((0,W.Ys)(ai.z)),this.app$.subscribe(p=>{console.log(p),this.currentApplication=p})}ngOnInit(){this.serviceId=this.route.snapshot.paramMap.get("id"),this.currentUser$.subscribe(e=>this.currentUser=e),this.services$.subscribe({next:e=>{const n=e.filter(o=>{var a;return(null===(a=o._id)||void 0===a?void 0:a.$oid)===this.serviceId});this.service=0===n.length?null:n[0]},error:e=>{console.log(e)}})}onSubmit(){const e=this.serviceGenerator.generateService(this.serviceInfo.getData(),this.requirements.getData(),this.fileSelect.getData(),this.addresses.getData(),this.arguments.getData(),this.constraints.getData(),this.connectivity.getData()),n=this.slaGenerator.generateSLA(e,this.currentApplication,this.currentUser);console.log(n),console.log(this.editingService),this.editingService?this.updateService(n):this.addService(n)}slaFromFile(e){e.map(n=>{console.log(n);const o=this.slaGenerator.generateSLA(n,this.currentApplication,this.currentUser);this.addService(o)})}updateService(e){this.api.updateService(e,this.serviceId).subscribe({next:()=>{this.store.dispatch((0,nt.fB)(e)),this.router.navigate(["/control/services"]).then()},error:n=>{console.log(n)}})}addService(e){this.store.dispatch((0,nt.EF)({service:e}))}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(K.gz),r.Y36(fe.s),r.Y36(K.F0),r.Y36(qe.g),r.Y36(W.yh),r.Y36(Bn.T),r.Y36(eo))},i.\u0275cmp=r.Xpm({type:i,selectors:[["sla-form"]],viewQuery:function(e,n){if(1&e&&(r.Gf(te,5),r.Gf(Dr,5),r.Gf(dn,5),r.Gf(We,5),r.Gf(Ot,5),r.Gf(Ve,5),r.Gf(Li,5)),2&e){let o;r.iGM(o=r.CRH())&&(n.serviceInfo=o.first),r.iGM(o=r.CRH())&&(n.requirements=o.first),r.iGM(o=r.CRH())&&(n.addresses=o.first),r.iGM(o=r.CRH())&&(n.arguments=o.first),r.iGM(o=r.CRH())&&(n.constraints=o.first),r.iGM(o=r.CRH())&&(n.connectivity=o.first),r.iGM(o=r.CRH())&&(n.fileSelect=o.first)}},decls:26,vars:7,consts:[[1,"serviceCard"],["fullWidth","",1,"inputGroup"],["tabTitle","FORM"],[3,"service"],["serviceInfo",""],["requirements",""],["addresses",""],["fileSelect",""],["arguments",""],["constraints",""],["connectivity",""],["nbButton","","status","primary","type","submit",3,"click"],["nbButton","","status","accent","routerLink","/control/services","type","button"],["tabTitle","SLA"],[3,"upload"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card",0)(1,"nb-card-header"),r._uU(2,"Configure Service"),r.qZA(),r.TgZ(3,"nb-card-body")(4,"nb-tabset",1)(5,"nb-tab",2),r._UZ(6,"form-service-info",3,4)(8,"form-requirements",3,5)(10,"form-addresses",3,6)(12,"form-file-select",3,7)(14,"form-arguments",3,8)(16,"form-constraints",3,9)(18,"form-connectivity",3,10),r.TgZ(20,"button",11),r.NdJ("click",function(){return n.onSubmit()}),r._uU(21,"Save"),r.qZA(),r.TgZ(22,"button",12),r._uU(23,"Cancel"),r.qZA()(),r.TgZ(24,"nb-tab",13)(25,"form-file-upload",14),r.NdJ("upload",function(a){return n.slaFromFile(a)}),r.qZA()()()()()),2&e&&(r.xp6(6),r.Q6J("service",n.service),r.xp6(2),r.Q6J("service",n.service),r.xp6(2),r.Q6J("service",n.service),r.xp6(2),r.Q6J("service",n.service),r.xp6(2),r.Q6J("service",n.service),r.xp6(2),r.Q6J("service",n.service),r.xp6(2),r.Q6J("service",n.service))},dependencies:[K.rH,x.Asz,x.yKW,x.ndF,x.DPz,x.kyn,x.TR4,Tr,so,dt,wt,ln,di,qn,cn],styles:["button[_ngcontent-%COMP%]{margin:10px 10px 0 0}nb-tab[_ngcontent-%COMP%]{padding:40px 0}"]}),i})(),Wn=(()=>{class i{constructor(e){this.menuService=e}goToHome(){this.menuService.navigateHome()}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.kkI))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-not-found"]],decls:11,vars:0,consts:[[1,"row"],[1,"col-md-12"],[1,"flex-centered","col-xl-4","col-lg-6","col-md-8","col-sm-12"],[1,"title"],[1,"sub-title"],["nbButton","","fullWidth","","type","button",1,"home-button",3,"click"]],template:function(e,n){1&e&&(r.TgZ(0,"div",0)(1,"div",1)(2,"nb-card")(3,"nb-card-body")(4,"div",2)(5,"h2",3),r._uU(6,"404 Page Not Found"),r.qZA(),r.TgZ(7,"small",4),r._uU(8,"The page you were looking for doesn't exist"),r.qZA(),r.TgZ(9,"button",5),r.NdJ("click",function(){return n.goToHome()}),r._uU(10," Take me home "),r.qZA()()()()()())},dependencies:[x.Asz,x.yKW,x.DPz],styles:[".flex-centered[_ngcontent-%COMP%]{margin:auto}nb-card-body[_ngcontent-%COMP%]{display:flex}.title[_ngcontent-%COMP%]{text-align:center}.sub-title[_ngcontent-%COMP%]{text-align:center;display:block;margin-bottom:3rem}.home-button[_ngcontent-%COMP%]{margin-bottom:2rem}"]}),i})(),je=(()=>{class i{constructor(e){this.dialogRef=e,this.text="",this.type=""}ngOnInit(){this.text=this.data.text,this.type=this.data.type}confirm(){this.dialogRef.close({event:!0})}cancel(){this.dialogRef.close({event:!1})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.X4l))},i.\u0275cmp=r.Xpm({type:i,selectors:[["dialog-conformation-dialog"]],inputs:{data:"data"},decls:15,vars:2,consts:[[1,"dialog-footer"],["status","warning","nbButton","",3,"click"],["status","basic","nbButton","",3,"click"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h2"),r._uU(3,"Are you sure?"),r.qZA()(),r.TgZ(4,"nb-card-body")(5,"div")(6,"p"),r._uU(7),r.qZA(),r.TgZ(8,"p"),r._uU(9),r.qZA()()(),r.TgZ(10,"nb-card-footer",0)(11,"button",1),r.NdJ("click",function(){return n.confirm()}),r._uU(12,"Delete"),r.qZA(),r.TgZ(13,"button",2),r.NdJ("click",function(){return n.cancel()}),r._uU(14,"Cancel"),r.qZA()()()),2&e&&(r.xp6(7),r.hij("If you delete the ",n.type," it can not be undone."),r.xp6(2),r.Oqu(n.text))},dependencies:[x.Asz,x.yKW,x.XWE,x.ndF,x.DPz],encapsulation:2}),i})();function Vn(i,t){1&i&&(r.TgZ(0,"div",14),r._uU(1," Username contains whitespace "),r.qZA())}function jn(i,t){if(1&i&&(r.TgZ(0,"div"),r.YNc(1,Vn,2,0,"div",13),r.qZA()),2&i){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",null==e.form.errors?null:e.form.errors.containsWhitespace)}}function hn(i,t){1&i&&(r.TgZ(0,"div")(1,"nb-form-field",4),r._UZ(2,"input",15),r.qZA()())}function Yn(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div",16)(1,"button",17),r.NdJ("click",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.downloadCredentials())}),r._uU(2,"Download Credentials"),r.qZA()()}}function Jn(i,t){if(1&i&&(r.TgZ(0,"p")(1,"nb-checkbox",18),r._uU(2),r.qZA()()),2&i){const e=t.$implicit;r.xp6(1),r.Q6J("formControlName",e),r.xp6(1),r.Oqu(e)}}let un=(()=>{class i{constructor(e,n,o){this.dialogRef=e,this.fb=n,this.datePipe=o,this.DialogAction=xt,this.roles=Object.values(Jt.u),this.buttonText=""}ngOnInit(){console.log(this.data),this.user=this.data.content,this.action=this.data.action,this.title="Editing user...",this.roleOptions=this.fb.group(this.roles.reduce((e,n)=>(e[n]=this.getRoleOptions(n),e),{})),this.data.action===xt.UPDATE?(this.form=this.fb.group({name:[this.user.name],email:[this.user.email],password:[this.user.password],roles:[this.user.roles]}),this.buttonText="Save changes",this.form.get("name").disable()):(this.buttonText="Create",this.title="Create new user...",this.form=this.fb.group({name:["",oo.containsWhitespace],email:[""],password:[""],roles:[this.roleOptions]}))}get name(){return this.form.get("name")}getRoleOptions(e){return this.user.roles.includes(e)}doAction(){var e,n;const o=null!==(e=this.datePipe.transform(new Date,"dd/MM/yyyy HH:mm"))&&void 0!==e?e:"",a=Object.keys(this.roleOptions.value).filter(d=>this.roleOptions.value[d]),c={_id:this.user._id,created_at:o,email:this.form.value.email,password:this.form.value.password,roles:a,name:null!==(n=this.form.value.name)&&void 0!==n?n:this.user.name};this.dialogRef.close({event:this.action,data:c})}closeDialog(){this.dialogRef.close({event:xt.CANCEL})}downloadCredentials(){const e={element:{dynamicDownload:null}},n=Object.assign({},this.form.getRawValue());delete n.roles,console.log(n);const o="credentials.json";e.element.dynamicDownload||(e.element.dynamicDownload=document.createElement("a"));const a=e.element.dynamicDownload,c=o.indexOf(".json")>-1?"text/json":"text/plain";a.setAttribute("href",`data:${c};charset=utf-8,${encodeURIComponent(JSON.stringify(n))}`),a.setAttribute("download",o);const d=new MouseEvent("click");a.dispatchEvent(d)}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.X4l),r.Y36(k.qu),r.Y36(Y.uU))},i.\u0275cmp=r.Xpm({type:i,selectors:[["dialog-content-example-dialog"]],inputs:{data:"data",test:"test"},decls:22,vars:9,consts:[[3,"formGroup"],[1,"full-width","input"],["formControlName","name","nbInput","","placeholder","Username"],[4,"ngIf"],[1,"full-width"],["email","","formControlName","email","nbInput","","required","","placeholder","E-Mail","type","email"],["class","download-credentials",4,"ngIf"],[1,"w3-col","l12","s12","m12"],[1,"example-section",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"dialog-footer"],["nbButton","","status","primary",3,"disabled","click"],["nbButton","","status","accent",3,"click"],["class","alert alert-danger",4,"ngIf"],[1,"alert","alert-danger"],["formControlName","password","placeholder","Password","nbInput","","required",""],[1,"download-credentials"],["nbButton","","status","primary",3,"click"],[3,"formControlName"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header"),r._uU(2),r.qZA(),r.TgZ(3,"nb-card-body")(4,"form",0)(5,"nb-form-field",1),r._UZ(6,"input",2),r.YNc(7,jn,2,1,"div",3),r.qZA(),r.TgZ(8,"nb-form-field",4),r._UZ(9,"input",5),r.qZA(),r.YNc(10,hn,3,0,"div",3),r.YNc(11,Yn,3,0,"div",6),r.TgZ(12,"div",7)(13,"h3"),r._uU(14,"Roles"),r.qZA(),r.TgZ(15,"section",8),r.YNc(16,Jn,3,2,"p",9),r.qZA()()()(),r.TgZ(17,"nb-card-footer",10)(18,"button",11),r.NdJ("click",function(){return n.doAction()}),r._uU(19),r.qZA(),r.TgZ(20,"button",12),r.NdJ("click",function(){return n.closeDialog()}),r._uU(21,"Cancel"),r.qZA()()()),2&e&&(r.xp6(2),r.Oqu(n.title),r.xp6(2),r.Q6J("formGroup",n.form),r.xp6(3),r.Q6J("ngIf",n.name.touched&&n.name.invalid),r.xp6(3),r.Q6J("ngIf",n.action===n.DialogAction.ADD),r.xp6(1),r.Q6J("ngIf",n.action===n.DialogAction.ADD),r.xp6(4),r.Q6J("formGroup",n.roleOptions),r.xp6(1),r.Q6J("ngForOf",n.roles),r.xp6(2),r.Q6J("disabled",!n.form.valid),r.xp6(1),r.Oqu(n.buttonText))},dependencies:[Y.sg,Y.O5,k._Y,k.Fj,k.JJ,k.JL,k.Q7,k.on,k.sg,k.u,x.Asz,x.yKW,x.XWE,x.ndF,x.DPz,x.h8i,x.jBG,x.NTf],styles:[".download-credentials[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;padding-right:8px}","nb-form-field[_ngcontent-%COMP%]{padding:10px 0}","button[_ngcontent-%COMP%]{margin:10px 0 0 10px}"]}),i})();class oo{static containsWhitespace(t){return t.value.indexOf(" ")>0?{containsWhitespace:!0}:null}}function Gn(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"button",24),r.NdJ("click",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.resetSearch())}),r._UZ(1,"nb-icon",25),r.qZA()}}function Zr(i,t){if(1&i&&(r.TgZ(0,"nb-option",26),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.Q6J("value",e),r.xp6(1),r.hij(" ",e," ")}}function Q(i,t){1&i&&(r.TgZ(0,"th",27),r._uU(1,"Username"),r.qZA())}function me(i,t){if(1&i&&(r.TgZ(0,"td",28),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.xp6(1),r.Oqu(e.name)}}function gt(i,t){1&i&&(r.TgZ(0,"th",29),r._uU(1,"Registered at"),r.qZA())}function ro(i,t){if(1&i&&(r.TgZ(0,"td",30),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.xp6(1),r.Oqu(e.created_at)}}function $n(i,t){1&i&&(r.TgZ(0,"th",27),r._uU(1,"Roles"),r.qZA())}function Qn(i,t){if(1&i&&r._UZ(0,"nb-tag",33),2&i){const e=t.$implicit;r.ekj("admin-chip","Admin"===e)("provider-chip","Application_Provider"===e)("organization-chip","Organization_Admin"===e)("infra-chip","Infrastructure_Provider"===e),r.Q6J("text",e)}}function Xn(i,t){if(1&i&&(r.TgZ(0,"td",28)(1,"nb-tag-list",31),r.YNc(2,Qn,1,9,"nb-tag",32),r.qZA()()),2&i){const e=t.$implicit;r.xp6(2),r.Q6J("ngForOf",e.roles)}}function Ye(i,t){1&i&&r._UZ(0,"th",34)}function Kn(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"td",35)(1,"button",36),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.openDialog(c.DialogAction.UPDATE,a))}),r._UZ(2,"nb-icon",37),r.qZA(),r.TgZ(3,"button",36),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.openDeleteDialog(a))}),r._UZ(4,"nb-icon",38),r.qZA()()}}function Di(i,t){1&i&&r._UZ(0,"tr",39)}function zt(i,t){1&i&&r._UZ(0,"tr",40)}let Je=(()=>{class i{constructor(e,n,o,a,c,d,u,p){this.router=e,this.route=n,this.api=o,this.dialog=a,this.datePipe=c,this.notifyService=d,this.store=u,this.userService=p,this.DialogAction=xt,this.displayedColumns=["name","created_at","roles","symbol"],this.searchedUsers=[],this.searchText="",this.selectedItems=[""],this.dropdown=new k.NI,this.dropdownList=[],this.users$=this.store.pipe((0,W.Ys)(Ue.f))}ngOnInit(){this.dropdownList=Object.values(Jt.u),this.loadData();const e=this.userService.getOrganization();this.store.dispatch((0,nt.Y8)({organization_id:e})),this.users$.subscribe(n=>console.log(n))}loadData(){this.route.queryParams.subscribe(e=>{if(this.searchText=e.searchText,this.selectedItems=[],e.searchRoles){let n=[];Array.isArray(e.searchRoles)?n=e.searchRoles:n.push(e.searchRoles),this.dropdown.patchValue(n),n.forEach(o=>{var a;const c=null!==(a=this.dropdownList.find(d=>d===o))&&void 0!==a?a:"";this.selectedItems.push(c)})}this.doFilter("")})}doFilter(e){console.log("Filter"),this.searchText=e,this.users$.subscribe(n=>{this.searchedUsers=n.filter(o=>this.nameFilter(o)&&this.roleFilter(o)),console.log(this.searchedUsers)}),this.selectedItems=this.dropdown.value,console.log(this.selectedItems)}nameFilter(e){return console.log(this.searchText),!this.searchText||0===this.searchText.length||-1!==e.name.toLowerCase().indexOf(this.searchText.toLowerCase())}roleFilter(e){return!this.selectedItems||0===this.selectedItems.length||this.selectedItems.some(n=>"None"===n&&0===e.roles.length||e.roles.some(o=>o===n))}deleteUser(e){this.store.dispatch((0,nt.h8)({user:e})),this.doFilter(this.searchText)}openDeleteDialog(e){this.dialog.open(je,{context:{text:"Delete user: "+e.name,type:"user"}}).onClose.subscribe(({event:a})=>{!0===a&&this.deleteUser(e)})}openDialog(e,n){e===xt.ADD&&(n={_id:{$oid:""},created_at:"",email:"",name:"",password:"",roles:[]});const o={content:n,action:e};console.log(o),this.dialog.open(un,{context:{data:o}}).onClose.subscribe(c=>{c.event===xt.ADD?this.store.dispatch((0,nt.l1)({user:c.data})):c.event===xt.UPDATE&&this.store.dispatch((0,nt.Nq)({user:c.data}))})}resetSearch(){this.searchText="",this.doFilter("")}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(K.F0),r.Y36(K.gz),r.Y36(fe.s),r.Y36(x.Gln),r.Y36(Y.uU),r.Y36(qe.g),r.Y36(W.yh),r.Y36(Pi.K))},i.\u0275cmp=r.Xpm({type:i,selectors:[["ng-component"]],decls:34,vars:7,consts:[[1,"content-cards"],[1,"serviceCard"],[1,"w3-row","user-search"],[1,"w3-col","l4","m4"],["type","text","fullWidth","","nbInput","","placeholder","Search by username",3,"ngModel","ngModelChange"],["nbSuffix","","nbButton","","ghost","",3,"click",4,"ngIf"],["fullWidth","","multiple","","placeholder","Multiple Select",3,"formControl","selectedChange"],[3,"value",4,"ngFor","ngForOf"],[1,"w3-col","l4","m4","createDiv"],["nbButton","","size","small","status","basic",3,"click"],["icon","plus"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["class","registeredRow","mat-header-cell","",4,"matHeaderCellDef"],["class","registeredRow","mat-cell","",4,"matCellDef"],["matColumnDef","roles"],["matColumnDef","symbol"],["mat-header-cell","","class","alignCenter",4,"matHeaderCellDef"],["mat-cell","","class","alignRight",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["nbSuffix","","nbButton","","ghost","",3,"click"],["icon","close","pack","eva"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"registeredRow"],["mat-cell","",1,"registeredRow"],["aria-label","roles"],["selected","",3,"text","admin-chip","provider-chip","organization-chip","infra-chip",4,"ngFor","ngForOf"],["selected","",3,"text"],["mat-header-cell","",1,"alignCenter"],["mat-cell","",1,"alignRight"],["nbButton","","ghost","",3,"click"],["icon","settings","pack","eva"],["icon","trash","pack","eva"],["mat-header-row",""],["mat-row",""]],template:function(e,n){1&e&&(r.TgZ(0,"div",0)(1,"nb-card",1)(2,"nb-card-header")(3,"h1"),r._uU(4,"User Management"),r.qZA()(),r.TgZ(5,"nb-card-body")(6,"div",2)(7,"div",3)(8,"nb-form-field")(9,"input",4),r.NdJ("ngModelChange",function(a){return n.searchText=a})("ngModelChange",function(a){return n.doFilter(a)}),r.qZA(),r.YNc(10,Gn,2,0,"button",5),r.qZA()(),r.TgZ(11,"div",3)(12,"nb-card-body")(13,"nb-select",6),r.NdJ("selectedChange",function(){return n.doFilter(n.searchText)}),r.YNc(14,Zr,2,2,"nb-option",7),r.qZA()()(),r.TgZ(15,"div",8)(16,"button",9),r.NdJ("click",function(){return n.openDialog(n.DialogAction.ADD)}),r._UZ(17,"nb-icon",10),r._uU(18," Create New User "),r.qZA()()(),r.TgZ(19,"table",11),r.ynx(20,12),r.YNc(21,Q,2,0,"th",13),r.YNc(22,me,2,1,"td",14),r.BQk(),r.ynx(23,15),r.YNc(24,gt,2,0,"th",16),r.YNc(25,ro,2,1,"td",17),r.BQk(),r.ynx(26,18),r.YNc(27,$n,2,0,"th",13),r.YNc(28,Xn,3,1,"td",14),r.BQk(),r.ynx(29,19),r.YNc(30,Ye,1,0,"th",20),r.YNc(31,Kn,5,0,"td",21),r.BQk(),r.YNc(32,Di,1,0,"tr",22),r.YNc(33,zt,1,0,"tr",23),r.qZA()()()()),2&e&&(r.xp6(9),r.Q6J("ngModel",n.searchText),r.xp6(1),r.Q6J("ngIf",n.searchText),r.xp6(3),r.Q6J("formControl",n.dropdown),r.xp6(1),r.Q6J("ngForOf",n.dropdownList),r.xp6(5),r.Q6J("dataSource",n.searchedUsers),r.xp6(13),r.Q6J("matHeaderRowDef",n.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",n.displayedColumns))},dependencies:[Y.sg,Y.O5,k.Fj,k.JJ,k.On,k.oH,Xi,Ci,tn,oi,Ki,en,Be,Mi,Rt,Dn,x.Asz,x.yKW,x.ndF,x.DPz,x.h8i,x.fMN,x.jBG,x.yyc,x.rs,x.q51,x.c2L,x.d0f],styles:["nb-tag[_ngcontent-%COMP%]{border:none}@media only screen and (max-width: 450px){.registeredRow[_ngcontent-%COMP%]{display:none}}.alignRight[_ngcontent-%COMP%]{text-align:right}.alignCenter[_ngcontent-%COMP%]{text-align:center}.search[_ngcontent-%COMP%]{width:100%;margin-top:3vh}.input-field[_ngcontent-%COMP%]{width:90%}.user-search[_ngcontent-%COMP%]{padding:20px 0;display:flex;align-items:center}.createDiv[_ngcontent-%COMP%]{text-align:end}.admin-chip[_ngcontent-%COMP%]{background-color:#de686b!important}.provider-chip[_ngcontent-%COMP%]{background-color:#3da23c!important}.organization-chip[_ngcontent-%COMP%]{background-color:#ada23c!important}.infra-chip[_ngcontent-%COMP%]{background-color:#2199a8!important}"]}),i})();function ao(i,t){1&i&&(r.TgZ(0,"div",9),r._uU(1," Old and new password should not be the same "),r.qZA())}function lo(i,t){if(1&i&&(r.TgZ(0,"div"),r.YNc(1,ao,2,0,"div",8),r.qZA()),2&i){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",e.form.errors.oldAndNewPassDifferent)}}function Ir(i,t){1&i&&(r.TgZ(0,"div",9),r._uU(1," Confirmed password is not the same "),r.qZA())}function co(i,t){if(1&i&&(r.TgZ(0,"div"),r.YNc(1,Ir,2,0,"div",8),r.qZA()),2&i){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",e.form.errors.newPasswordsSame)}}let ts=(()=>{class i{constructor(e,n,o,a,c){this.dialogRef=e,this.data=n,this.api=o,this.notifyService=a,this.fb=c,this.user=n.content,this.form=c.group({oldPassword:new k.NI("",k.kI.required),newPassword:new k.NI("",k.kI.required),confirmNewPassword:new k.NI("",k.kI.required)},[ho.oldAndNewPassDifferent,ho.newPasswordsSame])}get confirmNewPassword(){return this.form.get("confirmNewPassword")}get newPassword(){return this.form.get("newPassword")}closeDialog(){this.dialogRef.close({event:"Cancel"})}updatePassword(){const e=this.form.get("oldPassword"),n=this.form.get("newPassword");e?.valid&&n?.valid&&this.api.changePassword(this.user.name,e.value,n.value).subscribe(()=>{this.notifyService.notify(ci.k.success,"Password changed"),this.closeDialog()})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.X4l),r.Y36(x.R_,8),r.Y36(fe.s),r.Y36(qe.g),r.Y36(k.qu))},i.\u0275cmp=r.Xpm({type:i,selectors:[["dialog-content-example-dialog"]],decls:19,vars:4,consts:[[3,"formGroup","ngSubmit"],[1,"full-width"],["autocomplete","on","formControlName","oldPassword","nbInput","","placeholder","Old Password","type","password"],["autocomplete","on","formControlName","newPassword","nbInput","","placeholder","New password","type","password"],[4,"ngIf"],["autocomplete","on","formControlName","confirmNewPassword","nbInput","","placeholder","Confirm Password","type","password"],["nbButton","","status","primary","type","submit",3,"disabled"],["nbButton","","status","accent","type","button",3,"click"],["class","alert alert-danger",4,"ngIf"],[1,"alert","alert-danger"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header"),r._uU(2,"Change Password"),r.qZA(),r.TgZ(3,"nb-card-body")(4,"form",0),r.NdJ("ngSubmit",function(){return n.updatePassword()}),r.TgZ(5,"nb-form-field",1),r._UZ(6,"input",2),r.qZA(),r.TgZ(7,"nb-form-field",1),r._UZ(8,"input",3),r.YNc(9,lo,2,1,"div",4),r.qZA(),r.TgZ(10,"nb-form-field",1),r._UZ(11,"input",5),r.YNc(12,co,2,1,"div",4),r.qZA(),r._UZ(13,"br"),r.TgZ(14,"div")(15,"button",6),r._uU(16,"Update password"),r.qZA(),r.TgZ(17,"button",7),r.NdJ("click",function(){return n.closeDialog()}),r._uU(18,"Cancel"),r.qZA()()()()()),2&e&&(r.xp6(4),r.Q6J("formGroup",n.form),r.xp6(5),r.Q6J("ngIf",n.newPassword.touched&&n.form.invalid),r.xp6(3),r.Q6J("ngIf",n.confirmNewPassword.touched&&n.form.invalid),r.xp6(3),r.Q6J("disabled",!n.form.valid))},dependencies:[Y.O5,k._Y,k.Fj,k.JJ,k.JL,k.sg,k.u,x.Asz,x.yKW,x.ndF,x.DPz,x.h8i,x.jBG],styles:["nb-form-field[_ngcontent-%COMP%]{padding:10px 0}","button[_ngcontent-%COMP%]{margin:0 5px}"]}),i})();class ho{static oldAndNewPassDifferent(t){var e,n;return(null===(e=t.get("oldPassword"))||void 0===e?void 0:e.value)!==(null===(n=t.get("newPassword"))||void 0===n?void 0:n.value)?null:{oldAndNewPassDifferent:!0}}static newPasswordsSame(t){var e,n;return(null===(e=t.get("confirmNewPassword"))||void 0===e?void 0:e.value)===(null===(n=t.get("newPassword"))||void 0===n?void 0:n.value)?null:{newPasswordsSame:!0}}}var uo=D(5657);const lt=function(i){return{"background-color":i}};function zr(i,t){if(1&i&&r._UZ(0,"nb-tag",11),2&i){const e=t.$implicit,n=r.oxw(2);r.Q6J("ngStyle",r.VKq(2,lt,n.getRoleBackgroundColor(e)))("text",e)}}function le(i,t){if(1&i&&(r.TgZ(0,"nb-option",12),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.Q6J("value",e.value),r.xp6(1),r.hij(" ",e.name,"")}}function Zi(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"form",1),r.NdJ("ngSubmit",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.onSubmit())}),r.TgZ(1,"nb-form-field"),r._UZ(2,"input",2),r.ALo(3,"async"),r.qZA(),r.TgZ(4,"nb-form-field"),r._UZ(5,"input",3),r.qZA(),r.TgZ(6,"h5"),r._uU(7,"Your Roles"),r.qZA(),r.TgZ(8,"nb-tag-list",4),r.YNc(9,zr,1,4,"nb-tag",5),r.ALo(10,"async"),r.qZA(),r._UZ(11,"br"),r.TgZ(12,"h5"),r._uU(13,"Theme"),r.qZA(),r.TgZ(14,"nb-select",6),r.NdJ("selectedChange",function(o){r.CHM(e);const a=r.oxw();return r.KtG(a.changeTheme(o))}),r.YNc(15,le,2,2,"nb-option",7),r.qZA(),r._UZ(16,"br"),r.TgZ(17,"div",8)(18,"button",9),r._uU(19,"Save"),r.qZA(),r.TgZ(20,"button",10),r.NdJ("click",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.openDialog(o.user))}),r._uU(21,"Change Password"),r.qZA()()()}if(2&i){const e=r.oxw();r.Q6J("formGroup",e.form),r.xp6(2),r.Q6J("value",r.lcZ(3,6,e.user$).name),r.xp6(7),r.Q6J("ngForOf",r.lcZ(10,8,e.user$).roles),r.xp6(5),r.Q6J("selected",e.currentTheme),r.xp6(1),r.Q6J("ngForOf",e.themes),r.xp6(3),r.Q6J("disabled",!e.form.valid)}}let fo=(()=>{class i{constructor(e,n,o,a,c,d){this.fb=e,this.dialog=n,this.userService=o,this.store=a,this.themeService=c,this.cookieService=d,this.currentTheme="default",this.themes=[{value:"default",name:"Light"},{value:"dark",name:"Dark"},{value:"cosmic",name:"Cosmic"},{value:"corporate",name:"Corporate"}],this.user$=this.store.pipe((0,W.Ys)(Ue.H)),this.form=e.group({email:["",k.kI.email]})}ngOnInit(){this.currentTheme=this.themeService.currentTheme,this.store.dispatch((0,nt.PR)({name:this.userService.getUsername()})),this.user$.subscribe(e=>{this.user=e,this.form.patchValue({email:this.user.email})})}onSubmit(){var e;const n=Object.assign(Object.assign({},this.user),{email:null===(e=this.form.get("email"))||void 0===e?void 0:e.value});this.store.dispatch((0,nt.Nq)({user:n}))}openDialog(e){this.dialog.open(ts,{context:{data:{content:e}}})}changeTheme(e){this.themeService.changeTheme(e),this.cookieService.set("themeCookie",JSON.stringify({theme:e}))}getRoleBackgroundColor(e){switch(e){case"Admin":return"#DE686B";case"Application_Provider":return"#3DA23C";case"Organization_Admin":return"#ADA23C";case"Infrastructure_Provider":return"#395bb2";default:return"#c4c4c5"}}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu),r.Y36(x.Gln),r.Y36(Pi.K),r.Y36(W.yh),r.Y36(x.WMF),r.Y36(uo.N))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-profile"]],decls:7,vars:3,consts:[[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],["type","text","nbInput","","disabled","","placeholder","Name",3,"value"],["type","email","nbInput","","formControlName","email","placeholder","E-mail"],["aria-label","roles"],["selected","","appearance","filled","status","primary",3,"ngStyle","text",4,"ngFor","ngForOf"],[3,"selected","selectedChange"],[3,"value",4,"ngFor","ngForOf"],[1,"alignCenter"],["color","primary","nbButton","","type","submit",3,"disabled"],["type","button","nbButton","","color","primary",3,"click"],["selected","","appearance","filled","status","primary",3,"ngStyle","text"],[3,"value"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h1"),r._uU(3,"Profile Management"),r.qZA()(),r.TgZ(4,"nb-card-body"),r.YNc(5,Zi,22,10,"form",0),r.ALo(6,"async"),r.qZA()()),2&e&&(r.xp6(5),r.Q6J("ngIf",r.lcZ(6,1,n.user$)))},dependencies:[Y.sg,Y.O5,Y.PC,k._Y,k.Fj,k.JJ,k.JL,k.sg,k.u,x.Asz,x.yKW,x.ndF,x.DPz,x.h8i,x.jBG,x.rs,x.q51,x.c2L,x.d0f,Y.Ov],styles:[".alignCenter[_ngcontent-%COMP%]{text-align:center}.alignCenter[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 5px}nb-form-field[_ngcontent-%COMP%], nb-select[_ngcontent-%COMP%]{padding:10px 0}nb-tag[_ngcontent-%COMP%]{border:none}"]}),i})(),Er=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-infrastructure"]],decls:6,vars:0,template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h1"),r._uU(3,"Infrastructure"),r.qZA()(),r.TgZ(4,"nb-card-body"),r._uU(5," ToDo - This has to be implemented."),r.qZA()())},dependencies:[x.Asz,x.yKW,x.ndF]}),i})();var fn=D(9118);function Fr(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"button",11),r.NdJ("click",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.resetSearch())}),r._UZ(1,"nb-icon",12),r.qZA()}}function po(i,t){if(1&i&&(r.TgZ(0,"nb-card-body",13)(1,"nb-checkbox",14),r._uU(2),r.qZA()()),2&i){const e=t.$implicit;r.xp6(1),r.Q6J("formControlName",e.name),r.xp6(1),r.hij(" ",e.name,"")}}function Rr(i,t){1&i&&(r.TgZ(0,"p"),r._uU(1,"There are no additional users that could be added"),r.qZA())}let Nr=(()=>{class i{constructor(e,n,o){this.dialogRef=e,this.store=n,this.fb=o,this.DialogAction=xt,this.searchText="",this.userFiltered=[],this.user$=this.store.pipe((0,W.Ys)(Ue.f))}ngOnInit(){this.store.dispatch((0,nt.Y8)({organization_id:""})),this.user$.subscribe(e=>{const n=this.data.currentMember.map(o=>o.name);this.user=e.filter(o=>!n.includes(o.name)),this.selection=this.fb.group(this.user.map(o=>o.name).reduce((o,a)=>(o[a]=!1,o),{})),this.search("")})}doAction(){const e=Object.keys(this.selection.value).filter(n=>this.selection.value[n]);this.user=this.user.filter(n=>e.includes(n.name)),this.dialogRef.close({event:xt.ADD,data:this.user})}closeDialog(){this.dialogRef.close({event:xt.CANCEL})}resetSearch(){this.searchText="",this.search("")}search(e){this.userFiltered=this.user.filter(n=>{var o;return-1!==n.name.toLowerCase().indexOf(null!==(o=e?.toLowerCase())&&void 0!==o?o:"")})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.X4l),r.Y36(W.yh),r.Y36(k.qu))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-add-member"]],inputs:{data:"data"},decls:20,vars:5,consts:[[1,"w3-row"],[1,"w3-col","l12","s12","m12"],["appearance","fill",1,"input-field","searchForm"],["placeholder","Search user","nbInput","",3,"ngModel","ngModelChange"],["nbSuffix","","nbButton","","ghost","",3,"click",4,"ngIf"],[3,"formGroup"],["class","userEntry",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"dialog-footer"],["status","primary","nbButton","",3,"click"],["status","basic","nbButton","",3,"click"],["nbSuffix","","nbButton","","ghost","",3,"click"],["icon","plus-circle-outline"],[1,"userEntry"],[3,"formControlName"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h2"),r._uU(3,"Add Member"),r.qZA()(),r.TgZ(4,"nb-card-body")(5,"div",0)(6,"div",1)(7,"nb-form-field",2)(8,"input",3),r.NdJ("ngModelChange",function(a){return n.search(a)})("ngModelChange",function(a){return n.searchText=a}),r.qZA(),r.YNc(9,Fr,2,0,"button",4),r.qZA()()(),r.TgZ(10,"nb-section",5)(11,"h4"),r._uU(12,"Member"),r.qZA(),r.YNc(13,po,3,2,"nb-card-body",6),r.qZA(),r.YNc(14,Rr,2,0,"p",7),r.qZA(),r.TgZ(15,"nb-card-footer",8)(16,"button",9),r.NdJ("click",function(){return n.doAction()}),r._uU(17,"Add"),r.qZA(),r.TgZ(18,"button",10),r.NdJ("click",function(){return n.closeDialog()}),r._uU(19,"Cancel"),r.qZA()()()),2&e&&(r.xp6(8),r.Q6J("ngModel",n.searchText),r.xp6(1),r.Q6J("ngIf",n.searchText),r.xp6(1),r.Q6J("formGroup",n.selection),r.xp6(3),r.Q6J("ngForOf",n.userFiltered),r.xp6(1),r.Q6J("ngIf",0===n.userFiltered.length))},dependencies:[Y.sg,Y.O5,k.Fj,k.JJ,k.JL,k.On,k.sg,k.u,x.Asz,x.yKW,x.XWE,x.ndF,x.DPz,x.h8i,x.fMN,x.jBG,x.yyc,x.NTf],styles:[".mat-typography[_ngcontent-%COMP%]{min-width:30vw}.userEntry[_ngcontent-%COMP%]{padding:0!important;display:flex}"]}),i})();function es(i,t){if(1&i&&(r.TgZ(0,"p"),r._uU(1),r.qZA()),2&i){const e=r.oxw().$implicit;r.xp6(1),r.Oqu(e.roles)}}function Br(i,t){if(1&i&&(r.TgZ(0,"nb-option",15),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.Q6J("value",e),r.xp6(1),r.Oqu(e)}}function ge(i,t){if(1&i&&(r.TgZ(0,"nb-form-field",12)(1,"nb-select",13),r.YNc(2,Br,2,2,"nb-option",14),r.qZA()()),2&i){const e=r.oxw().index,n=r.oxw();r.xp6(1),r.Q6J("formControl",n.roles[e]),r.xp6(1),r.Q6J("ngForOf",n.rolesList)}}function Ur(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){r.CHM(e);const o=r.oxw().index,a=r.oxw();return r.KtG(a.saveRoles(o))}),r._UZ(1,"nb-icon",16),r.qZA()}}function mo(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){r.CHM(e);const o=r.oxw().index,a=r.oxw();return r.KtG(a.toggleEdit(o))}),r._UZ(1,"nb-icon",17),r.qZA()}}function Le(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div",3)(1,"div",4)(2,"nb-icon"),r._uU(3,"account_circle"),r.qZA(),r.TgZ(4,"p"),r._uU(5),r.qZA()(),r.TgZ(6,"div",5),r.YNc(7,es,2,1,"p",6),r.YNc(8,ge,3,2,"nb-form-field",7),r.qZA(),r.TgZ(9,"div",8),r.YNc(10,Ur,2,0,"button",9),r.YNc(11,mo,2,0,"button",9),r.TgZ(12,"button",10),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.removeMember(a))}),r._UZ(13,"nb-icon",11),r.qZA()()()}if(2&i){const e=t.$implicit,n=t.index,o=r.oxw();r.xp6(5),r.hij("\xa0",e.name,""),r.xp6(2),r.Q6J("ngIf",!o.editItem[n]),r.xp6(1),r.Q6J("ngIf",o.editItem[n]),r.xp6(2),r.Q6J("ngIf",o.editItem[n]),r.xp6(1),r.Q6J("ngIf",!o.editItem[n])}}function go(i,t){1&i&&(r.TgZ(0,"div",18)(1,"p"),r._uU(2,"No member found in this organization"),r.qZA()())}let _o=(()=>{class i{constructor(e){this.dialog=e,this.removeEvent=new r.vpe,this.updateRoles=new r.vpe,this.rolesList=Object.values(Jt.u).filter(n=>n!==Jt.u.ADMIN),this.roles=[]}ngOnInit(){var e;this.editItem=null===(e=this.searchedMember)||void 0===e?void 0:e.map(()=>!1),this.searchedMember.forEach(n=>{this.roles.push(new k.NI({value:n.roles,disabled:!0}))})}removeMember(e){this.dialog.open(je,{context:{data:{text:`Remove ${e.name} from organization`,type:"member"}}}).onClose.subscribe(a=>{!0===a.event&&this.removeEvent.emit(e)})}saveRoles(e){this.toggleEdit(e),this.searchedMember[e].roles=this.roles[e].value,this.updateRoles.emit(this.searchedMember[e])}toggleEdit(e){this.editItem[e]=!this.editItem[e],this.roles[e].disabled?this.roles[e].enable():this.roles[e].disable()}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.Gln))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-member-item"]],inputs:{searchedMember:"searchedMember"},outputs:{removeEvent:"removeEvent",updateRoles:"updateRoles"},decls:3,vars:2,consts:[[1,"member-list"],["class","w3-row member-item",4,"ngFor","ngForOf"],["class","noMember",4,"ngIf"],[1,"w3-row","member-item"],[1,"w3-col","l3","m3","member-item-person"],[1,"w3-col","l6","m6","roleSelect"],[4,"ngIf"],["class","roleSelectField",4,"ngIf"],[1,"w3-col","l3","m3","editButtons"],["nbButton","","ghost","",3,"click",4,"ngIf"],["nbButton","","ghost","",3,"click"],["icon","close-square-outline"],[1,"roleSelectField"],["multiple","",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["icon","save-outline"],["icon","settings-2-outline"],[1,"noMember"]],template:function(e,n){1&e&&(r.TgZ(0,"div",0),r.YNc(1,Le,14,5,"div",1),r.YNc(2,go,3,0,"div",2),r.qZA()),2&e&&(r.xp6(1),r.Q6J("ngForOf",n.searchedMember),r.xp6(1),r.Q6J("ngIf",0===n.searchedMember.length))},dependencies:[Y.sg,Y.O5,k.JJ,k.oH,x.DPz,x.fMN,x.jBG,x.rs,x.q51],styles:[".roleSelect[_ngcontent-%COMP%]{cursor:pointer}.roleSelectField[_ngcontent-%COMP%]{margin-bottom:-1.25em;cursor:pointer;overflow:hidden}.roleSelect[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{overflow:auto;color:gray}.noMember[_ngcontent-%COMP%]{padding-top:50px;text-align:center}.noMember[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:2rem;color:#d3d3d3}.member-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:5px;align-items:center}.member-item-person[_ngcontent-%COMP%]{display:flex;align-items:center}.editButtons[_ngcontent-%COMP%]{text-align:end}"]}),i})();function is(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"div",20)(1,"button",21),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.changeSelected(a))}),r._UZ(2,"nb-icon",22),r._uU(3),r.qZA()()}if(2&i){const e=t.$implicit,n=r.oxw();r.ekj("selected",e._id===(null==n.selected?null:n.selected._id)),r.xp6(3),r.hij(" ",e.name," ")}}function qr(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"button",23),r.NdJ("click",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.resetSearch())}),r._UZ(1,"nb-icon",24),r.qZA()}}function bo(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"app-member-item",25),r.NdJ("removeEvent",function(o){r.CHM(e);const a=r.oxw();return r.KtG(a.remove(o))})("updateRoles",function(o){r.CHM(e);const a=r.oxw();return r.KtG(a.updateOrganization(o))}),r.qZA()}if(2&i){const e=r.oxw();r.Q6J("searchedMember",e.searchedMember)}}let vo=(()=>{class i{constructor(e,n){this.store=e,this.dialog=n,this.back=new r.vpe,this.member=[],this.searchText="",this.searchedMember=[],this.user$=this.store.pipe((0,W.Ys)(Ue.f))}ngOnInit(){if(this.store.dispatch((0,nt.Y8)({organization_id:""})),this.user$.subscribe(e=>{this.user=e,this.getMemberNames()}),this.name=this.selected.name,!this.selected._id){const e=this.selected.name;this.organizations$.subscribe(n=>{var o;this.selected=null!==(o=n.find(a=>a.name===e))&&void 0!==o?o:this.selected})}}getMemberNames(){const e=[],n=this.selected.member.map(o=>o.user_id);this.member=this.user.filter(o=>n.includes(o._id.$oid)),this.member.forEach(o=>{const a=this.selected.member.find(c=>c.user_id===o._id.$oid);e.push(Object.assign(Object.assign({},o),{roles:a.roles}))}),this.member=[...e],this.searchedMember=[...this.member]}changeSelected(e){this.selected=e,this.name=this.selected.name,this.getMemberNames()}addMember(){this.dialog.open(Nr,{context:{data:{currentMember:this.member}}}).onClose.subscribe(n=>{const o=[...this.selected.member];if(n.event===xt.ADD){n.data.forEach(d=>{o.push({user_id:d._id.$oid,roles:[]})});const c=Object.assign(Object.assign({},this.selected),{member:o});this.selected=c,this.store.dispatch((0,nt.FV)({organization:c})),this.store.dispatch((0,nt.Xu)()),this.search("")}})}save(){const e=Object.assign(Object.assign({},this.selected),{name:this.name});this.selected=e,this.store.dispatch((0,nt.FV)({organization:e}))}updateOrganization(e){const n={user_id:e._id.$oid,roles:e.roles},o=this.selected.member.filter(c=>c.user_id!==e._id.$oid),a=Object.assign(Object.assign({},this.selected),{member:[...o,n]});this.store.dispatch((0,nt.FV)({organization:a}))}resetSearch(){this.searchText="",this.search("")}search(e){this.searchedMember=this.member.filter(n=>{var o;return-1!==n.name.toLowerCase().indexOf(null!==(o=e?.toLowerCase())&&void 0!==o?o:"")})}remove(e){const n=Object.assign(Object.assign({},this.selected),{member:this.selected.member.filter(o=>o.user_id!==e._id.$oid)});this.store.dispatch((0,nt.FV)({organization:n})),this.store.dispatch((0,nt.Xu)()),this.member=this.member.filter(o=>o!==e),this.search(this.searchText)}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(W.yh),r.Y36(x.Gln))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-edit-organization"]],inputs:{organizations$:"organizations$",selected:"selected"},outputs:{back:"back"},decls:32,vars:9,consts:[[1,"layout"],[1,"sidenav-buttons"],["nbButton","","ghost","",3,"click"],["nbSuffix","","icon","arrow-circle-left-outline"],[1,"organization-list"],["class","organization-entry",3,"selected",4,"ngFor","ngForOf"],["fullWidth",""],["tabTitle","General",1,"tab"],[1,"tab"],[1,"input-field","searchForm"],["placeholder","Organization Name","nbInput","","type","text",3,"ngModel","change","ngModelChange"],[3,"tabTitle"],[1,"w3-row","addOrganization"],[1,"w3-col","l7","m8"],["placeholder","Search by username","nbInput","","type","text",3,"ngModel","ngModelChange"],["nbSuffix","",3,"click",4,"ngIf"],[1,"w3-col","l5","m4","w3-right-align"],["nbButton","","status","primary",3,"click"],["icon","plus"],[3,"searchedMember","removeEvent","updateRoles",4,"ngIf"],[1,"organization-entry"],["nbButton","","ghost","","type","button",1,"organization-button",3,"click"],["icon","radio-button-off"],["nbSuffix","",3,"click"],["icon","close-outline"],[3,"searchedMember","removeEvent","updateRoles"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-layout",0)(1,"nb-sidebar")(2,"div",1)(3,"button",2),r.NdJ("click",function(){return n.back.emit()}),r._UZ(4,"nb-icon",3),r._uU(5," Back "),r.qZA()(),r.TgZ(6,"div",4),r.YNc(7,is,4,3,"div",5),r.ALo(8,"async"),r.qZA()(),r.TgZ(9,"nb-layout-column")(10,"div")(11,"h2"),r._uU(12),r.qZA()(),r.TgZ(13,"nb-tabset",6)(14,"nb-tab",7)(15,"div",8)(16,"nb-form-field",9)(17,"p"),r._uU(18,"Organization Name:"),r.qZA(),r.TgZ(19,"input",10),r.NdJ("change",function(){return n.save()})("ngModelChange",function(a){return n.name=a}),r.qZA()()()(),r.TgZ(20,"nb-tab",11)(21,"div",8)(22,"div",12)(23,"div",13)(24,"nb-form-field",9)(25,"input",14),r.NdJ("ngModelChange",function(a){return n.search(a)})("ngModelChange",function(a){return n.searchText=a}),r.qZA(),r.YNc(26,qr,2,0,"button",15),r.qZA()(),r.TgZ(27,"div",16)(28,"button",17),r.NdJ("click",function(){return n.addMember()}),r._UZ(29,"nb-icon",18),r._uU(30," Add member "),r.qZA()()(),r.YNc(31,bo,1,1,"app-member-item",19),r.qZA()()()()()),2&e&&(r.xp6(7),r.Q6J("ngForOf",r.lcZ(8,7,n.organizations$)),r.xp6(5),r.hij("Current Organization: ",null==n.selected?null:n.selected.name,""),r.xp6(7),r.Q6J("ngModel",n.name),r.xp6(1),r.MGl("tabTitle","Manage Members (",null==n.selected?null:n.selected.member.length,")"),r.xp6(5),r.Q6J("ngModel",n.searchText),r.xp6(1),r.Q6J("ngIf",n.searchText),r.xp6(5),r.Q6J("ngIf",0!==n.user.length))},dependencies:[Y.sg,Y.O5,k.Fj,k.JJ,k.On,x.DPz,x.Aqw,x.dP_,x.nZR,x.h8i,x.fMN,x.jBG,x.yyc,x.kyn,x.TR4,_o,Y.Ov],styles:[".sidenav-buttons[_ngcontent-%COMP%]{justify-content:space-between;padding-top:80px;padding-right:10px}.organization-list[_ngcontent-%COMP%]{padding-top:40px}.tab[_ngcontent-%COMP%]{padding:20px}.addOrganization[_ngcontent-%COMP%]{margin-bottom:20px}.layout[_ngcontent-%COMP%]{height:50vh}"]}),i})();function Hr(i,t){1&i&&(r.TgZ(0,"th",16),r._uU(1,"Organization"),r.qZA())}function Wr(i,t){if(1&i&&(r.TgZ(0,"td",17),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.xp6(1),r.Oqu(e.name)}}function ns(i,t){1&i&&(r.TgZ(0,"th",16),r._uU(1,"Member"),r.qZA())}function Vr(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"td",17)(1,"button",18),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.editOrganization(a))}),r._uU(2),r._UZ(3,"nb-icon",19),r.qZA()()}if(2&i){const e=t.$implicit;r.xp6(2),r.hij(" ",e.member.length," ")}}function yo(i,t){1&i&&r._UZ(0,"th",20)}function xo(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"td",21)(1,"button",22),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.openDeleteDialog(a))}),r._UZ(2,"nb-icon",23),r.qZA()()}}function pn(i,t){1&i&&r._UZ(0,"tr",24)}function Ge(i,t){1&i&&r._UZ(0,"tr",25)}let jr=(()=>{class i{constructor(e,n,o,a,c,d,u){this.router=e,this.route=n,this.api=o,this.dialog=a,this.datePipe=c,this.notifyService=d,this.store=u,this.selectedOrga=new r.vpe,this.organizations$=this.store.pipe((0,W.Ys)(fn.m)),this.displayedColumns=["name","roles","symbol"],this.searchedOrganizations=[],this.searchText=""}ngOnInit(){this.organizations$.subscribe(e=>{this.searchedOrganizations=e.filter(n=>this.nameFilter(n,""))})}search(e){this.organizations$.subscribe(n=>{this.searchedOrganizations=n.filter(o=>this.nameFilter(o,e))})}nameFilter(e,n){return!n||0===n.length||-1!==e.name.toLowerCase().indexOf(n.toLowerCase())}editOrganization(e){this.selectedOrga.emit(e)}newOrganization(){const e={name:"newOrganization",member:[]};this.store.dispatch((0,nt.Ey)({organization:e})),this.editOrganization(e)}openDeleteDialog(e){this.dialog.open(je,{context:{data:{text:"Delete organization: "+e.name,type:"organization"}}}).onClose.subscribe(a=>{console.log(a),!0===a.event&&this.store.dispatch((0,nt.Mz)({organization:e}))})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(K.F0),r.Y36(K.gz),r.Y36(fe.s),r.Y36(x.Gln),r.Y36(Y.uU),r.Y36(qe.g),r.Y36(W.yh))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-list-organization"]],outputs:{selectedOrga:"selectedOrga"},decls:19,vars:4,consts:[[1,"addOrganization"],["appearance","fill",1,"input-field","searchForm"],["placeholder","Search organization","nbInput","","type","text",3,"ngModel","ngModelChange"],["nbSuffix","","icon","search","pack","eva"],["nbButton","","color","primary",3,"click"],["nbSuffix","","icon","plus-circle-outline","pack","eva"],["mat-table","",1,"search",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","roles"],["matColumnDef","symbol"],["mat-header-cell","","class","alignCenter",4,"matHeaderCellDef"],["mat-cell","","class","alignRight",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["nbTooltipPlacement","start","nbButton","","ghost","","nbTooltip","View members",1,"member",3,"click"],["nbSuffix","","icon","person"],["mat-header-cell","",1,"alignCenter"],["mat-cell","",1,"alignRight"],["nbButton","","ghost","",3,"click"],["icon","trash-2"],["mat-header-row",""],["mat-row",""]],template:function(e,n){1&e&&(r.TgZ(0,"div",0)(1,"nb-form-field",1)(2,"input",2),r.NdJ("ngModelChange",function(a){return n.search(a)})("ngModelChange",function(a){return n.searchText=a}),r.qZA(),r._UZ(3,"nb-icon",3),r.qZA(),r.TgZ(4,"button",4),r.NdJ("click",function(){return n.newOrganization()}),r._UZ(5,"nb-icon",5),r._uU(6," Create Organization "),r.qZA()(),r.TgZ(7,"table",6),r.ynx(8,7),r.YNc(9,Hr,2,0,"th",8),r.YNc(10,Wr,2,1,"td",9),r.BQk(),r.ynx(11,10),r.YNc(12,ns,2,0,"th",8),r.YNc(13,Vr,4,1,"td",9),r.BQk(),r.ynx(14,11),r.YNc(15,yo,1,0,"th",12),r.YNc(16,xo,3,0,"td",13),r.BQk(),r.YNc(17,pn,1,0,"tr",14),r.YNc(18,Ge,1,0,"tr",15),r.qZA()),2&e&&(r.xp6(2),r.Q6J("ngModel",n.searchText),r.xp6(5),r.Q6J("dataSource",n.searchedOrganizations),r.xp6(10),r.Q6J("matHeaderRowDef",n.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",n.displayedColumns))},dependencies:[k.Fj,k.JJ,k.On,Xi,Ci,tn,oi,Ki,en,Be,Mi,Rt,Dn,x.DPz,x.h8i,x.fMN,x.jBG,x.yyc,x.jNv],styles:[".createDiv[_ngcontent-%COMP%]{padding-top:10px}.mat-column-symbol[_ngcontent-%COMP%]{width:32px;text-align:center}.member[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.addOrganization[_ngcontent-%COMP%]{margin-top:20px;display:flex;align-items:center;justify-content:space-between}.searchForm[_ngcontent-%COMP%]{height:48px;width:50vw}table[_ngcontent-%COMP%]{margin-top:40px}"]}),i})();function Ii(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"app-list-organization",3),r.NdJ("selectedOrga",function(o){r.CHM(e);const a=r.oxw();return r.KtG(a.editOrganization(o))}),r.qZA()}}function ee(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"app-edit-organization",4),r.NdJ("back",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.toggleEdit())}),r.qZA()}if(2&i){const e=r.oxw();r.Q6J("organizations$",e.organizations$)("selected",e.selected)}}let wo=(()=>{class i{constructor(e){this.store=e,this.organizations$=this.store.pipe((0,W.Ys)(fn.m)),this.selected=null,this.edit=!0}editOrganization(e){this.selected=e,this.toggleEdit()}toggleEdit(){this.edit=!this.edit}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(W.yh))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-organization"]],decls:7,vars:2,consts:[[1,"serviceCard"],[3,"selectedOrga",4,"ngIf"],[3,"organizations$","selected","back",4,"ngIf"],[3,"selectedOrga"],[3,"organizations$","selected","back"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card",0)(1,"nb-card-header")(2,"h1"),r._uU(3,"Organization Management"),r.qZA()(),r.TgZ(4,"nb-card-body"),r.YNc(5,Ii,1,0,"app-list-organization",1),r.YNc(6,ee,1,2,"app-edit-organization",2),r.qZA()()),2&e&&(r.xp6(5),r.Q6J("ngIf",n.edit),r.xp6(1),r.Q6J("ngIf",!n.edit))},dependencies:[Y.O5,x.Asz,x.yKW,x.ndF,vo,jr]}),i})();var Co=D(1406),De=D(9267);function ss(i,t){if(1&i&&(r.TgZ(0,"nb-radio",4),r._uU(1),r.qZA()),2&i){const e=t.$implicit;r.Q6J("value",e.value)("disabled",e.disabled),r.xp6(1),r.hij(" ",e.label," ")}}function os(i,t){1&i&&(r.TgZ(0,"div"),r._uU(1," This will disable some functions: "),r.TgZ(2,"ul")(3,"li"),r._uU(4,"Users do not receive mail when they change their password"),r.qZA(),r.TgZ(5,"li"),r._uU(6,"New users do not receive a mail that an account was created for them"),r.qZA(),r.TgZ(7,"li"),r._uU(8," Users can't reset their password in the usual way because they can't receive the mail, the admin has to reset the password. "),r.qZA()()())}function Yr(i,t){if(1&i&&(r.TgZ(0,"div")(1,"div",5)(2,"nb-form-field"),r._UZ(3,"input",6),r.qZA(),r.TgZ(4,"nb-form-field"),r._UZ(5,"input",7),r.qZA(),r.TgZ(6,"nb-form-field"),r._UZ(7,"input",8),r.qZA(),r.TgZ(8,"nb-form-field"),r._UZ(9,"input",9),r.qZA(),r.TgZ(10,"nb-checkbox",10),r._uU(11,"Use SSL"),r.qZA()()()),2&i){const e=r.oxw();r.xp6(1),r.Q6J("formGroup",e.form)}}function Jr(i,t){1&i&&r._UZ(0,"div")}let Mo=(()=>{class i{constructor(e,n){this.fb=e,this.store=n,this.ConfigurationType=De.c,this.options=[{value:De.c.NONE,label:De.c.NONE,disabled:!1},{value:De.c.CUSTOM,label:De.c.CUSTOM,disabled:!1},{value:De.c.OAKESTRA,label:De.c.OAKESTRA,disabled:!0}]}ngOnInit(){this.store.select(Co.v).pipe((0,Qs.q)(1)).subscribe(e=>{var n,o,a,c,d;console.log(e),this.selectedOption=e.type,this.form=this.fb.group({address:null!==(n=e.address)&&void 0!==n?n:[""],port:null!==(o=e.port)&&void 0!==o?o:[""],username:null!==(a=e.username)&&void 0!==a?a:[""],password:null!==(c=e.ssl)&&void 0!==c?c:[""],ssl:null!==(d=e.ssl)&&void 0!==d?d:[!1]})})}save(){let e={type:this.selectedOption};this.selectedOption===De.c.CUSTOM&&(e=Object.assign(Object.assign({},e),this.form.getRawValue())),this.store.dispatch((0,nt.I2)({settings:e}))}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(k.qu),r.Y36(W.yh))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-settings"]],decls:12,vars:5,consts:[[1,"radio-group",3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[4,"ngIf"],["nbButton","","color","primary","type","submit",1,"button",3,"click"],[3,"value","disabled"],[1,"form",3,"formGroup"],["placeholder","Server Address","nbInput","","formControlName","address"],["placeholder","Port","nbInput","","formControlName","port"],["placeholder","Username","nbInput","","formControlName","username"],["placeholder","Password","nbInput","","formControlName","password"],["formControlName","ssl",1,"checkbox"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h1"),r._uU(3,"Configure SMTP server"),r.qZA()(),r.TgZ(4,"nb-card-body")(5,"nb-radio-group",0),r.NdJ("ngModelChange",function(a){return n.selectedOption=a}),r.YNc(6,ss,2,3,"nb-radio",1),r.qZA(),r.YNc(7,os,9,0,"div",2),r.YNc(8,Yr,12,1,"div",2),r.YNc(9,Jr,1,0,"div",2),r.TgZ(10,"button",3),r.NdJ("click",function(){return n.save()}),r._uU(11,"Save"),r.qZA()()()),2&e&&(r.xp6(5),r.Q6J("ngModel",n.selectedOption),r.xp6(1),r.Q6J("ngForOf",n.options),r.xp6(1),r.Q6J("ngIf","None"===n.selectedOption),r.xp6(1),r.Q6J("ngIf",n.selectedOption===n.ConfigurationType.CUSTOM),r.xp6(1),r.Q6J("ngIf",n.selectedOption===n.ConfigurationType.OAKESTRA))},dependencies:[Y.sg,Y.O5,k.Fj,k.JJ,k.JL,k.On,k.sg,k.u,x.Asz,x.yKW,x.ndF,x.DPz,x.h8i,x.jBG,x.NTf,x.r3g,x.MFI],styles:[".radio-group[_ngcontent-%COMP%]{display:flex;width:50vh;font-size:.5em;justify-content:space-between;padding-bottom:20px}nb-form-field[_ngcontent-%COMP%], .checkbox[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{padding:10px 0}.button[_ngcontent-%COMP%]{margin:10px 0}"]}),i})();function Gr(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){r.CHM(e);const o=r.oxw();return r.KtG(o.deleteApplication())}),r._uU(1," Delete "),r.qZA()}}let ce=(()=>{class i{constructor(e){this.dialogRef=e,this.DialogAction=xt,this.title="Add Application",this.buttonText="Add"}ngOnInit(){this.action=this.data.action,this.app=Object.assign({},this.data.content),this.action===xt.UPDATE&&(this.title="Modify Application",this.buttonText="Update")}doAction(){this.dialogRef.close({event:this.action,data:this.app})}deleteApplication(){this.dialogRef.close({event:xt.DELETE,data:this.app})}closeDialog(){this.dialogRef.close({event:xt.CANCEL})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.X4l))},i.\u0275cmp=r.Xpm({type:i,selectors:[["dialog-content-example-dialog"]],inputs:{data:"data"},decls:21,vars:8,consts:[[1,"w3-col","l6","s12","m6"],["placeholder","Application Name","nbInput","","fullWidth","",3,"ngModel","disabled","ngModelChange"],[1,"w3-col","l6","s12","m6","input"],["placeholder","Application Namespace","nbInput","","fullWidth","",3,"ngModel","disabled","ngModelChange"],[1,"w3-col","l12","s12","m12"],["placeholder","Description","cols","2","nbInput","","fullWidth","",3,"ngModel","ngModelChange"],[1,"dialog-footer"],["status","primary","nbButton","",3,"click"],["status","warning","nbButton","",3,"click",4,"ngIf"],["status","basic","nbButton","",3,"click"],["status","warning","nbButton","",3,"click"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h2"),r._uU(3),r.qZA()(),r.TgZ(4,"nb-card-body")(5,"div",0)(6,"nb-form-field")(7,"input",1),r.NdJ("ngModelChange",function(a){return n.app.application_name=a}),r.qZA()()(),r.TgZ(8,"div",2)(9,"nb-form-field")(10,"input",3),r.NdJ("ngModelChange",function(a){return n.app.application_namespace=a}),r.qZA()()(),r.TgZ(11,"div",4)(12,"nb-form-field")(13,"textarea",5),r.NdJ("ngModelChange",function(a){return n.app.application_desc=a}),r._uU(14," "),r.qZA()()()(),r.TgZ(15,"nb-card-footer",6)(16,"button",7),r.NdJ("click",function(){return n.doAction()}),r._uU(17),r.qZA(),r.YNc(18,Gr,2,0,"button",8),r.TgZ(19,"button",9),r.NdJ("click",function(){return n.closeDialog()}),r._uU(20,"Cancel"),r.qZA()()()),2&e&&(r.xp6(3),r.Oqu(n.title),r.xp6(4),r.Q6J("ngModel",n.app.application_name)("disabled",n.action===n.DialogAction.UPDATE),r.xp6(3),r.Q6J("ngModel",n.app.application_namespace)("disabled",n.action===n.DialogAction.UPDATE),r.xp6(3),r.Q6J("ngModel",n.app.application_desc),r.xp6(4),r.Oqu(n.buttonText),r.xp6(1),r.Q6J("ngIf",n.action===n.DialogAction.UPDATE))},dependencies:[Y.O5,k.Fj,k.JJ,k.On,x.Asz,x.yKW,x.XWE,x.ndF,x.DPz,x.h8i,x.jBG],styles:["nb-form-field[_ngcontent-%COMP%]{padding:10px 5px}button[_ngcontent-%COMP%]{margin:0 5px}nb-card-footer[_ngcontent-%COMP%]{align-items:end}"]}),i})();var fi=D(4865);function $r(i,t){if(1&i){const e=r.EpF();r.TgZ(0,"nb-list-item")(1,"div",4)(2,"p"),r._uU(3),r.qZA(),r.TgZ(4,"button",5),r.NdJ("click",function(){const a=r.CHM(e).$implicit,c=r.oxw();return r.KtG(c.openDialogApp(c.DialogAction.UPDATE,a))}),r._UZ(5,"nb-icon",6),r.qZA()()()}if(2&i){const e=t.$implicit;r.xp6(3),r.Oqu(e.application_name)}}let Ce=(()=>{class i{constructor(e,n,o,a,c,d){this.dialog=e,this.userService=n,this.router=o,this.authService=a,this.notifyService=c,this.store=d,this.DialogAction=xt,this.apps$=this.store.pipe((0,W.Ys)(ri.A))}ngOnInit(){this.store.select(Ue.H).subscribe(e=>{this.userID=e._id.$oid,this.store.dispatch((0,nt.i6)({id:this.userID}))}),this.apps$.subscribe(e=>{console.log(e);const n=e.filter(o=>o._id.$oid===sessionStorage.getItem("id"))[0];n&&(this.store.dispatch((0,nt.zl)({application:n})),this.activeAppId=n._id)})}openDialogApp(e,n){e===xt.ADD&&(n={_id:{$oid:""},application_name:"",application_namespace:"",application_desc:""}),this.dialog.open(ce,{context:{data:{content:n,action:e}}}).onClose.subscribe(c=>{c.event===xt.ADD?this.store.dispatch((0,nt.s0)({application:c.data})):c.event===xt.UPDATE?this.store.dispatch((0,nt.li)({application:c.data})):c.event===xt.DELETE&&this.store.dispatch((0,nt.rw)({application:c.data})),this.store.dispatch((0,nt.i6)({id:this.userID}))})}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.Gln),r.Y36(Pi.K),r.Y36(K.F0),r.Y36(fi.e),r.Y36(qe.g),r.Y36(W.yh))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-applications"]],inputs:{userID:"userID"},decls:12,vars:3,consts:[[1,"app-header"],["nbButton","",3,"click"],["icon","plus"],[4,"ngFor","ngForOf"],[1,"app-card"],["nbButton","","ghost","",3,"click"],["icon","settings"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"div",0)(3,"h1"),r._uU(4,"Applications"),r.qZA(),r.TgZ(5,"button",1),r.NdJ("click",function(){return n.openDialogApp(n.DialogAction.ADD,void 0)}),r._UZ(6,"nb-icon",2),r._uU(7," Add Application "),r.qZA()()(),r.TgZ(8,"nb-card-body")(9,"nb-list"),r.YNc(10,$r,6,1,"nb-list-item",3),r.ALo(11,"async"),r.qZA()()()),2&e&&(r.xp6(10),r.Q6J("ngForOf",r.lcZ(11,1,n.apps$)))},dependencies:[Y.sg,x.Asz,x.yKW,x.ndF,x.DPz,x.zP_,x.qBV,x.fMN,Y.Ov],styles:[".app-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.app-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:revert!important}.app-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),i})();function Qr(i,t){if(1&i&&(r.TgZ(0,"nb-accordion-item")(1,"nb-accordion-item-header"),r._uU(2),r.qZA(),r.TgZ(3,"nb-accordion-item-body"),r._uU(4),r.qZA()()),2&i){const e=t.$implicit;r.xp6(2),r.Oqu(e.question),r.xp6(2),r.Oqu(e.answer)}}let pi=(()=>{class i{constructor(){this.items=[{question:"Question 1",answer:"Answer 1"},{question:"Question 2",answer:"Answer 2"},{question:"Question 3",answer:"Answer 3"},{question:"Question 4",answer:"Answer 4"}]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-faq"]],decls:7,vars:1,consts:[[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h1"),r._uU(3,"FAQ"),r.qZA()(),r.TgZ(4,"nb-card-body")(5,"nb-accordion"),r.YNc(6,Qr,5,2,"nb-accordion-item",0),r.qZA()()()),2&e&&(r.xp6(6),r.Q6J("ngForOf",n.items))},dependencies:[Y.sg,x.Asz,x.yKW,x.ndF,x.qCO,x.SaG,x.YZd,x.AvE]}),i})();var Xr=D(2805),zi=D(2529),mn=D(8407);function F(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function mi(i){return i+.5|0}const Nt=(i,t,e)=>Math.max(Math.min(i,e),t);function Ze(i){return Nt(mi(2.55*i),0,255)}function _e(i){return Nt(mi(255*i),0,255)}function Me(i){return Nt(mi(i/2.55)/100,0,1)}function be(i){return Nt(mi(100*i),0,100)}const ie={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ie=[..."0123456789ABCDEF"],Kr=i=>Ie[15&i],Te=i=>Ie[(240&i)>>4]+Ie[15&i],$e=i=>(240&i)>>4==(15&i);const _n=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Qe(i,t,e){const n=t*Math.min(e,1-e),o=(a,c=(a+i/30)%12)=>e-n*Math.max(Math.min(c-3,9-c,1),-1);return[o(0),o(8),o(4)]}function bn(i,t,e){const n=(o,a=(o+i/60)%6)=>e-e*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function ls(i,t,e){const n=Qe(i,1,.5);let o;for(t+e>1&&(o=1/(t+e),t*=o,e*=o),o=0;o<3;o++)n[o]*=1-t-e,n[o]+=t;return n}function cs(i){const e=i.r/255,n=i.g/255,o=i.b/255,a=Math.max(e,n,o),c=Math.min(e,n,o),d=(a+c)/2;let u,p,g;return a!==c&&(g=a-c,p=d>.5?g/(2-a-c):g/(a+c),u=function Po(i,t,e,n,o){return i===o?(t-e)/n+(ti<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055,Xe=i=>i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4);function ne(i,t,e){if(i){let n=cs(i);n[t]=Math.max(0,Math.min(n[t]+n[t]*e,0===t?360:1)),n=ds(n),i.r=n[0],i.g=n[1],i.b=n[2]}}function us(i,t){return i&&Object.assign(t||{},i)}function fs(i){var t={r:0,g:0,b:0,a:255};return Array.isArray(i)?i.length>=3&&(t={r:i[0],g:i[1],b:i[2],a:255},i.length>3&&(t.a=_e(i[3]))):(t=us(i,{r:0,g:0,b:0,a:1})).a=_e(t.a),t}function Ni(i){return"r"===i.charAt(0)?function sa(i){const t=Ri.exec(i);let n,o,a,e=255;if(t){if(t[7]!==n){const c=+t[7];e=t[8]?Ze(c):Nt(255*c,0,255)}return n=+t[1],o=+t[3],a=+t[5],n=255&(t[2]?Ze(n):Nt(n,0,255)),o=255&(t[4]?Ze(o):Nt(o,0,255)),a=255&(t[6]?Ze(a):Nt(a,0,255)),{r:n,g:o,b:a,a:e}}}(i):function ea(i){const t=_n.exec(i);let n,e=255;if(!t)return;t[5]!==n&&(e=t[6]?Ze(+t[5]):_e(+t[5]));const o=hs(+t[2]),a=+t[3]/100,c=+t[4]/100;return n="hwb"===t[1]?function ko(i,t,e){return gi(ls,i,t,e)}(o,a,c):"hsv"===t[1]?function ta(i,t,e){return gi(bn,i,t,e)}(o,a,c):ds(o,a,c),{r:n[0],g:n[1],b:n[2],a:e}}(i)}class bi{constructor(t){if(t instanceof bi)return t;const e=typeof t;let n;"object"===e?n=fs(t):"string"===e&&(n=function rs(i){var e,t=i.length;return"#"===i[0]&&(4===t||5===t?e={r:255&17*ie[i[1]],g:255&17*ie[i[2]],b:255&17*ie[i[3]],a:5===t?17*ie[i[4]]:255}:(7===t||9===t)&&(e={r:ie[i[1]]<<4|ie[i[2]],g:ie[i[3]]<<4|ie[i[4]],b:ie[i[5]]<<4|ie[i[6]],a:9===t?ie[i[7]]<<4|ie[i[8]]:255})),e}(t)||function na(i){Fi||(Fi=function ia(){const i={},t=Object.keys(Ei),e=Object.keys(Ao);let n,o,a,c,d;for(n=0;n>16&255,a>>8&255,255&a]}return i}(),Fi.transparent=[0,0,0,0]);const t=Fi[i.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(t)||Ni(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=us(this._rgb);return t&&(t.a=Me(t.a)),t}set rgb(t){this._rgb=fs(t)}rgbString(){return this._valid?function _i(i){return i&&(i.a<255?`rgba(${i.r}, ${i.g}, ${i.b}, ${Me(i.a)})`:`rgb(${i.r}, ${i.g}, ${i.b})`)}(this._rgb):void 0}hexString(){return this._valid?function as(i){var t=(i=>$e(i.r)&&$e(i.g)&&$e(i.b)&&$e(i.a))(i)?Kr:Te;return i?"#"+t(i.r)+t(i.g)+t(i.b)+((i,t)=>i<255?t(i):"")(i.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function vn(i){if(!i)return;const t=cs(i),e=t[0],n=be(t[1]),o=be(t[2]);return i.a<255?`hsla(${e}, ${n}%, ${o}%, ${Me(i.a)})`:`hsl(${e}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,o=t.rgb;let a;const c=e===a?.5:e,d=2*c-1,u=n.a-o.a,p=((d*u==-1?d:(d+u)/(1+d*u))+1)/2;a=1-p,n.r=255&p*n.r+a*o.r+.5,n.g=255&p*n.g+a*o.g+.5,n.b=255&p*n.b+a*o.b+.5,n.a=c*n.a+(1-c)*o.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function oa(i,t,e){const n=Xe(Me(i.r)),o=Xe(Me(i.g)),a=Xe(Me(i.b));return{r:_e(yn(n+e*(Xe(Me(t.r))-n))),g:_e(yn(o+e*(Xe(Me(t.g))-o))),b:_e(yn(a+e*(Xe(Me(t.b))-a))),a:i.a+e*(t.a-i.a)}}(this._rgb,t._rgb,e)),this}clone(){return new bi(this.rgb)}alpha(t){return this._rgb.a=_e(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=mi(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ne(this._rgb,2,t),this}darken(t){return ne(this._rgb,2,-t),this}saturate(t){return ne(this._rgb,1,t),this}desaturate(t){return ne(this._rgb,1,-t),this}rotate(t){return function ve(i,t){var e=cs(i);e[0]=hs(e[0]+t),e=ds(e),i.r=e[0],i.g=e[1],i.b=e[2]}(this._rgb,t),this}}function Gt(){}const So=(()=>{let i=0;return()=>i++})();function ct(i){return null===i||typeof i>"u"}function bt(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function st(i){return null!==i&&"[object Object]"===Object.prototype.toString.call(i)}function Ct(i){return("number"==typeof i||i instanceof Number)&&isFinite(+i)}function Ht(i,t){return Ct(i)?i:t}function G(i,t){return typeof i>"u"?t:i}const Lo=(i,t)=>"string"==typeof i&&i.endsWith("%")?parseFloat(i)/100*t:+i;function pt(i,t,e){if(i&&"function"==typeof i.call)return i.apply(e,t)}function ht(i,t,e,n){let o,a,c;if(bt(i))if(a=i.length,n)for(o=a-1;o>=0;o--)t.call(e,i[o],o);else for(o=0;oi,x:i=>i.x,y:i=>i.y};function B(i,t){return(P[t]||(P[t]=function I(i){const t=function S(i){const t=i.split("."),e=[];let n="";for(const o of t)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}(i);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(i)}function j(i){return i.charAt(0).toUpperCase()+i.slice(1)}const X=i=>typeof i<"u",Tt=i=>"function"==typeof i,Dt=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0},ot=Math.PI,ut=2*ot,ra=ut+ot,wn=Number.POSITIVE_INFINITY,aa=ot/180,Mt=ot/2,Ke=ot/4,ms=2*ot/3,mt=Math.log10,$t=Math.sign;function Bi(i,t,e){return Math.abs(i-t)u&&p=Math.min(t,e)-n&&i<=Math.max(t,e)+n}function ha(i,t,e){e=e||(c=>i[c]1;)a=o+n>>1,e(a)?o=a:n=a;return{lo:o,hi:n}}const ei=(i,t,e,n)=>ha(i,e,n?o=>{const a=i[o][t];return ai[o][t]ha(i,e,n=>i[n][t]>=e),$a=["push","pop","shift","splice","unshift"];function Qa(i,t){const e=i._chartjs;if(!e)return;const n=e.listeners,o=n.indexOf(t);-1!==o&&n.splice(o,1),!(n.length>0)&&($a.forEach(a=>{delete i[a]}),delete i._chartjs)}function Xa(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const Ka=typeof window>"u"?function(i){return i()}:window.requestAnimationFrame;function tl(i,t){let e=[],n=!1;return function(...o){e=o,n||(n=!0,Ka.call(window,()=>{n=!1,i.apply(t,e)}))}}const ua=i=>"start"===i?"left":"end"===i?"right":"center",Wt=(i,t,e)=>"start"===i?t:"end"===i?e:(t+e)/2;function el(i,t,e){const n=t.length;let o=0,a=n;if(i._sorted){const{iScale:c,_parsed:d}=i,u=c.axis,{min:p,max:g,minDefined:_,maxDefined:v}=c.getUserBounds();_&&(o=Bt(Math.min(ei(d,u,p).lo,e?n:ei(t,u,c.getPixelForValue(p)).lo),0,n-1)),a=v?Bt(Math.max(ei(d,c.axis,g,!0).hi+1,e?0:ei(t,u,c.getPixelForValue(g),!0).hi+1),o,n)-o:n-o}return{start:o,count:a}}function il(i){const{xScale:t,yScale:e,_scaleRanges:n}=i,o={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!n)return i._scaleRanges=o,!0;const a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==e.min||n.ymax!==e.max;return Object.assign(n,o),a}const zo=i=>0===i||1===i,nl=(i,t,e)=>-Math.pow(2,10*(i-=1))*Math.sin((i-t)*ut/e),sl=(i,t,e)=>Math.pow(2,-10*i)*Math.sin((i-t)*ut/e)+1,_s={linear:i=>i,easeInQuad:i=>i*i,easeOutQuad:i=>-i*(i-2),easeInOutQuad:i=>(i/=.5)<1?.5*i*i:-.5*(--i*(i-2)-1),easeInCubic:i=>i*i*i,easeOutCubic:i=>(i-=1)*i*i+1,easeInOutCubic:i=>(i/=.5)<1?.5*i*i*i:.5*((i-=2)*i*i+2),easeInQuart:i=>i*i*i*i,easeOutQuart:i=>-((i-=1)*i*i*i-1),easeInOutQuart:i=>(i/=.5)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2),easeInQuint:i=>i*i*i*i*i,easeOutQuint:i=>(i-=1)*i*i*i*i+1,easeInOutQuint:i=>(i/=.5)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2),easeInSine:i=>1-Math.cos(i*Mt),easeOutSine:i=>Math.sin(i*Mt),easeInOutSine:i=>-.5*(Math.cos(ot*i)-1),easeInExpo:i=>0===i?0:Math.pow(2,10*(i-1)),easeOutExpo:i=>1===i?1:1-Math.pow(2,-10*i),easeInOutExpo:i=>zo(i)?i:i<.5?.5*Math.pow(2,10*(2*i-1)):.5*(2-Math.pow(2,-10*(2*i-1))),easeInCirc:i=>i>=1?i:-(Math.sqrt(1-i*i)-1),easeOutCirc:i=>Math.sqrt(1-(i-=1)*i),easeInOutCirc:i=>(i/=.5)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1),easeInElastic:i=>zo(i)?i:nl(i,.075,.3),easeOutElastic:i=>zo(i)?i:sl(i,.075,.3),easeInOutElastic:i=>zo(i)?i:i<.5?.5*nl(2*i,.1125,.45):.5+.5*sl(2*i-1,.1125,.45),easeInBack:i=>i*i*(2.70158*i-1.70158),easeOutBack:i=>(i-=1)*i*(2.70158*i+1.70158)+1,easeInOutBack(i){let t=1.70158;return(i/=.5)<1?i*i*((1+(t*=1.525))*i-t)*.5:.5*((i-=2)*i*((1+(t*=1.525))*i+t)+2)},easeInBounce:i=>1-_s.easeOutBounce(1-i),easeOutBounce:i=>i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375,easeInOutBounce:i=>i<.5?.5*_s.easeInBounce(2*i):.5*_s.easeOutBounce(2*i-1)+.5};function fa(i){if(i&&"object"==typeof i){const t=i.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function ol(i){return fa(i)?i:new bi(i)}function pa(i){return fa(i)?i:new bi(i).saturate(.5).darken(.1).hexString()}const ld=["x","y","borderWidth","radius","tension"],cd=["color","borderColor","backgroundColor"],rl=new Map;function bs(i,t,e){return function ud(i,t){t=t||{};const e=i+JSON.stringify(t);let n=rl.get(e);return n||(n=new Intl.NumberFormat(i,t),rl.set(e,n)),n}(t,e).format(i)}const al={values:i=>bt(i)?i:""+i,numeric(i,t,e){if(0===i)return"0";const n=this.chart.options.locale;let o,a=i;if(e.length>1){const p=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(p<1e-4||p>1e15)&&(o="scientific"),a=function fd(i,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&i!==Math.floor(i)&&(e=i-Math.floor(i)),e}(i,e)}const c=mt(Math.abs(a)),d=isNaN(c)?1:Math.max(Math.min(-1*Math.floor(c),20),0),u={notation:o,minimumFractionDigits:d,maximumFractionDigits:d};return Object.assign(u,this.options.ticks.format),bs(i,n,u)},logarithmic(i,t,e){if(0===i)return"0";const n=e[t].significand||i/Math.pow(10,Math.floor(mt(i)));return[1,2,3,5,10,15].includes(n)||t>.8*e.length?al.numeric.call(this,i,t,e):""}};var Eo={formatters:al};const Ui=Object.create(null),ma=Object.create(null);function vs(i,t){if(!t)return i;const e=t.split(".");for(let n=0,o=e.length;nn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,o)=>pa(o.backgroundColor),this.hoverBorderColor=(n,o)=>pa(o.borderColor),this.hoverColor=(n,o)=>pa(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return ga(this,t,e)}get(t){return vs(this,t)}describe(t,e){return ga(ma,t,e)}override(t,e){return ga(Ui,t,e)}route(t,e,n,o){const a=vs(this,t),c=vs(this,n),d="_"+e;Object.defineProperties(a,{[d]:{value:a[e],writable:!0},[e]:{enumerable:!0,get(){const u=this[d],p=c[o];return st(u)?Object.assign({},p,u):G(u,p)},set(u){this[d]=u}}})}apply(t){t.forEach(e=>e(this))}}var Lt=new md({_scriptable:i=>!i.startsWith("on"),_indexable:i=>"events"!==i,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function dd(i){i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),i.set("animations",{colors:{type:"color",properties:cd},numbers:{type:"number",properties:ld}}),i.describe("animations",{_fallback:"animation"}),i.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function hd(i){i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function pd(i){i.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Eo.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.route("scale.ticks","color","","color"),i.route("scale.grid","color","","borderColor"),i.route("scale.border","color","","borderColor"),i.route("scale.title","color","","color"),i.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),i.describe("scales",{_fallback:"scale"}),i.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Fo(i,t,e,n,o){let a=t[o];return a||(a=t[o]=i.measureText(o).width,e.push(o)),a>n&&(n=a),n}function _d(i,t,e,n){let o=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(o=n.data={},a=n.garbageCollect=[],n.font=t),i.save(),i.font=t;let c=0;const d=e.length;let u,p,g,_,v;for(u=0;ue.length){for(u=0;u0&&i.stroke()}}function ii(i,t,e){return e=e||.5,!t||i&&i.x>t.left-e&&i.xt.top-e&&i.y0&&""!==a.strokeColor;let u,p;for(i.save(),i.font=o.string,function yd(i,t){t.translation&&i.translate(t.translation[0],t.translation[1]),ct(t.rotation)||i.rotate(t.rotation),t.color&&(i.fillStyle=t.color),t.textAlign&&(i.textAlign=t.textAlign),t.textBaseline&&(i.textBaseline=t.textBaseline)}(i,a),u=0;u+i||0;function ba(i,t){const e={},n=st(t),o=n?Object.keys(t):t,a=st(i)?n?c=>G(i[c],i[t[c]]):c=>i[c]:()=>i;for(const c of o)e[c]=Pd(a(c));return e}function dl(i){return ba(i,{top:"y",right:"x",bottom:"y",left:"x"})}function Wi(i){return ba(i,["topLeft","topRight","bottomLeft","bottomRight"])}function Vt(i){const t=dl(i);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Et(i,t){let e=G((i=i||{}).size,(t=t||Lt.font).size);"string"==typeof e&&(e=parseInt(e,10));let n=G(i.style,t.style);n&&!(""+n).match(Md)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:G(i.family,t.family),lineHeight:Td(G(i.lineHeight,t.lineHeight),e),size:e,style:n,weight:G(i.weight,t.weight),string:""};return o.string=function gd(i){return!i||ct(i.size)||ct(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family}(o),o}function xs(i,t,e,n){let a,c,d,o=!0;for(a=0,c=i.length;ai[0])){const a=e||i;typeof n>"u"&&(n=ml("_fallback",i));const c={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:a,_fallback:n,_getTarget:o,override:d=>va([d,...i],t,a,n)};return new Proxy(c,{deleteProperty:(d,u)=>(delete d[u],delete d._keys,delete i[0][u],!0),get:(d,u)=>ul(d,u,()=>function zd(i,t,e,n){let o;for(const a of t)if(o=ml(Ad(a,i),e),typeof o<"u")return ya(i,o)?xa(e,n,i,o):o}(u,t,i,d)),getOwnPropertyDescriptor:(d,u)=>Reflect.getOwnPropertyDescriptor(d._scopes[0],u),getPrototypeOf:()=>Reflect.getPrototypeOf(i[0]),has:(d,u)=>gl(d).includes(u),ownKeys:d=>gl(d),set(d,u,p){const g=d._storage||(d._storage=o());return d[u]=g[u]=p,delete d._keys,!0}})}function Cn(i,t,e,n){const o={_cacheable:!1,_proxy:i,_context:t,_subProxy:e,_stack:new Set,_descriptors:hl(i,n),setContext:a=>Cn(i,a,e,n),override:a=>Cn(i.override(a),t,e,n)};return new Proxy(o,{deleteProperty:(a,c)=>(delete a[c],delete i[c],!0),get:(a,c,d)=>ul(a,c,()=>function Sd(i,t,e){const{_proxy:n,_context:o,_subProxy:a,_descriptors:c}=i;let d=n[t];return Tt(d)&&c.isScriptable(t)&&(d=function Od(i,t,e,n){const{_proxy:o,_context:a,_subProxy:c,_stack:d}=e;if(d.has(i))throw new Error("Recursion detected: "+Array.from(d).join("->")+"->"+i);d.add(i);let u=t(a,c||n);return d.delete(i),ya(i,u)&&(u=xa(o._scopes,o,i,u)),u}(t,d,i,e)),bt(d)&&d.length&&(d=function Ld(i,t,e,n){const{_proxy:o,_context:a,_subProxy:c,_descriptors:d}=e;if(typeof a.index<"u"&&n(i))return t[a.index%t.length];if(st(t[0])){const u=t,p=o._scopes.filter(g=>g!==u);t=[];for(const g of u){const _=xa(p,o,i,g);t.push(Cn(_,a,c&&c[i],d))}}return t}(t,d,i,c.isIndexable)),ya(t,d)&&(d=Cn(d,o,a&&a[t],c)),d}(a,c,d)),getOwnPropertyDescriptor:(a,c)=>a._descriptors.allKeys?Reflect.has(i,c)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(i,c),getPrototypeOf:()=>Reflect.getPrototypeOf(i),has:(a,c)=>Reflect.has(i,c),ownKeys:()=>Reflect.ownKeys(i),set:(a,c,d)=>(i[c]=d,delete a[c],!0)})}function hl(i,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:n=t.indexable,_allKeys:o=t.allKeys}=i;return{allKeys:o,scriptable:e,indexable:n,isScriptable:Tt(e)?e:()=>e,isIndexable:Tt(n)?n:()=>n}}const Ad=(i,t)=>i?i+j(t):t,ya=(i,t)=>st(t)&&"adapters"!==i&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function ul(i,t,e){if(Object.prototype.hasOwnProperty.call(i,t))return i[t];const n=e();return i[t]=n,n}function fl(i,t,e){return Tt(i)?i(t,e):i}const Dd=(i,t)=>!0===i?t:"string"==typeof i?B(t,i):void 0;function Zd(i,t,e,n,o){for(const a of t){const c=Dd(e,a);if(c){i.add(c);const d=fl(c._fallback,e,o);if(typeof d<"u"&&d!==e&&d!==n)return d}else if(!1===c&&typeof n<"u"&&e!==n)return null}return!1}function xa(i,t,e,n){const o=t._rootScopes,a=fl(t._fallback,e,n),c=[...i,...o],d=new Set;d.add(n);let u=pl(d,c,e,a||e,n);return!(null===u||typeof a<"u"&&a!==e&&(u=pl(d,c,a,u,n),null===u))&&va(Array.from(d),[""],o,a,()=>function Id(i,t,e){const n=i._getTarget();t in n||(n[t]={});const o=n[t];return bt(o)&&st(e)?e:o||{}}(t,e,n))}function pl(i,t,e,n,o){for(;e;)e=Zd(i,t,e,n,o);return e}function ml(i,t){for(const e of t){if(!e)continue;const n=e[i];if(typeof n<"u")return n}}function gl(i){let t=i._keys;return t||(t=i._keys=function Ed(i){const t=new Set;for(const e of i)for(const n of Object.keys(e).filter(o=>!o.startsWith("_")))t.add(n);return Array.from(t)}(i._scopes)),t}function _l(i,t,e,n){const{iScale:o}=i,{key:a="r"}=this._parsing,c=new Array(n);let d,u,p,g;for(d=0,u=n;dt"x"===i?"y":"x";function Rd(i,t,e,n){const o=i.skip?t:i,a=t,c=e.skip?t:e,d=da(a,o),u=da(c,a);let p=d/(d+u),g=u/(d+u);p=isNaN(p)?0:p,g=isNaN(g)?0:g;const _=n*p,v=n*g;return{previous:{x:a.x-_*(c.x-o.x),y:a.y-_*(c.y-o.y)},next:{x:a.x+v*(c.x-o.x),y:a.y+v*(c.y-o.y)}}}function Bo(i,t,e){return Math.max(Math.min(i,e),t)}function Hd(i,t,e,n,o){let a,c,d,u;if(t.spanGaps&&(i=i.filter(p=>!p.skip)),"monotone"===t.cubicInterpolationMode)!function Ud(i,t="x"){const e=bl(t),n=i.length,o=Array(n).fill(0),a=Array(n);let c,d,u,p=Mn(i,0);for(c=0;ci.ownerDocument.defaultView.getComputedStyle(i,null),Vd=["top","right","bottom","left"];function Vi(i,t,e){const n={};e=e?"-"+e:"";for(let o=0;o<4;o++){const a=Vd[o];n[a]=parseFloat(i[t+"-"+a+e])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function ji(i,t){if("native"in i)return i;const{canvas:e,currentDevicePixelRatio:n}=t,o=qo(e),a="border-box"===o.boxSizing,c=Vi(o,"padding"),d=Vi(o,"border","width"),{x:u,y:p,box:g}=function Yd(i,t){const e=i.touches,n=e&&e.length?e[0]:i,{offsetX:o,offsetY:a}=n;let d,u,c=!1;if(((i,t,e)=>(i>0||t>0)&&(!e||!e.shadowRoot))(o,a,i.target))d=o,u=a;else{const p=t.getBoundingClientRect();d=n.clientX-p.left,u=n.clientY-p.top,c=!0}return{x:d,y:u,box:c}}(i,e),_=c.left+(g&&d.left),v=c.top+(g&&d.top);let{width:y,height:w}=t;return a&&(y-=c.width+d.width,w-=c.height+d.height),{x:Math.round((u-_)/y*e.width/n),y:Math.round((p-v)/w*e.height/n)}}const Ho=i=>Math.round(10*i)/10;function yl(i,t,e){const n=t||1,o=Math.floor(i.height*n),a=Math.floor(i.width*n);i.height=Math.floor(i.height),i.width=Math.floor(i.width);const c=i.canvas;return c.style&&(e||!c.style.height&&!c.style.width)&&(c.style.height=`${i.height}px`,c.style.width=`${i.width}px`),(i.currentDevicePixelRatio!==n||c.height!==o||c.width!==a)&&(i.currentDevicePixelRatio=n,c.height=o,c.width=a,i.ctx.setTransform(n,0,0,n,0,0),!0)}const $d=function(){let i=!1;try{const t={get passive(){return i=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return i}();function xl(i,t){const e=function Wd(i,t){return qo(i).getPropertyValue(t)}(i,t),n=e&&e.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Yi(i,t,e,n){return{x:i.x+e*(t.x-i.x),y:i.y+e*(t.y-i.y)}}function Qd(i,t,e,n){return{x:i.x+e*(t.x-i.x),y:"middle"===n?e<.5?i.y:t.y:"after"===n?e<1?i.y:t.y:e>0?t.y:i.y}}function Xd(i,t,e,n){const o={x:i.cp2x,y:i.cp2y},a={x:t.cp1x,y:t.cp1y},c=Yi(i,o,e),d=Yi(o,a,e),u=Yi(a,t,e),p=Yi(c,d,e),g=Yi(d,u,e);return Yi(p,g,e)}function Tn(i,t,e){return i?function(i,t){return{x:e=>i+i+t-e,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(t,e):{x:i=>i,setWidth(i){},textAlign:i=>i,xPlus:(i,t)=>i+t,leftForLtr:(i,t)=>i}}function wl(i,t){let e,n;("ltr"===t||"rtl"===t)&&(e=i.canvas.style,n=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),i.prevTextDirection=n)}function Cl(i,t){void 0!==t&&(delete i.prevTextDirection,i.canvas.style.setProperty("direction",t[0],t[1]))}function Ml(i){return"angle"===i?{between:gs,compare:ed,normalize:de}:{between:ti,compare:(t,e)=>t-e,normalize:t=>t}}function Tl({start:i,end:t,count:e,loop:n,style:o}){return{start:i%e,end:t%e,loop:n&&(t-i+1)%e==0,style:o}}function Pl(i,t,e){if(!e)return[i];const{property:n,start:o,end:a}=e,c=t.length,{compare:d,between:u,normalize:p}=Ml(n),{start:g,end:_,loop:v,style:y}=function eh(i,t,e){const{property:n,start:o,end:a}=e,{between:c,normalize:d}=Ml(n),u=t.length;let v,y,{start:p,end:g,loop:_}=i;if(_){for(p+=u,g+=u,v=0,y=u;vd({chart:t,initial:e.initial,numSteps:c,currentStep:Math.min(n-e.start,c)}))}_refresh(){this._request||(this._running=!0,this._request=Ka.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const a=n.items;let u,c=a.length-1,d=!1;for(;c>=0;--c)u=a[c],u._active?(u._total>n.duration&&(n.duration=u._total),u.tick(t),d=!0):(a[c]=a[a.length-1],a.pop());d&&(o.draw(),this._notify(o,n,t,"progress")),a.length||(n.running=!1,this._notify(o,n,t,"complete"),n.initial=!1),e+=a.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);!e||(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ni=new ah;const Ol="transparent",lh={boolean:(i,t,e)=>e>.5?t:i,color(i,t,e){const n=ol(i||Ol),o=n.valid&&ol(t||Ol);return o&&o.valid?o.mix(n,e).hexString():t},number:(i,t,e)=>i+(t-i)*e};class ch{constructor(t,e,n,o){const a=e[n];o=xs([t.to,o,a,t.from]);const c=xs([t.from,a,o]);this._active=!0,this._fn=t.fn||lh[t.type||typeof c],this._easing=_s[t.easing]||_s.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=c,this._to=o,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],a=n-this._start,c=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(c,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=xs([t.to,e,o,t.from]),this._from=xs([t.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,o=this._prop,a=this._from,c=this._loop,d=this._to;let u;if(this._active=a!==d&&(c||e1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[o]=this._fn(a,d,u))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let o=0;o{const a=t[o];if(!st(a))return;const c={};for(const d of e)c[d]=a[d];(bt(a.properties)&&a.properties||[o]).forEach(d=>{(d===o||!n.has(d))&&n.set(d,c)})})}_animateOptions(t,e){const n=e.options,o=function hh(i,t){if(!t)return;let e=i.options;if(e)return e.$shared&&(i.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;i.options=t}(t,n);if(!o)return[];const a=this._createAnimations(o,n);return n.$shared&&function dh(i,t){const e=[],n=Object.keys(t);for(let o=0;o{t.options=n},()=>{}),a}_createAnimations(t,e){const n=this._properties,o=[],a=t.$animations||(t.$animations={}),c=Object.keys(e),d=Date.now();let u;for(u=c.length-1;u>=0;--u){const p=c[u];if("$"===p.charAt(0))continue;if("options"===p){o.push(...this._animateOptions(t,e));continue}const g=e[p];let _=a[p];const v=n.get(p);if(_){if(v&&_.active()){_.update(v,g,d);continue}_.cancel()}v&&v.duration?(a[p]=_=new ch(v,t,p,g),o.push(_)):t[p]=g}return o}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(ni.add(this._chart,n),!0):void 0}}function Dl(i,t){const e=i&&i.options||{},n=e.reverse,o=void 0===e.min?t:0,a=void 0===e.max?t:0;return{start:n?a:o,end:n?o:a}}function Zl(i,t){const e=[],n=i._getSortedDatasetMetas(t);let o,a;for(o=0,a=n.length;o0||!e&&a<0)return o.index}return null}function Fl(i,t){const{chart:e,_cachedMeta:n}=i,o=e._stacks||(e._stacks={}),{iScale:a,vScale:c,index:d}=n,u=a.axis,p=c.axis,g=function mh(i,t,e){return`${i.id}.${t.id}.${e.stack||e.type}`}(a,c,n),_=t.length;let v;for(let y=0;y<_;++y){const w=t[y],{[u]:M,[p]:T}=w;v=(w._stacks||(w._stacks={}))[p]=_h(o,g,M),v[d]=T,v._top=El(v,c,!0,n.type),v._bottom=El(v,c,!1,n.type),(v._visualValues||(v._visualValues={}))[d]=T}}function Ca(i,t){const e=i.scales;return Object.keys(e).filter(n=>e[n].axis===t).shift()}function ws(i,t){const e=i.controller.index,n=i.vScale&&i.vScale.axis;if(n){t=t||i._parsed;for(const o of t){const a=o._stacks;if(!a||void 0===a[n]||void 0===a[n][e])return;delete a[n][e],void 0!==a[n]._visualValues&&void 0!==a[n]._visualValues[e]&&delete a[n]._visualValues[e]}}}const Ma=i=>"reset"===i||"none"===i,Rl=(i,t)=>t?i:Object.assign({},i);class ke{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=zl(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ws(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),o=(_,v,y,w)=>"x"===_?v:"r"===_?w:y,a=e.xAxisID=G(n.xAxisID,Ca(t,"x")),c=e.yAxisID=G(n.yAxisID,Ca(t,"y")),d=e.rAxisID=G(n.rAxisID,Ca(t,"r")),u=e.indexAxis,p=e.iAxisID=o(u,a,c,d),g=e.vAxisID=o(u,c,a,d);e.xScale=this.getScaleForId(a),e.yScale=this.getScaleForId(c),e.rScale=this.getScaleForId(d),e.iScale=this.getScaleForId(p),e.vScale=this.getScaleForId(g)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Qa(this._data,this),t._stacked&&ws(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(st(e))this._data=function ph(i){const t=Object.keys(i),e=new Array(t.length);let n,o,a;for(n=0,o=t.length;n{const n="_onData"+j(e),o=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...a){const c=o.apply(this,a);return i._chartjs.listeners.forEach(d=>{"function"==typeof d[n]&&d[n](...a)}),c}})}))}(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const a=e._stacked;e._stacked=zl(e.vScale,e),e.stack!==n.stack&&(o=!0,ws(e),e.stack=n.stack),this._resyncElements(t),(o||a!==e._stacked)&&Fl(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:o}=this,{iScale:a,_stacked:c}=n,d=a.axis;let g,_,v,u=0===t&&e===o.length||n._sorted,p=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,v=o;else{v=bt(o[t])?this.parseArrayData(n,o,t,e):st(o[t])?this.parseObjectData(n,o,t,e):this.parsePrimitiveData(n,o,t,e);const y=()=>null===_[d]||p&&_[d]i&&!t.hidden&&t._stacked&&{keys:Zl(this.chart,!0),values:null})(e,n),p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:g,max:_}=function gh(i){const{min:t,max:e,minDefined:n,maxDefined:o}=i.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(d);let v,y;function w(){y=o[v];const M=y[d.axis];return!Ct(y[t.axis])||g>M||_=0;--v)if(!w()){this.updateRangeFromParsed(p,t,y,u);break}return p}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let o,a,c;for(o=0,a=e.length;o=0&&tthis.getContext(n,o,e),_);return M.$shared&&(M.$shared=u,a[c]=Object.freeze(Rl(M,u))),M}_resolveAnimations(t,e,n){const o=this.chart,a=this._cachedDataOpts,c=`animation-${e}`,d=a[c];if(d)return d;let u;if(!1!==o.options.animation){const g=this.chart.config,_=g.datasetAnimationScopeKeys(this._type,e),v=g.getOptionScopes(this.getDataset(),_);u=g.createResolver(v,this.getContext(t,n,e))}const p=new Ll(o,u&&u.animations);return u&&u._cacheable&&(a[c]=Object.freeze(p)),p}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ma(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),o=this._sharedOptions,a=this.getSharedOptions(n),c=this.includeOptions(e,a)||a!==o;return this.updateSharedOptions(a,e,n),{sharedOptions:a,includeOptions:c}}updateElement(t,e,n,o){Ma(o)?Object.assign(t,n):this._resolveAnimations(e,o).update(t,n)}updateSharedOptions(t,e,n){t&&!Ma(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,o){t.active=o;const a=this.getStyle(e,o);this._resolveAnimations(e,n,o).update(t,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[d,u,p]of this._syncList)this[d](u,p);this._syncList=[];const o=n.length,a=e.length,c=Math.min(a,o);c&&this.parse(0,c),a>o?this._insertElements(o,a-o,t):a{for(p.length+=e,d=p.length-1;d>=c;d--)p[d]=p[d-e]};for(u(a),d=t;do-a))}return i._cache.$bar}(t,i.type);let o,a,c,d,n=t._length;const u=()=>{32767===c||-32768===c||(X(d)&&(n=Math.min(n,Math.abs(c-d)||n)),d=c)};for(o=0,a=e.length;oMath.abs(d)&&(u=d,p=c),t[e.axis]=p,t._custom={barStart:u,barEnd:p,start:o,end:a,min:c,max:d}}(i,t,e,n):t[e.axis]=e.parse(i,n),t}function Bl(i,t,e,n){const o=i.iScale,a=i.vScale,c=o.getLabels(),d=o===a,u=[];let p,g,_,v;for(p=e,g=e+n;pi.x,e="left",n="right"):(t=i.baseu.controller.options.grouped),a=n.options.stacked,c=[],d=u=>{const p=u.controller.getParsed(e),g=p&&p[u.vScale.axis];if(ct(g)||isNaN(g))return!0};for(const u of o)if((void 0===e||!d(u))&&((!1===a||-1===c.indexOf(u.stack)||void 0===a&&void 0===u.stack)&&c.push(u.stack),u.index===t))break;return c.length||c.push(void 0),c}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const o=this._getStacks(t,n),a=void 0!==e?o.indexOf(e):-1;return-1===a?o.length-1:a}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,o=[];let a,c;for(a=0,c=e.data.length;a=e?1:-1)}(M,e,d)*c,_===d&&(A-=M/2);const O=e.getPixelForDecimal(0),E=e.getPixelForDecimal(1),z=Math.min(O,E),Z=Math.max(O,E);A=Math.max(Math.min(A,Z),z),w=A+M,n&&!g&&(u._stacks[e.axis]._visualValues[o]=e.getValueForPixel(w)-e.getValueForPixel(A))}if(A===e.getPixelForValue(d)){const O=$t(M)*e.getLineWidthForValue(d)/2;A+=O,M-=O}return{size:M,base:A,head:w,center:w+M/2}}_calculateBarIndexPixels(t,e){const n=e.scale,o=this.options,a=o.skipNull,c=G(o.maxBarThickness,1/0);let d,u;if(e.grouped){const p=a?this._getStackCount(t):e.stackCount,g="flex"===o.barThickness?function Mh(i,t,e,n){const o=t.pixels,a=o[i];let c=i>0?o[i-1]:null,d=i=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:a}=e,c=this.getParsed(t),d=o.getLabelForValue(c.x),u=a.getLabelForValue(c.y),p=c._custom;return{label:n[t]||"",value:"("+d+", "+u+(p?", "+p:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,o){const a="reset"===o,{iScale:c,vScale:d}=this._cachedMeta,{sharedOptions:u,includeOptions:p}=this._getSharedOptions(e,o),g=c.axis,_=d.axis;for(let v=e;v+n[u];if(st(n[t])){const{key:u="value"}=this._parsing;a=p=>+B(n[p],u)}for(c=t,d=t+e;c"string"==typeof i&&i.endsWith("%")?parseFloat(i)/100:+i/t)(this.options.cutout,d),1),p=this._getRingWeight(this.index),{circumference:g,rotation:_}=this._getRotationExtents(),{ratioX:v,ratioY:y,offsetX:w,offsetY:M}=function Lh(i,t,e){let n=1,o=1,a=0,c=0;if(tgs(E,d,u,!0)?1:Math.max(z,z*e,Z,Z*e),w=(E,z,Z)=>gs(E,d,u,!0)?-1:Math.min(z,z*e,Z,Z*e),M=y(0,p,_),T=y(Mt,g,v),A=w(ot,p,_),O=w(ot+Mt,g,v);n=(M-A)/2,o=(T-O)/2,a=-(M+A)/2,c=-(T+O)/2}return{ratioX:n,ratioY:o,offsetX:a,offsetY:c}}(_,g,u),O=Math.max(Math.min((n.width-c)/v,(n.height-c)/y)/2,0),E=Lo(this.options.radius,O),Z=(E-Math.max(E*u,0))/this._getVisibleDatasetWeightTotal();this.offsetX=w*E,this.offsetY=M*E,o.total=this.calculateTotal(),this.outerRadius=E-Z*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-Z*p,0),this.updateElements(a,0,a.length,t)}_circumference(t,e){const n=this.options,o=this._cachedMeta,a=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===o._parsed[t]||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*a/ut)}updateElements(t,e,n,o){const a="reset"===o,c=this.chart,d=c.chartArea,g=(d.left+d.right)/2,_=(d.top+d.bottom)/2,v=a&&c.options.animation.animateScale,y=v?0:this.innerRadius,w=v?0:this.outerRadius,{sharedOptions:M,includeOptions:T}=this._getSharedOptions(e,o);let O,A=this._getRotation();for(O=0;O0&&!isNaN(t)?ut*(Math.abs(t)/e):0}getLabelAndValue(t){const n=this.chart,o=n.data.labels||[],a=bs(this._cachedMeta._parsed[t],n.options.locale);return{label:o[t]||"",value:a}}getMaxBorderWidth(t){let e=0;const n=this.chart;let o,a,c,d,u;if(!t)for(o=0,a=n.data.datasets.length;o"spacing"!==i,_indexable:i=>"spacing"!==i&&!i.startsWith("borderDash")&&!i.startsWith("hoverBorderDash")}),F(Ji,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const t=i.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e,color:n}}=i.legend.options;return t.labels.map((o,a)=>{const d=i.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:n,lineWidth:d.borderWidth,pointStyle:e,hidden:!i.getDataVisibility(a),index:a}})}return[]}},onClick(i,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}}}});class jo extends ke{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:o=[],_dataset:a}=e,c=this.chart._animationsDisabled;let{start:d,count:u}=el(e,o,c);this._drawStart=d,this._drawCount=u,il(e)&&(d=0,u=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=o;const p=this.resolveDatasetElementOptions(t);this.options.showLine||(p.borderWidth=0),p.segment=this.options.segment,this.updateElement(n,void 0,{animated:!c,options:p},t),this.updateElements(o,d,u,t)}updateElements(t,e,n,o){const a="reset"===o,{iScale:c,vScale:d,_stacked:u,_dataset:p}=this._cachedMeta,{sharedOptions:g,includeOptions:_}=this._getSharedOptions(e,o),v=c.axis,y=d.axis,{spanGaps:w,segment:M}=this.options,T=ze(w)?w:Number.POSITIVE_INFINITY,A=this.chart._animationsDisabled||a||"none"===o,O=e+n,E=t.length;let z=e>0&&this.getParsed(e-1);for(let Z=0;Z=O){N.skip=!0;continue}const U=this.getParsed(Z),V=ct(U[y]),et=N[v]=c.getPixelForValue(U[v],Z),it=N[y]=a||V?d.getBasePixel():d.getPixelForValue(u?this.applyStack(d,U,u):U[y],Z);N.skip=isNaN(et)||isNaN(it)||V,N.stop=Z>0&&Math.abs(U[v]-z[v])>T,M&&(N.parsed=U,N.raw=p.data[Z]),_&&(N.options=g||this.resolveDataElementOptions(Z,R.active?"active":o)),A||this.updateElement(R,Z,N,o),z=U}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,o=t.data||[];if(!o.length)return n;const a=o[0].size(this.resolveDataElementOptions(0)),c=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,a,c)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}F(jo,"id","line"),F(jo,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),F(jo,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Cs extends ke{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this.chart,o=n.data.labels||[],a=bs(this._cachedMeta._parsed[t].r,n.options.locale);return{label:o[t]||"",value:a}}parseObjectData(t,e,n,o){return _l.bind(this)(t,e,n,o)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((n,o)=>{const a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ae.max&&(e.max=a))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,o=Math.min(e.right-e.left,e.bottom-e.top),a=Math.max(o/2,0),d=(a-Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=a-d*this.index,this.innerRadius=this.outerRadius-d}updateElements(t,e,n,o){const a="reset"===o,c=this.chart,u=c.options.animation,p=this._cachedMeta.rScale,g=p.xCenter,_=p.yCenter,v=p.getIndexAngle(0)-.5*ot;let w,y=v;const M=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Pe(this.resolveDataElementOptions(t,e).angle||n):0}}F(Cs,"id","polarArea"),F(Cs,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),F(Cs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const t=i.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e,color:n}}=i.legend.options;return t.labels.map((o,a)=>{const d=i.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:n,lineWidth:d.borderWidth,pointStyle:e,hidden:!i.getDataVisibility(a),index:a}})}return[]}},onClick(i,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Pa extends Ji{}F(Pa,"id","pie"),F(Pa,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Yo extends ke{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,o){return _l.bind(this)(t,e,n,o)}update(t){const e=this._cachedMeta,n=e.dataset,o=e.data||[],a=e.iScale.getLabels();if(n.points=o,"resize"!==t){const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),this.updateElement(n,void 0,{_loop:!0,_fullLoop:a.length===o.length,options:c},t)}this.updateElements(o,0,o.length,t)}updateElements(t,e,n,o){const a=this._cachedMeta.rScale,c="reset"===o;for(let d=e;d0&&this.getParsed(e-1);for(let z=e;z0&&Math.abs(R[y]-E[y])>A,T&&(N.parsed=R,N.raw=p.data[z]),v&&(N.options=_||this.resolveDataElementOptions(z,Z.active?"active":o)),O||this.updateElement(Z,z,N,o),E=R}this.updateSharedOptions(_,o,g)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let d=0;for(let u=e.length-1;u>=0;--u)d=Math.max(d,e[u].size(this.resolveDataElementOptions(u))/2);return d>0&&d}const n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!e.length)return o;const a=e[0].size(this.resolveDataElementOptions(0)),c=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(o,a,c)/2}}F(Jo,"id","scatter"),F(Jo,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),F(Jo,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Dh=Object.freeze({__proto__:null,BarController:Wo,BubbleController:Vo,DoughnutController:Ji,LineController:jo,PieController:Pa,PolarAreaController:Cs,RadarController:Yo,ScatterController:Jo});function Gi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ka{static override(t){Object.assign(ka.prototype,t)}constructor(t){F(this,"options",void 0),this.options=t||{}}init(){}formats(){return Gi()}parse(){return Gi()}format(){return Gi()}add(){return Gi()}diff(){return Gi()}startOf(){return Gi()}endOf(){return Gi()}}var Zh__date=ka;function Ih(i,t,e,n){const{controller:o,data:a,_sorted:c}=i,d=o._cachedMeta.iScale;if(d&&t===d.axis&&"r"!==t&&c&&a.length){const u=d._reversePixels?nd:ei;if(!n)return u(a,t,e);if(o._sharedOptions){const p=a[0],g="function"==typeof p.getRange&&p.getRange(t);if(g){const _=u(a,t,e-g),v=u(a,t,e+g);return{lo:_.lo,hi:v.hi}}}}return{lo:0,hi:a.length-1}}function Ms(i,t,e,n,o){const a=i.getSortedVisibleDatasetMetas(),c=e[t];for(let d=0,u=a.length;d{u[c](t[e],o)&&(a.push({element:u,datasetIndex:p,index:g}),d=d||u.inRange(t.x,t.y,o))}),n&&!d?[]:a}var Rh={evaluateInteractionItems:Ms,modes:{index(i,t,e,n){const o=ji(t,i),a=e.axis||"x",c=e.includeInvisible||!1,d=e.intersect?Aa(i,o,a,n,c):Sa(i,o,a,!1,n,c),u=[];return d.length?(i.getSortedVisibleDatasetMetas().forEach(p=>{const g=d[0].index,_=p.data[g];_&&!_.skip&&u.push({element:_,datasetIndex:p.index,index:g})}),u):[]},dataset(i,t,e,n){const o=ji(t,i),a=e.axis||"xy",c=e.includeInvisible||!1;let d=e.intersect?Aa(i,o,a,n,c):Sa(i,o,a,!1,n,c);if(d.length>0){const u=d[0].datasetIndex,p=i.getDatasetMeta(u).data;d=[];for(let g=0;gAa(i,ji(t,i),e.axis||"xy",n,e.includeInvisible||!1),nearest:(i,t,e,n)=>Sa(i,ji(t,i),e.axis||"xy",e.intersect,n,e.includeInvisible||!1),x:(i,t,e,n)=>Hl(i,ji(t,i),"x",e.intersect,n),y:(i,t,e,n)=>Hl(i,ji(t,i),"y",e.intersect,n)}};const Wl=["left","top","right","bottom"];function Ts(i,t){return i.filter(e=>e.pos===t)}function Vl(i,t){return i.filter(e=>-1===Wl.indexOf(e.pos)&&e.box.axis===t)}function Ps(i,t){return i.sort((e,n)=>{const o=t?n:e,a=t?e:n;return o.weight===a.weight?o.index-a.index:o.weight-a.weight})}function jl(i,t,e,n){return Math.max(i[e],t[e])+Math.max(i[n],t[n])}function Yl(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function Hh(i,t,e,n){const{pos:o,box:a}=e,c=i.maxPadding;if(!st(o)){e.size&&(i[o]-=e.size);const _=n[e.stack]||{size:0,count:1};_.size=Math.max(_.size,e.horizontal?a.height:a.width),e.size=_.size/_.count,i[o]+=e.size}a.getPadding&&Yl(c,a.getPadding());const d=Math.max(0,t.outerWidth-jl(c,i,"left","right")),u=Math.max(0,t.outerHeight-jl(c,i,"top","bottom")),p=d!==i.w,g=u!==i.h;return i.w=d,i.h=u,e.horizontal?{same:p,other:g}:{same:g,other:p}}function Vh(i,t){const e=t.maxPadding;return function n(o){const a={left:0,top:0,right:0,bottom:0};return o.forEach(c=>{a[c]=Math.max(t[c],e[c])}),a}(i?["left","right"]:["top","bottom"])}function ks(i,t,e,n){const o=[];let a,c,d,u,p,g;for(a=0,c=i.length,p=0;ap.box.fullSize),!0),n=Ps(Ts(t,"left"),!0),o=Ps(Ts(t,"right")),a=Ps(Ts(t,"top"),!0),c=Ps(Ts(t,"bottom")),d=Vl(t,"x"),u=Vl(t,"y");return{fullSize:e,leftAndTop:n.concat(a),rightAndBottom:o.concat(u).concat(c).concat(d),chartArea:Ts(t,"chartArea"),vertical:n.concat(o).concat(u),horizontal:a.concat(c).concat(d)}}(i.boxes),u=d.vertical,p=d.horizontal;ht(i.boxes,M=>{"function"==typeof M.beforeLayout&&M.beforeLayout()});const g=u.reduce((M,T)=>T.box.options&&!1===T.box.options.display?M:M+1,0)||1,_=Object.freeze({outerWidth:t,outerHeight:e,padding:o,availableWidth:a,availableHeight:c,vBoxMaxWidth:a/2/g,hBoxMaxHeight:c/2}),v=Object.assign({},o);Yl(v,Vt(n));const y=Object.assign({maxPadding:v,w:a,h:c,x:o.left,y:o.top},o),w=function Uh(i,t){const e=function Bh(i){const t={};for(const e of i){const{stack:n,pos:o,stackWeight:a}=e;if(!n||!Wl.includes(o))continue;const c=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});c.count++,c.weight+=a}return t}(i),{vBoxMaxWidth:n,hBoxMaxHeight:o}=t;let a,c,d;for(a=0,c=i.length;a{const T=M.box;Object.assign(T,i.chartArea),T.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class Gl{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,o){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,o?Math.floor(e/o):n)}}isAttached(t){return!0}updateConfig(t){}}class jh extends Gl{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const $o="$chartjs",Yh={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},$l=i=>null===i||""===i,Ql=!!$d&&{passive:!0};function $h(i,t,e){i.canvas.removeEventListener(t,e,Ql)}function Qo(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function Xh(i,t,e){const n=i.canvas,o=new MutationObserver(a=>{let c=!1;for(const d of a)c=c||Qo(d.addedNodes,n),c=c&&!Qo(d.removedNodes,n);c&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function Kh(i,t,e){const n=i.canvas,o=new MutationObserver(a=>{let c=!1;for(const d of a)c=c||Qo(d.removedNodes,n),c=c&&!Qo(d.addedNodes,n);c&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const As=new Map;let Xl=0;function Kl(){const i=window.devicePixelRatio;i!==Xl&&(Xl=i,As.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function iu(i,t,e){const n=i.canvas,o=n&&wa(n);if(!o)return;const a=tl((d,u)=>{const p=o.clientWidth;e(d,u),p{const u=d[0],p=u.contentRect.width,g=u.contentRect.height;0===p&&0===g||a(p,g)});return c.observe(o),function tu(i,t){As.size||window.addEventListener("resize",Kl),As.set(i,t)}(i,a),c}function Oa(i,t,e){e&&e.disconnect(),"resize"===t&&function eu(i){As.delete(i),As.size||window.removeEventListener("resize",Kl)}(i)}function nu(i,t,e){const n=i.canvas,o=tl(a=>{null!==i.ctx&&e(function Qh(i,t){const e=Yh[i.type]||i.type,{x:n,y:o}=ji(i,t);return{type:e,chart:t,native:i,x:void 0!==n?n:null,y:void 0!==o?o:null}}(a,i))},i);return function Gh(i,t,e){i.addEventListener(t,e,Ql)}(n,t,o),o}class su extends Gl{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function Jh(i,t){const e=i.style,n=i.getAttribute("height"),o=i.getAttribute("width");if(i[$o]={initial:{height:n,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",$l(o)){const a=xl(i,"width");void 0!==a&&(i.width=a)}if($l(n))if(""===i.style.height)i.height=i.width/(t||2);else{const a=xl(i,"height");void 0!==a&&(i.height=a)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[$o])return!1;const n=e[$o].initial;["height","width"].forEach(a=>{const c=n[a];ct(c)?e.removeAttribute(a):e.setAttribute(a,c)});const o=n.style||{};return Object.keys(o).forEach(a=>{e.style[a]=o[a]}),e.width=e.width,delete e[$o],!0}addEventListener(t,e,n){this.removeEventListener(t,e),(t.$proxies||(t.$proxies={}))[e]=({attach:Xh,detach:Kh,resize:iu}[e]||nu)(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),o=n[e];o&&(({attach:Oa,detach:Oa,resize:Oa}[e]||$h)(t,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,o){return function Gd(i,t,e,n){const o=qo(i),a=Vi(o,"margin"),c=Uo(o.maxWidth,i,"clientWidth")||wn,d=Uo(o.maxHeight,i,"clientHeight")||wn,u=function Jd(i,t,e){let n,o;if(void 0===t||void 0===e){const a=wa(i);if(a){const c=a.getBoundingClientRect(),d=qo(a),u=Vi(d,"border","width"),p=Vi(d,"padding");t=c.width-p.width-u.width,e=c.height-p.height-u.height,n=Uo(d.maxWidth,a,"clientWidth"),o=Uo(d.maxHeight,a,"clientHeight")}else t=i.clientWidth,e=i.clientHeight}return{width:t,height:e,maxWidth:n||wn,maxHeight:o||wn}}(i,t,e);let{width:p,height:g}=u;if("content-box"===o.boxSizing){const v=Vi(o,"border","width"),y=Vi(o,"padding");p-=y.width+v.width,g-=y.height+v.height}return p=Math.max(0,p-a.width),g=Math.max(0,n?p/n:g-a.height),p=Ho(Math.min(p,c,u.maxWidth)),g=Ho(Math.min(g,d,u.maxHeight)),p&&!g&&(g=Ho(p/2)),(void 0!==t||void 0!==e)&&n&&u.height&&g>u.height&&(g=u.height,p=Ho(Math.floor(g*n))),{width:p,height:g}}(t,e,n,o)}isAttached(t){const e=wa(t);return!(!e||!e.isConnected)}}class Ae{constructor(){F(this,"x",void 0),F(this,"y",void 0),F(this,"active",!1),F(this,"options",void 0),F(this,"$animations",void 0)}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return ze(this.x)&&ze(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const o={};return t.forEach(a=>{o[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),o}}function Xo(i,t,e,n,o){const a=G(n,0),c=Math.min(G(o,i.length),i.length);let u,p,g,d=0;for(e=Math.ceil(e),o&&(u=o-n,e=u/Math.floor(u/e)),g=a;g<0;)d++,g=Math.round(a+d*e);for(p=Math.max(a,0);p"top"===t||"left"===t?i[t]+e:i[t]-e,ec=(i,t)=>Math.min(t||i,i);function ic(i,t){const e=[],n=i.length/t,o=i.length;let a=0;for(;ac+d)))return u}function Ss(i){return i.drawTicks?i.tickLength:0}function nc(i,t){if(!i.display)return 0;const e=Et(i.font,t),n=Vt(i.padding);return(bt(i.text)?i.text.length:1)*e.lineHeight+n.height}function _u(i,t,e){let n=ua(i);return(e&&"right"!==t||!e&&"right"===t)&&(n=(i=>"left"===i?"right":"right"===i?"left":i)(n)),n}class $i extends Ae{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return t=Ht(t,Number.POSITIVE_INFINITY),e=Ht(e,Number.NEGATIVE_INFINITY),n=Ht(n,Number.POSITIVE_INFINITY),o=Ht(o,Number.NEGATIVE_INFINITY),{min:Ht(t,n),max:Ht(e,o),minDefined:Ct(t),maxDefined:Ct(e)}}getMinMax(t){let c,{min:e,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:e,max:n};const d=this.getMatchingVisibleMetas();for(let u=0,p=d.length;un?n:e,n=o&&e>n?e:n,{min:Ht(e,Ht(n,e)),max:Ht(n,Ht(e,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){pt(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:o,grace:a,ticks:c}=this.options,d=c.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function kd(i,t,e){const{min:n,max:o}=i,a=Lo(t,(o-n)/2),c=(d,u)=>e&&0===d?0:d+u;return{min:c(n,-Math.abs(a)),max:c(o,a)}}(this,a,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=do)return function du(i,t,e,n){let c,o=0,a=e[0];for(n=Math.ceil(n),c=0;co-a).pop(),t}(n);for(let c=0,d=a.length-1;co)return u}return Math.max(o,1)}(a,t,o);if(c>0){let _,v;const y=c>1?Math.round((u-d)/(c-1)):null;for(Xo(t,p,g,ct(y)?0:d-y,d),_=0,v=c-1;_=a||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const g=this._getLabelSizes(),_=g.widest.width,v=g.highest.height,y=Bt(this.chart.width-_,0,this.maxWidth);d=t.offset?this.maxWidth/n:y/(n-1),_+6>d&&(d=y/(n-(t.offset?.5:1)),u=this.maxHeight-Ss(t.grid)-e.padding-nc(t.title,this.chart.options.font),p=Math.sqrt(_*_+v*v),c=ca(Math.min(Math.asin(Bt((g.highest.height+6)/d,-1,1)),Math.asin(Bt(u/p,-1,1))-Math.asin(Bt(v/p,-1,1)))),c=Math.max(o,Math.min(a,c))),this.labelRotation=c}afterCalculateLabelRotation(){pt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){pt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:a}}=this,c=this._isVisible(),d=this.isHorizontal();if(c){const u=nc(o,e.options.font);if(d?(t.width=this.maxWidth,t.height=Ss(a)+u):(t.height=this.maxHeight,t.width=Ss(a)+u),n.display&&this.ticks.length){const{first:p,last:g,widest:_,highest:v}=this._getLabelSizes(),y=2*n.padding,w=Pe(this.labelRotation),M=Math.cos(w),T=Math.sin(w);d?t.height=Math.min(this.maxHeight,t.height+(n.mirror?0:T*_.width+M*v.height)+y):t.width=Math.min(this.maxWidth,t.width+(n.mirror?0:M*_.width+T*v.height)+y),this._calculatePadding(p,g,T,M)}}this._handleMargins(),d?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,o){const{ticks:{align:a,padding:c},position:d}=this.options,u=0!==this.labelRotation,p="top"!==d&&"x"===this.axis;if(this.isHorizontal()){const g=this.getPixelForTick(0)-this.left,_=this.right-this.getPixelForTick(this.ticks.length-1);let v=0,y=0;u?p?(v=o*t.width,y=n*e.height):(v=n*t.height,y=o*e.width):"start"===a?y=e.width:"end"===a?v=t.width:"inner"!==a&&(v=t.width/2,y=e.width/2),this.paddingLeft=Math.max((v-g+c)*this.width/(this.width-g),0),this.paddingRight=Math.max((y-_+c)*this.width/(this.width-_),0)}else{let g=e.height/2,_=t.height/2;"start"===a?(g=0,_=t.height):"end"===a&&(g=e.height,_=0),this.paddingTop=g+c,this.paddingBottom=_+c}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){pt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e{const n=e.gc,o=n.length/2;let a;if(o>t){for(a=0;a({width:c[V]||0,height:d[V]||0});return{first:U(0),last:U(e-1),widest:U(R),highest:U(N),widths:c,heights:d}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return function id(i){return Bt(i,-32768,32767)}(this._alignToPixels?qi(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&td*o?d/n:u/o:u*o0}_computeGridLineItems(t){const e=this.axis,n=this.chart,o=this.options,{grid:a,position:c,border:d}=o,u=a.offset,p=this.isHorizontal(),_=this.ticks.length+(u?1:0),v=Ss(a),y=[],w=d.setContext(this.getContext()),M=w.display?w.width:0,T=M/2,A=function(Pt){return qi(n,Pt,M)};let O,E,z,Z,R,N,U,V,et,it,rt,Ut;if("top"===c)O=A(this.bottom),N=this.bottom-v,V=O-T,it=A(t.top)+T,Ut=t.bottom;else if("bottom"===c)O=A(this.top),it=t.top,Ut=A(t.bottom)-T,N=O+T,V=this.top+v;else if("left"===c)O=A(this.right),R=this.right-v,U=O-T,et=A(t.left)+T,rt=t.right;else if("right"===c)O=A(this.left),et=t.left,rt=A(t.right)-T,R=O+T,U=this.left+v;else if("x"===e){if("center"===c)O=A((t.top+t.bottom)/2+.5);else if(st(c)){const Pt=Object.keys(c)[0];O=A(this.chart.scales[Pt].getPixelForValue(c[Pt]))}it=t.top,Ut=t.bottom,N=O+T,V=N+v}else if("y"===e){if("center"===c)O=A((t.left+t.right)/2);else if(st(c)){const Pt=Object.keys(c)[0];O=A(this.chart.scales[Pt].getPixelForValue(c[Pt]))}R=O-T,U=R-v,et=t.left,rt=t.right}const he=G(o.ticks.maxTicksLimit,_),_t=Math.max(1,Math.ceil(_/he));for(E=0;E<_;E+=_t){const Pt=this.getContext(E),Zt=a.setContext(Pt),Se=d.setContext(Pt),Yt=Zt.lineWidth,kn=Zt.color,dr=Se.dash||[],An=Se.dashOffset,Es=Zt.tickWidth,Fs=Zt.tickColor,Rs=Zt.tickBorderDash||[],Ns=Zt.tickBorderDashOffset;z=fu(this,E,u),void 0!==z&&(Z=qi(n,z,Yt),p?R=U=et=rt=Z:N=V=it=Ut=Z,y.push({tx1:R,ty1:N,tx2:U,ty2:V,x1:et,y1:it,x2:rt,y2:Ut,width:Yt,color:kn,borderDash:dr,borderDashOffset:An,tickWidth:Es,tickColor:Fs,tickBorderDash:Rs,tickBorderDashOffset:Ns}))}return this._ticksLength=_,this._borderValue=O,y}_computeLabelItems(t){const e=this.axis,n=this.options,{position:o,ticks:a}=n,c=this.isHorizontal(),d=this.ticks,{align:u,crossAlign:p,padding:g,mirror:_}=a,v=Ss(n.grid),y=v+g,w=_?-g:y,M=-Pe(this.labelRotation),T=[];let A,O,E,z,Z,R,N,U,V,et,it,rt,Ut="middle";if("top"===o)R=this.bottom-w,N=this._getXAxisLabelAlignment();else if("bottom"===o)R=this.top+w,N=this._getXAxisLabelAlignment();else if("left"===o){const _t=this._getYAxisLabelAlignment(v);N=_t.textAlign,Z=_t.x}else if("right"===o){const _t=this._getYAxisLabelAlignment(v);N=_t.textAlign,Z=_t.x}else if("x"===e){if("center"===o)R=(t.top+t.bottom)/2+y;else if(st(o)){const _t=Object.keys(o)[0];R=this.chart.scales[_t].getPixelForValue(o[_t])+y}N=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===o)Z=(t.left+t.right)/2-y;else if(st(o)){const _t=Object.keys(o)[0];Z=this.chart.scales[_t].getPixelForValue(o[_t])}N=this._getYAxisLabelAlignment(v).textAlign}"y"===e&&("start"===u?Ut="top":"end"===u&&(Ut="bottom"));const he=this._getLabelSizes();for(A=0,O=d.length;Aa.value===t);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,c;const d=(u,p,g)=>{!g.width||!g.color||(n.save(),n.lineWidth=g.width,n.strokeStyle=g.color,n.setLineDash(g.borderDash||[]),n.lineDashOffset=g.borderDashOffset,n.beginPath(),n.moveTo(u.x,u.y),n.lineTo(p.x,p.y),n.stroke(),n.restore())};if(e.display)for(a=0,c=o.length;a{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:e,draw:a=>{this.drawLabels(a)}}]:[{z:e,draw:a=>{this.draw(a)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let a,c;for(a=0,c=e.length;a{const n=e.split("."),o=n.pop(),a=[i].concat(n).join("."),c=t[e].split("."),d=c.pop(),u=c.join(".");Lt.route(a,o,u,d)})}(t,i.defaultRoutes),i.descriptors&&Lt.describe(t,i.descriptors)}(t,c,n),this.override&&Lt.override(t.id,t.overrides)),c}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,o=this.scope;n in e&&delete e[n],o&&n in Lt[o]&&(delete Lt[o][n],this.override&&delete Ui[n])}}class wu{constructor(){this.controllers=new Ko(ke,"datasets",!0),this.elements=new Ko(Ae,"elements"),this.plugins=new Ko(Object,"plugins"),this.scales=new Ko($i,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(o=>{const a=n||this._getRegistryForType(o);n||a.isForType(o)||a===this.plugins&&o.id?this._exec(t,a,o):ht(o,c=>{const d=n||this._getRegistryForType(c);this._exec(t,d,c)})})}_exec(t,e,n){const o=j(t);pt(n["before"+o],[],n),e[t](n),pt(n["after"+o],[],n)}_getRegistryForType(t){for(let e=0;ea.filter(d=>!c.some(u=>d.plugin.id===u.plugin.id));this._notify(o(e,n),t,"stop"),this._notify(o(n,e),t,"start")}}function Tu(i,t){return t||!1!==i?!0===i?{}:i:null}function ku(i,{plugin:t,local:e},n,o){const a=i.pluginScopeKeys(t),c=i.getOptionScopes(n,a);return e&&t.defaults&&c.push(t.defaults),i.createResolver(c,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function La(i,t){return((t.datasets||{})[i]||{}).indexAxis||t.indexAxis||(Lt.datasets[i]||{}).indexAxis||"x"}function sc(i){if("x"===i||"y"===i||"r"===i)return i}function Ou(i){return"top"===i||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0}function Da(i,...t){if(sc(i))return i;for(const e of t){const n=e.axis||Ou(e.position)||i.length>1&&sc(i[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`)}function oc(i,t,e){if(e[t+"AxisID"]===i)return{axis:t}}function rc(i){const t=i.options||(i.options={});t.plugins=G(t.plugins,{}),t.scales=function Du(i,t){const e=Ui[i.type]||{scales:{}},n=t.scales||{},o=La(i.type,t),a=Object.create(null);return Object.keys(n).forEach(c=>{const d=n[c];if(!st(d))return console.error(`Invalid scale configuration for scale: ${c}`);if(d._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${c}`);const u=Da(c,d,function Lu(i,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(n=>n.xAxisID===i||n.yAxisID===i);if(e.length)return oc(i,"x",e[0])||oc(i,"y",e[0])}return{}}(c,i),Lt.scales[d.type]),p=function Su(i,t){return i===t?"_index_":"_value_"}(u,o),g=e.scales||{};a[c]=m(Object.create(null),[{axis:u},d,g[u],g[p]])}),i.data.datasets.forEach(c=>{const d=c.type||i.type,u=c.indexAxis||La(d,t),g=(Ui[d]||{}).scales||{};Object.keys(g).forEach(_=>{const v=function Au(i,t){let e=i;return"_index_"===i?e=t:"_value_"===i&&(e="x"===t?"y":"x"),e}(_,u),y=c[v+"AxisID"]||v;a[y]=a[y]||Object.create(null),m(a[y],[{axis:v},n[y],g[_]])})}),Object.keys(a).forEach(c=>{const d=a[c];m(d,[Lt.scales[d.type],Lt.scale])}),a}(i,t)}function ac(i){return(i=i||{}).datasets=i.datasets||[],i.labels=i.labels||[],i}const lc=new Map,cc=new Set;function tr(i,t){let e=lc.get(i);return e||(e=t(),lc.set(i,e),cc.add(e)),e}const Os=(i,t,e)=>{const n=B(t,e);void 0!==n&&i.add(n)};class Iu{constructor(t){this._config=function Zu(i){return(i=i||{}).data=ac(i.data),rc(i),i}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ac(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),rc(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return tr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return tr(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return tr(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return tr(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let o=n.get(t);return(!o||e)&&(o=new Map,n.set(t,o)),o}getOptionScopes(t,e,n){const{options:o,type:a}=this,c=this._cachedScopes(t,n),d=c.get(e);if(d)return d;const u=new Set;e.forEach(g=>{t&&(u.add(t),g.forEach(_=>Os(u,t,_))),g.forEach(_=>Os(u,o,_)),g.forEach(_=>Os(u,Ui[a]||{},_)),g.forEach(_=>Os(u,Lt,_)),g.forEach(_=>Os(u,ma,_))});const p=Array.from(u);return 0===p.length&&p.push(Object.create(null)),cc.has(e)&&c.set(e,p),p}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ui[e]||{},Lt.datasets[e]||{},{type:e},Lt,ma]}resolveNamedOptions(t,e,n,o=[""]){const a={$shared:!0},{resolver:c,subPrefixes:d}=dc(this._resolverCache,t,o);let u=c;(function Eu(i,t){const{isScriptable:e,isIndexable:n}=hl(i);for(const o of t){const a=e(o),c=n(o),d=(c||a)&&i[o];if(a&&(Tt(d)||zu(d))||c&&bt(d))return!0}return!1})(c,e)&&(a.$shared=!1,u=Cn(c,n=Tt(n)?n():n,this.createResolver(t,n,d)));for(const p of e)a[p]=u[p];return a}createResolver(t,e,n=[""],o){const{resolver:a}=dc(this._resolverCache,t,n);return st(e)?Cn(a,e,void 0,o):a}}function dc(i,t,e){let n=i.get(t);n||(n=new Map,i.set(t,n));const o=e.join();let a=n.get(o);return a||(a={resolver:va(t,e),subPrefixes:e.filter(d=>!d.toLowerCase().includes("hover"))},n.set(o,a)),a}const zu=i=>st(i)&&Object.getOwnPropertyNames(i).reduce((t,e)=>t||Tt(i[e]),!1),Ru=["top","bottom","left","right","chartArea"];function hc(i,t){return"top"===i||"bottom"===i||-1===Ru.indexOf(i)&&"x"===t}function uc(i,t){return function(e,n){return e[i]===n[i]?e[t]-n[t]:e[i]-n[i]}}function fc(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),pt(e&&e.onComplete,[i],t)}function Nu(i){const t=i.chart,e=t.options.animation;pt(e&&e.onProgress,[i],t)}function pc(i){return vl()&&"string"==typeof i?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const er={},mc=i=>{const t=pc(i);return Object.values(er).filter(e=>e.canvas===t).pop()};function Bu(i,t,e){const n=Object.keys(i);for(const o of n){const a=+o;if(a>=t){const c=i[o];delete i[o],(e>0||a>t)&&(i[a+e]=c)}}}class Fe{static register(...t){Ee.add(...t),gc()}static unregister(...t){Ee.remove(...t),gc()}constructor(t,e){const n=this.config=new Iu(e),o=pc(t),a=mc(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const c=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function ou(i){return!vl()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?jh:su}(o)),this.platform.updateConfig(n);const d=this.platform.acquireContext(o,c.aspectRatio),u=d&&d.canvas,p=u&&u.height,g=u&&u.width;this.id=So(),this.ctx=d,this.canvas=u,this.width=g,this.height=p,this._options=c,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Cu,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function rd(i,t){let e;return function(...n){return t?(clearTimeout(e),e=setTimeout(i,t,n)):i.apply(this,n),t}}(_=>this.update(_),c.resizeDelay||0),this._dataChanges=[],er[this.id]=this,d&&u?(ni.listen(this,"complete",fc),ni.listen(this,"progress",Nu),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:o,_aspectRatio:a}=this;return ct(t)?e&&a?a:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ee}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():yl(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ll(this.canvas,this.ctx),this}stop(){return ni.stop(this),this}resize(t,e){ni.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,c=this.platform.getMaximumSize(this.canvas,t,e,n.maintainAspectRatio&&this.aspectRatio),d=n.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=c.width,this.height=c.height,this._aspectRatio=this.aspectRatio,yl(this,d,!0)&&(this.notifyPlugins("resize",{size:c}),pt(n.onResize,[this,c],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){ht(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,o=Object.keys(n).reduce((c,d)=>(c[d]=!1,c),{});let a=[];e&&(a=a.concat(Object.keys(e).map(c=>{const d=e[c],u=Da(c,d),p="r"===u,g="x"===u;return{options:d,dposition:p?"chartArea":g?"bottom":"left",dtype:p?"radialLinear":g?"category":"linear"}}))),ht(a,c=>{const d=c.options,u=d.id,p=Da(u,d),g=G(d.type,c.dtype);(void 0===d.position||hc(d.position,p)!==hc(c.dposition))&&(d.position=c.dposition),o[u]=!0;let _=null;u in n&&n[u].type===g?_=n[u]:(_=new(Ee.getScale(g))({id:u,type:g,ctx:this.ctx,chart:this}),n[_.id]=_),_.init(d,t)}),ht(o,(c,d)=>{c||delete n[d]}),ht(n,c=>{jt.configure(this,c,c.options),jt.addBox(this,c)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((o,a)=>o.index-a.index),n>e){for(let o=e;oe.length&&delete this._stacks,t.forEach((n,o)=>{0===e.filter(a=>a===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let p=0,g=this.data.datasets.length;p{p.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(uc("z","_idx"));const{_active:d,_lastEvent:u}=this;u?this._eventHandler(u,!0):d.length&&this._updateHoverStyles(d,d,!0),this.render()}_updateScales(){ht(this.scales,t=>{jt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!Dt(e,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:a}of e)Bu(t,o,"_removeElements"===n?-a:a)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=a=>new Set(t.filter(c=>c[0]===a).map((c,d)=>d+","+c.splice(1).join(","))),o=n(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;jt.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],ht(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,o=!n.disabled,a=function qu(i){const{xScale:t,yScale:e}=i;if(t&&e)return{left:t.left,right:t.right,top:e.top,bottom:e.bottom}}(t)||this.chartArea,c={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",c)&&(o&&Ro(e,{left:!1===n.left?0:a.left-n.left,right:!1===n.right?this.width:a.right+n.right,top:!1===n.top?0:a.top-n.top,bottom:!1===n.bottom?this.height:a.bottom+n.bottom}),t.controller.draw(),o&&No(e),c.cancelable=!1,this.notifyPlugins("afterDatasetDraw",c))}isPointInArea(t){return ii(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,o){const a=Rh.modes[e];return"function"==typeof a?a(this,t,n,o):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let o=n.filter(a=>a&&a._dataset===e).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=vi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const o=n?"show":"hide",a=this.getDatasetMeta(t),c=a.controller._resolveAnimations(void 0,o);X(e)?(a.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),c.update(a,{visible:n}),this.update(d=>d.datasetIndex===t?o:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ni.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,a,c),t[a]=c},o=(a,c,d)=>{a.offsetX=c,a.offsetY=d,this._eventHandler(a)};ht(this.options.events,a=>n(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(u,p)=>{e.addEventListener(this,u,p),t[u]=p},o=(u,p)=>{t[u]&&(e.removeEventListener(this,u,p),delete t[u])},a=(u,p)=>{this.canvas&&this.resize(u,p)};let c;const d=()=>{o("attach",d),this.attached=!0,this.resize(),n("resize",a),n("detach",c)};c=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),n("attach",d)},e.isAttached(this.canvas)?d():c()}unbindEvents(){ht(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},ht(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const o=n?"set":"remove";let a,c,d,u;for("dataset"===e&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),d=0,u=t.length;d{const d=this.getDatasetMeta(a);if(!d)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:d.data[c],index:c}});!xn(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,n){const o=this.options.hover,a=(u,p)=>u.filter(g=>!p.some(_=>g.datasetIndex===_.datasetIndex&&g.index===_.index)),c=a(e,t),d=n?t:a(t,e);c.length&&this.updateHoverStyle(c,o.mode,!1),d.length&&o.mode&&this.updateHoverStyle(d,o.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},o=c=>(c.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const a=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(a||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:o=[],options:a}=this,d=this._getActiveElements(t,o,n,e),u=function se(i){return"mouseup"===i.type||"click"===i.type||"contextmenu"===i.type}(t),p=function Uu(i,t,e,n){return e&&"mouseout"!==i.type?n?t:i:null}(t,this._lastEvent,n,u);n&&(this._lastEvent=null,pt(a.onHover,[t,d,this],this),u&&pt(a.onClick,[t,d,this],this));const g=!xn(d,o);return(g||e)&&(this._active=d,this._updateHoverStyles(d,o,e)),this._lastEvent=p,g}_getActiveElements(t,e,n,o){if("mouseout"===t.type)return[];if(!n)return e;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,o)}}function gc(){return ht(Fe.instances,i=>i._plugins.invalidate())}function Pn(i,t,e,n){return{x:e+i*Math.cos(t),y:n+i*Math.sin(t)}}function ir(i,t,e,n,o,a){const{x:c,y:d,startAngle:u,pixelMargin:p,innerRadius:g}=t,_=Math.max(t.outerRadius+n+e-p,0),v=g>0?g+n+e+p:0;let y=0;const w=o-u;if(n){const Zt=((g>0?g-n:0)+(_>0?_-n:0))/2;y=(w-(0!==Zt?w*Zt/(Zt+n):w))/2}const T=(w-Math.max(.001,w*_-e/ot)/_)/2,A=u+T+y,O=o-T-y,{outerStart:E,outerEnd:z,innerStart:Z,innerEnd:R}=function Vu(i,t,e,n){const o=function Wu(i){return ba(i,["outerStart","outerEnd","innerStart","innerEnd"])}(i.options.borderRadius),a=(e-t)/2,c=Math.min(a,n*t/2),d=u=>{const p=(e-Math.min(a,u))*n/2;return Bt(u,0,Math.min(a,p))};return{outerStart:d(o.outerStart),outerEnd:d(o.outerEnd),innerStart:Bt(o.innerStart,0,c),innerEnd:Bt(o.innerEnd,0,c)}}(t,v,_,O-A),N=_-E,U=_-z,V=A+E/N,et=O-z/U,it=v+Z,rt=v+R,Ut=A+Z/it,he=O-R/rt;if(i.beginPath(),a){const _t=(V+et)/2;if(i.arc(c,d,_,V,_t),i.arc(c,d,_,_t,et),z>0){const Yt=Pn(U,et,c,d);i.arc(Yt.x,Yt.y,z,et,O+Mt)}const Pt=Pn(rt,O,c,d);if(i.lineTo(Pt.x,Pt.y),R>0){const Yt=Pn(rt,he,c,d);i.arc(Yt.x,Yt.y,R,O+Mt,he+Math.PI)}const Zt=(O-R/v+(A+Z/v))/2;if(i.arc(c,d,v,O-R/v,Zt,!0),i.arc(c,d,v,Zt,A+Z/v,!0),Z>0){const Yt=Pn(it,Ut,c,d);i.arc(Yt.x,Yt.y,Z,Ut+Math.PI,A-Mt)}const Se=Pn(N,A,c,d);if(i.lineTo(Se.x,Se.y),E>0){const Yt=Pn(N,V,c,d);i.arc(Yt.x,Yt.y,E,A-Mt,V)}}else{i.moveTo(c,d);const _t=Math.cos(V)*_+c,Pt=Math.sin(V)*_+d;i.lineTo(_t,Pt);const Zt=Math.cos(et)*_+c,Se=Math.sin(et)*_+d;i.lineTo(Zt,Se)}i.closePath()}F(Fe,"defaults",Lt),F(Fe,"instances",er),F(Fe,"overrides",Ui),F(Fe,"registry",Ee),F(Fe,"version","4.3.3"),F(Fe,"getChart",mc);class Ls extends Ae{constructor(t){super(),F(this,"circumference",void 0),F(this,"endAngle",void 0),F(this,"fullCircles",void 0),F(this,"innerRadius",void 0),F(this,"outerRadius",void 0),F(this,"pixelMargin",void 0),F(this,"startAngle",void 0),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const o=this.getProps(["x","y"],n),{angle:a,distance:c}=Ga(o,{x:t,y:e}),{startAngle:d,endAngle:u,innerRadius:p,outerRadius:g,circumference:_}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),v=(this.options.spacing+this.options.borderWidth)/2,w=G(_,u-d)>=ut||gs(a,d,u),M=ti(c,p+v,g+v);return w&&M}getCenterPoint(t){const{x:e,y:n,startAngle:o,endAngle:a,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:u,spacing:p}=this.options,g=(o+a)/2,_=(c+d+p+u)/2;return{x:e+Math.cos(g)*_,y:n+Math.sin(g)*_}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,o=(e.offset||0)/4,a=(e.spacing||0)/2,c=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>ut?Math.floor(n/ut):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const d=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(d)*o,Math.sin(d)*o);const p=o*(1-Math.sin(Math.min(ot,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function ju(i,t,e,n,o){const{fullCircles:a,startAngle:c,circumference:d}=t;let u=t.endAngle;if(a){ir(i,t,e,n,u,o);for(let p=0;po?(p=o/u,i.arc(a,c,u,e+p,n-p,!0)):i.arc(a,c,o,e+Mt,n-Mt),i.closePath(),i.clip()}(i,t,w),a||(ir(i,t,e,n,w,o),i.stroke())}(t,this,p,a,c),t.restore()}}function _c(i,t,e=t){i.lineCap=G(e.borderCapStyle,t.borderCapStyle),i.setLineDash(G(e.borderDash,t.borderDash)),i.lineDashOffset=G(e.borderDashOffset,t.borderDashOffset),i.lineJoin=G(e.borderJoinStyle,t.borderJoinStyle),i.lineWidth=G(e.borderWidth,t.borderWidth),i.strokeStyle=G(e.borderColor,t.borderColor)}function Ju(i,t,e){i.lineTo(e.x,e.y)}function bc(i,t,e={}){const n=i.length,{start:o=0,end:a=n-1}=e,{start:c,end:d}=t,u=Math.max(o,c),p=Math.min(a,d);return{count:n,start:u,loop:t.loop,ilen:pd&&a>d)?n+p-u:p-u}}function $u(i,t,e,n){const{points:o,options:a}=t,{count:c,start:d,loop:u,ilen:p}=bc(o,e,n),g=function Gu(i){return i.stepped?bd:i.tension||"monotone"===i.cubicInterpolationMode?vd:Ju}(a);let y,w,M,{move:_=!0,reverse:v}=n||{};for(y=0;y<=p;++y)w=o[(d+(v?p-y:y))%c],!w.skip&&(_?(i.moveTo(w.x,w.y),_=!1):g(i,M,w,v,a.stepped),M=w);return u&&(w=o[(d+(v?p:0))%c],g(i,M,w,v,a.stepped)),!!u}function Qu(i,t,e,n){const o=t.points,{count:a,start:c,ilen:d}=bc(o,e,n),{move:u=!0,reverse:p}=n||{};let v,y,w,M,T,A,g=0,_=0;const O=z=>(c+(p?d-z:z))%a,E=()=>{M!==T&&(i.lineTo(g,T),i.lineTo(g,M),i.lineTo(g,A))};for(u&&(y=o[O(0)],i.moveTo(y.x,y.y)),v=0;v<=d;++v){if(y=o[O(v)],y.skip)continue;const z=y.x,Z=y.y,R=0|z;R===w?(ZT&&(T=Z),g=(_*g+z)/++_):(E(),i.lineTo(z,Z),w=R,_=0,M=T=Z),A=Z}E()}function Za(i){const t=i.options;return i._decimated||i._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||t.borderDash&&t.borderDash.length?$u:Qu}F(Ls,"id","arc"),F(Ls,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),F(Ls,"defaultRoutes",{backgroundColor:"backgroundColor"}),F(Ls,"descriptors",{_scriptable:!0,_indexable:i=>"borderDash"!==i});const ef="function"==typeof Path2D;class yi extends Ae{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;!n.tension&&"monotone"!==n.cubicInterpolationMode||n.stepped||this._pointsUpdated||(Hd(this._points,n,t,n.spanGaps?this._loop:this._fullLoop,e),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function sh(i,t){const e=i.points,n=i.options.spanGaps,o=e.length;if(!o)return[];const a=!!i._loop,{start:c,end:d}=function ih(i,t,e,n){let o=0,a=t-1;if(e&&!n)for(;oo&&i[a%t].skip;)a--;return a%=t,{start:o,end:a}}(e,o,a,n);return function Al(i,t,e,n){return n&&n.setContext&&e?function oh(i,t,e,n){const o=i._chart.getContext(),a=Sl(i.options),{_datasetIndex:c,options:{spanGaps:d}}=i,u=e.length,p=[];let g=a,_=t[0].start,v=_;function y(w,M,T,A){const O=d?-1:1;if(w!==M){for(w+=u;e[w%u].skip;)w-=O;for(;e[M%u].skip;)M+=O;w%u!=M%u&&(p.push({start:w%u,end:M%u,loop:T,style:A}),g=A,_=M%u)}}for(const w of t){_=d?_:w.start;let T,M=e[_%u];for(v=_+1;v<=w.end;v++){const A=e[v%u];T=Sl(n.setContext(vi(o,{type:"segment",p0:M,p1:A,p0DataIndex:(v-1)%u,p1DataIndex:v%u,datasetIndex:c}))),rh(T,g)&&y(_,v-1,w.loop,g),M=A,g=T}_"borderDash"!==i&&"fill"!==i});class nr extends Ae{constructor(t){super(),F(this,"parsed",void 0),F(this,"skip",void 0),F(this,"stop",void 0),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const o=this.options,{x:a,y:c}=this.getProps(["x","y"],n);return Math.pow(t-a,2)+Math.pow(e-c,2)i.replace("rgb(","rgba(").replace(")",", 0.5)"));function wc(i){return Ea[i%Ea.length]}function Cc(i){return xc[i%xc.length]}function Mc(i){let t;for(t in i)if(i[t].borderColor||i[t].backgroundColor)return!0;return!1}var gf={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(i,t,e){if(!e.enabled)return;const{data:{datasets:n},options:o}=i.config,{elements:a}=o;if(!e.forceOverride&&(Mc(n)||function mf(i){return i&&(i.borderColor||i.backgroundColor)}(o)||a&&Mc(a)))return;const c=function pf(i){let t=0;return(e,n)=>{const o=i.getDatasetMeta(n).controller;o instanceof Ji?t=function uf(i,t){return i.backgroundColor=i.data.map(()=>wc(t++)),t}(e,t):o instanceof Cs?t=function ff(i,t){return i.backgroundColor=i.data.map(()=>Cc(t++)),t}(e,t):o&&(t=function hf(i,t){return i.borderColor=wc(t),i.backgroundColor=Cc(t),++t}(e,t))}}(i);n.forEach(c)}};function Tc(i){if(i._decimated){const t=i._data;delete i._decimated,delete i._data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Pc(i){i.data.datasets.forEach(t=>{Tc(t)})}var yf={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(i,t,e)=>{if(!e.enabled)return void Pc(i);const n=i.width;i.data.datasets.forEach((o,a)=>{const{_data:c,indexAxis:d}=o,u=i.getDatasetMeta(a),p=c||o.data;if("y"===xs([d,i.options.indexAxis])||!u.controller.supportsDecimation)return;const g=i.scales[u.xAxisID];if("linear"!==g.type&&"time"!==g.type||i.options.parsing)return;let w,{start:_,count:v}=function vf(i,t){const e=t.length;let o,n=0;const{iScale:a}=i,{min:c,max:d,minDefined:u,maxDefined:p}=a.getUserBounds();return u&&(n=Bt(ei(t,a.axis,c).lo,0,e-1)),o=p?Bt(ei(t,a.axis,d).hi+1,n,e)-n:e-n,{start:n,count:o}}(u,p);if(v<=(e.threshold||4*n))Tc(o);else{switch(ct(c)&&(o._data=p,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(M){this._data=M}})),e.algorithm){case"lttb":w=function _f(i,t,e,n,o){const a=o.samples||n;if(a>=e)return i.slice(t,t+e);const c=[],d=(e-2)/(a-2);let u=0;const p=t+e-1;let _,v,y,w,M,g=t;for(c[u++]=i[g],_=0;_y&&(y=w,v=i[O],M=O);c[u++]=v,g=M}return c[u++]=i[p],c}(p,_,v,n,e);break;case"min-max":w=function bf(i,t,e,n){let c,d,u,p,g,_,v,y,w,M,o=0,a=0;const T=[],O=i[t].x,z=i[t+e-1].x-O;for(c=t;cM&&(M=p,v=c),o=(a*o+d.x)/++a;else{const R=c-1;if(!ct(_)&&!ct(v)){const N=Math.min(_,v),U=Math.max(_,v);N!==y&&N!==R&&T.push({...i[N],x:o}),U!==y&&U!==R&&T.push({...i[U],x:o})}c>0&&R!==y&&T.push(i[R]),T.push(d),g=Z,a=0,w=M=p,_=v=y=c}}return T}(p,_,v,n);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=w}})},destroy(i){Pc(i)}};function Fa(i,t,e,n){if(n)return;let o=t[i],a=e[i];return"angle"===i&&(o=de(o),a=de(a)),{property:i,start:o,end:a}}function Ra(i,t,e){for(;t>i;t--){const n=e[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function kc(i,t,e,n){return i&&t?n(i[e],t[e]):i?i[e]:t?t[e]:0}function Ac(i,t){let e=[],n=!1;return bt(i)?(n=!0,e=i):e=function wf(i,t){const{x:e=null,y:n=null}=i||{},o=t.points,a=[];return t.segments.forEach(({start:c,end:d})=>{d=Ra(c,d,o);const u=o[c],p=o[d];null!==n?(a.push({x:u.x,y:n}),a.push({x:p.x,y:n})):null!==e&&(a.push({x:e,y:u.y}),a.push({x:e,y:p.y}))}),a}(i,t),e.length?new yi({points:e,options:{tension:0},_loop:n,_fullLoop:n}):null}function Sc(i){return i&&!1!==i.fill}function Cf(i,t,e){let o=i[t].fill;const a=[t];let c;if(!e)return o;for(;!1!==o&&-1===a.indexOf(o);){if(!Ct(o))return o;if(c=i[o],!c)return!1;if(c.visible)return o;a.push(o),o=c.fill}return!1}function Mf(i,t,e){const n=function Af(i){const t=i.options,e=t.fill;let n=G(e&&e.target,e);return void 0===n&&(n=!!t.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(i);if(st(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return Ct(o)&&Math.floor(o)===o?function Tf(i,t,e,n){return("-"===i||"+"===i)&&(e=t+e),!(e===t||e<0||e>=n)&&e}(n[0],t,o,e):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Lf(i,t,e){const n=[];for(let o=0;o=0;--c){const d=o[c].$filler;!d||(d.line.updateControlPoints(a,d.axis),n&&d.fill&&Na(i.ctx,d,a))}},beforeDatasetsDraw(i,t,e){if("beforeDatasetsDraw"!==e.drawTime)return;const n=i.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const a=n[o].$filler;Sc(a)&&Na(i.ctx,a,i.chartArea)}},beforeDatasetDraw(i,t,e){const n=t.meta.$filler;!Sc(n)||"beforeDatasetDraw"!==e.drawTime||Na(i.ctx,n,i.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ic=(i,t)=>{let{boxHeight:e=t,boxWidth:n=t}=i;return i.usePointStyle&&(e=Math.min(e,t),n=i.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:e,itemHeight:Math.max(t,e)}};class zc extends Ae{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=pt(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(n=>t.filter(n,this.chart.data))),t.sort&&(e=e.sort((n,o)=>t.sort(n,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,o=Et(n.font),a=o.size,c=this._computeTitleHeight(),{boxWidth:d,itemHeight:u}=Ic(n,a);let p,g;e.font=o.string,this.isHorizontal()?(p=this.maxWidth,g=this._fitRows(c,a,d,u)+10):(g=this.maxHeight,p=this._fitCols(c,o,d,u)+10),this.width=Math.min(p,t.maxWidth||this.maxWidth),this.height=Math.min(g,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,o){const{ctx:a,maxWidth:c,options:{labels:{padding:d}}}=this,u=this.legendHitBoxes=[],p=this.lineWidths=[0],g=o+d;let _=t;a.textAlign="left",a.textBaseline="middle";let v=-1,y=-g;return this.legendItems.forEach((w,M)=>{const T=n+e/2+a.measureText(w.text).width;(0===M||p[p.length-1]+T+2*d>c)&&(_+=g,p[p.length-(M>0?0:1)]=0,y+=g,v++),u[M]={left:0,top:y,row:v,width:T,height:o},p[p.length-1]+=T+d}),_}_fitCols(t,e,n,o){const{ctx:a,maxHeight:c,options:{labels:{padding:d}}}=this,u=this.legendHitBoxes=[],p=this.columnSizes=[],g=c-t;let _=d,v=0,y=0,w=0,M=0;return this.legendItems.forEach((T,A)=>{const{itemWidth:O,itemHeight:E}=function qf(i,t,e,n,o){const a=function Hf(i,t,e,n){let o=i.text;return o&&"string"!=typeof o&&(o=o.reduce((a,c)=>a.length>c.length?a:c)),t+e.size/2+n.measureText(o).width}(n,i,t,e),c=function Wf(i,t,e){let n=i;return"string"!=typeof t.text&&(n=Ec(t,e)),n}(o,n,t.lineHeight);return{itemWidth:a,itemHeight:c}}(n,e,a,T,o);A>0&&y+E+2*d>g&&(_+=v+d,p.push({width:v,height:y}),w+=v+d,M++,v=y=0),u[A]={left:w,top:y,col:M,width:O,height:E},v=Math.max(v,O),y+=E+d}),_+=v,p.push({width:v,height:y}),_}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:a}}=this,c=Tn(a,this.left,this.width);if(this.isHorizontal()){let d=0,u=Wt(n,this.left+o,this.right-this.lineWidths[d]);for(const p of e)d!==p.row&&(d=p.row,u=Wt(n,this.left+o,this.right-this.lineWidths[d])),p.top+=this.top+t+o,p.left=c.leftForLtr(c.x(u),p.width),u+=p.width+o}else{let d=0,u=Wt(n,this.top+t+o,this.bottom-this.columnSizes[d].height);for(const p of e)p.col!==d&&(d=p.col,u=Wt(n,this.top+t+o,this.bottom-this.columnSizes[d].height)),p.top=u,p.left+=this.left+o,p.left=c.leftForLtr(c.x(p.left),p.width),u+=p.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ro(t,this),this._draw(),No(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:o}=this,{align:a,labels:c}=t,d=Lt.color,u=Tn(t.rtl,this.left,this.width),p=Et(c.font),{padding:g}=c,_=p.size,v=_/2;let y;this.drawTitle(),o.textAlign=u.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=p.string;const{boxWidth:w,boxHeight:M,itemHeight:T}=Ic(c,_),E=this.isHorizontal(),z=this._computeTitleHeight();y=E?{x:Wt(a,this.left+g,this.right-n[0]),y:this.top+g+z,line:0}:{x:this.left+g,y:Wt(a,this.top+z+g,this.bottom-e[0].height),line:0},wl(this.ctx,t.textDirection);const Z=T+g;this.legendItems.forEach((R,N)=>{o.strokeStyle=R.fontColor,o.fillStyle=R.fontColor;const U=o.measureText(R.text).width,V=u.textAlign(R.textAlign||(R.textAlign=c.textAlign)),et=w+v+U;let it=y.x,rt=y.y;u.setWidth(this.width),E?N>0&&it+et+g>this.right&&(rt=y.y+=Z,y.line++,it=y.x=Wt(a,this.left+g,this.right-n[y.line])):N>0&&rt+Z>this.bottom&&(it=y.x=it+e[y.line].width+g,y.line++,rt=y.y=Wt(a,this.top+z+g,this.bottom-e[y.line].height)),function(R,N,U){if(isNaN(w)||w<=0||isNaN(M)||M<0)return;o.save();const V=G(U.lineWidth,1);if(o.fillStyle=G(U.fillStyle,d),o.lineCap=G(U.lineCap,"butt"),o.lineDashOffset=G(U.lineDashOffset,0),o.lineJoin=G(U.lineJoin,"miter"),o.lineWidth=V,o.strokeStyle=G(U.strokeStyle,d),o.setLineDash(G(U.lineDash,[])),c.usePointStyle){const et={radius:M*Math.SQRT2/2,pointStyle:U.pointStyle,rotation:U.rotation,borderWidth:V},it=u.xPlus(R,w/2);cl(o,et,it,N+v,c.pointStyleWidth&&w)}else{const et=N+Math.max((_-M)/2,0),it=u.leftForLtr(R,w),rt=Wi(U.borderRadius);o.beginPath(),Object.values(rt).some(Ut=>0!==Ut)?ys(o,{x:it,y:et,w,h:M,radius:rt}):o.rect(it,et,w,M),o.fill(),0!==V&&o.stroke()}o.restore()}(u.x(it),rt,R),it=((i,t,e,n)=>i===(n?"left":"right")?e:"center"===i?(t+e)/2:t)(V,it+w+v,E?it+et:this.right,t.rtl),function(R,N,U){Hi(o,U.text,R,N+T/2,p,{strikethrough:U.hidden,textAlign:u.textAlign(U.textAlign)})}(u.x(it),rt,R),E?y.x+=et+g:y.y+="string"!=typeof R.text?Ec(R,p.lineHeight)+g:Z}),Cl(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Et(e.font),o=Vt(e.padding);if(!e.display)return;const a=Tn(t.rtl,this.left,this.width),c=this.ctx,d=e.position,p=o.top+n.size/2;let g,_=this.left,v=this.width;if(this.isHorizontal())v=Math.max(...this.lineWidths),g=this.top+p,_=Wt(t.align,_,this.right-v);else{const w=this.columnSizes.reduce((M,T)=>Math.max(M,T.height),0);g=p+Wt(t.align,this.top,this.bottom-w-t.labels.padding-this._computeTitleHeight())}const y=Wt(d,_,_+v);c.textAlign=a.textAlign(ua(d)),c.textBaseline="middle",c.strokeStyle=e.color,c.fillStyle=e.color,c.font=n.string,Hi(c,e.text,y,g,n)}_computeTitleHeight(){const t=this.options.title,e=Et(t.font),n=Vt(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,o,a;if(ti(t,this.left,this.right)&&ti(e,this.top,this.bottom))for(a=this.legendHitBoxes,n=0;nnull!==i&&null!==t&&i.datasetIndex===t.datasetIndex&&i.index===t.index)(o,n);o&&!a&&pt(e.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!a&&pt(e.onHover,[t,n,this],this)}else n&&pt(e.onClick,[t,n,this],this)}}function Ec(i,t){return t*(i.text?i.text.length:0)}var jf={id:"legend",_element:zc,start(i,t,e){const n=i.legend=new zc({ctx:i.ctx,options:e,chart:i});jt.configure(i,n,e),jt.addBox(i,n)},stop(i){jt.removeBox(i,i.legend),delete i.legend},beforeUpdate(i,t,e){const n=i.legend;jt.configure(i,n,e),n.options=e},afterUpdate(i){const t=i.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(i,t){t.replay||i.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(i,t,e){const n=t.datasetIndex,o=e.chart;o.isDatasetVisible(n)?(o.hide(n),t.hidden=!0):(o.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:i=>i.chart.options.color,boxWidth:40,padding:10,generateLabels(i){const t=i.data.datasets,{labels:{usePointStyle:e,pointStyle:n,textAlign:o,color:a,useBorderRadius:c,borderRadius:d}}=i.legend.options;return i._getSortedDatasetMetas().map(u=>{const p=u.controller.getStyle(e?0:void 0),g=Vt(p.borderWidth);return{text:t[u.index].label,fillStyle:p.backgroundColor,fontColor:a,hidden:!u.visible,lineCap:p.borderCapStyle,lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:(g.width+g.height)/4,strokeStyle:p.borderColor,pointStyle:n||p.pointStyle,rotation:p.rotation,textAlign:o||p.textAlign,borderRadius:c&&(d||p.borderRadius),datasetIndex:u.index}},this)}},title:{color:i=>i.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:i=>!i.startsWith("on"),labels:{_scriptable:i=>!["generateLabels","filter","sort"].includes(i)}}};class Ba extends Ae{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const o=bt(n.text)?n.text.length:1;this._padding=Vt(n.padding);const a=o*Et(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:o,right:a,options:c}=this,d=c.align;let p,g,_,u=0;return this.isHorizontal()?(g=Wt(d,n,a),_=e+t,p=a-n):("left"===c.position?(g=n+t,_=Wt(d,o,e),u=-.5*ot):(g=a-t,_=Wt(d,e,o),u=.5*ot),p=o-e),{titleX:g,titleY:_,maxWidth:p,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=Et(e.font),a=n.lineHeight/2+this._padding.top,{titleX:c,titleY:d,maxWidth:u,rotation:p}=this._drawArgs(a);Hi(t,e.text,0,0,n,{color:e.color,maxWidth:u,rotation:p,textAlign:ua(e.align),textBaseline:"middle",translation:[c,d]})}}var Jf={id:"title",_element:Ba,start(i,t,e){!function Yf(i,t){const e=new Ba({ctx:i.ctx,options:t,chart:i});jt.configure(i,e,t),jt.addBox(i,e),i.titleBlock=e}(i,e)},stop(i){jt.removeBox(i,i.titleBlock),delete i.titleBlock},beforeUpdate(i,t,e){const n=i.titleBlock;jt.configure(i,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const or=new WeakMap;var Gf={id:"subtitle",start(i,t,e){const n=new Ba({ctx:i.ctx,options:e,chart:i});jt.configure(i,n,e),jt.addBox(i,n),or.set(i,n)},stop(i){jt.removeBox(i,or.get(i)),or.delete(i)},beforeUpdate(i,t,e){const n=or.get(i);jt.configure(i,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ds={average(i){if(!i.length)return!1;let t,e,n=0,o=0,a=0;for(t=0,e=i.length;t-1?i.split("\n"):i}function $f(i,t){const{element:e,datasetIndex:n,index:o}=t,a=i.getDatasetMeta(n).controller,{label:c,value:d}=a.getLabelAndValue(o);return{chart:i,label:c,parsed:a.getParsed(o),raw:i.data.datasets[n].data[o],formattedValue:d,dataset:a.getDataset(),dataIndex:o,datasetIndex:n,element:e}}function Fc(i,t){const e=i.chart.ctx,{body:n,footer:o,title:a}=i,{boxWidth:c,boxHeight:d}=t,u=Et(t.bodyFont),p=Et(t.titleFont),g=Et(t.footerFont),_=a.length,v=o.length,y=n.length,w=Vt(t.padding);let M=w.height,T=0,A=n.reduce((z,Z)=>z+Z.before.length+Z.lines.length+Z.after.length,0);A+=i.beforeBody.length+i.afterBody.length,_&&(M+=_*p.lineHeight+(_-1)*t.titleSpacing+t.titleMarginBottom),A&&(M+=y*(t.displayColors?Math.max(d,u.lineHeight):u.lineHeight)+(A-y)*u.lineHeight+(A-1)*t.bodySpacing),v&&(M+=t.footerMarginTop+v*g.lineHeight+(v-1)*t.footerSpacing);let O=0;const E=function(z){T=Math.max(T,e.measureText(z).width+O)};return e.save(),e.font=p.string,ht(i.title,E),e.font=u.string,ht(i.beforeBody.concat(i.afterBody),E),O=t.displayColors?c+2+t.boxPadding:0,ht(n,z=>{ht(z.before,E),ht(z.lines,E),ht(z.after,E)}),O=0,e.font=g.string,ht(i.footer,E),e.restore(),T+=w.width,{width:T,height:M}}function Kf(i,t,e,n){const{x:o,width:a}=e,{width:c,chartArea:{left:d,right:u}}=i;let p="center";return"center"===n?p=o<=(d+u)/2?"left":"right":o<=a/2?p="left":o>=c-a/2&&(p="right"),function Xf(i,t,e,n){const{x:o,width:a}=n,c=e.caretSize+e.caretPadding;if("left"===i&&o+a+c>t.width||"right"===i&&o-a-c<0)return!0}(p,i,t,e)&&(p="center"),p}function Rc(i,t,e){const n=e.yAlign||t.yAlign||function Qf(i,t){const{y:e,height:n}=t;return ei.height-n/2?"bottom":"center"}(i,e);return{xAlign:e.xAlign||t.xAlign||Kf(i,t,e,n),yAlign:n}}function Nc(i,t,e,n){const{caretSize:o,caretPadding:a,cornerRadius:c}=i,{xAlign:d,yAlign:u}=e,p=o+a,{topLeft:g,topRight:_,bottomLeft:v,bottomRight:y}=Wi(c);let w=function tp(i,t){let{x:e,width:n}=i;return"right"===t?e-=n:"center"===t&&(e-=n/2),e}(t,d);const M=function ep(i,t,e){let{y:n,height:o}=i;return"top"===t?n+=e:n-="bottom"===t?o+e:o/2,n}(t,u,p);return"center"===u?"left"===d?w+=p:"right"===d&&(w-=p):"left"===d?w-=Math.max(g,v)+o:"right"===d&&(w+=Math.max(_,y)+o),{x:Bt(w,0,n.width-t.width),y:Bt(M,0,n.height-t.height)}}function rr(i,t,e){const n=Vt(e.padding);return"center"===t?i.x+i.width/2:"right"===t?i.x+i.width-n.right:i.x+n.left}function Bc(i){return Re([],si(i))}function Uc(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const qc={beforeTitle:Gt,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex"u"?qc[t].call(e,n):o}class Ua extends Ae{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&e.options.animation&&n.animations,a=new Ll(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=function ip(i,t,e){return vi(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:n}=e,o=oe(n,"beforeTitle",this,t),a=oe(n,"title",this,t),c=oe(n,"afterTitle",this,t);let d=[];return d=Re(d,si(o)),d=Re(d,si(a)),d=Re(d,si(c)),d}getBeforeBody(t,e){return Bc(oe(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,o=[];return ht(t,a=>{const c={before:[],lines:[],after:[]},d=Uc(n,a);Re(c.before,si(oe(d,"beforeLabel",this,a))),Re(c.lines,oe(d,"label",this,a)),Re(c.after,si(oe(d,"afterLabel",this,a))),o.push(c)}),o}getAfterBody(t,e){return Bc(oe(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,o=oe(n,"beforeFooter",this,t),a=oe(n,"footer",this,t),c=oe(n,"afterFooter",this,t);let d=[];return d=Re(d,si(o)),d=Re(d,si(a)),d=Re(d,si(c)),d}_createItems(t){const e=this._active,n=this.chart.data,o=[],a=[],c=[];let u,p,d=[];for(u=0,p=e.length;ut.filter(g,_,v,n))),t.itemSort&&(d=d.sort((g,_)=>t.itemSort(g,_,n))),ht(d,g=>{const _=Uc(t.callbacks,g);o.push(oe(_,"labelColor",this,g)),a.push(oe(_,"labelPointStyle",this,g)),c.push(oe(_,"labelTextColor",this,g))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=c,this.dataPoints=d,d}update(t,e){const n=this.options.setContext(this.getContext()),o=this._active;let a,c=[];if(o.length){const d=Ds[n.position].call(this,o,this._eventPosition);c=this._createItems(n),this.title=this.getTitle(c,n),this.beforeBody=this.getBeforeBody(c,n),this.body=this.getBody(c,n),this.afterBody=this.getAfterBody(c,n),this.footer=this.getFooter(c,n);const u=this._size=Fc(this,n),p=Object.assign({},d,u),g=Rc(this.chart,n,p),_=Nc(n,p,g,this.chart);this.xAlign=g.xAlign,this.yAlign=g.yAlign,a={opacity:1,x:_.x,y:_.y,width:u.width,height:u.height,caretX:d.x,caretY:d.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=c,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,o){const a=this.getCaretPosition(t,n,o);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,n){const{xAlign:o,yAlign:a}=this,{caretSize:c,cornerRadius:d}=n,{topLeft:u,topRight:p,bottomLeft:g,bottomRight:_}=Wi(d),{x:v,y}=t,{width:w,height:M}=e;let T,A,O,E,z,Z;return"center"===a?(z=y+M/2,"left"===o?(T=v,A=T-c,E=z+c,Z=z-c):(T=v+w,A=T+c,E=z-c,Z=z+c),O=T):(A="left"===o?v+Math.max(u,g)+c:"right"===o?v+w-Math.max(p,_)-c:this.caretX,"top"===a?(E=y,z=E-c,T=A-c,O=A+c):(E=y+M,z=E+c,T=A+c,O=A-c),Z=E),{x1:T,x2:A,x3:O,y1:E,y2:z,y3:Z}}drawTitle(t,e,n){const o=this.title,a=o.length;let c,d,u;if(a){const p=Tn(n.rtl,this.x,this.width);for(t.x=rr(this,n.titleAlign,n),e.textAlign=p.textAlign(n.titleAlign),e.textBaseline="middle",c=Et(n.titleFont),d=n.titleSpacing,e.fillStyle=n.titleColor,e.font=c.string,u=0;u0!==O)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,ys(t,{x:M,y:w,w:p,h:u,radius:A}),t.fill(),t.stroke(),t.fillStyle=c.backgroundColor,t.beginPath(),ys(t,{x:T,y:w+1,w:p-2,h:u-2,radius:A}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(M,w,p,u),t.strokeRect(M,w,p,u),t.fillStyle=c.backgroundColor,t.fillRect(T,w+1,p-2,u-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:o}=this,{bodySpacing:a,bodyAlign:c,displayColors:d,boxHeight:u,boxWidth:p,boxPadding:g}=n,_=Et(n.bodyFont);let v=_.lineHeight,y=0;const w=Tn(n.rtl,this.x,this.width),M=function(U){e.fillText(U,w.x(t.x+y),t.y+v/2),t.y+=v+a},T=w.textAlign(c);let A,O,E,z,Z,R,N;for(e.textAlign=c,e.textBaseline="middle",e.font=_.string,t.x=rr(this,T,n),e.fillStyle=n.bodyColor,ht(this.beforeBody,M),y=d&&"right"!==T?"center"===c?p/2+g:p+2+g:0,z=0,R=o.length;z0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,o=n&&n.x,a=n&&n.y;if(o||a){const c=Ds[t.position].call(this,this._active,this._eventPosition);if(!c)return;const d=this._size=Fc(this,t),u=Object.assign({},c,this._size),p=Rc(e,t,u),g=Nc(t,u,p,e);(o._to!==g.x||a._to!==g.y)&&(this.xAlign=p.xAlign,this.yAlign=p.yAlign,this.width=d.width,this.height=d.height,this.caretX=c.x,this.caretY=c.y,this._resolveAnimations().update(this,g))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const o={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const c=Vt(e.padding);e.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(t.save(),t.globalAlpha=n,this.drawBackground(a,t,o,e),wl(t,e.textDirection),a.y+=c.top,this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),Cl(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,o=t.map(({datasetIndex:d,index:u})=>{const p=this.chart.getDatasetMeta(d);if(!p)throw new Error("Cannot find a dataset at index "+d);return{datasetIndex:d,element:p.data[u],index:u}}),a=!xn(n,o),c=this._positionChanged(o,e);(a||c)&&(this._active=o,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,a=this._active||[],c=this._getActiveElements(t,a,e,n),d=this._positionChanged(c,t),u=e||!xn(c,a)||d;return u&&(this._active=c,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),u}_getActiveElements(t,e,n,o){const a=this.options;if("mouseout"===t.type)return[];if(!o)return e;const c=this.chart.getElementsAtEventForMode(t,a.mode,a,n);return a.reverse&&c.reverse(),c}_positionChanged(t,e){const{caretX:n,caretY:o,options:a}=this,c=Ds[a.position].call(this,t,e);return!1!==c&&(n!==c.x||o!==c.y)}}F(Ua,"positioners",Ds);var sp=Object.freeze({__proto__:null,Colors:gf,Decimation:yf,Filler:Bf,Legend:jf,SubTitle:Gf,Title:Jf,Tooltip:{id:"tooltip",_element:Ua,positioners:Ds,afterInit(i,t,e){e&&(i.tooltip=new Ua({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(!1===i.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0}))return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){i.tooltip&&i.tooltip.handleEvent(t.event,t.replay,t.inChartArea)&&(t.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,t)=>t.bodyFont.size,boxWidth:(i,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:qc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>"filter"!==i&&"itemSort"!==i&&"external"!==i,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});function Hc(i){const t=this.getLabels();return i>=0&&inull===i?null:Bt(Math.round(i),0,t))(e=isFinite(e)&&n[e]===t?e:function rp(i,t,e,n){const o=i.indexOf(t);return-1===o?((i,t,e,n)=>("string"==typeof t?(e=i.push(t)-1,n.unshift({index:e,label:t})):isNaN(t)&&(e=null),e))(i,t,e,n):o!==i.lastIndexOf(t)?e:o}(n,t,G(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,o=[];let a=this.getLabels();a=0===t&&e===a.length-1?a:a.slice(t,e+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let c=t;c<=e;c++)o.push({value:c});return o}getLabelForValue(t){return Hc.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Wc(i,t,{horizontal:e,minRotation:n}){const o=Pe(n),a=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(t/a,.75*t*(""+i).length)}F(qa,"id","category"),F(qa,"defaults",{ticks:{callback:Hc}});class ar extends $i{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return ct(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:a}=this;const c=u=>o=e?o:u,d=u=>a=n?a:u;if(t){const u=$t(o),p=$t(a);u<0&&p<0?d(0):u>0&&p>0&&c(0)}if(o===a){let u=0===a?1:Math.abs(.05*a);d(a+u),t||c(o-u)}this.min=o,this.max=a}getTickLimit(){const t=this.options.ticks;let o,{maxTicksLimit:e,stepSize:n}=t;return n?(o=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const c=function lp(i,t){const e=[],{bounds:o,step:a,min:c,max:d,precision:u,count:p,maxTicks:g,maxDigits:_,includeBounds:v}=i,y=a||1,w=g-1,{min:M,max:T}=t,A=!ct(c),O=!ct(d),E=!ct(p),z=(T-M)/(_+1);let R,N,U,V,Z=Do((T-M)/w/y)*y;if(Z<1e-14&&!A&&!O)return[{value:M},{value:T}];V=Math.ceil(T/Z)-Math.floor(M/Z),V>w&&(Z=Do(V*Z/w/y)*y),ct(u)||(R=Math.pow(10,u),Z=Math.ceil(Z*R)/R),"ticks"===o?(N=Math.floor(M/Z)*Z,U=Math.ceil(T/Z)*Z):(N=M,U=T),A&&O&&a&&function Zo(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}((d-c)/a,Z/1e3)?(V=Math.round(Math.min((d-c)/Z,g)),Z=(d-c)/V,N=c,U=d):E?(N=A?c:N,U=O?d:U,V=p-1,Z=(U-N)/V):(V=(U-N)/Z,V=Bi(V,Math.round(V),Z/1e3)?Math.round(V):Math.ceil(V));const et=Math.max(Ja(Z),Ja(N));R=Math.pow(10,ct(u)?et:u),N=Math.round(N*R)/R,U=Math.round(U*R)/R;let it=0;for(A&&(v&&N!==c?(e.push({value:c}),Nd)break;e.push({value:rt})}return O&&v&&U!==d?e.length&&Bi(e[e.length-1].value,d,Wc(d,z,i))?e[e.length-1].value=d:e.push({value:d}):(!O||U===d)&&e.push({value:U}),e}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Io(c,this,"value"),t.reverse?(c.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),c}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const o=(n-e)/Math.max(t.length-1,1)/2;e-=o,n+=o}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return bs(t,this.chart.options.locale,this.options.ticks.format)}}class Ha extends ar{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ct(t)?t:0,this.max=Ct(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Pe(this.options.ticks.minRotation),o=(t?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,a.lineHeight/o))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}F(Ha,"id","linear"),F(Ha,"defaults",{ticks:{callback:Eo.formatters.numeric}});const Zs=i=>Math.floor(mt(i)),Qi=(i,t)=>Math.pow(10,Zs(i)+t);function Vc(i){return i/Math.pow(10,Zs(i))==1}function jc(i,t,e){const n=Math.pow(10,e),o=Math.floor(i/n);return Math.ceil(t/n)-o}class Wa extends $i{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=ar.prototype.parse.apply(this,[t,e]);if(0!==n)return Ct(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ct(t)?Math.max(0,t):null,this.max=Ct(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ct(this._userMin)&&(this.min=t===Qi(this.min,0)?Qi(this.min,-1):Qi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,o=this.max;const a=d=>n=t?n:d,c=d=>o=e?o:d;n===o&&(n<=0?(a(1),c(10)):(a(Qi(n,-1)),c(Qi(o,1)))),n<=0&&a(Qi(o,-1)),o<=0&&c(Qi(n,1)),this.min=n,this.max=o}buildTicks(){const t=this.options,n=function dp(i,{min:t,max:e}){t=Ht(i.min,t);const n=[],o=Zs(t);let a=function cp(i,t){let n=Zs(t-i);for(;jc(i,t,n)>10;)n++;for(;jc(i,t,n)<10;)n--;return Math.min(n,Zs(i))}(t,e),c=a<0?Math.pow(10,Math.abs(a)):1;const d=Math.pow(10,a),u=o>a?Math.pow(10,o):0,p=Math.round((t-u)*c)/c,g=Math.floor((t-u)/d/10)*d*10;let _=Math.floor((p-g)/Math.pow(10,a)),v=Ht(i.min,Math.round((u+g+_*Math.pow(10,a))*c)/c);for(;v=10?_=_<15?15:20:_++,_>=20&&(a++,_=2,c=a>=0?1:c),v=Math.round((u+g+_*Math.pow(10,a))*c)/c;const y=Ht(i.max,v);return n.push({value:y,major:Vc(y),significand:_}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Io(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return void 0===t?"0":bs(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=mt(t),this._valueRange=mt(this.max)-mt(t)}getPixelForValue(t){return(void 0===t||0===t)&&(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(mt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Va(i){const t=i.ticks;if(t.display&&i.display){const e=Vt(t.backdropPadding);return G(t.font&&t.font.size,Lt.font.size)+e.height}return 0}function hp(i,t,e){return e=bt(e)?e:[e],{w:_d(i,t.string,e),h:e.length*t.lineHeight}}function Yc(i,t,e,n,o){return i===n||i===o?{start:t-e/2,end:t+e/2}:io?{start:t-e,end:t}:{start:t,end:t+e}}function fp(i,t,e,n,o){const a=Math.abs(Math.sin(e)),c=Math.abs(Math.cos(e));let d=0,u=0;n.startt.r&&(d=(n.end-t.r)/a,i.r=Math.max(i.r,t.r+d)),o.startt.b&&(u=(o.end-t.b)/c,i.b=Math.max(i.b,t.b+u))}function pp(i,t,e){const n=i.drawingArea,{extra:o,additionalAngle:a,padding:c,size:d}=e,u=i.getPointPosition(t,n+o+c,a),p=Math.round(ca(de(u.angle+Mt))),g=function vp(i,t,e){return 90===e||270===e?i-=t/2:(e>270||e<90)&&(i-=t),i}(u.y,d.h,p),_=function _p(i){return 0===i||180===i?"center":i<180?"left":"right"}(p),v=function bp(i,t,e){return"right"===e?i-=t:"center"===e&&(i-=t/2),i}(u.x,d.w,_);return{visible:!0,x:u.x,y:g,textAlign:_,left:v,top:g,right:v+d.w,bottom:g+d.h}}function mp(i,t){if(!t)return!0;const{left:e,top:n,right:o,bottom:a}=i;return!(ii({x:e,y:n},t)||ii({x:e,y:a},t)||ii({x:o,y:n},t)||ii({x:o,y:a},t))}function yp(i,t,e){const{left:n,top:o,right:a,bottom:c}=e,{backdropColor:d}=t;if(!ct(d)){const u=Wi(t.borderRadius),p=Vt(t.backdropPadding);i.fillStyle=d;const g=n-p.left,_=o-p.top,v=a-n+p.width,y=c-o+p.height;Object.values(u).some(w=>0!==w)?(i.beginPath(),ys(i,{x:g,y:_,w:v,h:y,radius:u}),i.fill()):i.fillRect(g,_,v,y)}}function Jc(i,t,e,n){const{ctx:o}=i;if(e)o.arc(i.xCenter,i.yCenter,t,0,ut);else{let a=i.getPointPosition(0,t);o.moveTo(a.x,a.y);for(let c=1;c{const o=pt(this.options.pointLabels.callback,[e,n],this);return o||0===o?o:""}).filter((e,n)=>this.chart.getDataVisibility(n))}fit(){const t=this.options;t.display&&t.pointLabels.display?function up(i){const t={l:i.left+i._padding.left,r:i.right-i._padding.right,t:i.top+i._padding.top,b:i.bottom-i._padding.bottom},e=Object.assign({},t),n=[],o=[],a=i._pointLabels.length,c=i.options.pointLabels,d=c.centerPointLabels?ot/a:0;for(let u=0;u=0&&t=0;o--){const a=i._pointLabelItems[o];if(!a.visible)continue;const c=n.setContext(i.getPointLabelContext(o));yp(e,c,a);const d=Et(c.font),{x:u,y:p,textAlign:g}=a;Hi(e,i._pointLabels[o],u,p+d.lineHeight/2,d,{color:c.color,textAlign:g,textBaseline:"middle"})}}(this,c),o.display&&this.ticks.forEach((g,_)=>{if(0!==_){u=this.getDistanceFromCenterForValue(g.value);const v=this.getContext(_),y=o.setContext(v),w=a.setContext(v);!function wp(i,t,e,n,o){const a=i.ctx,c=t.circular,{color:d,lineWidth:u}=t;!c&&!n||!d||!u||e<0||(a.save(),a.strokeStyle=d,a.lineWidth=u,a.setLineDash(o.dash),a.lineDashOffset=o.dashOffset,a.beginPath(),Jc(i,e,c,n),a.closePath(),a.stroke(),a.restore())}(this,y,u,c,w)}}),n.display){for(t.save(),d=c-1;d>=0;d--){const g=n.setContext(this.getPointLabelContext(d)),{color:_,lineWidth:v}=g;!v||!_||(t.lineWidth=v,t.strokeStyle=_,t.setLineDash(g.borderDash),t.lineDashOffset=g.borderDashOffset,u=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),p=this.getPointPosition(d,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(p.x,p.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let a,c;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((d,u)=>{if(0===u&&!e.reverse)return;const p=n.setContext(this.getContext(u)),g=Et(p.font);if(a=this.getDistanceFromCenterForValue(this.ticks[u].value),p.showLabelBackdrop){t.font=g.string,c=t.measureText(d.label).width,t.fillStyle=p.backdropColor;const _=Vt(p.backdropPadding);t.fillRect(-c/2-_.left,-a-g.size/2-_.top,c+_.width,g.size+_.height)}Hi(t,d.label,0,-a,g,{color:p.color,strokeColor:p.textStrokeColor,strokeWidth:p.textStrokeWidth})}),t.restore()}drawTitle(){}}F(Is,"id","radialLinear"),F(Is,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Eo.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:i=>i,padding:5,centerPointLabels:!1}}),F(Is,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),F(Is,"descriptors",{angleLines:{_fallback:"grid"}});const lr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},re=Object.keys(lr);function Gc(i,t){return i-t}function $c(i,t){if(ct(t))return null;const e=i._adapter,{parser:n,round:o,isoWeekday:a}=i._parseOpts;let c=t;return"function"==typeof n&&(c=n(c)),Ct(c)||(c="string"==typeof n?e.parse(c,n):e.parse(c)),null===c?null:(o&&(c="week"!==o||!ze(a)&&!0!==a?e.startOf(c,o):e.startOf(c,"isoWeek",a)),+c)}function Qc(i,t,e,n){const o=re.length;for(let a=re.indexOf(i);a=t?e[n]:e[o]]=!0}}else i[t]=!0}function Kc(i,t,e){const n=[],o={},a=t.length;let c,d;for(c=0;c=0&&(t[u].major=!0);return t}(i,n,o,e):n}class zs extends $i{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),o=this._adapter=new Zh__date(t.adapters.date);o.init(e),m(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:$c(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:o,max:a,minDefined:c,maxDefined:d}=this.getUserBounds();function u(p){!c&&!isNaN(p.min)&&(o=Math.min(o,p.min)),!d&&!isNaN(p.max)&&(a=Math.max(a,p.max))}(!c||!d)&&(u(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&u(this.getMinMax(!1))),o=Ct(o)&&!isNaN(o)?o:+e.startOf(Date.now(),n),a=Ct(a)&&!isNaN(a)?a:+e.endOf(Date.now(),n)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,o="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const a=this.min,d=function sd(i,t,e){let n=0,o=i.length;for(;nn&&i[o-1]>e;)o--;return n>0||o=re.indexOf(e);a--){const c=re[a];if(lr[c].common&&i._adapter.diff(o,n,c)>=t-1)return c}return re[e?re.indexOf(e):0]}(this,d.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function Tp(i){for(let t=re.indexOf(i)+1,e=re.length;t+t.value))}initOffsets(t=[]){let o,a,e=0,n=0;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),e=1===t.length?1-o:(this.getDecimalForValue(t[1])-o)/2,a=this.getDecimalForValue(t[t.length-1]),n=1===t.length?a:(a-this.getDecimalForValue(t[t.length-2]))/2);const c=t.length<3?.5:.25;e=Bt(e,0,c),n=Bt(n,0,c),this._offsets={start:e,end:n,factor:1/(e+1+n)}}_generate(){const t=this._adapter,e=this.min,n=this.max,o=this.options,a=o.time,c=a.unit||Qc(a.minUnit,e,n,this._getLabelCapacity(e)),d=G(o.ticks.stepSize,1),u="week"===c&&a.isoWeekday,p=ze(u)||!0===u,g={};let v,y,_=e;if(p&&(_=+t.startOf(_,"isoWeek",u)),_=+t.startOf(_,p?"day":c),t.diff(n,e,c)>1e5*d)throw new Error(e+" and "+n+" are too far apart with stepSize of "+d+" "+c);const w="data"===o.ticks.source&&this.getDataTimestamps();for(v=_,y=0;v+M)}getLabelForValue(t){const n=this.options.time;return this._adapter.format(t,n.tooltipFormat?n.tooltipFormat:n.displayFormats.datetime)}format(t,e){return this._adapter.format(t,e||this.options.time.displayFormats[this._unit])}_tickFormatFunction(t,e,n,o){const a=this.options,c=a.ticks.callback;if(c)return pt(c,[t,e,n],this);const d=a.time.displayFormats,u=this._unit,p=this._majorUnit,_=p&&d[p],v=n[e];return this._adapter.format(t,o||(p&&_&&v&&v.major?_:u&&d[u]))}generateTickLabels(t){let e,n,o;for(e=0,n=t.length;e0?d:1}getDataTimestamps(){let e,n,t=this._cache.data||[];if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(e=0,n=o.length;e=i[n].pos&&t<=i[o].pos&&({lo:n,hi:o}=ei(i,"pos",t)),({pos:a,time:d}=i[n]),({pos:c,time:u}=i[o])):(t>=i[n].time&&t<=i[o].time&&({lo:n,hi:o}=ei(i,"time",t)),({time:a,pos:d}=i[n]),({time:c,pos:u}=i[o]));const p=c-a;return p?d+(u-d)*(t-a)/p:d}F(zs,"id","time"),F(zs,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class ja extends zs{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=cr(e,this.min),this._tableRange=cr(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,o=[],a=[];let c,d,u,p,g;for(c=0,d=t.length;c=e&&p<=n&&o.push(p);if(o.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(c=0,d=o.length;co-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(cr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return cr(this._table,n*this._tableRange+this._minPos,!0)}}F(ja,"id","timeseries"),F(ja,"defaults",zs.defaults),Fe.register(Dh,df,sp,Object.freeze({__proto__:null,CategoryScale:qa,LinearScale:Ha,LogarithmicScale:Wa,RadialLinearScale:Is,TimeScale:zs,TimeSeriesScale:ja}));const Sp=Fe;let Op=(()=>{class i{constructor(e){this.theme=e}ngOnInit(){this.createCharts(),this.instance$.subscribe(e=>{this.updateCharts(e)})}createCharts(){this.themeSubscription=this.theme.getJsTheme().subscribe(e=>{const n=e.variables,o=e.variables.chartjs;this.data={labels:["a","b","c"],datasets:[{data:[3,3,2],label:"CPU usage",backgroundColor:x.c5R.hexToRgbA(n.primary,.3),borderColor:n.primary}]},this.options={responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{gridLines:{display:!0,color:o.axisLineColor},ticks:{fontColor:o.textColor}}],yAxes:[{gridLines:{display:!0,color:o.axisLineColor},ticks:{fontColor:o.textColor}}]},legend:{labels:{fontColor:o.textColor}}},this.cpuChart=new Sp("myChartCPU",{type:"line",data:this.data,options:this.options})})}updateCharts(e){let n=e.cpu_history.map(a=>{const c=new Date(a.timestamp);return`${c.getHours().toString().padStart(2,"0")}:${c.getMinutes().toString().padStart(2,"0")}:${c.getSeconds().toString().padStart(2,"0")}`});if(100===n.length){const a=[];for(let c=0;c<10;c++)a.push(n[10*c]);n=a}else{const a=n.length-1;n=n.slice(a-10,a)}const o=e.cpu_history.map(a=>Number.parseFloat(a.value));this.cpuChart.data.datasets.forEach(a=>{a.data=o}),this.cpuChart.data.labels=n,this.cpuChart.update()}ngOnDestroy(){this.themeSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.WMF))},i.\u0275cmp=r.Xpm({type:i,selectors:[["chart-cpu-line"]],inputs:{instance$:"instance$"},decls:1,vars:0,consts:[["id","myChartCPU"]],template:function(e,n){1&e&&r._UZ(0,"canvas",0)},encapsulation:2}),i})(),Lp=(()=>{class i{constructor(e){this.theme=e}ngOnInit(){this.createCharts(),this.instance$.subscribe(e=>{this.updateCharts(e),console.log(e)})}createCharts(){this.themeSubscription=this.theme.getJsTheme().subscribe(e=>{const n=e.variables,o=e.variables.chartjs;this.data={labels:[],datasets:[{data:[],label:"Memory usage [mB]",backgroundColor:x.c5R.hexToRgbA(n.danger,.3),borderColor:n.danger}]},this.options={responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{gridLines:{display:!0,color:o.axisLineColor},ticks:{fontColor:o.textColor}}],yAxes:[{gridLines:{display:!0,color:o.axisLineColor},ticks:{fontColor:o.textColor}}]},legend:{labels:{fontColor:o.textColor}}},this.memoryChart=new Fe("myChartMemory",{type:"line",data:this.data,options:this.options})})}updateCharts(e){let n=e.memory_history.map(a=>{const c=new Date(a.timestamp);return`${c.getHours().toString().padStart(2,"0")}:${c.getMinutes().toString().padStart(2,"0")}:${c.getSeconds().toString().padStart(2,"0")}`});if(100===n.length){const a=[];for(let c=0;c<10;c++)a.push(n[10*c]);n=a}else{const a=n.length-1;n=n.slice(a-10,a)}const o=e.memory_history.map(a=>Number.parseFloat(a.value)/1e6);this.memoryChart.data.datasets.forEach(a=>{a.data=o}),this.memoryChart.data.labels=n,this.memoryChart.update()}ngOnDestroy(){this.themeSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(x.WMF))},i.\u0275cmp=r.Xpm({type:i,selectors:[["chart-memory-line"]],inputs:{instance$:"instance$"},decls:1,vars:0,consts:[["id","myChartMemory"]],template:function(e,n){1&e&&r._UZ(0,"canvas",0)},encapsulation:2}),i})();const Dp=["map"];function Zp(i,t){1&i&&r._UZ(0,"div",9)}const zp=[{path:"",component:ki,children:[{path:"",component:Ce,pathMatch:"full",canActivate:[Kt.P]},{path:"services",component:Ks,pathMatch:"full",canActivate:[Kt.P]},{path:"services/:service-id/:instance-id",component:(()=>{class i{constructor(e,n,o){this.route=e,this.router=n,this.store=o,this.textLocation=null,this.latitude=48.1624064,this.longitude=11.5977288,this.radius=9,this.services$=this.store.pipe((0,W.Ys)(ai.z)),this.alive=!0,this.instance=this.store.select(ai.z).pipe((0,rn.U)(a=>{const c=a.find(d=>d._id.$oid===this.service._id.$oid);return c&&c.instance_list.length>0?c.instance_list.find(d=>d.instance_number.toString()===this.instanceId):null}))}ngOnInit(){this.setLocation("48.1624064,11.5977288"),this.serviceId=this.route.snapshot.paramMap.get("service-id"),this.instanceId=this.route.snapshot.paramMap.get("instance-id"),this.services$.subscribe({next:e=>{const n=e.filter(o=>{var a;return(null===(a=o._id)||void 0===a?void 0:a.$oid)===this.serviceId});this.service=0===n.length?null:n[0]}}),console.log(this.instance),this.refreshData(),this.timerSubscription=(0,Xr.H)(15e3,15e3).pipe((0,zi.o)(()=>this.alive)).subscribe(()=>this.refreshData()),this.instance.subscribe(e=>{this.setLocation(e.cluster_location.length>0?e.cluster_location:"48.1624064,11.5977288,12"),console.log(e)})}ngAfterViewInit(){const e=mn.map("map").setView([this.longitude,this.latitude],14);mn.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors"}).addTo(e),mn.circle([this.longitude,this.latitude],{color:"blue",fillColor:"lightblue",fillOpacity:.5,radius:this.radius}).addTo(e).bindPopup("A Circle on the Map.")}setLocation(e){if(e)if(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?),\s*([-+]?(?:\d+)(?:\.\d+)?)$/.test(e)){console.log("Test");const o=e.split(",");this.longitude=parseFloat(o[0]),this.latitude=parseFloat(o[1]),this.radius=parseFloat(o[2]),console.log(this.radius)}else this.textLocation=e;else this.textLocation="No location found"}ngOnDestroy(){this.alive=!1,this.timerSubscription.unsubscribe()}refreshData(){this.store.dispatch((0,nt.hx)({serviceId:this.service._id.$oid})),console.log("Update")}}return i.\u0275fac=function(e){return new(e||i)(r.Y36(K.gz),r.Y36(K.F0),r.Y36(W.yh))},i.\u0275cmp=r.Xpm({type:i,selectors:[["app-instance-detail"]],viewQuery:function(e,n){if(1&e&&r.Gf(Dp,5),2&e){let o;r.iGM(o=r.CRH())&&(n.mapContainer=o.first)}},decls:54,vars:15,consts:[[1,"row"],[1,"col-lg-4"],[1,"map"],[1,"information"],[1,"col-lg-8"],[1,"map-card"],["class","map","id","map",4,"ngIf"],[1,"col-lg-6"],[3,"instance$"],["id","map",1,"map"]],template:function(e,n){1&e&&(r.TgZ(0,"nb-card")(1,"nb-card-header")(2,"h1"),r._uU(3,"Instance Details"),r.qZA()()(),r.TgZ(4,"div",0)(5,"div",1)(6,"nb-card")(7,"nb-card-header")(8,"h2"),r._uU(9,"Details"),r.qZA()(),r.TgZ(10,"nb-card-body",2)(11,"div",3)(12,"p")(13,"b"),r._uU(14,"Status:"),r.qZA(),r._uU(15),r.ALo(16,"async"),r.qZA(),r.TgZ(17,"p")(18,"b"),r._uU(19,"Disk:"),r.qZA(),r._uU(20),r.ALo(21,"async"),r.qZA(),r.TgZ(22,"p")(23,"b"),r._uU(24,"Cluster:"),r.qZA(),r._uU(25),r.ALo(26,"async"),r.qZA(),r.TgZ(27,"p")(28,"b"),r._uU(29,"Node IP:"),r.qZA(),r._uU(30),r.ALo(31,"async"),r.qZA()()()()(),r.TgZ(32,"div",4)(33,"nb-card")(34,"nb-card-header")(35,"h2"),r._uU(36,"Location"),r.qZA()(),r.TgZ(37,"nb-card-body",5),r.YNc(38,Zp,1,0,"div",6),r.qZA()()()(),r.TgZ(39,"div",0)(40,"div",7)(41,"nb-card")(42,"nb-card-header")(43,"h2"),r._uU(44,"CPU"),r.qZA()(),r.TgZ(45,"nb-card-body"),r._UZ(46,"chart-cpu-line",8),r.qZA()()(),r.TgZ(47,"div",7)(48,"nb-card")(49,"nb-card-header")(50,"h2"),r._uU(51,"Memory"),r.qZA()(),r.TgZ(52,"nb-card-body"),r._UZ(53,"chart-memory-line",8),r.qZA()()()()),2&e&&(r.xp6(15),r.hij(" ",r.lcZ(16,7,n.instance).status,""),r.xp6(5),r.hij(" ",r.lcZ(21,9,n.instance).disk,""),r.xp6(5),r.hij(" ",r.lcZ(26,11,n.instance).cluster_id,""),r.xp6(5),r.hij(" ",r.lcZ(31,13,n.instance).publicip,""),r.xp6(8),r.Q6J("ngIf",n.textLocation),r.xp6(8),r.Q6J("instance$",n.instance),r.xp6(7),r.Q6J("instance$",n.instance))},dependencies:[Y.O5,x.Asz,x.yKW,x.ndF,Op,Lp,Y.Ov],styles:[".map[_ngcontent-%COMP%]{height:30vh!important;flex:auto}.map-card[_ngcontent-%COMP%]{padding:0}"]}),i})(),pathMatch:"full",canActivate:[Kt.P]},{path:"help",component:to,canActivate:[Kt.P]},{path:"deploy/:id",component:ui,canActivate:[Kt.P]},{path:"deploy",component:ui,canActivate:[Kt.P]},{path:"users",component:Je,canActivate:[Kt.P,$s.m]},{path:"profile",component:fo,canActivate:[Kt.P]},{path:"organization",component:wo,canActivate:[Kt.P]},{path:"settings",component:Mo,canActivate:[Kt.P]},{path:"faq",component:pi,canActivate:[Kt.P]},{path:"infrastructure",component:Er,canActivate:[Kt.P],data:{role:"ADMIN"}},{path:"**",component:Wn}]}];let Ep=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=r.oAB({type:i}),i.\u0275inj=r.cJS({imports:[Y.ez,K.Bz.forChild(zp),k.u5,k.UX,vt.JF,Ti,W.Aw.forFeature(Js.gG,Js.I6),qt.sQ.forFeature([nt.Uy]),Ys,En,x.zyh,x.T2N,x.j7H.forRoot(),x.j5J,x.BW0,x.P1,Gs.O,x.COg,x.nKr,x.KdK,x.V7y,x.IIj,x.urD,x.j7H,x.MfT,x.EoG,x.rgH,x.oGl,x.HKp,x.YNG]}),i})()},8407:function(td,Bs){!function(D){"use strict";function K(s){var l,h,f,m;for(h=1,f=arguments.length;h"u")&&L&&L.Mixin){s=ae(s)?s:[s];for(var l=0;l0?Math.floor(s):Math.ceil(s)};function J(s,l,h){return s instanceof $?s:ae(s)?new $(s[0],s[1]):null==s?s:"object"==typeof s&&"x"in s&&"y"in s?new $(s.x,s.y):new $(s,l,h)}function W(s,l){if(s)for(var h=l?[s,l]:s,f=0,m=h.length;f=this.min.x&&h.x<=this.max.x&&l.y>=this.min.y&&h.y<=this.max.y},intersects:function(s){s=qt(s);var l=this.min,h=this.max,f=s.min,m=s.max;return m.x>=l.x&&f.x<=h.x&&m.y>=l.y&&f.y<=h.y},overlaps:function(s){s=qt(s);var l=this.min,h=this.max,f=s.min,m=s.max;return m.x>l.x&&f.xl.y&&f.y=l.lat&&m.lat<=h.lat&&f.lng>=l.lng&&m.lng<=h.lng},intersects:function(s){s=St(s);var l=this._southWest,h=this._northEast,f=s.getSouthWest(),m=s.getNorthEast();return m.lat>=l.lat&&f.lat<=h.lat&&m.lng>=l.lng&&f.lng<=h.lng},overlaps:function(s){s=St(s);var l=this._southWest,h=this._northEast,f=s.getSouthWest(),m=s.getNorthEast();return m.lat>l.lat&&f.latl.lng&&f.lng1,_r=function(){var s=!1;try{var l=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",kt,l),window.removeEventListener("testPassiveEventSupport",kt,l)}catch{}return s}(),br=!!document.createElement("canvas").getContext,Nn=!(!document.createElementNS||!Us("svg").createSVGRect),vr=!!Nn&&function(){var s=document.createElement("div");return s.innerHTML="","http://www.w3.org/2000/svg"===(s.firstChild&&s.firstChild.namespaceURI)}(),yr=!Nn&&function(){try{var s=document.createElement("div");s.innerHTML='';var l=s.firstChild;return l.style.behavior="url(#default#VML)",l&&"object"==typeof l.adj}catch{return!1}}();function pe(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var H={ie:sn,ielt9:Hs,edge:Ws,webkit:Rn,android:Vs,android23:js,androidStock:mr,opera:on,chrome:Ys,gecko:x,safari:Js,phantom:nt,opera12:Gs,win:Kt,ie3d:$s,webkit3d:Jt,gecko3d:Pi,any3d:gr,mobile:ki,mobileWebkit:Ai,mobileWebkit3d:Qs,msPointer:Si,pointer:ri,touch:xt,touchNative:ai,mobileOpera:Ue,mobileGecko:fe,retina:rn,passiveEvents:_r,canvas:br,svg:Nn,vml:yr,inlineSvg:vr,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Xs=H.msPointer?"MSPointerDown":"pointerdown",Ks=H.msPointer?"MSPointerMove":"pointermove",to=H.msPointer?"MSPointerUp":"pointerup",qe=H.msPointer?"MSPointerCancel":"pointercancel",Bn={touchstart:Xs,touchmove:Ks,touchend:to,touchcancel:qe},eo={touchstart:function kr(s,l){l.MSPOINTER_TYPE_TOUCH&&l.pointerType===l.MSPOINTER_TYPE_TOUCH&&zt(l),an(s,l)},touchmove:an,touchend:an,touchcancel:an},li={},we=!1;function Cr(s,l,h){return"touchstart"===l&&function Pr(){we||(document.addEventListener(Xs,Tr,!0),document.addEventListener(Ks,He,!0),document.addEventListener(to,io,!0),document.addEventListener(qe,io,!0),we=!0)}(),eo[l]?(h=eo[l].bind(this,h),s.addEventListener(Bn[l],h,!1),h):(console.warn("wrong event specified:",l),kt)}function Tr(s){li[s.pointerId]=s}function He(s){li[s.pointerId]&&(li[s.pointerId]=s)}function io(s){delete li[s.pointerId]}function an(s,l){if(l.pointerType!==(l.MSPOINTER_TYPE_MOUSE||"mouse")){for(var h in l.touches=[],li)l.touches.push(li[h]);l.changedTouches=[l],s(l)}}var Li,ui,Wn,hn,Yn,Un=dn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Oi=dn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),no="webkitTransition"===Oi||"OTransition"===Oi?Oi+"End":"transitionend";function so(s){return"string"==typeof s?document.getElementById(s):s}function ci(s,l){var h=s.style[l]||s.currentStyle&&s.currentStyle[l];if((!h||"auto"===h)&&document.defaultView){var f=document.defaultView.getComputedStyle(s,null);h=f?f[l]:null}return"auto"===h?null:h}function dt(s,l,h){var f=document.createElement(s);return f.className=l||"",h&&h.appendChild(f),f}function wt(s){var l=s.parentNode;l&&l.removeChild(s)}function ln(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function di(s){var l=s.parentNode;l&&l.lastChild!==s&&l.appendChild(s)}function hi(s){var l=s.parentNode;l&&l.firstChild!==s&&l.insertBefore(s,l.firstChild)}function qn(s,l){if(void 0!==s.classList)return s.classList.contains(l);var h=cn(s);return h.length>0&&new RegExp("(^|\\s)"+l+"(\\s|$)").test(h)}function tt(s,l){if(void 0!==s.classList)for(var h=Ne(l),f=0,m=h.length;f0?2*window.devicePixelRatio:1;function co(s){return H.edge?s.wheelDeltaY/2:s.deltaY&&0===s.deltaMode?-s.deltaY/Ir:s.deltaY&&1===s.deltaMode?20*-s.deltaY:s.deltaY&&2===s.deltaMode?60*-s.deltaY:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?20*-s.detail:s.detail?s.detail/-32765*60:0}function ts(s,l){var h=l.relatedTarget;if(!h)return!0;try{for(;h&&h!==s;)h=h.parentNode}catch{return!1}return h!==s}var ho={__proto__:null,on:Q,off:gt,stopPropagation:Ye,disableScrollPropagation:Kn,disableClickPropagation:Di,preventDefault:zt,stop:Je,getPropagationPath:ao,getMousePosition:lo,getWheelDelta:co,isExternalTarget:ts,addListener:Q,removeListener:gt},uo=Ti.extend({run:function(s,l,h,f){this.stop(),this._el=s,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(f||.5,.2),this._startPos=Ve(s),this._offset=l.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){!this._inProgress||(this._step(!0),this._complete())},_animate:function(){this._animId=Rt(this._animate,this),this._step()},_step:function(s){var l=+new Date-this._startTime,h=1e3*this._duration;lthis.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,l){this._enforcingBounds=!0;var h=this.getCenter(),f=this._limitCenter(h,this._zoom,St(s));return h.equals(f)||this.panTo(f,l),this._enforcingBounds=!1,this},panInside:function(s,l){var h=J((l=l||{}).paddingTopLeft||l.padding||[0,0]),f=J(l.paddingBottomRight||l.padding||[0,0]),m=this.project(this.getCenter()),b=this.project(s),C=this.getPixelBounds(),P=qt([C.min.add(h),C.max.subtract(f)]),S=P.getSize();if(!P.contains(b)){this._enforcingBounds=!0;var I=b.subtract(P.getCenter()),B=P.extend(b).getSize().subtract(S);m.x+=I.x<0?-B.x:B.x,m.y+=I.y<0?-B.y:B.y,this.panTo(this.unproject(m),l),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=K({animate:!1,pan:!0},!0===s?{animate:!0}:s);var l=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),f=l.divideBy(2).round(),m=h.divideBy(2).round(),b=f.subtract(m);return b.x||b.y?(s.animate&&s.pan?this.panBy(b):(s.pan&&this._rawPanBy(b),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(vt(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:l,newSize:h})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=K({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var l=vt(this._handleGeolocationResponse,this),h=vt(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(l,h,s):navigator.geolocation.getCurrentPosition(l,h,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var l=s.code,h=s.message||(1===l?"permission denied":2===l?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:l,message:"Geolocation error: "+h+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var f=new ft(s.coords.latitude,s.coords.longitude),m=f.toBounds(2*s.coords.accuracy),b=this._locateOptions;if(b.setView){var C=this.getBoundsZoom(m);this.setView(f,b.maxZoom?Math.min(C,b.maxZoom):C)}var P={latlng:f,bounds:m,timestamp:s.timestamp};for(var S in s.coords)"number"==typeof s.coords[S]&&(P[S]=s.coords[S]);this.fire("locationfound",P)}},addHandler:function(s,l){if(!l)return this;var h=this[s]=new l(this);return this._handlers.push(h),this.options[s]&&h.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}var s;for(s in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),wt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Qt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[s].remove();for(s in this._panes)wt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,l){var f=dt("div","leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),l||this._mapPane);return s&&(this._panes[s]=f),f},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds();return new It(this.unproject(s.getBottomLeft()),this.unproject(s.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,l,h){s=St(s),h=J(h||[0,0]);var f=this.getZoom()||0,m=this.getMinZoom(),b=this.getMaxZoom(),C=s.getNorthWest(),P=s.getSouthEast(),S=this.getSize().subtract(h),I=qt(this.project(P,f),this.project(C,f)).getSize(),B=H.any3d?this.options.zoomSnap:1,j=S.x/I.x,X=S.y/I.y,Tt=l?Math.max(j,X):Math.min(j,X);return f=this.getScaleZoom(Tt,f),B&&(f=Math.round(f/(B/100))*(B/100),f=l?Math.ceil(f/B)*B:Math.floor(f/B)*B),Math.max(m,Math.min(b,f))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new $(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,l){var h=this._getTopLeftPoint(s,l);return new W(h,h.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(void 0===s?this.getZoom():s)},getPane:function(s){return"string"==typeof s?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,l){var h=this.options.crs;return l=void 0===l?this._zoom:l,h.scale(s)/h.scale(l)},getScaleZoom:function(s,l){var h=this.options.crs,f=h.zoom(s*h.scale(l=void 0===l?this._zoom:l));return isNaN(f)?1/0:f},project:function(s,l){return l=void 0===l?this._zoom:l,this.options.crs.latLngToPoint(at(s),l)},unproject:function(s,l){return l=void 0===l?this._zoom:l,this.options.crs.pointToLatLng(J(s),l)},layerPointToLatLng:function(s){var l=J(s).add(this.getPixelOrigin());return this.unproject(l)},latLngToLayerPoint:function(s){return this.project(at(s))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(at(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(St(s))},distance:function(s,l){return this.options.crs.distance(at(s),at(l))},containerPointToLayerPoint:function(s){return J(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return J(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var l=this.containerPointToLayerPoint(J(s));return this.layerPointToLatLng(l)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(at(s)))},mouseEventToContainerPoint:function(s){return lo(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var l=this._container=so(s);if(!l)throw new Error("Map container not found.");if(l._leaflet_id)throw new Error("Map container is already initialized.");Q(l,"scroll",this._onScroll,this),this._containerId=q(l)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&H.any3d,tt(s,"leaflet-container"+(H.touch?" leaflet-touch":"")+(H.retina?" leaflet-retina":"")+(H.ielt9?" leaflet-oldie":"")+(H.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var l=ci(s,"position");"absolute"!==l&&"relative"!==l&&"fixed"!==l&&"sticky"!==l&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ot(this._mapPane,new $(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(tt(s.markerPane,"leaflet-zoom-hide"),tt(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,l,h){Ot(this._mapPane,new $(0,0));var f=!this._loaded;this._loaded=!0,l=this._limitZoom(l),this.fire("viewprereset");var m=this._zoom!==l;this._moveStart(m,h)._move(s,l)._moveEnd(m),this.fire("viewreset"),f&&this.fire("load")},_moveStart:function(s,l){return s&&this.fire("zoomstart"),l||this.fire("movestart"),this},_move:function(s,l,h,f){void 0===l&&(l=this._zoom);var m=this._zoom!==l;return this._zoom=l,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),f?h&&h.pinch&&this.fire("zoom",h):((m||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Qt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){Ot(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[q(this._container)]=this;var l=s?gt:Q;l(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&l(window,"resize",this._onResize,this),H.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Qt(this._resizeRequest),this._resizeRequest=Rt(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,l){for(var f,h=[],m="mouseout"===l||"mouseover"===l,b=s.target||s.srcElement,C=!1;b;){if((f=this._targets[q(b)])&&("click"===l||"preclick"===l)&&this._draggableMoved(f)){C=!0;break}if(f&&f.listens(l,!0)&&(m&&!ts(b,s)||(h.push(f),m))||b===this._container)break;b=b.parentNode}return!h.length&&!C&&!m&&this.listens(l,!0)&&(h=[this]),h},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var l=s.target||s.srcElement;if(!(!this._loaded||l._leaflet_disable_events||"click"===s.type&&this._isClickDisabled(l))){var h=s.type;"mousedown"===h&&Jn(l),this._fireDOMEvent(s,h)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,l,h){if("click"===s.type){var f=K({},s);f.type="preclick",this._fireDOMEvent(f,f.type,h)}var m=this._findEventTargets(s,l);if(h){for(var b=[],C=0;C0?Math.round(s-l)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(l))},_limitZoom:function(s){var l=this.getMinZoom(),h=this.getMaxZoom(),f=H.any3d?this.options.zoomSnap:1;return f&&(s=Math.round(s/f)*f),Math.max(l,Math.min(h,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){At(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,l){var h=this._getCenterOffset(s)._trunc();return!(!0!==(l&&l.animate)&&!this.getSize().contains(h)||(this.panBy(h,l),0))},_createAnimProxy:function(){var s=this._proxy=dt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(l){var h=Un,f=this._proxy.style[h];We(this._proxy,this.project(l.center,l.zoom),this.getZoomScale(l.zoom,1)),f===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){wt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),l=this.getZoom();We(this._proxy,this.project(s,l),this.getZoomScale(l,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,l,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||!1===h.animate||this._nothingToAnimate()||Math.abs(l-this._zoom)>this.options.zoomAnimationThreshold)return!1;var f=this.getZoomScale(l),m=this._getCenterOffset(s)._divideBy(1-1/f);return!(!0!==h.animate&&!this.getSize().contains(m)||(Rt(function(){this._moveStart(!0,h.noMoveStart||!1)._animateZoom(s,l,!0)},this),0))},_animateZoom:function(s,l,h,f){!this._mapPane||(h&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=l,tt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:l,noUpdate:f}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(vt(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){!this._animatingZoom||(this._mapPane&&At(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var le=ye.extend({options:{position:"topright"},initialize:function(s){yt(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var l=this._map;return l&&l.removeControl(this),this.options.position=s,l&&l.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var l=this._container=this.onAdd(s),h=this.getPosition(),f=s._controlCorners[h];return tt(l,"leaflet-control"),-1!==h.indexOf("bottom")?f.insertBefore(l,f.firstChild):f.appendChild(l),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(wt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),Zi=function(s){return new le(s)};lt.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},l="leaflet-",h=this._controlContainer=dt("div",l+"control-container",this._container);function f(m,b){s[m+b]=dt("div",l+m+" "+l+b,h)}f("top","left"),f("top","right"),f("bottom","left"),f("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)wt(this._controlCorners[s]);wt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var fo=le.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,l,h,f){return h1)?"":"none"),this._separator.style.display=l&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var l=this._getLayer(q(s.target)),h=l.overlay?"add"===s.type?"overlayadd":"overlayremove":"add"===s.type?"baselayerchange":null;h&&this._map.fire(h,l)},_createRadioElement:function(s,l){var h='",f=document.createElement("div");return f.innerHTML=h,f.firstChild},_addItem:function(s){var f,l=document.createElement("label"),h=this._map.hasLayer(s.layer);s.overlay?((f=document.createElement("input")).type="checkbox",f.className="leaflet-control-layers-selector",f.defaultChecked=h):f=this._createRadioElement("leaflet-base-layers_"+q(this),h),this._layerControlInputs.push(f),f.layerId=q(s.layer),Q(f,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+s.name;var b=document.createElement("span");return l.appendChild(b),b.appendChild(f),b.appendChild(m),(s.overlay?this._overlaysList:this._baseLayersList).appendChild(l),this._checkDisabledLayers(),l},_onInputClick:function(){if(!this._preventClick){var l,h,s=this._layerControlInputs,f=[],m=[];this._handlingClick=!0;for(var b=s.length-1;b>=0;b--)h=this._getLayer((l=s[b]).layerId).layer,l.checked?f.push(h):l.checked||m.push(h);for(b=0;b=0;m--)h=this._getLayer((l=s[m]).layerId).layer,l.disabled=void 0!==h.options.minZoom&&fh.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Q(s,"click",zt),this.expand();var l=this;setTimeout(function(){gt(s,"click",zt),l._preventClick=!1})}}),fn=le.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(s){var l="leaflet-control-zoom",h=dt("div",l+" leaflet-bar"),f=this.options;return this._zoomInButton=this._createButton(f.zoomInText,f.zoomInTitle,l+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(f.zoomOutText,f.zoomOutTitle,l+"-out",h,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),h},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,l,h,f,m){var b=dt("a",h,f);return b.innerHTML=s,b.href="#",b.title=l,b.setAttribute("role","button"),b.setAttribute("aria-label",l),Di(b),Q(b,"click",Je),Q(b,"click",m,this),Q(b,"click",this._refocusOnMap,this),b},_updateDisabled:function(){var s=this._map,l="leaflet-disabled";At(this._zoomInButton,l),At(this._zoomOutButton,l),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(tt(this._zoomOutButton,l),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(tt(this._zoomInButton,l),this._zoomInButton.setAttribute("aria-disabled","true"))}});lt.mergeOptions({zoomControl:!0}),lt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new fn,this.addControl(this.zoomControl))});var po=le.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var l="leaflet-control-scale",h=dt("div",l),f=this.options;return this._addScales(f,l+"-line",h),s.on(f.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),h},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,l,h){s.metric&&(this._mScale=dt("div",l,h)),s.imperial&&(this._iScale=dt("div",l,h))},_update:function(){var s=this._map,l=s.getSize().y/2,h=s.distance(s.containerPointToLatLng([0,l]),s.containerPointToLatLng([this.options.maxWidth,l]));this._updateScales(h)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var l=this._getRoundNum(s);this._updateScale(this._mScale,l<1e3?l+" m":l/1e3+" km",l/s)},_updateImperial:function(s){var h,f,m,l=3.2808399*s;l>5280?(f=this._getRoundNum(h=l/5280),this._updateScale(this._iScale,f+" mi",f/h)):(m=this._getRoundNum(l),this._updateScale(this._iScale,m+" ft",m/l))},_updateScale:function(s,l,h){s.style.width=Math.round(this.options.maxWidth*h)+"px",s.innerHTML=l},_getRoundNum:function(s){var l=Math.pow(10,(Math.floor(s)+"").length-1),h=s/l;return l*(h>=10?10:h>=5?5:h>=3?3:h>=2?2:1)}}),es=le.extend({options:{position:"bottomright",prefix:''+(H.inlineSvg?' ':"")+"Leaflet"},initialize:function(s){yt(this,s),this._attributions={}},onAdd:function(s){for(var l in s.attributionControl=this,this._container=dt("div","leaflet-control-attribution"),Di(this._container),s._layers)s._layers[l].getAttribution&&this.addAttribution(s._layers[l].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var l in this._attributions)this._attributions[l]&&s.push(l);var h=[];this.options.prefix&&h.push(this.options.prefix),s.length&&h.push(s.join(", ")),this._container.innerHTML=h.join(' ')}}});lt.mergeOptions({attributionControl:!0}),lt.addInitHook(function(){this.options.attributionControl&&(new es).addTo(this)});le.Layers=fo,le.Zoom=fn,le.Scale=po,le.Attribution=es,Zi.layers=function(s,l,h){return new fo(s,l,h)},Zi.zoom=function(s){return new fn(s)},Zi.scale=function(s){return new po(s)},Zi.attribution=function(s){return new es(s)};var ge=ye.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ge.addTo=function(s,l){return s.addHandler(l,this),this};var Ur={Events:Xt},mo=H.touch?"touchstart mousedown":"mousedown",Le=Ti.extend({options:{clickTolerance:3},initialize:function(s,l,h,f){yt(this,f),this._element=s,this._dragStartTarget=l||s,this._preventOutline=h},enable:function(){this._enabled||(Q(this._dragStartTarget,mo,this._onDown,this),this._enabled=!0)},disable:function(){!this._enabled||(Le._dragging===this&&this.finishDrag(!0),gt(this._dragStartTarget,mo,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!qn(this._element,"leaflet-zoom-anim"))){if(s.touches&&1!==s.touches.length)return void(Le._dragging===this&&this.finishDrag());if(!(Le._dragging||s.shiftKey||1!==s.which&&1!==s.button&&!s.touches||(Le._dragging=this,this._preventOutline&&Jn(this._element),Vn(),Li(),this._moving))){this.fire("down");var l=s.touches?s.touches[0]:s,h=oo(this._element);this._startPoint=new $(l.clientX,l.clientY),this._startPos=Ve(this._element),this._parentScale=Gn(h);var f="mousedown"===s.type;Q(document,f?"mousemove":"touchmove",this._onMove,this),Q(document,f?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1)return void(this._moved=!0);var l=s.touches&&1===s.touches.length?s.touches[0]:s,h=new $(l.clientX,l.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)l&&(h.push(s[f]),m=f);return mb&&(C=P,b=S);b>h&&(l[C]=1,ns(s,l,h,f,C),ns(s,l,h,C,m))}function xo(s,l,h,f,m){var P,S,I,b=f?yo:Ge(s,h),C=Ge(l,h);for(yo=C;;){if(!(b|C))return[s,l];if(b&C)return!1;I=Ge(S=pn(s,l,P=b||C,h,m),h),P===b?(s=S,b=I):(l=S,C=I)}}function pn(s,l,h,f,m){var I,B,b=l.x-s.x,C=l.y-s.y,P=f.min,S=f.max;return 8&h?(I=s.x+b*(S.y-s.y)/C,B=S.y):4&h?(I=s.x+b*(P.y-s.y)/C,B=P.y):2&h?(I=S.x,B=s.y+C*(S.x-s.x)/b):1&h&&(I=P.x,B=s.y+C*(P.x-s.x)/b),new $(I,B,m)}function Ge(s,l){var h=0;return s.xl.max.x&&(h|=2),s.yl.max.y&&(h|=8),h}function jr(s,l){var h=l.x-s.x,f=l.y-s.y;return h*h+f*f}function Ii(s,l,h,f){var I,m=l.x,b=l.y,C=h.x-m,P=h.y-b,S=C*C+P*P;return S>0&&((I=((s.x-m)*C+(s.y-b)*P)/S)>1?(m=h.x,b=h.y):I>0&&(m+=C*I,b+=P*I)),C=s.x-m,P=s.y-b,f?C*C+P*P:new $(m,b)}function ee(s){return!ae(s[0])||"object"!=typeof s[0][0]&&typeof s[0][0]<"u"}function wo(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ee(s)}function Co(s,l){var h,f,m,b,C,P,S,I;if(!s||0===s.length)throw new Error("latlngs not passed");ee(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var B=at([0,0]),j=St(s);j.getNorthWest().distanceTo(j.getSouthWest())*j.getNorthEast().distanceTo(j.getNorthWest())<1700&&(B=is(s));var Tt=s.length,Dt=[];for(h=0;hf){I=[P.x-(S=(b-f)/m)*(P.x-C.x),P.y-S*(P.y-C.y)];break}var ot=l.unproject(J(I));return at([ot.lat+B.lat,ot.lng+B.lng])}var De={__proto__:null,simplify:bo,pointToSegmentDistance:vo,closestPointOnSegment:function Hr(s,l,h){return Ii(s,l,h)},clipSegment:xo,_getEdgeIntersection:pn,_getBitCode:Ge,_sqClosestPointOnSegment:Ii,isFlat:ee,_flat:wo,polylineCenter:Co},ss={project:function(s){return new $(s.lng,s.lat)},unproject:function(s){return new ft(s.y,s.x)},bounds:new W([-180,-90],[180,90])},os={R:6378137,R_MINOR:6356752.314245179,bounds:new W([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(s){var l=Math.PI/180,h=this.R,f=s.lat*l,m=this.R_MINOR/h,b=Math.sqrt(1-m*m),C=b*Math.sin(f),P=Math.tan(Math.PI/4-f/2)/Math.pow((1-C)/(1+C),b/2);return f=-h*Math.log(Math.max(P,1e-10)),new $(s.lng*l*h,f)},unproject:function(s){for(var I,l=180/Math.PI,h=this.R,f=this.R_MINOR/h,m=Math.sqrt(1-f*f),b=Math.exp(-s.y/h),C=Math.PI/2-2*Math.atan(b),P=0,S=.1;P<15&&Math.abs(S)>1e-7;P++)I=m*Math.sin(C),I=Math.pow((1-I)/(1+I),m/2),C+=S=Math.PI/2-2*Math.atan(b*I)-C;return new ft(C*l,s.x*l/h)}},Yr={__proto__:null,LonLat:ss,Mercator:os,SphericalMercator:In},Jr=K({},Oe,{code:"EPSG:3395",projection:os,transformation:function(){var s=.5/(Math.PI*os.R);return nn(s,.5,-s,.5)}()}),Mo=K({},Oe,{code:"EPSG:4326",projection:ss,transformation:nn(1/180,1,-1/180,.5)}),Gr=K({},xe,{projection:ss,transformation:nn(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,l){var h=l.lng-s.lng,f=l.lat-s.lat;return Math.sqrt(h*h+f*f)},infinite:!0});xe.Earth=Oe,xe.EPSG3395=Jr,xe.EPSG3857=En,xe.EPSG900913=fr,xe.EPSG4326=Mo,xe.Simple=Gr;var ce=Ti.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[q(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[q(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var l=s.target;if(l.hasLayer(this)){if(this._map=l,this._zoomAnimated=l._zoomAnimated,this.getEvents){var h=this.getEvents();l.on(h,this),this.once("remove",function(){l.off(h,this)},this)}this.onAdd(l),this.fire("add"),l.fire("layeradd",{layer:this})}}});lt.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var l=q(s);return this._layers[l]||(this._layers[l]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s)),this},removeLayer:function(s){var l=q(s);return this._layers[l]?(this._loaded&&s.onRemove(this),delete this._layers[l],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return q(s)in this._layers},eachLayer:function(s,l){for(var h in this._layers)s.call(l,this._layers[h]);return this},_addLayers:function(s){for(var l=0,h=(s=s?ae(s)?s:[s]:[]).length;lthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&l[0]instanceof ft&&l[0].equals(l[h-1])&&l.pop(),l},_setLatLngs:function(s){be.prototype._setLatLngs.call(this,s),ee(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return ee(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,l=this.options.weight,h=new $(l,l);if(s=new W(s.min.subtract(h),s.max.add(h)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(s)){if(this.options.noClip)return void(this._parts=this._rings);for(var b,f=0,m=this._rings.length;fs.y!=(m=h[P]).y>s.y&&s.x<(m.x-f.x)*(s.y-f.y)/(m.y-f.y)+f.x&&(l=!l);return l||be.prototype._containsPoint.call(this,s,!0)}});var Te=Ce.extend({initialize:function(s,l){yt(this,l),this._layers={},s&&this.addData(s)},addData:function(s){var h,f,m,l=ae(s)?s:s.features;if(l){for(h=0,f=l.length;h0&&m.push(m[0].slice()),m}function Qe(s,l){return s.feature?K({},s.feature,{geometry:l}):bn(l)}function bn(s){return"Feature"===s.type||"FeatureCollection"===s.type?s:{type:"Feature",properties:{},geometry:s}}var ls={toGeoJSON:function(s){return Qe(this,{type:"Point",coordinates:as(this.getLatLng(),s)})}};function Po(s,l){return new Te(s,l)}F.include(ls),_e.include(ls),Ze.include(ls),be.include({toGeoJSON:function(s){var l=!ee(this._latlngs);return Qe(this,{type:(l?"Multi":"")+"LineString",coordinates:_n(this._latlngs,l?1:0,!1,s)})}}),Ie.include({toGeoJSON:function(s){var l=!ee(this._latlngs),h=l&&!ee(this._latlngs[0]),f=_n(this._latlngs,h?2:l?1:0,!0,s);return l||(f=[f]),Qe(this,{type:(h?"Multi":"")+"Polygon",coordinates:f})}}),fi.include({toMultiPoint:function(s){var l=[];return this.eachLayer(function(h){l.push(h.toGeoJSON(s).geometry.coordinates)}),Qe(this,{type:"MultiPoint",coordinates:l})},toGeoJSON:function(s){var l=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===l)return this.toMultiPoint(s);var h="GeometryCollection"===l,f=[];return this.eachLayer(function(m){if(m.toGeoJSON){var b=m.toGeoJSON(s);if(h)f.push(b.geometry);else{var C=bn(b);"FeatureCollection"===C.type?f.push.apply(f,C.features):f.push(C)}}}),h?Qe(this,{geometries:f,type:"GeometryCollection"}):{type:"FeatureCollection",features:f}}});var cs=Po,gi=ce.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,l,h){this._url=s,this._bounds=St(l),yt(this,h)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(tt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){wt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&di(this._image),this},bringToBack:function(){return this._map&&hi(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=St(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s="IMG"===this._url.tagName,l=this._image=s?this._url:dt("img");tt(l,"leaflet-image-layer"),this._zoomAnimated&&tt(l,"leaflet-zoom-animated"),this.options.className&&tt(l,this.options.className),l.onselectstart=kt,l.onmousemove=kt,l.onload=vt(this.fire,this,"load"),l.onerror=vt(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(l.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s?this._url=l.src:(l.src=this._url,l.alt=this.options.alt)},_animateZoom:function(s){var l=this._map.getZoomScale(s.zoom),h=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;We(this._image,h,l)},_reset:function(){var s=this._image,l=new W(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),h=l.getSize();Ot(s,l.min),s.style.width=h.x+"px",s.style.height=h.y+"px"},_updateOpacity:function(){te(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),ko=gi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s="VIDEO"===this._url.tagName,l=this._image=s?this._url:dt("video");if(tt(l,"leaflet-image-layer"),this._zoomAnimated&&tt(l,"leaflet-zoom-animated"),this.options.className&&tt(l,this.options.className),l.onselectstart=kt,l.onmousemove=kt,l.onloadeddata=vt(this.fire,this,"load"),s){for(var h=l.getElementsByTagName("source"),f=[],m=0;m0?f:[l.src]}else{ae(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(l.style,"objectFit")&&(l.style.objectFit="fill"),l.autoplay=!!this.options.autoplay,l.loop=!!this.options.loop,l.muted=!!this.options.muted,l.playsInline=!!this.options.playsInline;for(var b=0;bm?(l.height=m+"px",tt(s,b)):At(s,b),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var l=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),h=this._getAnchor();Ot(this._container,l.add(h))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var s=this._map,l=parseInt(ci(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+l,f=this._containerWidth,m=new $(this._containerLeft,-h-this._containerBottom);m._add(Ve(this._container));var b=s.layerPointToContainerPoint(m),C=J(this.options.autoPanPadding),P=J(this.options.autoPanPaddingTopLeft||C),S=J(this.options.autoPanPaddingBottomRight||C),I=s.getSize(),B=0,j=0;b.x+f+S.x>I.x&&(B=b.x+f-I.x+S.x),b.x-B-P.x<0&&(B=b.x-P.x),b.y+h+S.y>I.y&&(j=b.y+h-I.y+S.y),b.y-j-P.y<0&&(j=b.y-P.y),(B||j)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([B,j]))}},_getAnchor:function(){return J(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});lt.mergeOptions({closePopupOnClick:!0}),lt.include({openPopup:function(s,l,h){return this._initOverlay(vn,s,l,h).openOn(this),this},closePopup:function(s){return(s=arguments.length?s:this._popup)&&s.close(),this}}),ce.include({bindPopup:function(s,l){return this._popup=this._initOverlay(vn,this._popup,s,l),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof Ce||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(this._popup&&this._map){Je(s);var l=s.layer||s.target;if(this._popup._source===l&&!(l instanceof Nt))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng));this._popup._source=l,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){13===s.originalEvent.keyCode&&this._openPopup(s)}});var Ei=ve.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){ve.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){ve.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=ve.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){this._contentNode=this._container=dt("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+q(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var l,h,f=this._map,m=this._container,b=f.latLngToContainerPoint(f.getCenter()),C=f.layerPointToContainerPoint(s),P=this.options.direction,S=m.offsetWidth,I=m.offsetHeight,B=J(this.options.offset),j=this._getAnchor();"top"===P?(l=S/2,h=I):"bottom"===P?(l=S/2,h=0):"center"===P?(l=S/2,h=I/2):"right"===P?(l=0,h=I/2):"left"===P?(l=S,h=I/2):C.xthis.options.maxZoom||hf&&this._retainParent(m,b,C,f))},_retainChildren:function(s,l,h,f){for(var m=2*s;m<2*s+2;m++)for(var b=2*l;b<2*l+2;b++){var C=new $(m,b);C.z=h+1;var P=this._tileCoordsToKey(C),S=this._tiles[P];S&&S.active?S.retain=!0:(S&&S.loaded&&(S.retain=!0),h+1this.options.maxZoom||void 0!==this.options.minZoom&&m1)return void this._setView(s,h);for(var j=m.min.y;j<=m.max.y;j++)for(var X=m.min.x;X<=m.max.x;X++){var Tt=new $(X,j);if(Tt.z=this._tileZoom,this._isValidTile(Tt)){var Dt=this._tiles[this._tileCoordsToKey(Tt)];Dt?Dt.current=!0:C.push(Tt)}}if(C.sort(function(ot,ut){return ot.distanceTo(b)-ut.distanceTo(b)}),0!==C.length){this._loading||(this._loading=!0,this.fire("loading"));var se=document.createDocumentFragment();for(X=0;Xh.max.x)||!l.wrapLat&&(s.yh.max.y))return!1}if(!this.options.bounds)return!0;var f=this._tileCoordsToBounds(s);return St(this.options.bounds).overlaps(f)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var l=this._map,h=this.getTileSize(),f=s.scaleBy(h),m=f.add(h);return[l.unproject(f,s.z),l.unproject(m,s.z)]},_tileCoordsToBounds:function(s){var l=this._tileCoordsToNwSe(s),h=new It(l[0],l[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var l=s.split(":"),h=new $(+l[0],+l[1]);return h.z=+l[2],h},_removeTile:function(s){var l=this._tiles[s];!l||(wt(l.el),delete this._tiles[s],this.fire("tileunload",{tile:l.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){tt(s,"leaflet-tile");var l=this.getTileSize();s.style.width=l.x+"px",s.style.height=l.y+"px",s.onselectstart=kt,s.onmousemove=kt,H.ielt9&&this.options.opacity<1&&te(s,this.options.opacity)},_addTile:function(s,l){var h=this._getTilePos(s),f=this._tileCoordsToKey(s),m=this.createTile(this._wrapCoords(s),vt(this._tileReady,this,s));this._initTile(m),this.createTile.length<2&&Rt(vt(this._tileReady,this,s,null,m)),Ot(m,h),this._tiles[f]={el:m,coords:s,current:!0},l.appendChild(m),this.fire("tileloadstart",{tile:m,coords:s})},_tileReady:function(s,l,h){l&&this.fire("tileerror",{error:l,tile:h,coords:s});var f=this._tileCoordsToKey(s);(h=this._tiles[f])&&(h.loaded=+new Date,this._map._fadeAnimated?(te(h.el,0),Qt(this._fadeFrame),this._fadeFrame=Rt(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),l||(tt(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),H.ielt9||!this._map._fadeAnimated?Rt(this._pruneTiles,this):setTimeout(vt(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var l=new $(this._wrapX?Ft(s.x,this._wrapX):s.x,this._wrapY?Ft(s.y,this._wrapY):s.y);return l.z=s.z,l},_pxBoundsToTileRange:function(s){var l=this.getTileSize();return new W(s.min.unscaleBy(l).floor(),s.max.unscaleBy(l).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});var _i=Ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,l){this._url=s,(l=yt(this,l)).detectRetina&&H.retina&&l.maxZoom>0?(l.tileSize=Math.floor(l.tileSize/2),l.zoomReverse?(l.zoomOffset--,l.minZoom=Math.min(l.maxZoom,l.minZoom+1)):(l.zoomOffset++,l.maxZoom=Math.max(l.minZoom,l.maxZoom-1)),l.minZoom=Math.max(0,l.minZoom)):l.zoomReverse?l.minZoom=Math.min(l.maxZoom,l.minZoom):l.maxZoom=Math.max(l.minZoom,l.maxZoom),"string"==typeof l.subdomains&&(l.subdomains=l.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,l){return this._url===s&&void 0===l&&(l=!0),this._url=s,l||this.redraw(),this},createTile:function(s,l){var h=document.createElement("img");return Q(h,"load",vt(this._tileOnLoad,this,l,h)),Q(h,"error",vt(this._tileOnError,this,l,h)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(h.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(s),h},getTileUrl:function(s){var l={r:H.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-s.y;this.options.tms&&(l.y=h),l["-y"]=h}return Ci(this._url,K(l,this.options))},_tileOnLoad:function(s,l){H.ielt9?setTimeout(vt(s,this,null,l),0):s(null,l)},_tileOnError:function(s,l,h){var f=this.options.errorTileUrl;f&&l.getAttribute("src")!==f&&(l.src=f),s(h,l)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom;return this.options.zoomReverse&&(s=this.options.maxZoom-s),s+this.options.zoomOffset},_getSubdomain:function(s){var l=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[l]},_abortLoading:function(){var s,l;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&((l=this._tiles[s].el).onload=kt,l.onerror=kt,!l.complete)){l.src=Be;var h=this._tiles[s].coords;wt(l),delete this._tiles[s],this.fire("tileabort",{tile:l,coords:h})}},_removeTile:function(s){var l=this._tiles[s];if(l)return l.el.setAttribute("src",Be),Ri.prototype._removeTile.call(this,s)},_tileReady:function(s,l,h){if(this._map&&(!h||h.getAttribute("src")!==Be))return Ri.prototype._tileReady.call(this,s,l,h)}});function yn(s,l){return new _i(s,l)}var Xe=_i.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,l){this._url=s;var h=K({},this.defaultWmsParams);for(var f in l)f in this.options||(h[f]=l[f]);var m=(l=yt(this,l)).detectRetina&&H.retina?2:1,b=this.getTileSize();h.width=b.x*m,h.height=b.y*m,this.wmsParams=h},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,_i.prototype.onAdd.call(this,s)},getTileUrl:function(s){var l=this._tileCoordsToNwSe(s),h=this._crs,f=qt(h.project(l[0]),h.project(l[1])),m=f.min,b=f.max,C=(this._wmsVersion>=1.3&&this._crs===Mo?[m.y,m.x,b.y,b.x]:[m.x,m.y,b.x,b.y]).join(","),P=_i.prototype.getTileUrl.call(this,s);return P+Xi(this.wmsParams,P,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+C},setParams:function(s,l){return K(this.wmsParams,s),l||this.redraw(),this}});_i.WMS=Xe,yn.wms=function oa(s,l){return new Xe(s,l)};var ne=ce.extend({options:{padding:.1},initialize:function(s){yt(this,s),q(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),tt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,l){var h=this._map.getZoomScale(l,this._zoom),f=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,l),b=f.multiplyBy(-h).add(m).subtract(this._map._getNewPixelOrigin(s,l));H.any3d?We(this._container,b,h):Ot(this._container,b)},_reset:function(){for(var s in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,l=this._map.getSize(),h=this._map.containerPointToLayerPoint(l.multiplyBy(-s)).round();this._bounds=new W(h,h.add(l.multiplyBy(1+2*s)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),us=ne.extend({options:{tolerance:0},getEvents:function(){var s=ne.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ne.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Q(s,"mousemove",this._onMouseMove,this),Q(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Q(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){Qt(this._redrawRequest),delete this._ctx,wt(this._container),gt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var l in this._redrawBounds=null,this._layers)this._layers[l]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ne.prototype._update.call(this);var s=this._bounds,l=this._container,h=s.getSize(),f=H.retina?2:1;Ot(l,s.min),l.width=f*h.x,l.height=f*h.y,l.style.width=h.x+"px",l.style.height=h.y+"px",H.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){ne.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[q(s)]=s;var l=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=l),this._drawLast=l,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var l=s._order,h=l.next,f=l.prev;h?h.prev=f:this._drawLast=f,f?f.next=h:this._drawFirst=h,delete s._order,delete this._layers[q(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if("string"==typeof s.options.dashArray){var f,m,l=s.options.dashArray.split(/[, ]+/),h=[];for(m=0;m')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),bi={_initContainer:function(){this._container=dt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ne.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var l=s._container=Ni("shape");tt(l,"leaflet-vml-shape "+(this.options.className||"")),l.coordsize="1 1",s._path=Ni("path"),l.appendChild(s._path),this._updateStyle(s),this._layers[q(s)]=s},_addPath:function(s){var l=s._container;this._container.appendChild(l),s.options.interactive&&s.addInteractiveTarget(l)},_removePath:function(s){var l=s._container;wt(l),s.removeInteractiveTarget(l),delete this._layers[q(s)]},_updateStyle:function(s){var l=s._stroke,h=s._fill,f=s.options,m=s._container;m.stroked=!!f.stroke,m.filled=!!f.fill,f.stroke?(l||(l=s._stroke=Ni("stroke")),m.appendChild(l),l.weight=f.weight+"px",l.color=f.color,l.opacity=f.opacity,l.dashStyle=f.dashArray?ae(f.dashArray)?f.dashArray.join(" "):f.dashArray.replace(/( *, *)/g," "):"",l.endcap=f.lineCap.replace("butt","flat"),l.joinstyle=f.lineJoin):l&&(m.removeChild(l),s._stroke=null),f.fill?(h||(h=s._fill=Ni("fill")),m.appendChild(h),h.color=f.fillColor||f.color,h.opacity=f.fillOpacity):h&&(m.removeChild(h),s._fill=null)},_updateCircle:function(s){var l=s._point.round(),h=Math.round(s._radius),f=Math.round(s._radiusY||h);this._setPath(s,s._empty()?"M0 0":"AL "+l.x+","+l.y+" "+h+","+f+" 0,23592600")},_setPath:function(s,l){s._path.v=l},_bringToFront:function(s){di(s._container)},_bringToBack:function(s){hi(s._container)}},ps=H.vml?Ni:Us,Gt=ne.extend({_initContainer:function(){this._container=ps("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ps("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){wt(this._container),gt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){ne.prototype._update.call(this);var s=this._bounds,l=s.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(l))&&(this._svgSize=l,h.setAttribute("width",l.x),h.setAttribute("height",l.y)),Ot(h,s.min),h.setAttribute("viewBox",[s.min.x,s.min.y,l.x,l.y].join(" ")),this.fire("update")}},_initPath:function(s){var l=s._path=ps("path");s.options.className&&tt(l,s.options.className),s.options.interactive&&tt(l,"leaflet-interactive"),this._updateStyle(s),this._layers[q(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){wt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[q(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var l=s._path,h=s.options;!l||(h.stroke?(l.setAttribute("stroke",h.color),l.setAttribute("stroke-opacity",h.opacity),l.setAttribute("stroke-width",h.weight),l.setAttribute("stroke-linecap",h.lineCap),l.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?l.setAttribute("stroke-dasharray",h.dashArray):l.removeAttribute("stroke-dasharray"),h.dashOffset?l.setAttribute("stroke-dashoffset",h.dashOffset):l.removeAttribute("stroke-dashoffset")):l.setAttribute("stroke","none"),h.fill?(l.setAttribute("fill",h.fillColor||h.color),l.setAttribute("fill-opacity",h.fillOpacity),l.setAttribute("fill-rule",h.fillRule||"evenodd")):l.setAttribute("fill","none"))},_updatePoly:function(s,l){this._setPath(s,qs(s._parts,l))},_updateCircle:function(s){var l=s._point,h=Math.max(Math.round(s._radius),1),m="a"+h+","+(Math.max(Math.round(s._radiusY),1)||h)+" 0 1,0 ",b=s._empty()?"M0 0":"M"+(l.x-h)+","+l.y+m+2*h+",0 "+m+2*-h+",0 ";this._setPath(s,b)},_setPath:function(s,l){s._path.setAttribute("d",l)},_bringToFront:function(s){di(s._path)},_bringToBack:function(s){hi(s._path)}});function So(s){return H.svg||H.vml?new Gt(s):null}H.vml&&Gt.include(bi),lt.include({getRenderer:function(s){var l=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return l||(l=this._renderer=this._createRenderer()),this.hasLayer(l)||this.addLayer(l),l},_getPaneRenderer:function(s){if("overlayPane"===s||void 0===s)return!1;var l=this._paneRenderers[s];return void 0===l&&(l=this._createRenderer({pane:s}),this._paneRenderers[s]=l),l},_createRenderer:function(s){return this.options.preferCanvas&&fs(s)||So(s)}});var ct=Ie.extend({initialize:function(s,l){Ie.prototype.initialize.call(this,this._boundsToLatLngs(s),l)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return[(s=St(s)).getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});Gt.create=ps,Gt.pointsToPath=qs,Te.geometryToLayer=$e,Te.coordsToLatLng=rs,Te.coordsToLatLngs=gn,Te.latLngToCoords=as,Te.latLngsToCoords=_n,Te.getFeature=Qe,Te.asFeature=bn,lt.mergeOptions({boxZoom:!0});var st=ge.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Q(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){gt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){wt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||1!==s.which&&1!==s.button)return!1;this._clearDeferredResetState(),this._resetState(),Li(),Vn(),this._startPoint=this._map.mouseEventToContainerPoint(s),Q(document,{contextmenu:Je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=dt("div","leaflet-zoom-box",this._container),tt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var l=new W(this._point,this._startPoint),h=l.getSize();Ot(this._box,l.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},_finish:function(){this._moved&&(wt(this._box),At(this._container,"leaflet-crosshair")),ui(),jn(),gt(document,{contextmenu:Je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if((1===s.which||1===s.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(vt(this._resetState,this),0);var l=new It(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(l).fire("boxzoomend",{boxZoomBounds:l})}},_onKeyDown:function(s){27===s.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});lt.addInitHook("addHandler","boxZoom",st),lt.mergeOptions({doubleClickZoom:!0});var Ct=ge.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var l=this._map,h=l.getZoom(),f=l.options.zoomDelta,m=s.originalEvent.shiftKey?h-f:h+f;"center"===l.options.doubleClickZoom?l.setZoom(m):l.setZoomAround(s.containerPoint,m)}});lt.addInitHook("addHandler","doubleClickZoom",Ct),lt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ht=ge.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new Le(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}tt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){At(this._map._container,"leaflet-grab"),At(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var l=St(this._map.options.maxBounds);this._offsetLimit=qt(this._map.latLngToContainerPoint(l.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(l.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var l=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(l),this._prunePositions(l)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),l=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=l.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,l){return s-(s-l)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var s=this._draggable._newPos.subtract(this._draggable._startPos),l=this._offsetLimit;s.xl.max.x&&(s.x=this._viscousLimit(s.x,l.max.x)),s.y>l.max.y&&(s.y=this._viscousLimit(s.y,l.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,l=Math.round(s/2),h=this._initialWorldOffset,f=this._draggable._newPos.x,m=(f-l+h)%s+l-h,b=(f+l+h)%s-l-h,C=Math.abs(m+h)0?b:-b))-l;this._delta=0,this._startTime=null,C&&("center"===s.options.scrollWheelZoom?s.setZoom(l+C):s.setZoomAround(this._lastMousePos,l+C))}});lt.addInitHook("addHandler","scrollWheelZoom",Oo);lt.mergeOptions({tapHold:H.touchNative&&H.safari&&H.mobile,tapTolerance:15});var pt=ge.extend({addHooks:function(){Q(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){gt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),1===s.touches.length){var l=s.touches[0];this._startPos=this._newPos=new $(l.clientX,l.clientY),this._holdTimeout=setTimeout(vt(function(){this._cancel(),this._isTapValid()&&(Q(document,"touchend",zt),Q(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",l))},this),600),Q(document,"touchend touchcancel contextmenu",this._cancel,this),Q(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){gt(document,"touchend",zt),gt(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),gt(document,"touchend touchcancel contextmenu",this._cancel,this),gt(document,"touchmove",this._onMove,this)},_onMove:function(s){var l=s.touches[0];this._newPos=new $(l.clientX,l.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,l){var h=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:l.screenX,screenY:l.screenY,clientX:l.clientX,clientY:l.clientY});h._simulated=!0,l.target.dispatchEvent(h)}});lt.addInitHook("addHandler","tapHold",pt),lt.mergeOptions({touchZoom:H.touch,bounceAtZoomLimits:!0});var ht=ge.extend({addHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),Q(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){At(this._map._container,"leaflet-touch-zoom"),gt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var l=this._map;if(s.touches&&2===s.touches.length&&!l._animatingZoom&&!this._zooming){var h=l.mouseEventToContainerPoint(s.touches[0]),f=l.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=l.getSize()._divideBy(2),this._startLatLng=l.containerPointToLatLng(this._centerPoint),"center"!==l.options.touchZoom&&(this._pinchStartLatLng=l.containerPointToLatLng(h.add(f)._divideBy(2))),this._startDist=h.distanceTo(f),this._startZoom=l.getZoom(),this._moved=!1,this._zooming=!0,l._stop(),Q(document,"touchmove",this._onTouchMove,this),Q(document,"touchend touchcancel",this._onTouchEnd,this),zt(s)}},_onTouchMove:function(s){if(s.touches&&2===s.touches.length&&this._zooming){var l=this._map,h=l.mouseEventToContainerPoint(s.touches[0]),f=l.mouseEventToContainerPoint(s.touches[1]),m=h.distanceTo(f)/this._startDist;if(this._zoom=l.getScaleZoom(m,this._startZoom),!l.options.bounceAtZoomLimits&&(this._zooml.getMaxZoom()&&m>1)&&(this._zoom=l._limitZoom(this._zoom)),"center"===l.options.touchZoom){if(this._center=this._startLatLng,1===m)return}else{var b=h._add(f)._divideBy(2)._subtract(this._centerPoint);if(1===m&&0===b.x&&0===b.y)return;this._center=l.unproject(l.project(this._pinchStartLatLng,this._zoom).subtract(b),this._zoom)}this._moved||(l._moveStart(!0,!1),this._moved=!0),Qt(this._animRequest);var C=vt(l._move,l,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Rt(C,this,!0),zt(s)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Qt(this._animRequest),gt(document,"touchmove",this._onTouchMove,this),gt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});lt.addInitHook("addHandler","touchZoom",ht),lt.BoxZoom=st,lt.DoubleClickZoom=Ct,lt.Drag=Ht,lt.Keyboard=G,lt.ScrollWheelZoom=Oo,lt.TapHold=pt,lt.TouchZoom=ht,D.Bounds=W,D.Browser=H,D.CRS=xe,D.Canvas=us,D.Circle=_e,D.CircleMarker=Ze,D.Class=ye,D.Control=le,D.DivIcon=Fi,D.DivOverlay=ve,D.DomEvent=ho,D.DomUtil=Zr,D.Draggable=Le,D.Evented=Ti,D.FeatureGroup=Ce,D.GeoJSON=Te,D.GridLayer=Ri,D.Handler=ge,D.Icon=pi,D.ImageOverlay=gi,D.LatLng=ft,D.LatLngBounds=It,D.Layer=ce,D.LayerGroup=fi,D.LineUtil=De,D.Map=lt,D.Marker=F,D.Mixin=Ur,D.Path=Nt,D.Point=$,D.PolyUtil=qr,D.Polygon=Ie,D.Polyline=be,D.Popup=vn,D.PosAnimation=uo,D.Projection=Yr,D.Rectangle=ct,D.Renderer=ne,D.SVG=Gt,D.SVGOverlay=hs,D.TileLayer=_i,D.Tooltip=Ei,D.Transformation=zn,D.Util=Dn,D.VideoOverlay=ko,D.bind=vt,D.bounds=qt,D.canvas=fs,D.circle=function Me(s,l,h){return new _e(s,l,h)},D.circleMarker=function Ya(s,l){return new Ze(s,l)},D.control=Zi,D.divIcon=function na(s){return new Fi(s)},D.extend=K,D.featureGroup=function(s,l){return new Ce(s,l)},D.geoJSON=Po,D.geoJson=cs,D.gridLayer=function sa(s){return new Ri(s)},D.icon=function Xr(s){return new pi(s)},D.imageOverlay=function(s,l,h){return new gi(s,l,h)},D.latLng=at,D.latLngBounds=St,D.layerGroup=function(s,l){return new fi(s,l)},D.map=function zr(s,l){return new lt(s,l)},D.marker=function mi(s,l){return new F(s,l)},D.point=J,D.polygon=function Kr(s,l){return new Ie(s,l)},D.polyline=function ie(s,l){return new be(s,l)},D.popup=function(s,l){return new vn(s,l)},D.rectangle=function bt(s,l){return new ct(s,l)},D.setOptions=yt,D.stamp=q,D.svg=So,D.svgOverlay=function ea(s,l,h){return new hs(s,l,h)},D.tileLayer=yn,D.tooltip=function(s,l){return new Ei(s,l)},D.transformation=nn,D.version="1.9.4",D.videoOverlay=function ta(s,l,h){return new ko(s,l,h)};var xn=window.L;D.noConflict=function(){return window.L=xn,this},window.L=D}(Bs)}}]); \ No newline at end of file diff --git a/dist/oakestra-dashboard/377.1aedba6624b8b7e6.js b/dist/oakestra-dashboard/377.1aedba6624b8b7e6.js deleted file mode 100644 index 2c75c3d..0000000 --- a/dist/oakestra-dashboard/377.1aedba6624b8b7e6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkoakestra_dashboard=self.webpackChunkoakestra_dashboard||[]).push([[377],{3377:($h,gs,S)=>{"use strict";S.r(gs),S.d(gs,{ControlModule:()=>W0});var B=S(6895),Q=S(6582),o=S(4650),tt=S(2687),q=S(1281),N=S(9521),_t=S(7579),jt=S(6451),xt=S(727),re=S(9646),mn=S(3101),Ht=S(8675),wt=S(3900),Jt=S(5698),ht=S(2722),qt=S(9300),fe=S(4986),eo=S(7272),un=S(8502),Di=S(9718),_s=S(5577);function io(n,e){return e?t=>(0,eo.z)(e.pipe((0,Jt.q)(1),(0,un.l)()),t.pipe(io(n))):(0,_s.z)((t,i)=>n(t,i).pipe((0,Jt.q)(1),(0,Di.h)(t)))}var pn=S(2805);function fn(n,e=fe.z){const t=(0,pn.H)(n,e);return io(()=>t)}var F=S(3238),Qt=S(4080),ot=S(7340),Xt=S(445),gn=S(8184),Ot=S(3353),Yt=S(5589);const $=["mat-menu-item",""];function vs(n,e){1&n&&(o.O4$(),o.TgZ(0,"svg",3),o._UZ(1,"polygon",4),o.qZA())}const J=[[["mat-icon"]],"*"],kt=["mat-icon","*"];function te(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r._handleKeydown(s))})("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.closed.emit("click"))})("@transformMenu.start",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r._onAnimationStart(s))})("@transformMenu.done",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r._onAnimationDone(s))}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()()}if(2&n){const t=o.oxw();o.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const ee=["*"],It=new o.OlP("MAT_MENU_PANEL"),ft=(0,F.Kr)((0,F.Id)(class{}));let mt=(()=>{class n extends ft{constructor(t,i,s,r,c){super(),this._elementRef=t,this._document=i,this._focusMonitor=s,this._parentMenu=r,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new _t.x,this._focused=new _t.x,this._highlighted=!1,this._triggersSubmenu=!1,r?.addItem?.(this)}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement.cloneNode(!0),i=t.querySelectorAll("mat-icon, .material-icons");for(let s=0;s enter",(0,ot.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ot.oB)({opacity:1,transform:"scale(1)"}))),(0,ot.eR)("* => void",(0,ot.jt)("100ms 25ms linear",(0,ot.oB)({opacity:0})))]),fadeInItems:(0,ot.X$)("fadeInItems",[(0,ot.SB)("showing",(0,ot.oB)({opacity:1})),(0,ot.eR)("void => *",[(0,ot.oB)({opacity:0}),(0,ot.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let xs=0;const vn=new o.OlP("mat-menu-default-options",{providedIn:"root",factory:function bn(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Oi=(()=>{class n{constructor(t,i,s,r){this._elementRef=t,this._ngZone=i,this._defaultOptions=s,this._changeDetectorRef=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new _t.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+xs++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,q.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,q.Ig)(t)}set panelClass(t){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new tt.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,Ht.O)(this._directDescendantItems),(0,wt.w)(t=>(0,jt.T)(...t.map(i=>i._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const s=t.toArray(),r=Math.max(0,Math.min(s.length-1,i.activeItemIndex||0));s[r]&&!s[r].disabled?i.setActiveItem(r):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,Ht.O)(this._directDescendantItems),(0,wt.w)(i=>(0,jt.T)(...i.map(s=>s._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const i=t.keyCode,s=this._keyManager;switch(i){case N.hY:(0,N.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case N.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case N.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===N.LH||i===N.JH)&&s.setFocusOrigin("keyboard"),void s.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,Jt.q)(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const s=this._keyManager;s.setFocusOrigin(t).setFirstItemActive(),!s.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const i=Math.min(this._baseElevation+t,24),s=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(t=this.xPosition,i=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===t,s["mat-menu-after"]="after"===t,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,Ht.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(vn),o.Y36(o.sBO))},n.\u0275dir=o.lG2({type:n,contentQueries:function(t,i,s){if(1&t&&(o.Suo(s,no,5),o.Suo(s,mt,5),o.Suo(s,mt,4)),2&t){let r;o.iGM(r=o.CRH())&&(i.lazyContent=r.first),o.iGM(r=o.CRH())&&(i._allItems=r),o.iGM(r=o.CRH())&&(i.items=r)}},viewQuery:function(t,i){if(1&t&&o.Gf(o.Rgc,5),2&t){let s;o.iGM(s=o.CRH())&&(i.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),xn=(()=>{class n extends Oi{constructor(t,i,s,r){super(t,i,s,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(vn),o.Y36(o.sBO))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:It,useExisting:n}]),o.qOj],ngContentSelectors:ee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(t,i){1&t&&(o.F$t(),o.YNc(0,te,3,6,"ng-template"))},dependencies:[B.mk],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[li.transformMenu,li.fadeInItems]},changeDetection:0}),n})();const wn=new o.OlP("mat-menu-scroll-strategy"),ys={provide:wn,deps:[gn.aV],useFactory:function ws(n){return()=>n.scrollStrategies.reposition()}},Cs=(0,Ot.i$)({passive:!0});let oo=(()=>{class n{constructor(t,i,s,r,c,d,m,u,f){this._overlay=t,this._element=i,this._viewContainerRef=s,this._menuItemInstance=d,this._dir=m,this._focusMonitor=u,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=xt.w0.EMPTY,this._hoverSubscription=xt.w0.EMPTY,this._menuCloseSubscription=xt.w0.EMPTY,this._handleTouchStart=_=>{(0,tt.yG)(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=c instanceof Oi?c:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Cs)}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Cs),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const t=this.menu;if(this._menuOpen||!t)return;const i=this._createOverlay(t),s=i.getConfig(),r=s.positionStrategy;this._setPosition(t,r),s.hasBackdrop=t.hasBackdrop??!this.triggersSubmenu(),i.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof Oi&&(t._startAnimation(),t._directDescendantItems.changes.pipe((0,ht.R)(t.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Oi?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,qt.h)(s=>"void"===s.toState),(0,Jt.q)(1),(0,ht.R)(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let i=0,s=t.parentMenu;for(;s;)i++,s=s.parentMenu;t.setElevation(i)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_createOverlay(t){if(!this._overlayRef){const i=this._getOverlayConfig(t);this._subscribeToPositions(t,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new gn.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,i){t.setPositionClasses&&i.positionChanges.subscribe(s=>{const r="start"===s.connectionPair.overlayX?"after":"before",c="top"===s.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(r,c)):t.setPositionClasses(r,c)})}_setPosition(t,i){let[s,r]="before"===t.xPosition?["end","start"]:["start","end"],[c,d]="above"===t.yPosition?["bottom","top"]:["top","bottom"],[m,u]=[c,d],[f,_]=[s,r],v=0;if(this.triggersSubmenu()){if(_=s="before"===t.xPosition?"start":"end",r=f="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}v="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(m="top"===c?"bottom":"top",u="top"===d?"bottom":"top");i.withPositions([{originX:s,originY:m,overlayX:f,overlayY:c,offsetY:v},{originX:r,originY:m,overlayX:_,overlayY:c,offsetY:v},{originX:s,originY:u,overlayX:f,overlayY:d,offsetY:-v},{originX:r,originY:u,overlayX:_,overlayY:d,offsetY:-v}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,re.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,qt.h)(c=>c!==this._menuItemInstance),(0,qt.h)(()=>this._menuOpen)):(0,re.of)();return(0,jt.T)(t,s,r,i)}_handleMousedown(t){(0,tt.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const i=t.keyCode;(i===N.K5||i===N.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===N.SV&&"ltr"===this.dir||i===N.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,qt.h)(t=>t===this._menuItemInstance&&!t.disabled),fn(0,mn.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Oi&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Jt.q)(1),fn(0,mn.E),(0,ht.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new Qt.UE(t.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(gn.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(wn),o.Y36(It,8),o.Y36(mt,10),o.Y36(Xt.Is,8),o.Y36(tt.tE),o.Y36(o.R0b))},n.\u0275dir=o.lG2({type:n,hostVars:3,hostBindings:function(t,i){1&t&&o.NdJ("click",function(r){return i._handleClick(r)})("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)}),2&t&&o.uIk("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),yn=(()=>{class n extends oo{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[o.qOj]}),n})(),ks=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({providers:[ys],imports:[B.ez,F.si,F.BQ,gn.U8,Yt.ZD,F.BQ]}),n})();var le=S(7392),Ms=S(4968),Ii=S(4004),Ts=S(1884),Ss=S(8372);const ci=["*"],Ps=["content"];function hr(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s._onBackdropClicked())}),o.qZA()}if(2&n){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function Li(n,e){1&n&&(o.TgZ(0,"mat-drawer-content"),o.Hsn(1,2),o.qZA())}const mr=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ur=["mat-drawer","mat-drawer-content","*"];function As(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s._onBackdropClicked())}),o.qZA()}if(2&n){const t=o.oxw();o.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function Ds(n,e){1&n&&(o.TgZ(0,"mat-sidenav-content"),o.Hsn(1,2),o.qZA())}const Os=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],pr=["mat-sidenav","mat-sidenav-content","*"],Is={transformDrawer:(0,ot.X$)("transform",[(0,ot.SB)("open, open-instant",(0,ot.oB)({transform:"none",visibility:"visible"})),(0,ot.SB)("void",(0,ot.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ot.eR)("void => open-instant",(0,ot.jt)("0ms")),(0,ot.eR)("void <=> open, open-instant => void",(0,ot.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},gr=new o.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function ao(){return!1}}),so=new o.OlP("MAT_DRAWER_CONTAINER");let Ri=(()=>{class n extends Yt.PQ{constructor(t,i,s,r,c){super(s,r,c),this._changeDetectorRef=t,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>lo)),o.Y36(o.SBq),o.Y36(Yt.mF),o.Y36(o.R0b))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,i){2&t&&o.Udp("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[o._Bn([{provide:Yt.PQ,useExisting:n}]),o.qOj],ngContentSelectors:ci,decls:1,vars:0,template:function(t,i){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),ro=(()=>{class n{constructor(t,i,s,r,c,d,m,u){this._elementRef=t,this._focusTrapFactory=i,this._focusMonitor=s,this._platform=r,this._ngZone=c,this._interactivityChecker=d,this._doc=m,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new _t.x,this._animationEnd=new _t.x,this._animationState="void",this.openedChange=new o.vpe(!0),this._openedStream=this.openedChange.pipe((0,qt.h)(f=>f),(0,Ii.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,qt.h)(f=>f.fromState!==f.toState&&0===f.toState.indexOf("open")),(0,Di.h)(void 0)),this._closedStream=this.openedChange.pipe((0,qt.h)(f=>!f),(0,Ii.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,qt.h)(f=>f.fromState!==f.toState&&"void"===f.toState),(0,Di.h)(void 0)),this._destroyed=new _t.x,this.onPositionChanged=new o.vpe,this._modeChanged=new _t.x,this.openedChange.subscribe(f=>{f?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,Ms.R)(this._elementRef.nativeElement,"keydown").pipe((0,qt.h)(f=>f.keyCode===N.hY&&!this.disableClose&&!(0,N.Vb)(f)),(0,ht.R)(this._destroyed)).subscribe(f=>this._ngZone.run(()=>{this.close(),f.stopPropagation(),f.preventDefault()}))}),this._animationEnd.pipe((0,Ts.x)((f,_)=>f.fromState===_.fromState&&f.toState===_.toState)).subscribe(f=>{const{fromState:_,toState:v}=f;(0===v.indexOf("open")&&"void"===_||"void"===v&&0===_.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(t),this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,q.Ig)(t)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(t){("true"===t||"false"===t||null==t)&&(t=(0,q.Ig)(t)),this._autoFocus=t}get opened(){return this._opened}set opened(t){this.toggle((0,q.Ig)(t))}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{t.removeEventListener("blur",s),t.removeEventListener("mousedown",s),t.removeAttribute("tabindex")};t.addEventListener("blur",s),t.addEventListener("mousedown",s)})),t.focus(i)}_focusByCssSelector(t,i){let s=this._elementRef.nativeElement.querySelector(t);s&&this._forceFocus(s,i)}_takeFocus(){if(!this._focusTrap)return;const t=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&t.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(t){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,t):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const t=this._doc.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(t=!this.opened,i){t&&i&&(this._openedVia=i);const s=this._setOpen(t,!t&&this._isFocusWithinDrawer(),this._openedVia||"program");return t||(this._openedVia=null),s}_setOpen(t,i,s){return this._opened=t,t?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(s)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe((0,Jt.q)(1)).subscribe(c=>r(c?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(t){const i=this._elementRef.nativeElement,s=i.parentNode;"end"===t?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),s.insertBefore(this._anchor,i)),s.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(tt.qV),o.Y36(tt.tE),o.Y36(Ot.t4),o.Y36(o.R0b),o.Y36(tt.ic),o.Y36(B.K0,8),o.Y36(so,8))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(t,i){if(1&t&&o.Gf(Ps,5),2&t){let s;o.iGM(s=o.CRH())&&(i._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,i){1&t&&o.WFA("@transform.start",function(r){return i._animationStarted.next(r)})("@transform.done",function(r){return i._animationEnd.next(r)}),2&t&&(o.uIk("align",null),o.d8E("@transform",i._animationState),o.ekj("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ci,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,i){1&t&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA())},dependencies:[Yt.PQ],encapsulation:2,data:{animation:[Is.transformDrawer]},changeDetection:0}),n})(),lo=(()=>{class n{constructor(t,i,s,r,c,d=!1,m){this._dir=t,this._element=i,this._ngZone=s,this._changeDetectorRef=r,this._animationMode=m,this._drawers=new o.n_E,this.backdropClick=new o.vpe,this._destroyed=new _t.x,this._doCheckSubject=new _t.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new _t.x,t&&t.change.pipe((0,ht.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe((0,ht.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=d}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,q.Ig)(t)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,q.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Ht.O)(this._allDrawers),(0,ht.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Ht.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Ss.b)(10),(0,ht.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const s=this._left._getWidth();t+=s,i-=s}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const s=this._right._getWidth();i+=s,t-=s}t=t||null,i=i||null,(t!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:t,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,qt.h)(i=>i.fromState!==i.toState),(0,ht.R)(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,ht.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){!t||t.onPositionChanged.pipe((0,ht.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Jt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,ht.R)((0,jt.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const i=this._element.nativeElement.classList,s="mat-drawer-container-has-open";t?i.add(s):i.remove(s)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Xt.Is,8),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(Yt.rL),o.Y36(gr),o.Y36(o.QbO,8))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(t,i,s){if(1&t&&(o.Suo(s,Ri,5),o.Suo(s,ro,5)),2&t){let r;o.iGM(r=o.CRH())&&(i._content=r.first),o.iGM(r=o.CRH())&&(i._allDrawers=r)}},viewQuery:function(t,i){if(1&t&&o.Gf(Ri,5),2&t){let s;o.iGM(s=o.CRH())&&(i._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,i){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o._Bn([{provide:so,useExisting:n}])],ngContentSelectors:ur,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,i){1&t&&(o.F$t(mr),o.YNc(0,hr,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,Li,2,0,"mat-drawer-content",1)),2&t&&(o.Q6J("ngIf",i.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!i._content))},dependencies:[B.O5,Ri],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),co=(()=>{class n extends Ri{constructor(t,i,s,r,c){super(t,i,s,r,c)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>Y)),o.Y36(o.SBq),o.Y36(Yt.mF),o.Y36(o.R0b))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,i){2&t&&o.Udp("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[o._Bn([{provide:Yt.PQ,useExisting:n}]),o.qOj],ngContentSelectors:ci,decls:1,vars:0,template:function(t,i){1&t&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),he=(()=>{class n extends ro{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,q.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,q.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,q.su)(t)}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,i){2&t&&(o.uIk("align",null),o.Udp("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),o.ekj("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[o.qOj],ngContentSelectors:ci,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,i){1&t&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA())},dependencies:[Yt.PQ],encapsulation:2,data:{animation:[Is.transformDrawer]},changeDetection:0}),n})(),Y=(()=>{class n extends lo{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(t,i,s){if(1&t&&(o.Suo(s,co,5),o.Suo(s,he,5)),2&t){let r;o.iGM(r=o.CRH())&&(i._content=r.first),o.iGM(r=o.CRH())&&(i._allDrawers=r)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,i){2&t&&o.ekj("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[o._Bn([{provide:so,useExisting:n}]),o.qOj],ngContentSelectors:pr,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,i){1&t&&(o.F$t(Os),o.YNc(0,As,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,Ds,2,0,"mat-sidenav-content",1)),2&t&&(o.Q6J("ngIf",i.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!i._content))},dependencies:[B.O5,co],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),Ls=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[B.ez,F.BQ,Yt.ZD,Yt.ZD,F.BQ]}),n})();const Rs=["*",[["mat-toolbar-row"]]],Es=["*","mat-toolbar-row"],Fs=(0,F.pj)(class{constructor(n){this._elementRef=n}});let ho=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=o.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Zs=(()=>{class n extends Fs{constructor(t,i,s){super(t),this._platform=i,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(Ot.t4),o.Y36(B.K0))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(t,i,s){if(1&t&&o.Suo(s,ho,5),2&t){let r;o.iGM(r=o.CRH())&&(i._toolbarRows=r)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,i){2&t&&o.ekj("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[o.qOj],ngContentSelectors:Es,decls:2,vars:0,template:function(t,i){1&t&&(o.F$t(Rs),o.Hsn(0),o.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),zs=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[F.BQ,F.BQ]}),n})(),Bs=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[F.BQ,F.BQ]}),n})();var Ut=S(5017),T=S(4006);const Ns=["input"],_r=["*"];let Fi=0;class Hs{constructor(e,t){this.source=e,this.value=t}}const vr={provide:T.JU,useExisting:(0,o.Gpc)(()=>ze),multi:!0},Us=new o.OlP("MatRadioGroup"),br=new o.OlP("mat-radio-default-options",{providedIn:"root",factory:function xr(){return{color:"accent"}}});let mo=(()=>{class n{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+Fi++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new o.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,q.Ig)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=(0,q.Ig)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Hs(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.sBO))},n.\u0275dir=o.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})();class Zi{constructor(e){this._elementRef=e}}const qs=(0,F.Kr)((0,F.sb)(Zi));let Ys=(()=>{class n extends qs{constructor(t,i,s,r,c,d,m,u){super(i),this._changeDetector=s,this._focusMonitor=r,this._radioDispatcher=c,this._providerOverride=m,this._uniqueId="mat-radio-"+ ++Fi,this.id=this._uniqueId,this.change=new o.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===d,u&&(this.tabIndex=(0,q.su)(u,0))}get checked(){return this._checked}set checked(t){const i=(0,q.Ig)(t);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled((0,q.Ig)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=(0,q.Ig)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,i){i?this._focusMonitor.focusVia(this._inputElement,i,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((t,i)=>{t!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Hs(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputInteraction(t){if(t.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}_updateTabIndex(){const t=this.radioGroup;let i;if(i=t&&t.selected&&!this.disabled?t.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const s=this._inputElement?.nativeElement;s&&(s.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}}return n.\u0275fac=function(t){o.$Z()},n.\u0275dir=o.lG2({type:n,viewQuery:function(t,i){if(1&t&&o.Gf(Ns,5),2&t){let s;o.iGM(s=o.CRH())&&(i._inputElement=s.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[o.qOj]}),n})(),ze=(()=>{class n extends mo{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(t,i,s){if(1&t&&o.Suo(s,at,5),2&t){let r;o.iGM(r=o.CRH())&&(i._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[o._Bn([vr,{provide:Us,useExisting:n}]),o.qOj]}),n})(),at=(()=>{class n extends Ys{constructor(t,i,s,r,c,d,m,u){super(t,i,s,r,c,d,m,u)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Us,8),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(tt.tE),o.Y36(Ut.A8),o.Y36(o.QbO,8),o.Y36(br,8),o.$8M("tabindex"))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(t,i){1&t&&o.NdJ("focus",function(){return i._inputElement.nativeElement.focus()}),2&t&&(o.uIk("id",i.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.ekj("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("mat-mdc-radio-checked",i.checked)("_mat-animation-noopable",i._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[o.qOj],ngContentSelectors:_r,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(t,i){if(1&t&&(o.F$t(),o.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),o.NdJ("click",function(r){return i._onInputInteraction(r)}),o.qZA(),o.TgZ(4,"input",4,5),o.NdJ("change",function(r){return i._onInputInteraction(r)}),o.qZA(),o.TgZ(6,"div",6),o._UZ(7,"div",7)(8,"div",8),o.qZA(),o.TgZ(9,"div",9),o._UZ(10,"div",10),o.qZA()(),o.TgZ(11,"label",11),o.Hsn(12),o.qZA()()),2&t){const s=o.MAs(1);o.ekj("mdc-form-field--align-end","before"==i.labelPosition),o.xp6(2),o.ekj("mdc-radio--disabled",i.disabled),o.xp6(2),o.Q6J("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),o.uIk("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),o.xp6(5),o.Q6J("matRippleTrigger",s)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0),o.xp6(2),o.Q6J("for",i.inputId)}},dependencies:[F.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),n})(),Mt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[F.BQ,B.ez,F.si,F.BQ]}),n})();var Cn=S(529),Ae=S(6709),et=S(4859),Lt=S(3546);let vo=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[F.uc,F.BQ,F.uc,F.BQ]}),n})();var V=S(3848),gt=S(4144),lt=S(266);let Ws=0;const zi=new o.OlP("CdkAccordion");let bo=(()=>{class n{constructor(){this._stateChanges=new _t.x,this._openCloseAllActions=new _t.x,this.id="cdk-accordion-"+Ws++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,q.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=o.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[o._Bn([{provide:zi,useExisting:n}]),o.TTD]}),n})(),xo=0,Je=(()=>{class n{constructor(t,i,s){this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=s,this._openCloseAllSubscription=xt.w0.EMPTY,this.closed=new o.vpe,this.opened=new o.vpe,this.destroyed=new o.vpe,this.expandedChange=new o.vpe,this.id="cdk-accordion-child-"+xo++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=s.listen((r,c)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===c&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,q.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,q.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(zi,12),o.Y36(o.sBO),o.Y36(Ut.A8))},n.\u0275dir=o.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[o._Bn([{provide:zi,useValue:void 0}])]}),n})(),wo=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({}),n})();var Bi=S(515);const Gt=["body"];function Qe(n,e){}const Js=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Qs=["mat-expansion-panel-header","*","mat-action-row"];function Cr(n,e){if(1&n&&o._UZ(0,"span",2),2&n){const t=o.oxw();o.Q6J("@indicatorRotate",t._getExpandedState())}}const $s=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],yo=["mat-panel-title","mat-panel-description","*"],Co=new o.OlP("MAT_ACCORDION"),ko="225ms cubic-bezier(0.4,0.0,0.2,1)",rt={indicatorRotate:(0,ot.X$)("indicatorRotate",[(0,ot.SB)("collapsed, void",(0,ot.oB)({transform:"rotate(0deg)"})),(0,ot.SB)("expanded",(0,ot.oB)({transform:"rotate(180deg)"})),(0,ot.eR)("expanded <=> collapsed, void => collapsed",(0,ot.jt)(ko))]),bodyExpansion:(0,ot.X$)("bodyExpansion",[(0,ot.SB)("collapsed, void",(0,ot.oB)({height:"0px",visibility:"hidden"})),(0,ot.SB)("expanded",(0,ot.oB)({height:"*",visibility:"visible"})),(0,ot.eR)("expanded <=> collapsed, void => collapsed",(0,ot.jt)(ko))])},Ks=new o.OlP("MAT_EXPANSION_PANEL");let _e=(()=>{class n{constructor(t,i){this._template=t,this._expansionPanel=i}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc),o.Y36(Ks,8))},n.\u0275dir=o.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),Ni=0;const Mo=new o.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Pn=(()=>{class n extends Je{constructor(t,i,s,r,c,d,m){super(t,i,s),this._viewContainerRef=r,this._animationMode=d,this._hideToggle=!1,this.afterExpand=new o.vpe,this.afterCollapse=new o.vpe,this._inputChanges=new _t.x,this._headerId="mat-expansion-panel-header-"+Ni++,this._bodyAnimationDone=new _t.x,this.accordion=t,this._document=c,this._bodyAnimationDone.pipe((0,Ts.x)((u,f)=>u.fromState===f.fromState&&u.toState===f.toState)).subscribe(u=>{"void"!==u.fromState&&("expanded"===u.toState?this.afterExpand.emit():"collapsed"===u.toState&&this.afterCollapse.emit())}),m&&(this.hideToggle=m.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,q.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,Ht.O)(null),(0,qt.h)(()=>this.expanded&&!this._portal),(0,Jt.q)(1)).subscribe(()=>{this._portal=new Qt.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,i=this._body.nativeElement;return t===i||i.contains(t)}return!1}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Co,12),o.Y36(o.sBO),o.Y36(Ut.A8),o.Y36(o.s_b),o.Y36(B.K0),o.Y36(o.QbO,8),o.Y36(Mo,8))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,s){if(1&t&&o.Suo(s,_e,5),2&t){let r;o.iGM(r=o.CRH())&&(i._lazyContent=r.first)}},viewQuery:function(t,i){if(1&t&&o.Gf(Gt,5),2&t){let s;o.iGM(s=o.CRH())&&(i._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,i){2&t&&o.ekj("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[o._Bn([{provide:Co,useValue:void 0},{provide:Ks,useExisting:n}]),o.qOj,o.TTD],ngContentSelectors:Qs,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(o.F$t(Js),o.Hsn(0),o.TgZ(1,"div",0,1),o.NdJ("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),o.TgZ(3,"div",2),o.Hsn(4,1),o.YNc(5,Qe,0,0,"ng-template",3),o.qZA(),o.Hsn(6,2),o.qZA()),2&t&&(o.xp6(1),o.Q6J("@bodyExpansion",i._getExpandedState())("id",i.id),o.uIk("aria-labelledby",i._headerId),o.xp6(4),o.Q6J("cdkPortalOutlet",i._portal))},dependencies:[Qt.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[rt.bodyExpansion]},changeDetection:0}),n})();class kr{}const ta=(0,F.sb)(kr);let An=(()=>{class n extends ta{constructor(t,i,s,r,c,d,m){super(),this.panel=t,this._element=i,this._focusMonitor=s,this._changeDetectorRef=r,this._animationMode=d,this._parentChangeSubscription=xt.w0.EMPTY;const u=t.accordion?t.accordion._stateChanges.pipe((0,qt.h)(f=>!(!f.hideToggle&&!f.togglePosition))):Bi.E;this.tabIndex=parseInt(m||"")||0,this._parentChangeSubscription=(0,jt.T)(t.opened,t.closed,u,t._inputChanges.pipe((0,qt.h)(f=>!!(f.hideToggle||f.disabled||f.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,qt.h)(()=>t._containsFocus())).subscribe(()=>s.focusVia(i,"program")),c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case N.L_:case N.K5:(0,N.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,i){t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Pn,1),o.Y36(o.SBq),o.Y36(tt.tE),o.Y36(o.sBO),o.Y36(Mo,8),o.Y36(o.QbO,8),o.$8M("tabindex"))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,i){1&t&&o.NdJ("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&t&&(o.uIk("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),o.Udp("height",i._getHeaderHeight()),o.ekj("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[o.qOj],ngContentSelectors:yo,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,i){1&t&&(o.F$t($s),o.TgZ(0,"span",0),o.Hsn(1),o.Hsn(2,1),o.Hsn(3,2),o.qZA(),o.YNc(4,Cr,1,1,"span",1)),2&t&&(o.ekj("mat-content-hide-toggle",!i._showToggle()),o.xp6(4),o.Q6J("ngIf",i._showToggle()))},dependencies:[B.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[rt.indicatorRotate]},changeDetection:0}),n})(),ea=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=o.lG2({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),n})(),Hi=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=o.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),Mr=(()=>{class n extends bo{constructor(){super(...arguments),this._ownHeaders=new o.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,q.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,Ht.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new tt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,i,s){if(1&t&&o.Suo(s,An,5),2&t){let r;o.iGM(r=o.CRH())&&(i._headers=r)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,i){2&t&&o.ekj("mat-accordion-multi",i.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[o._Bn([{provide:Co,useExisting:n}]),o.qOj]}),n})(),ke=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[B.ez,F.BQ,wo,Qt.eL]}),n})();var W=S(7274),Me=S(4385);let To=(()=>{class n{constructor(){this.changes=new _t.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,i,s)=>{if(0==s||0==i)return`0 of ${s}`;const r=t*i;return`${r+1} \u2013 ${r<(s=Math.max(s,0))?Math.min(r+i,s):r+i} of ${s}`}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=o.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const aa={provide:To,deps:[[new o.FiY,new o.tp0,To]],useFactory:function sa(n){return n||new To}};let Pr=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({providers:[aa],imports:[B.ez,et.ot,Me.LD,lt.AV]}),n})();var ra=S(457),la=S(1135),Ar=S(9751),On=S(576);const Dr=[[["caption"]],[["colgroup"],["col"]]],Or=["caption","colgroup, col"];function ce(n){return class extends n{constructor(...e){super(...e),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(e){const t=this._sticky;this._sticky=(0,q.Ig)(e),this._hasStickyChanged=t!==this._sticky}hasStickyChanged(){const e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}resetStickyChanged(){this._hasStickyChanged=!1}}}const be=new o.OlP("CDK_TABLE");let ie=(()=>{class n{constructor(t){this.template=t}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),ui=(()=>{class n{constructor(t){this.template=t}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),Oe=(()=>{class n{constructor(t){this.template=t}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class Rr{}const Ui=ce(Rr);let Te=(()=>{class n extends Ui{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const i=this._stickyEnd;this._stickyEnd=(0,q.Ig)(t),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(be,8))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,s){if(1&t&&(o.Suo(s,ie,5),o.Suo(s,ui,5),o.Suo(s,Oe,5)),2&t){let r;o.iGM(r=o.CRH())&&(i.cell=r.first),o.iGM(r=o.CRH())&&(i.headerCell=r.first),o.iGM(r=o.CRH())&&(i.footerCell=r.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),o.qOj]}),n})();class pi{constructor(e,t){t.nativeElement.classList.add(...e._columnCssClassName)}}let Ao=(()=>{class n extends pi{constructor(t,i){super(t,i)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Te),o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.qOj]}),n})(),fi=(()=>{class n extends pi{constructor(t,i){if(super(t,i),1===t._table?._elementRef.nativeElement.nodeType){const s=t._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Te),o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[o.qOj]}),n})();class da{constructor(){this.tasks=[],this.endTasks=[]}}const qi=new o.OlP("_COALESCED_STYLE_SCHEDULER");let ha=(()=>{class n{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new _t.x}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new da,this._getScheduleObservable().pipe((0,ht.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new da;for(const i of t.tasks)i();for(const i of t.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,ra.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Jt.q)(1))}}return n.\u0275fac=function(t){return new(t||n)(o.LFG(o.R0b))},n.\u0275prov=o.Yz7({token:n,factory:n.\u0275fac}),n})(),Do=(()=>{class n{constructor(t,i){this.template=t,this._differs=i}ngOnChanges(t){if(!this._columnsDiffer){const i=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof de?t.headerCell.template:this instanceof $e?t.footerCell.template:t.cell.template}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc),o.Y36(o.ZZ4))},n.\u0275dir=o.lG2({type:n,features:[o.TTD]}),n})();class gi extends Do{}const Er=ce(gi);let de=(()=>{class n extends Er{constructor(t,i,s){super(t,i),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(be,8))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),n})();class In extends Do{}const ma=ce(In);let $e=(()=>{class n extends ma{constructor(t,i,s){super(t,i),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(be,8))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),n})(),Ke=(()=>{class n extends Do{constructor(t,i,s){super(t,i),this._table=s}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(be,8))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.qOj]}),n})(),xe=(()=>{class n{constructor(t){this._viewContainer=t,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(t){return new(t||n)(o.Y36(o.s_b))},n.\u0275dir=o.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),_i=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=o.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&o.GkF(0,0)},dependencies:[xe],encapsulation:2}),n})(),vi=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=o.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&o.GkF(0,0)},dependencies:[xe],encapsulation:2}),n})(),bi=(()=>{class n{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.Rgc))},n.\u0275dir=o.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const Oo=["top","bottom","left","right"];class Fr{constructor(e,t,i,s,r=!0,c=!0,d){this._isNativeHtmlTable=e,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=s,this._isBrowser=r,this._needsPositionStickyOnElement=c,this._positionListener=d,this._cachedCellWidths=[],this._borderCellCss={top:`${t}-border-elem-top`,bottom:`${t}-border-elem-bottom`,left:`${t}-border-elem-left`,right:`${t}-border-elem-right`}}clearStickyPositioning(e,t){const i=[];for(const s of e)if(s.nodeType===s.ELEMENT_NODE){i.push(s);for(let r=0;r{for(const s of i)this._removeStickyStyle(s,t)})}updateStickyColumns(e,t,i,s=!0){if(!e.length||!this._isBrowser||!t.some(v=>v)&&!i.some(v=>v))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=e[0],c=r.children.length,d=this._getCellWidths(r,s),m=this._getStickyStartColumnPositions(d,t),u=this._getStickyEndColumnPositions(d,i),f=t.lastIndexOf(!0),_=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const v="rtl"===this.direction,x=v?"right":"left",w=v?"left":"right";for(const C of e)for(let k=0;kt[k]?C:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===_?[]:d.slice(_).map((C,k)=>i[k+_]?C:null).reverse()}))})}stickRows(e,t,i){if(!this._isBrowser)return;const s="bottom"===i?e.slice().reverse():e,r="bottom"===i?t.slice().reverse():t,c=[],d=[],m=[];for(let f=0,_=0;f{for(let f=0;f{t.some(s=>!s)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(e,t){for(const s of t)e.style[s]="",e.classList.remove(this._borderCellCss[s]);Oo.some(s=>-1===t.indexOf(s)&&e.style[s])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,t,i,s){e.classList.add(this._stickCellCss),s&&e.classList.add(this._borderCellCss[t]),e.style[t]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){const t={top:100,bottom:10,left:1,right:1};let i=0;for(const s of Oo)e.style[s]&&(i+=t[s]);return i?`${i}`:""}_getCellWidths(e,t=!0){if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],s=e.children;for(let r=0;r0;r--)t[r]&&(i[r]=s,s+=e[r]);return i}}const Ro=new o.OlP("CDK_SPL");let Rn=(()=>{class n{constructor(t,i){this.viewContainer=t,this.elementRef=i}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.s_b),o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),Yi=(()=>{class n{constructor(t,i){this.viewContainer=t,this.elementRef=i}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.s_b),o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),En=(()=>{class n{constructor(t,i){this.viewContainer=t,this.elementRef=i}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.s_b),o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),Ue=(()=>{class n{constructor(t,i){this.viewContainer=t,this.elementRef=i}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.s_b),o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Vi=(()=>{class n{constructor(t,i,s,r,c,d,m,u,f,_,v,x){this._differs=t,this._changeDetectorRef=i,this._elementRef=s,this._dir=c,this._platform=m,this._viewRepeater=u,this._coalescedStyleScheduler=f,this._viewportRuler=_,this._stickyPositioningListener=v,this._ngZone=x,this._onDestroy=new _t.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new o.vpe,this.viewChange=new la.X({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=d,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,q.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,q.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe((0,ht.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,Ut.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,i,(s,r,c)=>this._getEmbeddedViewArgs(s.item,c),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(s=>{i.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this._ngZone&&o.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Jt.q)(1),(0,ht.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=t.length?"":"none");const r=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,r,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=t.length?"":"none");const r=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...i,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((r,c)=>{this._addStickyColumnStyles([r],this._headerRowDefs[c])}),this._rowDefs.forEach(r=>{const c=[];for(let d=0;d{this._addStickyColumnStyles([r],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const t=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const d=s&&s.has(c)?s.get(c):[];if(d.length){const m=d.shift();return m.dataIndex=i,m}return{data:t,rowDef:c,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ji(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=ji(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ji(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ji(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(c,d)=>c||!!d.getColumnsDiff(),i=this._rowDefs.reduce(t,!1);i&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(t,!1);s&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(t,!1);return r&&this._forceRenderFooterRows(),i||s||r}_switchDataSource(t){this._data=[],(0,Ut.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,Ut.Z9)(this.dataSource)?t=this.dataSource.connect(this):function Po(n){return!!n&&(n instanceof Ar.y||(0,On.m)(n.lift)&&(0,On.m)(n.subscribe))}(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,re.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,ht.R)(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,i)=>this._renderRow(this._headerRowOutlet,t,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,i)=>this._renderRow(this._footerRowOutlet,t,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,i){const s=Array.from(i.columns||[]).map(d=>this._columnDefsByName.get(d)),r=s.map(d=>d.sticky),c=s.map(d=>d.stickyEnd);this._stickyStyler.updateStickyColumns(t,r,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const i=[];for(let s=0;s!r.when||r.when(i,t));else{let r=this._rowDefs.find(c=>c.when&&c.when(i,t))||this._defaultRowDef;r&&s.push(r)}return s}_getEmbeddedViewArgs(t,i){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:i}}_renderRow(t,i,s,r={}){const c=t.viewContainer.createEmbeddedView(i.template,r,s);return this._renderCellTemplateForItem(i,r),c}_renderCellTemplateForItem(t,i){for(let s of this._getCellTemplates(t))xe.mostRecentCellOutlet&&xe.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let i=0,s=t.length;i{const s=this._columnDefsByName.get(i);return t.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of i){const r=this._document.createElement(s.tag);r.setAttribute("role","rowgroup");for(const c of s.outlets)r.appendChild(c.elementRef.nativeElement);t.appendChild(r)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(i,s)=>i||s.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Fr(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,re.of)()).pipe((0,ht.R)(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(!t)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const s=this._noDataRowOutlet.viewContainer;if(i){const r=s.createEmbeddedView(t.templateRef),c=r.rootNodes[0];1===r.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(t._contentClassName))}else s.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.ZZ4),o.Y36(o.sBO),o.Y36(o.SBq),o.$8M("role"),o.Y36(Xt.Is,8),o.Y36(B.K0),o.Y36(Ot.t4),o.Y36(Ut.k),o.Y36(qi),o.Y36(Yt.rL),o.Y36(Ro,12),o.Y36(o.R0b,8))},n.\u0275cmp=o.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,s){if(1&t&&(o.Suo(s,bi,5),o.Suo(s,Te,5),o.Suo(s,Ke,5),o.Suo(s,de,5),o.Suo(s,$e,5)),2&t){let r;o.iGM(r=o.CRH())&&(i._noDataRow=r.first),o.iGM(r=o.CRH())&&(i._contentColumnDefs=r),o.iGM(r=o.CRH())&&(i._contentRowDefs=r),o.iGM(r=o.CRH())&&(i._contentHeaderRowDefs=r),o.iGM(r=o.CRH())&&(i._contentFooterRowDefs=r)}},viewQuery:function(t,i){if(1&t&&(o.Gf(Rn,7),o.Gf(Yi,7),o.Gf(En,7),o.Gf(Ue,7)),2&t){let s;o.iGM(s=o.CRH())&&(i._rowOutlet=s.first),o.iGM(s=o.CRH())&&(i._headerRowOutlet=s.first),o.iGM(s=o.CRH())&&(i._footerRowOutlet=s.first),o.iGM(s=o.CRH())&&(i._noDataRowOutlet=s.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){2&t&&o.ekj("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[o._Bn([{provide:be,useExisting:n},{provide:Ut.k,useClass:Ut.yy},{provide:qi,useClass:ha},{provide:Ro,useValue:null}])],ngContentSelectors:Or,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(o.F$t(Dr),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Rn,Yi,En,Ue],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function ji(n,e){return n.concat(Array.from(e))}let pa=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[Yt.Cl]}),n})();const fa=[[["caption"]],[["colgroup"],["col"]]],Wi=["caption","colgroup, col"];let Zn=(()=>{class n extends Vi{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,i){2&t&&o.ekj("mdc-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[o._Bn([{provide:Vi,useExisting:n},{provide:be,useExisting:n},{provide:qi,useClass:ha},{provide:Ut.k,useClass:Ut.yy},{provide:Ro,useValue:null}]),o.qOj],ngContentSelectors:Wi,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(o.F$t(fa),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Rn,Yi,En,Ue],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),n})(),Qi=(()=>{class n extends ie{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","matCellDef",""]],features:[o._Bn([{provide:ie,useExisting:n}]),o.qOj]}),n})(),zn=(()=>{class n extends ui{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[o._Bn([{provide:ui,useExisting:n}]),o.qOj]}),n})(),$i=(()=>{class n extends Te{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o._Bn([{provide:Te,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),o.qOj]}),n})(),Ki=(()=>{class n extends Ao{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[o.qOj]}),n})(),Xi=(()=>{class n extends fi{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[o.qOj]}),n})(),Eo=(()=>{class n extends de{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o._Bn([{provide:de,useExisting:n}]),o.qOj]}),n})(),Bn=(()=>{class n extends Ke{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o._Bn([{provide:Ke,useExisting:n}]),o.qOj]}),n})(),Fo=(()=>{class n extends _i{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[o._Bn([{provide:_i,useExisting:n}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&o.GkF(0,0)},dependencies:[xe],encapsulation:2}),n})(),l=(()=>{class n extends vi{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[o._Bn([{provide:vi,useExisting:n}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&o.GkF(0,0)},dependencies:[xe],encapsulation:2}),n})(),b=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[F.BQ,pa,F.BQ]}),n})();var A=S(9549);function H(n,e){1&n&&(o.TgZ(0,"span",8),o.Hsn(1,1),o.qZA())}function j(n,e){1&n&&(o.TgZ(0,"span",9),o.Hsn(1,2),o.qZA())}const st=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],me=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],qn=new o.OlP("mat-chips-default-options"),zo=new o.OlP("MatChipAvatar"),ya=new o.OlP("MatChipTrailingIcon"),Wl=new o.OlP("MatChipRemove"),Ca=new o.OlP("MatChip");class Kh{}const Xh=(0,F.sb)(Kh,-1);let Yn=(()=>{class n extends Xh{constructor(t,i){super(),this._elementRef=t,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===t.nativeElement.nodeName&&t.nativeElement.setAttribute("type","button")}get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=(0,q.Ig)(t)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===N.K5||t.keyCode===N.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(Ca))},n.\u0275dir=o.lG2({type:n,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(t,i){1&t&&o.NdJ("click",function(r){return i._handleClick(r)})("keydown",function(r){return i._handleKeydown(r)}),2&t&&(o.uIk("tabindex",i._getTabindex())("disabled",i._getDisabledAttribute())("aria-disabled",i.disabled),o.ekj("mdc-evolution-chip__action--primary",i._isPrimary)("mdc-evolution-chip__action--presentational",i._isPrimary)("mdc-evolution-chip__action--trailing",!i._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[o.qOj]}),n})(),nm=0;const om=(0,F.sb)((0,F.pj)((0,F.Kr)((0,F.Id)(class{constructor(n){this._elementRef=n}})),"primary"),-1);let xi=(()=>{class n extends om{constructor(t,i,s,r,c,d,m,u){super(i),this._changeDetectorRef=t,this._ngZone=s,this._focusMonitor=r,this._globalRippleOptions=m,this._isRippleCentered=!1,this._onFocus=new _t.x,this._onBlur=new _t.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+nm++,this.ariaLabel=null,this._removable=!0,this._highlighted=!1,this.removed=new o.vpe,this.destroyed=new o.vpe,this.basicChipAttrName="mat-basic-chip";const f=i.nativeElement;this._document=c,this._animationsDisabled="NoopAnimations"===d,this._isBasicChip=f.hasAttribute(this.basicChipAttrName)||f.tagName.toLowerCase()===this.basicChipAttrName,null!=u&&(this.tabIndex=parseInt(u)??this.defaultTabIndex),this._monitorFocus()}_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get removable(){return this._removable}set removable(t){this._removable=(0,q.Ig)(t)}get highlighted(){return this._highlighted}set highlighted(t){this._highlighted=(0,q.Ig)(t)}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(t){(t.keyCode===N.ZH||t.keyCode===N.yY)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(i=>{const s=i._elementRef.nativeElement;return s===t||s.contains(t)})}_getActions(){const t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const i=null!==t;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,Jt.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(tt.tE),o.Y36(B.K0),o.Y36(o.QbO,8),o.Y36(F.Y2,8),o.$8M("tabindex"))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-basic-chip"],["mat-chip"]],contentQueries:function(t,i,s){if(1&t&&(o.Suo(s,zo,5),o.Suo(s,ya,5),o.Suo(s,Wl,5)),2&t){let r;o.iGM(r=o.CRH())&&(i.leadingIcon=r.first),o.iGM(r=o.CRH())&&(i.trailingIcon=r.first),o.iGM(r=o.CRH())&&(i.removeIcon=r.first)}},viewQuery:function(t,i){if(1&t&&(o.Gf(F.wG,5),o.Gf(Yn,5)),2&t){let s;o.iGM(s=o.CRH())&&(i.ripple=s.first),o.iGM(s=o.CRH())&&(i.primaryAction=s.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(t,i){1&t&&o.NdJ("keydown",function(r){return i._handleKeydown(r)}),2&t&&(o.Ikx("id",i.id),o.uIk("role",i.role)("tabindex",i.role?i.tabIndex:null)("aria-label",i.ariaLabel),o.ekj("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-basic-chip",i._isBasicChip)("mat-mdc-standard-chip",!i._isBasicChip)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon())("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[o._Bn([{provide:Ca,useExisting:n}]),o.qOj],ngContentSelectors:me,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(t,i){1&t&&(o.F$t(st),o._UZ(0,"span",0)(1,"span",1),o.TgZ(2,"span",2)(3,"div",3),o.YNc(4,H,2,0,"span",4),o.TgZ(5,"span",5),o.Hsn(6),o._UZ(7,"span",6),o.qZA()()(),o.YNc(8,j,2,0,"span",7)),2&t&&(o.Q6J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i._isRippleCentered)("matRippleTrigger",i._elementRef.nativeElement),o.xp6(3),o.Q6J("isInteractive",!1),o.xp6(1),o.Q6J("ngIf",i.leadingIcon),o.xp6(4),o.Q6J("ngIf",i._hasTrailingIcon()))},dependencies:[B.O5,F.wG,Yn],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),fm=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({providers:[F.rD,{provide:qn,useValue:{separatorKeyCodes:[N.K5]}}],imports:[F.BQ,B.ez,F.si,F.BQ]}),n})();var Kl=S(9643);const Xl=["*"];let Bo=(()=>{class n{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,q.Ig)(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,q.Ig)(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=o.lG2({type:n,hostVars:1,hostBindings:function(t,i){2&t&&o.uIk("aria-disabled",i.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}}),n})(),Lm=(()=>{class n extends Bo{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[o._Bn([{provide:Bo,useExisting:n}]),o.qOj],ngContentSelectors:Xl,decls:1,vars:0,template:function(t,i){1&t&&(o.F$t(),o.Hsn(0))},styles:['.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:24px;height:24px}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-image .mdc-list-item__start{width:56px;height:56px}.mdc-list-item--with-leading-video .mdc-list-item__start{width:100px;height:56px}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-radio .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-switch .mdc-list-item__start{width:36px;height:20px}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:24px;height:24px}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-radio .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-switch .mdc-list-item__end{width:36px;height:20px}.mdc-list-divider{height:1px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0}),n})(),zm=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[Kl.Q8,B.ez,F.BQ,F.si,F.us,Bs]}),n})();var vt=S(9653),Bm=S(493);const Nm=["*"],sc=new o.OlP("MatChipRemove"),ac=new o.OlP("MatChipAvatar"),rc=new o.OlP("MatChipTrailingIcon");class Hm{constructor(e){this._elementRef=e}}const Um=(0,F.sb)((0,F.pj)((0,F.Kr)(Hm),"primary"),-1);let No=(()=>{class n extends Um{constructor(t,i,s,r,c,d,m,u){super(t),this._ngZone=i,this._changeDetectorRef=c,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new _t.x,this._onBlur=new _t.x,this.selectionChange=new o.vpe,this.destroyed=new o.vpe,this.removed=new o.vpe,this._addHostClassName(),this._chipRippleTarget=d.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new F.IR(this,i,this._chipRippleTarget,s),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=r||{},this._animationsDisabled="NoopAnimations"===m,this.tabIndex=null!=u&&parseInt(u)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const i=(0,q.Ig)(t);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=(0,q.Ig)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=(0,q.Ig)(t)}get removable(){return this._removable}set removable(t){this._removable=(0,q.Ig)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(t)||i.tagName.toLowerCase()===t?i.classList.add(t):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled&&t.preventDefault()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case N.yY:case N.ZH:this.remove(),t.preventDefault();break;case N.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,Jt.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Ot.t4),o.Y36(F.Y2,8),o.Y36(o.sBO),o.Y36(B.K0),o.Y36(o.QbO,8),o.$8M("tabindex"))},n.\u0275dir=o.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,i,s){if(1&t&&(o.Suo(s,ac,5),o.Suo(s,rc,5),o.Suo(s,sc,5)),2&t){let r;o.iGM(r=o.CRH())&&(i.avatar=r.first),o.iGM(r=o.CRH())&&(i.trailingIcon=r.first),o.iGM(r=o.CRH())&&(i.removeIcon=r.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(t,i){1&t&&o.NdJ("click",function(r){return i._handleClick(r)})("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&t&&(o.uIk("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),o.ekj("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[o.qOj]}),n})();const lc=new o.OlP("mat-chips-default-options"),Vm=(0,F.FD)(class{constructor(n,e,t,i){this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=t,this.ngControl=i,this.stateChanges=new _t.x}});let jm=0;class Wm{constructor(e,t){this.source=e,this.value=t}}let Vr=(()=>{class n extends Vm{constructor(t,i,s,r,c,d,m){super(d,r,c,m),this._elementRef=t,this._changeDetectorRef=i,this._dir=s,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new _t.x,this._uid="mat-chip-list-"+jm++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(u,f)=>u===f,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new o.vpe,this.valueChange=new o.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(t){this._explicitRole=t}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,q.Ig)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(T.kI.required)??!1}set required(t){this._required=(0,q.Ig)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,q.Ig)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=(0,q.Ig)(t),this._syncChipsState()}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,jt.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,jt.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,jt.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,jt.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new tt.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,ht.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe((0,Ht.O)(null),(0,ht.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Ut.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const i=t.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&ts.deselect()),Array.isArray(t))t.forEach(s=>this._selectValue(s,i)),this._sortValues();else{const s=this._selectValue(t,i);s&&i&&this._keyManager.setActiveItem(s)}}_selectValue(t,i=!0){const s=this.chips.find(r=>null!=r.value&&this._compareWith(r.value,t));return s&&(i?s.selectViaInteraction():s.select(),this._selectionModel.select(s)),s}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(i=>{i!==t&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let i=null;i=Array.isArray(this.selected)?this.selected.map(s=>s.value):this.selected?this.selected.value:t,this._value=i,this.change.emit(new Wm(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const i=t.chip,s=this.chips.toArray().indexOf(t.chip);this._isValidIndex(s)&&i._hasFocus&&(this._lastDestroyedChipIndex=s)})}_originatesFromChip(t){let i=t.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Xt.Is,8),o.Y36(T.F,8),o.Y36(T.sg,8),o.Y36(F.rD),o.Y36(T.a5,10))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(t,i,s){if(1&t&&o.Suo(s,No,5),2&t){let r;o.iGM(r=o.CRH())&&(i.chips=r)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(t,i){1&t&&o.NdJ("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(r){return i._keydown(r)}),2&t&&(o.Ikx("id",i._uid),o.uIk("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),o.ekj("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[o._Bn([{provide:A.Eo,useExisting:n}]),o.qOj],ngContentSelectors:Nm,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,i){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),$m=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({providers:[F.rD,{provide:lc,useValue:{separatorKeyCodes:[N.K5]}}],imports:[F.BQ]}),n})();var cc=S(4254),ut=S(1324),ti=S(7234),Km=S(3782),Ho=S(8505),Ma=S(7206),Gn=S(4362),jr=S(9118),Uo=S(5122),dc=S(2289),Ta=S(4389),hc=S(4865),Re=S(7775),Dt=(()=>{return(n=Dt||(Dt={})).UPDATE="Update",n.ADD="Add",n.DELETE="Delete",n.CANCEL="Cancel",Dt;var n})();function Xm(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.deleteApplication())}),o._uU(1," Delete "),o.qZA()}}let tu=(()=>{class n{constructor(t,i){this.dialogRef=t,this.data=i,this.DialogAction=Dt,this.title="Add Application",this.buttonText="Add",this.action=i.action,this.app=Object.assign({},i.content),this.action===Dt.UPDATE&&(this.title="Modify Application",this.buttonText="Update")}doAction(){this.dialogRef.close({event:this.action,data:this.app})}deleteApplication(){this.dialogRef.close({event:Dt.DELETE,data:this.app})}closeDialog(){this.dialogRef.close({event:Dt.CANCEL})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.so),o.Y36(W.WI,8))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dialog-content-example-dialog"]],decls:31,vars:9,consts:[["mat-dialog-title",""],[1,"mat-typography"],[1,"w3-row"],[1,"w3-col","l6","s12","m6"],["appearance","fill",1,"full-width"],["disabled","","matInput","",3,"ngModel","ngModelChange"],[1,"full-width","input"],["matInput","",3,"ngModel","disabled","ngModelChange"],[1,"w3-col","l6","s12","m6","input"],[1,"full-width"],[1,"w3-col","l12","s12","m12"],["cols","2","matInput","",3,"ngModel","ngModelChange"],[1,"alignRight"],["color","primary","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",3,"click"]],template:function(t,i){1&t&&(o.TgZ(0,"h2",0),o._uU(1),o.qZA(),o.TgZ(2,"mat-dialog-content",1)(3,"div",2)(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),o._uU(7,"Application ID"),o.qZA(),o.TgZ(8,"input",5),o.NdJ("ngModelChange",function(r){return i.app._id.$oid=r}),o.qZA()()()(),o.TgZ(9,"div",3)(10,"mat-form-field",6)(11,"mat-label"),o._uU(12,"Application Name"),o.qZA(),o.TgZ(13,"input",7),o.NdJ("ngModelChange",function(r){return i.app.application_name=r}),o.qZA()()(),o.TgZ(14,"div",8)(15,"mat-form-field",9)(16,"mat-label"),o._uU(17,"Application Namespace"),o.qZA(),o.TgZ(18,"input",7),o.NdJ("ngModelChange",function(r){return i.app.application_namespace=r}),o.qZA()()(),o.TgZ(19,"div",10)(20,"mat-form-field",9)(21,"mat-label"),o._uU(22,"Description"),o.qZA(),o.TgZ(23,"textarea",11),o.NdJ("ngModelChange",function(r){return i.app.application_desc=r}),o._uU(24," "),o.qZA()()()(),o.TgZ(25,"mat-dialog-actions",12)(26,"button",13),o.NdJ("click",function(){return i.doAction()}),o._uU(27),o.qZA(),o.YNc(28,Xm,2,0,"button",14),o.TgZ(29,"button",15),o.NdJ("click",function(){return i.closeDialog()}),o._uU(30,"Cancel"),o.qZA()()),2&t&&(o.xp6(1),o.Oqu(i.title),o.xp6(7),o.Q6J("ngModel",i.app._id.$oid),o.xp6(5),o.Q6J("ngModel",i.app.application_name)("disabled",i.action===i.DialogAction.UPDATE),o.xp6(5),o.Q6J("ngModel",i.app.application_namespace)("disabled",i.action===i.DialogAction.UPDATE),o.xp6(5),o.Q6J("ngModel",i.app.application_desc),o.xp6(4),o.Oqu(i.buttonText),o.xp6(1),o.Q6J("ngIf",i.action===i.DialogAction.UPDATE))},dependencies:[B.O5,T.Fj,T.JJ,T.On,et.lW,gt.Nt,A.KE,A.hX,W.uh,W.xY,W.H8],encapsulation:2}),n})();var Vn=S(4017);function eu(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",7)(1,"mat-radio-group",8),o.NdJ("change",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.handleChange())})("ngModelChange",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r.activeAppId=s)}),o.TgZ(2,"mat-radio-button",9)(3,"span",10),o._uU(4),o.qZA()()(),o.TgZ(5,"button",11),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw();return o.KtG(c.openDialogApp(c.DialogAction.UPDATE,r))}),o.TgZ(6,"mat-icon"),o._uU(7,"settings"),o.qZA()()()}if(2&n){const t=e.$implicit,i=o.oxw();o.xp6(1),o.Q6J("ngModel",i.activeAppId),o.xp6(1),o.Q6J("value",t._id),o.xp6(2),o.Oqu(t.application_name)}}let iu=(()=>{class n{constructor(t,i,s,r,c,d,m,u){this.observer=t,this.dialog=i,this.api=s,this.userService=r,this.router=c,this.authService=d,this.notifyService=m,this.store=u,this.DialogAction=Dt,this.apps$=this.store.pipe((0,vt.Ys)(Ma.A))}ngOnInit(){this.store.dispatch((0,ut.i6)({id:this.userID})),this.apps$.subscribe(t=>{const i=t.filter(s=>s._id.$oid===sessionStorage.getItem("id"))[0];i&&(this.store.dispatch((0,ut.zl)({application:i})),this.activeAppId=i._id)})}openDialogApp(t,i){t===Dt.ADD&&(i={_id:{$oid:""},application_name:"",application_namespace:"",application_desc:""}),this.dialog.open(tu,{data:{content:i,action:t}}).afterClosed().subscribe(c=>{c.event===Dt.ADD?this.store.dispatch((0,ut.s0)({application:c.data})):c.event===Dt.UPDATE?this.store.dispatch((0,ut.li)({application:c.data})):c.event===Dt.DELETE&&this.store.dispatch((0,ut.rw)({application:c.data})),this.store.dispatch((0,ut.i6)({id:this.userID}))})}handleChange(){sessionStorage.setItem("id",this.activeAppId.$oid),this.apps$.subscribe(t=>{const i=t.filter(s=>s._id.$oid===this.activeAppId.$oid)[0];this.store.dispatch((0,ut.zl)({application:i})),this.router.navigate(["/control"]).then()})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(dc.Yg),o.Y36(W.uw),o.Y36(Re.s),o.Y36(Ta.K),o.Y36(Q.F0),o.Y36(hc.e),o.Y36(Vn.g),o.Y36(vt.yh))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-app-list"]],inputs:{userID:"userID"},decls:13,vars:4,consts:[[1,"sub-menu"],["id","applicationTitle"],[1,"application-panel",3,"expanded"],[1,"panel-title"],["class","items",4,"ngFor","ngForOf"],[1,"inline-list"],["mat-flat-button","",1,"navButton",3,"click"],[1,"items"],["routerLink","/control",1,"radio-group",3,"ngModel","change","ngModelChange"],[1,"radioButton",3,"value"],[1,"sidenav-text"],["mat-icon-button","",1,"sidenav-text",3,"click"]],template:function(t,i){1&t&&(o.TgZ(0,"ul",0)(1,"div",1)(2,"mat-expansion-panel",2)(3,"mat-expansion-panel-header")(4,"mat-panel-title",3),o._uU(5," My Applications "),o.qZA()(),o.YNc(6,eu,8,3,"div",4),o.ALo(7,"async"),o.qZA()(),o.TgZ(8,"mat-list",5)(9,"button",6),o.NdJ("click",function(){return i.openDialogApp(i.DialogAction.ADD,void 0)}),o._uU(10," Add Application "),o.TgZ(11,"mat-icon"),o._uU(12,"add_circle"),o.qZA()()()()),2&t&&(o.xp6(2),o.Q6J("expanded",!0),o.xp6(4),o.Q6J("ngForOf",o.lcZ(7,2,i.apps$)))},dependencies:[B.sg,Q.rH,T.JJ,T.On,et.lW,et.RK,le.Hw,Pn,An,Hi,ze,at,Lm,B.Ov],styles:[".appSelectLable[_ngcontent-%COMP%]{color:#fff}mat-list-item[_ngcontent-%COMP%]{position:relative;list-style:none;transition:all .4s ease}mat-list-item[_ngcontent-%COMP%] .icon-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}mat-list-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:50px;min-width:78px;text-align:center;line-height:50px;color:#fff;font-size:20px;transition:all .3s ease}mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none}mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .link_name[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#fff}.sub-menu[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{color:#fff;font-size:15px;padding:5px 0;white-space:nowrap;opacity:.6;transition:all .3s ease}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:1}.panel-title[_ngcontent-%COMP%]{color:#fff;align-items:center}.items[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.sidenav-text[_ngcontent-%COMP%]{color:#fff}.nav-links[_ngcontent-%COMP%]{padding:0}.application-panel[_ngcontent-%COMP%]{box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;background-color:var(--primary-background_sidenav)}.mat-radio-button[_ngcontent-%COMP%], .mdc-radio__outer-circle[_ngcontent-%COMP%]{border-color:#fff!important}.radio-group[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column}.radioButton[_ngcontent-%COMP%]{margin:5px 0}","mat-toolbar[_ngcontent-%COMP%]{color:#fff;justify-content:space-between;background-color:var(--primary-background)}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:250px;border-right:none;background:var(--primary-background-sidenav);color:#fff;border-radius:5px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{text-align:center;height:calc(100vh - 98px);border-radius:10px;margin:16px 16px 16px 32px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px);flex:1}mat-card-title[_ngcontent-%COMP%]{background-color:var(--primary-background);padding:16px;border-radius:4px;color:#fff}.mat-mdc-unelevated-button[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{background-color:var(--primary-background_sidenav)}mat-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.serviceCard[_ngcontent-%COMP%]{height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.mat-radio-outer-circle[_ngcontent-%COMP%]{border-color:#fff}mat-list-item[_ngcontent-%COMP%]{position:relative;list-style:none;transition:all .4s ease}mat-list-item[_ngcontent-%COMP%]:hover{background:#3e4e57}mat-list-item[_ngcontent-%COMP%] .icon-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}mat-list-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:50px;min-width:78px;text-align:center;line-height:50px;color:#fff;font-size:20px;transition:all .3s ease}mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none}mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .link_name[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#fff}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%]{padding:6px 6px 14px 40px;margin-top:-10px}mat-list-item.showMenu[_ngcontent-%COMP%] i.bx-chevron-down[_ngcontent-%COMP%]{transform:rotate(-180deg)}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{color:#fff;font-size:15px;padding:5px 0;white-space:nowrap;opacity:.6;transition:all .3s ease}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:1}mat-icon[_ngcontent-%COMP%] #toolBar[_ngcontent-%COMP%]{cursor:pointer}mat-card[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;margin:8px;left:64px}.map-container[_ngcontent-%COMP%]{align-content:center;height:140px;width:250px;inset:0}.map-frame[_ngcontent-%COMP%]{border:2px solid black;height:100%}#map[_ngcontent-%COMP%]{top:0;bottom:0;height:100%;width:100%}.noinstance[_ngcontent-%COMP%]{text-align:center;color:#d3d3d3;font-size:large}.favicon[_ngcontent-%COMP%]{height:64px}.panel-title[_ngcontent-%COMP%]{color:#fff;align-items:center}.items[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.sidenav-text[_ngcontent-%COMP%]{color:#fff}.nav-links[_ngcontent-%COMP%]{padding:0}.nav-item[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:30px;background-color:var(--primary-background_sidenav)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#888}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#555}.navButton[_ngcontent-%COMP%]{width:90%;background:transparent!important}.navButton[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff!important}.sidenav[_ngcontent-%COMP%]{background-color:var(--primary-background_sidenav)}.welcome[_ngcontent-%COMP%]{-webkit-user-select:None;user-select:None;margin-top:10vh;text-align:center}.welcome[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .welcome[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#d3d3d3;font-size:xx-large;padding:20px 0}.welcome[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30%;filter:grayscale(70%)}"]}),n})();function nu(n,e){if(1&n&&(o.TgZ(0,"h4")(1,"small"),o._uU(2),o.qZA()()),2&n){const t=e.$implicit;o.xp6(2),o.hij("",t.name,"\xa0\xa0")}}function ou(n,e){1&n&&(o.TgZ(0,"button",22)(1,"mat-icon"),o._uU(2,"people"),o.qZA(),o._uU(3," Organization Management "),o.qZA())}function su(n,e){1&n&&(o.TgZ(0,"button",23)(1,"mat-icon"),o._uU(2,"manage_accounts"),o.qZA(),o._uU(3," User Management "),o.qZA())}function au(n,e){1&n&&(o.TgZ(0,"button",24)(1,"mat-icon"),o._uU(2,"settings"),o.qZA(),o._uU(3," Settings "),o.qZA())}function ru(n,e){1&n&&(o.TgZ(0,"div",25)(1,"h1"),o._uU(2,"Welcome to Oakestra!"),o.qZA(),o._UZ(3,"img",26),o.TgZ(4,"h3"),o._uU(5,"Create or select an application to get started."),o.qZA()())}let lu=(()=>{class n{constructor(t,i,s,r,c,d){this.observer=t,this.userService=i,this.authService=s,this.store=r,this.api=c,this.router=d,this.user$=this.store.pipe((0,vt.Ys)(Gn.H)),this.org$=this.store.pipe((0,vt.Ys)(jr.m)),this.userID="",this.isAdmin=!1,this.isOrgaProvider=!1,this.showWelcome=!0,this.appSelected=!1,this.appView=!1,this.events=[],this.opened=!0}ngOnInit(){this.store.dispatch((0,ut.PR)({name:this.userService.getUsername()})),this.user$.subscribe(t=>{t&&(this.userID=t._id.$oid)}),this.updatePermissions(),this.isAdmin&&(this.store.dispatch((0,ut.Xu)()),this.org$.subscribe(t=>console.log(t))),this.isOrgaProvider=this.userService.hasRole(Uo.u.ORGANIZATION_ADMIN),this.router.events.pipe((0,Ho.b)(()=>{this.showWelcome=!1,this.appView=!1}),(0,qt.h)(t=>t instanceof Q.Xs&&"/control"===t.routerEvent.url)).subscribe(()=>{this.appView=!0,this.showWelcome=this.appSelected}),this.store.select(Ma.R).pipe((0,Ho.b)(()=>{this.showWelcome=!1,this.appSelected=!1}),(0,qt.h)(t=>null===t)).subscribe(()=>{this.appSelected=!0,this.showWelcome=this.appView})}ngAfterViewInit(){this.observer.observe(["(max-width: 800px)"]).pipe(fn(1)).subscribe(t=>{t.matches?(this.sidenav.mode="over",this.sidenav.close()):(this.sidenav.mode="side",this.sidenav.open())})}updatePermissions(){this.isAdmin=this.userService.hasRole(Uo.u.ADMIN)}onToolbarToggle(){this.opened=!this.opened}logout(){this.authService.clear(),this.userService.logout()}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(dc.Yg),o.Y36(Ta.K),o.Y36(hc.e),o.Y36(vt.yh),o.Y36(Re.s),o.Y36(Q.F0))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-navbar"]],viewQuery:function(t,i){if(1&t&&o.Gf(he,5),2&t){let s;o.iGM(s=o.CRH())&&(i.sidenav=s.first)}},decls:45,vars:10,consts:[[1,"mat-elevation-z8"],["id","toolBar",3,"click"],[1,"sidebar"],["mat-button","","routerLink","/control",1,"navButton"],["src","../../../assets/iconfont/favicon.png","alt","Oakestra",1,"favicon"],[1,"spacer"],[4,"ngIf"],["id","userSetting","mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","/control/profile"],["mat-menu-item","","routerLink","organization",4,"ngIf"],["mat-menu-item","","routerLink","users",4,"ngIf"],["mat-menu-item","","routerLink","settings",4,"ngIf"],["mat-menu-item","",3,"click"],["mode","side",1,"mat-elevation-z8","sidenav",3,"opened","openedChange"],[1,"nav-links"],[1,"nav-item"],["mat-flat-button","","routerLink","/control",1,"navButton"],[3,"userID"],["mat-flat-button","","routerLink","/control/help",1,"navButton"],[1,"content-nothing-selected"],["class","welcome",4,"ngIf"],["mat-menu-item","","routerLink","organization"],["mat-menu-item","","routerLink","users"],["mat-menu-item","","routerLink","settings"],[1,"welcome"],["src","assets/img/color-min.png"]],template:function(t,i){if(1&t&&(o.TgZ(0,"mat-toolbar",0)(1,"mat-icon",1),o.NdJ("click",function(){return i.onToolbarToggle()}),o._uU(2,"menu"),o.qZA(),o.TgZ(3,"div",2)(4,"button",3),o._UZ(5,"img",4),o.qZA()(),o._UZ(6,"span",5),o.YNc(7,nu,3,1,"h4",6),o.ALo(8,"async"),o.TgZ(9,"button",7)(10,"mat-icon"),o._uU(11,"person"),o.qZA()(),o.TgZ(12,"mat-menu",null,8)(14,"button",9)(15,"mat-icon"),o._uU(16,"person"),o.qZA(),o._uU(17," Profile "),o.qZA(),o.YNc(18,ou,4,0,"button",10),o.YNc(19,su,4,0,"button",11),o.YNc(20,au,4,0,"button",12),o.TgZ(21,"button",13),o.NdJ("click",function(){return i.logout()}),o.TgZ(22,"mat-icon"),o._uU(23,"logout"),o.qZA(),o._uU(24," Logout "),o.qZA()()(),o.TgZ(25,"mat-sidenav-container")(26,"mat-sidenav",14),o.NdJ("openedChange",function(r){return i.opened=r}),o.TgZ(27,"ul",15)(28,"div",16)(29,"button",17)(30,"mat-icon"),o._uU(31,"grid_view"),o.qZA(),o._uU(32," Dashboard "),o.qZA()(),o._UZ(33,"hr"),o.TgZ(34,"div",16),o._UZ(35,"app-app-list",18),o.qZA(),o.TgZ(36,"div",16)(37,"button",19)(38,"mat-icon"),o._uU(39,"help_outline"),o.qZA(),o._uU(40," Help "),o.qZA()()()(),o.TgZ(41,"mat-sidenav-content",20),o.YNc(42,ru,6,0,"div",21),o.TgZ(43,"div"),o._UZ(44,"router-outlet"),o.qZA()()()),2&t){const s=o.MAs(13);o.xp6(7),o.Q6J("ngIf",o.lcZ(8,8,i.user$)),o.xp6(2),o.Q6J("matMenuTriggerFor",s),o.xp6(9),o.Q6J("ngIf",i.isAdmin),o.xp6(1),o.Q6J("ngIf",i.isAdmin||i.isOrgaProvider),o.xp6(1),o.Q6J("ngIf",i.isAdmin),o.xp6(6),o.Q6J("opened",i.opened),o.xp6(9),o.Q6J("userID",i.userID),o.xp6(7),o.Q6J("ngIf",i.showWelcome)}},dependencies:[B.O5,Q.lC,Q.rH,xn,mt,yn,he,Y,co,et.lW,et.RK,Zs,le.Hw,iu,B.Ov],styles:["mat-toolbar[_ngcontent-%COMP%]{color:#fff;justify-content:space-between;background-color:var(--primary-background)}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:250px;border-right:none;background:var(--primary-background-sidenav);color:#fff;border-radius:5px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{text-align:center;height:calc(100vh - 98px);border-radius:10px;margin:16px 16px 16px 32px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px);flex:1}mat-card-title[_ngcontent-%COMP%]{background-color:var(--primary-background);padding:16px;border-radius:4px;color:#fff}.mat-mdc-unelevated-button[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{background-color:var(--primary-background_sidenav)}mat-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.serviceCard[_ngcontent-%COMP%]{height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.mat-radio-outer-circle[_ngcontent-%COMP%]{border-color:#fff}mat-list-item[_ngcontent-%COMP%]{position:relative;list-style:none;transition:all .4s ease}mat-list-item[_ngcontent-%COMP%]:hover{background:#3e4e57}mat-list-item[_ngcontent-%COMP%] .icon-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}mat-list-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:50px;min-width:78px;text-align:center;line-height:50px;color:#fff;font-size:20px;transition:all .3s ease}mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none}mat-list-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .link_name[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#fff}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%]{padding:6px 6px 14px 40px;margin-top:-10px}mat-list-item.showMenu[_ngcontent-%COMP%] i.bx-chevron-down[_ngcontent-%COMP%]{transform:rotate(-180deg)}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{color:#fff;font-size:15px;padding:5px 0;white-space:nowrap;opacity:.6;transition:all .3s ease}mat-list-item[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:1}mat-icon[_ngcontent-%COMP%] #toolBar[_ngcontent-%COMP%]{cursor:pointer}mat-card[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;margin:8px;left:64px}.map-container[_ngcontent-%COMP%]{align-content:center;height:140px;width:250px;inset:0}.map-frame[_ngcontent-%COMP%]{border:2px solid black;height:100%}#map[_ngcontent-%COMP%]{top:0;bottom:0;height:100%;width:100%}.noinstance[_ngcontent-%COMP%]{text-align:center;color:#d3d3d3;font-size:large}.favicon[_ngcontent-%COMP%]{height:64px}.panel-title[_ngcontent-%COMP%]{color:#fff;align-items:center}.items[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.sidenav-text[_ngcontent-%COMP%]{color:#fff}.nav-links[_ngcontent-%COMP%]{padding:0}.nav-item[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:30px;background-color:var(--primary-background_sidenav)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#888}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#555}.navButton[_ngcontent-%COMP%]{width:90%;background:transparent!important}.navButton[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff!important}.sidenav[_ngcontent-%COMP%]{background-color:var(--primary-background_sidenav)}.welcome[_ngcontent-%COMP%]{-webkit-user-select:None;user-select:None;margin-top:10vh;text-align:center}.welcome[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .welcome[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#d3d3d3;font-size:xx-large;padding:20px 0}.welcome[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30%;filter:grayscale(70%)}"]}),n})();var Sa=S(5125);let cu=(()=>{class n{static download(t){const i={element:{dynamicDownload:null}},s={microservices:[Object.assign({},this.cleanService(t))]};console.log(t);const r=t.microservice_name+".json";i.element.dynamicDownload||(i.element.dynamicDownload=document.createElement("a"));const c=i.element.dynamicDownload,d=r.indexOf(".json")>-1?"text/json":"text/plain";c.setAttribute("href",`data:${d};charset=utf-8,${encodeURIComponent(JSON.stringify(s))}`),c.setAttribute("download",r);const m=new MouseEvent("click");c.dispatchEvent(m)}static cleanService(t){var i,s,r,c,d,m,u,f,_,v,x,w,C,k,P,O,R,E,I,Z,z,U;const G={microservice_name:null!==(i=t.microservice_name)&&void 0!==i?i:null,microservice_namespace:null!==(s=t.microservice_namespace)&&void 0!==s?s:null,virtualization:null!==(r=t.virtualization)&&void 0!==r?r:null,description:null!==(c=t.description)&&void 0!==c?c:null,cmd:null!==(d=t.cmd)&&void 0!==d?d:null,memory:null!==(m=t.memory)&&void 0!==m?m:null,vcpus:null!==(u=t.vcpus)&&void 0!==u?u:null,vgpus:null!==(f=t.vgpus)&&void 0!==f?f:null,vtpus:null!==(_=t.vtpus)&&void 0!==_?_:null,bandwidth_in:null!==(v=t.bandwidth_in)&&void 0!==v?v:null,bandwidth_out:null!==(x=t.bandwidth_out)&&void 0!==x?x:null,storage:null!==(w=t.storage)&&void 0!==w?w:null,code:null!==(C=t.code)&&void 0!==C?C:null,state:null!==(k=t.state)&&void 0!==k?k:null,port:null!==(P=t.port)&&void 0!==P?P:null,addresses:null!==(O=t.addresses)&&void 0!==O?O:null,added_files:null!==(R=t.added_files)&&void 0!==R?R:null,constraints:null!==(E=t.constraints)&&void 0!==E?E:null,status:null!==(I=t.status)&&void 0!==I?I:null,connectivity:null!==(Z=t.connectivity)&&void 0!==Z?Z:null,args:null!==(z=t.args)&&void 0!==z?z:null,environment:null!==(U=t.environment)&&void 0!==U?U:null},X={};for(const[nt,dt]of Object.entries(G))null!==dt&&(X[nt]=dt);return X}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=o.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var du=S(2529),Wr=S(8407);function ei(){}const hu=(()=>{let n=0;return()=>n++})();function pt(n){return null===n||typeof n>"u"}function Tt(n){if(Array.isArray&&Array.isArray(n))return!0;const e=Object.prototype.toString.call(n);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function ct(n){return null!==n&&"[object Object]"===Object.prototype.toString.call(n)}function Ft(n){return("number"==typeof n||n instanceof Number)&&isFinite(+n)}function we(n,e){return Ft(n)?n:e}function K(n,e){return typeof n>"u"?e:n}const mc=(n,e)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100*e:+n;function Ct(n,e,t){if(n&&"function"==typeof n.call)return n.apply(t,e)}function bt(n,e,t,i){let s,r,c;if(Tt(n))if(r=n.length,i)for(s=r-1;s>=0;s--)e.call(t,n[s],s);else for(s=0;sn,x:n=>n.x,y:n=>n.y};function wi(n,e){return(pc[e]||(pc[e]=function gu(n){const e=function fu(n){const e=n.split("."),t=[];let i="";for(const s of e)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(t.push(i),i="");return t}(n);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e)))(n)}function Jr(n){return n.charAt(0).toUpperCase()+n.slice(1)}const Se=n=>typeof n<"u",yi=n=>"function"==typeof n,fc=(n,e)=>{if(n.size!==e.size)return!1;for(const t of n)if(!e.has(t))return!1;return!0},Pt=Math.PI,St=2*Pt,vu=St+Pt,Da=Number.POSITIVE_INFINITY,bu=Pt/180,Zt=Pt/2,tn=Pt/4,gc=2*Pt/3,Ci=Math.log10,Ge=Math.sign;function Go(n,e,t){return Math.abs(n-e)m&&u=Math.min(e,t)-i&&n<=Math.max(e,t)+i}function Kr(n,e,t){t=t||(c=>n[c]1;)r=s+i>>1,t(r)?s=r:i=r;return{lo:s,hi:i}}const ni=(n,e,t,i)=>Kr(n,t,i?s=>{const r=n[s][e];return rn[s][e]Kr(n,t,i=>n[i][e]>=t),wc=["push","pop","shift","splice","unshift"];function yc(n,e){const t=n._chartjs;if(!t)return;const i=t.listeners,s=i.indexOf(e);-1!==s&&i.splice(s,1),!(i.length>0)&&(wc.forEach(r=>{delete n[r]}),delete n._chartjs)}function Cc(n){const e=new Set;let t,i;for(t=0,i=n.length;t"u"?function(n){return n()}:window.requestAnimationFrame;function Mc(n,e){let t=!1;return function(...i){t||(t=!0,kc.call(window,()=>{t=!1,n.apply(e,i)}))}}const Xr=n=>"start"===n?"left":"end"===n?"right":"center",ne=(n,e,t)=>"start"===n?e:"end"===n?t:(e+t)/2;const Oa=n=>0===n||1===n,Pc=(n,e,t)=>-Math.pow(2,10*(n-=1))*Math.sin((n-e)*St/t),Ac=(n,e,t)=>Math.pow(2,-10*n)*Math.sin((n-e)*St/t)+1,Ia={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>1-Math.cos(n*Zt),easeOutSine:n=>Math.sin(n*Zt),easeInOutSine:n=>-.5*(Math.cos(Pt*n)-1),easeInExpo:n=>0===n?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>1===n?1:1-Math.pow(2,-10*n),easeInOutExpo:n=>Oa(n)?n:n<.5?.5*Math.pow(2,10*(2*n-1)):.5*(2-Math.pow(2,-10*(2*n-1))),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>Oa(n)?n:Pc(n,.075,.3),easeOutElastic:n=>Oa(n)?n:Ac(n,.075,.3),easeInOutElastic:n=>Oa(n)?n:n<.5?.5*Pc(2*n,.1125,.45):.5+.5*Ac(2*n-1,.1125,.45),easeInBack:n=>n*n*(2.70158*n-1.70158),easeOutBack:n=>(n-=1)*n*(2.70158*n+1.70158)+1,easeInOutBack(n){let e=1.70158;return(n/=.5)<1?n*n*((1+(e*=1.525))*n-e)*.5:.5*((n-=2)*n*((1+(e*=1.525))*n+e)+2)},easeInBounce:n=>1-Ia.easeOutBounce(1-n),easeOutBounce:n=>n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,easeInOutBounce:n=>n<.5?.5*Ia.easeInBounce(2*n):.5*Ia.easeOutBounce(2*n-1)+.5};var Dc=Ia;function jo(n){return n+.5|0}const ki=(n,e,t)=>Math.max(Math.min(n,t),e);function Wo(n){return ki(jo(2.55*n),0,255)}function Mi(n){return ki(jo(255*n),0,255)}function oi(n){return ki(jo(n/2.55)/100,0,1)}function Oc(n){return ki(jo(100*n),0,100)}const Pe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},tl=[..."0123456789ABCDEF"],Au=n=>tl[15&n],Du=n=>tl[(240&n)>>4]+tl[15&n],La=n=>(240&n)>>4==(15&n);const Eu=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ic(n,e,t){const i=e*Math.min(t,1-t),s=(r,c=(r+n/30)%12)=>t-i*Math.max(Math.min(c-3,9-c,1),-1);return[s(0),s(8),s(4)]}function Fu(n,e,t){const i=(s,r=(s+n/60)%6)=>t-t*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Zu(n,e,t){const i=Ic(n,1,.5);let s;for(e+t>1&&(s=1/(e+t),e*=s,t*=s),s=0;s<3;s++)i[s]*=1-e-t,i[s]+=e;return i}function el(n){const t=n.r/255,i=n.g/255,s=n.b/255,r=Math.max(t,i,s),c=Math.min(t,i,s),d=(r+c)/2;let m,u,f;return r!==c&&(f=r-c,u=d>.5?f/(2-r-c):f/(r+c),m=function zu(n,e,t,i,s){return n===s?(e-t)/i+(en<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055,Wn=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function Ea(n,e,t){if(n){let i=el(n);i[e]=Math.max(0,Math.min(i[e]+i[e]*t,0===e?360:1)),i=nl(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function Fc(n,e){return n&&Object.assign(e||{},n)}function Zc(n){var e={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(e={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(e.a=Mi(n[3]))):(e=Fc(n,{r:0,g:0,b:0,a:1})).a=Mi(e.a),e}function Qu(n){return"r"===n.charAt(0)?function ju(n){const e=Vu.exec(n);let i,s,r,t=255;if(e){if(e[7]!==i){const c=+e[7];t=e[8]?Wo(c):ki(255*c,0,255)}return i=+e[1],s=+e[3],r=+e[5],i=255&(e[2]?Wo(i):ki(i,0,255)),s=255&(e[4]?Wo(s):ki(s,0,255)),r=255&(e[6]?Wo(r):ki(r,0,255)),{r:i,g:s,b:r,a:t}}}(n):function Hu(n){const e=Eu.exec(n);let i,t=255;if(!e)return;e[5]!==i&&(t=e[6]?Wo(+e[5]):Mi(+e[5]));const s=Lc(+e[2]),r=+e[3]/100,c=+e[4]/100;return i="hwb"===e[1]?function Bu(n,e,t){return il(Zu,n,e,t)}(s,r,c):"hsv"===e[1]?function Nu(n,e,t){return il(Fu,n,e,t)}(s,r,c):nl(s,r,c),{r:i[0],g:i[1],b:i[2],a:t}}(n)}class Fa{constructor(e){if(e instanceof Fa)return e;const t=typeof e;let i;"object"===t?i=Zc(e):"string"===t&&(i=function Iu(n){var t,e=n.length;return"#"===n[0]&&(4===e||5===e?t={r:255&17*Pe[n[1]],g:255&17*Pe[n[2]],b:255&17*Pe[n[3]],a:5===e?17*Pe[n[4]]:255}:(7===e||9===e)&&(t={r:Pe[n[1]]<<4|Pe[n[2]],g:Pe[n[3]]<<4|Pe[n[4]],b:Pe[n[5]]<<4|Pe[n[6]],a:9===e?Pe[n[7]]<<4|Pe[n[8]]:255})),t}(e)||function Gu(n){Ra||(Ra=function Yu(){const n={},e=Object.keys(Ec),t=Object.keys(Rc);let i,s,r,c,d;for(i=0;i>16&255,r>>8&255,255&r]}return n}(),Ra.transparent=[0,0,0,0]);const e=Ra[n.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(e)||Qu(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=Fc(this._rgb);return e&&(e.a=oi(e.a)),e}set rgb(e){this._rgb=Zc(e)}rgbString(){return this._valid?function Wu(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${oi(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}(this._rgb):void 0}hexString(){return this._valid?function Ru(n){var e=(n=>La(n.r)&&La(n.g)&&La(n.b)&&La(n.a))(n)?Au:Du;return n?"#"+e(n.r)+e(n.g)+e(n.b)+((n,e)=>n<255?e(n):"")(n.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function qu(n){if(!n)return;const e=el(n),t=e[0],i=Oc(e[1]),s=Oc(e[2]);return n.a<255?`hsla(${t}, ${i}%, ${s}%, ${oi(n.a)})`:`hsl(${t}, ${i}%, ${s}%)`}(this._rgb):void 0}mix(e,t){if(e){const i=this.rgb,s=e.rgb;let r;const c=t===r?.5:t,d=2*c-1,m=i.a-s.a,u=((d*m==-1?d:(d+m)/(1+d*m))+1)/2;r=1-u,i.r=255&u*i.r+r*s.r+.5,i.g=255&u*i.g+r*s.g+.5,i.b=255&u*i.b+r*s.b+.5,i.a=c*i.a+(1-c)*s.a,this.rgb=i}return this}interpolate(e,t){return e&&(this._rgb=function Ju(n,e,t){const i=Wn(oi(n.r)),s=Wn(oi(n.g)),r=Wn(oi(n.b));return{r:Mi(ol(i+t*(Wn(oi(e.r))-i))),g:Mi(ol(s+t*(Wn(oi(e.g))-s))),b:Mi(ol(r+t*(Wn(oi(e.b))-r))),a:n.a+t*(e.a-n.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Fa(this.rgb)}alpha(e){return this._rgb.a=Mi(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=jo(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ea(this._rgb,2,e),this}darken(e){return Ea(this._rgb,2,-e),this}saturate(e){return Ea(this._rgb,1,e),this}desaturate(e){return Ea(this._rgb,1,-e),this}rotate(e){return function Uu(n,e){var t=el(n);t[0]=Lc(t[0]+e),t=nl(t),n.r=t[0],n.g=t[1],n.b=t[2]}(this._rgb,e),this}}function zc(n){return new Fa(n)}function Bc(n){if(n&&"object"==typeof n){const e=n.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Nc(n){return Bc(n)?n:zc(n)}function sl(n){return Bc(n)?n:zc(n).saturate(.5).darken(.1).hexString()}const $u=["x","y","borderWidth","radius","tension"],Ku=["color","borderColor","backgroundColor"],Hc=new Map;function Jo(n,e,t){return function ep(n,e){e=e||{};const t=n+JSON.stringify(e);let i=Hc.get(t);return i||(i=new Intl.NumberFormat(n,e),Hc.set(t,i)),i}(e,t).format(n)}const Uc={values:n=>Tt(n)?n:""+n,numeric(n,e,t){if(0===n)return"0";const i=this.chart.options.locale;let s,r=n;if(t.length>1){const u=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(u<1e-4||u>1e15)&&(s="scientific"),r=function ip(n,e){let t=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(t)>=1&&n!==Math.floor(n)&&(t=n-Math.floor(n)),t}(n,t)}const c=Ci(Math.abs(r)),d=Math.max(Math.min(-1*Math.floor(c),20),0),m={notation:s,minimumFractionDigits:d,maximumFractionDigits:d};return Object.assign(m,this.options.ticks.format),Jo(n,i,m)},logarithmic(n,e,t){if(0===n)return"0";const i=t[e].significand||n/Math.pow(10,Math.floor(Ci(n)));return[1,2,3,5,10,15].includes(i)||e>.8*t.length?Uc.numeric.call(this,n,e,t):""}};var Za={formatters:Uc};const en=Object.create(null),al=Object.create(null);function Qo(n,e){if(!e)return n;const t=e.split(".");for(let i=0,s=t.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>sl(s.backgroundColor),this.hoverBorderColor=(i,s)=>sl(s.borderColor),this.hoverColor=(i,s)=>sl(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return rl(this,e,t)}get(e){return Qo(this,e)}describe(e,t){return rl(al,e,t)}override(e,t){return rl(en,e,t)}route(e,t,i,s){const r=Qo(this,e),c=Qo(this,i),d="_"+t;Object.defineProperties(r,{[d]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const m=this[d],u=c[s];return ct(m)?Object.assign({},u,m):K(m,u)},set(m){this[d]=m}}})}apply(e){e.forEach(t=>t(this))}}var Bt=new op({_scriptable:n=>!n.startsWith("on"),_indexable:n=>"events"!==n,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function Xu(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),n.set("animations",{colors:{type:"color",properties:Ku},numbers:{type:"number",properties:$u}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function tp(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function np(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Za.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function za(n,e,t,i,s){let r=e[s];return r||(r=e[s]=n.measureText(s).width,t.push(s)),r>i&&(i=r),i}function nn(n,e,t){const i=n.currentDevicePixelRatio,s=0!==t?Math.max(t/2,.5):0;return Math.round((e-s)*i)/i+s}function qc(n,e){(e=e||n.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,n.width,n.height),e.restore()}function ll(n,e,t,i){Yc(n,e,t,i,null)}function Yc(n,e,t,i,s){let r,c,d,m,u,f,_,v;const x=e.pointStyle,w=e.rotation,C=e.radius;let k=(w||0)*bu;if(x&&"object"==typeof x&&(r=x.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return n.save(),n.translate(t,i),n.rotate(k),n.drawImage(x,-x.width/2,-x.height/2,x.width,x.height),void n.restore();if(!(isNaN(C)||C<=0)){switch(n.beginPath(),x){default:s?n.ellipse(t,i,s/2,C,0,0,St):n.arc(t,i,C,0,St),n.closePath();break;case"triangle":f=s?s/2:C,n.moveTo(t+Math.sin(k)*f,i-Math.cos(k)*C),k+=gc,n.lineTo(t+Math.sin(k)*f,i-Math.cos(k)*C),k+=gc,n.lineTo(t+Math.sin(k)*f,i-Math.cos(k)*C),n.closePath();break;case"rectRounded":u=.516*C,m=C-u,c=Math.cos(k+tn)*m,_=Math.cos(k+tn)*(s?s/2-u:m),d=Math.sin(k+tn)*m,v=Math.sin(k+tn)*(s?s/2-u:m),n.arc(t-_,i-d,u,k-Pt,k-Zt),n.arc(t+v,i-c,u,k-Zt,k),n.arc(t+_,i+d,u,k,k+Zt),n.arc(t-v,i+c,u,k+Zt,k+Pt),n.closePath();break;case"rect":if(!w){m=Math.SQRT1_2*C,f=s?s/2:m,n.rect(t-f,i-m,2*f,2*m);break}k+=tn;case"rectRot":_=Math.cos(k)*(s?s/2:C),c=Math.cos(k)*C,d=Math.sin(k)*C,v=Math.sin(k)*(s?s/2:C),n.moveTo(t-_,i-d),n.lineTo(t+v,i-c),n.lineTo(t+_,i+d),n.lineTo(t-v,i+c),n.closePath();break;case"crossRot":k+=tn;case"cross":_=Math.cos(k)*(s?s/2:C),c=Math.cos(k)*C,d=Math.sin(k)*C,v=Math.sin(k)*(s?s/2:C),n.moveTo(t-_,i-d),n.lineTo(t+_,i+d),n.moveTo(t+v,i-c),n.lineTo(t-v,i+c);break;case"star":_=Math.cos(k)*(s?s/2:C),c=Math.cos(k)*C,d=Math.sin(k)*C,v=Math.sin(k)*(s?s/2:C),n.moveTo(t-_,i-d),n.lineTo(t+_,i+d),n.moveTo(t+v,i-c),n.lineTo(t-v,i+c),k+=tn,_=Math.cos(k)*(s?s/2:C),c=Math.cos(k)*C,d=Math.sin(k)*C,v=Math.sin(k)*(s?s/2:C),n.moveTo(t-_,i-d),n.lineTo(t+_,i+d),n.moveTo(t+v,i-c),n.lineTo(t-v,i+c);break;case"line":c=s?s/2:Math.cos(k)*C,d=Math.sin(k)*C,n.moveTo(t-c,i-d),n.lineTo(t+c,i+d);break;case"dash":n.moveTo(t,i),n.lineTo(t+Math.cos(k)*(s?s/2:C),i+Math.sin(k)*C)}n.fill(),e.borderWidth>0&&n.stroke()}}function $o(n,e,t){return t=t||.5,!e||n&&n.x>e.left-t&&n.xe.top-t&&n.y0&&""!==r.strokeColor;let m,u;for(n.save(),n.font=s.string,function cp(n,e){e.translation&&n.translate(e.translation[0],e.translation[1]),pt(e.rotation)||n.rotate(e.rotation),e.color&&(n.fillStyle=e.color),e.textAlign&&(n.textAlign=e.textAlign),e.textBaseline&&(n.textBaseline=e.textBaseline)}(n,r),m=0;m+n||0;function cl(n,e){const t={},i=ct(e),s=i?Object.keys(e):e,r=ct(n)?i?c=>K(n[c],n[e[c]]):c=>n[c]:()=>n;for(const c of s)t[c]=fp(r(c));return t}function Gc(n){return cl(n,{top:"y",right:"x",bottom:"y",left:"x"})}function sn(n){return cl(n,["topLeft","topRight","bottomLeft","bottomRight"])}function oe(n){const e=Gc(n);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Vt(n,e){let t=K((n=n||{}).size,(e=e||Bt.font).size);"string"==typeof t&&(t=parseInt(t,10));let i=K(n.style,e.style);i&&!(""+i).match(up)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:K(n.family,e.family),lineHeight:pp(K(n.lineHeight,e.lineHeight),t),size:t,style:i,weight:K(n.weight,e.weight),string:""};return s.string=function sp(n){return!n||pt(n.size)||pt(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}(s),s}function Xo(n,e,t,i){let r,c,d,s=!0;for(r=0,c=n.length;rn[0])){Se(i)||(i=Qc("_fallback",n));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:t,_fallback:i,_getTarget:s,override:c=>dl([c,...n],e,t,i)};return new Proxy(r,{deleteProperty:(c,d)=>(delete c[d],delete c._keys,delete n[0][d],!0),get:(c,d)=>jc(c,d,()=>function kp(n,e,t,i){let s;for(const r of e)if(s=Qc(_p(r,n),t),Se(s))return hl(n,s)?ml(t,i,n,s):s}(d,e,n,c)),getOwnPropertyDescriptor:(c,d)=>Reflect.getOwnPropertyDescriptor(c._scopes[0],d),getPrototypeOf:()=>Reflect.getPrototypeOf(n[0]),has:(c,d)=>$c(c).includes(d),ownKeys:c=>$c(c),set(c,d,m){const u=c._storage||(c._storage=s());return c[d]=u[d]=m,delete c._keys,!0}})}function Jn(n,e,t,i){const s={_cacheable:!1,_proxy:n,_context:e,_subProxy:t,_stack:new Set,_descriptors:Vc(n,i),setContext:r=>Jn(n,r,t,i),override:r=>Jn(n.override(r),e,t,i)};return new Proxy(s,{deleteProperty:(r,c)=>(delete r[c],delete n[c],!0),get:(r,c,d)=>jc(r,c,()=>function vp(n,e,t){const{_proxy:i,_context:s,_subProxy:r,_descriptors:c}=n;let d=i[e];return yi(d)&&c.isScriptable(e)&&(d=function bp(n,e,t,i){const{_proxy:s,_context:r,_subProxy:c,_stack:d}=t;if(d.has(n))throw new Error("Recursion detected: "+Array.from(d).join("->")+"->"+n);return d.add(n),e=e(r,c||i),d.delete(n),hl(n,e)&&(e=ml(s._scopes,s,n,e)),e}(e,d,n,t)),Tt(d)&&d.length&&(d=function xp(n,e,t,i){const{_proxy:s,_context:r,_subProxy:c,_descriptors:d}=t;if(Se(r.index)&&i(n))e=e[r.index%e.length];else if(ct(e[0])){const m=e,u=s._scopes.filter(f=>f!==m);e=[];for(const f of m){const _=ml(u,s,n,f);e.push(Jn(_,r,c&&c[n],d))}}return e}(e,d,n,c.isIndexable)),hl(e,d)&&(d=Jn(d,s,r&&r[e],c)),d}(r,c,d)),getOwnPropertyDescriptor:(r,c)=>r._descriptors.allKeys?Reflect.has(n,c)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,c),getPrototypeOf:()=>Reflect.getPrototypeOf(n),has:(r,c)=>Reflect.has(n,c),ownKeys:()=>Reflect.ownKeys(n),set:(r,c,d)=>(n[c]=d,delete r[c],!0)})}function Vc(n,e={scriptable:!0,indexable:!0}){const{_scriptable:t=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=n;return{allKeys:s,scriptable:t,indexable:i,isScriptable:yi(t)?t:()=>t,isIndexable:yi(i)?i:()=>i}}const _p=(n,e)=>n?n+Jr(e):e,hl=(n,e)=>ct(e)&&"adapters"!==n&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function jc(n,e,t){if(Object.prototype.hasOwnProperty.call(n,e))return n[e];const i=t();return n[e]=i,i}function Wc(n,e,t){return yi(n)?n(e,t):n}const wp=(n,e)=>!0===n?e:"string"==typeof n?wi(e,n):void 0;function yp(n,e,t,i,s){for(const r of e){const c=wp(t,r);if(c){n.add(c);const d=Wc(c._fallback,t,s);if(Se(d)&&d!==t&&d!==i)return d}else if(!1===c&&Se(i)&&t!==i)return null}return!1}function ml(n,e,t,i){const s=e._rootScopes,r=Wc(e._fallback,t,i),c=[...n,...s],d=new Set;d.add(i);let m=Jc(d,c,t,r||t,i);return!(null===m||Se(r)&&r!==t&&(m=Jc(d,c,r,m,i),null===m))&&dl(Array.from(d),[""],s,r,()=>function Cp(n,e,t){const i=n._getTarget();e in i||(i[e]={});const s=i[e];return Tt(s)&&ct(t)?t:s||{}}(e,t,i))}function Jc(n,e,t,i,s){for(;t;)t=yp(n,e,t,i,s);return t}function Qc(n,e){for(const t of e){if(!t)continue;const i=t[n];if(Se(i))return i}}function $c(n){let e=n._keys;return e||(e=n._keys=function Mp(n){const e=new Set;for(const t of n)for(const i of Object.keys(t).filter(s=>!s.startsWith("_")))e.add(i);return Array.from(e)}(n._scopes)),e}const Tp=Number.EPSILON||1e-14,Qn=(n,e)=>e"x"===n?"y":"x";function Sp(n,e,t,i){const s=n.skip?e:n,r=e,c=t.skip?e:t,d=$r(r,s),m=$r(c,r);let u=d/(d+m),f=m/(d+m);u=isNaN(u)?0:u,f=isNaN(f)?0:f;const _=i*u,v=i*f;return{previous:{x:r.x-_*(c.x-s.x),y:r.y-_*(c.y-s.y)},next:{x:r.x+v*(c.x-s.x),y:r.y+v*(c.y-s.y)}}}function Ha(n,e,t){return Math.max(Math.min(n,t),e)}function Ip(n,e,t,i,s){let r,c,d,m;if(e.spanGaps&&(n=n.filter(u=>!u.skip)),"monotone"===e.cubicInterpolationMode)!function Dp(n,e="x"){const t=Xc(e),i=n.length,s=Array(i).fill(0),r=Array(i);let c,d,m,u=Qn(n,0);for(c=0;cn.ownerDocument.defaultView.getComputedStyle(n,null),Rp=["top","right","bottom","left"];function an(n,e,t){const i={};t=t?"-"+t:"";for(let s=0;s<4;s++){const r=Rp[s];i[r]=parseFloat(n[e+"-"+r+t])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function rn(n,e){if("native"in n)return n;const{canvas:t,currentDevicePixelRatio:i}=e,s=qa(t),r="border-box"===s.boxSizing,c=an(s,"padding"),d=an(s,"border","width"),{x:m,y:u,box:f}=function Fp(n,e){const t=n.touches,i=t&&t.length?t[0]:n,{offsetX:s,offsetY:r}=i;let d,m,c=!1;if(((n,e,t)=>(n>0||e>0)&&(!t||!t.shadowRoot))(s,r,n.target))d=s,m=r;else{const u=e.getBoundingClientRect();d=i.clientX-u.left,m=i.clientY-u.top,c=!0}return{x:d,y:m,box:c}}(n,t),_=c.left+(f&&d.left),v=c.top+(f&&d.top);let{width:x,height:w}=e;return r&&(x-=c.width+d.width,w-=c.height+d.height),{x:Math.round((m-_)/x*t.width/i),y:Math.round((u-v)/w*t.height/i)}}const Ya=n=>Math.round(10*n)/10;function ed(n,e,t){const i=e||1,s=Math.floor(n.height*i),r=Math.floor(n.width*i);n.height=s/i,n.width=r/i;const c=n.canvas;return c.style&&(t||!c.style.height&&!c.style.width)&&(c.style.height=`${n.height}px`,c.style.width=`${n.width}px`),(n.currentDevicePixelRatio!==i||c.height!==s||c.width!==r)&&(n.currentDevicePixelRatio=i,c.height=s,c.width=r,n.ctx.setTransform(i,0,0,i,0,0),!0)}const Bp=function(){let n=!1;try{const e={get passive(){return n=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return n}();function id(n,e){const t=function Lp(n,e){return qa(n).getPropertyValue(e)}(n,e),i=t&&t.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ln(n,e,t,i){return{x:n.x+t*(e.x-n.x),y:n.y+t*(e.y-n.y)}}function Np(n,e,t,i){return{x:n.x+t*(e.x-n.x),y:"middle"===i?t<.5?n.y:e.y:"after"===i?t<1?n.y:e.y:t>0?e.y:n.y}}function Hp(n,e,t,i){const s={x:n.cp2x,y:n.cp2y},r={x:e.cp1x,y:e.cp1y},c=ln(n,s,t),d=ln(s,r,t),m=ln(r,e,t),u=ln(c,d,t),f=ln(d,m,t);return ln(u,f,t)}function $n(n,e,t){return n?function(n,e){return{x:t=>n+n+e-t,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,i)=>t-i,leftForLtr:(t,i)=>t-i}}(e,t):{x:n=>n,setWidth(n){},textAlign:n=>n,xPlus:(n,e)=>n+e,leftForLtr:(n,e)=>n}}function nd(n,e){let t,i;("ltr"===e||"rtl"===e)&&(t=n.canvas.style,i=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",e,"important"),n.prevTextDirection=i)}function od(n,e){void 0!==e&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",e[0],e[1]))}function sd(n){return"angle"===n?{between:Vo,compare:yu,normalize:ye}:{between:ii,compare:(e,t)=>e-t,normalize:e=>e}}function ad({start:n,end:e,count:t,loop:i,style:s}){return{start:n%t,end:e%t,loop:i&&(e-n+1)%t==0,style:s}}function rd(n,e,t){if(!t)return[n];const{property:i,start:s,end:r}=t,c=e.length,{compare:d,between:m,normalize:u}=sd(i),{start:f,end:_,loop:v,style:x}=function Yp(n,e,t){const{property:i,start:s,end:r}=t,{between:c,normalize:d}=sd(i),m=e.length;let v,x,{start:u,end:f,loop:_}=n;if(_){for(u+=m,f+=m,v=0,x=m;vd({chart:e,initial:t.initial,numSteps:c,currentStep:Math.min(i-t.start,c)}))}_refresh(){this._request||(this._running=!0,this._request=kc.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let m,c=r.length-1,d=!1;for(;c>=0;--c)m=r[c],m._active?(m._total>i.duration&&(i.duration=m._total),m.tick(e),d=!0):(r[c]=r[r.length-1],r.pop());d&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),t+=r.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);!t||(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const i=t.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var si=new Qp;const hd="transparent",$p={boolean:(n,e,t)=>t>.5?e:n,color(n,e,t){const i=Nc(n||hd),s=i.valid&&Nc(e||hd);return s&&s.valid?s.mix(i,t).hexString():e},number:(n,e,t)=>n+(e-n)*t};class Kp{constructor(e,t,i,s){const r=t[i];s=Xo([e.to,s,r,e.from]);const c=Xo([e.from,r,s]);this._active=!0,this._fn=e.fn||$p[e.type||typeof c],this._easing=Dc[e.easing]||Dc.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=c,this._to=s,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,c=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(c,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Xo([e.to,t,s,e.from]),this._from=Xo([e.from,s,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,i=this._duration,s=this._prop,r=this._from,c=this._loop,d=this._to;let m;if(this._active=r!==d&&(c||t1?2-m:m,m=this._easing(Math.min(1,Math.max(0,m))),this._target[s]=this._fn(r,d,m))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,i)=>{e.push({res:t,rej:i})})}_notify(e){const t=e?"res":"rej",i=this._promises||[];for(let s=0;s{const r=e[s];if(!ct(r))return;const c={};for(const d of t)c[d]=r[d];(Tt(r.properties)&&r.properties||[s]).forEach(d=>{(d===s||!i.has(d))&&i.set(d,c)})})}_animateOptions(e,t){const i=t.options,s=function tf(n,e){if(!e)return;let t=n.options;if(t)return t.$shared&&(n.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;n.options=e}(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&function Xp(n,e){const t=[],i=Object.keys(e);for(let s=0;s{e.options=i},()=>{}),r}_createAnimations(e,t){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),c=Object.keys(t),d=Date.now();let m;for(m=c.length-1;m>=0;--m){const u=c[m];if("$"===u.charAt(0))continue;if("options"===u){s.push(...this._animateOptions(e,t));continue}const f=t[u];let _=r[u];const v=i.get(u);if(_){if(v&&_.active()){_.update(v,f,d);continue}_.cancel()}v&&v.duration?(r[u]=_=new Kp(v,e,u,f),s.push(_)):e[u]=f}return s}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const i=this._createAnimations(e,t);return i.length?(si.add(this._chart,i),!0):void 0}}function ud(n,e){const t=n&&n.options||{},i=t.reverse,s=void 0===t.min?e:0,r=void 0===t.max?e:0;return{start:i?r:s,end:i?s:r}}function pd(n,e){const t=[],i=n._getSortedDatasetMetas(e);let s,r;for(s=0,r=i.length;s0||!t&&r<0)return s.index}return null}function vd(n,e){const{chart:t,_cachedMeta:i}=n,s=t._stacks||(t._stacks={}),{iScale:r,vScale:c,index:d}=i,m=r.axis,u=c.axis,f=function af(n,e,t){return`${n.id}.${e.id}.${t.stack||t.type}`}(r,c,i),_=e.length;let v;for(let x=0;x<_;++x){const w=e[x],{[m]:C,[u]:k}=w;v=(w._stacks||(w._stacks={}))[u]=lf(s,f,C),v[d]=k,v._top=_d(v,c,!0,i.type),v._bottom=_d(v,c,!1,i.type)}}function pl(n,e){const t=n.scales;return Object.keys(t).filter(i=>t[i].axis===e).shift()}function ts(n,e){const t=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){e=e||n._parsed;for(const s of e){const r=s._stacks;if(!r||void 0===r[i]||void 0===r[i][t])return;delete r[i][t]}}}const fl=n=>"reset"===n||"none"===n,bd=(n,e)=>e?n:Object.assign({},n);class Si{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=gd(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ts(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,i=this.getDataset(),s=(_,v,x,w)=>"x"===_?v:"r"===_?w:x,r=t.xAxisID=K(i.xAxisID,pl(e,"x")),c=t.yAxisID=K(i.yAxisID,pl(e,"y")),d=t.rAxisID=K(i.rAxisID,pl(e,"r")),m=t.indexAxis,u=t.iAxisID=s(m,r,c,d),f=t.vAxisID=s(m,c,r,d);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(c),t.rScale=this.getScaleForId(d),t.iScale=this.getScaleForId(u),t.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&yc(this._data,this),e._stacked&&ts(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),i=this._data;if(ct(t))this._data=function sf(n){const e=Object.keys(n),t=new Array(e.length);let i,s,r;for(i=0,s=e.length;i{const i="_onData"+Jr(t),s=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...r){const c=s.apply(this,r);return n._chartjs.listeners.forEach(d=>{"function"==typeof d[i]&&d[i](...r)}),c}})}))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=t._stacked;t._stacked=gd(t.vScale,t),t.stack!==i.stack&&(s=!0,ts(t),t.stack=i.stack),this._resyncElements(e),(s||r!==t._stacked)&&vd(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:c}=i,d=r.axis;let f,_,v,m=0===e&&t===s.length||i._sorted,u=e>0&&i._parsed[e-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,v=s;else{v=Tt(s[e])?this.parseArrayData(i,s,e,t):ct(s[e])?this.parseObjectData(i,s,e,t):this.parsePrimitiveData(i,s,e,t);const x=()=>null===_[d]||u&&_[d]n&&!e.hidden&&e._stacked&&{keys:pd(this.chart,!0),values:null})(t,i),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:_}=function rf(n){const{min:e,max:t,minDefined:i,maxDefined:s}=n.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?t:Number.POSITIVE_INFINITY}}(d);let v,x;function w(){x=s[v];const C=x[d.axis];return!Ft(x[e.axis])||f>C||_=0;--v)if(!w()){this.updateRangeFromParsed(u,e,x,m);break}return u}getAllParsedValues(e){const t=this._cachedMeta._parsed,i=[];let s,r,c;for(s=0,r=t.length;s=0&&ethis.getContext(i,s),_);return C.$shared&&(C.$shared=m,r[c]=Object.freeze(bd(C,m))),C}_resolveAnimations(e,t,i){const s=this.chart,r=this._cachedDataOpts,c=`animation-${t}`,d=r[c];if(d)return d;let m;if(!1!==s.options.animation){const f=this.chart.config,_=f.datasetAnimationScopeKeys(this._type,t),v=f.getOptionScopes(this.getDataset(),_);m=f.createResolver(v,this.getContext(e,i,t))}const u=new md(s,m&&m.animations);return m&&m._cacheable&&(r[c]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||fl(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const i=this.resolveDataElementOptions(e,t),s=this._sharedOptions,r=this.getSharedOptions(i),c=this.includeOptions(t,r)||r!==s;return this.updateSharedOptions(r,t,i),{sharedOptions:r,includeOptions:c}}updateElement(e,t,i,s){fl(s)?Object.assign(e,i):this._resolveAnimations(t,s).update(e,i)}updateSharedOptions(e,t,i){e&&!fl(t)&&this._resolveAnimations(void 0,t).update(e,i)}_setStyle(e,t,i,s){e.active=s;const r=this.getStyle(t,s);this._resolveAnimations(t,i,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,t,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,i=this._cachedMeta.data;for(const[d,m,u]of this._syncList)this[d](m,u);this._syncList=[];const s=i.length,r=t.length,c=Math.min(r,s);c&&this.parse(0,c),r>s?this._insertElements(s,r-s,e):r{for(u.length+=t,d=u.length-1;d>=c;d--)u[d]=u[d-t]};for(m(r),d=e;ds-r))}return n._cache.$bar}(e,n.type);let s,r,c,d,i=e._length;const m=()=>{32767===c||-32768===c||(Se(d)&&(i=Math.min(i,Math.abs(c-d)||i)),d=c)};for(s=0,r=t.length;sMath.abs(d)&&(m=d,u=c),e[t.axis]=u,e._custom={barStart:m,barEnd:u,start:s,end:r,min:c,max:d}}(n,e,t,i):e[t.axis]=t.parse(n,i),e}function wd(n,e,t,i){const s=n.iScale,r=n.vScale,c=s.getLabels(),d=s===r,m=[];let u,f,_,v;for(u=t,f=t+i;un.x,t="left",i="right"):(e=n.basem.controller.options.grouped),r=i.options.stacked,c=[],d=m=>{const u=m.controller.getParsed(t),f=u&&u[m.vScale.axis];if(pt(f)||isNaN(f))return!0};for(const m of s)if((void 0===t||!d(m))&&((!1===r||-1===c.indexOf(m.stack)||void 0===r&&void 0===m.stack)&&c.push(m.stack),m.index===e))break;return c.length||c.push(void 0),c}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,i){const s=this._getStacks(e,i),r=void 0!==t?s.indexOf(t):-1;return-1===r?s.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,i=t.iScale,s=[];let r,c;for(r=0,c=t.data.length;r=t?1:-1)}(w,t,c)*r,f===c&&(k-=w/2);const P=t.getPixelForDecimal(0),O=t.getPixelForDecimal(1),R=Math.min(P,O),E=Math.max(P,O);k=Math.max(Math.min(k,E),R),x=k+w}if(k===t.getPixelForValue(c)){const P=Ge(w)*t.getLineWidthForValue(c)/2;k+=P,w-=P}return{size:w,base:k,head:x,center:x+w/2}}_calculateBarIndexPixels(e,t){const i=t.scale,s=this.options,r=s.skipNull,c=K(s.maxBarThickness,1/0);let d,m;if(t.grouped){const u=r?this._getStackCount(e):t.stackCount,f="flex"===s.barThickness?function ff(n,e,t,i){const s=e.pixels,r=s[n];let c=n>0?s[n-1]:null,d=n"spacing"!==e,_indexable:e=>"spacing"!==e};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return t.labels.map((r,c)=>{const m=e.getDatasetMeta(0).controller.getStyle(c);return{text:r,fillStyle:m.backgroundColor,strokeStyle:m.borderColor,fontColor:s,lineWidth:m.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(c),index:c}})}return[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let c,d,r=m=>+i[m];if(ct(i[e])){const{key:m="value"}=this._parsing;r=u=>+wi(i[u],m)}for(c=e,d=e+t;c"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100:+n/e)(this.options.cutout,d),1),u=this._getRingWeight(this.index),{circumference:f,rotation:_}=this._getRotationExtents(),{ratioX:v,ratioY:x,offsetX:w,offsetY:C}=function Cf(n,e,t){let i=1,s=1,r=0,c=0;if(eVo(R,d,m,!0)?1:Math.max(E,E*t,I,I*t),w=(R,E,I)=>Vo(R,d,m,!0)?-1:Math.min(E,E*t,I,I*t),C=x(0,u,_),k=x(Zt,f,v),P=w(Pt,u,_),O=w(Pt+Zt,f,v);i=(C-P)/2,s=(k-O)/2,r=-(C+P)/2,c=-(k+O)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:c}}(_,f,m),O=Math.max(Math.min((i.width-c)/v,(i.height-c)/x)/2,0),R=mc(this.options.radius,O),I=(R-Math.max(R*m,0))/this._getVisibleDatasetWeightTotal();this.offsetX=w*R,this.offsetY=C*R,s.total=this.calculateTotal(),this.outerRadius=R-I*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-I*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const i=this.options,s=this._cachedMeta,r=this._getCircumference();return t&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/St)}updateElements(e,t,i,s){const r="reset"===s,c=this.chart,d=c.chartArea,f=(d.left+d.right)/2,_=(d.top+d.bottom)/2,v=r&&c.options.animation.animateScale,x=v?0:this.innerRadius,w=v?0:this.outerRadius,{sharedOptions:C,includeOptions:k}=this._getSharedOptions(t,s);let O,P=this._getRotation();for(O=0;O0&&!isNaN(e)?St*(Math.abs(e)/t):0}getLabelAndValue(e){const i=this.chart,s=i.data.labels||[],r=Jo(this._cachedMeta._parsed[e],i.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const i=this.chart;let s,r,c,d,m;if(!e)for(s=0,r=i.data.datasets.length;s0&&this.getParsed(t-1);for(let I=0;I=O){z.skip=!0;continue}const U=this.getParsed(I),G=pt(U[x]),X=z[v]=c.getPixelForValue(U[v],I),nt=z[x]=r||G?d.getBasePixel():d.getPixelForValue(m?this.applyStack(d,U,m):U[x],I);z.skip=isNaN(X)||isNaN(nt)||G,z.stop=I>0&&Math.abs(U[v]-E[v])>k,C&&(z.parsed=U,z.raw=u.data[I]),_&&(z.options=f||this.resolveDataElementOptions(I,Z.active?"active":s)),P||this.updateElement(Z,I,z,s),E=U}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,i=t.options&&t.options.borderWidth||0,s=e.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),c=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,c)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}function cn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class vl{static override(e){Object.assign(vl.prototype,e)}constructor(e){this.options=e||{}}init(){}formats(){return cn()}parse(){return cn()}format(){return cn()}add(){return cn()}diff(){return cn()}startOf(){return cn()}endOf(){return cn()}}var Af__date=vl;function Df(n,e,t,i){const{controller:s,data:r,_sorted:c}=n,d=s._cachedMeta.iScale;if(d&&e===d.axis&&"r"!==e&&c&&r.length){const m=d._reversePixels?ku:ni;if(!i)return m(r,e,t);if(s._sharedOptions){const u=r[0],f="function"==typeof u.getRange&&u.getRange(e);if(f){const _=m(r,e,t-f),v=m(r,e,t+f);return{lo:_.lo,hi:v.hi}}}}return{lo:0,hi:r.length-1}}function es(n,e,t,i,s){const r=n.getSortedVisibleDatasetMetas(),c=t[e];for(let d=0,m=r.length;d{m[c](e[t],s)&&(r.push({element:m,datasetIndex:u,index:f}),d=d||m.inRange(e.x,e.y,s))}),i&&!d?[]:r}var Rf={evaluateInteractionItems:es,modes:{index(n,e,t,i){const s=rn(e,n),r=t.axis||"x",c=t.includeInvisible||!1,d=t.intersect?bl(n,s,r,i,c):xl(n,s,r,!1,i,c),m=[];return d.length?(n.getSortedVisibleDatasetMetas().forEach(u=>{const f=d[0].index,_=u.data[f];_&&!_.skip&&m.push({element:_,datasetIndex:u.index,index:f})}),m):[]},dataset(n,e,t,i){const s=rn(e,n),r=t.axis||"xy",c=t.includeInvisible||!1;let d=t.intersect?bl(n,s,r,i,c):xl(n,s,r,!1,i,c);if(d.length>0){const m=d[0].datasetIndex,u=n.getDatasetMeta(m).data;d=[];for(let f=0;fbl(n,rn(e,n),t.axis||"xy",i,t.includeInvisible||!1),nearest:(n,e,t,i)=>xl(n,rn(e,n),t.axis||"xy",t.intersect,i,t.includeInvisible||!1),x:(n,e,t,i)=>Td(n,rn(e,n),"x",t.intersect,i),y:(n,e,t,i)=>Td(n,rn(e,n),"y",t.intersect,i)}};const Sd=["left","top","right","bottom"];function is(n,e){return n.filter(t=>t.pos===e)}function Pd(n,e){return n.filter(t=>-1===Sd.indexOf(t.pos)&&t.box.axis===e)}function ns(n,e){return n.sort((t,i)=>{const s=e?i:t,r=e?t:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function Ad(n,e,t,i){return Math.max(n[t],e[t])+Math.max(n[i],e[i])}function Dd(n,e){n.top=Math.max(n.top,e.top),n.left=Math.max(n.left,e.left),n.bottom=Math.max(n.bottom,e.bottom),n.right=Math.max(n.right,e.right)}function Bf(n,e,t,i){const{pos:s,box:r}=t,c=n.maxPadding;if(!ct(s)){t.size&&(n[s]-=t.size);const _=i[t.stack]||{size:0,count:1};_.size=Math.max(_.size,t.horizontal?r.height:r.width),t.size=_.size/_.count,n[s]+=t.size}r.getPadding&&Dd(c,r.getPadding());const d=Math.max(0,e.outerWidth-Ad(c,n,"left","right")),m=Math.max(0,e.outerHeight-Ad(c,n,"top","bottom")),u=d!==n.w,f=m!==n.h;return n.w=d,n.h=m,t.horizontal?{same:u,other:f}:{same:f,other:u}}function Hf(n,e){const t=e.maxPadding;return function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(c=>{r[c]=Math.max(e[c],t[c])}),r}(n?["left","right"]:["top","bottom"])}function os(n,e,t,i){const s=[];let r,c,d,m,u,f;for(r=0,c=n.length,u=0;ru.box.fullSize),!0),i=ns(is(e,"left"),!0),s=ns(is(e,"right")),r=ns(is(e,"top"),!0),c=ns(is(e,"bottom")),d=Pd(e,"x"),m=Pd(e,"y");return{fullSize:t,leftAndTop:i.concat(r),rightAndBottom:s.concat(m).concat(c).concat(d),chartArea:is(e,"chartArea"),vertical:i.concat(s).concat(m),horizontal:r.concat(c).concat(d)}}(n.boxes),m=d.vertical,u=d.horizontal;bt(n.boxes,C=>{"function"==typeof C.beforeLayout&&C.beforeLayout()});const f=m.reduce((C,k)=>k.box.options&&!1===k.box.options.display?C:C+1,0)||1,_=Object.freeze({outerWidth:e,outerHeight:t,padding:s,availableWidth:r,availableHeight:c,vBoxMaxWidth:r/2/f,hBoxMaxHeight:c/2}),v=Object.assign({},s);Dd(v,oe(i));const x=Object.assign({maxPadding:v,w:r,h:c,x:s.left,y:s.top},s),w=function Zf(n,e){const t=function Ff(n){const e={};for(const t of n){const{stack:i,pos:s,stackWeight:r}=t;if(!i||!Sd.includes(s))continue;const c=e[i]||(e[i]={count:0,placed:0,weight:0,size:0});c.count++,c.weight+=r}return e}(n),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let r,c,d;for(r=0,c=n.length;r{const k=C.box;Object.assign(k,n.chartArea),k.update(x.w,x.h,{left:0,top:0,right:0,bottom:0})})}};class Id{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,i){}removeEventListener(e,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,i,s){return t=Math.max(0,t||e.width),i=i||e.height,{width:t,height:Math.max(0,s?Math.floor(t/s):i)}}isAttached(e){return!0}updateConfig(e){}}class Uf extends Id{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Va="$chartjs",qf={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ld=n=>null===n||""===n,Rd=!!Bp&&{passive:!0};function Vf(n,e,t){n.canvas.removeEventListener(e,t,Rd)}function ja(n,e){for(const t of n)if(t===e||t.contains(e))return!0}function Wf(n,e,t){const i=n.canvas,s=new MutationObserver(r=>{let c=!1;for(const d of r)c=c||ja(d.addedNodes,i),c=c&&!ja(d.removedNodes,i);c&&t()});return s.observe(document,{childList:!0,subtree:!0}),s}function Jf(n,e,t){const i=n.canvas,s=new MutationObserver(r=>{let c=!1;for(const d of r)c=c||ja(d.removedNodes,i),c=c&&!ja(d.addedNodes,i);c&&t()});return s.observe(document,{childList:!0,subtree:!0}),s}const ss=new Map;let Ed=0;function Fd(){const n=window.devicePixelRatio;n!==Ed&&(Ed=n,ss.forEach((e,t)=>{t.currentDevicePixelRatio!==n&&e()}))}function Kf(n,e,t){const i=n.canvas,s=i&&ul(i);if(!s)return;const r=Mc((d,m)=>{const u=s.clientWidth;t(d,m),u{const m=d[0],u=m.contentRect.width,f=m.contentRect.height;0===u&&0===f||r(u,f)});return c.observe(s),function Qf(n,e){ss.size||window.addEventListener("resize",Fd),ss.set(n,e)}(n,r),c}function wl(n,e,t){t&&t.disconnect(),"resize"===e&&function $f(n){ss.delete(n),ss.size||window.removeEventListener("resize",Fd)}(n)}function Xf(n,e,t){const i=n.canvas,s=Mc(r=>{null!==n.ctx&&t(function jf(n,e){const t=qf[n.type]||n.type,{x:i,y:s}=rn(n,e);return{type:t,chart:e,native:n,x:void 0!==i?i:null,y:void 0!==s?s:null}}(r,n))},n);return function Gf(n,e,t){n.addEventListener(e,t,Rd)}(i,e,s),s}class tg extends Id{acquireContext(e,t){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(function Yf(n,e){const t=n.style,i=n.getAttribute("height"),s=n.getAttribute("width");if(n[Va]={initial:{height:i,width:s,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",Ld(s)){const r=id(n,"width");void 0!==r&&(n.width=r)}if(Ld(i))if(""===n.style.height)n.height=n.width/(e||2);else{const r=id(n,"height");void 0!==r&&(n.height=r)}}(e,t),i):null}releaseContext(e){const t=e.canvas;if(!t[Va])return!1;const i=t[Va].initial;["height","width"].forEach(r=>{const c=i[r];pt(c)?t.removeAttribute(r):t.setAttribute(r,c)});const s=i.style||{};return Object.keys(s).forEach(r=>{t.style[r]=s[r]}),t.width=t.width,delete t[Va],!0}addEventListener(e,t,i){this.removeEventListener(e,t),(e.$proxies||(e.$proxies={}))[t]=({attach:Wf,detach:Jf,resize:Kf}[t]||Xf)(e,t,i)}removeEventListener(e,t){const i=e.$proxies||(e.$proxies={}),s=i[t];s&&(({attach:wl,detach:wl,resize:wl}[t]||Vf)(e,t,s),i[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,i,s){return function zp(n,e,t,i){const s=qa(n),r=an(s,"margin"),c=Ua(s.maxWidth,n,"clientWidth")||Da,d=Ua(s.maxHeight,n,"clientHeight")||Da,m=function Zp(n,e,t){let i,s;if(void 0===e||void 0===t){const r=ul(n);if(r){const c=r.getBoundingClientRect(),d=qa(r),m=an(d,"border","width"),u=an(d,"padding");e=c.width-u.width-m.width,t=c.height-u.height-m.height,i=Ua(d.maxWidth,r,"clientWidth"),s=Ua(d.maxHeight,r,"clientHeight")}else e=n.clientWidth,t=n.clientHeight}return{width:e,height:t,maxWidth:i||Da,maxHeight:s||Da}}(n,e,t);let{width:u,height:f}=m;if("content-box"===s.boxSizing){const v=an(s,"border","width"),x=an(s,"padding");u-=x.width+v.width,f-=x.height+v.height}return u=Math.max(0,u-r.width),f=Math.max(0,i?Math.floor(u/i):f-r.height),u=Ya(Math.min(u,c,m.maxWidth)),f=Ya(Math.min(f,d,m.maxHeight)),u&&!f&&(f=Ya(u/2)),(void 0!==e||void 0!==t)&&i&&m.height&&f>m.height&&(f=m.height,u=Ya(Math.floor(f*i))),{width:u,height:f}}(e,t,i,s)}isAttached(e){const t=ul(e);return!(!t||!t.isConnected)}}class ai{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}hasValue(){return jn(this.x)&&jn(this.y)}getProps(e,t){const i=this.$animations;if(!t||!i)return this;const s={};return e.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}}function Wa(n,e,t,i,s){const r=K(i,0),c=Math.min(K(s,n.length),n.length);let m,u,f,d=0;for(t=Math.ceil(t),s&&(m=s-i,t=m/Math.floor(m/t)),f=r;f<0;)d++,f=Math.round(r+d*t);for(u=Math.max(r,0);u"top"===e||"left"===e?n[e]+t:n[e]-t;function zd(n,e){const t=[],i=n.length/e,s=n.length;let r=0;for(;rc+d)))return m}function as(n){return n.drawTicks?n.tickLength:0}function Bd(n,e){if(!n.display)return 0;const t=Vt(n.font,e),i=oe(n.padding);return(Tt(n.text)?n.text.length:1)*t.lineHeight+i.height}function ug(n,e,t){let i=Xr(n);return(t&&"right"!==e||!t&&"right"===e)&&(i=(n=>"left"===n?"right":"right"===n?"left":n)(i)),i}class dn extends ai{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:i,_suggestedMax:s}=this;return e=we(e,Number.POSITIVE_INFINITY),t=we(t,Number.NEGATIVE_INFINITY),i=we(i,Number.POSITIVE_INFINITY),s=we(s,Number.NEGATIVE_INFINITY),{min:we(e,i),max:we(t,s),minDefined:Ft(e),maxDefined:Ft(t)}}getMinMax(e){let c,{min:t,max:i,minDefined:s,maxDefined:r}=this.getUserBounds();if(s&&r)return{min:t,max:i};const d=this.getMatchingVisibleMetas();for(let m=0,u=d.length;mi?i:t,i=s&&t>i?t:i,{min:we(t,we(i,t)),max:we(i,we(t,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ct(this.options.beforeUpdate,[this])}update(e,t,i){const{beginAtZero:s,grace:r,ticks:c}=this.options,d=c.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function gp(n,e,t){const{min:i,max:s}=n,r=mc(e,(s-i)/2),c=(d,m)=>t&&0===d?0:d+m;return{min:c(i,-Math.abs(r)),max:c(s,r)}}(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const m=ds)return function ag(n,e,t,i){let c,s=0,r=t[0];for(i=Math.ceil(i),c=0;cs-r).pop(),e}(i);for(let c=0,d=r.length-1;cs)return m}return Math.max(s,1)}(r,e,s);if(c>0){let _,v;const x=c>1?Math.round((m-d)/(c-1)):null;for(Wa(e,u,f,pt(x)?0:d-x,d),_=0,v=c-1;_=r||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const f=this._getLabelSizes(),_=f.widest.width,v=f.highest.height,x=Wt(this.chart.width-_,0,this.maxWidth);d=e.offset?this.maxWidth/i:x/(i-1),_+6>d&&(d=x/(i-(e.offset?.5:1)),m=this.maxHeight-as(e.grid)-t.padding-Bd(e.title,this.chart.options.font),u=Math.sqrt(_*_+v*v),c=function Qr(n){return n*(180/Pt)}(Math.min(Math.asin(Wt((f.highest.height+6)/d,-1,1)),Math.asin(Wt(m/u,-1,1))-Math.asin(Wt(v/u,-1,1)))),c=Math.max(s,Math.min(r,c))),this.labelRotation=c}afterCalculateLabelRotation(){Ct(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ct(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:i,title:s,grid:r}}=this,c=this._isVisible(),d=this.isHorizontal();if(c){const m=Bd(s,t.options.font);if(d?(e.width=this.maxWidth,e.height=as(r)+m):(e.height=this.maxHeight,e.width=as(r)+m),i.display&&this.ticks.length){const{first:u,last:f,widest:_,highest:v}=this._getLabelSizes(),x=2*i.padding,w=Ee(this.labelRotation),C=Math.cos(w),k=Math.sin(w);d?e.height=Math.min(this.maxHeight,e.height+(i.mirror?0:k*_.width+C*v.height)+x):e.width=Math.min(this.maxWidth,e.width+(i.mirror?0:C*_.width+k*v.height)+x),this._calculatePadding(u,f,k,C)}}this._handleMargins(),d?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,i,s){const{ticks:{align:r,padding:c},position:d}=this.options,m=0!==this.labelRotation,u="top"!==d&&"x"===this.axis;if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,_=this.right-this.getPixelForTick(this.ticks.length-1);let v=0,x=0;m?u?(v=s*e.width,x=i*t.height):(v=i*e.height,x=s*t.width):"start"===r?x=t.width:"end"===r?v=e.width:"inner"!==r&&(v=e.width/2,x=t.width/2),this.paddingLeft=Math.max((v-f+c)*this.width/(this.width-f),0),this.paddingRight=Math.max((x-_+c)*this.width/(this.width-_),0)}else{let f=t.height/2,_=e.height/2;"start"===r?(f=0,_=e.height):"end"===r&&(f=t.height,_=0),this.paddingTop=f+c,this.paddingBottom=_+c}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ct(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,i=e.length;t{const i=t.gc,s=i.length/2;let r;if(s>e){for(r=0;r({width:r[z]||0,height:c[z]||0});return{first:Z(0),last:Z(t-1),widest:Z(E),highest:Z(I),widths:r,heights:c}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return function Cu(n){return Wt(n,-32768,32767)}(this._alignToPixels?nn(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&ed*s?d/i:m/s:m*s0}_computeGridLineItems(e){const t=this.axis,i=this.chart,s=this.options,{grid:r,position:c,border:d}=s,m=r.offset,u=this.isHorizontal(),_=this.ticks.length+(m?1:0),v=as(r),x=[],w=d.setContext(this.getContext()),C=w.display?w.width:0,k=C/2,P=function(At){return nn(i,At,C)};let O,R,E,I,Z,z,U,G,X,nt,dt,Kt;if("top"===c)O=P(this.bottom),z=this.bottom-v,G=O-k,nt=P(e.top)+k,Kt=e.bottom;else if("bottom"===c)O=P(this.top),nt=e.top,Kt=P(e.bottom)-k,z=O+k,G=this.top+v;else if("left"===c)O=P(this.right),Z=this.right-v,U=O-k,X=P(e.left)+k,dt=e.right;else if("right"===c)O=P(this.left),X=e.left,dt=P(e.right)-k,Z=O+k,U=this.left+v;else if("x"===t){if("center"===c)O=P((e.top+e.bottom)/2+.5);else if(ct(c)){const At=Object.keys(c)[0];O=P(this.chart.scales[At].getPixelForValue(c[At]))}nt=e.top,Kt=e.bottom,z=O+k,G=z+v}else if("y"===t){if("center"===c)O=P((e.left+e.right)/2);else if(ct(c)){const At=Object.keys(c)[0];O=P(this.chart.scales[At].getPixelForValue(c[At]))}Z=O-k,U=Z-v,X=e.left,dt=e.right}const Ce=K(s.ticks.maxTicksLimit,_),yt=Math.max(1,Math.ceil(_/Ce));for(R=0;R<_;R+=yt){const At=this.getContext(R),Nt=r.setContext(At),Fe=d.setContext(At),ae=Nt.lineWidth,Xn=Nt.color,lr=Fe.dash||[],to=Fe.dashOffset,ms=Nt.tickWidth,us=Nt.tickColor,ps=Nt.tickBorderDash||[],fs=Nt.tickBorderDashOffset;E=cg(this,R,m),void 0!==E&&(I=nn(i,E,ae),u?Z=U=X=dt=I:z=G=nt=Kt=I,x.push({tx1:Z,ty1:z,tx2:U,ty2:G,x1:X,y1:nt,x2:dt,y2:Kt,width:ae,color:Xn,borderDash:lr,borderDashOffset:to,tickWidth:ms,tickColor:us,tickBorderDash:ps,tickBorderDashOffset:fs}))}return this._ticksLength=_,this._borderValue=O,x}_computeLabelItems(e){const t=this.axis,i=this.options,{position:s,ticks:r}=i,c=this.isHorizontal(),d=this.ticks,{align:m,crossAlign:u,padding:f,mirror:_}=r,v=as(i.grid),x=v+f,w=_?-f:x,C=-Ee(this.labelRotation),k=[];let P,O,R,E,I,Z,z,U,G,X,nt,dt,Kt="middle";if("top"===s)Z=this.bottom-w,z=this._getXAxisLabelAlignment();else if("bottom"===s)Z=this.top+w,z=this._getXAxisLabelAlignment();else if("left"===s){const yt=this._getYAxisLabelAlignment(v);z=yt.textAlign,I=yt.x}else if("right"===s){const yt=this._getYAxisLabelAlignment(v);z=yt.textAlign,I=yt.x}else if("x"===t){if("center"===s)Z=(e.top+e.bottom)/2+x;else if(ct(s)){const yt=Object.keys(s)[0];Z=this.chart.scales[yt].getPixelForValue(s[yt])+x}z=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===s)I=(e.left+e.right)/2-x;else if(ct(s)){const yt=Object.keys(s)[0];I=this.chart.scales[yt].getPixelForValue(s[yt])}z=this._getYAxisLabelAlignment(v).textAlign}"y"===t&&("start"===m?Kt="top":"end"===m&&(Kt="bottom"));const Ce=this._getLabelSizes();for(P=0,O=d.length;Pr.value===e);return s>=0?t.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const t=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,c;const d=(m,u,f)=>{!f.width||!f.color||(i.save(),i.lineWidth=f.width,i.strokeStyle=f.color,i.setLineDash(f.borderDash||[]),i.lineDashOffset=f.borderDashOffset,i.beginPath(),i.moveTo(m.x,m.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(t.display)for(r=0,c=s.length;r{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:t,draw:r=>{this.drawLabels(r)}}]:[{z:t,draw:r=>{this.draw(r)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,c;for(r=0,c=t.length;r{const i=t.split("."),s=i.pop(),r=[n].concat(i).join("."),c=e[t].split("."),d=c.pop(),m=c.join(".");Bt.route(r,s,m,d)})}(e,n.defaultRoutes),n.descriptors&&Bt.describe(e,n.descriptors)}(e,c,i),this.override&&Bt.override(e.id,e.overrides)),c}get(e){return this.items[e]}unregister(e){const t=this.items,i=e.id,s=this.scope;i in t&&delete t[i],s&&i in Bt[s]&&(delete Bt[s][i],this.override&&delete en[i])}}class vg{constructor(){this.controllers=new Ja(Si,"datasets",!0),this.elements=new Ja(ai,"elements"),this.plugins=new Ja(Object,"plugins"),this.scales=new Ja(dn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,i){[...t].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):bt(s,c=>{const d=i||this._getRegistryForType(c);this._exec(e,d,c)})})}_exec(e,t,i){const s=Jr(e);Ct(i["before"+s],[],i),t[e](i),Ct(i["after"+s],[],i)}_getRegistryForType(e){for(let t=0;tr.filter(d=>!c.some(m=>d.plugin.id===m.plugin.id));this._notify(s(t,i),e,"stop"),this._notify(s(i,t),e,"start")}}function wg(n,e){return e||!1!==n?!0===n?{}:n:null}function Cg(n,{plugin:e,local:t},i,s){const r=n.pluginScopeKeys(e),c=n.getOptionScopes(i,r);return t&&e.defaults&&c.push(e.defaults),n.createResolver(c,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function yl(n,e){return((e.datasets||{})[n]||{}).indexAxis||e.indexAxis||(Bt.datasets[n]||{}).indexAxis||"x"}function Qa(n,e){if("x"===n||"y"===n||"r"===n||(n=e.axis||function Tg(n){return"top"===n||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0}(e.position)||n.length>1&&Qa(n[0].toLowerCase(),e)))return n;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Nd(n){const e=n.options||(n.options={});e.plugins=K(e.plugins,{}),e.scales=function Sg(n,e){const t=en[n.type]||{scales:{}},i=e.scales||{},s=yl(n.type,e),r=Object.create(null);return Object.keys(i).forEach(c=>{const d=i[c];if(!ct(d))return console.error(`Invalid scale configuration for scale: ${c}`);if(d._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${c}`);const m=Qa(c,d),u=function Mg(n,e){return n===e?"_index_":"_value_"}(m,s),f=t.scales||{};r[c]=Yo(Object.create(null),[{axis:m},d,f[m],f[u]])}),n.data.datasets.forEach(c=>{const d=c.type||n.type,m=c.indexAxis||yl(d,e),f=(en[d]||{}).scales||{};Object.keys(f).forEach(_=>{const v=function kg(n,e){let t=n;return"_index_"===n?t=e:"_value_"===n&&(t="x"===e?"y":"x"),t}(_,m),x=c[v+"AxisID"]||v;r[x]=r[x]||Object.create(null),Yo(r[x],[{axis:v},i[x],f[_]])})}),Object.keys(r).forEach(c=>{const d=r[c];Yo(d,[Bt.scales[d.type],Bt.scale])}),r}(n,e)}function Hd(n){return(n=n||{}).datasets=n.datasets||[],n.labels=n.labels||[],n}const Ud=new Map,qd=new Set;function $a(n,e){let t=Ud.get(n);return t||(t=e(),Ud.set(n,t),qd.add(t)),t}const rs=(n,e,t)=>{const i=wi(e,t);void 0!==i&&n.add(i)};class Ag{constructor(e){this._config=function Pg(n){return(n=n||{}).data=Hd(n.data),Nd(n),n}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Hd(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Nd(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return $a(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return $a(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return $a(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return $a(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const i=this._scopeCache;let s=i.get(e);return(!s||t)&&(s=new Map,i.set(e,s)),s}getOptionScopes(e,t,i){const{options:s,type:r}=this,c=this._cachedScopes(e,i),d=c.get(t);if(d)return d;const m=new Set;t.forEach(f=>{e&&(m.add(e),f.forEach(_=>rs(m,e,_))),f.forEach(_=>rs(m,s,_)),f.forEach(_=>rs(m,en[r]||{},_)),f.forEach(_=>rs(m,Bt,_)),f.forEach(_=>rs(m,al,_))});const u=Array.from(m);return 0===u.length&&u.push(Object.create(null)),qd.has(t)&&c.set(t,u),u}chartOptionScopes(){const{options:e,type:t}=this;return[e,en[t]||{},Bt.datasets[t]||{},{type:t},Bt,al]}resolveNamedOptions(e,t,i,s=[""]){const r={$shared:!0},{resolver:c,subPrefixes:d}=Yd(this._resolverCache,e,s);let m=c;(function Og(n,e){const{isScriptable:t,isIndexable:i}=Vc(n);for(const s of e){const r=t(s),c=i(s),d=(c||r)&&n[s];if(r&&(yi(d)||Dg(d))||c&&Tt(d))return!0}return!1})(c,t)&&(r.$shared=!1,m=Jn(c,i=yi(i)?i():i,this.createResolver(e,i,d)));for(const u of t)r[u]=m[u];return r}createResolver(e,t,i=[""],s){const{resolver:r}=Yd(this._resolverCache,e,i);return ct(t)?Jn(r,t,void 0,s):r}}function Yd(n,e,t){let i=n.get(e);i||(i=new Map,n.set(e,i));const s=t.join();let r=i.get(s);return r||(r={resolver:dl(e,t),subPrefixes:t.filter(d=>!d.toLowerCase().includes("hover"))},i.set(s,r)),r}const Dg=n=>ct(n)&&Object.getOwnPropertyNames(n).reduce((e,t)=>e||yi(n[t]),!1),Lg=["top","bottom","left","right","chartArea"];function Gd(n,e){return"top"===n||"bottom"===n||-1===Lg.indexOf(n)&&"x"===e}function Vd(n,e){return function(t,i){return t[n]===i[n]?t[e]-i[e]:t[n]-i[n]}}function jd(n){const e=n.chart,t=e.options.animation;e.notifyPlugins("afterRender"),Ct(t&&t.onComplete,[n],e)}function Rg(n){const e=n.chart,t=e.options.animation;Ct(t&&t.onProgress,[n],e)}function Wd(n){return td()&&"string"==typeof n?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const Ka={},Jd=n=>{const e=Wd(n);return Object.values(Ka).filter(t=>t.canvas===e).pop()};function Eg(n,e,t){const i=Object.keys(n);for(const s of i){const r=+s;if(r>=e){const c=n[s];delete n[s],(t>0||r>e)&&(n[r+t]=c)}}}class Qd{static defaults=Bt;static instances=Ka;static overrides=en;static registry=Ve;static version="4.0.1";static getChart=Jd;static register(...e){Ve.add(...e),$d()}static unregister(...e){Ve.remove(...e),$d()}constructor(e,t){const i=this.config=new Ag(t),s=Wd(e),r=Jd(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const c=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function eg(n){return!td()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?Uf:tg}(s)),this.platform.updateConfig(i);const d=this.platform.acquireContext(s,c.aspectRatio),m=d&&d.canvas,u=m&&m.height,f=m&&m.width;this.id=hu(),this.ctx=d,this.canvas=m,this.width=f,this.height=u,this._options=c,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new bg,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function Su(n,e){let t;return function(...i){return e?(clearTimeout(t),t=setTimeout(n,e,i)):n.apply(this,i),e}}(_=>this.update(_),c.resizeDelay||0),this._dataChanges=[],Ka[this.id]=this,d&&m?(si.listen(this,"complete",jd),si.listen(this,"progress",Rg),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:i,height:s,_aspectRatio:r}=this;return pt(e)?t&&r?r:s?i/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Ve}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ed(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qc(this.canvas,this.ctx),this}stop(){return si.stop(this),this}resize(e,t){si.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const i=this.options,c=this.platform.getMaximumSize(this.canvas,e,t,i.maintainAspectRatio&&this.aspectRatio),d=i.devicePixelRatio||this.platform.getDevicePixelRatio(),m=this.width?"resize":"attach";this.width=c.width,this.height=c.height,this._aspectRatio=this.aspectRatio,ed(this,d,!0)&&(this.notifyPlugins("resize",{size:c}),Ct(i.onResize,[this,c],this),this.attached&&this._doResize(m)&&this.render())}ensureScalesHaveIDs(){bt(this.options.scales||{},(i,s)=>{i.id=s})}buildOrUpdateScales(){const e=this.options,t=e.scales,i=this.scales,s=Object.keys(i).reduce((c,d)=>(c[d]=!1,c),{});let r=[];t&&(r=r.concat(Object.keys(t).map(c=>{const d=t[c],m=Qa(c,d),u="r"===m,f="x"===m;return{options:d,dposition:u?"chartArea":f?"bottom":"left",dtype:u?"radialLinear":f?"category":"linear"}}))),bt(r,c=>{const d=c.options,m=d.id,u=Qa(m,d),f=K(d.type,c.dtype);(void 0===d.position||Gd(d.position,u)!==Gd(c.dposition))&&(d.position=c.dposition),s[m]=!0;let _=null;m in i&&i[m].type===f?_=i[m]:(_=new(Ve.getScale(f))({id:m,type:f,ctx:this.ctx,chart:this}),i[_.id]=_),_.init(d,e)}),bt(s,(c,d)=>{c||delete i[d]}),bt(i,c=>{se.configure(this,c,c.options),se.addBox(this,c)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,i=e.length;if(e.sort((s,r)=>s.index-r.index),i>t){for(let s=t;st.length&&delete this._stacks,e.forEach((i,s)=>{0===t.filter(r=>r===i._dataset).length&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=t.length;i{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const i=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let u=0,f=this.data.datasets.length;u{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Vd("z","_idx"));const{_active:d,_lastEvent:m}=this;m?this._eventHandler(m,!0):d.length&&this._updateHoverStyles(d,d,!0),this.render()}_updateScales(){bt(this.scales,e=>{se.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!fc(t,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of t)Eg(e,s,"_removeElements"===i?-r:r)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,i=r=>new Set(e.filter(c=>c[0]===r).map((c,d)=>d+","+c.splice(1).join(","))),s=i(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;se.update(this,this.width,this.height,e);const t=this.chartArea,i=t.width<=0||t.height<=0;this._layers=[],bt(this.boxes,s=>{i&&"chartArea"===s.position||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let t=0,i=this.data.datasets.length;t=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,i=e._clip,s=!i.disabled,r=function Zg(n){const{xScale:e,yScale:t}=n;if(e&&t)return{left:e.left,right:e.right,top:t.top,bottom:t.bottom}}(e)||this.chartArea,c={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",c)&&(s&&Ba(t,{left:!1===i.left?0:r.left-i.left,right:!1===i.right?this.width:r.right+i.right,top:!1===i.top?0:r.top-i.top,bottom:!1===i.bottom?this.height:r.bottom+i.bottom}),e.controller.draw(),s&&Na(t),c.cancelable=!1,this.notifyPlugins("afterDatasetDraw",c))}isPointInArea(e){return $o(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,i,s){const r=Rf.modes[t];return"function"==typeof r?r(this,e,i,s):[]}getDatasetMeta(e){const t=this.data.datasets[e],i=this._metasets;let s=i.filter(r=>r&&r._dataset===t).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Ti(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const i=this.getDatasetMeta(e);return"boolean"==typeof i.hidden?!i.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,i){const s=i?"show":"hide",r=this.getDatasetMeta(e),c=r.controller._resolveAnimations(void 0,s);Se(t)?(r.data[t].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),c.update(r,{visible:i}),this.update(d=>d.datasetIndex===e?s:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),si.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,r,c),e[r]=c},s=(r,c,d)=>{r.offsetX=c,r.offsetY=d,this._eventHandler(r)};bt(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,i=(m,u)=>{t.addEventListener(this,m,u),e[m]=u},s=(m,u)=>{e[m]&&(t.removeEventListener(this,m,u),delete e[m])},r=(m,u)=>{this.canvas&&this.resize(m,u)};let c;const d=()=>{s("attach",d),this.attached=!0,this.resize(),i("resize",r),i("detach",c)};c=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",d)},t.isAttached(this.canvas)?d():c()}unbindEvents(){bt(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},bt(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,i){const s=i?"set":"remove";let r,c,d,m;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),d=0,m=e.length;d{const d=this.getDatasetMeta(r);if(!d)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:d.data[c],index:c}});!Pa(i,t)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,t))}notifyPlugins(e,t,i){return this._plugins.notify(this,e,t,i)}isPluginEnabled(e){return 1===this._plugins._cache.filter(t=>t.plugin.id===e).length}_updateHoverStyles(e,t,i){const s=this.options.hover,r=(m,u)=>m.filter(f=>!u.some(_=>f.datasetIndex===_.datasetIndex&&f.index===_.index)),c=r(t,e),d=i?e:r(e,t);c.length&&this.updateHoverStyle(c,s.mode,!1),d.length&&s.mode&&this.updateHoverStyle(d,s.mode,!0)}_eventHandler(e,t){const i={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},s=c=>(c.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const r=this._handleEvent(e,t,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(e,t,i){const{_active:s=[],options:r}=this,d=this._getActiveElements(e,s,i,t),m=function _u(n){return"mouseup"===n.type||"click"===n.type||"contextmenu"===n.type}(e),u=function Fg(n,e,t,i){return t&&"mouseout"!==n.type?i?e:n:null}(e,this._lastEvent,i,m);i&&(this._lastEvent=null,Ct(r.onHover,[e,d,this],this),m&&Ct(r.onClick,[e,d,this],this));const f=!Pa(d,s);return(f||t)&&(this._active=d,this._updateHoverStyles(d,s,t)),this._lastEvent=u,f}_getActiveElements(e,t,i,s){if("mouseout"===e.type)return[];if(!i)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}}function $d(){return bt(Qd.instances,n=>n._plugins.invalidate())}var Cl=Qd;function Kn(n,e,t,i){return{x:t+n*Math.cos(e),y:i+n*Math.sin(e)}}function Xa(n,e,t,i,s,r){const{x:c,y:d,startAngle:m,pixelMargin:u,innerRadius:f}=e,_=Math.max(e.outerRadius+i+t-u,0),v=f>0?f+i+t+u:0;let x=0;const w=s-m;if(i){const Nt=((f>0?f-i:0)+(_>0?_-i:0))/2;x=(w-(0!==Nt?w*Nt/(Nt+i):w))/2}const k=(w-Math.max(.001,w*_-t/Pt)/_)/2,P=m+k+x,O=s-k-x,{outerStart:R,outerEnd:E,innerStart:I,innerEnd:Z}=function Ng(n,e,t,i){const s=function Bg(n){return cl(n,["outerStart","outerEnd","innerStart","innerEnd"])}(n.options.borderRadius),r=(t-e)/2,c=Math.min(r,i*e/2),d=m=>{const u=(t-Math.min(r,m))*i/2;return Wt(m,0,Math.min(r,u))};return{outerStart:d(s.outerStart),outerEnd:d(s.outerEnd),innerStart:Wt(s.innerStart,0,c),innerEnd:Wt(s.innerEnd,0,c)}}(e,v,_,O-P),z=_-R,U=_-E,G=P+R/z,X=O-E/U,nt=v+I,dt=v+Z,Kt=P+I/nt,Ce=O-Z/dt;if(n.beginPath(),r){const yt=(G+X)/2;if(n.arc(c,d,_,G,yt),n.arc(c,d,_,yt,X),E>0){const ae=Kn(U,X,c,d);n.arc(ae.x,ae.y,E,X,O+Zt)}const At=Kn(dt,O,c,d);if(n.lineTo(At.x,At.y),Z>0){const ae=Kn(dt,Ce,c,d);n.arc(ae.x,ae.y,Z,O+Zt,Ce+Math.PI)}const Nt=(O-Z/v+(P+I/v))/2;if(n.arc(c,d,v,O-Z/v,Nt,!0),n.arc(c,d,v,Nt,P+I/v,!0),I>0){const ae=Kn(nt,Kt,c,d);n.arc(ae.x,ae.y,I,Kt+Math.PI,P-Zt)}const Fe=Kn(z,P,c,d);if(n.lineTo(Fe.x,Fe.y),R>0){const ae=Kn(z,G,c,d);n.arc(ae.x,ae.y,R,P-Zt,G)}}else{n.moveTo(c,d);const yt=Math.cos(G)*_+c,At=Math.sin(G)*_+d;n.lineTo(yt,At);const Nt=Math.cos(X)*_+c,Fe=Math.sin(X)*_+d;n.lineTo(Nt,Fe)}n.closePath()}class Kd extends ai{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,i){const s=this.getProps(["x","y"],i),{angle:r,distance:c}=xc(s,{x:e,y:t}),{startAngle:d,endAngle:m,innerRadius:u,outerRadius:f,circumference:_}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),v=this.options.spacing/2,w=K(_,m-d)>=St||Vo(r,d,m),C=ii(c,u+v,f+v);return w&&C}getCenterPoint(e){const{x:t,y:i,startAngle:s,endAngle:r,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:m,spacing:u}=this.options,f=(s+r)/2,_=(c+d+u+m)/2;return{x:t+Math.cos(f)*_,y:i+Math.sin(f)*_}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:i}=this,s=(t.offset||0)/4,r=(t.spacing||0)/2,c=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=i>St?Math.floor(i/St):0,0===i||this.innerRadius<0||this.outerRadius<0)return;e.save();const d=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(d)*s,Math.sin(d)*s);const u=s*(1-Math.sin(Math.min(Pt,i||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function Hg(n,e,t,i,s){const{fullCircles:r,startAngle:c,circumference:d}=e;let m=e.endAngle;if(r){Xa(n,e,t,i,m,s);for(let u=0;us?(u=s/m,n.arc(r,c,m,t+u,i-u,!0)):n.arc(r,c,s,t+Zt,i-Zt),n.closePath(),n.clip()}(n,e,v),r||(Xa(n,e,t,i,v,s),n.stroke())}(e,this,u,r,c),e.restore()}}function Xd(n,e,t=e){n.lineCap=K(t.borderCapStyle,e.borderCapStyle),n.setLineDash(K(t.borderDash,e.borderDash)),n.lineDashOffset=K(t.borderDashOffset,e.borderDashOffset),n.lineJoin=K(t.borderJoinStyle,e.borderJoinStyle),n.lineWidth=K(t.borderWidth,e.borderWidth),n.strokeStyle=K(t.borderColor,e.borderColor)}function qg(n,e,t){n.lineTo(t.x,t.y)}function th(n,e,t={}){const i=n.length,{start:s=0,end:r=i-1}=t,{start:c,end:d}=e,m=Math.max(s,c),u=Math.min(r,d);return{count:i,start:m,loop:e.loop,ilen:ud&&r>d)?i+u-m:u-m}}function Gg(n,e,t,i){const{points:s,options:r}=e,{count:c,start:d,loop:m,ilen:u}=th(s,t,i),f=function Yg(n){return n.stepped?rp:n.tension||"monotone"===n.cubicInterpolationMode?lp:qg}(r);let x,w,C,{move:_=!0,reverse:v}=i||{};for(x=0;x<=u;++x)w=s[(d+(v?u-x:x))%c],!w.skip&&(_?(n.moveTo(w.x,w.y),_=!1):f(n,C,w,v,r.stepped),C=w);return m&&(w=s[(d+(v?u:0))%c],f(n,C,w,v,r.stepped)),!!m}function Vg(n,e,t,i){const s=e.points,{count:r,start:c,ilen:d}=th(s,t,i),{move:m=!0,reverse:u}=i||{};let v,x,w,C,k,P,f=0,_=0;const O=E=>(c+(u?d-E:E))%r,R=()=>{C!==k&&(n.lineTo(f,k),n.lineTo(f,C),n.lineTo(f,P))};for(m&&(x=s[O(0)],n.moveTo(x.x,x.y)),v=0;v<=d;++v){if(x=s[O(v)],x.skip)continue;const E=x.x,I=x.y,Z=0|E;Z===w?(Ik&&(k=I),f=(_*f+E)/++_):(R(),n.lineTo(E,I),w=Z,_=0,C=k=I),P=I}R()}function kl(n){const e=n.options;return n._decimated||n._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||e.borderDash&&e.borderDash.length?Gg:Vg}const Qg="function"==typeof Path2D;class ls extends ai{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const i=this.options;!i.tension&&"monotone"!==i.cubicInterpolationMode||i.stepped||this._pointsUpdated||(Ip(this._points,i,e,i.spanGaps?this._loop:this._fullLoop,t),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function jp(n,e){const t=n.points,i=n.options.spanGaps,s=t.length;if(!s)return[];const r=!!n._loop,{start:c,end:d}=function Gp(n,e,t,i){let s=0,r=e-1;if(t&&!i)for(;ss&&n[r%e].skip;)r--;return r%=e,{start:s,end:r}}(t,s,r,i);return function cd(n,e,t,i){return i&&i.setContext&&t?function Wp(n,e,t,i){const s=n._chart.getContext(),r=dd(n.options),{_datasetIndex:c,options:{spanGaps:d}}=n,m=t.length,u=[];let f=r,_=e[0].start,v=_;function x(w,C,k,P){const O=d?-1:1;if(w!==C){for(w+=m;t[w%m].skip;)w-=O;for(;t[C%m].skip;)C+=O;w%m!=C%m&&(u.push({start:w%m,end:C%m,loop:k,style:P}),f=P,_=C%m)}}for(const w of e){_=d?_:w.start;let k,C=t[_%m];for(v=_+1;v<=w.end;v++){const P=t[v%m];k=dd(i.setContext(Ti(s,{type:"segment",p0:C,p1:P,p0DataIndex:(v-1)%m,p1DataIndex:v%m,datasetIndex:c}))),Jp(k,f)&&x(_,v-1,w.loop,f),C=P,f=k}_{ch(e)})}var hh={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,e,t)=>{if(!t.enabled)return void dh(n);const i=n.width;n.data.datasets.forEach((s,r)=>{const{_data:c,indexAxis:d}=s,m=n.getDatasetMeta(r),u=c||s.data;if("y"===Xo([d,n.options.indexAxis])||!m.controller.supportsDecimation)return;const f=n.scales[m.xAxisID];if("linear"!==f.type&&"time"!==f.type||n.options.parsing)return;let w,{start:_,count:v}=function h_(n,e){const t=e.length;let s,i=0;const{iScale:r}=n,{min:c,max:d,minDefined:m,maxDefined:u}=r.getUserBounds();return m&&(i=Wt(ni(e,r.axis,c).lo,0,t-1)),s=u?Wt(ni(e,r.axis,d).hi+1,i,t)-i:t-i,{start:i,count:s}}(m,u);if(v<=(t.threshold||4*i))ch(s);else{switch(pt(c)&&(s._data=u,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(C){this._data=C}})),t.algorithm){case"lttb":w=function c_(n,e,t,i,s){const r=s.samples||i;if(r>=t)return n.slice(e,e+t);const c=[],d=(t-2)/(r-2);let m=0;const u=e+t-1;let _,v,x,w,C,f=e;for(c[m++]=n[f],_=0;_x&&(x=w,v=n[O],C=O);c[m++]=v,f=C}return c[m++]=n[u],c}(u,_,v,i,t);break;case"min-max":w=function d_(n,e,t,i){let c,d,m,u,f,_,v,x,w,C,s=0,r=0;const k=[],O=n[e].x,E=n[e+t-1].x-O;for(c=e;cC&&(C=u,v=c),s=(r*s+d.x)/++r;else{const Z=c-1;if(!pt(_)&&!pt(v)){const z=Math.min(_,v),U=Math.max(_,v);z!==x&&z!==Z&&k.push({...n[z],x:s}),U!==x&&U!==Z&&k.push({...n[U],x:s})}c>0&&Z!==x&&k.push(n[Z]),k.push(d),f=I,r=0,w=C=u,_=v=x=c}}return k}(u,_,v,i);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}s._decimated=w}})},destroy(n){dh(n)}};function Pl(n,e,t,i){if(i)return;let s=e[n],r=t[n];return"angle"===n&&(s=ye(s),r=ye(r)),{property:n,start:s,end:r}}function Al(n,e,t){for(;e>n;e--){const i=t[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function mh(n,e,t,i){return n&&e?i(n[t],e[t]):n?n[t]:e?e[t]:0}function uh(n,e){let t=[],i=!1;return Tt(n)?(i=!0,t=n):t=function u_(n,e){const{x:t=null,y:i=null}=n||{},s=e.points,r=[];return e.segments.forEach(({start:c,end:d})=>{d=Al(c,d,s);const m=s[c],u=s[d];null!==i?(r.push({x:m.x,y:i}),r.push({x:u.x,y:i})):null!==t&&(r.push({x:t,y:m.y}),r.push({x:t,y:u.y}))}),r}(n,e),t.length?new ls({points:t,options:{tension:0},_loop:i,_fullLoop:i}):null}function ph(n){return n&&!1!==n.fill}function p_(n,e,t){let s=n[e].fill;const r=[e];let c;if(!t)return s;for(;!1!==s&&-1===r.indexOf(s);){if(!Ft(s))return s;if(c=n[s],!c)return!1;if(c.visible)return s;r.push(s),s=c.fill}return!1}function f_(n,e,t){const i=function b_(n){const e=n.options,t=e.fill;let i=K(t&&t.target,t);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(n);if(ct(i))return!isNaN(i.value)&&i;let s=parseFloat(i);return Ft(s)&&Math.floor(s)===s?function g_(n,e,t,i){return("-"===n||"+"===n)&&(t=e+t),!(t===e||t<0||t>=i)&&t}(i[0],e,s,t):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function y_(n,e,t){const i=[];for(let s=0;s=0;--c){const d=s[c].$filler;!d||(d.line.updateControlPoints(r,d.axis),i&&d.fill&&Dl(n.ctx,d,r))}},beforeDatasetsDraw(n,e,t){if("beforeDatasetsDraw"!==t.drawTime)return;const i=n.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const r=i[s].$filler;ph(r)&&Dl(n.ctx,r,n.chartArea)}},beforeDatasetDraw(n,e,t){const i=e.meta.$filler;!ph(i)||"beforeDatasetDraw"!==t.drawTime||Dl(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xh=(n,e)=>{let{boxHeight:t=e,boxWidth:i=e}=n;return n.usePointStyle&&(t=Math.min(t,e),i=n.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:t,itemHeight:Math.max(e,t)}};class wh extends ai{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,i){this.maxWidth=e,this.maxHeight=t,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Ct(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(i=>e.filter(i,this.chart.data))),e.sort&&(t=t.sort((i,s)=>e.sort(i,s,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const i=e.labels,s=Vt(i.font),r=s.size,c=this._computeTitleHeight(),{boxWidth:d,itemHeight:m}=xh(i,r);let u,f;t.font=s.string,this.isHorizontal()?(u=this.maxWidth,f=this._fitRows(c,r,d,m)+10):(f=this.maxHeight,u=this._fitCols(c,s,d,m)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(f,e.maxHeight||this.maxHeight)}_fitRows(e,t,i,s){const{ctx:r,maxWidth:c,options:{labels:{padding:d}}}=this,m=this.legendHitBoxes=[],u=this.lineWidths=[0],f=s+d;let _=e;r.textAlign="left",r.textBaseline="middle";let v=-1,x=-f;return this.legendItems.forEach((w,C)=>{const k=i+t/2+r.measureText(w.text).width;(0===C||u[u.length-1]+k+2*d>c)&&(_+=f,u[u.length-(C>0?0:1)]=0,x+=f,v++),m[C]={left:0,top:x,row:v,width:k,height:s},u[u.length-1]+=k+d}),_}_fitCols(e,t,i,s){const{ctx:r,maxHeight:c,options:{labels:{padding:d}}}=this,m=this.legendHitBoxes=[],u=this.columnSizes=[],f=c-e;let _=d,v=0,x=0,w=0,C=0;return this.legendItems.forEach((k,P)=>{const{itemWidth:O,itemHeight:R}=function I_(n,e,t,i,s){const r=function L_(n,e,t,i){let s=n.text;return s&&"string"!=typeof s&&(s=s.reduce((r,c)=>r.length>c.length?r:c)),e+t.size/2+i.measureText(s).width}(i,n,e,t),c=function R_(n,e,t){let i=n;return"string"!=typeof e.text&&(i=yh(e,t)),i}(s,i,e.lineHeight);return{itemWidth:r,itemHeight:c}}(i,t,r,k,s);P>0&&x+R+2*d>f&&(_+=v+d,u.push({width:v,height:x}),w+=v+d,C++,v=x=0),m[P]={left:w,top:x,col:C,width:O,height:R},v=Math.max(v,O),x+=R+d}),_+=v,u.push({width:v,height:x}),_}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:s},rtl:r}}=this,c=$n(r,this.left,this.width);if(this.isHorizontal()){let d=0,m=ne(i,this.left+s,this.right-this.lineWidths[d]);for(const u of t)d!==u.row&&(d=u.row,m=ne(i,this.left+s,this.right-this.lineWidths[d])),u.top+=this.top+e+s,u.left=c.leftForLtr(c.x(m),u.width),m+=u.width+s}else{let d=0,m=ne(i,this.top+e+s,this.bottom-this.columnSizes[d].height);for(const u of t)u.col!==d&&(d=u.col,m=ne(i,this.top+e+s,this.bottom-this.columnSizes[d].height)),u.top=m,u.left+=this.left+s,u.left=c.leftForLtr(c.x(u.left),u.width),m+=u.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Ba(e,this),this._draw(),Na(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:i,ctx:s}=this,{align:r,labels:c}=e,d=Bt.color,m=$n(e.rtl,this.left,this.width),u=Vt(c.font),{padding:f}=c,_=u.size,v=_/2;let x;this.drawTitle(),s.textAlign=m.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=u.string;const{boxWidth:w,boxHeight:C,itemHeight:k}=xh(c,_),R=this.isHorizontal(),E=this._computeTitleHeight();x=R?{x:ne(r,this.left+f,this.right-i[0]),y:this.top+f+E,line:0}:{x:this.left+f,y:ne(r,this.top+E+f,this.bottom-t[0].height),line:0},nd(this.ctx,e.textDirection);const I=k+f;this.legendItems.forEach((Z,z)=>{s.strokeStyle=Z.fontColor,s.fillStyle=Z.fontColor;const U=s.measureText(Z.text).width,G=m.textAlign(Z.textAlign||(Z.textAlign=c.textAlign)),X=w+v+U;let nt=x.x,dt=x.y;m.setWidth(this.width),R?z>0&&nt+X+f>this.right&&(dt=x.y+=I,x.line++,nt=x.x=ne(r,this.left+f,this.right-i[x.line])):z>0&&dt+I>this.bottom&&(nt=x.x=nt+t[x.line].width+f,x.line++,dt=x.y=ne(r,this.top+E+f,this.bottom-t[x.line].height)),function(Z,z,U){if(isNaN(w)||w<=0||isNaN(C)||C<0)return;s.save();const G=K(U.lineWidth,1);if(s.fillStyle=K(U.fillStyle,d),s.lineCap=K(U.lineCap,"butt"),s.lineDashOffset=K(U.lineDashOffset,0),s.lineJoin=K(U.lineJoin,"miter"),s.lineWidth=G,s.strokeStyle=K(U.strokeStyle,d),s.setLineDash(K(U.lineDash,[])),c.usePointStyle){const X={radius:C*Math.SQRT2/2,pointStyle:U.pointStyle,rotation:U.rotation,borderWidth:G},nt=m.xPlus(Z,w/2);Yc(s,X,nt,z+v,c.pointStyleWidth&&w)}else{const X=z+Math.max((_-C)/2,0),nt=m.leftForLtr(Z,w),dt=sn(U.borderRadius);s.beginPath(),Object.values(dt).some(Kt=>0!==Kt)?Ko(s,{x:nt,y:X,w,h:C,radius:dt}):s.rect(nt,X,w,C),s.fill(),0!==G&&s.stroke()}s.restore()}(m.x(nt),dt,Z),nt=((n,e,t,i)=>n===(i?"left":"right")?t:"center"===n?(e+t)/2:e)(G,nt+w+v,R?nt+X:this.right,e.rtl),function(Z,z,U){on(s,U.text,Z,z+k/2,u,{strikethrough:U.hidden,textAlign:m.textAlign(U.textAlign)})}(m.x(nt),dt,Z),R?x.x+=X+f:x.y+="string"!=typeof Z.text?yh(Z,u.lineHeight):I}),od(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,i=Vt(t.font),s=oe(t.padding);if(!t.display)return;const r=$n(e.rtl,this.left,this.width),c=this.ctx,d=t.position,u=s.top+i.size/2;let f,_=this.left,v=this.width;if(this.isHorizontal())v=Math.max(...this.lineWidths),f=this.top+u,_=ne(e.align,_,this.right-v);else{const w=this.columnSizes.reduce((C,k)=>Math.max(C,k.height),0);f=u+ne(e.align,this.top,this.bottom-w-e.labels.padding-this._computeTitleHeight())}const x=ne(d,_,_+v);c.textAlign=r.textAlign(Xr(d)),c.textBaseline="middle",c.strokeStyle=t.color,c.fillStyle=t.color,c.font=i.string,on(c,t.text,x,f,i)}_computeTitleHeight(){const e=this.options.title,t=Vt(e.font),i=oe(e.padding);return e.display?t.lineHeight+i.height:0}_getLegendItemAt(e,t){let i,s,r;if(ii(e,this.left,this.right)&&ii(t,this.top,this.bottom))for(r=this.legendHitBoxes,i=0;inull!==n&&null!==e&&n.datasetIndex===e.datasetIndex&&n.index===e.index)(s,i);s&&!r&&Ct(t.onLeave,[e,s,this],this),this._hoveredItem=i,i&&!r&&Ct(t.onHover,[e,i,this],this)}else i&&Ct(t.onClick,[e,i,this],this)}}function yh(n,e){return e*(n.text?n.text.length+.5:0)}var Ch={id:"legend",_element:wh,start(n,e,t){const i=n.legend=new wh({ctx:n.ctx,options:t,chart:n});se.configure(n,i,t),se.addBox(n,i)},stop(n){se.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,e,t){const i=n.legend;se.configure(n,i,t),i.options=t},afterUpdate(n){const e=n.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(n,e){e.replay||n.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,e,t){const i=e.datasetIndex,s=t.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const e=n.data.datasets,{labels:{usePointStyle:t,pointStyle:i,textAlign:s,color:r,useBorderRadius:c,borderRadius:d}}=n.legend.options;return n._getSortedDatasetMetas().map(m=>{const u=m.controller.getStyle(t?0:void 0),f=oe(u.borderWidth);return{text:e[m.index].label,fillStyle:u.backgroundColor,fontColor:r,hidden:!m.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:u.borderColor,pointStyle:i||u.pointStyle,rotation:u.rotation,textAlign:s||u.textAlign,borderRadius:c&&(d||u.borderRadius),datasetIndex:m.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class Ol extends ai{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const s=Tt(i.text)?i.text.length:1;this._padding=oe(i.padding);const r=s*Vt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:i,bottom:s,right:r,options:c}=this,d=c.align;let u,f,_,m=0;return this.isHorizontal()?(f=ne(d,i,r),_=t+e,u=r-i):("left"===c.position?(f=i+e,_=ne(d,s,t),m=-.5*Pt):(f=r-e,_=ne(d,t,s),m=.5*Pt),u=s-t),{titleX:f,titleY:_,maxWidth:u,rotation:m}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const i=Vt(t.font),r=i.lineHeight/2+this._padding.top,{titleX:c,titleY:d,maxWidth:m,rotation:u}=this._drawArgs(r);on(e,t.text,0,0,i,{color:t.color,maxWidth:m,rotation:u,textAlign:Xr(t.align),textBaseline:"middle",translation:[c,d]})}}var kh={id:"title",_element:Ol,start(n,e,t){!function F_(n,e){const t=new Ol({ctx:n.ctx,options:e,chart:n});se.configure(n,t,e),se.addBox(n,t),n.titleBlock=t}(n,t)},stop(n){se.removeBox(n,n.titleBlock),delete n.titleBlock},beforeUpdate(n,e,t){const i=n.titleBlock;se.configure(n,i,t),i.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const cs={average(n){if(!n.length)return!1;let e,t,i=0,s=0,r=0;for(e=0,t=n.length;e-1?n.split("\n"):n}function z_(n,e){const{element:t,datasetIndex:i,index:s}=e,r=n.getDatasetMeta(i).controller,{label:c,value:d}=r.getLabelAndValue(s);return{chart:n,label:c,parsed:r.getParsed(s),raw:n.data.datasets[i].data[s],formattedValue:d,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:t}}function Mh(n,e){const t=n.chart.ctx,{body:i,footer:s,title:r}=n,{boxWidth:c,boxHeight:d}=e,m=Vt(e.bodyFont),u=Vt(e.titleFont),f=Vt(e.footerFont),_=r.length,v=s.length,x=i.length,w=oe(e.padding);let C=w.height,k=0,P=i.reduce((E,I)=>E+I.before.length+I.lines.length+I.after.length,0);P+=n.beforeBody.length+n.afterBody.length,_&&(C+=_*u.lineHeight+(_-1)*e.titleSpacing+e.titleMarginBottom),P&&(C+=x*(e.displayColors?Math.max(d,m.lineHeight):m.lineHeight)+(P-x)*m.lineHeight+(P-1)*e.bodySpacing),v&&(C+=e.footerMarginTop+v*f.lineHeight+(v-1)*e.footerSpacing);let O=0;const R=function(E){k=Math.max(k,t.measureText(E).width+O)};return t.save(),t.font=u.string,bt(n.title,R),t.font=m.string,bt(n.beforeBody.concat(n.afterBody),R),O=e.displayColors?c+2+e.boxPadding:0,bt(i,E=>{bt(E.before,R),bt(E.lines,R),bt(E.after,R)}),O=0,t.font=f.string,bt(n.footer,R),t.restore(),k+=w.width,{width:k,height:C}}function H_(n,e,t,i){const{x:s,width:r}=t,{width:c,chartArea:{left:d,right:m}}=n;let u="center";return"center"===i?u=s<=(d+m)/2?"left":"right":s<=r/2?u="left":s>=c-r/2&&(u="right"),function N_(n,e,t,i){const{x:s,width:r}=i,c=t.caretSize+t.caretPadding;if("left"===n&&s+r+c>e.width||"right"===n&&s-r-c<0)return!0}(u,n,e,t)&&(u="center"),u}function Th(n,e,t){const i=t.yAlign||e.yAlign||function B_(n,e){const{y:t,height:i}=e;return tn.height-i/2?"bottom":"center"}(n,t);return{xAlign:t.xAlign||e.xAlign||H_(n,e,t,i),yAlign:i}}function Sh(n,e,t,i){const{caretSize:s,caretPadding:r,cornerRadius:c}=n,{xAlign:d,yAlign:m}=t,u=s+r,{topLeft:f,topRight:_,bottomLeft:v,bottomRight:x}=sn(c);let w=function U_(n,e){let{x:t,width:i}=n;return"right"===e?t-=i:"center"===e&&(t-=i/2),t}(e,d);const C=function q_(n,e,t){let{y:i,height:s}=n;return"top"===e?i+=t:i-="bottom"===e?s+t:s/2,i}(e,m,u);return"center"===m?"left"===d?w+=u:"right"===d&&(w-=u):"left"===d?w-=Math.max(f,v)+s:"right"===d&&(w+=Math.max(_,x)+s),{x:Wt(w,0,i.width-e.width),y:Wt(C,0,i.height-e.height)}}function er(n,e,t){const i=oe(t.padding);return"center"===e?n.x+n.width/2:"right"===e?n.x+n.width-i.right:n.x+i.left}function Ph(n){return je([],ri(n))}function Ah(n,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}const Dh={beforeTitle:ei,title(n){if(n.length>0){const e=n[0],t=e.chart.data.labels,i=t?t.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex"u"?Dh[e].call(t,i):s}class Oh extends ai{static positioners=cs;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&t.options.animation&&i.animations,r=new md(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function Y_(n,e,t){return Ti(n,{tooltip:e,tooltipItems:t,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:i}=t,s=ue(i,"beforeTitle",this,e),r=ue(i,"title",this,e),c=ue(i,"afterTitle",this,e);let d=[];return d=je(d,ri(s)),d=je(d,ri(r)),d=je(d,ri(c)),d}getBeforeBody(e,t){return Ph(ue(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:i}=t,s=[];return bt(e,r=>{const c={before:[],lines:[],after:[]},d=Ah(i,r);je(c.before,ri(ue(d,"beforeLabel",this,r))),je(c.lines,ue(d,"label",this,r)),je(c.after,ri(ue(d,"afterLabel",this,r))),s.push(c)}),s}getAfterBody(e,t){return Ph(ue(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:i}=t,s=ue(i,"beforeFooter",this,e),r=ue(i,"footer",this,e),c=ue(i,"afterFooter",this,e);let d=[];return d=je(d,ri(s)),d=je(d,ri(r)),d=je(d,ri(c)),d}_createItems(e){const t=this._active,i=this.chart.data,s=[],r=[],c=[];let m,u,d=[];for(m=0,u=t.length;me.filter(f,_,v,i))),e.itemSort&&(d=d.sort((f,_)=>e.itemSort(f,_,i))),bt(d,f=>{const _=Ah(e.callbacks,f);s.push(ue(_,"labelColor",this,f)),r.push(ue(_,"labelPointStyle",this,f)),c.push(ue(_,"labelTextColor",this,f))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=c,this.dataPoints=d,d}update(e,t){const i=this.options.setContext(this.getContext()),s=this._active;let r,c=[];if(s.length){const d=cs[i.position].call(this,s,this._eventPosition);c=this._createItems(i),this.title=this.getTitle(c,i),this.beforeBody=this.getBeforeBody(c,i),this.body=this.getBody(c,i),this.afterBody=this.getAfterBody(c,i),this.footer=this.getFooter(c,i);const m=this._size=Mh(this,i),u=Object.assign({},d,m),f=Th(this.chart,i,u),_=Sh(i,u,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:_.x,y:_.y,width:m.width,height:m.height,caretX:d.x,caretY:d.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=c,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,i,s){const r=this.getCaretPosition(e,i,s);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,i){const{xAlign:s,yAlign:r}=this,{caretSize:c,cornerRadius:d}=i,{topLeft:m,topRight:u,bottomLeft:f,bottomRight:_}=sn(d),{x:v,y:x}=e,{width:w,height:C}=t;let k,P,O,R,E,I;return"center"===r?(E=x+C/2,"left"===s?(k=v,P=k-c,R=E+c,I=E-c):(k=v+w,P=k+c,R=E-c,I=E+c),O=k):(P="left"===s?v+Math.max(m,f)+c:"right"===s?v+w-Math.max(u,_)-c:this.caretX,"top"===r?(R=x,E=R-c,k=P-c,O=P+c):(R=x+C,E=R+c,k=P+c,O=P-c),I=R),{x1:k,x2:P,x3:O,y1:R,y2:E,y3:I}}drawTitle(e,t,i){const s=this.title,r=s.length;let c,d,m;if(r){const u=$n(i.rtl,this.x,this.width);for(e.x=er(this,i.titleAlign,i),t.textAlign=u.textAlign(i.titleAlign),t.textBaseline="middle",c=Vt(i.titleFont),d=i.titleSpacing,t.fillStyle=i.titleColor,t.font=c.string,m=0;m0!==R)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Ko(e,{x:k,y:C,w:u,h:m,radius:O}),e.fill(),e.stroke(),e.fillStyle=c.backgroundColor,e.beginPath(),Ko(e,{x:P,y:C+1,w:u-2,h:m-2,radius:O}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(k,C,u,m),e.strokeRect(k,C,u,m),e.fillStyle=c.backgroundColor,e.fillRect(P,C+1,u-2,m-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,t,i){const{body:s}=this,{bodySpacing:r,bodyAlign:c,displayColors:d,boxHeight:m,boxWidth:u,boxPadding:f}=i,_=Vt(i.bodyFont);let v=_.lineHeight,x=0;const w=$n(i.rtl,this.x,this.width),C=function(U){t.fillText(U,w.x(e.x+x),e.y+v/2),e.y+=v+r},k=w.textAlign(c);let P,O,R,E,I,Z,z;for(t.textAlign=c,t.textBaseline="middle",t.font=_.string,e.x=er(this,k,i),t.fillStyle=i.bodyColor,bt(this.beforeBody,C),x=d&&"right"!==k?"center"===c?u/2+f:u+2+f:0,E=0,Z=s.length;E0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const c=cs[e.position].call(this,this._active,this._eventPosition);if(!c)return;const d=this._size=Mh(this,e),m=Object.assign({},c,this._size),u=Th(t,e,m),f=Sh(e,m,u,t);(s._to!==f.x||r._to!==f.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=d.width,this.height=d.height,this.caretX=c.x,this.caretY=c.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(t);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const c=oe(t.padding);t.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,t),nd(e,t.textDirection),r.y+=c.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),od(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const i=this._active,s=e.map(({datasetIndex:d,index:m})=>{const u=this.chart.getDatasetMeta(d);if(!u)throw new Error("Cannot find a dataset at index "+d);return{datasetIndex:d,element:u.data[m],index:m}}),r=!Pa(i,s),c=this._positionChanged(s,t);(r||c)&&(this._active=s,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,i=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],c=this._getActiveElements(e,r,t,i),d=this._positionChanged(c,e),m=t||!Pa(c,r)||d;return m&&(this._active=c,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),m}_getActiveElements(e,t,i,s){const r=this.options;if("mouseout"===e.type)return[];if(!s)return t;const c=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&c.reverse(),c}_positionChanged(e,t){const{caretX:i,caretY:s,options:r}=this,c=cs[r.position].call(this,e,t);return!1!==c&&(i!==c.x||s!==c.y)}}var Ih={id:"tooltip",_element:Oh,positioners:cs,afterInit(n,e,t){t&&(n.tooltip=new Oh({chart:n,options:t}))},beforeUpdate(n,e,t){n.tooltip&&n.tooltip.initialize(t)},reset(n,e,t){n.tooltip&&n.tooltip.initialize(t)},afterDraw(n){const e=n.tooltip;if(e&&e._willRender()){const t={tooltip:e};if(!1===n.notifyPlugins("beforeTooltipDraw",{...t,cancelable:!0}))return;e.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",t)}},afterEvent(n,e){n.tooltip&&n.tooltip.handleEvent(e.event,e.replay,e.inChartArea)&&(e.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,e)=>e.bodyFont.size,boxWidth:(n,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Dh},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>"filter"!==n&&"itemSort"!==n&&"external"!==n,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Lh(n){const e=this.getLabels();return n>=0&&nnull===n?null:Wt(Math.round(n),0,e))(t=isFinite(t)&&i[t]===e?t:function j_(n,e,t,i){const s=n.indexOf(e);return-1===s?((n,e,t,i)=>("string"==typeof e?(t=n.push(e)-1,i.unshift({index:t,label:e})):isNaN(e)&&(t=null),t))(n,e,t,i):s!==n.lastIndexOf(e)?t:s}(i,e,K(t,e),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(i=0),t||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const e=this.min,t=this.max,i=this.options.offset,s=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let c=e;c<=t;c++)s.push({value:c});return s}getLabelForValue(e){return Lh.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function Eh(n,e,{horizontal:t,minRotation:i}){const s=Ee(i),r=(t?Math.sin(s):Math.cos(s))||.001;return Math.min(e/r,.75*e*(""+n).length)}class ir extends dn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return pt(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const c=m=>s=t?s:m,d=m=>r=i?r:m;if(e){const m=Ge(s),u=Ge(r);m<0&&u<0?d(0):m>0&&u>0&&c(0)}if(s===r){let m=0===r?1:Math.abs(.05*r);d(r+m),e||c(s-m)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let s,{maxTicksLimit:t,stepSize:i}=e;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),t=t||11),t&&(s=Math.min(t,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const c=function J_(n,e){const t=[],{bounds:s,step:r,min:c,max:d,precision:m,count:u,maxTicks:f,maxDigits:_,includeBounds:v}=n,x=r||1,w=f-1,{min:C,max:k}=e,P=!pt(c),O=!pt(d),R=!pt(u),E=(k-C)/(_+1);let Z,z,U,G,I=_c((k-C)/w/x)*x;if(I<1e-14&&!P&&!O)return[{value:C},{value:k}];G=Math.ceil(k/I)-Math.floor(C/I),G>w&&(I=_c(G*I/w/x)*x),pt(m)||(Z=Math.pow(10,m),I=Math.ceil(I*Z)/Z),"ticks"===s?(z=Math.floor(C/I)*I,U=Math.ceil(k/I)*I):(z=C,U=k),P&&O&&r&&function wu(n,e){const t=Math.round(n);return t-e<=n&&t+e>=n}((d-c)/r,I/1e3)?(G=Math.round(Math.min((d-c)/I,f)),I=(d-c)/G,z=c,U=d):R?(z=P?c:z,U=O?d:U,G=u-1,I=(U-z)/G):(G=(U-z)/I,G=Go(G,Math.round(G),I/1e3)?Math.round(G):Math.ceil(G));const X=Math.max(bc(I),bc(z));Z=Math.pow(10,pt(m)?X:m),z=Math.round(z*Z)/Z,U=Math.round(U*Z)/Z;let nt=0;for(P&&(v&&z!==c?(t.push({value:c}),z=e?t[i]:t[s]]=!0}}else n[e]=!0}function Yh(n,e,t){const i=[],s={},r=e.length;let c,d;for(c=0;c=0&&(e[m].major=!0);return e}(n,i,s,t):i}class or extends dn{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const i=e.time||(e.time={}),s=this._adapter=new Af__date(e.adapters.date);s.init(t),Yo(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:Hh(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,i=e.time.unit||"day";let{min:s,max:r,minDefined:c,maxDefined:d}=this.getUserBounds();function m(u){!c&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!d&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!c||!d)&&(m(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&m(this.getMinMax(!1))),s=Ft(s)&&!isNaN(s)?s:+t.startOf(Date.now(),i),r=Ft(r)&&!isNaN(r)?r:+t.endOf(Date.now(),i)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],i=e[e.length-1]),{min:t,max:i}}buildTicks(){const e=this.options,t=e.time,i=e.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,d=function Mu(n,e,t){let i=0,s=n.length;for(;ii&&n[s-1]>t;)s--;return i>0||s=pe.indexOf(t);r--){const c=pe[r];if(nr[c].common&&n._adapter.diff(s,i,c)>=e-1)return c}return pe[t?pe.indexOf(t):0]}(this,d.length,t.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function mv(n){for(let e=pe.indexOf(n)+1,t=pe.length;e+e.value))}initOffsets(e=[]){let s,r,t=0,i=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),t=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),i=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const c=e.length<3?.5:.25;t=Wt(t,0,c),i=Wt(i,0,c),this._offsets={start:t,end:i,factor:1/(t+1+i)}}_generate(){const e=this._adapter,t=this.min,i=this.max,s=this.options,r=s.time,c=r.unit||Uh(r.minUnit,t,i,this._getLabelCapacity(t)),d=K(s.ticks.stepSize,1),m="week"===c&&r.isoWeekday,u=jn(m)||!0===m,f={};let v,x,_=t;if(u&&(_=+e.startOf(_,"isoWeek",m)),_=+e.startOf(_,u?"day":c),e.diff(i,t,c)>1e5*d)throw new Error(t+" and "+i+" are too far apart with stepSize of "+d+" "+c);const w="data"===s.ticks.source&&this.getDataTimestamps();for(v=_,x=0;vC-k).map(C=>+C)}getLabelForValue(e){const i=this.options.time;return this._adapter.format(e,i.tooltipFormat?i.tooltipFormat:i.displayFormats.datetime)}_tickFormatFunction(e,t,i,s){const r=this.options,c=r.ticks.callback;if(c)return Ct(c,[e,t,i],this);const d=r.time.displayFormats,m=this._unit,u=this._majorUnit,_=u&&d[u],v=i[t];return this._adapter.format(e,s||(u&&_&&v&&v.major?_:m&&d[m]))}generateTickLabels(e){let t,i,s;for(t=0,i=e.length;t0?d:1}getDataTimestamps(){let t,i,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,i=s.length;t{class n{constructor(){this.textLocation=null,Cl.register(ls,Md,ih,oh,kd,Rh,hh,bh,Ch,kh,Ih,Fh,_l,Kd,or)}ngOnInit(){this.createCharts(),this.instanceList.subscribe(t=>{var i;this.setLocation(null!==(i=t.cluster_location)&&void 0!==i?i:""),this.updateCharts(t)})}ngAfterViewInit(){const t=Wr.map("map").setView([this.longitude,this.latitude],14);Wr.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors"}).addTo(t),Wr.circle([this.longitude,this.latitude],{color:"blue",fillColor:"lightblue",fillOpacity:.5,radius:this.radius}).addTo(t).bindPopup("A Circle on the Map.")}setLocation(t){if(t)if(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?),\s*([-+]?(?:\d+)(?:\.\d+)?)$/.test(t)){const s=t.split(",");this.longitude=parseFloat(s[0]),this.latitude=parseFloat(s[1]),this.radius=parseFloat(s[2]),console.log(this.radius)}else this.textLocation=t;else this.textLocation="No location found"}updateCharts(t){let i=t.memory_history.map(c=>{const d=new Date(c.timestamp);return`${d.getHours().toString().padStart(2,"0")}:${d.getMinutes().toString().padStart(2,"0")}:${d.getSeconds().toString().padStart(2,"0")}`});if(100===i.length){const c=[];for(let d=0;d<10;d++)c.push(i[10*d]);i=c}else{const c=i.length-1;i=i.slice(c-10,c)}console.log(i);const s=t.cpu_history.map(c=>Number.parseFloat(c.value));this.cpuChart.data.datasets.forEach(c=>{c.data=s}),this.cpuChart.data.labels=i,this.cpuChart.update();const r=t.memory_history.map(c=>Number.parseFloat(c.value)/1e6);this.memoryChart.data.datasets.forEach(c=>{c.data=r}),this.memoryChart.data.labels=i,this.memoryChart.update()}createCharts(){console.log("Create"),this.cpuChart=new Cl("myChartCPU",{type:"line",data:{labels:[],datasets:[{label:"CPU usage [%]",data:[0,0],fill:!0,borderColor:"rgba(90,246,93,0.8)",tension:.1}]},options:{plugins:{filler:{propagate:!1}},interaction:{intersect:!1},scales:{x:{ticks:{autoSkip:!0,maxTicksLimit:3}}}}}),this.memoryChart=new Cl("myChartMemory",{type:"line",data:{labels:[],datasets:[{label:"Memory usage [mB]",data:[0,0],fill:!0,borderColor:"rgb(75, 192, 192)",tension:.1}]},options:{plugins:{filler:{propagate:!1}},interaction:{intersect:!1},scales:{x:{ticks:{autoSkip:!0,maxTicksLimit:3}}}}})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-chart"]],inputs:{instanceList:"instanceList"},decls:10,vars:3,consts:[["rel","stylesheet","href","https://cdn.jsdelivr.net/npm/ol@v7.1.0/ol.css"],[1,"w3-row","graphs"],[1,"w3-col","l4","m4"],["id","myChartCPU"],["id","myChartMemory"],["class","map","id","map",4,"ngIf"],[4,"ngIf"],["id","map",1,"map"]],template:function(t,i){1&t&&(o._UZ(0,"link",0),o.TgZ(1,"div",1)(2,"div",2),o._UZ(3,"canvas",3),o.qZA(),o.TgZ(4,"div",2),o._UZ(5,"canvas",4),o.qZA(),o.TgZ(6,"div",2),o.YNc(7,_v,1,0,"div",5),o.YNc(8,vv,2,0,"h3",6),o.YNc(9,bv,2,1,"p",6),o.qZA()()),2&t&&(o.xp6(7),o.Q6J("ngIf",!i.textLocation),o.xp6(1),o.Q6J("ngIf",i.textLocation),o.xp6(1),o.Q6J("ngIf",i.textLocation))},dependencies:[B.O5],styles:["#myChartCPU[_ngcontent-%COMP%], #myChartMemory[_ngcontent-%COMP%]{height:20vh!important;width:100%!important}.graphs[_ngcontent-%COMP%]{display:flex;align-items:center}.map[_ngcontent-%COMP%]{height:30vh}"]}),n})();function wv(n,e){if(1&n&&(o.TgZ(0,"div",7)(1,"p"),o._uU(2),o.ALo(3,"async"),o.qZA()()),2&n){const t=o.oxw();o.xp6(2),o.Oqu(o.lcZ(3,1,t.instance).status_detail)}}let yv=(()=>{class n{constructor(t,i,s){this.dialogRef=t,this.data=i,this.store=s,this.alive=!0,this.instance=this.store.select(Sa.z).pipe((0,Ii.U)(r=>{const c=r.find(d=>d._id.$oid===this.service._id.$oid);return c&&c.instance_list.length>0?c.instance_list.find(d=>d.instance_number===this.instanceNumber):null})),this.service=i.service,this.instanceNumber=i.instanceNumber,console.log(i)}ngOnInit(){this.refreshData(),this.timerSubscription=(0,pn.H)(15e3,15e3).pipe((0,du.o)(()=>this.alive)).subscribe(()=>this.refreshData()),this.instance.subscribe(t=>console.log(t))}ngOnDestroy(){this.alive=!1,this.timerSubscription.unsubscribe()}refreshData(){this.store.dispatch((0,ut.hx)({serviceId:this.service._id.$oid})),console.log("Update")}closeDialog(){this.dialogRef.close({event:"Cancel"})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.so),o.Y36(W.WI,8),o.Y36(vt.yh))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dialog-content-example-dialog"]],decls:27,vars:16,consts:[["mat-dialog-title",""],[1,"mat-typography","status-dialog"],["class","alert alert-info width70",4,"ngIf"],[3,"instanceList"],[1,"information"],[1,"alignRight"],["color","accent","mat-flat-button","",3,"click"],[1,"alert","alert-info","width70"]],template:function(t,i){1&t&&(o.TgZ(0,"h2",0),o._uU(1),o.ALo(2,"async"),o.qZA(),o.TgZ(3,"mat-dialog-content",1),o.YNc(4,wv,4,3,"div",2),o.ALo(5,"async"),o.TgZ(6,"div"),o._UZ(7,"app-chart",3),o.TgZ(8,"div",4)(9,"p")(10,"b"),o._uU(11,"Disk:"),o.qZA(),o._uU(12),o.ALo(13,"async"),o.qZA(),o.TgZ(14,"p")(15,"b"),o._uU(16,"Cluster:"),o.qZA(),o._uU(17),o.ALo(18,"async"),o.qZA(),o.TgZ(19,"p")(20,"b"),o._uU(21,"Node IP:"),o.qZA(),o._uU(22),o.ALo(23,"async"),o.qZA()()()(),o.TgZ(24,"mat-dialog-actions",5)(25,"button",6),o.NdJ("click",function(){return i.closeDialog()}),o._uU(26,"Close"),o.qZA()()),2&t&&(o.xp6(1),o.hij("Status: ",o.lcZ(2,6,i.instance).status,""),o.xp6(3),o.Q6J("ngIf",o.lcZ(5,8,i.instance).status_detail),o.xp6(3),o.Q6J("instanceList",i.instance),o.xp6(5),o.hij(" ",o.lcZ(13,10,i.instance).disk,""),o.xp6(5),o.hij(" ",o.lcZ(18,12,i.instance).cluster_id,""),o.xp6(5),o.hij(" ",o.lcZ(23,14,i.instance).publicip,""))},dependencies:[B.O5,et.lW,W.uh,W.xY,W.H8,xv,B.Ov],styles:[".full-width[_ngcontent-%COMP%]{width:100%}",".alignRight[_ngcontent-%COMP%]{text-align:right}","h2[_ngcontent-%COMP%]{min-width:70vw}",".information[_ngcontent-%COMP%]{padding-top:10px}","status-dialog[_ngcontent-%COMP%]{min-width:80vw}"]}),n})();const Cv=["determinateSpinner"];function kv(n,e){if(1&n&&(o.O4$(),o.TgZ(0,"svg",11),o._UZ(1,"circle",12),o.qZA()),2&n){const t=o.oxw();o.uIk("viewBox",t._viewBox()),o.xp6(1),o.Udp("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeCircumference()/2,"px")("stroke-width",t._circleStrokeWidth(),"%"),o.uIk("r",t._circleRadius())}}const Mv=(0,F.pj)(class{constructor(n){this._elementRef=n}},"primary"),Tv=new o.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Sv(){return{diameter:Gh}}}),Gh=100;let Av=(()=>{class n extends Mv{constructor(t,i,s){super(t),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=Gh,this._noopAnimations="NoopAnimations"===i&&!!s&&!s._forceAnimations,s&&(s.color&&(this.color=this.defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,(0,q.su)(t)))}get diameter(){return this._diameter}set diameter(t){this._diameter=(0,q.su)(t)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=(0,q.su)(t)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const t=2*this._circleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(o.SBq),o.Y36(o.QbO,8),o.Y36(Tv))},n.\u0275cmp=o.Xpm({type:n,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,i){if(1&t&&o.Gf(Cv,5),2&t){let s;o.iGM(s=o.CRH())&&(i._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(t,i){2&t&&(o.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===i.mode?i.value:null)("mode",i.mode),o.Udp("width",i.diameter,"px")("height",i.diameter,"px"),o.ekj("_mat-animation-noopable",i._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===i.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[o.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,i){if(1&t&&(o.YNc(0,kv,2,8,"ng-template",null,0,o.W1O),o.TgZ(2,"div",1,2),o.O4$(),o.TgZ(4,"svg",3),o._UZ(5,"circle",4),o.qZA()(),o.kcU(),o.TgZ(6,"div",5)(7,"div",6)(8,"div",7),o.GkF(9,8),o.qZA(),o.TgZ(10,"div",9),o.GkF(11,8),o.qZA(),o.TgZ(12,"div",10),o.GkF(13,8),o.qZA()()()),2&t){const s=o.MAs(1);o.xp6(4),o.uIk("viewBox",i._viewBox()),o.xp6(1),o.Udp("stroke-dasharray",i._strokeCircumference(),"px")("stroke-dashoffset",i._strokeDashOffset(),"px")("stroke-width",i._circleStrokeWidth(),"%"),o.uIk("r",i._circleRadius()),o.xp6(4),o.Q6J("ngTemplateOutlet",s),o.xp6(2),o.Q6J("ngTemplateOutlet",s),o.xp6(2),o.Q6J("ngTemplateOutlet",s)}},dependencies:[B.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),Dv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[B.ez,F.BQ]}),n})();function Ov(n,e){if(1&n&&(o.TgZ(0,"div",14)(1,"button",24)(2,"mat-icon"),o._uU(3,"fiber_manual_record"),o.qZA()(),o.TgZ(4,"p",25),o._uU(5),o.qZA()()),2&n){const t=o.oxw().$implicit;o.xp6(2),o.Tol(t.status),o.xp6(3),o.Oqu(t.status)}}function Iv(n,e){1&n&&(o.TgZ(0,"div",26),o._UZ(1,"mat-spinner",27),o.qZA()),2&n&&(o.xp6(1),o.Q6J("diameter",30))}function Lv(n,e){1&n&&(o.TgZ(0,"div",28),o._uU(1," No instances of this service. "),o.qZA())}function Rv(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",29)(1,"div",30)(2,"p"),o._uU(3),o.qZA()(),o.TgZ(4,"div",31),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw().$implicit,d=o.oxw(3);return o.KtG(d.openStatusDialog(c,r.instance_number))}),o.TgZ(5,"button",24)(6,"mat-icon"),o._uU(7,"fiber_manual_record"),o.qZA()(),o.TgZ(8,"p",25),o._uU(9),o.qZA()(),o.TgZ(10,"div",32)(11,"button",33),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw().$implicit,d=o.oxw(3);return o.KtG(d.deleteInstance(c,r))}),o.TgZ(12,"mat-icon"),o._uU(13,"delete"),o.qZA()()()()}if(2&n){const t=e.$implicit;o.xp6(3),o.hij("Instance ",t.instance_number,""),o.xp6(3),o.Tol(t.status),o.xp6(3),o.Oqu(t.status)}}const Ev=function(n){return["deploy",n]};function Fv(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"mat-accordion",10)(1,"mat-expansion-panel")(2,"mat-expansion-panel-header",11)(3,"mat-panel-title",12),o._uU(4),o.qZA(),o.TgZ(5,"mat-panel-description",13),o.NdJ("click",function(s){return s.stopPropagation()}),o.TgZ(6,"div",14),o.YNc(7,Ov,6,3,"div",15),o.YNc(8,Iv,2,1,"div",16),o.qZA()(),o.TgZ(9,"div",17),o.NdJ("click",function(s){return s.stopPropagation()}),o.TgZ(10,"button",18)(11,"mat-icon"),o._uU(12,"more_vert"),o.qZA()(),o.TgZ(13,"mat-menu",null,19)(15,"button",20)(16,"mat-icon"),o._uU(17,"edit"),o.qZA(),o._uU(18," Edit "),o.qZA(),o.TgZ(19,"button",21),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw(3);return o.KtG(c.deleteService(r))}),o.TgZ(20,"mat-icon"),o._uU(21,"delete"),o.qZA(),o._uU(22," Delete "),o.qZA(),o.TgZ(23,"button",21),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw(3);return o.KtG(c.deployService(r))}),o.TgZ(24,"mat-icon"),o._uU(25,"send"),o.qZA(),o._uU(26," Deploy "),o.qZA(),o.TgZ(27,"button",21),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw(3);return o.KtG(c.downloadConfig(r))}),o.TgZ(28,"mat-icon"),o._uU(29,"file_download"),o.qZA(),o._uU(30," Download Config "),o.qZA()()()(),o.YNc(31,Lv,2,0,"div",22),o.YNc(32,Rv,14,4,"div",23),o.qZA()()}if(2&n){const t=e.$implicit,i=o.MAs(14),s=o.oxw(3);o.xp6(4),o.hij(" ",t.microservice_name," "),o.xp6(3),o.Q6J("ngIf",t.status&&!s.isLoading),o.xp6(1),o.Q6J("ngIf",s.isLoading),o.xp6(2),o.Q6J("matMenuTriggerFor",i),o.xp6(5),o.Q6J("routerLink",o.VKq(7,Ev,null==t._id?null:t._id.$oid)),o.xp6(16),o.Q6J("ngIf",0===(null==t.instance_list?null:t.instance_list.length)||!t.instance_list),o.xp6(1),o.Q6J("ngForOf",t.instance_list)}}function Zv(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",5),o.YNc(1,Fv,33,9,"mat-accordion",6),o.ALo(2,"async"),o.TgZ(3,"mat-card-actions",7)(4,"button",8)(5,"mat-icon"),o._uU(6,"add_circle"),o.qZA(),o._uU(7," Create New Service "),o.qZA(),o.TgZ(8,"button",9),o.NdJ("click",function(){o.CHM(t);const s=o.oxw(2);return o.KtG(s.deployAllServices())}),o.TgZ(9,"mat-icon"),o._uU(10,"send"),o.qZA(),o._uU(11," Deploy All "),o.qZA()()()}if(2&n){const t=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",o.lcZ(2,1,t.services$))}}function zv(n,e){1&n&&(o.TgZ(0,"div",34)(1,"p"),o._uU(2,"No Service in this application."),o.qZA(),o._UZ(3,"br"),o.TgZ(4,"div",7)(5,"button",35)(6,"mat-icon"),o._uU(7,"add_circle"),o.qZA(),o._uU(8," Create new service "),o.qZA()()())}function Bv(n,e){if(1&n&&(o.TgZ(0,"div")(1,"mat-card-title"),o._uU(2),o.ALo(3,"async"),o.qZA(),o.YNc(4,Zv,12,3,"div",3),o.ALo(5,"async"),o.YNc(6,zv,9,0,"div",4),o.ALo(7,"async"),o.qZA()),2&n){const t=o.oxw();o.xp6(2),o.hij("Application: ",o.lcZ(3,3,t.currentApp$).application_name,""),o.xp6(2),o.Q6J("ngIf",o.lcZ(5,5,t.services$).length>0),o.xp6(2),o.Q6J("ngIf",0===o.lcZ(7,7,t.services$).length)}}let Nv=(()=>{class n{constructor(t,i,s){this.api=t,this.dialog=i,this.store=s,this.currentApp$=this.store.pipe((0,vt.Ys)(Ma.R)),this.services$=this.store.pipe((0,vt.Ys)(Sa.z)),this.appId="",this.isLoading=!1}ngOnInit(){console.log("In Service Overview"),this.currentApp$.pipe((0,Ho.b)(t=>{var i;return this.appId=(null===(i=t?._id)||void 0===i?void 0:i.$oid)||""})).subscribe()}deleteService(t){this.store.dispatch((0,ut.wo)({service:t}))}deleteInstance(t,i){this.api.deleteInstance(t,i).subscribe(),this.store.dispatch((0,ut.U2)({appId:this.appId}))}deployService(t){this.isLoading=!0,this.api.deployService(t).pipe((0,Ho.b)(()=>{""!==this.appId&&setTimeout(()=>{this.isLoading=!1,this.store.dispatch((0,ut.U2)({appId:this.appId}))},5e3)})).subscribe()}deleteServiceWithGraph(t){this.deleteService({_id:{$oid:t}})}openStatusDialog(t,i){this.dialog.open(yv,{data:{service:t,instanceNumber:i}}).afterClosed().subscribe(r=>{console.log(r)})}downloadConfig(t){cu.download(t)}deployAllServices(){this.services$.pipe((0,Jt.q)(1)).subscribe(t=>{t.forEach(i=>{this.deployService(i)})})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Re.s),o.Y36(W.uw),o.Y36(vt.yh))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dev-home"]],decls:4,vars:3,consts:[[1,"content-cards"],["id","content",1,"serviceCard"],[4,"ngIf"],["class","servicesList",4,"ngIf"],["class","content mat-elevation-z8",4,"ngIf"],[1,"servicesList"],["multi","","class","service",4,"ngFor","ngForOf"],[1,"alignEnd"],["id","createService","mat-flat-button","","routerLink","/control/deploy","color","primary"],["mat-flat-button","","type","button","color","primary",3,"click"],["multi","",1,"service"],[1,"disable_ripple"],[1,"w3-col","s4","l5","m4"],[1,"w3-col","s5","w3-right","statusField",3,"click"],[1,"statusField"],["class","statusField",4,"ngIf"],["class","spinner",4,"ngIf"],[1,"w3-col","s1","w3-right",3,"click"],["mat-icon-button","","type","button",3,"matMenuTriggerFor"],["settings","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["class","noInstance",4,"ngIf"],["class","w3-row instance",4,"ngFor","ngForOf"],["mat-icon-button","","type","button",1,"serviceStatus"],[1,"statusText"],[1,"spinner"],[3,"diameter"],[1,"noInstance"],[1,"w3-row","instance"],[1,"w3-col","s6","l5","m5"],[1,"w3-col","l5","m6","s6","statusField",3,"click"],[1,"w3-col","l1","m1","s1","w3-right"],["mat-icon-button","","type","button",3,"click"],[1,"content","mat-elevation-z8"],["id","createServiceEmpty","mat-flat-button","","routerLink","/control/deploy","color","primary"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"mat-card",1),o.YNc(2,Bv,8,9,"div",2),o.ALo(3,"async"),o.qZA()()),2&t&&(o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,i.currentApp$)))},dependencies:[B.sg,B.O5,Q.rH,xn,mt,yn,et.lW,et.RK,Lt.a8,Lt.hq,Lt.n5,le.Hw,Mr,Pn,An,Hi,ea,Av,B.Ov],styles:["mat-card[_ngcontent-%COMP%]{width:100%;font-size:1rem;margin:0}mat-card-title[_ngcontent-%COMP%]{background-color:var(--primary-background);padding:16px;border-radius:10px 10px 0 0;color:#fff}mat-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.content-cards[_ngcontent-%COMP%]{border-radius:10px;margin:16px;display:flex;flex-direction:column;justify-content:center}@media only screen and (min-width: 801px){.content-cards[_ngcontent-%COMP%]{margin-left:32px}}.content[_ngcontent-%COMP%]{height:calc(100vh - 165px);border-radius:0 0 10px 10px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3;align-content:center;flex-wrap:wrap;flex-direction:column}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:2rem;color:#d3d3d3}.w3-col[_ngcontent-%COMP%]{line-height:40px}.statusText[_ngcontent-%COMP%]{display:contents}@media only screen and (max-width: 450px){.statusText[_ngcontent-%COMP%]{display:none}.statusField[_ngcontent-%COMP%]{text-align:center}}.statusField[_ngcontent-%COMP%]{cursor:pointer;align-items:end;display:inline-flex}.statusField[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{align-items:center}.serviceStatus[_ngcontent-%COMP%]{pointer-events:none;color:#000}.serviceStatus[_ngcontent-%COMP%] .NODE_SCHEDULED[_ngcontent-%COMP%], .serviceStatus[_ngcontent-%COMP%] .RUNNING[_ngcontent-%COMP%]{color:green}.mat-expansion-panel[_ngcontent-%COMP%]{margin-bottom:10px;padding:16px}.mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0;background-color:#0000!important}.span.mat-expansion-indicator[_ngcontent-%COMP%]{pointer-events:visiblefill!important}.mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded) .mat-expansion-panel-header[_ngcontent-%COMP%]:hover:not([aria-disabled=true]){background-color:#0000}.disable_ripple[_ngcontent-%COMP%]:hover .disable_ripple[_ngcontent-%COMP%]:active .disable_ripple[_ngcontent-%COMP%]:focus .disable_ripple[_ngcontent-%COMP%]:focus-within{background-color:#0000!important}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{background-color:#0000!important}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{color:#000000de}.instance[_ngcontent-%COMP%]{padding:16px;border-left:2px solid;border-left-color:#adacac;display:flex;align-items:center;background-color:#f3f3f3}.instance[_ngcontent-%COMP%]:hover{background-color:#f1f1f180}.noInstance[_ngcontent-%COMP%]{text-align:center;color:#d3d3d3;font-size:large}.instanceDelete[_ngcontent-%COMP%]{background-color:transparent}.map-container[_ngcontent-%COMP%]{align-content:center;height:140px;width:250px;inset:0}.map-frame[_ngcontent-%COMP%]{border:2px solid black;height:100%}#map[_ngcontent-%COMP%]{top:0;bottom:0;height:100%;width:100%}.alignEnd[_ngcontent-%COMP%]{text-align:end!important;padding:0;justify-content:space-between}.servicesList[_ngcontent-%COMP%]{padding:10px}"]}),n})(),Hv=(()=>{class n{constructor(t){this.router=t}start(){this.router.navigate(["/control"]).then()}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Q.F0))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-help"]],decls:7,vars:0,consts:[[1,"content-cards"],["color","primary","href","https://www.oakestra.io/","mat-button","","mat-flat-button","",1,"button"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"h2"),o._uU(2,"Contact"),o.qZA(),o.TgZ(3,"p"),o._uU(4," If you have found a bug or just have a question about using the system, please write us and we will contact you as soon as possible to solve the problem. "),o.qZA(),o.TgZ(5,"a",1),o._uU(6,"Oakestra Team"),o.qZA()())},dependencies:[et.zs],styles:[".content-cards[_ngcontent-%COMP%]{margin:20px 20px 20px 40px}@media only screen and (max-width: 801px){#startTour[_ngcontent-%COMP%]{display:none}}"]}),n})();var Uv=S(4073);let qv=(()=>{class n{generateService(t,i,s,r,c,d,m){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),i),s),r),c),d),m)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=o.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Vh=".mdc-radio__outer-circle[_ngcontent-%COMP%]{border-color:#000!important}";let Yv=(()=>{class n{constructor(t,i){this.dialogRef=t,this.data=i,this.canViewLatConstrains=!0}onRadioChange(t){this.canViewLatConstrains=1===t.value}cancel(){this.dialogRef.close({event:"Cancel"})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.so),o.Y36(W.WI))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dialog-content-example-dialog"]],decls:38,vars:5,consts:[["mat-dialog-title",""],[1,"mat-typography"],[1,"radioDiv"],["required","",3,"ngModel","ngModelChange"],[1,"w3-col","l6","m6","alignCenter"],["value","latency",1,"blackRadio",3,"change"],["value","geo",1,"blackRadio",3,"change"],[1,"w3-row"],[1,"w3-col","l4","m4","s12","w3-row-padding"],[1,"full-width"],["matInput","","type","number",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","max","100","min","0","type","number",3,"ngModel","ngModelChange"],["color","primary","mat-flat-button","",3,"mat-dialog-close"],["color","accent","mat-flat-button","",3,"click"]],template:function(t,i){1&t&&(o.TgZ(0,"h2",0),o._uU(1,"Connection settings"),o.qZA(),o.TgZ(2,"mat-dialog-content",1)(3,"div",2)(4,"mat-radio-group",3),o.NdJ("ngModelChange",function(r){return i.data.type=r}),o.TgZ(5,"div",4)(6,"mat-radio-button",5),o.NdJ("change",function(r){return i.onRadioChange(r)}),o._uU(7," latency "),o.qZA()(),o.TgZ(8,"div",4)(9,"mat-radio-button",6),o.NdJ("change",function(r){return i.onRadioChange(r)}),o._uU(10,"geo"),o.qZA()()()(),o.TgZ(11,"div",7)(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),o._uU(15,"Threshold"),o.qZA(),o.TgZ(16,"input",10),o.NdJ("ngModelChange",function(r){return i.data.threshold=r}),o.qZA(),o.TgZ(17,"p",11),o._uU(18,"ms\xa0"),o.qZA()()(),o.TgZ(19,"div",8)(20,"mat-form-field",9)(21,"mat-label"),o._uU(22,"Rigidness"),o.qZA(),o.TgZ(23,"input",12),o.NdJ("ngModelChange",function(r){return i.data.rigidness=r}),o.qZA(),o.TgZ(24,"p",11),o._uU(25,"%\xa0"),o.qZA()()(),o.TgZ(26,"div",8)(27,"mat-form-field",9)(28,"mat-label"),o._uU(29,"Convergence Time"),o.qZA(),o.TgZ(30,"input",10),o.NdJ("ngModelChange",function(r){return i.data.convergence_time=r}),o.qZA(),o.TgZ(31,"p",11),o._uU(32,"sec\xa0"),o.qZA()()()()(),o.TgZ(33,"mat-dialog-actions")(34,"button",13),o._uU(35,"Save"),o.qZA(),o.TgZ(36,"button",14),o.NdJ("click",function(){return i.cancel()}),o._uU(37,"Cancel"),o.qZA()()),2&t&&(o.xp6(4),o.Q6J("ngModel",i.data.type),o.xp6(12),o.Q6J("ngModel",i.data.threshold),o.xp6(7),o.Q6J("ngModel",i.data.rigidness),o.xp6(7),o.Q6J("ngModel",i.data.convergence_time),o.xp6(4),o.Q6J("mat-dialog-close",i.data))},dependencies:[T.Fj,T.wV,T.JJ,T.Q7,T.qQ,T.Fd,T.On,et.lW,gt.Nt,A.KE,A.hX,A.R9,ze,at,W.ZT,W.uh,W.xY,W.H8],styles:["radioDiv[_ngcontent-%COMP%]{padding-bottom:32px;margin:20px 0}",Vh,Vh]}),n})();class Ai{}function Gv(n,e){if(1&n&&(o.TgZ(0,"mat-option",8),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.Q6J("value",t._id.$oid),o.xp6(1),o.hij(" ",t.microservice_name," ")}}function Vv(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"mat-form-field")(4,"mat-label"),o._uU(5),o.qZA(),o.TgZ(6,"mat-select"),o.YNc(7,Gv,2,2,"mat-option",6),o.qZA()()(),o.TgZ(8,"button",7),o.NdJ("click",function(){const r=o.CHM(t).index,c=o.oxw();return o.KtG(c.openDialog(r))}),o.TgZ(9,"mat-icon"),o._uU(10,"settings"),o.qZA()(),o.TgZ(11,"button",7),o.NdJ("click",function(){const r=o.CHM(t).index,c=o.oxw();return o.KtG(c.deleteConnection(r))}),o.TgZ(12,"mat-icon"),o._uU(13,"delete"),o.qZA()()()()}if(2&n){const t=e.$implicit,i=o.oxw();o.xp6(5),o.hij("target_microservice_id ",t.target_microservice_id,""),o.xp6(2),o.Q6J("ngForOf",i.dropdownServices)}}let jv=(()=>{class n extends Ai{constructor(t,i){super(),this.dialog=t,this.store=i,this.connectivity=[],this.services$=this.store.pipe((0,vt.Ys)(Sa.z))}ngOnInit(){var t,i;this.connectivity=null!==(i=null===(t=this.service)||void 0===t?void 0:t.connectivity)&&void 0!==i?i:[],this.services$.pipe((0,Ii.U)(s=>this.service?s.filter(r=>r.microserviceID!==this.service.microserviceID):s),(0,Ho.b)(s=>this.dropdownServices=s)).subscribe(),console.log(this.dropdownServices)}addConnectivity(){this.connectivity.push({con_constraints:[],target_microservice_id:""})}deleteConnection(t){this.connectivity.splice(t,1)}openDialog(t){this.dialog.open(Yv,{data:this.connectivity[t]}).afterClosed().subscribe(s=>{console.log(s),this.saveDialogData(s,t)})}saveDialogData(t,i){0===this.connectivity[i].con_constraints.length&&this.connectivity[i].con_constraints.push({type:t.type,threshold:t.threshold,rigidness:t.rigidness,convergence_time:t.convergence_time})}getData(){return{connectivity:this.connectivity}}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.uw),o.Y36(vt.yh))},n.\u0275cmp=o.Xpm({type:n,selectors:[["form-connectivity"]],inputs:{service:"service"},features:[o.qOj],decls:8,vars:1,consts:[[1,"addButtonDiv"],["mat-mini-fab","","type","button",1,"add-btn",3,"click"],["id","contentInside",4,"ngFor","ngForOf"],["id","contentInside"],[1,"w3-row"],[1,"w3-col","l6","m6","s6","w3-row-padding"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","","type","button",3,"click"],[3,"value"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"h4"),o._uU(2,"Connectivity:\xa0"),o.qZA(),o.TgZ(3,"button",1),o.NdJ("click",function(){return i.addConnectivity()}),o.TgZ(4,"mat-icon"),o._uU(5,"add"),o.qZA()()(),o.TgZ(6,"div"),o.YNc(7,Vv,14,2,"div",2),o.qZA()),2&t&&(o.xp6(7),o.Q6J("ngForOf",i.connectivity))},dependencies:[B.sg,et.RK,et.nh,le.Hw,A.KE,A.hX,Me.gD,F.ey],styles:[".connectivityCard[_ngcontent-%COMP%]{flex-direction:row!important}.addButtonDiv[_ngcontent-%COMP%]{display:flex}"]}),n})();var rr,ar=(()=>{return(n=ar||(ar={})).LATENCY="latency",n.GEO="geo",n.DIRECT="direct",ar;var n})(),Wv=new Uint8Array(16);function Jv(){if(!rr&&!(rr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rr(Wv)}const Qv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Kv=function $v(n){return"string"==typeof n&&Qv.test(n)};for(var $t=[],Ll=0;Ll<256;++Ll)$t.push((Ll+256).toString(16).substr(1));const Rl=function eb(n,e,t){var i=(n=n||{}).random||(n.rng||Jv)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){t=t||0;for(var s=0;s<16;++s)e[t+s]=i[s];return e}return function Xv(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=($t[n[e+0]]+$t[n[e+1]]+$t[n[e+2]]+$t[n[e+3]]+"-"+$t[n[e+4]]+$t[n[e+5]]+"-"+$t[n[e+6]]+$t[n[e+7]]+"-"+$t[n[e+8]]+$t[n[e+9]]+"-"+$t[n[e+10]]+$t[n[e+11]]+$t[n[e+12]]+$t[n[e+13]]+$t[n[e+14]]+$t[n[e+15]]).toLowerCase();if(!Kv(t))throw TypeError("Stringified UUID is invalid");return t}(i)};let ib=(()=>{class n{constructor(t,i,s){this.fb=t,this.parent=i,this.apiService=s,this.formGroupName="latency_"+Rl()}ngOnInit(){this.parentForm=this.parent.form,this.parentForm.addControl(this.formGroupName,this.fb.group({area:[""],threshold:[""],rigidness:[""],convergence_time:[""]}))}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu),o.Y36(T.sg),o.Y36(Re.s))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-latency-constraints"]],features:[o._Bn([],[{provide:T.gN,useExisting:T.sg}])],decls:34,vars:1,consts:[[3,"formGroupName"],[1,"w3-row"],[1,"w3-col","l12","m12","s12","w3-row-padding"],["matNativeControl","","formControlName","area","matTooltip","Specifies the area in which the constraint is in effect","required",""],["value","munich1"],["value","munich2"],["value","frankfurt"],[1,"w3-col","l4","m4","s6","w3-row-padding"],["matInput","","formControlName","threshold","matTooltip","Maximum latency","type","number","value","0"],["matSuffix",""],["matInput","","formControlName","rigidness","max","1","min","0","step","0.01","type","number","value","0"],["matInput","","formControlName","convergence_time","type","number","value","300"]],template:function(t,i){1&t&&(o.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"mat-form-field")(4,"mat-label"),o._uU(5,"Area"),o.qZA(),o.TgZ(6,"mat-select",3)(7,"mat-option",4),o._uU(8,"Munich 1"),o.qZA(),o.TgZ(9,"mat-option",5),o._uU(10,"Munich 2"),o.qZA(),o.TgZ(11,"mat-option",6),o._uU(12,"Frankfurt"),o.qZA()()()(),o.TgZ(13,"div",7)(14,"mat-form-field")(15,"mat-label"),o._uU(16,"Threshold"),o.qZA(),o._UZ(17,"input",8),o.TgZ(18,"p",9),o._uU(19,"ms\xa0"),o.qZA()()(),o.TgZ(20,"div",7)(21,"mat-form-field")(22,"mat-label"),o._uU(23,"Rigidness"),o.qZA(),o._UZ(24,"input",10),o.TgZ(25,"p",9),o._uU(26,"%\xa0"),o.qZA()()(),o.TgZ(27,"div",7)(28,"mat-form-field")(29,"mat-label"),o._uU(30,"Convergence Time"),o.qZA(),o._UZ(31,"input",11),o.TgZ(32,"p",9),o._uU(33,"sec\xa0"),o.qZA()()()()()),2&t&&o.Q6J("formGroupName",i.formGroupName)},dependencies:[T._Y,T.Fj,T.wV,T.JJ,T.JL,T.Q7,T.qQ,T.Fd,T.F,T.u,T.x0,gt.Nt,A.KE,A.hX,A.R9,lt.gM,Me.gD,F.ey]}),n})(),nb=(()=>{class n{constructor(t,i){this.fb=t,this.parent=i,this.longitude=0,this.latitude=0,this.location="",this.formGroupName="geo_"+Rl()}ngOnInit(){this.parentForm=this.parent.form,this.parentForm.addControl(this.formGroupName,this.fb.group({convergence_time:[0],rigidness:[0],threshold:[0],location:[""]}))}updateLongLat(){this.location=`(${this.longitude},${this.latitude})`,console.log(this.location)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu),o.Y36(T.sg))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-geo-constraints"]],features:[o._Bn([],[{provide:T.gN,useExisting:T.sg}])],decls:34,vars:1,consts:[[3,"formGroupName"],[1,"w3-row"],[1,"w3-col","l4","m4","s6","w3-row-padding"],["matInput","","type","number",3,"change"],[1,"w3-col","w3-rest"],[1,"w3-col","l4","m4","s12","w3-row-padding"],["matInput","","formControlName","threshold","type","number"],["matSuffix",""],["matInput","","formControlName","rigidness","max","100","min","0","type","number","value","0"],["matInput","","formControlName","convergence_time","type","number","value","300"]],template:function(t,i){1&t&&(o.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"mat-form-field")(4,"mat-label"),o._uU(5,"Longitude"),o.qZA(),o.TgZ(6,"input",3),o.NdJ("change",function(){return i.updateLongLat()}),o.qZA()()(),o.TgZ(7,"div",2)(8,"mat-form-field")(9,"mat-label"),o._uU(10,"Latitude"),o.qZA(),o.TgZ(11,"input",3),o.NdJ("change",function(){return i.updateLongLat()}),o.qZA()()(),o._UZ(12,"div",4),o.TgZ(13,"div",5)(14,"mat-form-field")(15,"mat-label"),o._uU(16,"Threshold"),o.qZA(),o._UZ(17,"input",6),o.TgZ(18,"p",7),o._uU(19,"km\xa0"),o.qZA()()(),o.TgZ(20,"div",5)(21,"mat-form-field")(22,"mat-label"),o._uU(23,"Rigidness"),o.qZA(),o._UZ(24,"input",8),o.TgZ(25,"p",7),o._uU(26,"%\xa0"),o.qZA()()(),o.TgZ(27,"div",5)(28,"mat-form-field")(29,"mat-label"),o._uU(30,"Convergence Time"),o.qZA(),o._UZ(31,"input",9),o.TgZ(32,"p",7),o._uU(33,"sec\xa0"),o.qZA()()()()()),2&t&&o.Q6J("formGroupName",i.formGroupName)},dependencies:[T._Y,T.Fj,T.wV,T.JJ,T.JL,T.qQ,T.Fd,T.F,T.u,T.x0,gt.Nt,A.KE,A.hX,A.R9]}),n})();function ob(n,e){if(1&n&&(o.TgZ(0,"mat-option",6),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.Q6J("value",t),o.xp6(1),o.Oqu(t)}}let sb=(()=>{class n{constructor(t,i,s){this.fb=t,this.parent=i,this.apiService=s,this.clusterOptions=[],this.formGroupName="direct_"+Rl()}ngOnInit(){this.apiService.getClusters().subscribe(t=>{console.log(t),this.clusterOptions=t.map(i=>i.cluster_name),console.log(this.clusterOptions)}),this.parentForm=this.parent.form,this.parentForm.addControl(this.formGroupName,this.fb.group({node:[""],cluster:[]}))}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu),o.Y36(T.sg),o.Y36(Re.s))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-cluster-constraints"]],features:[o._Bn([],[{provide:T.gN,useExisting:T.sg}])],decls:13,vars:2,consts:[[3,"formGroupName"],[1,"w3-row"],[1,"w3-col","l6","m6","s6","w3-row-padding"],["matNativeControl","","formControlName","cluster","matTooltip","Specifies the cluster in which the constraint is in effect"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","node","matTooltip","Node"],[3,"value"]],template:function(t,i){1&t&&(o.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"mat-form-field")(4,"mat-label"),o._uU(5,"Cluster"),o.qZA(),o.TgZ(6,"mat-select",3),o.YNc(7,ob,2,2,"mat-option",4),o.qZA()()(),o.TgZ(8,"div",2)(9,"mat-form-field")(10,"mat-label"),o._uU(11,"Node"),o.qZA(),o._UZ(12,"input",5),o.qZA()()()()),2&t&&(o.Q6J("formGroupName",i.formGroupName),o.xp6(7),o.Q6J("ngForOf",i.clusterOptions))},dependencies:[B.sg,T._Y,T.Fj,T.JJ,T.JL,T.F,T.u,T.x0,gt.Nt,A.KE,A.hX,lt.gM,Me.gD,F.ey]}),n})();function ab(n,e){1&n&&(o.ynx(0),o._uU(1,"Latency Constraints"),o.BQk())}function rb(n,e){1&n&&(o.ynx(0),o._uU(1,"Geo Constraints"),o.BQk())}function lb(n,e){1&n&&(o.ynx(0),o._uU(1,"Cluster Constraints"),o.BQk())}function cb(n,e){1&n&&(o.ynx(0),o._UZ(1,"app-latency-constraints"),o.BQk())}function db(n,e){1&n&&(o.ynx(0),o._UZ(1,"app-geo-constraints"),o.BQk())}function hb(n,e){1&n&&(o.ynx(0),o._UZ(1,"app-cluster-constraints"),o.BQk())}function mb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div")(1,"div",7)(2,"div")(3,"h5",0),o.ynx(4,8),o.YNc(5,ab,2,0,"ng-container",9),o.YNc(6,rb,2,0,"ng-container",9),o.YNc(7,lb,2,0,"ng-container",9),o.BQk(),o.qZA(),o.TgZ(8,"div",0)(9,"h5"),o._uU(10),o.qZA(),o.TgZ(11,"button",10),o.NdJ("click",function(){const r=o.CHM(t).index,c=o.oxw();return o.KtG(c.deleteConstraint(r))}),o.TgZ(12,"mat-icon"),o._uU(13,"delete"),o.qZA()()()(),o.ynx(14,8),o.YNc(15,cb,2,0,"ng-container",9),o.YNc(16,db,2,0,"ng-container",9),o.YNc(17,hb,2,0,"ng-container",9),o.BQk(),o.qZA()()}if(2&n){const t=e.$implicit,i=o.oxw();o.xp6(4),o.Q6J("ngSwitch",t),o.xp6(1),o.Q6J("ngSwitchCase",i.ConstraintType.LATENCY),o.xp6(1),o.Q6J("ngSwitchCase",i.ConstraintType.GEO),o.xp6(1),o.Q6J("ngSwitchCase",i.ConstraintType.DIRECT),o.xp6(3),o.hij("",i.headlineHelper(t.type)," constraint:"),o.xp6(4),o.Q6J("ngSwitch",t.type),o.xp6(1),o.Q6J("ngSwitchCase",i.ConstraintType.LATENCY),o.xp6(1),o.Q6J("ngSwitchCase",i.ConstraintType.GEO),o.xp6(1),o.Q6J("ngSwitchCase",i.ConstraintType.DIRECT)}}let ub=(()=>{class n extends Ai{constructor(t,i){super(),this.apiService=t,this.formBuilder=i,this.constraints=[],this.constraintsType=[],this.node=[],this.cluster=[],this.ConstraintType=ar,this.constraintsForm=new T.cw({})}addConstrains(t){const i={area:"",cluster:"",convergence_time:0,location:"",node:"",rigidness:0,threshold:0,type:t};this.constraintsType.push(t),this.constraints.push(i),console.log(this.constraintsForm)}isConstraintType(t,i){return this.constraintsType[i]===t}deleteConstraint(t){this.constraints.splice(t,1),this.constraintsType.splice(t,1);const i=Object.keys(this.constraintsForm.getRawValue())[t];this.constraintsForm.removeControl(i)}headlineHelper(t){const i=t.toLowerCase();return i.charAt(0).toUpperCase()+i.slice(1)}getConstraintsName(t){return t.startsWith("direct")||t.startsWith("geo")||t.startsWith("latency")?t.split("_")[0]:null}getData(){const t=[],i=this.constraintsForm.getRawValue();for(const s in i){console.log(s),console.log(i[s]);const r=this.getConstraintsName(s);r&&t.push(Object.assign({type:r},i[s]))}return{constraints:t}}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Re.s),o.Y36(T.qu))},n.\u0275cmp=o.Xpm({type:n,selectors:[["form-constraints"]],inputs:{service:"service"},features:[o.qOj],decls:16,vars:3,consts:[[1,"addButtonDiv"],["mat-mini-fab","","type","button",1,"add-btn",3,"matMenuTriggerFor"],["yPosition","above"],["selectConstrains","matMenu"],["mat-menu-item","","type","button",3,"click"],[3,"formGroup"],[4,"ngFor","ngForOf"],[1,"constraints"],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","type","button",3,"click"]],template:function(t,i){if(1&t&&(o.TgZ(0,"div",0)(1,"h4",0),o._uU(2,"Constraints:"),o.qZA(),o.TgZ(3,"button",1)(4,"mat-icon"),o._uU(5,"add"),o.qZA()(),o.TgZ(6,"mat-menu",2,3)(8,"button",4),o.NdJ("click",function(){return i.addConstrains(i.ConstraintType.LATENCY)}),o._uU(9,"Latency Constraints"),o.qZA(),o.TgZ(10,"button",4),o.NdJ("click",function(){return i.addConstrains(i.ConstraintType.GEO)}),o._uU(11,"Geo Constraints"),o.qZA(),o.TgZ(12,"button",4),o.NdJ("click",function(){return i.addConstrains(i.ConstraintType.DIRECT)}),o._uU(13,"Cluster Constraints"),o.qZA()()(),o.TgZ(14,"form",5),o.YNc(15,mb,18,9,"div",6),o.qZA()),2&t){const s=o.MAs(7);o.xp6(3),o.Q6J("matMenuTriggerFor",s),o.xp6(11),o.Q6J("formGroup",i.constraintsForm),o.xp6(1),o.Q6J("ngForOf",i.constraints)}},dependencies:[B.sg,B.RF,B.n9,T._Y,T.JL,T.sg,xn,mt,yn,et.RK,et.nh,le.Hw,ib,nb,sb],styles:[".constraints[_ngcontent-%COMP%] .addButtonDiv[_ngcontent-%COMP%]{vertical-align:super}.addButtonDiv[_ngcontent-%COMP%]{display:flex}"]}),n})();var jh=S(4934);let pb=(()=>{class n extends Ai{constructor(t,i){super(),this.api=t,this.notifyService=i}ngOnInit(){var t,i,s,r,c,d;this.data={code:null!==(i=null===(t=this.service)||void 0===t?void 0:t.code)&&void 0!==i?i:"",state:null!==(r=null===(s=this.service)||void 0===s?void 0:s.state)&&void 0!==r?r:"",added_files:null!==(d=null===(c=this.service)||void 0===c?void 0:c.added_files)&&void 0!==d?d:[]}}deleteFiles(t){this.data.added_files.splice(t,1)}addFileInput(){this.data.added_files.push("")}onFileSelected(t,i,s){const r=t.target.files[0];if(r){const c=new FormData;c.append("file",r),this.api.fileUpload(c).subscribe({next:m=>{"file"===s?this.data.added_files[i]=m.path:"code"===s?this.data.code=m.path:"state"===s&&(this.data.state=m.path)},error:()=>{this.notifyService.notify(jh.k.error,"File not supported")}})}}getData(){return this.data}trackByIdx(t){return t}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Re.s),o.Y36(Vn.g))},n.\u0275cmp=o.Xpm({type:n,selectors:[["form-file-select"]],inputs:{service:"service"},features:[o.qOj],decls:6,vars:1,consts:[[1,"w3-col","l12","m12","s12","w3-row-padding"],[1,"fileForm"],["matInput","","matTooltip","Define an image for the service","placeholder","docker.io/library/nginx:latest","required","","type","url",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(o.TgZ(0,"div")(1,"div",0)(2,"mat-form-field",1)(3,"mat-label"),o._uU(4,"Code"),o.qZA(),o.TgZ(5,"input",2),o.NdJ("ngModelChange",function(r){return i.data.code=r}),o.qZA()()()()),2&t&&(o.xp6(5),o.Q6J("ngModel",i.data.code))},dependencies:[T.Fj,T.JJ,T.Q7,T.On,gt.Nt,A.KE,A.hX,lt.gM],styles:[".fileDiv[_ngcontent-%COMP%]{max-width:90%;display:inline-flex}.file-upload-div[_ngcontent-%COMP%]{align-content:baseline;text-align:center}.file-upload[_ngcontent-%COMP%]{float:left;position:relative}.hide[_ngcontent-%COMP%]{display:none}"]}),n})(),fb=(()=>{class n extends Ai{constructor(){super(...arguments),this.upload=new o.vpe,this.filename="Select File to Upload",this.sampleService={microservices:[{microservice_name:"name",microservice_namespace:"namespace","...":"..."}]}}loadFile(t){this.file=t.target.files[0],console.log(this.file),this.filename=this.file.name}uploadDocument(){if(this.file){const t=new FileReader;t.onload=()=>{var i;const s=JSON.parse((null!==(i=t.result)&&void 0!==i?i:"").toString());console.log(s),this.upload.emit(s.microservices)},t.readAsText(this.file)}}getData(){return""}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["form-file-upload"]],inputs:{service:"service"},outputs:{upload:"upload"},features:[o.qOj],decls:17,vars:5,consts:[[1,"content",3,"click"],[1,"sample-code"],[1,"file-upload-div"],[1,"file-upload"],["accept","application/JSON","type","file",1,"file-input",3,"change"],["fileUpload",""],["color","primary","mat-flat-button","","type","button",3,"disabled","click"]],template:function(t,i){if(1&t){const s=o.EpF();o.TgZ(0,"div")(1,"div",0),o.NdJ("click",function(){o.CHM(s);const c=o.MAs(12);return o.KtG(c.click())}),o._uU(2),o.TgZ(3,"div",1)(4,"p"),o._uU(5,"The file must be formatted as follows:"),o.qZA(),o.TgZ(6,"pre"),o._uU(7),o.ALo(8,"json"),o.qZA()()(),o.TgZ(9,"div",2)(10,"div",3)(11,"input",4,5),o.NdJ("change",function(c){return i.loadFile(c)}),o.qZA()(),o.TgZ(13,"button",6),o.NdJ("click",function(){return i.uploadDocument()}),o._uU(14," Upload Config "),o.qZA(),o.TgZ(15,"p"),o._uU(16,"The file should contain only the microservice array"),o.qZA()()()}2&t&&(o.xp6(2),o.hij(" ",i.filename," "),o.xp6(5),o.Oqu(o.lcZ(8,3,i.sampleService)),o.xp6(6),o.Q6J("disabled",void 0===i.file))},dependencies:[et.lW,B.Ts],styles:[".content[_ngcontent-%COMP%]{height:50vh;display:flex;justify-content:center;flex-direction:column;align-items:center;font-size:2rem;color:#d3d3d3;padding-top:20px}.content[_ngcontent-%COMP%] .sample-code[_ngcontent-%COMP%]{padding-top:40px;display:flex;flex-direction:column;font-size:1.5rem}.content[_ngcontent-%COMP%] .sample-code[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{font-size:1rem;color:#d3d3d3}.file-upload-div[_ngcontent-%COMP%]{text-align:center}"]}),n})(),gb=(()=>{class n extends Ai{constructor(t){super(),this.fb=t,this.applicationId="to set"}ngOnInit(){var t,i,s,r,c,d,m,u;this.form=this.fb.group({microserviceID:["1234"],microservice_name:[null!==(i=null===(t=this.service)||void 0===t?void 0:t.microservice_name)&&void 0!==i?i:"",T.kI.required],microservice_namespace:[null!==(r=null===(s=this.service)||void 0===s?void 0:s.microservice_namespace)&&void 0!==r?r:""],virtualization:[null!==(d=null===(c=this.service)||void 0===c?void 0:c.virtualization)&&void 0!==d?d:""],description:[null!==(u=null===(m=this.service)||void 0===m?void 0:m.description)&&void 0!==u?u:""]})}getData(){return this.form.value}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu))},n.\u0275cmp=o.Xpm({type:n,selectors:[["form-service-info"]],inputs:{service:"service"},features:[o.qOj],decls:30,vars:1,consts:[[3,"formGroup"],[1,"w3-row"],[1,"w3-col","l6","s12","w3-row-padding"],["matInput","","formControlName","microservice_namespace","required",""],["matInput","","formControlName","microservice_name","required",""],["matTooltip","Type of virtualization chosen for the service"],["matNativeControl","","formControlName","virtualization","required",""],["value","container"],["value","unikernel"],["value","vm"],[1,"w3-col","l12","s12","w3-row-padding"],["cols","3","formControlName","description","matInput","","placeholder","Description of the service"]],template:function(t,i){1&t&&(o.TgZ(0,"h4"),o._uU(1,"General information:"),o.qZA(),o.TgZ(2,"form",0)(3,"div",1)(4,"div",2)(5,"mat-form-field")(6,"mat-label"),o._uU(7,"Service Namespace"),o.qZA(),o._UZ(8,"input",3),o.qZA()(),o.TgZ(9,"div",2)(10,"mat-form-field")(11,"mat-label"),o._uU(12,"Service Name"),o.qZA(),o._UZ(13,"input",4),o.qZA()(),o.TgZ(14,"div",2)(15,"mat-form-field",5)(16,"mat-label"),o._uU(17,"Virtualization"),o.qZA(),o.TgZ(18,"mat-select",6)(19,"mat-option",7),o._uU(20,"Container"),o.qZA(),o.TgZ(21,"mat-option",8),o._uU(22,"Unikernel"),o.qZA(),o.TgZ(23,"mat-option",9),o._uU(24,"Vm"),o.qZA()()()(),o.TgZ(25,"div",10)(26,"mat-form-field")(27,"mat-label"),o._uU(28,"Description"),o.qZA(),o._UZ(29,"textarea",11),o.qZA()()()()),2&t&&(o.xp6(2),o.Q6J("formGroup",i.form))},dependencies:[T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,gt.Nt,A.KE,A.hX,lt.gM,Me.gD,F.ey],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{--mat-mdc-form-field-floating-label-scale: .75;display:block!important;flex-direction:column;min-width:0;text-align:left}"]}),n})(),_b=(()=>{class n extends Ai{constructor(t){super(),this.fb=t,this.requirements={}}ngOnInit(){var t,i,s,r,c,d,m,u,f,_,v,x,w,C,k,P;this.form=this.fb.group({memory:[null!==(i=null===(t=this.service)||void 0===t?void 0:t.memory)&&void 0!==i?i:50],vcpus:[null!==(r=null===(s=this.service)||void 0===s?void 0:s.vcpus)&&void 0!==r?r:1],vgpus:[null!==(d=null===(c=this.service)||void 0===c?void 0:c.vgpus)&&void 0!==d?d:0],vtpus:[null!==(u=null===(m=this.service)||void 0===m?void 0:m.vtpus)&&void 0!==u?u:0],bandwidth_in:[null!==(_=null===(f=this.service)||void 0===f?void 0:f.bandwidth_in)&&void 0!==_?_:0],bandwidth_out:[null!==(x=null===(v=this.service)||void 0===v?void 0:v.bandwidth_out)&&void 0!==x?x:0],storage:[null!==(C=null===(w=this.service)||void 0===w?void 0:w.storage)&&void 0!==C?C:0],port:[null!==(P=null===(k=this.service)||void 0===k?void 0:k.port)&&void 0!==P?P:""]}),this.form.patchValue(this.requirements)}getData(){return this.form.value}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu))},n.\u0275cmp=o.Xpm({type:n,selectors:[["form-requirements"]],inputs:{service:"service"},features:[o.qOj],decls:53,vars:2,consts:[[3,"formGroup"],[1,"w3-row"],[1,"w3-col","l3","m4","s6","w3-row-padding"],["matInput","","min","0","formControlName","memory","placeholder","1024","required","","type","number"],["matSuffix",""],["matInput","","min","0","formControlName","vcpus","required","","type","number","value","1"],["matInput","","min","0","formControlName","vgpus","required","","type","number","value","0"],["matInput","","min","0","formControlName","vtpus","required","","type","number","value","0"],["matInput","","matTooltip","Minimum bandwidth-ingress needed for service","min","0","required","","type","number","value","0","formControlName","bandwidth_in"],["matInput","","matTooltip","Minimum bandwidth-egress needed for service","min","0","required","","type","number","value","0","formControlName","bandwidth_out"],["matInput","","min","0","formControlName","storage","required","","type","number","value","0"],["matInput","","formControlName","port","matTooltip","Port for exposure of the service","required","","type","text"]],template:function(t,i){1&t&&(o.TgZ(0,"h4"),o._uU(1,"Requirements:"),o.qZA(),o.TgZ(2,"form",0)(3,"div",1)(4,"div",2)(5,"mat-form-field")(6,"mat-label"),o._uU(7,"Memory"),o.qZA(),o._UZ(8,"input",3),o.TgZ(9,"p",4),o._uU(10,"MB\xa0"),o.qZA()()(),o.TgZ(11,"div",2)(12,"mat-form-field")(13,"mat-label"),o._uU(14,"Vcpus"),o.qZA(),o._UZ(15,"input",5),o.qZA()(),o.TgZ(16,"div",2)(17,"mat-form-field")(18,"mat-label"),o._uU(19,"Vgpus"),o.qZA(),o._UZ(20,"input",6),o.qZA()(),o.TgZ(21,"div",2)(22,"mat-form-field")(23,"mat-label"),o._uU(24,"Vtpus"),o.qZA(),o._UZ(25,"input",7),o.qZA()(),o.TgZ(26,"div",2)(27,"mat-form-field")(28,"mat-label"),o._uU(29,"Bandwidth_in"),o.qZA(),o._UZ(30,"input",8),o.TgZ(31,"p",4),o._uU(32,"KB\xa0"),o.qZA()()(),o.TgZ(33,"div",2)(34,"mat-form-field")(35,"mat-label"),o._uU(36,"Bandwidth_out"),o.qZA(),o._UZ(37,"input",9),o.TgZ(38,"p",4),o._uU(39,"KB\xa0"),o.qZA()()(),o.TgZ(40,"div",2)(41,"mat-form-field")(42,"mat-label"),o._uU(43,"Storage"),o.qZA(),o._UZ(44,"input",10),o.TgZ(45,"p",4),o._uU(46,"MB\xa0"),o.qZA()()(),o.TgZ(47,"div",2)(48,"mat-form-field")(49,"mat-label"),o._uU(50,"Port"),o.qZA(),o._UZ(51,"input",11),o.qZA()()(),o._UZ(52,"form",0),o.qZA()),2&t&&(o.xp6(2),o.Q6J("formGroup",i.form),o.xp6(50),o.Q6J("formGroup",i.form))},dependencies:[T._Y,T.Fj,T.wV,T.JJ,T.JL,T.Q7,T.qQ,T.sg,T.u,gt.Nt,A.KE,A.hX,A.R9,lt.gM],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{--mat-mdc-form-field-floating-label-scale: .75;display:block!important;flex-direction:column;min-width:0;text-align:left}.w3-row[_ngcontent-%COMP%]{margin-left:0}"]}),n})();function vb(n,e){1&n&&(o.TgZ(0,"mat-icon"),o._uU(1,"add"),o.qZA())}function bb(n,e){1&n&&(o.TgZ(0,"mat-icon"),o._uU(1,"remove"),o.qZA())}function xb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",13)(1,"h5"),o._uU(2,"Instances:"),o.qZA(),o.TgZ(3,"div",0)(4,"div",14)(5,"mat-form-field")(6,"mat-label"),o._uU(7,"From"),o.qZA(),o.TgZ(8,"input",15),o.NdJ("ngModelChange",function(s){const c=o.CHM(t).index,d=o.oxw();return o.KtG(d.instances[c].from=s)}),o.qZA()()(),o.TgZ(9,"div",14)(10,"mat-form-field")(11,"mat-label"),o._uU(12,"To"),o.qZA(),o.TgZ(13,"input",15),o.NdJ("ngModelChange",function(s){const c=o.CHM(t).index,d=o.oxw();return o.KtG(d.instances[c].to=s)}),o.qZA()()(),o.TgZ(14,"div",14)(15,"mat-form-field")(16,"mat-label"),o._uU(17,"Start"),o.qZA(),o.TgZ(18,"input",15),o.NdJ("ngModelChange",function(s){const c=o.CHM(t).index,d=o.oxw();return o.KtG(d.instances[c].start=s)}),o.qZA()()()()()}if(2&n){const t=e.index,i=o.oxw();o.xp6(8),o.Q6J("ngModel",i.instances[t].from),o.xp6(5),o.Q6J("ngModel",i.instances[t].to),o.xp6(5),o.Q6J("ngModel",i.instances[t].start)}}let wb=(()=>{class n extends Ai{constructor(t){super(),this.fb=t,this.instances=[],this.panelOpenState=!1}ngOnInit(){var t,i,s,r,c,d,m,u,f;this.form=this.fb.group({rr_ip:null!==(s=null===(i=null===(t=this.service)||void 0===t?void 0:t.addresses)||void 0===i?void 0:i.rr_ip)&&void 0!==s?s:[""],closest_ip:null!==(d=null===(c=null===(r=this.service)||void 0===r?void 0:r.addresses)||void 0===c?void 0:c.closest_ip)&&void 0!==d?d:[""]}),this.instances.push({from:"",to:"",start:""}),0===(null===(f=null===(u=null===(m=this.service)||void 0===m?void 0:m.addresses)||void 0===u?void 0:u.instances)||void 0===f?void 0:f.length)&&(this.instances=this.service.addresses.instances)}getData(){return null}trackByIdx(t){return t}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu))},n.\u0275cmp=o.Xpm({type:n,selectors:[["form-addresses"]],inputs:{service:"service"},features:[o.qOj],decls:26,vars:5,consts:[[1,"w3-row"],[1,"w3-row-padding"],["hideToggle","true",1,"panel",3,"opened","closed"],[1,"expansion-header"],[1,"header"],["matTooltip","Optional - If the specified IP addresses are unoccupied, the service will be provided at these addresses."],[1,"toggle"],[4,"ngIf"],[3,"formGroup"],[1,"w3-col","l5","m5","s12","w3-row-padding"],["matInput","","formControlName","rr_ip","matTooltip","Optional - IP chosen for round-robin addressation (10.30.30.30)","type","text"],["matInput","","matTooltip","Optional - The orchestrator may choose the closest IP to the given one","type","text","formControlName","closest_ip"],["class","full-width instance",4,"ngFor","ngForOf","ngForTrackBy"],[1,"full-width","instance"],[1,"w3-col","l3","m3","s12","w3-row-padding"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"div",1)(2,"mat-expansion-panel",2),o.NdJ("opened",function(){return i.panelOpenState=!0})("closed",function(){return i.panelOpenState=!1}),o.TgZ(3,"mat-expansion-panel-header",3)(4,"div",4)(5,"mat-panel-title"),o._uU(6,"Addresses "),o.TgZ(7,"mat-icon",5),o._uU(8," info "),o.qZA()(),o.TgZ(9,"mat-panel-description",6),o.YNc(10,vb,2,0,"mat-icon",7),o.YNc(11,bb,2,0,"mat-icon",7),o.qZA()()(),o.TgZ(12,"div",8)(13,"div",0)(14,"div",9)(15,"mat-form-field")(16,"mat-label"),o._uU(17,"RR-IP"),o.qZA(),o._UZ(18,"input",10),o.qZA()(),o.TgZ(19,"div",9)(20,"mat-form-field")(21,"mat-label"),o._uU(22,"Closest_ip"),o.qZA(),o._UZ(23,"input",11),o.qZA()()()(),o.YNc(24,xb,19,3,"div",12),o.qZA()()(),o._UZ(25,"br")),2&t&&(o.xp6(10),o.Q6J("ngIf",!i.panelOpenState),o.xp6(1),o.Q6J("ngIf",i.panelOpenState),o.xp6(1),o.Q6J("formGroup",i.form),o.xp6(12),o.Q6J("ngForOf",i.instances)("ngForTrackBy",i.trackByIdx))},dependencies:[B.sg,B.O5,T.Fj,T.JJ,T.JL,T.On,T.sg,T.u,le.Hw,gt.Nt,A.KE,A.hX,lt.gM,Pn,An,Hi,ea],styles:[".panel[_ngcontent-%COMP%]{box-shadow:none;padding:0!important}.panel[_ngcontent-%COMP%] .expansion-header[_ngcontent-%COMP%]{padding:0}.panel[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{border-bottom:1px solid;display:flex;width:100%;padding-bottom:5px;padding-right:0}.panel[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),n})();function yb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"mat-label"),o._uU(4,"Environment"),o.qZA(),o.TgZ(5,"input",5),o.NdJ("ngModelChange",function(s){const c=o.CHM(t).index,d=o.oxw();return o.KtG(d.environment[c]=s)}),o.qZA(),o.TgZ(6,"button",6),o.NdJ("click",function(){const r=o.CHM(t).index,c=o.oxw();return o.KtG(c.deleteEnvironment(r))}),o.TgZ(7,"mat-icon"),o._uU(8,"clear"),o.qZA()()()()()}if(2&n){const t=e.index,i=o.oxw();o.xp6(5),o.Q6J("ngModel",i.environment[t])}}function Cb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"mat-label"),o._uU(4,"Cmd"),o.qZA(),o.TgZ(5,"input",5),o.NdJ("ngModelChange",function(s){const c=o.CHM(t).index,d=o.oxw();return o.KtG(d.cmdArray[c]=s)}),o.qZA(),o.TgZ(6,"button",6),o.NdJ("click",function(){const r=o.CHM(t).index,c=o.oxw();return o.KtG(c.deleteCmd(r))}),o.TgZ(7,"mat-icon"),o._uU(8,"clear"),o.qZA()()()()()}if(2&n){const t=e.index,i=o.oxw();o.xp6(5),o.Q6J("ngModel",i.cmdArray[t])}}function kb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"mat-label"),o._uU(4,"Args - Key Value"),o.qZA(),o.TgZ(5,"input",7),o.NdJ("ngModelChange",function(s){const c=o.CHM(t).index,d=o.oxw();return o.KtG(d.argsArray[c]=s)}),o.qZA(),o.TgZ(6,"button",6),o.NdJ("click",function(){const r=o.CHM(t).index,c=o.oxw();return o.KtG(c.deleteArgument(r))}),o.TgZ(7,"mat-icon"),o._uU(8,"clear"),o.qZA()()()()()}if(2&n){const t=e.index,i=o.oxw();o.xp6(5),o.Q6J("ngModel",i.argsArray[t])}}let Mb=(()=>{class n extends Ai{ngOnInit(){var t,i,s,r,c,d;this.argsArray=null!==(i=null===(t=this.service)||void 0===t?void 0:t.args)&&void 0!==i?i:[],this.environment=null!==(r=null===(s=this.service)||void 0===s?void 0:s.environment)&&void 0!==r?r:[],this.cmdArray=null!==(d=null===(c=this.service)||void 0===c?void 0:c.cmd)&&void 0!==d?d:[]}addArgument(){this.argsArray.push("")}deleteArgument(t){this.argsArray.splice(t,1)}addEnvironment(){this.environment.push("")}deleteEnvironment(t){this.environment.splice(t,1)}addCmd(){this.cmdArray.push("")}deleteCmd(t){this.cmdArray.splice(t,1)}getData(){return{args:this.argsArray,environment:this.environment}}trackByIdx(t){return t}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(n)))(i||n)}}(),n.\u0275cmp=o.Xpm({type:n,selectors:[["form-arguments"]],inputs:{service:"service"},features:[o.qOj],decls:24,vars:6,consts:[[1,"addButtonDiv"],["mat-mini-fab","","type","button",1,"add-btn",3,"click"],[1,"w3-row"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"w3-col","l4","m6","s12","w3-row-padding"],["matInput","","type","text",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","","type","button",3,"click"],["matInput","","type","text",1,"addButtonDiv",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(o.TgZ(0,"div")(1,"h4",0),o._uU(2,"Environment:"),o.qZA(),o.TgZ(3,"button",1),o.NdJ("click",function(){return i.addEnvironment()}),o.TgZ(4,"mat-icon"),o._uU(5,"add"),o.qZA()()(),o.TgZ(6,"div",2),o.YNc(7,yb,9,1,"div",3),o.qZA(),o.TgZ(8,"div")(9,"h4",0),o._uU(10,"Cmd:"),o.qZA(),o.TgZ(11,"button",1),o.NdJ("click",function(){return i.addCmd()}),o.TgZ(12,"mat-icon"),o._uU(13,"add"),o.qZA()()(),o.TgZ(14,"div",2),o.YNc(15,Cb,9,1,"div",3),o.qZA(),o.TgZ(16,"div")(17,"h4",0),o._uU(18,"Arguments:"),o.qZA(),o.TgZ(19,"button",1),o.NdJ("click",function(){return i.addArgument()}),o.TgZ(20,"mat-icon"),o._uU(21,"add"),o.qZA()()(),o.TgZ(22,"div",2),o.YNc(23,kb,9,1,"div",3),o.qZA()),2&t&&(o.xp6(7),o.Q6J("ngForOf",i.environment)("ngForTrackBy",i.trackByIdx),o.xp6(8),o.Q6J("ngForOf",i.cmdArray)("ngForTrackBy",i.trackByIdx),o.xp6(8),o.Q6J("ngForOf",i.argsArray)("ngForTrackBy",i.trackByIdx))},dependencies:[B.sg,T.Fj,T.JJ,T.On,et.RK,et.nh,le.Hw,gt.Nt,A.KE,A.hX,A.R9]}),n})();const Tb=["serviceInfo"],Sb=["requirements"],Pb=["addresses"],Ab=["arguments"],Db=["constraints"],Ob=["connectivity"],Ib=["fileSelect"];let Wh=(()=>{class n{constructor(t,i,s,r,c,d,m){this.route=t,this.api=i,this.router=s,this.notifyService=r,this.store=c,this.slaGenerator=d,this.serviceGenerator=m,this.editingService=!1,this.app$=this.store.pipe((0,vt.Ys)(Ma.R)),this.currentUser$=this.store.pipe((0,vt.Ys)(Gn.H)),this.services$=this.store.pipe((0,vt.Ys)(Sa.z)),this.app$.subscribe(u=>{console.log(u),this.currentApplication=u})}ngOnInit(){this.serviceId=this.route.snapshot.paramMap.get("id"),this.currentUser$.subscribe(t=>this.currentUser=t),this.services$.subscribe({next:t=>{const i=t.filter(s=>{var r;return(null===(r=s._id)||void 0===r?void 0:r.$oid)===this.serviceId});this.service=0===i.length?null:i[0]},error:t=>{console.log(t)}})}onSubmit(){const t=this.serviceGenerator.generateService(this.serviceInfo.getData(),this.requirements.getData(),this.fileSelect.getData(),this.addresses.getData(),this.arguments.getData(),this.constraints.getData(),this.connectivity.getData()),i=this.slaGenerator.generateSLA(t,this.currentApplication,this.currentUser);console.log(i),console.log(this.editingService),this.editingService?this.updateService(i):this.addService(i)}slaFromFile(t){t.map(i=>{console.log(i);const s=this.slaGenerator.generateSLA(i,this.currentApplication,this.currentUser);this.addService(s)})}updateService(t){this.api.updateService(t,this.serviceId).subscribe({next:()=>{this.store.dispatch((0,ut.fB)(t)),this.router.navigate(["/control"]).then()},error:i=>{console.log(i)}})}addService(t){this.store.dispatch((0,ut.EF)({service:t}))}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Q.gz),o.Y36(Re.s),o.Y36(Q.F0),o.Y36(Vn.g),o.Y36(vt.yh),o.Y36(Uv.T),o.Y36(qv))},n.\u0275cmp=o.Xpm({type:n,selectors:[["sla-form"]],viewQuery:function(t,i){if(1&t&&(o.Gf(Tb,5),o.Gf(Sb,5),o.Gf(Pb,5),o.Gf(Ab,5),o.Gf(Db,5),o.Gf(Ob,5),o.Gf(Ib,5)),2&t){let s;o.iGM(s=o.CRH())&&(i.serviceInfo=s.first),o.iGM(s=o.CRH())&&(i.requirements=s.first),o.iGM(s=o.CRH())&&(i.addresses=s.first),o.iGM(s=o.CRH())&&(i.arguments=s.first),o.iGM(s=o.CRH())&&(i.constraints=s.first),o.iGM(s=o.CRH())&&(i.connectivity=s.first),o.iGM(s=o.CRH())&&(i.fileSelect=s.first)}},decls:26,vars:7,consts:[[1,"content-cards"],[1,"serviceCard"],["animationDuration","0ms","mat-stretch-tabs","",1,"mat-elevation-z4","inputGroup"],["label","FORM"],[3,"service"],["serviceInfo",""],["requirements",""],["addresses",""],["fileSelect",""],["arguments",""],["constraints",""],["connectivity",""],["mat-flat-button","","color","primary","type","submit",3,"click"],["mat-flat-button","","color","accent","routerLink","/control","type","button"],["label","SLA"],[3,"upload"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-title"),o._uU(3,"Configure Service"),o.qZA(),o.TgZ(4,"mat-tab-group",2)(5,"mat-tab",3),o._UZ(6,"form-service-info",4,5)(8,"form-requirements",4,6)(10,"form-addresses",4,7)(12,"form-file-select",4,8)(14,"form-arguments",4,9)(16,"form-constraints",4,10)(18,"form-connectivity",4,11),o.TgZ(20,"button",12),o.NdJ("click",function(){return i.onSubmit()}),o._uU(21,"Save"),o.qZA(),o.TgZ(22,"button",13),o._uU(23,"Cancel"),o.qZA()(),o.TgZ(24,"mat-tab",14)(25,"form-file-upload",15),o.NdJ("upload",function(r){return i.slaFromFile(r)}),o.qZA()()()()()),2&t&&(o.xp6(6),o.Q6J("service",i.service),o.xp6(2),o.Q6J("service",i.service),o.xp6(2),o.Q6J("service",i.service),o.xp6(2),o.Q6J("service",i.service),o.xp6(2),o.Q6J("service",i.service),o.xp6(2),o.Q6J("service",i.service),o.xp6(2),o.Q6J("service",i.service))},dependencies:[Q.rH,et.lW,Lt.a8,Lt.n5,V.uX,V.SP,jv,ub,pb,fb,gb,_b,wb,Mb],styles:[".content[_ngcontent-%COMP%]{height:50vh;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3;padding-top:20px}.inputGroup[_ngcontent-%COMP%]{padding:10px!important}.mat-mdc-form-field[_ngcontent-%COMP%]{--mat-mdc-form-field-floating-label-scale: .75;display:block!important;flex-direction:column;min-width:0;text-align:left}button[_ngcontent-%COMP%]{margin-right:10px}"]}),n})(),Lb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-not-found"]],decls:2,vars:0,template:function(t,i){1&t&&(o.TgZ(0,"p"),o._uU(1,"not-found"),o.qZA())},encapsulation:2}),n})(),El=(()=>{class n{constructor(t,i){this.dialogRef=t,this.data=i,this.text="",this.type="",this.text=i.text,this.type=i.type}confirm(){this.dialogRef.close({event:!0})}cancel(){this.dialogRef.close({event:!1})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.so),o.Y36(W.WI))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dialog-conformation-dialog"]],decls:13,vars:2,consts:[["mat-dialog-title",""],[1,"mat-typography"],["color","warn","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(t,i){1&t&&(o.TgZ(0,"h2",0),o._uU(1,"Are you sure?"),o.qZA(),o.TgZ(2,"mat-dialog-content",1)(3,"div")(4,"p"),o._uU(5),o.qZA(),o.TgZ(6,"p"),o._uU(7),o.qZA()()(),o.TgZ(8,"mat-dialog-actions")(9,"button",2),o.NdJ("click",function(){return i.confirm()}),o._uU(10,"Delete"),o.qZA(),o.TgZ(11,"button",3),o.NdJ("click",function(){return i.cancel()}),o._uU(12,"Cancel"),o.qZA()()),2&t&&(o.xp6(5),o.hij("If you delete the ",i.type," it can not be undone."),o.xp6(2),o.Oqu(i.text))},dependencies:[et.lW,W.uh,W.xY,W.H8],encapsulation:2}),n})();function Rb(n,e){1&n&&(o.TgZ(0,"div",19),o._uU(1," Username contains whitespace "),o.qZA())}function Eb(n,e){if(1&n&&(o.TgZ(0,"div"),o.YNc(1,Rb,2,0,"div",18),o.qZA()),2&n){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",null==t.form.errors?null:t.form.errors.containsWhitespace)}}function Fb(n,e){1&n&&(o.TgZ(0,"div",3)(1,"mat-form-field",8)(2,"mat-label"),o._uU(3,"Password"),o.qZA(),o._UZ(4,"input",20),o.qZA()())}function Zb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",21)(1,"button",22),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.downloadCredentials())}),o._uU(2,"Download Credentials"),o.qZA()()}}function zb(n,e){if(1&n&&(o.TgZ(0,"p")(1,"mat-checkbox",23),o._uU(2),o.qZA()()),2&n){const t=e.$implicit;o.xp6(1),o.Q6J("formControlName",t),o.xp6(1),o.Oqu(t)}}let Bb=(()=>{class n{constructor(t,i,s,r){this.dialogRef=t,this.fb=i,this.datePipe=s,this.data=r,this.DialogAction=Dt,this.roles=Object.values(Uo.u),this.buttonText="",this.user=r.content,this.action=r.action,this.title="Editing user...",this.roleOptions=this.fb.group(this.roles.reduce((c,d)=>(c[d]=this.getRoleOptions(d),c),{})),this.data.action===Dt.UPDATE?(this.form=i.group({name:[this.user.name],email:[this.user.email],password:[this.user.password],roles:[this.user.roles]}),this.buttonText="Save changes",this.form.get("name").disable()):(this.buttonText="Create",this.title="Create new user...",this.form=i.group({name:["",Nb.containsWhitespace],email:[""],password:[""],roles:[this.roleOptions]}))}get name(){return this.form.get("name")}getRoleOptions(t){return this.user.roles.includes(t)}doAction(){var t,i;const s=null!==(t=this.datePipe.transform(new Date,"dd/MM/yyyy HH:mm"))&&void 0!==t?t:"",r=Object.keys(this.roleOptions.value).filter(d=>this.roleOptions.value[d]),c={_id:this.user._id,created_at:s,email:this.form.value.email,password:this.form.value.password,roles:r,name:null!==(i=this.form.value.name)&&void 0!==i?i:this.user.name};this.dialogRef.close({event:this.action,data:c})}closeDialog(){this.dialogRef.close({event:Dt.CANCEL})}downloadCredentials(){const t={element:{dynamicDownload:null}},i=Object.assign({},this.form.getRawValue());delete i.roles,console.log(i);const s="credentials.json";t.element.dynamicDownload||(t.element.dynamicDownload=document.createElement("a"));const r=t.element.dynamicDownload,c=s.indexOf(".json")>-1?"text/json":"text/plain";r.setAttribute("href",`data:${c};charset=utf-8,${encodeURIComponent(JSON.stringify(i))}`),r.setAttribute("download",s);const d=new MouseEvent("click");r.dispatchEvent(d)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.so),o.Y36(T.qu),o.Y36(B.uU),o.Y36(W.WI,8))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dialog-content-example-dialog"]],decls:27,vars:9,consts:[["mat-dialog-title",""],[1,"mat-typography"],[3,"formGroup"],[1,"w3-col","l6","s12","m6"],[1,"full-width","input"],["formControlName","name","matInput",""],[4,"ngIf"],[1,"w3-col","l6","s12","m6","input"],[1,"full-width"],["email","","formControlName","email","matInput","","required","","type","email"],["class","w3-col l6 s12 m6",4,"ngIf"],["class","w3-col l6 s12 m6 download-credentials",4,"ngIf"],[1,"w3-col","l12","s12","m12"],[1,"example-section",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"alignRight"],["color","primary","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"],["class","alert alert-danger",4,"ngIf"],[1,"alert","alert-danger"],["formControlName","password","matInput","","required",""],[1,"w3-col","l6","s12","m6","download-credentials"],["color","primary","mat-flat-button","",3,"click"],[3,"formControlName"]],template:function(t,i){1&t&&(o.TgZ(0,"h2",0),o._uU(1),o.qZA(),o.TgZ(2,"mat-dialog-content",1)(3,"form",2)(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),o._uU(7,"Username"),o.qZA(),o._UZ(8,"input",5),o.YNc(9,Eb,2,1,"div",6),o.qZA()(),o.TgZ(10,"div",7)(11,"mat-form-field",8)(12,"mat-label"),o._uU(13,"E-Mail"),o.qZA(),o._UZ(14,"input",9),o.qZA()(),o.YNc(15,Fb,5,0,"div",10),o.YNc(16,Zb,3,0,"div",11),o.TgZ(17,"div",12)(18,"h3"),o._uU(19,"Roles"),o.qZA(),o.TgZ(20,"section",13),o.YNc(21,zb,3,2,"p",14),o.qZA()()()(),o.TgZ(22,"mat-dialog-actions",15)(23,"button",16),o.NdJ("click",function(){return i.doAction()}),o._uU(24),o.qZA(),o.TgZ(25,"button",17),o.NdJ("click",function(){return i.closeDialog()}),o._uU(26,"Cancel"),o.qZA()()),2&t&&(o.xp6(1),o.Oqu(i.title),o.xp6(2),o.Q6J("formGroup",i.form),o.xp6(6),o.Q6J("ngIf",i.name.touched&&i.name.invalid),o.xp6(6),o.Q6J("ngIf",i.action===i.DialogAction.ADD),o.xp6(1),o.Q6J("ngIf",i.action===i.DialogAction.ADD),o.xp6(4),o.Q6J("formGroup",i.roleOptions),o.xp6(1),o.Q6J("ngForOf",i.roles),o.xp6(2),o.Q6J("disabled",!i.form.valid),o.xp6(1),o.Oqu(i.buttonText))},dependencies:[B.sg,B.O5,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.on,T.sg,T.u,Ae.oG,et.lW,gt.Nt,A.KE,A.hX,W.uh,W.xY,W.H8],styles:[".download-credentials[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;padding-right:8px}"]}),n})();class Nb{static containsWhitespace(e){return e.value.indexOf(" ")>0?{containsWhitespace:!0}:null}}function Hb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"button",26),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.resetSearch())}),o.TgZ(1,"mat-icon"),o._uU(2,"close"),o.qZA()()}}function Ub(n,e){if(1&n&&(o.TgZ(0,"span",27),o._uU(1),o.qZA()),2&n){const t=o.oxw();o.xp6(1),o.AsE(" (+",t.dropdown.value.length-1," ",2===(null==t.dropdown.value?null:t.dropdown.value.length)?"other":"others",") ")}}function qb(n,e){if(1&n&&(o.TgZ(0,"mat-option",28),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.Q6J("value",t),o.xp6(1),o.Oqu(t)}}function Yb(n,e){1&n&&(o.TgZ(0,"th",29),o._uU(1,"Username"),o.qZA())}function Gb(n,e){if(1&n&&(o.TgZ(0,"td",30),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.xp6(1),o.Oqu(t.name)}}function Vb(n,e){1&n&&(o.TgZ(0,"th",31),o._uU(1,"Registered at"),o.qZA())}function jb(n,e){if(1&n&&(o.TgZ(0,"td",32),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.xp6(1),o.Oqu(t.created_at)}}function Wb(n,e){1&n&&(o.TgZ(0,"th",29),o._uU(1,"Roles"),o.qZA())}function Jb(n,e){if(1&n&&(o.TgZ(0,"mat-chip",35),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.ekj("admin-chip","Admin"===t)("provider-chip","Application_Provider"===t)("organization-chip","Organization_Admin"===t)("infra-chip","Infrastructure_Provider"===t),o.xp6(1),o.hij(" ",t," ")}}function Qb(n,e){if(1&n&&(o.TgZ(0,"td",30)(1,"mat-chip-list",33),o.YNc(2,Jb,2,9,"mat-chip",34),o.qZA()()),2&n){const t=e.$implicit;o.xp6(2),o.Q6J("ngForOf",t.roles)}}function $b(n,e){1&n&&o._UZ(0,"th",36)}function Kb(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"td",37)(1,"button",38),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw();return o.KtG(c.openDialog(c.DialogAction.UPDATE,r))}),o.TgZ(2,"span")(3,"mat-icon"),o._uU(4,"settings"),o.qZA()()(),o.TgZ(5,"button",38),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw();return o.KtG(c.openDeleteDialog(r))}),o.TgZ(6,"span")(7,"mat-icon"),o._uU(8,"delete"),o.qZA()()()()}}function Xb(n,e){1&n&&o._UZ(0,"tr",39)}function t0(n,e){1&n&&o._UZ(0,"tr",40)}let e0=(()=>{class n{constructor(t,i,s,r,c,d,m,u){this.router=t,this.route=i,this.api=s,this.dialog=r,this.datePipe=c,this.notifyService=d,this.store=m,this.userService=u,this.DialogAction=Dt,this.displayedColumns=["name","created_at","roles","symbol"],this.searchedUsers=[],this.searchText="",this.selectedItems=[""],this.dropdown=new T.NI,this.dropdownList=[],this.users$=this.store.pipe((0,vt.Ys)(Gn.f))}ngOnInit(){this.dropdownList=Object.keys(Uo.u),this.loadData();const t=this.userService.getOrganization();console.log(t),this.store.dispatch((0,ut.Y8)({organization_id:t})),this.users$.subscribe(i=>console.log(i))}loadData(){this.route.queryParams.subscribe(t=>{if(this.searchText=t.searchText,this.selectedItems=[],t.searchRoles){let i=[];Array.isArray(t.searchRoles)?i=t.searchRoles:i.push(t.searchRoles),this.dropdown.patchValue(i),i.forEach(s=>{var r;const c=null!==(r=this.dropdownList.find(d=>d===s))&&void 0!==r?r:"";this.selectedItems.push(c)})}this.doFilter("")})}doFilter(t){this.searchText=t,this.users$.subscribe(i=>{this.searchedUsers=i.filter(s=>this.nameFilter(s)&&this.roleFilter(s))})}nameFilter(t){return console.log(this.searchText),!this.searchText||0===this.searchText.length||-1!==t.name.toLowerCase().indexOf(this.searchText.toLowerCase())}roleFilter(t){return!this.selectedItems||0===this.selectedItems.length||this.selectedItems.some(i=>"None"===i&&0===t.roles.length||t.roles.some(s=>s===i))}deleteUser(t){this.store.dispatch((0,ut.h8)({user:t})),this.doFilter(this.searchText)}openDeleteDialog(t){this.dialog.open(El,{data:{text:"Delete user: "+t.name,type:"user"}}).afterClosed().subscribe(r=>{!0===r.event&&this.deleteUser(t)})}openDialog(t,i){t===Dt.ADD&&(i={_id:{$oid:""},created_at:"",email:"",name:"",password:"",roles:[]}),this.dialog.open(Bb,{data:{content:i,action:t}}).afterClosed().subscribe(c=>{c.event===Dt.ADD?this.store.dispatch((0,ut.l1)({user:c.data})):c.event===Dt.UPDATE&&this.store.dispatch((0,ut.Nq)({user:c.data}))})}resetSearch(){this.searchText="",this.doFilter("")}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Q.F0),o.Y36(Q.gz),o.Y36(Re.s),o.Y36(W.uw),o.Y36(B.uU),o.Y36(Vn.g),o.Y36(vt.yh),o.Y36(Ta.K))},n.\u0275cmp=o.Xpm({type:n,selectors:[["ng-component"]],decls:41,vars:9,consts:[[1,"content-cards"],[1,"serviceCard"],[1,"createDiv"],["mat-flat-button","","color","primary",3,"click"],[1,"w3-row","user-search"],[1,"w3-col","l4","m5"],["appearance","fill",1,"input-field","searchForm"],["matInput","","type","text",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","",3,"click",4,"ngIf"],["appearance","fill",1,"input-field"],["multiple","",3,"formControl"],["class","example-additional-selection",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-table","",1,"mat-elevation-z8","search",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["class","registeredRow","mat-header-cell","",4,"matHeaderCellDef"],["class","registeredRow","mat-cell","",4,"matCellDef"],["matColumnDef","roles"],["matColumnDef","symbol"],["mat-header-cell","","class","alignCenter",4,"matHeaderCellDef"],["mat-cell","","class","alignRight",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matSuffix","","mat-icon-button","",3,"click"],[1,"example-additional-selection"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"registeredRow"],["mat-cell","",1,"registeredRow"],["aria-label","roles"],["selected","",3,"admin-chip","provider-chip","organization-chip","infra-chip",4,"ngFor","ngForOf"],["selected",""],["mat-header-cell","",1,"alignCenter"],["mat-cell","",1,"alignRight"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-title"),o._uU(3,"User Management"),o.qZA(),o.TgZ(4,"mat-card-content")(5,"div",2)(6,"button",3),o.NdJ("click",function(){return i.openDialog(i.DialogAction.ADD)}),o.TgZ(7,"mat-icon"),o._uU(8,"add_circle_outline"),o.qZA(),o._uU(9," Create New User "),o.qZA()(),o.TgZ(10,"div",4)(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),o._uU(14,"Search by username"),o.qZA(),o.TgZ(15,"input",7),o.NdJ("ngModelChange",function(r){return i.doFilter(r)})("ngModelChange",function(r){return i.searchText=r}),o.qZA(),o.YNc(16,Hb,3,0,"button",8),o.qZA()(),o.TgZ(17,"div",5)(18,"mat-form-field",9)(19,"mat-label"),o._uU(20,"Roles"),o.qZA(),o.TgZ(21,"mat-select",10)(22,"mat-select-trigger"),o._uU(23),o.YNc(24,Ub,2,2,"span",11),o.qZA(),o.YNc(25,qb,2,2,"mat-option",12),o.qZA()()()(),o.TgZ(26,"table",13),o.ynx(27,14),o.YNc(28,Yb,2,0,"th",15),o.YNc(29,Gb,2,1,"td",16),o.BQk(),o.ynx(30,17),o.YNc(31,Vb,2,0,"th",18),o.YNc(32,jb,2,1,"td",19),o.BQk(),o.ynx(33,20),o.YNc(34,Wb,2,0,"th",15),o.YNc(35,Qb,3,1,"td",16),o.BQk(),o.ynx(36,21),o.YNc(37,$b,1,0,"th",22),o.YNc(38,Kb,9,0,"td",23),o.BQk(),o.YNc(39,Xb,1,0,"tr",24),o.YNc(40,t0,1,0,"tr",25),o.qZA()()()()),2&t&&(o.xp6(15),o.Q6J("ngModel",i.searchText),o.xp6(1),o.Q6J("ngIf",i.searchText),o.xp6(5),o.Q6J("formControl",i.dropdown),o.xp6(2),o.hij(" ",i.dropdown.value?i.dropdown.value:""," "),o.xp6(1),o.Q6J("ngIf",(null==i.dropdown.value?null:i.dropdown.value.length)>1),o.xp6(1),o.Q6J("ngForOf",i.dropdownList),o.xp6(1),o.Q6J("dataSource",i.searchedUsers),o.xp6(13),o.Q6J("matHeaderRowDef",i.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[B.sg,B.O5,T.Fj,T.JJ,T.On,T.oH,et.lW,et.RK,Lt.a8,Lt.dn,Lt.n5,le.Hw,gt.Nt,A.KE,A.hX,A.R9,Me.gD,Me.$L,F.ey,Zn,zn,Eo,$i,Qi,Bn,Ki,Xi,Fo,l,xi,Vr,No],styles:["@media only screen and (max-width: 450px){.registeredRow[_ngcontent-%COMP%]{display:none}}.mat-header-cell[_ngcontent-%COMP%]{text-align:center}.mat-icon-button[_ngcontent-%COMP%]{line-height:0}.alignRight[_ngcontent-%COMP%]{text-align:right}.alignCenter[_ngcontent-%COMP%]{text-align:center}.search[_ngcontent-%COMP%]{width:100%;margin-top:3vh}.input-field[_ngcontent-%COMP%]{width:90%}.user-search[_ngcontent-%COMP%]{padding-top:30px}.createDiv[_ngcontent-%COMP%]{padding-top:10px;text-align:end}.admin-chip[_ngcontent-%COMP%]{background-color:#de686b!important}.provider-chip[_ngcontent-%COMP%]{background-color:#3da23c!important}.organization-chip[_ngcontent-%COMP%]{background-color:#ada23c!important}.infra-chip[_ngcontent-%COMP%]{background-color:#2199a8!important}"]}),n})();function n0(n,e){1&n&&(o.TgZ(0,"div",12),o._uU(1," Old and new password should not be the same "),o.qZA())}function o0(n,e){if(1&n&&(o.TgZ(0,"div"),o.YNc(1,n0,2,0,"div",11),o.qZA()),2&n){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.form.errors.oldAndNewPassDifferent)}}function s0(n,e){1&n&&(o.TgZ(0,"div",12),o._uU(1," Confirmed password is not the same "),o.qZA())}function a0(n,e){if(1&n&&(o.TgZ(0,"div"),o.YNc(1,s0,2,0,"div",11),o.qZA()),2&n){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.form.errors.newPasswordsSame)}}let r0=(()=>{class n{constructor(t,i,s,r,c){this.dialogRef=t,this.data=i,this.api=s,this.notifyService=r,this.fb=c,this.user=i.content,this.form=c.group({oldPassword:new T.NI("",T.kI.required),newPassword:new T.NI("",T.kI.required),confirmNewPassword:new T.NI("",T.kI.required)},[Jh.oldAndNewPassDifferent,Jh.newPasswordsSame])}get confirmNewPassword(){return this.form.get("confirmNewPassword")}get newPassword(){return this.form.get("newPassword")}closeDialog(){this.dialogRef.close({event:"Cancel"})}updatePassword(){const t=this.form.get("oldPassword"),i=this.form.get("newPassword");t?.valid&&i?.valid&&this.api.changePassword(this.user.name,t.value,i.value).subscribe(()=>{this.notifyService.notify(jh.k.success,"Password changed"),this.closeDialog()})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.so),o.Y36(W.WI,8),o.Y36(Re.s),o.Y36(Vn.g),o.Y36(T.qu))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dialog-content-example-dialog"]],decls:23,vars:4,consts:[["mat-dialog-title",""],[3,"formGroup","ngSubmit"],[1,"mat-typography"],[1,"full-width"],["autocomplete","on","formControlName","oldPassword","matInput","","name","Old Password","type","password"],["autocomplete","on","formControlName","newPassword","matInput","","name","New password","type","password"],[4,"ngIf"],["autocomplete","on","formControlName","confirmNewPassword","matInput","","name","Confirm Password","type","password"],[1,"alignCenter"],["color","primary","mat-flat-button","","type","submit",3,"disabled"],["color","accent","mat-flat-button","","type","button",3,"click"],["class","alert alert-danger",4,"ngIf"],[1,"alert","alert-danger"]],template:function(t,i){1&t&&(o.TgZ(0,"h2",0),o._uU(1,"Change Password"),o.qZA(),o.TgZ(2,"form",1),o.NdJ("ngSubmit",function(){return i.updatePassword()}),o.TgZ(3,"mat-dialog-content",2)(4,"mat-form-field",3)(5,"mat-label"),o._uU(6,"Old password"),o.qZA(),o._UZ(7,"input",4),o.qZA(),o.TgZ(8,"mat-form-field",3)(9,"mat-label"),o._uU(10,"New password"),o.qZA(),o._UZ(11,"input",5),o.YNc(12,o0,2,1,"div",6),o.qZA(),o.TgZ(13,"mat-form-field",3)(14,"mat-label"),o._uU(15,"Confirm new password"),o.qZA(),o._UZ(16,"input",7),o.YNc(17,a0,2,1,"div",6),o.qZA()(),o.TgZ(18,"mat-dialog-actions",8)(19,"button",9),o._uU(20,"Update password"),o.qZA(),o.TgZ(21,"button",10),o.NdJ("click",function(){return i.closeDialog()}),o._uU(22,"Cancel"),o.qZA()()()),2&t&&(o.xp6(2),o.Q6J("formGroup",i.form),o.xp6(10),o.Q6J("ngIf",i.newPassword.touched&&i.form.invalid),o.xp6(5),o.Q6J("ngIf",i.confirmNewPassword.touched&&i.form.invalid),o.xp6(2),o.Q6J("disabled",!i.form.valid))},dependencies:[B.O5,T._Y,T.Fj,T.JJ,T.JL,T.sg,T.u,et.lW,gt.Nt,A.KE,A.hX,W.uh,W.xY,W.H8],encapsulation:2}),n})();class Jh{static oldAndNewPassDifferent(e){var t,i;return(null===(t=e.get("oldPassword"))||void 0===t?void 0:t.value)!==(null===(i=e.get("newPassword"))||void 0===i?void 0:i.value)?null:{oldAndNewPassDifferent:!0}}static newPasswordsSame(e){var t,i;return(null===(t=e.get("confirmNewPassword"))||void 0===t?void 0:t.value)===(null===(i=e.get("newPassword"))||void 0===i?void 0:i.value)?null:{newPasswordsSame:!0}}}var Qh=S(455);const l0=function(n){return{"background-color":n}};function c0(n,e){if(1&n&&(o.TgZ(0,"mat-chip",14),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.Q6J("ngStyle",o.VKq(2,l0,"Admin"===t?"#DE686B":"Application_Provider"===t?"#3DA23C":"#ADA23C")),o.xp6(1),o.hij(" ",t," ")}}function d0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"form",3),o.NdJ("ngSubmit",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.onSubmit())}),o.TgZ(1,"div")(2,"mat-form-field",4)(3,"mat-label"),o._uU(4,"Name"),o.qZA(),o._UZ(5,"input",5),o.ALo(6,"async"),o.qZA()(),o.TgZ(7,"div")(8,"mat-form-field",4)(9,"mat-label"),o._uU(10,"E-mail"),o.qZA(),o._UZ(11,"input",6),o.qZA()(),o.TgZ(12,"div")(13,"h5"),o._uU(14,"Your Roles"),o.qZA(),o.TgZ(15,"mat-chip-list",7),o.YNc(16,c0,2,4,"mat-chip",8),o.ALo(17,"async"),o.qZA()(),o.TgZ(18,"div",9)(19,"mat-slide-toggle",10),o.NdJ("change",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r.onDarkModeSwitched(s))}),o.qZA(),o.TgZ(20,"p"),o._uU(21,"Dark Mode"),o.qZA()(),o._UZ(22,"br"),o.TgZ(23,"div",11)(24,"button",12),o._uU(25," Save "),o.qZA(),o.TgZ(26,"button",13),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.openDialog(s.user))}),o._uU(27," Change Password "),o.qZA()()()}if(2&n){const t=o.oxw();o.Q6J("formGroup",t.form),o.xp6(5),o.Q6J("value",o.lcZ(6,5,t.user$).name),o.xp6(11),o.Q6J("ngForOf",o.lcZ(17,7,t.user$).roles),o.xp6(3),o.Q6J("checked",t.isDarkMode),o.xp6(5),o.Q6J("disabled",!t.form.valid)}}let h0=(()=>{class n{constructor(t,i,s,r,c,d,m){this.fb=t,this.dialog=i,this.userService=s,this.router=r,this.store=c,this.document=d,this.renderer=m,this.user$=this.store.pipe((0,vt.Ys)(Gn.H)),this.form=t.group({email:["",T.kI.email]}),this.isDarkMode=JSON.parse(localStorage.getItem("darkMode"))}ngOnInit(){this.store.dispatch((0,ut.PR)({name:this.userService.getUsername()})),this.user$.subscribe(t=>{this.user=t,this.form.patchValue({email:this.user.email})})}onSubmit(){var t;const i=Object.assign(Object.assign({},this.user),{email:null===(t=this.form.get("email"))||void 0===t?void 0:t.value});this.store.dispatch((0,ut.Nq)({user:i}))}openDialog(t){this.dialog.open(r0,{data:{content:t}})}onDarkModeSwitched({checked:t}){console.log(t),localStorage.setItem("darkMode",String(t)),this.renderer.setAttribute(this.document.body,"class",t?"theme-dark":"theme-light")}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu),o.Y36(W.uw),o.Y36(Ta.K),o.Y36(Q.F0),o.Y36(vt.yh),o.Y36(B.K0),o.Y36(o.Qsj))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-profile"]],decls:8,vars:3,consts:[[1,"content-cards"],[1,"serviceCard"],["class","form",3,"formGroup","ngSubmit",4,"ngIf"],[1,"form",3,"formGroup","ngSubmit"],["appearance","fill",1,"input-field"],["disabled","","matInput","",3,"value"],["formControlName","email","matInput",""],["aria-label","roles"],["selected","",3,"ngStyle",4,"ngFor","ngForOf"],[1,"darkModeToggle"],[3,"checked","change"],[1,"alignCenter"],["color","primary","mat-button","","mat-flat-button","","type","submit",3,"disabled"],["mat-flat-button","","type","button","color","primary",1,"cancel_buttons",3,"click"],["selected","",3,"ngStyle"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"mat-card",1)(2,"div")(3,"mat-card-title"),o._uU(4,"Profile"),o.qZA(),o.TgZ(5,"mat-card-content"),o.YNc(6,d0,28,9,"form",2),o.ALo(7,"async"),o.qZA()()()()),2&t&&(o.xp6(6),o.Q6J("ngIf",o.lcZ(7,1,i.user$)))},dependencies:[B.sg,B.O5,B.PC,T._Y,T.Fj,T.JJ,T.JL,T.sg,T.u,et.lW,Lt.a8,Lt.dn,Lt.n5,gt.Nt,A.KE,A.hX,xi,Vr,No,Qh.Rr,B.Ov],styles:[".alignCenter[_ngcontent-%COMP%]{text-align:center}.form[_ngcontent-%COMP%]{padding-top:20px}.input-field[_ngcontent-%COMP%]{width:60%}.darkModeToggle[_ngcontent-%COMP%]{margin:30px 0 0;display:flex}"]}),n})(),m0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-infrastructure"]],decls:3,vars:0,consts:[[1,"content-cards"],[1,"content","mat-elevation-z8"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"div",1),o._uU(2,"TODO: Implement infra stuff"),o.qZA()())},styles:[".content[_ngcontent-%COMP%]{text-align:center;height:70vh;border-radius:10px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3}"]}),n})();function u0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"button",13),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.resetSearch())}),o.TgZ(1,"mat-icon"),o._uU(2,"close"),o.qZA()()}}function p0(n,e){if(1&n&&(o.TgZ(0,"mat-option",14)(1,"mat-checkbox",15),o._uU(2),o.qZA()()),2&n){const t=e.$implicit;o.xp6(1),o.Q6J("formControlName",t.name),o.xp6(1),o.hij(" ",t.name,"")}}function f0(n,e){1&n&&(o.TgZ(0,"p"),o._uU(1,"There are no additional users that could be added"),o.qZA())}let g0=(()=>{class n{constructor(t,i,s,r){this.dialogRef=t,this.data=i,this.store=s,this.fb=r,this.DialogAction=Dt,this.searchText="",this.userFiltered=[],this.user$=this.store.pipe((0,vt.Ys)(Gn.f))}ngOnInit(){this.store.dispatch((0,ut.Y8)({organization_id:""})),this.user$.subscribe(t=>{const i=this.data.currentMember.map(s=>s.name);this.user=t.filter(s=>!i.includes(s.name)),this.selection=this.fb.group(this.user.map(s=>s.name).reduce((s,r)=>(s[r]=!1,s),{})),this.search("")})}doAction(){const t=Object.keys(this.selection.value).filter(i=>this.selection.value[i]);this.user=this.user.filter(i=>t.includes(i.name)),this.dialogRef.close({event:Dt.ADD,data:this.user})}closeDialog(){this.dialogRef.close({event:Dt.CANCEL})}resetSearch(){this.searchText="",this.search("")}search(t){console.log(t),this.userFiltered=this.user.filter(i=>{var s;return-1!==i.name.toLowerCase().indexOf(null!==(s=t?.toLowerCase())&&void 0!==s?s:"")})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.so),o.Y36(W.WI,8),o.Y36(vt.yh),o.Y36(T.qu))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-add-member"]],decls:20,vars:5,consts:[["mat-dialog-title",""],[1,"mat-typography"],[1,"w3-row"],[1,"w3-col","l12","s12","m12"],["appearance","fill",1,"input-field","searchForm"],["matInput","","type","text",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","",3,"click",4,"ngIf"],[3,"formGroup"],["class","userEntry",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"alignRight"],["color","primary","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",3,"click"],["matSuffix","","mat-icon-button","",3,"click"],[1,"userEntry"],[3,"formControlName"]],template:function(t,i){1&t&&(o.TgZ(0,"h2",0),o._uU(1,"Add Member"),o.qZA(),o.TgZ(2,"mat-dialog-content",1)(3,"div",2)(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),o._uU(7,"Search user"),o.qZA(),o.TgZ(8,"input",5),o.NdJ("ngModelChange",function(r){return i.search(r)})("ngModelChange",function(r){return i.searchText=r}),o.qZA(),o.YNc(9,u0,3,0,"button",6),o.qZA()()(),o.TgZ(10,"mat-section",7)(11,"h4"),o._uU(12,"Member"),o.qZA(),o.YNc(13,p0,3,2,"mat-option",8),o.qZA(),o.YNc(14,f0,2,0,"p",9),o.qZA(),o.TgZ(15,"mat-dialog-actions",10)(16,"button",11),o.NdJ("click",function(){return i.doAction()}),o._uU(17,"Add"),o.qZA(),o.TgZ(18,"button",12),o.NdJ("click",function(){return i.closeDialog()}),o._uU(19,"Cancel"),o.qZA()()),2&t&&(o.xp6(8),o.Q6J("ngModel",i.searchText),o.xp6(1),o.Q6J("ngIf",i.searchText),o.xp6(1),o.Q6J("formGroup",i.selection),o.xp6(3),o.Q6J("ngForOf",i.userFiltered),o.xp6(1),o.Q6J("ngIf",0===i.userFiltered.length))},dependencies:[B.sg,B.O5,T.Fj,T.JJ,T.JL,T.On,T.sg,T.u,Ae.oG,et.lW,et.RK,le.Hw,gt.Nt,A.KE,A.hX,A.R9,W.uh,W.xY,W.H8,F.ey],styles:[".mat-typography[_ngcontent-%COMP%]{min-width:30vw}.userEntry[_ngcontent-%COMP%]{padding:0!important}"]}),n})();function _0(n,e){if(1&n&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&n){const t=o.oxw().$implicit;o.xp6(1),o.Oqu(t.roles)}}function v0(n,e){if(1&n&&(o.TgZ(0,"mat-option",14),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.Q6J("value",t),o.xp6(1),o.Oqu(t)}}function b0(n,e){if(1&n&&(o.TgZ(0,"mat-form-field",11)(1,"mat-select",12),o.YNc(2,v0,2,2,"mat-option",13),o.qZA()()),2&n){const t=o.oxw().index,i=o.oxw();o.xp6(1),o.Q6J("formControl",i.roles[t]),o.xp6(1),o.Q6J("ngForOf",i.rolesList)}}function x0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){o.CHM(t);const s=o.oxw().index,r=o.oxw();return o.KtG(r.saveRoles(s))}),o.TgZ(1,"mat-icon"),o._uU(2,"save"),o.qZA()()}}function w0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){o.CHM(t);const s=o.oxw().index,r=o.oxw();return o.KtG(r.toggleEdit(s))}),o.TgZ(1,"mat-icon"),o._uU(2,"edit"),o.qZA()()}}function y0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",3)(1,"div",4)(2,"mat-icon"),o._uU(3,"account_circle"),o.qZA(),o.TgZ(4,"p"),o._uU(5),o.qZA()(),o.TgZ(6,"div",5),o.YNc(7,_0,2,1,"p",6),o.YNc(8,b0,3,2,"mat-form-field",7),o.qZA(),o.TgZ(9,"div",8),o.YNc(10,x0,3,0,"button",9),o.YNc(11,w0,3,0,"button",9),o.TgZ(12,"button",10),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw();return o.KtG(c.removeMember(r))}),o.TgZ(13,"mat-icon"),o._uU(14,"highlight_off"),o.qZA()()()()}if(2&n){const t=e.$implicit,i=e.index,s=o.oxw();o.xp6(5),o.hij("\xa0",t.name,""),o.xp6(2),o.Q6J("ngIf",!s.editItem[i]),o.xp6(1),o.Q6J("ngIf",s.editItem[i]),o.xp6(2),o.Q6J("ngIf",s.editItem[i]),o.xp6(1),o.Q6J("ngIf",!s.editItem[i])}}function C0(n,e){1&n&&(o.TgZ(0,"div",15)(1,"p"),o._uU(2,"No member found in this organization"),o.qZA()())}let k0=(()=>{class n{constructor(t){this.dialog=t,this.removeEvent=new o.vpe,this.updateRoles=new o.vpe,this.rolesList=Object.values(Uo.u),this.roles=[]}ngOnInit(){var t;this.editItem=null===(t=this.searchedMember)||void 0===t?void 0:t.map(()=>!1),this.searchedMember.forEach(i=>{this.roles.push(new T.NI({value:i.roles,disabled:!0}))})}removeMember(t){this.dialog.open(El,{data:{text:`Remove ${t.name} from organization`,type:"member"}}).afterClosed().subscribe(r=>{!0===r.event&&this.removeEvent.emit(t)})}saveRoles(t){this.toggleEdit(t),this.searchedMember[t].roles=this.roles[t].value,this.updateRoles.emit(this.searchedMember[t])}toggleEdit(t){this.editItem[t]=!this.editItem[t],this.roles[t].disabled?this.roles[t].enable():this.roles[t].disable()}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(W.uw))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-member-item"]],inputs:{searchedMember:"searchedMember"},outputs:{removeEvent:"removeEvent",updateRoles:"updateRoles"},decls:3,vars:2,consts:[[1,"member-list"],["class","w3-row member-item",4,"ngFor","ngForOf"],["class","noMember",4,"ngIf"],[1,"w3-row","member-item"],[1,"w3-col","l3","m3","member-item-person"],[1,"w3-col","l6","m6","roleSelect"],[4,"ngIf"],["class","roleSelectField",4,"ngIf"],[1,"w3-col","l3","m3","editButtons"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"roleSelectField"],["multiple","",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"noMember"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0),o.YNc(1,y0,15,5,"div",1),o.YNc(2,C0,3,0,"div",2),o.qZA()),2&t&&(o.xp6(1),o.Q6J("ngForOf",i.searchedMember),o.xp6(1),o.Q6J("ngIf",0===i.searchedMember.length))},dependencies:[B.sg,B.O5,T.JJ,T.oH,et.RK,le.Hw,A.KE,Me.gD,F.ey],styles:[".roleSelect[_ngcontent-%COMP%]{cursor:pointer}.roleSelectField[_ngcontent-%COMP%]{margin-bottom:-1.25em;cursor:pointer;overflow:hidden}.roleSelect[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{overflow:auto;color:gray}.noMember[_ngcontent-%COMP%]{padding-top:50px;text-align:center}.noMember[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:2rem;color:#d3d3d3}.member-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:5px;align-items:center}.member-item[_ngcontent-%COMP%]:hover{background-color:#f3f3f3}.member-item-person[_ngcontent-%COMP%]{display:flex;align-items:center}.editButtons[_ngcontent-%COMP%]{text-align:end}"]}),n})();function M0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"div",18)(1,"button",19),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw();return o.KtG(c.changeSelected(r))}),o.TgZ(2,"mat-icon"),o._uU(3,"fiber_manual_record"),o.qZA(),o._uU(4),o.qZA()()}if(2&n){const t=e.$implicit,i=o.oxw();o.ekj("selected",t._id===(null==i.selected?null:i.selected._id)),o.xp6(4),o.hij(" ",t.name," ")}}function T0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"button",20),o.NdJ("click",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.resetSearch())}),o.TgZ(1,"mat-icon"),o._uU(2,"close"),o.qZA()()}}function S0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"app-member-item",21),o.NdJ("removeEvent",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r.remove(s))})("updateRoles",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r.updateOrganization(s))}),o.qZA()}if(2&n){const t=o.oxw();o.Q6J("searchedMember",t.searchedMember)}}let P0=(()=>{class n{constructor(t,i){this.store=t,this.dialog=i,this.back=new o.vpe,this.member=[],this.searchText="",this.searchedMember=[],this.user$=this.store.pipe((0,vt.Ys)(Gn.f))}ngOnInit(){if(this.store.dispatch((0,ut.Y8)({organization_id:""})),this.user$.subscribe(t=>{this.user=t,this.getMemberNames()}),this.name=this.selected.name,!this.selected._id){const t=this.selected.name;this.organizations$.subscribe(i=>{var s;this.selected=null!==(s=i.find(r=>r.name===t))&&void 0!==s?s:this.selected})}}getMemberNames(){const t=[],i=this.selected.member.map(s=>s.user_id);this.member=this.user.filter(s=>i.includes(s._id.$oid)),this.member.forEach(s=>{const r=this.selected.member.find(c=>c.user_id===s._id.$oid);t.push(Object.assign(Object.assign({},s),{roles:r.roles}))}),this.member=[...t],this.searchedMember=[...this.member]}changeSelected(t){this.selected=t,this.name=this.selected.name,this.getMemberNames()}addMember(){this.dialog.open(g0,{data:{currentMember:this.member}}).afterClosed().subscribe(i=>{const s=[...this.selected.member];if(i.event===Dt.ADD){i.data.forEach(d=>{s.push({user_id:d._id.$oid,roles:[]})});const c=Object.assign(Object.assign({},this.selected),{member:s});this.selected=c,this.store.dispatch((0,ut.FV)({organization:c})),this.store.dispatch((0,ut.Xu)()),this.search("")}})}save(){const t=Object.assign(Object.assign({},this.selected),{name:this.name});this.selected=t,this.store.dispatch((0,ut.FV)({organization:t}))}updateOrganization(t){const i={user_id:t._id.$oid,roles:t.roles},s=this.selected.member.filter(c=>c.user_id!==t._id.$oid),r=Object.assign(Object.assign({},this.selected),{member:[...s,i]});this.store.dispatch((0,ut.FV)({organization:r}))}resetSearch(){this.searchText="",this.search("")}search(t){this.searchedMember=this.member.filter(i=>{var s;return-1!==i.name.toLowerCase().indexOf(null!==(s=t?.toLowerCase())&&void 0!==s?s:"")})}remove(t){const i=Object.assign(Object.assign({},this.selected),{member:this.selected.member.filter(s=>s.user_id!==t._id.$oid)});this.store.dispatch((0,ut.FV)({organization:i})),this.store.dispatch((0,ut.Xu)()),this.member=this.member.filter(s=>s!==t),this.search(this.searchText)}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(vt.yh),o.Y36(W.uw))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-edit-organization"]],inputs:{organizations$:"organizations$",selected:"selected"},outputs:{back:"back"},decls:36,vars:9,consts:[[1,"organization-sidenav"],["mode","side","opened","",1,"organization-sidenav-side"],[1,"sidenav-buttons"],["mat-flat-button","","color","primary",3,"click"],[1,"organization-list"],["class","organization-entry",3,"selected",4,"ngFor","ngForOf"],[1,"matContainer"],["label","General",1,"tab"],[1,"tab"],["appearance","fill",1,"input-field","searchForm"],["matInput","","type","text",3,"ngModel","change","ngModelChange"],[3,"label"],[1,"w3-row","addOrganization"],[1,"w3-col","l7","m8"],["matInput","","type","text",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","",3,"click",4,"ngIf"],[1,"w3-col","l5","m4","w3-right-align"],[3,"searchedMember","removeEvent","updateRoles",4,"ngIf"],[1,"organization-entry"],["type","button",1,"organization-button",3,"click"],["matSuffix","","mat-icon-button","",3,"click"],[3,"searchedMember","removeEvent","updateRoles"]],template:function(t,i){1&t&&(o.TgZ(0,"mat-drawer-container",0)(1,"mat-drawer",1)(2,"div",2)(3,"button",3),o.NdJ("click",function(){return i.back.emit()}),o.TgZ(4,"mat-icon"),o._uU(5,"arrow_back"),o.qZA(),o._uU(6," Back "),o.qZA()(),o.TgZ(7,"div",4),o.YNc(8,M0,5,3,"div",5),o.ALo(9,"async"),o.qZA()(),o.TgZ(10,"mat-drawer-content",6)(11,"div")(12,"h2"),o._uU(13),o.qZA()(),o.TgZ(14,"mat-tab-group")(15,"mat-tab",7)(16,"div",8)(17,"mat-form-field",9)(18,"mat-label"),o._uU(19,"Organization Name"),o.qZA(),o.TgZ(20,"input",10),o.NdJ("change",function(){return i.save()})("ngModelChange",function(r){return i.name=r}),o.qZA()()()(),o.TgZ(21,"mat-tab",11)(22,"div",8)(23,"div",12)(24,"div",13)(25,"mat-form-field",9)(26,"mat-label"),o._uU(27,"Search by username"),o.qZA(),o.TgZ(28,"input",14),o.NdJ("ngModelChange",function(r){return i.search(r)})("ngModelChange",function(r){return i.searchText=r}),o.qZA(),o.YNc(29,T0,3,0,"button",15),o.qZA()(),o.TgZ(30,"div",16)(31,"button",3),o.NdJ("click",function(){return i.addMember()}),o.TgZ(32,"mat-icon"),o._uU(33,"add_circle_outline"),o.qZA(),o._uU(34," Add member "),o.qZA()()(),o.YNc(35,S0,1,1,"app-member-item",17),o.qZA()()()()()),2&t&&(o.xp6(8),o.Q6J("ngForOf",o.lcZ(9,7,i.organizations$)),o.xp6(5),o.hij("Current Organization: ",null==i.selected?null:i.selected.name,""),o.xp6(7),o.Q6J("ngModel",i.name),o.xp6(1),o.MGl("label","Manage Members (",null==i.selected?null:i.selected.member.length,")"),o.xp6(7),o.Q6J("ngModel",i.searchText),o.xp6(1),o.Q6J("ngIf",i.searchText),o.xp6(6),o.Q6J("ngIf",0!==i.user.length))},dependencies:[B.sg,B.O5,T.Fj,T.JJ,T.On,ro,lo,Ri,et.lW,et.RK,le.Hw,V.uX,V.SP,gt.Nt,A.KE,A.hX,A.R9,k0,B.Ov],styles:[".organization-sidenav-side[_ngcontent-%COMP%]{width:20vw}.sidenav-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:20px;padding-right:10px}.mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff;padding:10px}.organization-list[_ngcontent-%COMP%]{padding-top:40px}.organization-entry[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}.organization-entry[_ngcontent-%COMP%]:hover{background-color:#f3f3f3}.organization-button[_ngcontent-%COMP%]{width:80%;background-color:transparent;border:none;cursor:pointer;text-align:inherit}.addOrganization[_ngcontent-%COMP%]{display:flex;align-items:baseline}.organization-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}.selected[_ngcontent-%COMP%]{background-color:#f3f3f3}.remove[_ngcontent-%COMP%]{cursor:pointer}.tab[_ngcontent-%COMP%]{padding:20px}.matContainer[_ngcontent-%COMP%]{min-height:60vh}"]}),n})();function A0(n,e){1&n&&(o.TgZ(0,"th",15),o._uU(1,"Organization"),o.qZA())}function D0(n,e){if(1&n&&(o.TgZ(0,"td",16),o._uU(1),o.qZA()),2&n){const t=e.$implicit;o.xp6(1),o.Oqu(t.name)}}function O0(n,e){1&n&&(o.TgZ(0,"th",15),o._uU(1,"Member"),o.qZA())}function I0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"td",16)(1,"div",17),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw();return o.KtG(c.editOrganization(r))}),o.TgZ(2,"p"),o._uU(3),o.qZA(),o.TgZ(4,"mat-icon"),o._uU(5,"person"),o.qZA()()()}if(2&n){const t=e.$implicit;o.xp6(3),o.Oqu(t.member.length)}}function L0(n,e){1&n&&o._UZ(0,"th",18)}function R0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"td",19)(1,"button",20),o.NdJ("click",function(){const r=o.CHM(t).$implicit,c=o.oxw();return o.KtG(c.openDeleteDialog(r))}),o.TgZ(2,"span")(3,"mat-icon"),o._uU(4,"delete"),o.qZA()()()()}}function E0(n,e){1&n&&o._UZ(0,"tr",21)}function F0(n,e){1&n&&o._UZ(0,"tr",22)}let Z0=(()=>{class n{constructor(t,i,s,r,c,d,m){this.router=t,this.route=i,this.api=s,this.dialog=r,this.datePipe=c,this.notifyService=d,this.store=m,this.selectedOrga=new o.vpe,this.organizations$=this.store.pipe((0,vt.Ys)(jr.m)),this.displayedColumns=["name","roles","symbol"],this.searchedOrganizations=[],this.searchText=""}ngOnInit(){this.organizations$.subscribe(t=>{this.searchedOrganizations=t.filter(i=>this.nameFilter(i,""))})}search(t){this.organizations$.subscribe(i=>{this.searchedOrganizations=i.filter(s=>this.nameFilter(s,t))})}nameFilter(t,i){return!i||0===i.length||-1!==t.name.toLowerCase().indexOf(i.toLowerCase())}editOrganization(t){this.selectedOrga.emit(t)}newOrganization(){const t={name:"newOrganization",member:[]};this.store.dispatch((0,ut.Ey)({organization:t})),this.editOrganization(t)}openDeleteDialog(t){this.dialog.open(El,{data:{text:"Delete organization: "+t.name,type:"organization"}}).afterClosed().subscribe(r=>{console.log(r),!0===r.event&&this.store.dispatch((0,ut.Mz)({organization:t}))})}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(Q.F0),o.Y36(Q.gz),o.Y36(Re.s),o.Y36(W.uw),o.Y36(B.uU),o.Y36(Vn.g),o.Y36(vt.yh))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-list-organization"]],outputs:{selectedOrga:"selectedOrga"},decls:23,vars:4,consts:[[1,"addOrganization"],["appearance","fill",1,"input-field","searchForm"],["matInput","","type","text",3,"ngModel","ngModelChange"],["matSuffix",""],["mat-flat-button","","color","primary",3,"click"],["mat-table","",1,"search",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","roles"],["matColumnDef","symbol"],["mat-header-cell","","class","alignCenter",4,"matHeaderCellDef"],["mat-cell","","class","alignRight",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["matTooltip","View members","matTooltipPosition","before",1,"member",3,"click"],["mat-header-cell","",1,"alignCenter"],["mat-cell","",1,"alignRight"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),o._uU(3,"Search organization"),o.qZA(),o.TgZ(4,"input",2),o.NdJ("ngModelChange",function(r){return i.search(r)})("ngModelChange",function(r){return i.searchText=r}),o.qZA(),o.TgZ(5,"mat-icon",3),o._uU(6,"search"),o.qZA()(),o.TgZ(7,"button",4),o.NdJ("click",function(){return i.newOrganization()}),o.TgZ(8,"mat-icon"),o._uU(9,"add_circle_outline"),o.qZA(),o._uU(10," Create Organization "),o.qZA()(),o.TgZ(11,"table",5),o.ynx(12,6),o.YNc(13,A0,2,0,"th",7),o.YNc(14,D0,2,1,"td",8),o.BQk(),o.ynx(15,9),o.YNc(16,O0,2,0,"th",7),o.YNc(17,I0,6,1,"td",8),o.BQk(),o.ynx(18,10),o.YNc(19,L0,1,0,"th",11),o.YNc(20,R0,5,0,"td",12),o.BQk(),o.YNc(21,E0,1,0,"tr",13),o.YNc(22,F0,1,0,"tr",14),o.qZA()),2&t&&(o.xp6(4),o.Q6J("ngModel",i.searchText),o.xp6(7),o.Q6J("dataSource",i.searchedOrganizations),o.xp6(10),o.Q6J("matHeaderRowDef",i.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[T.Fj,T.JJ,T.On,et.lW,et.RK,le.Hw,gt.Nt,A.KE,A.hX,A.R9,lt.gM,Zn,zn,Eo,$i,Qi,Bn,Ki,Xi,Fo,l],styles:[".createDiv[_ngcontent-%COMP%]{padding-top:10px}.mat-column-symbol[_ngcontent-%COMP%]{width:32px;text-align:center}.member[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.addOrganization[_ngcontent-%COMP%]{margin-top:40px;display:flex;align-items:center;justify-content:space-between}.searchForm[_ngcontent-%COMP%]{height:48px;width:50vw}table[_ngcontent-%COMP%]{margin-top:40px}"]}),n})();function z0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"app-list-organization",4),o.NdJ("selectedOrga",function(s){o.CHM(t);const r=o.oxw();return o.KtG(r.editOrganization(s))}),o.qZA()}}function B0(n,e){if(1&n){const t=o.EpF();o.TgZ(0,"app-edit-organization",5),o.NdJ("back",function(){o.CHM(t);const s=o.oxw();return o.KtG(s.toggleEdit())}),o.qZA()}if(2&n){const t=o.oxw();o.Q6J("organizations$",t.organizations$)("selected",t.selected)}}let N0=(()=>{class n{constructor(t){this.store=t,this.organizations$=this.store.pipe((0,vt.Ys)(jr.m)),this.selected=null,this.edit=!0}editOrganization(t){this.selected=t,this.toggleEdit()}toggleEdit(){this.edit=!this.edit}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(vt.yh))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-organization"]],decls:7,vars:2,consts:[[1,"content-cards"],[1,"serviceCard"],[3,"selectedOrga",4,"ngIf"],[3,"organizations$","selected","back",4,"ngIf"],[3,"selectedOrga"],[3,"organizations$","selected","back"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-title"),o._uU(3,"Organization Management"),o.qZA(),o.TgZ(4,"mat-card-content"),o.YNc(5,z0,1,0,"app-list-organization",2),o.YNc(6,B0,1,2,"app-edit-organization",3),o.qZA()()()),2&t&&(o.xp6(5),o.Q6J("ngIf",i.edit),o.xp6(1),o.Q6J("ngIf",!i.edit))},dependencies:[B.O5,Lt.a8,Lt.dn,Lt.n5,P0,Z0]}),n})();var H0=S(1406),hs=S(9267);function U0(n,e){if(1&n&&(o.TgZ(0,"mat-radio-button",6),o._uU(1),o.qZA()),2&n){const t=e.$implicit,i=o.oxw();o.Q6J("value",t)("disabled",t===i.ConfigurationType.OAKESTRA),o.xp6(1),o.hij(" ",t," ")}}function q0(n,e){1&n&&(o.TgZ(0,"div"),o._uU(1," This will disable some functions: "),o.TgZ(2,"ul")(3,"li"),o._uU(4,"Users do not receive mail when they change their password"),o.qZA(),o.TgZ(5,"li"),o._uU(6,"New users do not receive a mail that an account was created for them"),o.qZA(),o.TgZ(7,"li"),o._uU(8," Users can't reset their password in the usual way because they can't receive the mail, the admin has to reset the password. "),o.qZA()()())}function Y0(n,e){if(1&n&&(o.TgZ(0,"div")(1,"div",7)(2,"mat-form-field")(3,"mat-label"),o._uU(4,"Server Address"),o.qZA(),o._UZ(5,"input",8),o.qZA(),o.TgZ(6,"mat-form-field")(7,"mat-label"),o._uU(8,"Port"),o.qZA(),o._UZ(9,"input",9),o.qZA(),o.TgZ(10,"mat-form-field")(11,"mat-label"),o._uU(12,"Username"),o.qZA(),o._UZ(13,"input",10),o.qZA(),o.TgZ(14,"mat-form-field")(15,"mat-label"),o._uU(16,"Password"),o.qZA(),o._UZ(17,"input",11),o.qZA(),o.TgZ(18,"mat-checkbox",12),o._uU(19,"Use SSL"),o.qZA()()()),2&n){const t=o.oxw();o.xp6(1),o.Q6J("formGroup",t.form)}}function G0(n,e){if(1&n&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&n){const t=o.oxw();o.xp6(1),o.hij("Your favorite season is: ",t.selectedOption,"")}}const j0=[{path:"",component:lu,children:[{path:"",component:Nv,pathMatch:"full",canActivate:[ti.P]},{path:"help",component:Hv,canActivate:[ti.P]},{path:"deploy/:id",component:Wh,canActivate:[ti.P]},{path:"deploy",component:Wh,canActivate:[ti.P]},{path:"users",component:e0,canActivate:[ti.P,Km.m]},{path:"profile",component:h0,canActivate:[ti.P]},{path:"organization",component:N0,canActivate:[ti.P]},{path:"settings",component:(()=>{class n{constructor(t,i){this.fb=t,this.store=i,this.ConfigurationType=hs.c,this.options=[hs.c.NONE,hs.c.CUSTOME,hs.c.OAKESTRA]}ngOnInit(){this.store.select(H0.v).pipe((0,Jt.q)(1)).subscribe(t=>{var i,s,r,c,d;console.log(t),this.selectedOption=t.type,this.form=this.fb.group({address:null!==(i=t.address)&&void 0!==i?i:[""],port:null!==(s=t.port)&&void 0!==s?s:[""],username:null!==(r=t.username)&&void 0!==r?r:[""],password:null!==(c=t.ssl)&&void 0!==c?c:[""],ssl:null!==(d=t.ssl)&&void 0!==d?d:[!1]})})}save(){let t={type:this.selectedOption};this.selectedOption===hs.c.CUSTOME&&(t=Object.assign(Object.assign({},t),this.form.getRawValue())),this.store.dispatch((0,ut.I2)({settings:t}))}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(T.qu),o.Y36(vt.yh))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-settings"]],decls:14,vars:5,consts:[[1,"content-cards"],[1,"serviceCard"],[1,"radio-group",3,"ngModel","ngModelChange"],["class","option",3,"value","disabled",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-flat-button","","color","primary","type","submit",3,"click"],[1,"option",3,"value","disabled"],[1,"form",3,"formGroup"],["matInput","","formControlName","address"],["matInput","","formControlName","port"],["matInput","","formControlName","username"],["matInput","","formControlName","password"],["formControlName","ssl"]],template:function(t,i){1&t&&(o.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-title"),o._uU(3,"Settings"),o.qZA(),o.TgZ(4,"mat-card-content")(5,"h2"),o._uU(6,"Configure SMTP server:"),o.qZA(),o.TgZ(7,"mat-radio-group",2),o.NdJ("ngModelChange",function(r){return i.selectedOption=r}),o.YNc(8,U0,2,3,"mat-radio-button",3),o.qZA(),o.YNc(9,q0,9,0,"div",4),o.YNc(10,Y0,20,1,"div",4),o.YNc(11,G0,2,1,"div",4),o.TgZ(12,"button",5),o.NdJ("click",function(){return i.save()}),o._uU(13,"Save"),o.qZA()()()()),2&t&&(o.xp6(7),o.Q6J("ngModel",i.selectedOption),o.xp6(1),o.Q6J("ngForOf",i.options),o.xp6(1),o.Q6J("ngIf","None"===i.selectedOption),o.xp6(1),o.Q6J("ngIf",i.selectedOption===i.ConfigurationType.CUSTOME),o.xp6(1),o.Q6J("ngIf","Oakestra"===i.selectedOption))},dependencies:[B.sg,B.O5,T.Fj,T.JJ,T.JL,T.On,T.sg,T.u,Ae.oG,et.lW,Lt.a8,Lt.dn,Lt.n5,gt.Nt,A.KE,A.hX,ze,at],styles:[".radio-group[_ngcontent-%COMP%]{display:flex;width:50vh;font-size:.5em;justify-content:space-between;padding-bottom:20px}.form[_ngcontent-%COMP%]{width:50vh}button[_ngcontent-%COMP%]{margin-top:20px}"]}),n})(),canActivate:[ti.P]},{path:"infrastructure",component:m0,canActivate:[ti.P],data:{role:"ADMIN"}},{path:"**",component:Lb}]}];let W0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[B.ez,Q.Bz.forChild(j0),T.u5,T.UX,Cn.JF,ks,Ae.p9,Ls,et.ot,Bs,Lt.QW,vo,zs,le.Ps,V.Nh,gt.c,lt.AV,ke,Mt,W.Is,Me.LD,F.Ng,Pr,b,fm,zm,vt.Aw.forFeature(cc.gG,cc.I6),Bm.sQ.forFeature([ut.Uy]),$m,Qh.rP,Dv]}),n})()},8407:function($h,gs){!function(S){"use strict";function Q(a){var l,h,p,g;for(h=1,p=arguments.length;h"u")&&L&&L.Mixin){a=fe(a)?a:[a];for(var l=0;l0?Math.floor(a):Math.ceil(a)};function J(a,l,h){return a instanceof $?a:fe(a)?new $(a[0],a[1]):null==a?a:"object"==typeof a&&"x"in a&&"y"in a?new $(a.x,a.y):new $(a,l,h)}function kt(a,l){if(a)for(var h=l?[a,l]:a,p=0,g=h.length;p=this.min.x&&h.x<=this.max.x&&l.y>=this.min.y&&h.y<=this.max.y},intersects:function(a){a=te(a);var l=this.min,h=this.max,p=a.min,g=a.max;return g.x>=l.x&&p.x<=h.x&&g.y>=l.y&&p.y<=h.y},overlaps:function(a){a=te(a);var l=this.min,h=this.max,p=a.min,g=a.max;return g.x>l.x&&p.xl.y&&p.y=l.lat&&g.lat<=h.lat&&p.lng>=l.lng&&g.lng<=h.lng},intersects:function(a){a=It(a);var l=this._southWest,h=this._northEast,p=a.getSouthWest(),g=a.getNorthEast();return g.lat>=l.lat&&p.lat<=h.lat&&g.lng>=l.lng&&p.lng<=h.lng},overlaps:function(a){a=It(a);var l=this._southWest,h=this._northEast,p=a.getSouthWest(),g=a.getNorthEast();return g.lat>l.lat&&p.latl.lng&&p.lng1,gr=function(){var a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",xt,l),window.removeEventListener("testPassiveEventSupport",xt,l)}catch{}return a}(),so=!!document.createElement("canvas").getContext,ao=!(!document.createElementNS||!dr("svg").createSVGRect),Ri=!!ao&&function(){var a=document.createElement("div");return a.innerHTML="","http://www.w3.org/2000/svg"===(a.firstChild&&a.firstChild.namespaceURI)}(),ro=!ao&&function(){try{var a=document.createElement("div");a.innerHTML='';var l=a.firstChild;return l.style.behavior="url(#default#VML)",l&&"object"==typeof l.adj}catch{return!1}}();function he(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var Y={ie:bn,ielt9:Oi,edge:xn,webkit:wn,android:ws,android23:ys,androidStock:Zl,opera:oo,chrome:yn,gecko:ks,safari:le,phantom:Ms,opera12:Ii,win:Ts,ie3d:Ss,webkit3d:ci,gecko3d:Ps,any3d:hr,mobile:Li,mobileWebkit:mr,mobileWebkit3d:ur,msPointer:As,pointer:Ds,touch:pr,touchNative:Os,mobileOpera:fr,mobileGecko:Is,retina:zl,passiveEvents:gr,canvas:so,svg:ao,vml:ro,inlineSvg:Ri,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Ls=Y.msPointer?"MSPointerDown":"pointerdown",Rs=Y.msPointer?"MSPointerMove":"pointermove",Es=Y.msPointer?"MSPointerUp":"pointerup",Fs=Y.msPointer?"MSPointerCancel":"pointercancel",ho={touchstart:Ls,touchmove:Rs,touchend:Es,touchcancel:Fs},Zs={touchstart:function Hs(a,l){l.MSPOINTER_TYPE_TOUCH&&l.pointerType===l.MSPOINTER_TYPE_TOUCH&&Gt(l),Fi(a,l)},touchmove:Fi,touchend:Fi,touchcancel:Fi},Ei={},zs=!1;function Bl(a,l,h){return"touchstart"===l&&function _r(){zs||(document.addEventListener(Ls,Ut,!0),document.addEventListener(Rs,T,!0),document.addEventListener(Es,Ns,!0),document.addEventListener(Fs,Ns,!0),zs=!0)}(),Zs[l]?(h=Zs[l].bind(this,h),a.addEventListener(ho[l],h,!1),h):(console.warn("wrong event specified:",l),xt)}function Ut(a){Ei[a.pointerId]=a}function T(a){Ei[a.pointerId]&&(Ei[a.pointerId]=a)}function Ns(a){delete Ei[a.pointerId]}function Fi(a,l){if(l.pointerType!==(l.MSPOINTER_TYPE_MOUSE||"mouse")){for(var h in l.touches=[],Ei)l.touches.push(Ei[h]);l.changedTouches=[l],a(l)}}var kn,Mn,fo,go,De,mo=po(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Zi=po(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),qs="webkitTransition"===Zi||"OTransition"===Zi?Zi+"End":"transitionend";function Ys(a){return"string"==typeof a?document.getElementById(a):a}function ze(a,l){var h=a.style[l]||a.currentStyle&&a.currentStyle[l];if((!h||"auto"===h)&&document.defaultView){var p=document.defaultView.getComputedStyle(a,null);h=p?p[l]:null}return"auto"===h?null:h}function at(a,l,h){var p=document.createElement(a);return p.className=l||"",h&&h.appendChild(p),p}function Mt(a){var l=a.parentNode;l&&l.removeChild(a)}function Cn(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function Ae(a){var l=a.parentNode;l&&l.lastChild!==a&&l.appendChild(a)}function et(a){var l=a.parentNode;l&&l.firstChild!==a&&l.insertBefore(a,l.firstChild)}function Lt(a,l){if(void 0!==a.classList)return a.classList.contains(l);var h=uo(a);return h.length>0&&new RegExp("(^|\\s)"+l+"(\\s|$)").test(h)}function it(a,l){if(void 0!==a.classList)for(var h=Ht(l),p=0,g=h.length;p0?2*window.devicePixelRatio:1;function $s(a){return Y.edge?a.wheelDeltaY/2:a.deltaY&&0===a.deltaMode?-a.deltaY/Cr:a.deltaY&&1===a.deltaMode?20*-a.deltaY:a.deltaY&&2===a.deltaMode?60*-a.deltaY:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?20*-a.detail:a.detail?a.detail/-32765*60:0}function yo(a,l){var h=l.relatedTarget;if(!h)return!0;try{for(;h&&h!==a;)h=h.parentNode}catch{return!1}return h!==a}var Co={__proto__:null,on:V,off:lt,stopPropagation:Je,disableScrollPropagation:wo,disableClickPropagation:Bi,preventDefault:Gt,stop:Qe,getPropagationPath:Js,getMousePosition:Qs,getWheelDelta:$s,isExternalTarget:yo,addListener:V,removeListener:lt},ko=Yt.extend({run:function(a,l,h,p){this.stop(),this._el=a,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(p||.5,.2),this._startPos=hi(a),this._offset=l.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){!this._inProgress||(this._step(!0),this._complete())},_animate:function(){this._animId=F(this._animate,this),this._step()},_step:function(a){var l=+new Date-this._startTime,h=1e3*this._duration;lthis.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,l){this._enforcingBounds=!0;var h=this.getCenter(),p=this._limitCenter(h,this._zoom,It(a));return h.equals(p)||this.panTo(p,l),this._enforcingBounds=!1,this},panInside:function(a,l){var h=J((l=l||{}).paddingTopLeft||l.padding||[0,0]),p=J(l.paddingBottomRight||l.padding||[0,0]),g=this.project(this.getCenter()),b=this.project(a),y=this.getPixelBounds(),M=te([y.min.add(h),y.max.subtract(p)]),D=M.getSize();if(!M.contains(b)){this._enforcingBounds=!0;var A=b.subtract(M.getCenter()),H=M.extend(b).getSize().subtract(D);g.x+=A.x<0?-H.x:H.x,g.y+=A.y<0?-H.y:H.y,this.panTo(this.unproject(g),l),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=Q({animate:!1,pan:!0},!0===a?{animate:!0}:a);var l=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),p=l.divideBy(2).round(),g=h.divideBy(2).round(),b=p.subtract(g);return b.x||b.y?(a.animate&&a.pan?this.panBy(b):(a.pan&&this._rawPanBy(b),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(tt(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:l,newSize:h})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=Q({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var l=tt(this._handleGeolocationResponse,this),h=tt(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(l,h,a):navigator.geolocation.getCurrentPosition(l,h,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var l=a.code,h=a.message||(1===l?"permission denied":2===l?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:l,message:"Geolocation error: "+h+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var p=new ft(a.coords.latitude,a.coords.longitude),g=p.toBounds(2*a.coords.accuracy),b=this._locateOptions;if(b.setView){var y=this.getBoundsZoom(g);this.setView(p,b.maxZoom?Math.min(y,b.maxZoom):y)}var M={latlng:p,bounds:g,timestamp:a.timestamp};for(var D in a.coords)"number"==typeof a.coords[D]&&(M[D]=a.coords[D]);this.fire("locationfound",M)}},addHandler:function(a,l){if(!l)return this;var h=this[a]=new l(this);return this._handlers.push(h),this.options[a]&&h.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}var a;for(a in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Mt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Qt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[a].remove();for(a in this._panes)Mt(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,l){var p=at("div","leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),l||this._mapPane);return a&&(this._panes[a]=p),p},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds();return new ee(this.unproject(a.getBottomLeft()),this.unproject(a.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,l,h){a=It(a),h=J(h||[0,0]);var p=this.getZoom()||0,g=this.getMinZoom(),b=this.getMaxZoom(),y=a.getNorthWest(),M=a.getSouthEast(),D=this.getSize().subtract(h),A=te(this.project(M,p),this.project(y,p)).getSize(),H=Y.any3d?this.options.zoomSnap:1,j=D.x/A.x,st=D.y/A.y,me=l?Math.max(j,st):Math.min(j,st);return p=this.getScaleZoom(me,p),H&&(p=Math.round(p/(H/100))*(H/100),p=l?Math.ceil(p/H)*H:Math.floor(p/H)*H),Math.max(g,Math.min(b,p))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new $(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,l){var h=this._getTopLeftPoint(a,l);return new kt(h,h.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(void 0===a?this.getZoom():a)},getPane:function(a){return"string"==typeof a?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,l){var h=this.options.crs;return l=void 0===l?this._zoom:l,h.scale(a)/h.scale(l)},getScaleZoom:function(a,l){var h=this.options.crs,p=h.zoom(a*h.scale(l=void 0===l?this._zoom:l));return isNaN(p)?1/0:p},project:function(a,l){return l=void 0===l?this._zoom:l,this.options.crs.latLngToPoint(mt(a),l)},unproject:function(a,l){return l=void 0===l?this._zoom:l,this.options.crs.pointToLatLng(J(a),l)},layerPointToLatLng:function(a){var l=J(a).add(this.getPixelOrigin());return this.unproject(l)},latLngToLayerPoint:function(a){return this.project(mt(a))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(mt(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(It(a))},distance:function(a,l){return this.options.crs.distance(mt(a),mt(l))},containerPointToLayerPoint:function(a){return J(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return J(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var l=this.containerPointToLayerPoint(J(a));return this.layerPointToLatLng(l)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(mt(a)))},mouseEventToContainerPoint:function(a){return Qs(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var l=this._container=Ys(a);if(!l)throw new Error("Map container not found.");if(l._leaflet_id)throw new Error("Map container is already initialized.");V(l,"scroll",this._onScroll,this),this._containerId=N(l)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&Y.any3d,it(a,"leaflet-container"+(Y.touch?" leaflet-touch":"")+(Y.retina?" leaflet-retina":"")+(Y.ielt9?" leaflet-oldie":"")+(Y.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var l=ze(a,"position");"absolute"!==l&&"relative"!==l&&"fixed"!==l&&"sticky"!==l&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),zt(this._mapPane,new $(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(it(a.markerPane,"leaflet-zoom-hide"),it(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,l,h){zt(this._mapPane,new $(0,0));var p=!this._loaded;this._loaded=!0,l=this._limitZoom(l),this.fire("viewprereset");var g=this._zoom!==l;this._moveStart(g,h)._move(a,l)._moveEnd(g),this.fire("viewreset"),p&&this.fire("load")},_moveStart:function(a,l){return a&&this.fire("zoomstart"),l||this.fire("movestart"),this},_move:function(a,l,h,p){void 0===l&&(l=this._zoom);var g=this._zoom!==l;return this._zoom=l,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),p?h&&h.pinch&&this.fire("zoom",h):((g||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Qt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){zt(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[N(this._container)]=this;var l=a?lt:V;l(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&l(window,"resize",this._onResize,this),Y.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Qt(this._resizeRequest),this._resizeRequest=F(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,l){for(var p,h=[],g="mouseout"===l||"mouseover"===l,b=a.target||a.srcElement,y=!1;b;){if((p=this._targets[N(b)])&&("click"===l||"preclick"===l)&&this._draggableMoved(p)){y=!0;break}if(p&&p.listens(l,!0)&&(g&&!yo(b,a)||(h.push(p),g))||b===this._container)break;b=b.parentNode}return!h.length&&!y&&!g&&this.listens(l,!0)&&(h=[this]),h},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var l=a.target||a.srcElement;if(!(!this._loaded||l._leaflet_disable_events||"click"===a.type&&this._isClickDisabled(l))){var h=a.type;"mousedown"===h&&Sn(l),this._fireDOMEvent(a,h)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,l,h){if("click"===a.type){var p=Q({},a);p.type="preclick",this._fireDOMEvent(p,p.type,h)}var g=this._findEventTargets(a,l);if(h){for(var b=[],y=0;y0?Math.round(a-l)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(l))},_limitZoom:function(a){var l=this.getMinZoom(),h=this.getMaxZoom(),p=Y.any3d?this.options.zoomSnap:1;return p&&(a=Math.round(a/p)*p),Math.max(l,Math.min(h,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Rt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,l){var h=this._getCenterOffset(a)._trunc();return!(!0!==(l&&l.animate)&&!this.getSize().contains(h)||(this.panBy(h,l),0))},_createAnimProxy:function(){var a=this._proxy=at("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(l){var h=mo,p=this._proxy.style[h];di(this._proxy,this.project(l.center,l.zoom),this.getZoomScale(l.zoom,1)),p===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Mt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),l=this.getZoom();di(this._proxy,this.project(a,l),this.getZoomScale(l,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,l,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||!1===h.animate||this._nothingToAnimate()||Math.abs(l-this._zoom)>this.options.zoomAnimationThreshold)return!1;var p=this.getZoomScale(l),g=this._getCenterOffset(a)._divideBy(1-1/p);return!(!0!==h.animate&&!this.getSize().contains(g)||(F(function(){this._moveStart(!0,!1)._animateZoom(a,l,!0)},this),0))},_animateZoom:function(a,l,h,p){!this._mapPane||(h&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=l,it(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:l,noUpdate:p}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(tt(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){!this._animatingZoom||(this._mapPane&&Rt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var _e=Xt.extend({options:{position:"topright"},initialize:function(a){wt(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var l=this._map;return l&&l.removeControl(this),this.options.position=a,l&&l.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var l=this._container=this.onAdd(a),h=this.getPosition(),p=a._controlCorners[h];return it(l,"leaflet-control"),-1!==h.indexOf("bottom")?p.insertBefore(l,p.firstChild):p.appendChild(l),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Mt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),Ni=function(a){return new _e(a)};rt.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},l="leaflet-",h=this._controlContainer=at("div",l+"control-container",this._container);function p(g,b){a[g+b]=at("div",l+g+" "+l+b,h)}p("top","left"),p("top","right"),p("bottom","left"),p("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)Mt(this._controlCorners[a]);Mt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Mo=_e.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,l,h,p){return h1)?"":"none"),this._separator.style.display=l&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var l=this._getLayer(N(a.target)),h=l.overlay?"add"===a.type?"overlayadd":"overlayremove":"add"===a.type?"baselayerchange":null;h&&this._map.fire(h,l)},_createRadioElement:function(a,l){var h='",p=document.createElement("div");return p.innerHTML=h,p.firstChild},_addItem:function(a){var p,l=document.createElement("label"),h=this._map.hasLayer(a.layer);a.overlay?((p=document.createElement("input")).type="checkbox",p.className="leaflet-control-layers-selector",p.defaultChecked=h):p=this._createRadioElement("leaflet-base-layers_"+N(this),h),this._layerControlInputs.push(p),p.layerId=N(a.layer),V(p,"click",this._onInputClick,this);var g=document.createElement("span");g.innerHTML=" "+a.name;var b=document.createElement("span");return l.appendChild(b),b.appendChild(p),b.appendChild(g),(a.overlay?this._overlaysList:this._baseLayersList).appendChild(l),this._checkDisabledLayers(),l},_onInputClick:function(){var l,h,a=this._layerControlInputs,p=[],g=[];this._handlingClick=!0;for(var b=a.length-1;b>=0;b--)h=this._getLayer((l=a[b]).layerId).layer,l.checked?p.push(h):l.checked||g.push(h);for(b=0;b=0;g--)h=this._getLayer((l=a[g]).layerId).layer,l.disabled=void 0!==h.options.minZoom&&ph.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;V(a,"click",Gt),this.expand(),setTimeout(function(){lt(a,"click",Gt)})}}),Xs=_e.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(a){var l="leaflet-control-zoom",h=at("div",l+" leaflet-bar"),p=this.options;return this._zoomInButton=this._createButton(p.zoomInText,p.zoomInTitle,l+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(p.zoomOutText,p.zoomOutTitle,l+"-out",h,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),h},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,l,h,p,g){var b=at("a",h,p);return b.innerHTML=a,b.href="#",b.title=l,b.setAttribute("role","button"),b.setAttribute("aria-label",l),Bi(b),V(b,"click",Qe),V(b,"click",g,this),V(b,"click",this._refocusOnMap,this),b},_updateDisabled:function(){var a=this._map,l="leaflet-disabled";Rt(this._zoomInButton,l),Rt(this._zoomOutButton,l),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(it(this._zoomOutButton,l),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(it(this._zoomInButton,l),this._zoomInButton.setAttribute("aria-disabled","true"))}});rt.mergeOptions({zoomControl:!0}),rt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Xs,this.addControl(this.zoomControl))});var ta=_e.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var l="leaflet-control-scale",h=at("div",l),p=this.options;return this._addScales(p,l+"-line",h),a.on(p.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),h},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,l,h){a.metric&&(this._mScale=at("div",l,h)),a.imperial&&(this._iScale=at("div",l,h))},_update:function(){var a=this._map,l=a.getSize().y/2,h=a.distance(a.containerPointToLatLng([0,l]),a.containerPointToLatLng([this.options.maxWidth,l]));this._updateScales(h)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var l=this._getRoundNum(a);this._updateScale(this._mScale,l<1e3?l+" m":l/1e3+" km",l/a)},_updateImperial:function(a){var h,p,g,l=3.2808399*a;l>5280?(p=this._getRoundNum(h=l/5280),this._updateScale(this._iScale,p+" mi",p/h)):(g=this._getRoundNum(l),this._updateScale(this._iScale,g+" ft",g/l))},_updateScale:function(a,l,h){a.style.width=Math.round(this.options.maxWidth*h)+"px",a.innerHTML=l},_getRoundNum:function(a){var l=Math.pow(10,(Math.floor(a)+"").length-1),h=a/l;return l*(h>=10?10:h>=5?5:h>=3?3:h>=2?2:1)}}),Hi=_e.extend({options:{position:"bottomright",prefix:''+(Y.inlineSvg?' ':"")+"Leaflet"},initialize:function(a){wt(this,a),this._attributions={}},onAdd:function(a){for(var l in a.attributionControl=this,this._container=at("div","leaflet-control-attribution"),Bi(this._container),a._layers)a._layers[l].getAttribution&&this.addAttribution(a._layers[l].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var l in this._attributions)this._attributions[l]&&a.push(l);var h=[];this.options.prefix&&h.push(this.options.prefix),a.length&&h.push(a.join(", ")),this._container.innerHTML=h.join(' ')}}});rt.mergeOptions({attributionControl:!0}),rt.addInitHook(function(){this.options.attributionControl&&(new Hi).addTo(this)});_e.Layers=Mo,_e.Zoom=Xs,_e.Scale=ta,_e.Attribution=Hi,Ni.layers=function(a,l,h){return new Mo(a,l,h)},Ni.zoom=function(a){return new Xs(a)},Ni.scale=function(a){return new ta(a)},Ni.attribution=function(a){return new Hi(a)};var ke=Xt.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ke.addTo=function(a,l){return a.addHandler(l,this),this};var sa,W={Events:Ot},Me=Y.touch?"touchstart mousedown":"mousedown",Be=Yt.extend({options:{clickTolerance:3},initialize:function(a,l,h,p){wt(this,p),this._element=a,this._dragStartTarget=l||a,this._preventOutline=h},enable:function(){this._enabled||(V(this._dragStartTarget,Me,this._onDown,this),this._enabled=!0)},disable:function(){!this._enabled||(Be._dragging===this&&this.finishDrag(!0),lt(this._dragStartTarget,Me,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!Lt(this._element,"leaflet-zoom-anim"))){if(a.touches&&1!==a.touches.length)return void(Be._dragging===this&&this.finishDrag());if(!(Be._dragging||a.shiftKey||1!==a.which&&1!==a.button&&!a.touches||(Be._dragging=this,this._preventOutline&&Sn(this._element),Vs(),kn(),this._moving))){this.fire("down");var l=a.touches?a.touches[0]:a,h=yr(this._element);this._startPoint=new $(l.clientX,l.clientY),this._startPos=hi(this._element),this._parentScale=vo(h);var p="mousedown"===a.type;V(document,p?"mousemove":"touchmove",this._onMove,this),V(document,p?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1)return void(this._moved=!0);var l=a.touches&&1===a.touches.length?a.touches[0]:a,h=new $(l.clientX,l.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)l&&(h.push(a[p]),g=p);return gb&&(y=M,b=D);b>h&&(l[y]=1,oa(a,l,h,p,y),oa(a,l,h,y,g))}function aa(a,l,h,p,g){var M,D,A,b=p?sa:mi(a,h),y=mi(l,h);for(sa=y;;){if(!(b|y))return[a,l];if(b&y)return!1;A=mi(D=So(a,l,M=b||y,h,g),h),M===b?(a=D,b=A):(l=D,y=A)}}function So(a,l,h,p,g){var A,H,b=l.x-a.x,y=l.y-a.y,M=p.min,D=p.max;return 8&h?(A=a.x+b*(D.y-a.y)/y,H=D.y):4&h?(A=a.x+b*(M.y-a.y)/y,H=M.y):2&h?(A=D.x,H=a.y+y*(D.x-a.x)/b):1&h&&(A=M.x,H=a.y+y*(M.x-a.x)/b),new $(A,H,g)}function mi(a,l){var h=0;return a.xl.max.x&&(h|=2),a.yl.max.y&&(h|=8),h}function ql(a,l){var h=l.x-a.x,p=l.y-a.y;return h*h+p*p}function Dn(a,l,h,p){var A,g=l.x,b=l.y,y=h.x-g,M=h.y-b,D=y*y+M*M;return D>0&&((A=((a.x-g)*y+(a.y-b)*M)/D)>1?(g=h.x,b=h.y):A>0&&(g+=y*A,b+=M*A)),y=a.x-g,M=a.y-b,p?y*y+M*M:new $(g,b)}function ve(a){return!fe(a[0])||"object"!=typeof a[0][0]&&typeof a[0][0]<"u"}function Tr(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ve(a)}function Sr(a,l){var h,p,g,b,y,M,D,A;if(!a||0===a.length)throw new Error("latlngs not passed");ve(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var H=[];for(var j in a)H.push(l.project(mt(a[j])));var st=H.length;for(h=0,p=0;hp){A=[M.x-(D=(b-p)/g)*(M.x-y.x),M.y-D*(M.y-y.y)];break}return l.unproject(J(A))}var Pr={__proto__:null,simplify:ia,pointToSegmentDistance:na,closestPointOnSegment:function Hl(a,l,h){return Dn(a,l,h)},clipSegment:aa,_getEdgeIntersection:So,_getBitCode:mi,_sqClosestPointOnSegment:Dn,isFlat:ve,_flat:Tr,polylineCenter:Sr};function ra(a,l,h){var p,b,y,M,D,A,H,j,st,g=[1,4,2,8];for(b=0,H=a.length;b1e-7;M++)A=g*Math.sin(y),A=Math.pow((1-A)/(1+A),g/2),y+=D=Math.PI/2-2*Math.atan(b*A)-y;return new ft(y*l,a.x*l/h)}},Dr={__proto__:null,LonLat:On,Mercator:Po,SphericalMercator:no},Or=Q({},We,{code:"EPSG:3395",projection:Po,transformation:function(){var a=.5/(Math.PI*Po.R);return _n(a,.5,-a,.5)}()}),ca=Q({},We,{code:"EPSG:4326",projection:On,transformation:_n(1/180,1,-1/180,.5)}),Ir=Q({},Ze,{projection:On,transformation:_n(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,l){var h=l.lng-a.lng,p=l.lat-a.lat;return Math.sqrt(h*h+p*p)},infinite:!0});Ze.Earth=We,Ze.EPSG3395=Or,Ze.EPSG3857=li,Ze.EPSG900913=Fl,Ze.EPSG4326=ca,Ze.Simple=Ir;var ce=Yt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[N(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[N(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var l=a.target;if(l.hasLayer(this)){if(this._map=l,this._zoomAnimated=l._zoomAnimated,this.getEvents){var h=this.getEvents();l.on(h,this),this.once("remove",function(){l.off(h,this)},this)}this.onAdd(l),this.fire("add"),l.fire("layeradd",{layer:this})}}});rt.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var l=N(a);return this._layers[l]||(this._layers[l]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a)),this},removeLayer:function(a){var l=N(a);return this._layers[l]?(this._loaded&&a.onRemove(this),delete this._layers[l],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return N(a)in this._layers},eachLayer:function(a,l){for(var h in this._layers)a.call(l,this._layers[h]);return this},_addLayers:function(a){for(var l=0,h=(a=a?fe(a)?a:[a]:[]).length;lthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&l[0]instanceof ft&&l[0].equals(l[h-1])&&l.pop(),l},_setLatLngs:function(a){Ne.prototype._setLatLngs.call(this,a),ve(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return ve(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,l=this.options.weight,h=new $(l,l);if(a=new kt(a.min.subtract(h),a.max.add(h)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(a)){if(this.options.noClip)return void(this._parts=this._rings);for(var b,p=0,g=this._rings.length;pa.y!=(g=h[M]).y>a.y&&a.x<(g.x-p.x)*(a.y-p.y)/(g.y-p.y)+p.x&&(l=!l);return l||Ne.prototype._containsPoint.call(this,a,!0)}});var de=ie.extend({initialize:function(a,l){wt(this,l),this._layers={},a&&this.addData(a)},addData:function(a){var h,p,g,l=fe(a)?a:a.features;if(l){for(h=0,p=l.length;h0?p:[l.src]}else{fe(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(l.style,"objectFit")&&(l.style.objectFit="fill"),l.autoplay=!!this.options.autoplay,l.loop=!!this.options.loop,l.muted=!!this.options.muted,l.playsInline=!!this.options.playsInline;for(var b=0;bg?(l.height=g+"px",it(a,b)):Rt(a,b),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var l=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),h=this._getAnchor();zt(this._container,l.add(h))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var a=this._map,l=parseInt(ze(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+l,p=this._containerWidth,g=new $(this._containerLeft,-h-this._containerBottom);g._add(hi(this._container));var b=a.layerPointToContainerPoint(g),y=J(this.options.autoPanPadding),M=J(this.options.autoPanPaddingTopLeft||y),D=J(this.options.autoPanPaddingBottomRight||y),A=a.getSize(),H=0,j=0;b.x+p+D.x>A.x&&(H=b.x+p-A.x+D.x),b.x-H-M.x<0&&(H=b.x-M.x),b.y+h+D.y>A.y&&(j=b.y+h-A.y+D.y),b.y-j-M.y<0&&(j=b.y-M.y),(H||j)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([H,j]))}},_getAnchor:function(){return J(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});rt.mergeOptions({closePopupOnClick:!0}),rt.include({openPopup:function(a,l,h){return this._initOverlay(Lo,a,l,h).openOn(this),this},closePopup:function(a){return(a=arguments.length?a:this._popup)&&a.close(),this}}),ce.include({bindPopup:function(a,l){return this._popup=this._initOverlay(Lo,this._popup,a,l),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof ie||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(this._popup&&this._map){Qe(a);var l=a.layer||a.target;if(this._popup._source===l&&!(l instanceof Ie))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng));this._popup._source=l,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){13===a.originalEvent.keyCode&&this._openPopup(a)}});var Ln=Le.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Le.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){Le.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=Le.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){this._contentNode=this._container=at("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+N(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var l,h,p=this._map,g=this._container,b=p.latLngToContainerPoint(p.getCenter()),y=p.layerPointToContainerPoint(a),M=this.options.direction,D=g.offsetWidth,A=g.offsetHeight,H=J(this.options.offset),j=this._getAnchor();"top"===M?(l=D/2,h=A):"bottom"===M?(l=D/2,h=0):"center"===M?(l=D/2,h=A/2):"right"===M?(l=0,h=A/2):"left"===M?(l=D,h=A/2):y.xthis.options.maxZoom||hp&&this._retainParent(g,b,y,p))},_retainChildren:function(a,l,h,p){for(var g=2*a;g<2*a+2;g++)for(var b=2*l;b<2*l+2;b++){var y=new $(g,b);y.z=h+1;var M=this._tileCoordsToKey(y),D=this._tiles[M];D&&D.active?D.retain=!0:(D&&D.loaded&&(D.retain=!0),h+1this.options.maxZoom||void 0!==this.options.minZoom&&g1)return void this._setView(a,h);for(var j=g.min.y;j<=g.max.y;j++)for(var st=g.min.x;st<=g.max.x;st++){var me=new $(st,j);if(me.z=this._tileZoom,this._isValidTile(me)){var Xe=this._tiles[this._tileCoordsToKey(me)];Xe?Xe.current=!0:y.push(me)}}if(y.sort(function(Ye,Hn){return Ye.distanceTo(b)-Hn.distanceTo(b)}),0!==y.length){this._loading||(this._loading=!0,this.fire("loading"));var Nn=document.createDocumentFragment();for(st=0;sth.max.x)||!l.wrapLat&&(a.yh.max.y))return!1}if(!this.options.bounds)return!0;var p=this._tileCoordsToBounds(a);return It(this.options.bounds).overlaps(p)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var l=this._map,h=this.getTileSize(),p=a.scaleBy(h),g=p.add(h);return[l.unproject(p,a.z),l.unproject(g,a.z)]},_tileCoordsToBounds:function(a){var l=this._tileCoordsToNwSe(a),h=new ee(l[0],l[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var l=a.split(":"),h=new $(+l[0],+l[1]);return h.z=+l[2],h},_removeTile:function(a){var l=this._tiles[a];!l||(Mt(l.el),delete this._tiles[a],this.fire("tileunload",{tile:l.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){it(a,"leaflet-tile");var l=this.getTileSize();a.style.width=l.x+"px",a.style.height=l.y+"px",a.onselectstart=xt,a.onmousemove=xt,Y.ielt9&&this.options.opacity<1&&ge(a,this.options.opacity)},_addTile:function(a,l){var h=this._getTilePos(a),p=this._tileCoordsToKey(a),g=this.createTile(this._wrapCoords(a),tt(this._tileReady,this,a));this._initTile(g),this.createTile.length<2&&F(tt(this._tileReady,this,a,null,g)),zt(g,h),this._tiles[p]={el:g,coords:a,current:!0},l.appendChild(g),this.fire("tileloadstart",{tile:g,coords:a})},_tileReady:function(a,l,h){l&&this.fire("tileerror",{error:l,tile:h,coords:a});var p=this._tileCoordsToKey(a);(h=this._tiles[p])&&(h.loaded=+new Date,this._map._fadeAnimated?(ge(h.el,0),Qt(this._fadeFrame),this._fadeFrame=F(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),l||(it(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Y.ielt9||!this._map._fadeAnimated?F(this._pruneTiles,this):setTimeout(tt(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var l=new $(this._wrapX?jt(a.x,this._wrapX):a.x,this._wrapY?jt(a.y,this._wrapY):a.y);return l.z=a.z,l},_pxBoundsToTileRange:function(a){var l=this.getTileSize();return new kt(a.min.unscaleBy(l).floor(),a.max.unscaleBy(l).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});var Gi=Ue.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,l){this._url=a,(l=wt(this,l)).detectRetina&&Y.retina&&l.maxZoom>0?(l.tileSize=Math.floor(l.tileSize/2),l.zoomReverse?(l.zoomOffset--,l.minZoom=Math.min(l.maxZoom,l.minZoom+1)):(l.zoomOffset++,l.maxZoom=Math.max(l.minZoom,l.maxZoom-1)),l.minZoom=Math.max(0,l.minZoom)):l.zoomReverse?l.minZoom=Math.min(l.maxZoom,l.minZoom):l.maxZoom=Math.max(l.minZoom,l.maxZoom),"string"==typeof l.subdomains&&(l.subdomains=l.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,l){return this._url===a&&void 0===l&&(l=!0),this._url=a,l||this.redraw(),this},createTile:function(a,l){var h=document.createElement("img");return V(h,"load",tt(this._tileOnLoad,this,l,h)),V(h,"error",tt(this._tileOnError,this,l,h)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(h.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(a),h},getTileUrl:function(a){var l={r:Y.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-a.y;this.options.tms&&(l.y=h),l["-y"]=h}return qt(this._url,Q(l,this.options))},_tileOnLoad:function(a,l){Y.ielt9?setTimeout(tt(a,this,null,l),0):a(null,l)},_tileOnError:function(a,l,h){var p=this.options.errorTileUrl;p&&l.getAttribute("src")!==p&&(l.src=p),a(h,l)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom;return this.options.zoomReverse&&(a=this.options.maxZoom-a),a+this.options.zoomOffset},_getSubdomain:function(a){var l=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[l]},_abortLoading:function(){var a,l;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&((l=this._tiles[a].el).onload=xt,l.onerror=xt,!l.complete)){l.src=un;var h=this._tiles[a].coords;Mt(l),delete this._tiles[a],this.fire("tileabort",{tile:l,coords:h})}},_removeTile:function(a){var l=this._tiles[a];if(l)return l.el.setAttribute("src",un),Ue.prototype._removeTile.call(this,a)},_tileReady:function(a,l,h){if(this._map&&(!h||h.getAttribute("src")!==un))return Ue.prototype._tileReady.call(this,a,l,h)}});function Vi(a,l){return new Gi(a,l)}var ji=Gi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,l){this._url=a;var h=Q({},this.defaultWmsParams);for(var p in l)p in this.options||(h[p]=l[p]);var g=(l=wt(this,l)).detectRetina&&Y.retina?2:1,b=this.getTileSize();h.width=b.x*g,h.height=b.y*g,this.wmsParams=h},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,Gi.prototype.onAdd.call(this,a)},getTileUrl:function(a){var l=this._tileCoordsToNwSe(a),h=this._crs,p=te(h.project(l[0]),h.project(l[1])),g=p.min,b=p.max,y=(this._wmsVersion>=1.3&&this._crs===ca?[g.y,g.x,b.y,b.x]:[g.x,g.y,b.x,b.y]).join(","),M=Gi.prototype.getTileUrl.call(this,a);return M+Jt(this.wmsParams,M,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+y},setParams:function(a,l){return Q(this.wmsParams,a),l||this.redraw(),this}});Gi.WMS=ji,Vi.wms=function ua(a,l){return new ji(a,l)};var qe=ce.extend({options:{padding:.1},initialize:function(a){wt(this,a),N(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&it(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,l){var h=this._map.getZoomScale(l,this._zoom),p=this._map.getSize().multiplyBy(.5+this.options.padding),g=this._map.project(this._center,l),b=p.multiplyBy(-h).add(g).subtract(this._map._getNewPixelOrigin(a,l));Y.any3d?di(this._container,b,h):zt(this._container,b)},_reset:function(){for(var a in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,l=this._map.getSize(),h=this._map.containerPointToLayerPoint(l.multiplyBy(-a)).round();this._bounds=new kt(h,h.add(l.multiplyBy(1+2*a)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),pa=qe.extend({options:{tolerance:0},getEvents:function(){var a=qe.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){qe.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");V(a,"mousemove",this._onMouseMove,this),V(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),V(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){Qt(this._redrawRequest),delete this._ctx,Mt(this._container),lt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var l in this._redrawBounds=null,this._layers)this._layers[l]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){qe.prototype._update.call(this);var a=this._bounds,l=this._container,h=a.getSize(),p=Y.retina?2:1;zt(l,a.min),l.width=p*h.x,l.height=p*h.y,l.style.width=h.x+"px",l.style.height=h.y+"px",Y.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){qe.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[N(a)]=a;var l=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=l),this._drawLast=l,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var l=a._order,h=l.next,p=l.prev;h?h.prev=p:this._drawLast=p,p?p.next=h:this._drawFirst=h,delete a._order,delete this._layers[N(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if("string"==typeof a.options.dashArray){var p,g,l=a.options.dashArray.split(/[, ]+/),h=[];for(g=0;g')}}catch{}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Br={_initContainer:function(){this._container=at("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(qe.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var l=a._container=Wi("shape");it(l,"leaflet-vml-shape "+(this.options.className||"")),l.coordsize="1 1",a._path=Wi("path"),l.appendChild(a._path),this._updateStyle(a),this._layers[N(a)]=a},_addPath:function(a){var l=a._container;this._container.appendChild(l),a.options.interactive&&a.addInteractiveTarget(l)},_removePath:function(a){var l=a._container;Mt(l),a.removeInteractiveTarget(l),delete this._layers[N(a)]},_updateStyle:function(a){var l=a._stroke,h=a._fill,p=a.options,g=a._container;g.stroked=!!p.stroke,g.filled=!!p.fill,p.stroke?(l||(l=a._stroke=Wi("stroke")),g.appendChild(l),l.weight=p.weight+"px",l.color=p.color,l.opacity=p.opacity,l.dashStyle=p.dashArray?fe(p.dashArray)?p.dashArray.join(" "):p.dashArray.replace(/( *, *)/g," "):"",l.endcap=p.lineCap.replace("butt","flat"),l.joinstyle=p.lineJoin):l&&(g.removeChild(l),a._stroke=null),p.fill?(h||(h=a._fill=Wi("fill")),g.appendChild(h),h.color=p.fillColor||p.color,h.opacity=p.fillOpacity):h&&(g.removeChild(h),a._fill=null)},_updateCircle:function(a){var l=a._point.round(),h=Math.round(a._radius),p=Math.round(a._radiusY||h);this._setPath(a,a._empty()?"M0 0":"AL "+l.x+","+l.y+" "+h+","+p+" 0,23592600")},_setPath:function(a,l){a._path.v=l},_bringToFront:function(a){Ae(a._container)},_bringToBack:function(a){et(a._container)}},Fn=Y.vml?Wi:dr,Ji=qe.extend({_initContainer:function(){this._container=Fn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Fn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Mt(this._container),lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){qe.prototype._update.call(this);var a=this._bounds,l=a.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(l))&&(this._svgSize=l,h.setAttribute("width",l.x),h.setAttribute("height",l.y)),zt(h,a.min),h.setAttribute("viewBox",[a.min.x,a.min.y,l.x,l.y].join(" ")),this.fire("update")}},_initPath:function(a){var l=a._path=Fn("path");a.options.className&&it(l,a.options.className),a.options.interactive&&it(l,"leaflet-interactive"),this._updateStyle(a),this._layers[N(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){Mt(a._path),a.removeInteractiveTarget(a._path),delete this._layers[N(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var l=a._path,h=a.options;!l||(h.stroke?(l.setAttribute("stroke",h.color),l.setAttribute("stroke-opacity",h.opacity),l.setAttribute("stroke-width",h.weight),l.setAttribute("stroke-linecap",h.lineCap),l.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?l.setAttribute("stroke-dasharray",h.dashArray):l.removeAttribute("stroke-dasharray"),h.dashOffset?l.setAttribute("stroke-dashoffset",h.dashOffset):l.removeAttribute("stroke-dashoffset")):l.setAttribute("stroke","none"),h.fill?(l.setAttribute("fill",h.fillColor||h.color),l.setAttribute("fill-opacity",h.fillOpacity),l.setAttribute("fill-rule",h.fillRule||"evenodd")):l.setAttribute("fill","none"))},_updatePoly:function(a,l){this._setPath(a,xs(a._parts,l))},_updateCircle:function(a){var l=a._point,h=Math.max(Math.round(a._radius),1),g="a"+h+","+(Math.max(Math.round(a._radiusY),1)||h)+" 0 1,0 ",b=a._empty()?"M0 0":"M"+(l.x-h)+","+l.y+g+2*h+",0 "+g+2*-h+",0 ";this._setPath(a,b)},_setPath:function(a,l){a._path.setAttribute("d",l)},_bringToFront:function(a){Ae(a._path)},_bringToBack:function(a){et(a._path)}});function Zn(a){return Y.svg||Y.vml?new Ji(a):null}Y.vml&&Ji.include(Br),rt.include({getRenderer:function(a){var l=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return l||(l=this._renderer=this._createRenderer()),this.hasLayer(l)||this.addLayer(l),l},_getPaneRenderer:function(a){if("overlayPane"===a||void 0===a)return!1;var l=this._paneRenderers[a];return void 0===l&&(l=this._createRenderer({pane:a}),this._paneRenderers[a]=l),l},_createRenderer:function(a){return this.options.preferCanvas&&fa(a)||Zn(a)}});var Qi=gi.extend({initialize:function(a,l){gi.prototype.initialize.call(this,this._boundsToLatLngs(a),l)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return[(a=It(a)).getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});Ji.create=Fn,Ji.pointsToPath=xs,de.geometryToLayer=In,de.coordsToLatLng=$e,de.coordsToLatLngs=Ke,de.latLngToCoords=xe,de.latLngsToCoords=_i,de.getFeature=He,de.asFeature=vi,rt.mergeOptions({boxZoom:!0});var ga=ke.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){lt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Mt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||1!==a.which&&1!==a.button)return!1;this._clearDeferredResetState(),this._resetState(),kn(),Vs(),this._startPoint=this._map.mouseEventToContainerPoint(a),V(document,{contextmenu:Qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=at("div","leaflet-zoom-box",this._container),it(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var l=new kt(this._point,this._startPoint),h=l.getSize();zt(this._box,l.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},_finish:function(){this._moved&&(Mt(this._box),Rt(this._container,"leaflet-crosshair")),Mn(),js(),lt(document,{contextmenu:Qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if((1===a.which||1===a.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(tt(this._resetState,this),0);var l=new ee(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(l).fire("boxzoomend",{boxZoomBounds:l})}},_onKeyDown:function(a){27===a.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rt.addInitHook("addHandler","boxZoom",ga),rt.mergeOptions({doubleClickZoom:!0});var $i=ke.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var l=this._map,h=l.getZoom(),p=l.options.zoomDelta,g=a.originalEvent.shiftKey?h-p:h+p;"center"===l.options.doubleClickZoom?l.setZoom(g):l.setZoomAround(a.containerPoint,g)}});rt.addInitHook("addHandler","doubleClickZoom",$i),rt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ki=ke.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new Be(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}it(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Rt(this._map._container,"leaflet-grab"),Rt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var l=It(this._map.options.maxBounds);this._offsetLimit=te(this._map.latLngToContainerPoint(l.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(l.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var l=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(l),this._prunePositions(l)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),l=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=l.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,l){return a-(a-l)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var a=this._draggable._newPos.subtract(this._draggable._startPos),l=this._offsetLimit;a.xl.max.x&&(a.x=this._viscousLimit(a.x,l.max.x)),a.y>l.max.y&&(a.y=this._viscousLimit(a.y,l.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,l=Math.round(a/2),h=this._initialWorldOffset,p=this._draggable._newPos.x,g=(p-l+h)%a+l-h,b=(p+l+h)%a-l-h,y=Math.abs(g+h)0?b:-b))-l;this._delta=0,this._startTime=null,y&&("center"===a.options.scrollWheelZoom?a.setZoom(l+y):a.setZoomAround(this._lastMousePos,l+y))}});rt.addInitHook("addHandler","scrollWheelZoom",Xi);rt.mergeOptions({tapHold:Y.touchNative&&Y.safari&&Y.mobile,tapTolerance:15});var va=ke.extend({addHooks:function(){V(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){lt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),1===a.touches.length){var l=a.touches[0];this._startPos=this._newPos=new $(l.clientX,l.clientY),this._holdTimeout=setTimeout(tt(function(){this._cancel(),this._isTapValid()&&(V(document,"touchend",Gt),V(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",l))},this),600),V(document,"touchend touchcancel contextmenu",this._cancel,this),V(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){lt(document,"touchend",Gt),lt(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),lt(document,"touchend touchcancel contextmenu",this._cancel,this),lt(document,"touchmove",this._onMove,this)},_onMove:function(a){var l=a.touches[0];this._newPos=new $(l.clientX,l.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,l){var h=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:l.screenX,screenY:l.screenY,clientX:l.clientX,clientY:l.clientY});h._simulated=!0,l.target.dispatchEvent(h)}});rt.addInitHook("addHandler","tapHold",va),rt.mergeOptions({touchZoom:Y.touch,bounceAtZoomLimits:!0});var Bn=ke.extend({addHooks:function(){it(this._map._container,"leaflet-touch-zoom"),V(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Rt(this._map._container,"leaflet-touch-zoom"),lt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var l=this._map;if(a.touches&&2===a.touches.length&&!l._animatingZoom&&!this._zooming){var h=l.mouseEventToContainerPoint(a.touches[0]),p=l.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=l.getSize()._divideBy(2),this._startLatLng=l.containerPointToLatLng(this._centerPoint),"center"!==l.options.touchZoom&&(this._pinchStartLatLng=l.containerPointToLatLng(h.add(p)._divideBy(2))),this._startDist=h.distanceTo(p),this._startZoom=l.getZoom(),this._moved=!1,this._zooming=!0,l._stop(),V(document,"touchmove",this._onTouchMove,this),V(document,"touchend touchcancel",this._onTouchEnd,this),Gt(a)}},_onTouchMove:function(a){if(a.touches&&2===a.touches.length&&this._zooming){var l=this._map,h=l.mouseEventToContainerPoint(a.touches[0]),p=l.mouseEventToContainerPoint(a.touches[1]),g=h.distanceTo(p)/this._startDist;if(this._zoom=l.getScaleZoom(g,this._startZoom),!l.options.bounceAtZoomLimits&&(this._zooml.getMaxZoom()&&g>1)&&(this._zoom=l._limitZoom(this._zoom)),"center"===l.options.touchZoom){if(this._center=this._startLatLng,1===g)return}else{var b=h._add(p)._divideBy(2)._subtract(this._centerPoint);if(1===g&&0===b.x&&0===b.y)return;this._center=l.unproject(l.project(this._pinchStartLatLng,this._zoom).subtract(b),this._zoom)}this._moved||(l._moveStart(!0,!1),this._moved=!0),Qt(this._animRequest);var y=tt(l._move,l,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=F(y,this,!0),Gt(a)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Qt(this._animRequest),lt(document,"touchmove",this._onTouchMove,this),lt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});rt.addInitHook("addHandler","touchZoom",Bn),rt.BoxZoom=ga,rt.DoubleClickZoom=$i,rt.Drag=Ki,rt.Keyboard=_a,rt.ScrollWheelZoom=Xi,rt.TapHold=va,rt.TouchZoom=Bn,S.Bounds=kt,S.Browser=Y,S.CRS=Ze,S.Canvas=pa,S.Circle=qi,S.CircleMarker=fi,S.Class=Xt,S.Control=_e,S.DivIcon=Yi,S.DivOverlay=Le,S.DomEvent=Co,S.DomUtil=Nl,S.Draggable=Be,S.Evented=Yt,S.FeatureGroup=ie,S.GeoJSON=de,S.GridLayer=Ue,S.Handler=ke,S.Icon=Oe,S.ImageOverlay=Io,S.LatLng=ft,S.LatLngBounds=ee,S.Layer=ce,S.LayerGroup=be,S.LineUtil=Pr,S.Map=rt,S.Marker=pi,S.Mixin=W,S.Path=Ie,S.Point=$,S.PolyUtil=Ar,S.Polygon=gi,S.Polyline=Ne,S.Popup=Lo,S.PosAnimation=ko,S.Projection=Dr,S.Rectangle=Qi,S.Renderer=qe,S.SVG=Ji,S.SVGOverlay=zr,S.TileLayer=Gi,S.Tooltip=Ln,S.Transformation=bs,S.Util=ot,S.VideoOverlay=Zr,S.bind=tt,S.bounds=te,S.canvas=fa,S.circle=function ha(a,l,h){return new qi(a,l,h)},S.circleMarker=function da(a,l){return new fi(a,l)},S.control=Ni,S.divIcon=function En(a){return new Yi(a)},S.extend=Q,S.featureGroup=function(a,l){return new ie(a,l)},S.geoJSON=Oo,S.geoJson=Fr,S.gridLayer=function jl(a){return new Ue(a)},S.icon=function Rr(a){return new Oe(a)},S.imageOverlay=function(a,l,h){return new Io(a,l,h)},S.latLng=mt,S.latLngBounds=It,S.layerGroup=function(a,l){return new be(a,l)},S.map=function Ks(a,l){return new rt(a,l)},S.marker=function Ao(a,l){return new pi(a,l)},S.point=J,S.polygon=function Er(a,l){return new gi(a,l)},S.polyline=function Do(a,l){return new Ne(a,l)},S.popup=function(a,l){return new Lo(a,l)},S.rectangle=function zn(a,l){return new Qi(a,l)},S.setOptions=wt,S.stamp=N,S.svg=Zn,S.svgOverlay=function Vl(a,l,h){return new zr(a,l,h)},S.tileLayer=Vi,S.tooltip=function(a,l){return new Ln(a,l)},S.transformation=_n,S.version="1.9.3",S.videoOverlay=function Gl(a,l,h){return new Zr(a,l,h)};var Fo=window.L;S.noConflict=function(){return window.L=Fo,this},window.L=S}(gs)}}]); \ No newline at end of file diff --git a/dist/oakestra-dashboard/3rdpartylicenses.txt b/dist/oakestra-dashboard/3rdpartylicenses.txt index a8d188c..7059923 100644 --- a/dist/oakestra-dashboard/3rdpartylicenses.txt +++ b/dist/oakestra-dashboard/3rdpartylicenses.txt @@ -5,7 +5,7 @@ MIT MIT The MIT License -Copyright (c) 2022 Google LLC. +Copyright (c) 2023 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -39,7 +39,7 @@ MIT MIT The MIT License -Copyright (c) 2022 Google LLC. +Copyright (c) 2023 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -66,11 +66,50 @@ MIT @angular/router MIT -@material/dialog +@babel/runtime MIT -The MIT License +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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. + + +@kurkle/color +MIT +The MIT License (MIT) + +Copyright (c) 2018-2021 Jukka Kurkela + +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. + + +@nebular/auth +MIT +The MIT License (MIT) -Copyright (c) 2014-2020 Google, Inc. +Copyright (c) 2017 Akveo. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -79,16 +118,72 @@ 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 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. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +@nebular/eva-icons +MIT + +@nebular/security +MIT +The MIT License (MIT) + +Copyright (c) 2017 Akveo. + +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. + + + +@nebular/theme +MIT +The MIT License (MIT) + +Copyright (c) 2017 Akveo. + +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. + @ngrx/effects @@ -113,6 +208,11 @@ The above copyright notice and this permission notice shall be included in all c 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. +chart.js-auto + +eva-icons +MIT + jwt-decode MIT The MIT License (MIT) @@ -142,7 +242,7 @@ leaflet BSD-2-Clause BSD 2-Clause License -Copyright (c) 2010-2022, Vladimir Agafonkin +Copyright (c) 2010-2023, Volodymyr Agafonkin Copyright (c) 2010-2011, CloudMade All rights reserved. @@ -168,17 +268,8 @@ 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. -leaflet-routing-machine -ISC -## ISC License - -Copyright (c) 2014, Per Liedman (per@liedman.net) -Turn instruction icons Copyright (c) 2014, Mapbox (mapbox.com) - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - +ngx-cookie-service +MIT rxjs Apache-2.0 @@ -386,17 +477,29 @@ Apache-2.0 -shepherd.js +tinymce MIT -The MIT License (MIT) +MIT License -Copyright (c) 2021 +Copyright (c) 2022 Ephox Corporation DBA Tiny Technologies, Inc. -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: +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 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. +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. tslib @@ -414,19 +517,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -uuid -MIT -The MIT License (MIT) - -Copyright (c) 2010-2020 Robert Kieffer and other contributors - -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. - - zone.js MIT The MIT License diff --git a/dist/oakestra-dashboard/648.3b131f1c62877155.js b/dist/oakestra-dashboard/648.3b131f1c62877155.js deleted file mode 100644 index 1bdd951..0000000 --- a/dist/oakestra-dashboard/648.3b131f1c62877155.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkoakestra_dashboard=self.webpackChunkoakestra_dashboard||[]).push([[648],{5017:(Te,de,f)=>{f.d(de,{A8:()=>H,Ov:()=>Z,Z9:()=>E,eX:()=>ne,k:()=>$,yy:()=>X});var e=f(4033),i=f(7579),a=f(4650);function E(V){return V&&"function"==typeof V.connect&&!(V instanceof e.c)}class X{applyChanges(w,A,z,K,Y){w.forEachOperation((Q,F,v)=>{let M,n;if(null==Q.previousIndex){const l=z(Q,F,v);M=A.createEmbeddedView(l.templateRef,l.context,l.index),n=1}else null==v?(A.remove(F),n=3):(M=A.get(F),A.move(M,v),n=2);Y&&Y({context:M?.context,operation:n,record:Q})})}detach(){}}class ne{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(w,A,z,K,Y){w.forEachOperation((Q,F,v)=>{let M,n;null==Q.previousIndex?(M=this._insertView(()=>z(Q,F,v),v,A,K(Q)),n=M?1:0):null==v?(this._detachAndCacheView(F,A),n=3):(M=this._moveView(F,v,A,K(Q)),n=2),Y&&Y({context:M?.context,operation:n,record:Q})})}detach(){for(const w of this._viewCache)w.destroy();this._viewCache=[]}_insertView(w,A,z,K){const Y=this._insertViewFromCache(A,z);if(Y)return void(Y.context.$implicit=K);const Q=w();return z.createEmbeddedView(Q.templateRef,Q.context,Q.index)}_detachAndCacheView(w,A){const z=A.detach(w);this._maybeCacheView(z,A)}_moveView(w,A,z,K){const Y=z.get(w);return z.move(Y,A),Y.context.$implicit=K,Y}_maybeCacheView(w,A){if(this._viewCache.lengththis._markSelected(Y)):this._markSelected(A[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...w){this._verifyValueAssignment(w),w.forEach(z=>this._markSelected(z));const A=this._hasQueuedChanges();return this._emitChangeEvent(),A}deselect(...w){this._verifyValueAssignment(w),w.forEach(z=>this._unmarkSelected(z));const A=this._hasQueuedChanges();return this._emitChangeEvent(),A}setSelection(...w){this._verifyValueAssignment(w);const A=this.selected,z=new Set(w);w.forEach(Y=>this._markSelected(Y)),A.filter(Y=>!z.has(Y)).forEach(Y=>this._unmarkSelected(Y));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}toggle(w){return this.isSelected(w)?this.deselect(w):this.select(w)}clear(w=!0){this._unmarkAll();const A=this._hasQueuedChanges();return w&&this._emitChangeEvent(),A}isSelected(w){if(this.compareWith){for(const A of this._selection)if(this.compareWith(A,w))return!0;return!1}return this._selection.has(w)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(w){this._multiple&&this.selected&&this._selected.sort(w)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(w){this.isSelected(w)||(this._multiple||this._unmarkAll(),this.isSelected(w)||this._selection.add(w),this._emitChanges&&this._selectedToEmit.push(w))}_unmarkSelected(w){this.isSelected(w)&&(this._selection.delete(w),this._emitChanges&&this._deselectedToEmit.push(w))}_unmarkAll(){this.isEmpty()||this._selection.forEach(w=>this._unmarkSelected(w))}_verifyValueAssignment(w){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let H=(()=>{class V{constructor(){this._listeners=[]}notify(A,z){for(let K of this._listeners)K(A,z)}listen(A){return this._listeners.push(A),()=>{this._listeners=this._listeners.filter(z=>A!==z)}}ngOnDestroy(){this._listeners=[]}}return V.\u0275fac=function(A){return new(A||V)},V.\u0275prov=a.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const $=new a.OlP("_ViewRepeater")},3546:(Te,de,f)=>{f.d(de,{G2:()=>Y,QW:()=>S,a8:()=>te,dn:()=>V,hq:()=>A,n5:()=>H});var e=f(4650),i=f(6895),a=f(3238);const B=["*"],Z=new e.OlP("MAT_CARD_CONFIG");let te=(()=>{class p{constructor(R){this.appearance=R?.appearance||"raised"}}return p.\u0275fac=function(R){return new(R||p)(e.Y36(Z,8))},p.\u0275cmp=e.Xpm({type:p,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(R,ie){2&R&&e.ekj("mat-mdc-card-outlined","outlined"===ie.appearance)("mdc-card--outlined","outlined"===ie.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:B,decls:1,vars:0,template:function(R,ie){1&R&&(e.F$t(),e.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),p})(),H=(()=>{class p{}return p.\u0275fac=function(R){return new(R||p)},p.\u0275dir=e.lG2({type:p,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),p})(),V=(()=>{class p{}return p.\u0275fac=function(R){return new(R||p)},p.\u0275dir=e.lG2({type:p,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),p})(),A=(()=>{class p{constructor(){this.align="start"}}return p.\u0275fac=function(R){return new(R||p)},p.\u0275dir=e.lG2({type:p,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(R,ie){2&R&&e.ekj("mat-mdc-card-actions-align-end","end"===ie.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),p})(),Y=(()=>{class p{}return p.\u0275fac=function(R){return new(R||p)},p.\u0275dir=e.lG2({type:p,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"]}),p})(),S=(()=>{class p{}return p.\u0275fac=function(R){return new(R||p)},p.\u0275mod=e.oAB({type:p}),p.\u0275inj=e.cJS({imports:[a.BQ,i.ez,a.BQ]}),p})()},6709:(Te,de,f)=>{f.d(de,{oG:()=>z,p9:()=>F});var e=f(4650),i=f(4006),a=f(3238),B=f(1281);const E=["input"],oe=["label"],X=["*"],ne=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:Z});function Z(){return{color:"accent",clickAction:"check-indeterminate"}}const te={provide:i.JU,useExisting:(0,e.Gpc)(()=>z),multi:!0};class H{}let $=0;const V=Z(),w=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(class{constructor(v){this._elementRef=v}}))));let A=(()=>{class v extends w{constructor(n,l,S,p,O,R,ie){super(l),this._changeDetectorRef=S,this._ngZone=p,this._animationMode=R,this._options=ie,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||V,this.color=this.defaultColor=this._options.color||V.color,this.tabIndex=parseInt(O)||0,this.id=this._uniqueId=`${n}${++$}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(n){this._required=(0,B.Ig)(n)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(n){const l=(0,B.Ig)(n);l!=this.checked&&(this._checked=l,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(n){const l=(0,B.Ig)(n);l!==this.disabled&&(this._disabled=l,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(n){const l=n!=this._indeterminate;this._indeterminate=(0,B.Ig)(n),l&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(n){this.checked=!!n}registerOnChange(n){this._controlValueAccessorChangeFn=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(n){let l=this._currentCheckState,S=this._getAnimationTargetElement();if(l!==n&&S&&(this._currentAnimationClass&&S.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(l,n),this._currentCheckState=n,this._currentAnimationClass.length>0)){S.classList.add(this._currentAnimationClass);const p=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{S.classList.remove(p)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const n=this._options?.clickAction;this.disabled||"noop"===n?!this.disabled&&"noop"===n&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(n){n.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(n,l){if("NoopAnimations"===this._animationMode)return"";switch(n){case 0:if(1===l)return this._animationClasses.uncheckedToChecked;if(3==l)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===l?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===l?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===l?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(n){const l=this._inputElement;l&&(l.nativeElement.indeterminate=n)}}return v.\u0275fac=function(n){e.$Z()},v.\u0275dir=e.lG2({type:v,viewQuery:function(n,l){if(1&n&&(e.Gf(E,5),e.Gf(oe,5),e.Gf(a.wG,5)),2&n){let S;e.iGM(S=e.CRH())&&(l._inputElement=S.first),e.iGM(S=e.CRH())&&(l._labelElement=S.first),e.iGM(S=e.CRH())&&(l.ripple=S.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[e.qOj]}),v})(),z=(()=>{class v extends A{constructor(n,l,S,p,O,R){super("mat-mdc-checkbox-",n,l,S,p,O,R),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(n){const l=new H;return l.source=this,l.checked=n,l}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_preventBubblingFromLabel(n){n.target&&this._labelElement.nativeElement.contains(n.target)&&n.stopPropagation()}}return v.\u0275fac=function(n){return new(n||v)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(e.QbO,8),e.Y36(ne,8))},v.\u0275cmp=e.Xpm({type:v,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(n,l){2&n&&(e.Ikx("id",l.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.ekj("_mat-animation-noopable","NoopAnimations"===l._animationMode)("mdc-checkbox--disabled",l.disabled)("mat-mdc-checkbox-disabled",l.disabled)("mat-mdc-checkbox-checked",l.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[e._Bn([te]),e.qOj],ngContentSelectors:X,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"div",0),e.NdJ("click",function(p){return l._preventBubblingFromLabel(p)}),e.TgZ(1,"div",1,2)(3,"div",3),e.NdJ("click",function(){return l._onInputClick()}),e.qZA(),e.TgZ(4,"input",4,5),e.NdJ("blur",function(){return l._onBlur()})("click",function(){return l._onInputClick()})("change",function(p){return l._onInteractionEvent(p)}),e.qZA(),e._UZ(6,"div",6),e.TgZ(7,"div",7),e.O4$(),e.TgZ(8,"svg",8),e._UZ(9,"path",9),e.qZA(),e.kcU(),e._UZ(10,"div",10),e.qZA(),e._UZ(11,"div",11),e.qZA(),e.TgZ(12,"label",12,13),e.Hsn(14),e.qZA()()),2&n){const S=e.MAs(2);e.ekj("mdc-form-field--align-end","before"==l.labelPosition),e.xp6(4),e.ekj("mdc-checkbox--selected",l.checked),e.Q6J("checked",l.checked)("disabled",l.disabled)("id",l.inputId)("required",l.required)("tabIndex",l.tabIndex),e.uIk("aria-checked",l._getAriaChecked())("aria-label",l.ariaLabel||null)("aria-labelledby",l.ariaLabelledby)("aria-describedby",l.ariaDescribedby)("name",l.name)("value",l.value),e.xp6(7),e.Q6J("matRippleTrigger",S)("matRippleDisabled",l.disableRipple||l.disabled)("matRippleCentered",!0),e.xp6(1),e.Q6J("for",l.inputId)}},dependencies:[a.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),v})(),Q=(()=>{class v{}return v.\u0275fac=function(n){return new(n||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({}),v})(),F=(()=>{class v{}return v.\u0275fac=function(n){return new(n||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({imports:[a.BQ,a.si,Q,a.BQ,Q]}),v})()},7274:(Te,de,f)=>{f.d(de,{WI:()=>ae,uw:()=>b,H8:()=>ce,ZT:()=>ee,xY:()=>ge,Is:()=>Ie,so:()=>I,uh:()=>ue});var e=f(8184),i=f(6895),a=f(4650),B=f(2687),E_OPEN="mdc-dialog--open",X_DIALOG_ANIMATION_CLOSE_TIME_MS=(["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),75),ne=f(3353),Z=f(4080),te=f(9521),H=f(7579),$=f(9770),V=f(9646),w=f(445),A=f(8675);function z(x,T){}class K{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Q=(()=>{class x extends Z.en{constructor(o,m,c,C,d,u,N,j){super(),this._elementRef=o,this._focusTrapFactory=m,this._config=C,this._interactivityChecker=d,this._ngZone=u,this._overlayRef=N,this._focusMonitor=j,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=xe=>{this._portalOutlet.hasAttached();const be=this._portalOutlet.attachDomPortal(xe);return this._contentAttached(),be},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=c}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const m=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),m}attachTemplatePortal(o){this._portalOutlet.hasAttached();const m=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),m}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,m){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const c=()=>{o.removeEventListener("blur",c),o.removeEventListener("mousedown",c),o.removeAttribute("tabindex")};o.addEventListener("blur",c),o.addEventListener("mousedown",c)})),o.focus(m)}_focusByCssSelector(o,m){let c=this._elementRef.nativeElement.querySelector(o);c&&this._forceFocus(c,m)}_trapFocus(){const o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(m=>{m||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const o=this._config.restoreFocus;let m=null;if("string"==typeof o?m=this._document.querySelector(o):"boolean"==typeof o?m=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(m=o),this._config.restoreFocus&&m&&"function"==typeof m.focus){const c=(0,ne.ht)(),C=this._elementRef.nativeElement;(!c||c===this._document.body||c===C||C.contains(c))&&(this._focusMonitor?(this._focusMonitor.focusVia(m,this._closeInteractionType),this._closeInteractionType=null):m.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,m=(0,ne.ht)();return o===m||o.contains(m)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,ne.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return x.\u0275fac=function(o){return new(o||x)(a.Y36(a.SBq),a.Y36(B.qV),a.Y36(i.K0,8),a.Y36(K),a.Y36(B.ic),a.Y36(a.R0b),a.Y36(e.Iu),a.Y36(B.tE))},x.\u0275cmp=a.Xpm({type:x,selectors:[["cdk-dialog-container"]],viewQuery:function(o,m){if(1&o&&a.Gf(Z.Pl,7),2&o){let c;a.iGM(c=a.CRH())&&(m._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(o,m){2&o&&a.uIk("id",m._config.id||null)("role",m._config.role)("aria-modal",m._config.ariaModal)("aria-labelledby",m._config.ariaLabel?null:m._ariaLabelledBy)("aria-label",m._config.ariaLabel)("aria-describedby",m._config.ariaDescribedBy||null)},features:[a.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,m){1&o&&a.YNc(0,z,0,0,"ng-template",0)},dependencies:[Z.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),x})();class F{constructor(T,o){this.overlayRef=T,this.config=o,this.closed=new H.x,this.disableClose=o.disableClose,this.backdropClick=T.backdropClick(),this.keydownEvents=T.keydownEvents(),this.outsidePointerEvents=T.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(m=>{m.keyCode===te.hY&&!this.disableClose&&!(0,te.Vb)(m)&&(m.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(T,o){if(this.containerInstance){const m=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this.overlayRef.dispose(),m.next(T),m.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(T="",o=""){return this.overlayRef.updateSize({width:T,height:o}),this}addPanelClass(T){return this.overlayRef.addPanelClass(T),this}removePanelClass(T){return this.overlayRef.removePanelClass(T),this}}const v=new a.OlP("DialogScrollStrategy"),M=new a.OlP("DialogData"),n=new a.OlP("DefaultDialogConfig"),S={provide:v,deps:[e.aV],useFactory:function l(x){return()=>x.scrollStrategies.block()}};let p=0,O=(()=>{class x{constructor(o,m,c,C,d,u){this._overlay=o,this._injector=m,this._defaultOptions=c,this._parentDialog=C,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new H.x,this._afterOpenedAtThisLevel=new H.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,$.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.O)(void 0))),this._scrollStrategy=u}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(o,m){(m={...this._defaultOptions||new K,...m}).id=m.id||"cdk-dialog-"+p++,m.id&&this.getDialogById(m.id);const C=this._getOverlayConfig(m),d=this._overlay.create(C),u=new F(d,m),N=this._attachContainer(d,u,m);return u.containerInstance=N,this._attachDialogContent(o,u,N,m),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(u),u.closed.subscribe(()=>this._removeOpenDialog(u,!0)),this.afterOpened.next(u),u}closeAll(){R(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(m=>m.id===o)}ngOnDestroy(){R(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),R(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const m=new e.X_({positionStrategy:o.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:o.scrollStrategy||this._scrollStrategy(),panelClass:o.panelClass,hasBackdrop:o.hasBackdrop,direction:o.direction,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,width:o.width,height:o.height,disposeOnNavigation:o.closeOnNavigation});return o.backdropClass&&(m.backdropClass=o.backdropClass),m}_attachContainer(o,m,c){const C=c.injector||c.viewContainerRef?.injector,d=[{provide:K,useValue:c},{provide:F,useValue:m},{provide:e.Iu,useValue:o}];let u;c.container?"function"==typeof c.container?u=c.container:(u=c.container.type,d.push(...c.container.providers(c))):u=Q;const N=new Z.C5(u,c.viewContainerRef,a.zs3.create({parent:C||this._injector,providers:d}),c.componentFactoryResolver);return o.attach(N).instance}_attachDialogContent(o,m,c,C){if(o instanceof a.Rgc){const d=this._createInjector(C,m,c,void 0);let u={$implicit:C.data,dialogRef:m};C.templateContext&&(u={...u,..."function"==typeof C.templateContext?C.templateContext():C.templateContext}),c.attachTemplatePortal(new Z.UE(o,null,u,d))}else{const d=this._createInjector(C,m,c,this._injector),u=c.attachComponentPortal(new Z.C5(o,C.viewContainerRef,d,C.componentFactoryResolver));m.componentInstance=u.instance}}_createInjector(o,m,c,C){const d=o.injector||o.viewContainerRef?.injector,u=[{provide:M,useValue:o.data},{provide:F,useValue:m}];return o.providers&&("function"==typeof o.providers?u.push(...o.providers(m,o,c)):u.push(...o.providers)),o.direction&&(!d||!d.get(w.Is,null,{optional:!0}))&&u.push({provide:w.Is,useValue:{value:o.direction,change:(0,V.of)()}}),a.zs3.create({parent:d||C,providers:u})}_removeOpenDialog(o,m){const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((C,d)=>{C?d.setAttribute("aria-hidden",C):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),m&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const m=o.parentElement.children;for(let c=m.length-1;c>-1;c--){const C=m[c];C!==o&&"SCRIPT"!==C.nodeName&&"STYLE"!==C.nodeName&&!C.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(C,C.getAttribute("aria-hidden")),C.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return x.\u0275fac=function(o){return new(o||x)(a.LFG(e.aV),a.LFG(a.zs3),a.LFG(n,8),a.LFG(x,12),a.LFG(e.Xj),a.LFG(v))},x.\u0275prov=a.Yz7({token:x,factory:x.\u0275fac}),x})();function R(x,T){let o=x.length;for(;o--;)T(x[o])}let ie=(()=>{class x{}return x.\u0275fac=function(o){return new(o||x)},x.\u0275mod=a.oAB({type:x}),x.\u0275inj=a.cJS({providers:[O,S],imports:[e.U8,Z.eL,B.rt,Z.eL]}),x})();var ve=f(1281),Me=f(6451),le=f(9300),he=f(5698),ke=f(3238);function _e(x,T){}f(7340);class ye{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let U=(()=>{class x extends Q{constructor(o,m,c,C,d,u,N,j){super(o,m,c,C,d,u,N,j),this._animationStateChanged=new a.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}return x.\u0275fac=function(o){return new(o||x)(a.Y36(a.SBq),a.Y36(B.qV),a.Y36(i.K0,8),a.Y36(ye),a.Y36(B.ic),a.Y36(a.R0b),a.Y36(e.Iu),a.Y36(B.tE))},x.\u0275cmp=a.Xpm({type:x,selectors:[["ng-component"]],features:[a.qOj],decls:0,vars:0,template:function(o,m){},encapsulation:2}),x})();const re="--mat-dialog-transition-duration";function h(x){return null==x?null:"number"==typeof x?x:x.endsWith("ms")?(0,ve.su)(x.substring(0,x.length-2)):x.endsWith("s")?1e3*(0,ve.su)(x.substring(0,x.length-1)):"0"===x?0:null}let k=(()=>{class x extends U{constructor(o,m,c,C,d,u,N,j,xe){super(o,m,c,C,d,u,N,xe),this._animationMode=j,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?h(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?h(this._config.exitAnimationDuration)??X_DIALOG_ANIMATION_CLOSE_TIME_MS:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(re,`${this._openAnimationDuration}ms`),this._hostElement.classList.add("mdc-dialog--opening"),this._hostElement.classList.add(E_OPEN),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(E_OPEN),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(E_OPEN),this._animationsEnabled?(this._hostElement.style.setProperty(re,`${this._openAnimationDuration}ms`),this._hostElement.classList.add("mdc-dialog--closing"),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove("mdc-dialog--opening"),this._hostElement.classList.remove("mdc-dialog--closing")}_waitForAnimationToComplete(o,m){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(m,o)}}return x.\u0275fac=function(o){return new(o||x)(a.Y36(a.SBq),a.Y36(B.qV),a.Y36(i.K0,8),a.Y36(ye),a.Y36(B.ic),a.Y36(a.R0b),a.Y36(e.Iu),a.Y36(a.QbO,8),a.Y36(B.tE))},x.\u0275cmp=a.Xpm({type:x,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(o,m){2&o&&(a.Ikx("id",m._config.id),a.uIk("aria-modal",m._config.ariaModal)("role",m._config.role)("aria-labelledby",m._config.ariaLabel?null:m._ariaLabelledBy)("aria-label",m._config.ariaLabel)("aria-describedby",m._config.ariaDescribedBy||null),a.ekj("_mat-animation-noopable",!m._animationsEnabled))},features:[a.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(o,m){1&o&&(a.TgZ(0,"div",0)(1,"div",1),a.YNc(2,_e,0,0,"ng-template",2),a.qZA()())},dependencies:[Z.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),x})();class I{constructor(T,o,m){this._ref=T,this._containerInstance=m,this._afterOpened=new H.x,this._beforeClosed=new H.x,this._state=0,this.disableClose=o.disableClose,this.id=T.id,m._animationStateChanged.pipe((0,le.h)(c=>"opened"===c.state),(0,he.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),m._animationStateChanged.pipe((0,le.h)(c=>"closed"===c.state),(0,he.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),T.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Me.T)(this.backdropClick(),this.keydownEvents().pipe((0,le.h)(c=>c.keyCode===te.hY&&!this.disableClose&&!(0,te.Vb)(c)))).subscribe(c=>{this.disableClose||(c.preventDefault(),G(this,"keydown"===c.type?"keyboard":"mouse"))})}close(T){this._result=T,this._containerInstance._animationStateChanged.pipe((0,le.h)(o=>"closing"===o.state),(0,he.q)(1)).subscribe(o=>{this._beforeClosed.next(T),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(T){let o=this._ref.config.positionStrategy;return T&&(T.left||T.right)?T.left?o.left(T.left):o.right(T.right):o.centerHorizontally(),T&&(T.top||T.bottom)?T.top?o.top(T.top):o.bottom(T.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(T="",o=""){return this._ref.updateSize(T,o),this}addPanelClass(T){return this._ref.addPanelClass(T),this}removePanelClass(T){return this._ref.removePanelClass(T),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function G(x,T,o){return x._closeInteractionType=T,x.close(o)}const ae=new a.OlP("MatMdcDialogData"),pe=new a.OlP("mat-mdc-dialog-default-options"),fe=new a.OlP("mat-mdc-dialog-scroll-strategy"),Ce={provide:fe,deps:[e.aV],useFactory:function we(x){return()=>x.scrollStrategies.block()}};let W=0,s=(()=>{class x{constructor(o,m,c,C,d,u,N,j,xe,be){this._overlay=o,this._defaultOptions=c,this._parentDialog=C,this._dialogRefConstructor=N,this._dialogContainerType=j,this._dialogDataToken=xe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new H.x,this._afterOpenedAtThisLevel=new H.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=ye,this.afterAllClosed=(0,$.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.O)(void 0))),this._scrollStrategy=u,this._dialog=m.get(O)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(o,m){let c;(m={...this._defaultOptions||new ye,...m}).id=m.id||`${this._idPrefix}${W++}`,m.scrollStrategy=m.scrollStrategy||this._scrollStrategy();const C=this._dialog.open(o,{...m,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:m},{provide:K,useValue:m}]},templateContext:()=>({dialogRef:c}),providers:(d,u,N)=>(c=new this._dialogRefConstructor(d,m,N),c.updatePosition(m?.position),[{provide:this._dialogContainerType,useValue:N},{provide:this._dialogDataToken,useValue:u.data},{provide:this._dialogRefConstructor,useValue:c}])});return c.componentInstance=C.componentInstance,this.openDialogs.push(c),this.afterOpened.next(c),c.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(c);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),c}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(m=>m.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let m=o.length;for(;m--;)o[m].close()}}return x.\u0275fac=function(o){a.$Z()},x.\u0275prov=a.Yz7({token:x,factory:x.\u0275fac}),x})(),b=(()=>{class x extends s{constructor(o,m,c,C,d,u,N,j){super(o,m,C,u,N,d,I,k,ae,j),this._idPrefix="mat-mdc-dialog-"}}return x.\u0275fac=function(o){return new(o||x)(a.LFG(e.aV),a.LFG(a.zs3),a.LFG(i.Ye,8),a.LFG(pe,8),a.LFG(fe),a.LFG(x,12),a.LFG(e.Xj),a.LFG(a.QbO,8))},x.\u0275prov=a.Yz7({token:x,factory:x.\u0275fac}),x})(),L=0,ee=(()=>{class x{constructor(o,m,c){this.dialogRef=o,this._elementRef=m,this._dialog=c,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Ee(this._elementRef,this._dialog.openDialogs))}ngOnChanges(o){const m=o._matDialogClose||o._matDialogCloseResult;m&&(this.dialogResult=m.currentValue)}_onButtonClick(o){G(this.dialogRef,0===o.screenX&&0===o.screenY?"keyboard":"mouse",this.dialogResult)}}return x.\u0275fac=function(o){return new(o||x)(a.Y36(I,8),a.Y36(a.SBq),a.Y36(b))},x.\u0275dir=a.lG2({type:x,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(o,m){1&o&&a.NdJ("click",function(C){return m._onButtonClick(C)}),2&o&&a.uIk("aria-label",m.ariaLabel||null)("type",m.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.TTD]}),x})(),ue=(()=>{class x{constructor(o,m,c){this._dialogRef=o,this._elementRef=m,this._dialog=c,this.id="mat-mdc-dialog-title-"+L++}ngOnInit(){this._dialogRef||(this._dialogRef=Ee(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const o=this._dialogRef._containerInstance;o&&!o._ariaLabelledBy&&(o._ariaLabelledBy=this.id)})}}return x.\u0275fac=function(o){return new(o||x)(a.Y36(I,8),a.Y36(a.SBq),a.Y36(b))},x.\u0275dir=a.lG2({type:x,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(o,m){2&o&&a.Ikx("id",m.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),x})(),ge=(()=>{class x{}return x.\u0275fac=function(o){return new(o||x)},x.\u0275dir=a.lG2({type:x,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),x})(),ce=(()=>{class x{constructor(){this.align="start"}}return x.\u0275fac=function(o){return new(o||x)},x.\u0275dir=a.lG2({type:x,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(o,m){2&o&&a.ekj("mat-mdc-dialog-actions-align-center","center"===m.align)("mat-mdc-dialog-actions-align-end","end"===m.align)},inputs:{align:"align"}}),x})();function Ee(x,T){let o=x.nativeElement.parentElement;for(;o&&!o.classList.contains("mat-mdc-dialog-container");)o=o.parentElement;return o?T.find(m=>m.id===o.id):null}let Ie=(()=>{class x{}return x.\u0275fac=function(o){return new(o||x)},x.\u0275mod=a.oAB({type:x}),x.\u0275inj=a.cJS({providers:[b,Ce],imports:[ie,e.U8,Z.eL,ke.BQ,ke.BQ]}),x})()},9549:(Te,de,f)=>{f.d(de,{Eo:()=>L,G_:()=>ce,KE:()=>o,R9:()=>pe,hX:()=>_e,lN:()=>m,qo:()=>G});var e=f(4650),i=f(445),a=f(3353),B=f(7579),E=f(6451),oe=f(2722),X=f(6895),ne=f(1281),Z=f(7340),te=f(9643),H=f(3238);const $=["matFormFieldNotchedOutline",""],V=["*"],w=["textField"],A=["iconPrefixContainer"],z=["textPrefixContainer"];function K(c,C){1&c&&e._UZ(0,"span",19)}function Y(c,C){if(1&c){const d=e.EpF();e.TgZ(0,"label",17),e.NdJ("cdkObserveContent",function(){e.CHM(d);const N=e.oxw(2);return e.KtG(N._refreshOutlineNotchWidth())}),e.Hsn(1,1),e.YNc(2,K,1,0,"span",18),e.qZA()}if(2&c){const d=e.oxw(2);e.Q6J("floating",d._shouldLabelFloat())("cdkObserveContentDisabled",!d._hasOutline())("id",d._labelId),e.uIk("for",d._control.id)("aria-owns",d._control.id),e.xp6(2),e.Q6J("ngIf",!d.hideRequiredMarker&&d._control.required)}}function Q(c,C){if(1&c&&e.YNc(0,Y,3,6,"label",16),2&c){const d=e.oxw();e.Q6J("ngIf",d._hasFloatingLabel())}}function F(c,C){1&c&&e._UZ(0,"div",20)}function v(c,C){}function M(c,C){if(1&c&&e.YNc(0,v,0,0,"ng-template",22),2&c){e.oxw(2);const d=e.MAs(1);e.Q6J("ngTemplateOutlet",d)}}function n(c,C){if(1&c&&(e.TgZ(0,"div",21),e.YNc(1,M,1,1,"ng-template",9),e.qZA()),2&c){const d=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",d._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",d._labelWidth),e.xp6(1),e.Q6J("ngIf",!d._forceDisplayInfixLabel())}}function l(c,C){1&c&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function S(c,C){1&c&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function p(c,C){}function O(c,C){if(1&c&&e.YNc(0,p,0,0,"ng-template",22),2&c){e.oxw();const d=e.MAs(1);e.Q6J("ngTemplateOutlet",d)}}function R(c,C){1&c&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function ie(c,C){1&c&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function ve(c,C){1&c&&e._UZ(0,"div",29)}function Me(c,C){if(1&c&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&c){const d=e.oxw();e.Q6J("@transitionMessages",d._subscriptAnimationState)}}function le(c,C){if(1&c&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&c){const d=e.oxw(2);e.Q6J("id",d._hintLabelId),e.xp6(1),e.Oqu(d.hintLabel)}}function he(c,C){if(1&c&&(e.TgZ(0,"div",31),e.YNc(1,le,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&c){const d=e.oxw();e.Q6J("@transitionMessages",d._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",d.hintLabel)}}const ke=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],J=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let _e=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=e.lG2({type:c,selectors:[["mat-label"]]}),c})();const U=new e.OlP("MatError");let h=0,k=(()=>{class c{constructor(){this.align="start",this.id="mat-mdc-hint-"+h++}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=e.lG2({type:c,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(d,u){2&d&&(e.Ikx("id",u.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===u.align))},inputs:{align:"align",id:"id"}}),c})();const I=new e.OlP("MatPrefix");let G=(()=>{class c{constructor(d){this._isText=!1,this._isText=d.nativeElement.hasAttribute("matTextPrefix")}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],features:[e._Bn([{provide:I,useExisting:c}])]}),c})();const ae=new e.OlP("MatSuffix");let pe=(()=>{class c{constructor(d){this._isText=!1,this._isText=d.nativeElement.hasAttribute("matTextSuffix")}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],features:[e._Bn([{provide:ae,useExisting:c}])]}),c})(),fe=(()=>{class c{constructor(d){this._elementRef=d,this.floating=!1}getWidth(){return function we(c){if(null!==c.offsetParent)return c.scrollWidth;const d=c.cloneNode(!0);d.style.setProperty("position","absolute"),d.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(d);const u=d.scrollWidth;return d.remove(),u}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(d,u){2&d&&e.ekj("mdc-floating-label--float-above",u.floating)},inputs:{floating:"floating"}}),c})();const Ce="mdc-line-ripple--active",P="mdc-line-ripple--deactivating";let W=(()=>{class c{constructor(d,u){this._elementRef=d,this._handleTransitionEnd=N=>{const j=this._elementRef.nativeElement.classList,xe=j.contains(P);"opacity"===N.propertyName&&xe&&j.remove(Ce,P)},u.runOutsideAngular(()=>{d.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const d=this._elementRef.nativeElement.classList;d.remove(P),d.add(Ce)}deactivate(){this._elementRef.nativeElement.classList.add(P)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq),e.Y36(e.R0b))},c.\u0275dir=e.lG2({type:c,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),c})(),s=(()=>{class c{constructor(d,u){this._elementRef=d,this._ngZone=u,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const d=this._elementRef.nativeElement.querySelector(".mdc-floating-label");d?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(d.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>d.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(d,u){2&d&&e.ekj("mdc-notched-outline--notched",u.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:$,ngContentSelectors:V,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(d,u){1&d&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&d&&(e.xp6(1),e.Udp("width",u._getNotchWidth()))},encapsulation:2,changeDetection:0}),c})();const b={transitionMessages:(0,Z.X$)("transitionMessages",[(0,Z.SB)("enter",(0,Z.oB)({opacity:1,transform:"translateY(0%)"})),(0,Z.eR)("void => enter",[(0,Z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,Z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let L=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=e.lG2({type:c}),c})();const ce=new e.OlP("MatFormField"),Ee=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Ie=0;const x="fixed";let o=(()=>{class c{constructor(d,u,N,j,xe,be,Oe,Re){this._elementRef=d,this._changeDetectorRef=u,this._ngZone=N,this._dir=j,this._platform=xe,this._defaults=be,this._animationMode=Oe,this._document=Re,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Ie++,this._hintLabelId="mat-mdc-hint-"+Ie++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new B.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,be&&(be.appearance&&(this.appearance=be.appearance),this._hideRequiredMarker=Boolean(be?.hideRequiredMarker),be.color&&(this.color=be.color))}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(d){this._hideRequiredMarker=(0,ne.Ig)(d)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(d){d!==this._floatLabel&&(this._floatLabel=d,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(d){const u=this._appearance;this._appearance=d||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==u&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||x}set subscriptSizing(d){this._subscriptSizing=d||this._defaults?.subscriptSizing||x}get hintLabel(){return this._hintLabel}set hintLabel(d){this._hintLabel=d,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(d){this._explicitFormFieldControl=d}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const d=this._control;d.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${d.controlType}`),d.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),d.ngControl&&d.ngControl.valueChanges&&d.ngControl.valueChanges.pipe((0,oe.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(d=>!d._isText),this._hasTextPrefix=!!this._prefixChildren.find(d=>d._isText),this._hasIconSuffix=!!this._suffixChildren.find(d=>!d._isText),this._hasTextSuffix=!!this._suffixChildren.find(d=>d._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,oe.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,oe.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(d){const u=this._control?this._control.ngControl:null;return u&&u[d]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let d=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&d.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const u=this._hintChildren?this._hintChildren.find(j=>"start"===j.align):null,N=this._hintChildren?this._hintChildren.find(j=>"end"===j.align):null;u?d.push(u.id):this._hintLabel&&d.push(this._hintLabelId),N&&d.push(N.id)}else this._errorChildren&&d.push(...this._errorChildren.map(u=>u.id));this._control.setDescribedByIds(d)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const d=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(d.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const u=this._iconPrefixContainer?.nativeElement,N=this._textPrefixContainer?.nativeElement,j=u?.getBoundingClientRect().width??0,xe=N?.getBoundingClientRect().width??0;d.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${j+xe}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const d=this._elementRef.nativeElement;if(d.getRootNode){const u=d.getRootNode();return u&&u!==d}return document.documentElement.contains(d)}}return c.\u0275fac=function(d){return new(d||c)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(i.Is),e.Y36(a.t4),e.Y36(Ee,8),e.Y36(e.QbO,8),e.Y36(X.K0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["mat-form-field"]],contentQueries:function(d,u,N){if(1&d&&(e.Suo(N,_e,5),e.Suo(N,_e,7),e.Suo(N,L,5),e.Suo(N,I,5),e.Suo(N,ae,5),e.Suo(N,U,5),e.Suo(N,k,5)),2&d){let j;e.iGM(j=e.CRH())&&(u._labelChildNonStatic=j.first),e.iGM(j=e.CRH())&&(u._labelChildStatic=j.first),e.iGM(j=e.CRH())&&(u._formFieldControl=j.first),e.iGM(j=e.CRH())&&(u._prefixChildren=j),e.iGM(j=e.CRH())&&(u._suffixChildren=j),e.iGM(j=e.CRH())&&(u._errorChildren=j),e.iGM(j=e.CRH())&&(u._hintChildren=j)}},viewQuery:function(d,u){if(1&d&&(e.Gf(w,5),e.Gf(A,5),e.Gf(z,5),e.Gf(fe,5),e.Gf(s,5),e.Gf(W,5)),2&d){let N;e.iGM(N=e.CRH())&&(u._textField=N.first),e.iGM(N=e.CRH())&&(u._iconPrefixContainer=N.first),e.iGM(N=e.CRH())&&(u._textPrefixContainer=N.first),e.iGM(N=e.CRH())&&(u._floatingLabel=N.first),e.iGM(N=e.CRH())&&(u._notchedOutline=N.first),e.iGM(N=e.CRH())&&(u._lineRipple=N.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(d,u){2&d&&e.ekj("mat-mdc-form-field-label-always-float",u._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",u._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",u._hasIconSuffix)("mat-form-field-invalid",u._control.errorState)("mat-form-field-disabled",u._control.disabled)("mat-form-field-autofilled",u._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===u._animationMode)("mat-form-field-appearance-fill","fill"==u.appearance)("mat-form-field-appearance-outline","outline"==u.appearance)("mat-form-field-hide-placeholder",u._hasFloatingLabel()&&!u._shouldLabelFloat())("mat-focused",u._control.focused)("mat-primary","accent"!==u.color&&"warn"!==u.color)("mat-accent","accent"===u.color)("mat-warn","warn"===u.color)("ng-untouched",u._shouldForward("untouched"))("ng-touched",u._shouldForward("touched"))("ng-pristine",u._shouldForward("pristine"))("ng-dirty",u._shouldForward("dirty"))("ng-valid",u._shouldForward("valid"))("ng-invalid",u._shouldForward("invalid"))("ng-pending",u._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:ce,useExisting:c}])],ngContentSelectors:J,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(d,u){1&d&&(e.F$t(ke),e.YNc(0,Q,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(j){return u._control.onContainerClick&&u._control.onContainerClick(j)}),e.YNc(4,F,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,n,2,3,"div",5),e.YNc(7,l,3,0,"div",6),e.YNc(8,S,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,O,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,R,2,0,"div",10),e.YNc(13,ie,2,0,"div",11),e.qZA(),e.YNc(14,ve,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,Me,2,1,"div",14),e.YNc(17,he,5,2,"div",15),e.qZA()),2&d&&(e.xp6(2),e.ekj("mdc-text-field--filled",!u._hasOutline())("mdc-text-field--outlined",u._hasOutline())("mdc-text-field--no-label",!u._hasFloatingLabel())("mdc-text-field--disabled",u._control.disabled)("mdc-text-field--invalid",u._control.errorState),e.xp6(2),e.Q6J("ngIf",!u._hasOutline()&&!u._control.disabled),e.xp6(2),e.Q6J("ngIf",u._hasOutline()),e.xp6(1),e.Q6J("ngIf",u._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",u._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!u._hasOutline()||u._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",u._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",u._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!u._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===u.subscriptSizing),e.Q6J("ngSwitch",u._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[X.O5,X.tP,X.RF,X.n9,te.wD,k,fe,s,W],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[b.transitionMessages]},changeDetection:0}),c})(),m=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[H.BQ,X.ez,te.Q8,H.BQ]}),c})()},4144:(Te,de,f)=>{f.d(de,{Nt:()=>Q,c:()=>F});var e=f(1281),i=f(3353),a=f(4650),B=f(515),E=f(7579);const oe=(0,i.i$)({passive:!0});let X=(()=>{class v{constructor(n,l){this._platform=n,this._ngZone=l,this._monitoredElements=new Map}monitor(n){if(!this._platform.isBrowser)return B.E;const l=(0,e.fI)(n),S=this._monitoredElements.get(l);if(S)return S.subject;const p=new E.x,O="cdk-text-field-autofilled",R=ie=>{"cdk-text-field-autofill-start"!==ie.animationName||l.classList.contains(O)?"cdk-text-field-autofill-end"===ie.animationName&&l.classList.contains(O)&&(l.classList.remove(O),this._ngZone.run(()=>p.next({target:ie.target,isAutofilled:!1}))):(l.classList.add(O),this._ngZone.run(()=>p.next({target:ie.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{l.addEventListener("animationstart",R,oe),l.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(l,{subject:p,unlisten:()=>{l.removeEventListener("animationstart",R,oe)}}),p}stopMonitoring(n){const l=(0,e.fI)(n),S=this._monitoredElements.get(l);S&&(S.unlisten(),S.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}ngOnDestroy(){this._monitoredElements.forEach((n,l)=>this.stopMonitoring(l))}}return v.\u0275fac=function(n){return new(n||v)(a.LFG(i.t4),a.LFG(a.R0b))},v.\u0275prov=a.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),te=(()=>{class v{}return v.\u0275fac=function(n){return new(n||v)},v.\u0275mod=a.oAB({type:v}),v.\u0275inj=a.cJS({}),v})();var H=f(4006),$=f(3238),V=f(9549);const A=new a.OlP("MAT_INPUT_VALUE_ACCESSOR"),z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let K=0;const Y=(0,$.FD)(class{constructor(v,M,n,l){this._defaultErrorStateMatcher=v,this._parentForm=M,this._parentFormGroup=n,this.ngControl=l,this.stateChanges=new E.x}});let Q=(()=>{class v extends Y{constructor(n,l,S,p,O,R,ie,ve,Me,le){super(R,p,O,S),this._elementRef=n,this._platform=l,this._autofillMonitor=ve,this._formField=le,this._uid="mat-input-"+K++,this.focused=!1,this.stateChanges=new E.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(J=>(0,i.qK)().has(J)),this._iOSKeyupListener=J=>{const _e=J.target;!_e.value&&0===_e.selectionStart&&0===_e.selectionEnd&&(_e.setSelectionRange(1,1),_e.setSelectionRange(0,0))};const he=this._elementRef.nativeElement,ke=he.nodeName.toLowerCase();this._inputValueAccessor=ie||he,this._previousNativeValue=this.value,this.id=this.id,l.IOS&&Me.runOutsideAngular(()=>{n.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ke,this._isTextarea="textarea"===ke,this._isInFormField=!!le,this._isNativeSelect&&(this.controlType=he.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this._disabled}set disabled(n){this._disabled=(0,e.Ig)(n),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(n){this._id=n||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(H.kI.required)??!1}set required(n){this._required=(0,e.Ig)(n)}get type(){return this._type}set type(n){this._type=n||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(n){n!==this.value&&(this._inputValueAccessor.value=n,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(n){this._readonly=(0,e.Ig)(n)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(n=>{this.autofilled=n.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(n){this._elementRef.nativeElement.focus(n)}_focusChanged(n){n!==this.focused&&(this.focused=n,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const n=this._elementRef.nativeElement.value;this._previousNativeValue!==n&&(this._previousNativeValue=n,this.stateChanges.next())}_dirtyCheckPlaceholder(){const n=this._getPlaceholder();if(n!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=n,n?l.setAttribute("placeholder",n):l.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let n=this._elementRef.nativeElement.validity;return n&&n.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const n=this._elementRef.nativeElement,l=n.options[0];return this.focused||n.multiple||!this.empty||!!(n.selectedIndex>-1&&l&&l.label)}return this.focused||!this.empty}setDescribedByIds(n){n.length?this._elementRef.nativeElement.setAttribute("aria-describedby",n.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const n=this._elementRef.nativeElement;return this._isNativeSelect&&(n.multiple||n.size>1)}}return v.\u0275fac=function(n){return new(n||v)(a.Y36(a.SBq),a.Y36(i.t4),a.Y36(H.a5,10),a.Y36(H.F,8),a.Y36(H.sg,8),a.Y36($.rD),a.Y36(A,10),a.Y36(X),a.Y36(a.R0b),a.Y36(V.G_,8))},v.\u0275dir=a.lG2({type:v,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,l){1&n&&a.NdJ("focus",function(){return l._focusChanged(!0)})("blur",function(){return l._focusChanged(!1)})("input",function(){return l._onInput()}),2&n&&(a.Ikx("id",l.id)("disabled",l.disabled)("required",l.required),a.uIk("name",l.name||null)("readonly",l.readonly&&!l._isNativeSelect||null)("aria-invalid",l.empty&&l.required?null:l.errorState)("aria-required",l.required)("id",l.id),a.ekj("mat-input-server",l._isServer)("mat-mdc-form-field-textarea-control",l._isInFormField&&l._isTextarea)("mat-mdc-form-field-input-control",l._isInFormField)("mdc-text-field__input",l._isInFormField)("mat-mdc-native-select-inline",l._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[a._Bn([{provide:V.Eo,useExisting:v}]),a.qOj,a.TTD]}),v})(),F=(()=>{class v{}return v.\u0275fac=function(n){return new(n||v)},v.\u0275mod=a.oAB({type:v}),v.\u0275inj=a.cJS({imports:[$.BQ,V.lN,V.lN,te,$.BQ]}),v})()},4385:(Te,de,f)=>{f.d(de,{$L:()=>fe,LD:()=>Ce,gD:()=>we});var e=f(8184),i=f(6895),a=f(4650),B=f(3238),E=f(9549),oe=f(5589),X=f(2687),ne=f(445),Z=f(1281),te=f(5017),H=f(9521),$=f(4006),V=f(7579),w=f(9770),A=f(6451),z=f(8675),K=f(3900),Y=f(5698),Q=f(9300),F=f(4004),v=f(1884),M=f(2722),n=f(7340);const l=["trigger"],S=["panel"];function p(P,W){if(1&P&&(a.TgZ(0,"span",10),a._uU(1),a.qZA()),2&P){const s=a.oxw();a.xp6(1),a.Oqu(s.placeholder)}}function O(P,W){if(1&P&&(a.TgZ(0,"span",14),a._uU(1),a.qZA()),2&P){const s=a.oxw(2);a.xp6(1),a.Oqu(s.triggerValue)}}function R(P,W){1&P&&a.Hsn(0,0,["*ngSwitchCase","true"])}function ie(P,W){if(1&P&&(a.TgZ(0,"span",11),a.YNc(1,O,2,1,"span",12),a.YNc(2,R,1,0,"ng-content",13),a.qZA()),2&P){const s=a.oxw();a.Q6J("ngSwitch",!!s.customTrigger),a.xp6(2),a.Q6J("ngSwitchCase",!0)}}function ve(P,W){if(1&P){const s=a.EpF();a.O4$(),a.kcU(),a.TgZ(0,"div",15,16),a.NdJ("@transformPanel.done",function(L){a.CHM(s);const ee=a.oxw();return a.KtG(ee._panelDoneAnimatingStream.next(L.toState))})("keydown",function(L){a.CHM(s);const ee=a.oxw();return a.KtG(ee._handleKeydown(L))}),a.Hsn(2,1),a.qZA()}if(2&P){const s=a.oxw();a.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",s._getPanelTheme(),""),a.Q6J("ngClass",s.panelClass)("@transformPanel","showing"),a.uIk("id",s.id+"-panel")("aria-multiselectable",s.multiple)("aria-label",s.ariaLabel||null)("aria-labelledby",s._getPanelAriaLabelledby())}}const Me=[[["mat-select-trigger"]],"*"],le=["mat-select-trigger","*"],he={transformPanelWrap:(0,n.X$)("transformPanelWrap",[(0,n.eR)("* => void",(0,n.IO)("@transformPanel",[(0,n.pV)()],{optional:!0}))]),transformPanel:(0,n.X$)("transformPanel",[(0,n.SB)("void",(0,n.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,n.eR)("void => showing",(0,n.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,n.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,n.eR)("* => void",(0,n.jt)("100ms linear",(0,n.oB)({opacity:0})))])};let ye=0;const U=new a.OlP("mat-select-scroll-strategy"),h=new a.OlP("MAT_SELECT_CONFIG"),k={provide:U,deps:[e.aV],useFactory:function re(P){return()=>P.scrollStrategies.reposition()}},I=new a.OlP("MatSelectTrigger");class G{constructor(W,s){this.source=W,this.value=s}}const ae=(0,B.Kr)((0,B.sb)((0,B.Id)((0,B.FD)(class{constructor(P,W,s,b,L){this._elementRef=P,this._defaultErrorStateMatcher=W,this._parentForm=s,this._parentFormGroup=b,this.ngControl=L,this.stateChanges=new V.x}}))));let pe=(()=>{class P extends ae{constructor(s,b,L,ee,ue,ge,ce,Ee,Ie,De,Ae,x,T,o){super(ue,ee,ce,Ee,De),this._viewportRuler=s,this._changeDetectorRef=b,this._ngZone=L,this._dir=ge,this._parentFormField=Ie,this._liveAnnouncer=T,this._defaultOptions=o,this._panelOpen=!1,this._compareWith=(m,c)=>m===c,this._uid="mat-select-"+ye++,this._triggerAriaLabelledBy=null,this._destroy=new V.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ye++,this._panelDoneAnimatingStream=new V.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,w.P)(()=>{const m=this.options;return m?m.changes.pipe((0,z.O)(m),(0,K.w)(()=>(0,A.T)(...m.map(c=>c.onSelectionChange)))):this._ngZone.onStable.pipe((0,Y.q)(1),(0,K.w)(()=>this.optionSelectionChanges))}),this.openedChange=new a.vpe,this._openedStream=this.openedChange.pipe((0,Q.h)(m=>m),(0,F.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Q.h)(m=>!m),(0,F.U)(()=>{})),this.selectionChange=new a.vpe,this.valueChange=new a.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=o?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=o.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Ae)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(s){this._placeholder=s,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator($.kI.required)??!1}set required(s){this._required=(0,Z.Ig)(s),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(s){this._multiple=(0,Z.Ig)(s)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(s){this._disableOptionCentering=(0,Z.Ig)(s)}get compareWith(){return this._compareWith}set compareWith(s){this._compareWith=s,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(s){this._assignValue(s)&&this._onChange(s)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(s){this._typeaheadDebounceInterval=(0,Z.su)(s)}get id(){return this._id}set id(s){this._id=s||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new te.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,v.x)(),(0,M.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,M.R)(this._destroy)).subscribe(s=>{s.added.forEach(b=>b.select()),s.removed.forEach(b=>b.deselect())}),this.options.changes.pipe((0,z.O)(null),(0,M.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const s=this._getTriggerAriaLabelledby(),b=this.ngControl;if(s!==this._triggerAriaLabelledBy){const L=this._elementRef.nativeElement;this._triggerAriaLabelledBy=s,s?L.setAttribute("aria-labelledby",s):L.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(void 0!==this._previousControl&&null!==b.disabled&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())}ngOnChanges(s){(s.disabled||s.userAriaDescribedBy)&&this.stateChanges.next(),s.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(s){this._assignValue(s)}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}setDisabledState(s){this.disabled=s,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const s=this._selectionModel.selected.map(b=>b.viewValue);return this._isRtl()&&s.reverse(),s.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(s){this.disabled||(this.panelOpen?this._handleOpenKeydown(s):this._handleClosedKeydown(s))}_handleClosedKeydown(s){const b=s.keyCode,L=b===H.JH||b===H.LH||b===H.oh||b===H.SV,ee=b===H.K5||b===H.L_,ue=this._keyManager;if(!ue.isTyping()&&ee&&!(0,H.Vb)(s)||(this.multiple||s.altKey)&&L)s.preventDefault(),this.open();else if(!this.multiple){const ge=this.selected;ue.onKeydown(s);const ce=this.selected;ce&&ge!==ce&&this._liveAnnouncer.announce(ce.viewValue,1e4)}}_handleOpenKeydown(s){const b=this._keyManager,L=s.keyCode,ee=L===H.JH||L===H.LH,ue=b.isTyping();if(ee&&s.altKey)s.preventDefault(),this.close();else if(ue||L!==H.K5&&L!==H.L_||!b.activeItem||(0,H.Vb)(s))if(!ue&&this._multiple&&L===H.A&&s.ctrlKey){s.preventDefault();const ge=this.options.some(ce=>!ce.disabled&&!ce.selected);this.options.forEach(ce=>{ce.disabled||(ge?ce.select():ce.deselect())})}else{const ge=b.activeItemIndex;b.onKeydown(s),this._multiple&&ee&&s.shiftKey&&b.activeItem&&b.activeItemIndex!==ge&&b.activeItem._selectViaInteraction()}else s.preventDefault(),b.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(s){if(this._selectionModel.selected.forEach(b=>b.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&s)Array.isArray(s),s.forEach(b=>this._selectOptionByValue(b)),this._sortValues();else{const b=this._selectOptionByValue(s);b?this._keyManager.updateActiveItem(b):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(s){const b=this.options.find(L=>{if(this._selectionModel.isSelected(L))return!1;try{return null!=L.value&&this._compareWith(L.value,s)}catch{return!1}});return b&&this._selectionModel.select(b),b}_assignValue(s){return!!(s!==this._value||this._multiple&&Array.isArray(s))&&(this.options&&this._setSelectionByValue(s),this._value=s,!0)}_initKeyManager(){this._keyManager=new X.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const s=(0,A.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,M.R)(s)).subscribe(b=>{this._onSelect(b.source,b.isUserInput),b.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,A.T)(...this.options.map(b=>b._stateChanges)).pipe((0,M.R)(s)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(s,b){const L=this._selectionModel.isSelected(s);null!=s.value||this._multiple?(L!==s.selected&&(s.selected?this._selectionModel.select(s):this._selectionModel.deselect(s)),b&&this._keyManager.setActiveItem(s),this.multiple&&(this._sortValues(),b&&this.focus())):(s.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(s.value)),L!==this._selectionModel.isSelected(s)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const s=this.options.toArray();this._selectionModel.sort((b,L)=>this.sortComparator?this.sortComparator(b,L,s):s.indexOf(b)-s.indexOf(L)),this.stateChanges.next()}}_propagateChanges(s){let b=null;b=this.multiple?this.selected.map(L=>L.value):this.selected?this.selected.value:s,this._value=b,this.valueChange.emit(b),this._onChange(b),this.selectionChange.emit(this._getChangeEvent(b)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(s){this._elementRef.nativeElement.focus(s)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const s=this._parentFormField?.getLabelId();return this.ariaLabelledby?(s?s+" ":"")+this.ariaLabelledby:s}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const s=this._parentFormField?.getLabelId();let b=(s?s+" ":"")+this._valueId;return this.ariaLabelledby&&(b+=" "+this.ariaLabelledby),b}_panelDoneAnimating(s){this.openedChange.emit(s)}setDescribedByIds(s){s.length?this._elementRef.nativeElement.setAttribute("aria-describedby",s.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return P.\u0275fac=function(s){return new(s||P)(a.Y36(oe.rL),a.Y36(a.sBO),a.Y36(a.R0b),a.Y36(B.rD),a.Y36(a.SBq),a.Y36(ne.Is,8),a.Y36($.F,8),a.Y36($.sg,8),a.Y36(E.G_,8),a.Y36($.a5,10),a.$8M("tabindex"),a.Y36(U),a.Y36(X.Kd),a.Y36(h,8))},P.\u0275dir=a.lG2({type:P,viewQuery:function(s,b){if(1&s&&(a.Gf(l,5),a.Gf(S,5),a.Gf(e.pI,5)),2&s){let L;a.iGM(L=a.CRH())&&(b.trigger=L.first),a.iGM(L=a.CRH())&&(b.panel=L.first),a.iGM(L=a.CRH())&&(b._overlayDir=L.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[a.qOj,a.TTD]}),P})(),fe=(()=>{class P{}return P.\u0275fac=function(s){return new(s||P)},P.\u0275dir=a.lG2({type:P,selectors:[["mat-select-trigger"]],features:[a._Bn([{provide:I,useExisting:P}])]}),P})(),we=(()=>{class P extends pe{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}]}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,M.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(s){const b=this.options.toArray()[s];if(b){const L=this.panel.nativeElement,ee=(0,B.CB)(s,this.options,this.optionGroups),ue=b._getHostElement();L.scrollTop=0===s&&1===ee?0:(0,B.jH)(ue.offsetTop,ue.offsetHeight,L.scrollTop,L.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(s){return new G(this,s)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof e.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}}return P.\u0275fac=function(){let W;return function(b){return(W||(W=a.n5z(P)))(b||P)}}(),P.\u0275cmp=a.Xpm({type:P,selectors:[["mat-select"]],contentQueries:function(s,b,L){if(1&s&&(a.Suo(L,I,5),a.Suo(L,B.ey,5),a.Suo(L,B.K7,5)),2&s){let ee;a.iGM(ee=a.CRH())&&(b.customTrigger=ee.first),a.iGM(ee=a.CRH())&&(b.options=ee),a.iGM(ee=a.CRH())&&(b.optionGroups=ee)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(s,b){1&s&&a.NdJ("keydown",function(ee){return b._handleKeydown(ee)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()}),2&s&&(a.uIk("id",b.id)("tabindex",b.tabIndex)("aria-controls",b.panelOpen?b.id+"-panel":null)("aria-expanded",b.panelOpen)("aria-label",b.ariaLabel||null)("aria-required",b.required.toString())("aria-disabled",b.disabled.toString())("aria-invalid",b.errorState)("aria-activedescendant",b._getAriaActiveDescendant()),a.ekj("mat-mdc-select-disabled",b.disabled)("mat-mdc-select-invalid",b.errorState)("mat-mdc-select-required",b.required)("mat-mdc-select-empty",b.empty)("mat-mdc-select-multiple",b.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[a._Bn([{provide:E.Eo,useExisting:P},{provide:B.HF,useExisting:P}]),a.qOj],ngContentSelectors:le,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(s,b){if(1&s&&(a.F$t(Me),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return b.toggle()}),a.TgZ(3,"div",2),a.YNc(4,p,2,1,"span",3),a.YNc(5,ie,3,2,"span",4),a.qZA(),a.TgZ(6,"div",5)(7,"div",6),a.O4$(),a.TgZ(8,"svg",7),a._UZ(9,"path",8),a.qZA()()()(),a.YNc(10,ve,3,9,"ng-template",9),a.NdJ("backdropClick",function(){return b.close()})("attach",function(){return b._onAttached()})("detach",function(){return b.close()})),2&s){const L=a.MAs(1);a.uIk("aria-owns",b.panelOpen?b.id+"-panel":null),a.xp6(3),a.Q6J("ngSwitch",b.empty),a.uIk("id",b._valueId),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1),a.xp6(5),a.Q6J("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",b._preferredOverlayOrigin||L)("cdkConnectedOverlayOpen",b.panelOpen)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayWidth",b._overlayWidth)}},dependencies:[i.mk,i.RF,i.n9,i.ED,e.pI,e.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[he.transformPanel]},changeDetection:0}),P})(),Ce=(()=>{class P{}return P.\u0275fac=function(s){return new(s||P)},P.\u0275mod=a.oAB({type:P}),P.\u0275inj=a.cJS({providers:[k],imports:[i.ez,e.U8,B.Ng,B.BQ,oe.ZD,E.lN,B.Ng,B.BQ]}),P})()},455:(Te,de,f)=>{f.d(de,{Rr:()=>A,rP:()=>Q});var e=f(4650),i=f(4006),a=f(2687),B=f(3238),E=f(1281),oe=f(6895);const X=["switch"],ne=["*"],Z=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),te={provide:i.JU,useExisting:(0,e.Gpc)(()=>A),multi:!0};class H{constructor(v,M){this.source=v,this.checked=M}}let $=0;const V=(0,B.sb)((0,B.pj)((0,B.Kr)((0,B.Id)(class{constructor(F){this._elementRef=F}}))));let w=(()=>{class F extends V{constructor(M,n,l,S,p,O,R){super(M),this._focusMonitor=n,this._changeDetectorRef=l,this.defaults=p,this._onChange=ie=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(S)||0,this.color=this.defaultColor=p.color||"accent",this._noopAnimations="NoopAnimations"===O,this.id=this._uniqueId=`${R}${++$}`}get required(){return this._required}set required(M){this._required=(0,E.Ig)(M)}get checked(){return this._checked}set checked(M){this._checked=(0,E.Ig)(M),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(M=>{"keyboard"===M||"program"===M?(this._focused=!0,this._changeDetectorRef.markForCheck()):M||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(M){this.checked=!!M}registerOnChange(M){this._onChange=M}registerOnTouched(M){this._onTouched=M}setDisabledState(M){this.disabled=M,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return F.\u0275fac=function(M){e.$Z()},F.\u0275dir=e.lG2({type:F,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[e.qOj]}),F})(),A=(()=>{class F extends w{constructor(M,n,l,S,p,O){super(M,n,l,S,p,O,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}get buttonId(){return`${this.id||this._uniqueId}-button`}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new H(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(M){return new H(this,M)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return F.\u0275fac=function(M){return new(M||F)(e.Y36(e.SBq),e.Y36(a.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(Z),e.Y36(e.QbO,8))},F.\u0275cmp=e.Xpm({type:F,selectors:[["mat-slide-toggle"]],viewQuery:function(M,n){if(1&M&&e.Gf(X,5),2&M){let l;e.iGM(l=e.CRH())&&(n._switchElement=l.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(M,n){2&M&&(e.Ikx("id",n.id),e.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),e.ekj("mat-mdc-slide-toggle-focused",n._focused)("mat-mdc-slide-toggle-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[e._Bn([te]),e.qOj],ngContentSelectors:ne,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(M,n){if(1&M&&(e.F$t(),e.TgZ(0,"div",0)(1,"button",1,2),e.NdJ("click",function(){return n._handleClick()}),e._UZ(3,"div",3),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6),e._UZ(7,"div",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"div",9),e.qZA(),e.TgZ(10,"div",10),e.O4$(),e.TgZ(11,"svg",11),e._UZ(12,"path",12),e.qZA(),e.TgZ(13,"svg",13),e._UZ(14,"path",14),e.qZA()()()()(),e.kcU(),e.TgZ(15,"label",15),e.NdJ("click",function(S){return S.stopPropagation()}),e.Hsn(16),e.qZA()()),2&M){const l=e.MAs(2);e.ekj("mdc-form-field--align-end","before"==n.labelPosition),e.xp6(1),e.ekj("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled),e.Q6J("tabIndex",n.tabIndex)("disabled",n.disabled),e.uIk("id",n.buttonId)("name",n.name)("aria-label",n.ariaLabel)("aria-labelledby",n._getAriaLabelledBy())("aria-describedby",n.ariaDescribedby)("aria-required",n.required||null)("aria-checked",n.checked),e.xp6(8),e.Q6J("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),e.xp6(6),e.Q6J("for",n.buttonId),e.uIk("id",n._labelId)}},dependencies:[B.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),F})(),Y=(()=>{class F{}return F.\u0275fac=function(M){return new(M||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({}),F})(),Q=(()=>{class F{}return F.\u0275fac=function(M){return new(M||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[Y,B.BQ,B.si,oe.ez,Y,B.BQ]}),F})()},3848:(Te,de,f)=>{f.d(de,{Nh:()=>Ge,SP:()=>He,uX:()=>u});var e=f(6895),i=f(4650),a=f(3238),B=f(4080),E=f(9643),oe=f(2687),X=f(445),ne=f(727),Z=f(7579),te=f(4968),H=f(9646),$=f(6451),V=f(515),w=f(9751),A=f(2805),z=f(8675),K=f(1884),Y=f(2722),Q=f(5698),F=f(3900),v=f(5684),M=f(9300),n=f(7340),l=f(1281),S=f(5589),p=f(3353),O=f(9521);function R(g,y){}const ie=function(g){return{animationDuration:g}},ve=function(g,y){return{value:g,params:y}};function Me(g,y){1&g&&i.Hsn(0)}const le=["*"],he=["tabListContainer"],ke=["tabList"],J=["tabListInner"],_e=["nextPaginator"],ye=["previousPaginator"],U=["tabBodyWrapper"],re=["tabHeader"];function h(g,y){}function k(g,y){if(1&g&&i.YNc(0,h,0,0,"ng-template",14),2&g){const t=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",t.templateLabel)}}function I(g,y){if(1&g&&i._uU(0),2&g){const t=i.oxw().$implicit;i.Oqu(t.textLabel)}}function G(g,y){if(1&g){const t=i.EpF();i.TgZ(0,"div",6,7),i.NdJ("click",function(){const _=i.CHM(t),D=_.$implicit,q=_.index,se=i.oxw(),me=i.MAs(1);return i.KtG(se._handleClick(D,me,q))})("cdkFocusChange",function(_){const q=i.CHM(t).index,se=i.oxw();return i.KtG(se._tabFocusChanged(_,q))}),i._UZ(2,"span",8)(3,"div",9),i.TgZ(4,"span",10)(5,"span",11),i.YNc(6,k,1,1,"ng-template",12),i.YNc(7,I,1,1,"ng-template",null,13,i.W1O),i.qZA()()()}if(2&g){const t=y.$implicit,r=y.index,_=i.MAs(1),D=i.MAs(8),q=i.oxw();i.ekj("mdc-tab--active",q.selectedIndex===r),i.Q6J("id",q._getTabLabelId(r))("ngClass",t.labelClass)("disabled",t.disabled)("fitInkBarToContent",q.fitInkBarToContent),i.uIk("tabIndex",q._getTabIndex(t,r))("aria-posinset",r+1)("aria-setsize",q._tabs.length)("aria-controls",q._getTabContentId(r))("aria-selected",q.selectedIndex===r)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),i.xp6(3),i.Q6J("matRippleTrigger",_)("matRippleDisabled",t.disabled||q.disableRipple),i.xp6(3),i.Q6J("ngIf",t.templateLabel)("ngIfElse",D)}}function ae(g,y){if(1&g){const t=i.EpF();i.TgZ(0,"mat-tab-body",15),i.NdJ("_onCentered",function(){i.CHM(t);const _=i.oxw();return i.KtG(_._removeTabBodyWrapperHeight())})("_onCentering",function(_){i.CHM(t);const D=i.oxw();return i.KtG(D._setTabBodyWrapperHeight(_))}),i.qZA()}if(2&g){const t=y.$implicit,r=y.index,_=i.oxw();i.ekj("mat-mdc-tab-body-active",_.selectedIndex===r),i.Q6J("id",_._getTabContentId(r))("ngClass",t.bodyClass)("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",_.animationDuration)("preserveContent",_.preserveContent),i.uIk("tabindex",null!=_.contentTabIndex&&_.selectedIndex===r?_.contentTabIndex:null)("aria-labelledby",_._getTabLabelId(r))}}const we={translateTab:(0,n.X$)("translateTab",[(0,n.SB)("center, void, left-origin-center, right-origin-center",(0,n.oB)({transform:"none"})),(0,n.SB)("left",(0,n.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,n.SB)("right",(0,n.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,n.eR)("* => left, * => right, left => center, right => center",(0,n.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,n.eR)("void => left-origin-center",[(0,n.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,n.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,n.eR)("void => right-origin-center",[(0,n.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,n.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ce=(()=>{class g extends B.Pl{constructor(t,r,_,D){super(t,r,D),this._host=_,this._centeringSub=ne.w0.EMPTY,this._leavingSub=ne.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,z.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>W)),i.Y36(e.K0))},g.\u0275dir=i.lG2({type:g,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),g})(),P=(()=>{class g{constructor(t,r,_){this._elementRef=t,this._dir=r,this._dirChangeSubscription=ne.w0.EMPTY,this._translateTabComplete=new Z.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(D=>{this._computePositionAnimationState(D),_.markForCheck()})),this._translateTabComplete.pipe((0,K.x)((D,q)=>D.fromState===q.fromState&&D.toState===q.toState)).subscribe(D=>{this._isCenterPosition(D.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(D.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const r=this._isCenterPosition(t.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const r=this._getLayoutDirection();return"ltr"==r&&t<=0||"rtl"==r&&t>0?"left-origin-center":"right-origin-center"}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq),i.Y36(X.Is,8),i.Y36(i.sBO))},g.\u0275dir=i.lG2({type:g,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),g})(),W=(()=>{class g extends P{constructor(t,r,_){super(t,r,_)}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq),i.Y36(X.Is,8),i.Y36(i.sBO))},g.\u0275cmp=i.Xpm({type:g,selectors:[["mat-tab-body"]],viewQuery:function(t,r){if(1&t&&i.Gf(B.Pl,5),2&t){let _;i.iGM(_=i.CRH())&&(r._portalHost=_.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,r){1&t&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(D){return r._onTranslateTabStarted(D)})("@translateTab.done",function(D){return r._translateTabComplete.next(D)}),i.YNc(2,R,0,0,"ng-template",2),i.qZA()),2&t&&i.Q6J("@translateTab",i.WLB(3,ve,r._position,i.VKq(1,ie,r.animationDuration)))},dependencies:[Ce],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[we.translateTab]}}),g})();const s=new i.OlP("MatTabContent");let b=(()=>{class g{constructor(t){this.template=t}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.Rgc))},g.\u0275dir=i.lG2({type:g,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:s,useExisting:g}])]}),g})();const L=new i.OlP("MatTabLabel"),ee=new i.OlP("MAT_TAB");let ue=(()=>{class g extends B.ig{constructor(t,r,_){super(t,r),this._closestTab=_}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(ee,8))},g.\u0275dir=i.lG2({type:g,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:L,useExisting:g}]),i.qOj]}),g})();const ge="mdc-tab-indicator--active",ce="mdc-tab-indicator--no-transition";class Ee{constructor(y){this._items=y}hide(){this._items.forEach(y=>y.deactivateInkBar())}alignToElement(y){const t=this._items.find(_=>_.elementRef.nativeElement===y),r=this._currentItem;if(r?.deactivateInkBar(),t){const _=r?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(_),this._currentItem=t}}}function Ie(g){return class extends g{constructor(...y){super(...y),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(y){const t=(0,l.Ig)(y);this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(y){const t=this.elementRef.nativeElement;if(!y||!t.getBoundingClientRect||!this._inkBarContentElement)return void t.classList.add(ge);const r=t.getBoundingClientRect(),_=y.width/r.width,D=y.left-r.left;t.classList.add(ce),this._inkBarContentElement.style.setProperty("transform",`translateX(${D}px) scaleX(${_})`),t.getBoundingClientRect(),t.classList.remove(ce),t.classList.add(ge),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(ge)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const y=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=y.createElement("span"),this._inkBarContentElement=y.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const x=(0,a.Id)(class{}),o=Ie((()=>{class g extends x{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq))},g.\u0275dir=i.lG2({type:g,features:[i.qOj]}),g})());let m=(()=>{class g extends o{}return g.\u0275fac=function(){let y;return function(r){return(y||(y=i.n5z(g)))(r||g)}}(),g.\u0275dir=i.lG2({type:g,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,r){2&t&&(i.uIk("aria-disabled",!!r.disabled),i.ekj("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[i.qOj]}),g})();const c=(0,a.Id)(class{}),C=new i.OlP("MAT_TAB_GROUP");let d=(()=>{class g extends c{constructor(t,r){super(),this._viewContainerRef=t,this._closestTabGroup=r,this.textLabel="",this._contentPortal=null,this._stateChanges=new Z.x,this.position=null,this.origin=null,this.isActive=!1}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new B.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.s_b),i.Y36(C,8))},g.\u0275dir=i.lG2({type:g,viewQuery:function(t,r){if(1&t&&i.Gf(i.Rgc,7),2&t){let _;i.iGM(_=i.CRH())&&(r._implicitContent=_.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[i.qOj,i.TTD]}),g})(),u=(()=>{class g extends d{get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}}return g.\u0275fac=function(){let y;return function(r){return(y||(y=i.n5z(g)))(r||g)}}(),g.\u0275cmp=i.Xpm({type:g,selectors:[["mat-tab"]],contentQueries:function(t,r,_){if(1&t&&(i.Suo(_,b,7,i.Rgc),i.Suo(_,ue,5)),2&t){let D;i.iGM(D=i.CRH())&&(r._explicitContent=D.first),i.iGM(D=i.CRH())&&(r.templateLabel=D.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[i._Bn([{provide:ee,useExisting:g}]),i.qOj],ngContentSelectors:le,decls:1,vars:0,template:function(t,r){1&t&&(i.F$t(),i.YNc(0,Me,1,0,"ng-template"))},encapsulation:2}),g})();const N=(0,p.i$)({passive:!0});let Oe=(()=>{class g{constructor(t,r,_,D,q,se,me){this._elementRef=t,this._changeDetectorRef=r,this._viewportRuler=_,this._dir=D,this._ngZone=q,this._platform=se,this._animationMode=me,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Z.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Z.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,q.runOutsideAngular(()=>{(0,te.R)(t.nativeElement,"mouseleave").pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(t){this._disablePagination=(0,l.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,l.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,te.R)(this._previousPaginator.nativeElement,"touchstart",N).pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,te.R)(this._nextPaginator.nativeElement,"touchstart",N).pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,H.of)("ltr"),r=this._viewportRuler.change(150),_=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new oe.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Q.q)(1)).subscribe(_),(0,$.T)(t,r,this._items.changes,this._itemsResized()).pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),_()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(D=>{this.indexFocused.emit(D),this._setTabFocus(D)})}_itemsResized(){return"function"!=typeof ResizeObserver?V.E:this._items.changes.pipe((0,z.O)(this._items),(0,F.w)(t=>new w.y(r=>this._ngZone.runOutsideAngular(()=>{const _=new ResizeObserver(D=>r.next(D));return t.forEach(D=>_.observe(D.elementRef.nativeElement)),()=>{_.disconnect()}}))),(0,v.T)(1),(0,M.h)(t=>t.some(r=>r.contentRect.width>0&&r.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!(0,O.Vb)(t))switch(t.keyCode){case O.K5:case O.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const r=this._items?this._items.toArray()[t]:null;return!!r&&!r.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const r=this._tabListContainer.nativeElement;r.scrollLeft="ltr"==this._getLayoutDirection()?0:r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,r="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const r=this._items?this._items.toArray()[t]:null;if(!r)return;const _=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:D,offsetWidth:q}=r.elementRef.nativeElement;let se,me;"ltr"==this._getLayoutDirection()?(se=D,me=se+q):(me=this._tabListInner.nativeElement.offsetWidth-D,se=me-q);const Fe=this.scrollDistance,Pe=this.scrollDistance+_;sePe&&(this.scrollDistance+=me-Pe+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=t?t.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,r){r&&null!=r.button&&0!==r.button||(this._stopInterval(),(0,A.H)(650,100).pipe((0,Y.R)((0,$.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:_,distance:D}=this._scrollHeader(t);(0===D||D>=_)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(S.rL),i.Y36(X.Is,8),i.Y36(i.R0b),i.Y36(p.t4),i.Y36(i.QbO,8))},g.\u0275dir=i.lG2({type:g,inputs:{disablePagination:"disablePagination"}}),g})(),Re=(()=>{class g extends Oe{constructor(t,r,_,D,q,se,me){super(t,r,_,D,q,se,me),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}_itemSelected(t){t.preventDefault()}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(S.rL),i.Y36(X.Is,8),i.Y36(i.R0b),i.Y36(p.t4),i.Y36(i.QbO,8))},g.\u0275dir=i.lG2({type:g,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),g})(),Le=(()=>{class g extends Re{constructor(t,r,_,D,q,se,me){super(t,r,_,D,q,se,me)}ngAfterContentInit(){this._inkBar=new Ee(this._items),super.ngAfterContentInit()}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(S.rL),i.Y36(X.Is,8),i.Y36(i.R0b),i.Y36(p.t4),i.Y36(i.QbO,8))},g.\u0275cmp=i.Xpm({type:g,selectors:[["mat-tab-header"]],contentQueries:function(t,r,_){if(1&t&&i.Suo(_,m,4),2&t){let D;i.iGM(D=i.CRH())&&(r._items=D)}},viewQuery:function(t,r){if(1&t&&(i.Gf(he,7),i.Gf(ke,7),i.Gf(J,7),i.Gf(_e,5),i.Gf(ye,5)),2&t){let _;i.iGM(_=i.CRH())&&(r._tabListContainer=_.first),i.iGM(_=i.CRH())&&(r._tabList=_.first),i.iGM(_=i.CRH())&&(r._tabListInner=_.first),i.iGM(_=i.CRH())&&(r._nextPaginator=_.first),i.iGM(_=i.CRH())&&(r._previousPaginator=_.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,r){2&t&&i.ekj("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:le,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,r){1&t&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return r._handlePaginatorClick("before")})("mousedown",function(D){return r._handlePaginatorPress("before",D)})("touchend",function(){return r._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(D){return r._handleKeydown(D)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return r._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA()()(),i.TgZ(10,"button",9,10),i.NdJ("mousedown",function(D){return r._handlePaginatorPress("after",D)})("click",function(){return r._handlePaginatorClick("after")})("touchend",function(){return r._stopInterval()}),i._UZ(12,"div",2),i.qZA()),2&t&&(i.ekj("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),i.Q6J("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),i.xp6(3),i.ekj("_mat-animation-noopable","NoopAnimations"===r._animationMode),i.xp6(7),i.ekj("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),i.Q6J("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[a.wG,E.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),g})();const Se=new i.OlP("MAT_TABS_CONFIG");let Be=0;const Ne=(0,a.pj)((0,a.Kr)(class{constructor(g){this._elementRef=g}}),"primary");let ze=(()=>{class g extends Ne{constructor(t,r,_,D){super(t),this._changeDetectorRef=r,this._animationMode=D,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ne.w0.EMPTY,this._tabLabelSubscription=ne.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=Be++,this.animationDuration=_&&_.animationDuration?_.animationDuration:"500ms",this.disablePagination=!(!_||null==_.disablePagination)&&_.disablePagination,this.dynamicHeight=!(!_||null==_.dynamicHeight)&&_.dynamicHeight,this.contentTabIndex=_?.contentTabIndex??null,this.preserveContent=!!_?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,l.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,l.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t+"")?t+"ms":t}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=(0,l.su)(t,null)}get disablePagination(){return this._disablePagination}set disablePagination(t){this._disablePagination=(0,l.Ig)(t)}get preserveContent(){return this._preserveContent}set preserveContent(t){this._preserveContent=(0,l.Ig)(t)}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const r=this._elementRef.nativeElement;r.classList.remove(`mat-background-${this.backgroundColor}`),t&&r.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const r=null==this._selectedIndex;if(!r){this.selectedTabChange.emit(this._createChangeEvent(t));const _=this._tabBodyWrapper.nativeElement;_.style.minHeight=_.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((_,D)=>_.isActive=D===t),r||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,_)=>{r.position=_-t,null!=this._selectedIndex&&0==r.position&&!r.origin&&(r.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){const r=this._tabs.toArray();let _;for(let D=0;D{r[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,z.O)(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(r=>r._closestTabGroup===this||!r._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){const r=this._tabHeader;r&&(r.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const r=new Ye;return r.index=t,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[t]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,$.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,r,_){t.disabled||(this.selectedIndex=r.focusIndex=_)}_getTabIndex(t,r){return t.disabled?null:r===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(t,r){t&&"mouse"!==t&&"touch"!==t&&(this._tabHeader.focusIndex=r)}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Se,8),i.Y36(i.QbO,8))},g.\u0275dir=i.lG2({type:g,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),g})(),He=(()=>{class g extends ze{constructor(t,r,_,D){super(t,r,_,D),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!_||null==_.fitInkBarToContent)&&_.fitInkBarToContent}get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=(0,l.Ig)(t),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(t){this._stretchTabs=(0,l.Ig)(t)}}return g.\u0275fac=function(t){return new(t||g)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Se,8),i.Y36(i.QbO,8))},g.\u0275cmp=i.Xpm({type:g,selectors:[["mat-tab-group"]],contentQueries:function(t,r,_){if(1&t&&i.Suo(_,u,5),2&t){let D;i.iGM(D=i.CRH())&&(r._allTabs=D)}},viewQuery:function(t,r){if(1&t&&(i.Gf(U,5),i.Gf(re,5)),2&t){let _;i.iGM(_=i.CRH())&&(r._tabBodyWrapper=_.first),i.iGM(_=i.CRH())&&(r._tabHeader=_.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(t,r){2&t&&i.ekj("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===r.headerPosition)("mat-mdc-tab-group-stretch-tabs",r.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[i._Bn([{provide:C,useExisting:g}]),i.qOj],decls:6,vars:6,consts:[[3,"selectedIndex","disableRipple","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(t,r){1&t&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(D){return r._focusChanged(D)})("selectFocusedIndex",function(D){return r.selectedIndex=D}),i.YNc(2,G,9,17,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,ae,1,11,"mat-tab-body",5),i.qZA()),2&t&&(i.Q6J("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple),i.xp6(2),i.Q6J("ngForOf",r._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===r._animationMode),i.xp6(2),i.Q6J("ngForOf",r._tabs))},dependencies:[e.mk,e.sg,e.O5,B.Pl,a.wG,oe.kH,W,m,Le],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__content{position:relative}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),g})();class Ye{}let Ge=(()=>{class g{}return g.\u0275fac=function(t){return new(t||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[e.ez,a.BQ,B.eL,a.si,E.Q8,oe.rt,a.BQ]}),g})()},266:(Te,de,f)=>{f.d(de,{AV:()=>ye,gM:()=>he});var e=f(2722),i=f(5698),a=f(1281),B=f(9521),E=f(4650),oe=f(6895),X=f(3353),ne=f(2687),Z=f(445),te=f(8184),H=f(5589),$=f(4080),V=f(7579),A=(f(7340),f(3238));const z=["tooltip"],Q=new E.OlP("mat-tooltip-scroll-strategy"),v={provide:Q,deps:[te.aV],useFactory:function F(U){return()=>U.scrollStrategies.reposition({scrollThrottle:20})}},n=new E.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function M(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),S="tooltip-panel",p=(0,X.i$)({passive:!0});let le=(()=>{class U{constructor(h,k,I,G,ae,pe,fe,we,Ce,P,W,s){this._overlay=h,this._elementRef=k,this._scrollDispatcher=I,this._viewContainerRef=G,this._ngZone=ae,this._platform=pe,this._ariaDescriber=fe,this._focusMonitor=we,this._dir=P,this._defaultOptions=W,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new V.x,this._scrollStrategy=Ce,this._document=s,W&&(W.position&&(this.position=W.position),W.positionAtOrigin&&(this.positionAtOrigin=W.positionAtOrigin),W.touchGestures&&(this.touchGestures=W.touchGestures)),P.change.pipe((0,e.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(h){h!==this._position&&(this._position=h,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(h){this._positionAtOrigin=(0,a.Ig)(h),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(h){this._disabled=(0,a.Ig)(h),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(h){this._showDelay=(0,a.su)(h)}get hideDelay(){return this._hideDelay}set hideDelay(h){this._hideDelay=(0,a.su)(h),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(h){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=h?String(h).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(h){this._tooltipClass=h,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,e.R)(this._destroyed)).subscribe(h=>{h?"keyboard"===h&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const h=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([k,I])=>{h.removeEventListener(k,I,p)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(h,this.message,"tooltip"),this._focusMonitor.stopMonitoring(h)}show(h=this.showDelay,k){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const I=this._createOverlay(k);this._detach(),this._portal=this._portal||new $.C5(this._tooltipComponent,this._viewContainerRef);const G=this._tooltipInstance=I.attach(this._portal).instance;G._triggerElement=this._elementRef.nativeElement,G._mouseLeaveHideDelay=this._hideDelay,G.afterHidden().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),G.show(h)}hide(h=this.hideDelay){const k=this._tooltipInstance;k&&(k.isVisible()?k.hide(h):(k._cancelPendingAnimations(),this._detach()))}toggle(h){this._isTooltipVisible()?this.hide():this.show(void 0,h)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(h){if(this._overlayRef){const G=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!h)&&G._origin instanceof E.SBq)return this._overlayRef;this._detach()}const k=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),I=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&h||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(k);return I.positionChanges.pipe((0,e.R)(this._destroyed)).subscribe(G=>{this._updateCurrentPositionClass(G.connectionPair),this._tooltipInstance&&G.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:I,panelClass:`${this._cssClassPrefix}-${S}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,e.R)(this._destroyed)).subscribe(G=>{this._isTooltipVisible()&&G.keyCode===B.hY&&!(0,B.Vb)(G)&&(G.preventDefault(),G.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(h){const k=h.getConfig().positionStrategy,I=this._getOrigin(),G=this._getOverlayPosition();k.withPositions([this._addOffset({...I.main,...G.main}),this._addOffset({...I.fallback,...G.fallback})])}_addOffset(h){return h}_getOrigin(){const h=!this._dir||"ltr"==this._dir.value,k=this.position;let I;"above"==k||"below"==k?I={originX:"center",originY:"above"==k?"top":"bottom"}:"before"==k||"left"==k&&h||"right"==k&&!h?I={originX:"start",originY:"center"}:("after"==k||"right"==k&&h||"left"==k&&!h)&&(I={originX:"end",originY:"center"});const{x:G,y:ae}=this._invertPosition(I.originX,I.originY);return{main:I,fallback:{originX:G,originY:ae}}}_getOverlayPosition(){const h=!this._dir||"ltr"==this._dir.value,k=this.position;let I;"above"==k?I={overlayX:"center",overlayY:"bottom"}:"below"==k?I={overlayX:"center",overlayY:"top"}:"before"==k||"left"==k&&h||"right"==k&&!h?I={overlayX:"end",overlayY:"center"}:("after"==k||"right"==k&&h||"left"==k&&!h)&&(I={overlayX:"start",overlayY:"center"});const{x:G,y:ae}=this._invertPosition(I.overlayX,I.overlayY);return{main:I,fallback:{overlayX:G,overlayY:ae}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,i.q)(1),(0,e.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(h){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=h,this._tooltipInstance._markForCheck())}_invertPosition(h,k){return"above"===this.position||"below"===this.position?"top"===k?k="bottom":"bottom"===k&&(k="top"):"end"===h?h="start":"start"===h&&(h="end"),{x:h,y:k}}_updateCurrentPositionClass(h){const{overlayY:k,originX:I,originY:G}=h;let ae;if(ae="center"===k?this._dir&&"rtl"===this._dir.value?"end"===I?"left":"right":"start"===I?"left":"right":"bottom"===k&&"top"===G?"above":"below",ae!==this._currentPosition){const pe=this._overlayRef;if(pe){const fe=`${this._cssClassPrefix}-${S}-`;pe.removePanelClass(fe+this._currentPosition),pe.addPanelClass(fe+ae)}this._currentPosition=ae}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",h=>{let k;this._setupPointerExitEventsIfNeeded(),void 0!==h.x&&void 0!==h.y&&(k=h),this.show(void 0,k)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",h=>{const k=h.targetTouches?.[0],I=k?{x:k.clientX,y:k.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,I),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const h=[];if(this._platformSupportsMouseEvents())h.push(["mouseleave",k=>{const I=k.relatedTarget;(!I||!this._overlayRef?.overlayElement.contains(I))&&this.hide()}],["wheel",k=>this._wheelListener(k)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const k=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};h.push(["touchend",k],["touchcancel",k])}this._addListeners(h),this._passiveListeners.push(...h)}_addListeners(h){h.forEach(([k,I])=>{this._elementRef.nativeElement.addEventListener(k,I,p)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(h){if(this._isTooltipVisible()){const k=this._document.elementFromPoint(h.clientX,h.clientY),I=this._elementRef.nativeElement;k!==I&&!I.contains(k)&&this.hide()}}_disableNativeGesturesIfNecessary(){const h=this.touchGestures;if("off"!==h){const k=this._elementRef.nativeElement,I=k.style;("on"===h||"INPUT"!==k.nodeName&&"TEXTAREA"!==k.nodeName)&&(I.userSelect=I.msUserSelect=I.webkitUserSelect=I.MozUserSelect="none"),("on"===h||!k.draggable)&&(I.webkitUserDrag="none"),I.touchAction="none",I.webkitTapHighlightColor="transparent"}}}return U.\u0275fac=function(h){E.$Z()},U.\u0275dir=E.lG2({type:U,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),U})(),he=(()=>{class U extends le{constructor(h,k,I,G,ae,pe,fe,we,Ce,P,W,s){super(h,k,I,G,ae,pe,fe,we,Ce,P,W,s),this._tooltipComponent=J,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(h){const I=!this._dir||"ltr"==this._dir.value;return"top"===h.originY?h.offsetY=-8:"bottom"===h.originY?h.offsetY=8:"start"===h.originX?h.offsetX=I?-8:8:"end"===h.originX&&(h.offsetX=I?8:-8),h}}return U.\u0275fac=function(h){return new(h||U)(E.Y36(te.aV),E.Y36(E.SBq),E.Y36(H.mF),E.Y36(E.s_b),E.Y36(E.R0b),E.Y36(X.t4),E.Y36(ne.$s),E.Y36(ne.tE),E.Y36(Q),E.Y36(Z.Is,8),E.Y36(n,8),E.Y36(oe.K0))},U.\u0275dir=E.lG2({type:U,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[E.qOj]}),U})(),ke=(()=>{class U{constructor(h,k){this._changeDetectorRef=h,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new V.x,this._animationsDisabled="NoopAnimations"===k}show(h){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},h)}hide(h){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},h)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:h}){(!h||!this._triggerElement.contains(h))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:h}){(h===this._showAnimation||h===this._hideAnimation)&&this._finalizeAnimation(h===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(h){h?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(h){const k=this._tooltip.nativeElement,I=this._showAnimation,G=this._hideAnimation;if(k.classList.remove(h?G:I),k.classList.add(h?I:G),this._isVisible=h,h&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ae=getComputedStyle(k);("0s"===ae.getPropertyValue("animation-duration")||"none"===ae.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}h&&this._onShow(),this._animationsDisabled&&(k.classList.add("_mat-animation-noopable"),this._finalizeAnimation(h))}}return U.\u0275fac=function(h){return new(h||U)(E.Y36(E.sBO),E.Y36(E.QbO,8))},U.\u0275dir=E.lG2({type:U}),U})(),J=(()=>{class U extends ke{constructor(h,k,I){super(h,I),this._elementRef=k,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const h=this._elementRef.nativeElement.getBoundingClientRect();return h.height>24&&h.width>=200}}return U.\u0275fac=function(h){return new(h||U)(E.Y36(E.sBO),E.Y36(E.SBq),E.Y36(E.QbO,8))},U.\u0275cmp=E.Xpm({type:U,selectors:[["mat-tooltip-component"]],viewQuery:function(h,k){if(1&h&&E.Gf(z,7),2&h){let I;E.iGM(I=E.CRH())&&(k._tooltip=I.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(h,k){1&h&&E.NdJ("mouseleave",function(G){return k._handleMouseLeave(G)}),2&h&&E.Udp("zoom",k.isVisible()?1:null)},features:[E.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(h,k){1&h&&(E.TgZ(0,"div",0,1),E.NdJ("animationend",function(G){return k._handleAnimationEnd(G)}),E.TgZ(2,"div",2),E._uU(3),E.qZA()()),2&h&&(E.ekj("mdc-tooltip--multiline",k._isMultiline),E.Q6J("ngClass",k.tooltipClass),E.xp6(3),E.Oqu(k.message))},dependencies:[oe.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),U})(),ye=(()=>{class U{}return U.\u0275fac=function(h){return new(h||U)},U.\u0275mod=E.oAB({type:U}),U.\u0275inj=E.cJS({providers:[v],imports:[ne.rt,oe.ez,te.U8,A.BQ,A.BQ,H.ZD]}),U})()}}]); \ No newline at end of file diff --git a/dist/oakestra-dashboard/986.2da3f934e838e4fa.js b/dist/oakestra-dashboard/986.2da3f934e838e4fa.js new file mode 100644 index 0000000..f75aa7f --- /dev/null +++ b/dist/oakestra-dashboard/986.2da3f934e838e4fa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkoakestra_dashboard=self.webpackChunkoakestra_dashboard||[]).push([[986],{986:(J,g,r)=>{r.r(g),r.d(g,{LoginModule:()=>A});var d=r(8937),s=r(4006),f=r(6895),e=r(4535),w=r(529),b=r(9653),P=r(493),C=r(6366),u=r(4254),y=r(1324),Z=r(2340),m=r(4934),n=r(4650),O=r(4389),T=r(4865),p=r(4017),h=r(7775);function M(i,l){1&i&&(n.TgZ(0,"nb-form-field"),n._UZ(1,"input",15)(2,"nb-icon",16),n.qZA())}function x(i,l){1&i&&(n.TgZ(0,"div",14),n._uU(1," Please enter the same password again to confirm. "),n.qZA())}const N=[{path:"",component:(()=>{class i{constructor(o,t,a,c,U,v){this.router=o,this.userService=t,this.authService=a,this.notifyService=c,this.api=U,this.fb=v,this.sm_ip=Z.N.apiUrl,this.useOrganization=!1,this.showPassword=!0,this.form=v.group({organization_name:["",[s.kI.required]],username:["",[s.kI.required]],password:["",[s.kI.required]]}),this.form.get("organization_name").disable()}getInputType(){return this.showPassword?"text":"password"}toggleShowPassword(){this.showPassword=!this.showPassword}tabChanged(o){this.useOrganization=o,this.useOrganization?this.form.get("organization_name").enable():this.form.get("organization_name").disable()}submitLogin(){const o=Object.assign({},this.form.value);this.userService.login(o).subscribe({next:()=>{this.router.navigate(["/control"])},error:t=>this.notifyService.notify(m.k.error,t)})}forgotPassword(){const o=this.form.get("username");console.log("SEND MAIL"),o?.valid?this.api.resetPassword(o.value).subscribe(()=>{this.notifyService.notify(m.k.success,"An email with a reset password link was sent")}):this.notifyService.notify(m.k.error,"Please provide a valid username")}}return i.\u0275fac=function(o){return new(o||i)(n.Y36(d.F0),n.Y36(O.K),n.Y36(T.e),n.Y36(p.g),n.Y36(h.s),n.Y36(s.qu))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-login"]],decls:22,vars:7,consts:[[1,"login-form"],["alt","Oakestra Logo","src","../../../../assets/img/color-full.png"],["accept-charset","UTF-8","role","form",3,"formGroup"],[1,"info"],["status","basic",3,"checkedChange"],["nbSuffix","","icon","info","pack","eva",3,"nbTooltip"],[4,"ngIf"],["type","text","fullWidth","","nbInput","","formControlName","username","placeholder","Username"],["nbSuffix","","icon","person-outline","pack","eva"],["placeholder","Password","fullWidth","","formControlName","password","nbInput","",3,"type"],["nbSuffix","","nbButton","","ghost","",3,"click"],["pack","eva",3,"icon"],[1,"pull-right","text-primary","link",3,"click"],[1,"centerButton"],["nbButton","","outline","","status","primary",3,"disabled","click"],["type","text","fullWidth","","nbInput","","formControlName","organization_name","placeholder","Organization"],["nbSuffix","","icon","people","pack","eva"]],template:function(o,t){1&o&&(n.TgZ(0,"nb-layout")(1,"nb-layout-column")(2,"nb-card",0),n._UZ(3,"img",1),n.TgZ(4,"form",2)(5,"div",3)(6,"nb-checkbox",4),n.NdJ("checkedChange",function(c){return t.tabChanged(c)}),n._uU(7,"Organization login"),n.qZA(),n._UZ(8,"nb-icon",5),n.qZA(),n.YNc(9,M,3,0,"nb-form-field",6),n.TgZ(10,"nb-form-field"),n._UZ(11,"input",7)(12,"nb-icon",8),n.qZA(),n.TgZ(13,"nb-form-field"),n._UZ(14,"input",9),n.TgZ(15,"button",10),n.NdJ("click",function(){return t.toggleShowPassword()}),n._UZ(16,"nb-icon",11),n.qZA()(),n.TgZ(17,"span",12),n.NdJ("click",function(){return t.forgotPassword()}),n._uU(18,"Forgot password?"),n.qZA()(),n.TgZ(19,"div",13)(20,"button",14),n.NdJ("click",function(){return t.submitLogin()}),n._uU(21," Sign in "),n.qZA()()()()()),2&o&&(n.xp6(4),n.Q6J("formGroup",t.form),n.xp6(4),n.s9C("nbTooltip",t.sm_ip),n.xp6(1),n.Q6J("ngIf",t.useOrganization),n.xp6(5),n.Q6J("type",t.getInputType()),n.xp6(2),n.Q6J("icon",t.showPassword?"eye-outline":"eye-off-2-outline"),n.uIk("aria-label",t.showPassword?"hide password":"show password"),n.xp6(4),n.Q6J("disabled",t.form.invalid))},dependencies:[f.O5,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,e.Asz,e.DPz,e.Aqw,e.dP_,e.h8i,e.fMN,e.jBG,e.yyc,e.jNv,e.NTf],styles:[".login-form[_ngcontent-%COMP%]{width:80%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;padding:20px} nb-form-field, nb-select[_ngcontent-%COMP%]{padding:10px 0} nb-form-field .nb-form-field-addon, nb-select[_ngcontent-%COMP%] .nb-form-field-addon[_ngcontent-%COMP%]{align-items:center!important} nb-form-field .nb-form-field-addon button, nb-select[_ngcontent-%COMP%] .nb-form-field-addon[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0}.connectingInfo[_ngcontent-%COMP%]{float:right;margin:8px}.signUp[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:8px}.form-group[_ngcontent-%COMP%]{margin-top:8px}.form-control[_ngcontent-%COMP%]{margin-bottom:16px}.loginButton[_ngcontent-%COMP%]{display:flex;justify-content:center}.centerButton[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:8px}.link[_ngcontent-%COMP%]{cursor:pointer;float:right}nb-card-body.example-items-col[_ngcontent-%COMP%]{align-items:stretch}.info[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}@media only screen and (min-width: 801px){.login-form[_ngcontent-%COMP%]{width:40%}}@media only screen and (min-width: 1201px){.login-form[_ngcontent-%COMP%]{width:35%}}hr[_ngcontent-%COMP%]{border-top:1px solid #fff}"]}),i})(),pathMatch:"full"},{path:"resetPassword/:resetPasswordToken",component:(()=>{class i{constructor(o,t,a,c){this.router=o,this.activatedRoute=t,this.api=a,this.notifyService=c,this.form=new s.cw({newPass:new s.NI("",s.kI.required),confirmPass:new s.NI("",s.kI.required)}),this.resetPasswordToken=""}ngOnInit(){this.activatedRoute.params.subscribe(o=>{const t=o.resetPasswordToken;t?this.resetPasswordToken=t:this.router.navigate(["/"])})}get samePasswords(){var o,t;return(null===(o=this.form.get("newPass"))||void 0===o?void 0:o.value)===(null===(t=this.form.get("confirmPass"))||void 0===t?void 0:t.value)}submitNewPassword(){var o;const t=null===(o=this.form.get("newPass"))||void 0===o?void 0:o.value;this.api.saveResetPassword(this.resetPasswordToken,t).subscribe(()=>{this.notifyService.notify(m.k.success,"New password saved!"),this.router.navigate(["/"])},a=>console.log(a))}}return i.\u0275fac=function(o){return new(o||i)(n.Y36(d.F0),n.Y36(d.gz),n.Y36(h.s),n.Y36(p.g))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-reset-password"]],decls:27,vars:3,consts:[[1,"resetForm"],["accept-charset","UTF-8",3,"formGroup"],[1,"form-group"],["for","newPassword",1,"cols-sm-2","control-label"],[1,"cols-sm-10"],[1,"input-group"],[1,"input-group-addon"],["aria-hidden","true",1,"fa","fa-lock","fa-lg"],["formControlName","newPass","id","newPassword","placeholder","New password","type","password",1,"form-control"],["for","confirmNewPassword",1,"cols-sm-2","control-label"],["formControlName","confirmPass","id","confirmNewPassword","placeholder","Confirm password","type","password",1,"form-control"],["class","alert alert-danger",4,"ngIf"],[1,"saveButton"],["nbButton","","outline","","status","primary","type","button",3,"disabled","click"],[1,"alert","alert-danger"]],template:function(o,t){1&o&&(n.TgZ(0,"nb-layout")(1,"nb-layout-column",0)(2,"nb-card")(3,"nb-card-header"),n._uU(4," Change Password "),n.qZA(),n.TgZ(5,"nb-card-body")(6,"form",1)(7,"div",2)(8,"label",3),n._uU(9,"New Password"),n.qZA(),n.TgZ(10,"div",4)(11,"div",5)(12,"span",6),n._UZ(13,"i",7),n.qZA(),n._UZ(14,"input",8),n.qZA()()(),n.TgZ(15,"div",2)(16,"label",9),n._uU(17,"Confirm new password"),n.qZA(),n.TgZ(18,"div",4)(19,"div",5)(20,"span",6),n._UZ(21,"i",7),n.qZA(),n._UZ(22,"input",10),n.qZA(),n.YNc(23,x,2,0,"div",11),n.qZA()(),n.TgZ(24,"div",12)(25,"button",13),n.NdJ("click",function(){return t.submitNewPassword()}),n._uU(26," Save new password "),n.qZA()()()()()()()),2&o&&(n.xp6(6),n.Q6J("formGroup",t.form),n.xp6(17),n.Q6J("ngIf",t.form.get("confirmPass").touched&&!t.samePasswords),n.xp6(2),n.Q6J("disabled",!t.form.valid||!t.samePasswords))},dependencies:[f.O5,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,e.Asz,e.yKW,e.ndF,e.DPz,e.Aqw,e.dP_],styles:[".resetForm[_ngcontent-%COMP%]{text-align:-webkit-center}.resetForm[_ngcontent-%COMP%] nb-card[_ngcontent-%COMP%]{margin-top:10vh;width:40%;text-align:initial}input[_ngcontent-%COMP%]{margin-top:5px}label[_ngcontent-%COMP%]{margin-top:15px}fieldset[_ngcontent-%COMP%]{margin:0;border:none}.saveButton[_ngcontent-%COMP%]{width:100%;text-align:center;margin-top:30px}@media only screen and (max-width: 801px){.resetForm[_ngcontent-%COMP%]{width:40%}}"]}),i})()}];let A=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[f.ez,d.Bz.forChild(N),s.u5,s.UX,w.JF,b.Aw.forFeature(u.gG,u.I6),P.sQ.forFeature([y.Uy]),e.zyh,e.T2N,e.j7H.forRoot(),e.j5J,e.BW0,e.P1,C.O,e.COg,e.nKr,e.KdK,e.V7y,e.rgH,e.MfT,e.SDF.forRoot({name:"dark"}),d.Bz]}),i})()}}]); \ No newline at end of file diff --git a/dist/oakestra-dashboard/986.8b21ce1a346ffced.js b/dist/oakestra-dashboard/986.8b21ce1a346ffced.js deleted file mode 100644 index fde13cc..0000000 --- a/dist/oakestra-dashboard/986.8b21ce1a346ffced.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkoakestra_dashboard=self.webpackChunkoakestra_dashboard||[]).push([[986],{986:(F,u,e)=>{e.r(u),e.d(u,{LoginModule:()=>z});var l=e(6582),s=e(4006),m=e(3546),p=e(4859),h=e(7392),f=e(6895),v=e(266),c=e(9549),w=e(4144),b=e(7274),T=e(3848),O=e(455),U=e(4385),P=e(6709),M=e(2340),g=e(4934),t=e(4650),x=e(4389),A=e(4865),C=e(4017),Z=e(7775);function N(a,r){1&a&&(t.TgZ(0,"mat-form-field")(1,"mat-label"),t._uU(2,"Organization"),t.qZA(),t._UZ(3,"input",13),t.TgZ(4,"mat-icon",8),t._uU(5,"people"),t.qZA()())}function L(a,r){1&a&&(t.TgZ(0,"div",14),t._uU(1," Please enter the same password again to confirm. "),t.qZA())}const J=[{path:"",component:(()=>{class a{constructor(o,n,i,d,I,y){this.router=o,this.userService=n,this.authService=i,this.notifyService=d,this.api=I,this.fb=y,this.sm_ip=M.N.apiUrl,this.useOrganization=!1,this.form=y.group({organization_name:["",[s.kI.required]],username:["",[s.kI.required]],password:["",[s.kI.required]]}),this.form.get("organization_name").disable()}tabChanged(o){this.useOrganization=o.checked,this.useOrganization?this.form.get("organization_name").enable():this.form.get("organization_name").disable()}submitLogin(){const o=Object.assign({},this.form.value);this.userService.login(o).subscribe({next:()=>{this.router.navigate(["/control"])},error:n=>this.notifyService.notify(g.k.error,n)})}forgotPassword(){const o=this.form.get("username");o?.valid?this.api.resetPassword(o.value).subscribe(()=>{this.notifyService.notify(g.k.success,"An email with a reset password link was sent")}):this.notifyService.notify(g.k.error,"Please provide a valid username")}}return a.\u0275fac=function(o){return new(o||a)(t.Y36(l.F0),t.Y36(x.K),t.Y36(A.e),t.Y36(C.g),t.Y36(Z.s),t.Y36(s.qu))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-login"]],decls:29,vars:4,consts:[["xmlns","http://www.w3.org/1999/html","xmlns","http://www.w3.org/1999/html",1,"login-form"],["alt","Oakestra Logo","mat-card-image","","src","../../../../assets/img/color-full.png"],["accept-charset","UTF-8","role","form",3,"formGroup"],[1,"info"],[3,"change"],[3,"matTooltip"],[4,"ngIf"],["matInput","","formControlName","username","placeholder","Username"],["matPrefix",""],["matInput","","type","password","formControlName","password","placeholder","Password",3,"keyup.enter"],[1,"pull-right","text-primary","link",3,"click"],[1,"centerButton"],["color","primary","mat-flat-button","",3,"disabled","click"],["matInput","","formControlName","organization_name","placeholder","Organization"]],template:function(o,n){1&o&&(t.TgZ(0,"mat-card",0),t._UZ(1,"img",1),t.TgZ(2,"mat-card-content")(3,"form",2)(4,"div",3)(5,"p")(6,"mat-checkbox",4),t.NdJ("change",function(d){return n.tabChanged(d)}),t.qZA(),t._uU(7,"Organization login"),t.qZA(),t.TgZ(8,"mat-icon",5),t._uU(9,"info"),t.qZA()(),t.YNc(10,N,6,0,"mat-form-field",6),t.TgZ(11,"mat-form-field")(12,"mat-label"),t._uU(13,"Username"),t.qZA(),t._UZ(14,"input",7),t.TgZ(15,"mat-icon",8),t._uU(16,"person"),t.qZA()(),t.TgZ(17,"mat-form-field")(18,"mat-label"),t._uU(19,"Password"),t.qZA(),t.TgZ(20,"input",9),t.NdJ("keyup.enter",function(){return n.submitLogin()}),t.qZA(),t.TgZ(21,"mat-icon",8),t._uU(22,"password"),t.qZA()(),t.TgZ(23,"span",10),t.NdJ("click",function(){return n.forgotPassword()}),t._uU(24,"Forgot password?"),t.qZA()(),t._UZ(25,"hr"),t.TgZ(26,"div",11)(27,"button",12),t.NdJ("click",function(){return n.submitLogin()}),t._uU(28,"Sign in"),t.qZA()()()()),2&o&&(t.xp6(3),t.Q6J("formGroup",n.form),t.xp6(5),t.s9C("matTooltip",n.sm_ip),t.xp6(2),t.Q6J("ngIf",n.useOrganization),t.xp6(17),t.Q6J("disabled",n.form.invalid))},dependencies:[s._Y,s.Fj,s.JJ,s.JL,m.a8,m.dn,m.G2,p.lW,h.Hw,s.sg,s.u,f.O5,v.gM,c.KE,c.hX,c.qo,w.Nt,P.oG],styles:[".login-form[_ngcontent-%COMP%]{width:80%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto}.connectingInfo[_ngcontent-%COMP%]{float:right;margin:8px}.signUp[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:8px}.form-group[_ngcontent-%COMP%]{margin-top:8px}.form-control[_ngcontent-%COMP%]{margin-bottom:16px}.loginButton[_ngcontent-%COMP%]{display:flex;justify-content:center}.centerButton[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:8px}.link[_ngcontent-%COMP%]{cursor:pointer;float:right}.info[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}@media only screen and (min-width: 801px){.login-form[_ngcontent-%COMP%]{width:60%}}@media only screen and (min-width: 1201px){.login-form[_ngcontent-%COMP%]{width:35%}}.mat-mdc-tab-group[_ngcontent-%COMP%]{display:contents;flex-direction:column;max-width:100%}.mat-mdc-tab-body-content[_ngcontent-%COMP%]{height:100%;overflow:hidden}.mat-mdc-tab-body.mat-mdc-tab-body-active[_ngcontent-%COMP%]{overflow:hidden!important}hr[_ngcontent-%COMP%]{border-top:1px solid #fff}"]}),a})(),pathMatch:"full"},{path:"resetPassword/:resetPasswordToken",component:(()=>{class a{constructor(o,n,i,d){this.router=o,this.activatedRoute=n,this.api=i,this.notifyService=d,this.form=new s.cw({newPass:new s.NI("",s.kI.required),confirmPass:new s.NI("",s.kI.required)}),this.resetPasswordToken=""}ngOnInit(){this.activatedRoute.params.subscribe(o=>{const n=o.resetPasswordToken;n?this.resetPasswordToken=n:this.router.navigate(["/"])})}get samePasswords(){var o,n;return(null===(o=this.form.get("newPass"))||void 0===o?void 0:o.value)===(null===(n=this.form.get("confirmPass"))||void 0===n?void 0:n.value)}submitNewPassword(){var o;const n=null===(o=this.form.get("newPass"))||void 0===o?void 0:o.value;this.api.saveResetPassword(this.resetPasswordToken,n).subscribe(()=>{this.notifyService.notify(g.k.success,"New password saved!"),this.router.navigate(["/"])},i=>console.log(i))}}return a.\u0275fac=function(o){return new(o||a)(t.Y36(l.F0),t.Y36(l.gz),t.Y36(Z.s),t.Y36(C.g))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-reset-password"]],decls:25,vars:3,consts:[[1,"resetForm"],["accept-charset","UTF-8",3,"formGroup"],[1,"form-group"],["for","newPassword",1,"cols-sm-2","control-label"],[1,"cols-sm-10"],[1,"input-group"],[1,"input-group-addon"],["aria-hidden","true",1,"fa","fa-lock","fa-lg"],["formControlName","newPass","id","newPassword","placeholder","New password","type","password",1,"form-control"],["for","confirmNewPassword",1,"cols-sm-2","control-label"],["formControlName","confirmPass","id","confirmNewPassword","placeholder","Confirm password","type","password",1,"form-control"],["class","alert alert-danger",4,"ngIf"],[1,"saveButton"],["mat-button","","mat-flat-button","","type","button",3,"disabled","click"],[1,"alert","alert-danger"]],template:function(o,n){1&o&&(t.TgZ(0,"mat-card",0)(1,"mat-card-title"),t._uU(2,"Change Password"),t.qZA(),t.TgZ(3,"mat-card-content")(4,"form",1)(5,"div",2)(6,"label",3),t._uU(7,"New Password"),t.qZA(),t.TgZ(8,"div",4)(9,"div",5)(10,"span",6),t._UZ(11,"i",7),t.qZA(),t._UZ(12,"input",8),t.qZA()()(),t.TgZ(13,"div",2)(14,"label",9),t._uU(15,"Confirm new password"),t.qZA(),t.TgZ(16,"div",4)(17,"div",5)(18,"span",6),t._UZ(19,"i",7),t.qZA(),t._UZ(20,"input",10),t.qZA(),t.YNc(21,L,2,0,"div",11),t.qZA()(),t.TgZ(22,"div",12)(23,"button",13),t.NdJ("click",function(){return n.submitNewPassword()}),t._uU(24," Save new password "),t.qZA()()()()()),2&o&&(t.xp6(4),t.Q6J("formGroup",n.form),t.xp6(17),t.Q6J("ngIf",n.form.get("confirmPass").touched&&!n.samePasswords),t.xp6(2),t.Q6J("disabled",!n.form.valid||!n.samePasswords))},dependencies:[s._Y,s.Fj,s.JJ,s.JL,m.a8,m.dn,m.n5,p.lW,s.sg,s.u,f.O5],styles:[".resetForm[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;width:25%;margin-left:-12.5%;margin-top:-40vh}input[_ngcontent-%COMP%]{margin-top:5px}label[_ngcontent-%COMP%]{margin-top:15px}fieldset[_ngcontent-%COMP%]{margin:0;border:none}.saveButton[_ngcontent-%COMP%]{width:100%;text-align:center;margin-top:30px}@media only screen and (max-width: 801px){.resetForm[_ngcontent-%COMP%]{width:40%}}@media only screen and (min-width: 1201px){.resetForm[_ngcontent-%COMP%]{width:35%}}"]}),a})()}];let z=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[l.Bz.forChild(J),s.u5,m.QW,p.ot,h.Ps,s.UX,f.ez,v.AV,c.lN,w.c,b.Is,T.Nh,O.rP,U.LD,P.p9,l.Bz]}),a})()}}]); \ No newline at end of file diff --git a/dist/oakestra-dashboard/Urbanist-Regular.829539ea6039e183.ttf b/dist/oakestra-dashboard/Urbanist-Regular.829539ea6039e183.ttf new file mode 100644 index 0000000..71b6d6e Binary files /dev/null and b/dist/oakestra-dashboard/Urbanist-Regular.829539ea6039e183.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Black.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Black.ttf new file mode 100644 index 0000000..8be97e5 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Black.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-BlackItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-BlackItalic.ttf new file mode 100644 index 0000000..0c70d54 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-BlackItalic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Bold.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Bold.ttf new file mode 100644 index 0000000..35ea39e Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Bold.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-BoldItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-BoldItalic.ttf new file mode 100644 index 0000000..d9a0e89 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-BoldItalic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraBold.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraBold.ttf new file mode 100644 index 0000000..25e3b73 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraBold.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraBoldItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraBoldItalic.ttf new file mode 100644 index 0000000..93441f8 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraBoldItalic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraLight.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraLight.ttf new file mode 100644 index 0000000..272e831 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraLight.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraLightItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraLightItalic.ttf new file mode 100644 index 0000000..0d676fb Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ExtraLightItalic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Italic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Italic.ttf new file mode 100644 index 0000000..21f6b9a Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Italic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Light.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Light.ttf new file mode 100644 index 0000000..b8b4343 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Light.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-LightItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-LightItalic.ttf new file mode 100644 index 0000000..cb66f64 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-LightItalic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Medium.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Medium.ttf new file mode 100644 index 0000000..f5a2a0a Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Medium.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-MediumItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-MediumItalic.ttf new file mode 100644 index 0000000..ba29f20 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-MediumItalic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Regular.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Regular.ttf new file mode 100644 index 0000000..71b6d6e Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Regular.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-SemiBold.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-SemiBold.ttf new file mode 100644 index 0000000..dbb10d4 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-SemiBold.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-SemiBoldItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-SemiBoldItalic.ttf new file mode 100644 index 0000000..56de989 Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-SemiBoldItalic.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Thin.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Thin.ttf new file mode 100644 index 0000000..2b62bba Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-Thin.ttf differ diff --git a/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ThinItalic.ttf b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ThinItalic.ttf new file mode 100644 index 0000000..abadead Binary files /dev/null and b/dist/oakestra-dashboard/assets/fonts/ttf/Urbanist-ThinItalic.ttf differ diff --git a/dist/oakestra-dashboard/index.html b/dist/oakestra-dashboard/index.html index a090171..3bdf019 100644 --- a/dist/oakestra-dashboard/index.html +++ b/dist/oakestra-dashboard/index.html @@ -1,29 +1,26 @@ - + Dashboard - - - + - - + - + + - - + \ No newline at end of file diff --git a/dist/oakestra-dashboard/leaflet.routing.icons.338a66223c3ac2d6.png b/dist/oakestra-dashboard/leaflet.routing.icons.338a66223c3ac2d6.png deleted file mode 100644 index ec8b843..0000000 Binary files a/dist/oakestra-dashboard/leaflet.routing.icons.338a66223c3ac2d6.png and /dev/null differ diff --git a/dist/oakestra-dashboard/main.a9d1c6f281b8ad72.js b/dist/oakestra-dashboard/main.a9d1c6f281b8ad72.js new file mode 100644 index 0000000..babaf87 --- /dev/null +++ b/dist/oakestra-dashboard/main.a9d1c6f281b8ad72.js @@ -0,0 +1 @@ +(self.webpackChunkoakestra_dashboard=self.webpackChunkoakestra_dashboard||[]).push([[179],{266:(et,pe,S)=>{"use strict";S.d(pe,{P:()=>le});var o=S(7579),A=S(4707),F=S(3099),b=S(4086),X=S(8372),B=S(4650);let le=(()=>{class ie{constructor(){this.layoutSize$=new o.x,this.layoutSizeChange$=this.layoutSize$.pipe(function ne(ie,de,De){let Te,Se=!1;return ie&&"object"==typeof ie?({bufferSize:Te=1/0,windowTime:de=1/0,refCount:Se=!1,scheduler:De}=ie):Te=ie??1/0,(0,F.B)({connector:()=>new A.t(Te,de,De),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Se})}({refCount:!0}))}changeLayoutSize(){this.layoutSize$.next("")}onChangeLayoutSize(){return this.layoutSizeChange$.pipe((0,b.g)(1))}onSafeChangeLayoutSize(){return this.layoutSizeChange$.pipe((0,X.b)(350))}}return ie.\u0275fac=function(De){return new(De||ie)},ie.\u0275prov=B.Yz7({token:ie,factory:ie.\u0275fac}),ie})()},7842:(et,pe,S)=>{"use strict";S.d(pe,{G:()=>de});var o=S(2722),A=S(4004),F=S(9300),ne=S(7579),b=S(4650),X=S(4535),B=S(4389),le=S(266),ie=S(4865);let de=(()=>{class De{constructor(Se,Ie,Re,tt,_e,ye,Ve){this.sidebarService=Se,this.menuService=Ie,this.themeService=Re,this.userService=tt,this.layoutService=_e,this.breakpointService=ye,this.authService=Ve,this.destroy$=new ne.x,this.userPictureOnly=!1,this.userMenu=[{title:"Profile",icon:"person",link:"/control/profile"},{title:"Log out",icon:"log-out"}]}ngOnInit(){this.userService.currentUser$.pipe((0,o.R)(this.destroy$)).subscribe(Ie=>this.user=Ie);const{xl:Se}=this.breakpointService.getBreakpointsMap();this.themeService.onMediaQueryChange().pipe((0,A.U)(([,Ie])=>Ie.widththis.userPictureOnly=Ie),this.menuService.onItemClick().pipe((0,F.h)(({tag:Ie})=>"userMenu"===Ie),(0,A.U)(({item:{title:Ie}})=>Ie)).subscribe(Ie=>{"Log out"===Ie&&(this.authService.clear(),this.userService.logout())})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}toggleSidebar(){return this.sidebarService.toggle(!0,"menu-sidebar"),this.layoutService.changeLayoutSize(),!1}navigateHome(){return this.menuService.navigateHome(),!1}}return De.\u0275fac=function(Se){return new(Se||De)(b.Y36(X.lzT),b.Y36(X.kkI),b.Y36(X.WMF),b.Y36(B.K),b.Y36(le.P),b.Y36(X._4W),b.Y36(ie.e))},De.\u0275cmp=b.Xpm({type:De,selectors:[["ngx-header"]],decls:12,vars:2,consts:[[1,"header-container"],[1,"logo-container"],["href","#",1,"sidebar-toggle",3,"click"],["icon","menu-2-outline"],["href","#",1,"logo",3,"click"],["src","assets/img/color-min.png"],["size","small"],[1,"user-action"],["nbContextMenuTag","userMenu","showInitials","",3,"nbContextMenu","name"]],template:function(Se,Ie){1&Se&&(b.TgZ(0,"div",0)(1,"div",1)(2,"a",2),b.NdJ("click",function(){return Ie.toggleSidebar()}),b._UZ(3,"nb-icon",3),b.qZA(),b.TgZ(4,"a",4),b.NdJ("click",function(){return Ie.navigateHome()}),b._UZ(5,"img",5),b.TgZ(6,"span"),b._uU(7,"Oakestra"),b.qZA()()()(),b.TgZ(8,"div",0)(9,"nb-actions",6)(10,"nb-action",7),b._UZ(11,"nb-user",8),b.qZA()()()),2&Se&&(b.xp6(11),b.Q6J("nbContextMenu",Ie.userMenu)("name",null==Ie.user?null:Ie.user.name))},dependencies:[X.k0$,X.Bk3,X.lYD,X.SrF,X.fMN],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;width:100%}[_nghost-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:calc(var(--sidebar-width) - var(--header-padding))}[_nghost-%COMP%] .logo-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px}[_nghost-%COMP%] nb-action[_ngcontent-%COMP%]{height:auto;display:flex;align-content:center}[_nghost-%COMP%] nb-user[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] nb-search button{padding:0!important}[_nghost-%COMP%] .header-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:auto}[_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{text-decoration:none;color:var(--text-hint-color)}[dir=ltr] [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-right:1.25rem}[dir=rtl] [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-left:1.25rem}[_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.75rem}[_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 1.25rem;font-size:1.75rem;white-space:nowrap;text-decoration:none}[dir=ltr] [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-left:1px solid var(--divider-color)}[dir=rtl] [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-right:1px solid var(--divider-color)}@media (max-width: 767.98px){[_nghost-%COMP%] .control-item[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .user-action[_ngcontent-%COMP%]{border:none;padding:0}}@media (max-width: 575.98px){[_nghost-%COMP%] nb-select[_ngcontent-%COMP%]{display:none}}"]}),De})()},6405:(et,pe,S)=>{"use strict";S.d(pe,{s:()=>X});var o=S(4650),A=S(4535),F=S(7842);const ne=[[["nb-menu"]],[["router-outlet"]]],b=["nb-menu","router-outlet"];let X=(()=>{class B{}return B.\u0275fac=function(ie){return new(ie||B)},B.\u0275cmp=o.Xpm({type:B,selectors:[["ngx-one-column-layout"]],ngContentSelectors:b,decls:7,vars:0,consts:[["windowMode",""],["fixed",""],["tag","menu-sidebar","responsive","",1,"menu-sidebar"]],template:function(ie,de){1&ie&&(o.F$t(ne),o.TgZ(0,"nb-layout",0)(1,"nb-layout-header",1),o._UZ(2,"ngx-header"),o.qZA(),o.TgZ(3,"nb-sidebar",2),o.Hsn(4),o.qZA(),o.TgZ(5,"nb-layout-column"),o.Hsn(6,1),o.qZA()())},dependencies:[A.Aqw,A.dP_,A.dmS,A.nZR,F.G],styles:["[_nghost-%COMP%] .menu-sidebar[_ngcontent-%COMP%] .scrollable{padding-top:var(--layout-padding-top)}"]}),B})()},6366:(et,pe,S)=>{"use strict";S.d(pe,{O:()=>Dt});var o=S(6895),A=S(4535),F=S(8405),ne=S(3856),X=(S(7842),S(4650));S(93),S(6405);const he=A.t04.variables,je={name:"default",base:"default",variables:{temperature:{arcFill:[he.primary,he.primary,he.primary,he.primary,he.primary],arcEmpty:he.bg2,thumbBg:he.bg2,thumbBorder:he.primary},solar:{gradientLeft:he.primary,gradientRight:he.primary,shadowColor:"rgba(0, 0, 0, 0)",secondSeriesFill:he.bg2,radius:["80%","90%"]},traffic:{tooltipBg:he.bg,tooltipBorderColor:he.border2,tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;",tooltipTextColor:he.fgText,tooltipFontWeight:"normal",yAxisSplitLine:he.separator,lineBg:he.border4,lineShadowBlur:"1",itemColor:he.border4,itemBorderColor:he.border4,itemEmphasisBorderColor:he.primary,shadowLineDarkBg:"rgba(0, 0, 0, 0)",shadowLineShadow:"rgba(0, 0, 0, 0)",gradFrom:he.bg2,gradTo:he.bg2},electricity:{tooltipBg:he.bg,tooltipLineColor:he.fgText,tooltipLineWidth:"0",tooltipBorderColor:he.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:he.fgText,tooltipFontWeight:"normal",axisLineColor:he.border3,xAxisTextColor:he.fg,yAxisSplitLine:he.separator,itemBorderColor:he.primary,lineStyle:"solid",lineWidth:"4",lineGradFrom:he.primary,lineGradTo:he.primary,lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:he.bg2,areaGradTo:he.bg2,shadowLineDarkBg:"rgba(0, 0, 0, 0)"},bubbleMap:{titleColor:he.fgText,areaColor:he.bg4,areaHoverColor:he.fgHighlight,areaBorderColor:he.border5},profitBarAnimationEchart:{textColor:he.fgText,firstAnimationBarColor:he.primary,secondAnimationBarColor:he.success,splitLineStyleOpacity:"1",splitLineStyleWidth:"1",splitLineStyleColor:he.separator,tooltipTextColor:he.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:he.bg,tooltipBorderColor:he.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"},trafficBarEchart:{gradientFrom:he.warningLight,gradientTo:he.warning,shadow:he.warningLight,shadowBlur:"0",axisTextColor:he.fgText,axisFontSize:"12",tooltipBg:he.bg,tooltipBorderColor:he.border2,tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;",tooltipTextColor:he.fgText,tooltipFontWeight:"normal"},countryOrders:{countryBorderColor:he.border4,countryFillColor:he.bg3,countryBorderWidth:"1",hoveredCountryBorderColor:he.primary,hoveredCountryFillColor:he.primaryLight,hoveredCountryBorderWidth:"1",chartAxisLineColor:he.border4,chartAxisTextColor:he.fg,chartAxisFontSize:"16",chartGradientTo:he.primary,chartGradientFrom:he.primaryLight,chartAxisSplitLine:he.separator,chartShadowLineColor:he.primaryLight,chartLineBottomShadowColor:he.primary,chartInnerLineColor:he.bg2},echarts:{bg:he.bg,textColor:he.fgText,axisLineColor:he.fgText,splitLineColor:he.separator,itemHoverShadowColor:"rgba(0, 0, 0, 0.5)",tooltipBackgroundColor:he.primary,areaOpacity:"0.7"},chartjs:{axisLineColor:he.separator,textColor:he.fgText},orders:{tooltipBg:he.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"0",tooltipBorderColor:he.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:he.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:he.border4,axisFontSize:"16",axisTextColor:he.fg,yAxisSplitLine:he.separator,itemBorderColor:he.primary,lineStyle:"solid",lineWidth:"4",firstAreaGradFrom:he.bg3,firstAreaGradTo:he.bg3,firstShadowLineDarkBg:"rgba(0, 0, 0, 0)",secondLineGradFrom:he.primary,secondLineGradTo:he.primary,secondAreaGradFrom:"rgba(51, 102, 255, 0.2)",secondAreaGradTo:"rgba(51, 102, 255, 0)",secondShadowLineDarkBg:"rgba(0, 0, 0, 0)",thirdLineGradFrom:he.success,thirdLineGradTo:he.successLight,thirdAreaGradFrom:"rgba(0, 214, 143, 0.2)",thirdAreaGradTo:"rgba(0, 214, 143, 0)",thirdShadowLineDarkBg:"rgba(0, 0, 0, 0)"},profit:{bg:he.bg,textColor:he.fgText,axisLineColor:he.border4,splitLineColor:he.separator,areaOpacity:"1",axisFontSize:"16",axisTextColor:he.fg,firstLineGradFrom:he.bg3,firstLineGradTo:he.bg3,firstLineShadow:"rgba(0, 0, 0, 0)",secondLineGradFrom:he.primary,secondLineGradTo:he.primary,secondLineShadow:"rgba(0, 0, 0, 0)",thirdLineGradFrom:he.success,thirdLineGradTo:he.successLight,thirdLineShadow:"rgba(0, 0, 0, 0)"},orderProfitLegend:{firstItem:he.success,secondItem:he.primary,thirdItem:he.bg3},visitors:{tooltipBg:he.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"1",tooltipBorderColor:he.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:he.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:he.border4,axisFontSize:"16",axisTextColor:he.fg,yAxisSplitLine:he.separator,itemBorderColor:he.primary,lineStyle:"dotted",lineWidth:"6",lineGradFrom:"#ffffff",lineGradTo:"#ffffff",lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:he.primary,areaGradTo:he.primaryLight,innerLineStyle:"solid",innerLineWidth:"1",innerAreaGradFrom:he.success,innerAreaGradTo:he.success},visitorsLegend:{firstIcon:he.success,secondIcon:he.primary},visitorsPie:{firstPieGradientLeft:he.success,firstPieGradientRight:he.success,firstPieShadowColor:"rgba(0, 0, 0, 0)",firstPieRadius:["70%","90%"],secondPieGradientLeft:he.warning,secondPieGradientRight:he.warningLight,secondPieShadowColor:"rgba(0, 0, 0, 0)",secondPieRadius:["60%","97%"],shadowOffsetX:"0",shadowOffsetY:"0"},visitorsPieLegend:{firstSection:he.warning,secondSection:he.success},earningPie:{radius:["65%","100%"],center:["50%","50%"],fontSize:"22",firstPieGradientLeft:he.success,firstPieGradientRight:he.success,firstPieShadowColor:"rgba(0, 0, 0, 0)",secondPieGradientLeft:he.primary,secondPieGradientRight:he.primary,secondPieShadowColor:"rgba(0, 0, 0, 0)",thirdPieGradientLeft:he.warning,thirdPieGradientRight:he.warning,thirdPieShadowColor:"rgba(0, 0, 0, 0)"},earningLine:{gradFrom:he.primary,gradTo:he.primary,tooltipTextColor:he.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:he.bg,tooltipBorderColor:he.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"}}},$e=A.H6J.variables,Et={name:"cosmic",base:"cosmic",variables:{temperature:{arcFill:["#2ec7fe","#31ffad","#7bff24","#fff024","#f7bd59"],arcEmpty:$e.bg2,thumbBg:"#ffffff",thumbBorder:"#ffffff"},solar:{gradientLeft:$e.primary,gradientRight:$e.primary,shadowColor:"rgba(0, 0, 0, 0)",secondSeriesFill:$e.bg2,radius:["70%","90%"]},traffic:{tooltipBg:$e.bg,tooltipBorderColor:$e.border2,tooltipExtraCss:"box-shadow: 0px 2px 46px 0 rgba(50, 50, 89); border-radius: 10px; padding: 4px 16px;",tooltipTextColor:$e.fgText,tooltipFontWeight:"normal",yAxisSplitLine:$e.separator,lineBg:$e.border2,lineShadowBlur:"14",itemColor:$e.border2,itemBorderColor:$e.border2,itemEmphasisBorderColor:$e.primary,shadowLineDarkBg:$e.border3,shadowLineShadow:$e.border3,gradFrom:$e.bg,gradTo:$e.bg2},electricity:{tooltipBg:$e.bg,tooltipLineColor:$e.fgText,tooltipLineWidth:"0",tooltipBorderColor:$e.border2,tooltipExtraCss:"box-shadow: 0px 2px 46px 0 rgba(0, 255, 170, 0.35); border-radius: 10px; padding: 8px 24px;",tooltipTextColor:$e.fgText,tooltipFontWeight:"normal",axisLineColor:$e.border3,xAxisTextColor:$e.fg,yAxisSplitLine:$e.separator,itemBorderColor:$e.border2,lineStyle:"dotted",lineWidth:"6",lineGradFrom:$e.success,lineGradTo:$e.warning,lineShadow:$e.bg4,areaGradFrom:$e.bg2,areaGradTo:$e.bg3,shadowLineDarkBg:$e.bg3},bubbleMap:{titleColor:$e.fgText,areaColor:$e.bg4,areaHoverColor:$e.fgHighlight,areaBorderColor:$e.border5},profitBarAnimationEchart:{textColor:$e.fgText,firstAnimationBarColor:$e.primary,secondAnimationBarColor:$e.success,splitLineStyleOpacity:"1",splitLineStyleWidth:"1",splitLineStyleColor:$e.border2,tooltipTextColor:$e.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:$e.bg,tooltipBorderColor:$e.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"},trafficBarEchart:{gradientFrom:$e.warningLight,gradientTo:$e.warning,shadow:$e.warningLight,shadowBlur:"5",axisTextColor:$e.fgText,axisFontSize:"12",tooltipBg:$e.bg,tooltipBorderColor:$e.border2,tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;",tooltipTextColor:$e.fgText,tooltipFontWeight:"normal"},countryOrders:{countryBorderColor:$e.border4,countryFillColor:$e.bg3,countryBorderWidth:"1",hoveredCountryBorderColor:$e.primary,hoveredCountryFillColor:$e.primaryLight,hoveredCountryBorderWidth:"1",chartAxisLineColor:$e.border4,chartAxisTextColor:$e.fg,chartAxisFontSize:"16",chartGradientTo:$e.primary,chartGradientFrom:$e.primaryLight,chartAxisSplitLine:$e.separator,chartShadowLineColor:$e.primaryLight,chartLineBottomShadowColor:$e.primary,chartInnerLineColor:$e.bg2},echarts:{bg:$e.bg,textColor:$e.fgText,axisLineColor:$e.fgText,splitLineColor:$e.separator,itemHoverShadowColor:"rgba(0, 0, 0, 0.5)",tooltipBackgroundColor:$e.primary,areaOpacity:"1"},chartjs:{axisLineColor:$e.separator,textColor:$e.fgText},orders:{tooltipBg:$e.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"0",tooltipBorderColor:$e.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:$e.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:$e.border4,axisFontSize:"16",axisTextColor:$e.fg,yAxisSplitLine:$e.separator,itemBorderColor:$e.primary,lineStyle:"solid",lineWidth:"4",firstAreaGradFrom:$e.bg2,firstAreaGradTo:$e.bg2,firstShadowLineDarkBg:$e.bg2,secondLineGradFrom:$e.primary,secondLineGradTo:$e.primary,secondAreaGradFrom:"rgba(161, 110, 255, 0.8)",secondAreaGradTo:"rgba(161, 110, 255, 0.5)",secondShadowLineDarkBg:$e.primary,thirdLineGradFrom:$e.success,thirdLineGradTo:$e.successLight,thirdAreaGradFrom:"rgba(0, 214, 143, 0.7)",thirdAreaGradTo:"rgba(0, 214, 143, 0.4)",thirdShadowLineDarkBg:$e.success},profit:{bg:$e.bg,textColor:$e.fgText,axisLineColor:$e.border4,splitLineColor:$e.separator,areaOpacity:"1",axisFontSize:"16",axisTextColor:$e.fg,firstLineGradFrom:$e.bg2,firstLineGradTo:$e.bg2,firstLineShadow:"rgba(0, 0, 0, 0)",secondLineGradFrom:$e.primary,secondLineGradTo:$e.primary,secondLineShadow:"rgba(0, 0, 0, 0)",thirdLineGradFrom:$e.success,thirdLineGradTo:$e.successLight,thirdLineShadow:"rgba(0, 0, 0, 0)"},orderProfitLegend:{firstItem:$e.success,secondItem:$e.primary,thirdItem:$e.bg2},visitors:{tooltipBg:$e.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"1",tooltipBorderColor:$e.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:$e.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:$e.border4,axisFontSize:"16",axisTextColor:$e.fg,yAxisSplitLine:$e.separator,itemBorderColor:$e.primary,lineStyle:"dotted",lineWidth:"6",lineGradFrom:"#ffffff",lineGradTo:"#ffffff",lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:$e.primary,areaGradTo:$e.primaryLight,innerLineStyle:"solid",innerLineWidth:"1",innerAreaGradFrom:$e.success,innerAreaGradTo:$e.success},visitorsLegend:{firstIcon:$e.success,secondIcon:$e.primary},visitorsPie:{firstPieGradientLeft:$e.success,firstPieGradientRight:$e.successLight,firstPieShadowColor:"rgba(0, 0, 0, 0)",firstPieRadius:["70%","90%"],secondPieGradientLeft:$e.warning,secondPieGradientRight:$e.warningLight,secondPieShadowColor:"rgba(0, 0, 0, 0)",secondPieRadius:["60%","95%"],shadowOffsetX:"0",shadowOffsetY:"3"},visitorsPieLegend:{firstSection:$e.warning,secondSection:$e.success},earningPie:{radius:["65%","100%"],center:["50%","50%"],fontSize:"22",firstPieGradientLeft:$e.success,firstPieGradientRight:$e.success,firstPieShadowColor:"rgba(0, 0, 0, 0)",secondPieGradientLeft:$e.primary,secondPieGradientRight:$e.primary,secondPieShadowColor:"rgba(0, 0, 0, 0)",thirdPieGradientLeft:$e.warning,thirdPieGradientRight:$e.warning,thirdPieShadowColor:"rgba(0, 0, 0, 0)"},earningLine:{gradFrom:$e.primary,gradTo:$e.primary,tooltipTextColor:$e.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:$e.bg,tooltipBorderColor:$e.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"}}},Ye=A.GC5.variables,rn={name:"corporate",base:"corporate",variables:{temperature:{arcFill:["#ffa36b","#ffa36b","#ff9e7a","#ff9888","#ff8ea0"],arcEmpty:Ye.bg2,thumbBg:Ye.bg2,thumbBorder:"#ffa36b"},solar:{gradientLeft:Ye.primary,gradientRight:Ye.primary,shadowColor:"rgba(0, 0, 0, 0)",secondSeriesFill:Ye.bg2,radius:["80%","90%"]},traffic:{tooltipBg:Ye.bg,tooltipBorderColor:Ye.border2,tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;",tooltipTextColor:Ye.fgText,tooltipFontWeight:"normal",yAxisSplitLine:"rgba(0, 0, 0, 0)",lineBg:Ye.primary,lineShadowBlur:"0",itemColor:Ye.border4,itemBorderColor:Ye.border4,itemEmphasisBorderColor:Ye.primaryLight,shadowLineDarkBg:"rgba(0, 0, 0, 0)",shadowLineShadow:"rgba(0, 0, 0, 0)",gradFrom:Ye.bg,gradTo:Ye.bg},electricity:{tooltipBg:Ye.bg,tooltipLineColor:Ye.fgText,tooltipLineWidth:"0",tooltipBorderColor:Ye.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:Ye.fgText,tooltipFontWeight:"normal",axisLineColor:Ye.border3,xAxisTextColor:Ye.fg,yAxisSplitLine:Ye.separator,itemBorderColor:Ye.primary,lineStyle:"solid",lineWidth:"4",lineGradFrom:Ye.primary,lineGradTo:Ye.primary,lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:"rgba(0, 0, 0, 0)",areaGradTo:"rgba(0, 0, 0, 0)",shadowLineDarkBg:"rgba(0, 0, 0, 0)"},bubbleMap:{titleColor:Ye.fgText,areaColor:Ye.bg4,areaHoverColor:Ye.fgHighlight,areaBorderColor:Ye.border5},profitBarAnimationEchart:{textColor:Ye.fgText,firstAnimationBarColor:Ye.primary,secondAnimationBarColor:Ye.success,splitLineStyleOpacity:"1",splitLineStyleWidth:"1",splitLineStyleColor:Ye.separator,tooltipTextColor:Ye.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:Ye.bg,tooltipBorderColor:Ye.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"},trafficBarEchart:{gradientFrom:Ye.warningLight,gradientTo:Ye.warning,shadow:Ye.warningLight,shadowBlur:"0",axisTextColor:Ye.fgText,axisFontSize:"12",tooltipBg:Ye.bg,tooltipBorderColor:Ye.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:Ye.fgText,tooltipFontWeight:"normal"},countryOrders:{countryBorderColor:Ye.border4,countryFillColor:Ye.bg4,countryBorderWidth:"1",hoveredCountryBorderColor:Ye.primary,hoveredCountryFillColor:Ye.primaryLight,hoveredCountryBorderWidth:"1",chartAxisLineColor:Ye.border4,chartAxisTextColor:Ye.fg,chartAxisFontSize:"16",chartGradientTo:Ye.primary,chartGradientFrom:Ye.primaryLight,chartAxisSplitLine:Ye.separator,chartShadowLineColor:Ye.primaryLight,chartLineBottomShadowColor:Ye.primary,chartInnerLineColor:Ye.bg2},echarts:{bg:Ye.bg,textColor:Ye.fgText,axisLineColor:Ye.fgText,splitLineColor:Ye.separator,itemHoverShadowColor:"rgba(0, 0, 0, 0.5)",tooltipBackgroundColor:Ye.primary,areaOpacity:"0.7"},chartjs:{axisLineColor:Ye.separator,textColor:Ye.fgText},orders:{tooltipBg:Ye.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"0",tooltipBorderColor:Ye.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:Ye.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:Ye.border4,axisFontSize:"16",axisTextColor:Ye.fg,yAxisSplitLine:Ye.separator,itemBorderColor:Ye.primary,lineStyle:"solid",lineWidth:"4",firstAreaGradFrom:Ye.bg3,firstAreaGradTo:Ye.bg3,firstShadowLineDarkBg:"rgba(0, 0, 0, 0)",secondLineGradFrom:Ye.primary,secondLineGradTo:Ye.primary,secondAreaGradFrom:"rgba(0, 0, 0, 0)",secondAreaGradTo:"rgba(0, 0, 0, 0)",secondShadowLineDarkBg:"rgba(0, 0, 0, 0)",thirdLineGradFrom:Ye.success,thirdLineGradTo:Ye.successLight,thirdAreaGradFrom:"rgba(0, 0, 0, 0)",thirdAreaGradTo:"rgba(0, 0, 0, 0)",thirdShadowLineDarkBg:"rgba(0, 0, 0, 0)"},profit:{bg:Ye.bg,textColor:Ye.fgText,axisLineColor:Ye.border4,splitLineColor:Ye.separator,areaOpacity:"1",axisFontSize:"16",axisTextColor:Ye.fg,firstLineGradFrom:Ye.bg3,firstLineGradTo:Ye.bg3,firstLineShadow:"rgba(0, 0, 0, 0)",secondLineGradFrom:Ye.primary,secondLineGradTo:Ye.primary,secondLineShadow:"rgba(0, 0, 0, 0)",thirdLineGradFrom:Ye.success,thirdLineGradTo:Ye.success,thirdLineShadow:"rgba(0, 0, 0, 0)"},orderProfitLegend:{firstItem:Ye.success,secondItem:Ye.primary,thirdItem:Ye.bg3},visitors:{tooltipBg:Ye.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"1",tooltipBorderColor:Ye.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:Ye.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:Ye.border4,axisFontSize:"16",axisTextColor:Ye.fg,yAxisSplitLine:Ye.separator,itemBorderColor:Ye.primary,lineStyle:"dotted",lineWidth:"6",lineGradFrom:"#ffffff",lineGradTo:"#ffffff",lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:Ye.primary,areaGradTo:Ye.primaryLight,innerLineStyle:"solid",innerLineWidth:"1",innerAreaGradFrom:Ye.success,innerAreaGradTo:Ye.success},visitorsLegend:{firstIcon:Ye.success,secondIcon:Ye.primary},visitorsPie:{firstPieGradientLeft:Ye.success,firstPieGradientRight:Ye.success,firstPieShadowColor:"rgba(0, 0, 0, 0)",firstPieRadius:["65%","90%"],secondPieGradientLeft:Ye.warning,secondPieGradientRight:Ye.warningLight,secondPieShadowColor:"rgba(0, 0, 0, 0)",secondPieRadius:["63%","92%"],shadowOffsetX:"-4",shadowOffsetY:"-4"},visitorsPieLegend:{firstSection:Ye.warning,secondSection:Ye.success},earningPie:{radius:["65%","100%"],center:["50%","50%"],fontSize:"22",firstPieGradientLeft:Ye.success,firstPieGradientRight:Ye.success,firstPieShadowColor:"rgba(0, 0, 0, 0)",secondPieGradientLeft:Ye.primary,secondPieGradientRight:Ye.primary,secondPieShadowColor:"rgba(0, 0, 0, 0)",thirdPieGradientLeft:Ye.warning,thirdPieGradientRight:Ye.warning,thirdPieShadowColor:"rgba(0, 0, 0, 0)"},earningLine:{gradFrom:Ye.primary,gradTo:Ye.primary,tooltipTextColor:Ye.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:Ye.bg,tooltipBorderColor:Ye.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"}}},it=A.$Jd.variables,gn={name:"dark",base:"dark",variables:{temperature:{arcFill:[it.primary,it.primary,it.primary,it.primary,it.primary],arcEmpty:it.bg2,thumbBg:it.bg2,thumbBorder:it.primary},solar:{gradientLeft:it.primary,gradientRight:it.primary,shadowColor:"rgba(0, 0, 0, 0)",secondSeriesFill:it.bg2,radius:["80%","90%"]},traffic:{tooltipBg:it.bg,tooltipBorderColor:it.border2,tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;",tooltipTextColor:it.fgText,tooltipFontWeight:"normal",yAxisSplitLine:it.separator,lineBg:it.border4,lineShadowBlur:"1",itemColor:it.border4,itemBorderColor:it.border4,itemEmphasisBorderColor:it.primary,shadowLineDarkBg:"rgba(0, 0, 0, 0)",shadowLineShadow:"rgba(0, 0, 0, 0)",gradFrom:it.bg2,gradTo:it.bg2},electricity:{tooltipBg:it.bg,tooltipLineColor:it.fgText,tooltipLineWidth:"0",tooltipBorderColor:it.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:it.fgText,tooltipFontWeight:"normal",axisLineColor:it.border3,xAxisTextColor:it.fg,yAxisSplitLine:it.separator,itemBorderColor:it.primary,lineStyle:"solid",lineWidth:"4",lineGradFrom:it.primary,lineGradTo:it.primary,lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:it.bg2,areaGradTo:it.bg2,shadowLineDarkBg:"rgba(0, 0, 0, 0)"},bubbleMap:{titleColor:it.fgText,areaColor:it.bg4,areaHoverColor:it.fgHighlight,areaBorderColor:it.border5},profitBarAnimationEchart:{textColor:it.fgText,firstAnimationBarColor:it.primary,secondAnimationBarColor:it.success,splitLineStyleOpacity:"1",splitLineStyleWidth:"1",splitLineStyleColor:it.separator,tooltipTextColor:it.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:it.bg,tooltipBorderColor:it.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"},trafficBarEchart:{gradientFrom:it.warningLight,gradientTo:it.warning,shadow:it.warningLight,shadowBlur:"0",axisTextColor:it.fgText,axisFontSize:"12",tooltipBg:it.bg,tooltipBorderColor:it.border2,tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;",tooltipTextColor:it.fgText,tooltipFontWeight:"normal"},countryOrders:{countryBorderColor:it.border4,countryFillColor:it.bg3,countryBorderWidth:"1",hoveredCountryBorderColor:it.primary,hoveredCountryFillColor:it.primaryLight,hoveredCountryBorderWidth:"1",chartAxisLineColor:it.border4,chartAxisTextColor:it.fg,chartAxisFontSize:"16",chartGradientTo:it.primary,chartGradientFrom:it.primaryLight,chartAxisSplitLine:it.separator,chartShadowLineColor:it.primaryLight,chartLineBottomShadowColor:it.primary,chartInnerLineColor:it.bg2},echarts:{bg:it.bg,textColor:it.fgText,axisLineColor:it.fgText,splitLineColor:it.separator,itemHoverShadowColor:"rgba(0, 0, 0, 0.5)",tooltipBackgroundColor:it.primary,areaOpacity:"0.7"},chartjs:{axisLineColor:it.separator,textColor:it.fgText},orders:{tooltipBg:it.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"0",tooltipBorderColor:it.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:it.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:it.border4,axisFontSize:"16",axisTextColor:it.fg,yAxisSplitLine:it.separator,itemBorderColor:it.primary,lineStyle:"solid",lineWidth:"4",firstAreaGradFrom:it.bg3,firstAreaGradTo:it.bg3,firstShadowLineDarkBg:"rgba(0, 0, 0, 0)",secondLineGradFrom:it.primary,secondLineGradTo:it.primary,secondAreaGradFrom:"rgba(51, 102, 255, 0.2)",secondAreaGradTo:"rgba(51, 102, 255, 0)",secondShadowLineDarkBg:"rgba(0, 0, 0, 0)",thirdLineGradFrom:it.success,thirdLineGradTo:it.successLight,thirdAreaGradFrom:"rgba(0, 214, 143, 0.2)",thirdAreaGradTo:"rgba(0, 214, 143, 0)",thirdShadowLineDarkBg:"rgba(0, 0, 0, 0)"},profit:{bg:it.bg,textColor:it.fgText,axisLineColor:it.border4,splitLineColor:it.separator,areaOpacity:"1",axisFontSize:"16",axisTextColor:it.fg,firstLineGradFrom:it.bg3,firstLineGradTo:it.bg3,firstLineShadow:"rgba(0, 0, 0, 0)",secondLineGradFrom:it.primary,secondLineGradTo:it.primary,secondLineShadow:"rgba(0, 0, 0, 0)",thirdLineGradFrom:it.success,thirdLineGradTo:it.successLight,thirdLineShadow:"rgba(0, 0, 0, 0)"},orderProfitLegend:{firstItem:it.success,secondItem:it.primary,thirdItem:it.bg3},visitors:{tooltipBg:it.bg,tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"0",tooltipBorderColor:it.border2,tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:it.fgText,tooltipFontWeight:"normal",tooltipFontSize:"20",axisLineColor:it.border4,axisFontSize:"16",axisTextColor:it.fg,yAxisSplitLine:it.separator,itemBorderColor:it.primary,lineStyle:"dotted",lineWidth:"6",lineGradFrom:"#ffffff",lineGradTo:"#ffffff",lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:it.primary,areaGradTo:it.primaryLight,innerLineStyle:"solid",innerLineWidth:"1",innerAreaGradFrom:it.success,innerAreaGradTo:it.success},visitorsLegend:{firstIcon:it.success,secondIcon:it.primary},visitorsPie:{firstPieGradientLeft:it.success,firstPieGradientRight:it.success,firstPieShadowColor:"rgba(0, 0, 0, 0)",firstPieRadius:["70%","90%"],secondPieGradientLeft:it.warning,secondPieGradientRight:it.warningLight,secondPieShadowColor:"rgba(0, 0, 0, 0)",secondPieRadius:["60%","97%"],shadowOffsetX:"0",shadowOffsetY:"0"},visitorsPieLegend:{firstSection:it.warning,secondSection:it.success},earningPie:{radius:["65%","100%"],center:["50%","50%"],fontSize:"22",firstPieGradientLeft:it.success,firstPieGradientRight:it.success,firstPieShadowColor:"rgba(0, 0, 0, 0)",secondPieGradientLeft:it.primary,secondPieGradientRight:it.primary,secondPieShadowColor:"rgba(0, 0, 0, 0)",thirdPieGradientLeft:it.warning,thirdPieGradientRight:it.warning,thirdPieShadowColor:"rgba(0, 0, 0, 0)"},earningLine:{gradFrom:it.primary,gradTo:it.primary,tooltipTextColor:it.fgText,tooltipFontWeight:"normal",tooltipFontSize:"16",tooltipBg:it.bg,tooltipBorderColor:it.border2,tooltipBorderWidth:"1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;"}}},bo=[A.BW0,A.j5J,A.AE1,A.MAY,A.EbI,A.P1,A.HKp,ne.KQ,A.T2N,A.IIj,A.KdK,F.$];let Dt=(()=>{class lt{static forRoot(){return{ngModule:lt,providers:[...A.SDF.forRoot({name:"default"},[je,Et,rn,gn]).providers]}}}return lt.\u0275fac=function(Je){return new(Je||lt)},lt.\u0275mod=X.oAB({type:lt}),lt.\u0275inj=X.cJS({imports:[o.ez,bo,o.ez]}),lt})()},5122:(et,pe,S)=>{"use strict";S.d(pe,{u:()=>o});var o=(()=>{return(A=o||(o={})).ADMIN="Admin",A.ORGANIZATION_ADMIN="Organization_Admin",A.APP_Provider="Application_Provider",A.INF_Provider="Infrastructure_Provider",o;var A})()},4934:(et,pe,S)=>{"use strict";S.d(pe,{k:()=>o});var o=(()=>{return(A=o||(o={}))[A.error=0]="error",A[A.information=1]="information",A[A.success=2]="success",o;var A})()},9267:(et,pe,S)=>{"use strict";S.d(pe,{c:()=>o});var o=(()=>{return(A=o||(o={})).NONE="None",A.CUSTOM="Custom",A.OAKESTRA="Oakestra",o;var A})()},7445:(et,pe,S)=>{"use strict";S.d(pe,{Cq:()=>tt,DV:()=>ie,PO:()=>de,Pg:()=>De,U2:()=>A,WY:()=>le,ZA:()=>Se,cS:()=>B,do:()=>Re,du:()=>F,fB:()=>Te,hx:()=>b,jT:()=>ne,wG:()=>_e,wo:()=>Ie,wx:()=>X});var o=S(9653);const A=(0,o.PH)("[Service] getServices",(0,o.Ky)()),F=(0,o.PH)("[Service] getServicesSuccess",(0,o.Ky)()),ne=(0,o.PH)("[Service] getServicesError",(0,o.Ky)()),b=(0,o.PH)("[Service] getSingleService",(0,o.Ky)()),X=(0,o.PH)("[Service] getSingleServiceSuccess",(0,o.Ky)()),B=(0,o.PH)("[Service] getSingleServiceError",(0,o.Ky)()),le=(0,o.PH)("[Service] postService",(0,o.Ky)()),ie=(0,o.PH)("[Service] postServiceSuccess",(0,o.Ky)()),de=(0,o.PH)("[Service] postServiceError",(0,o.Ky)()),De=(0,o.PH)("[Service] updateService",(0,o.Ky)()),Te=(0,o.PH)("[Service] updateServiceSuccess",(0,o.Ky)()),Se=(0,o.PH)("[Service] updateServiceError",(0,o.Ky)()),Ie=(0,o.PH)("[Service] deleteService",(0,o.Ky)()),Re=(0,o.PH)("[Service] deleteServiceSuccess",(0,o.Ky)()),tt=(0,o.PH)("[Service] deleteServiceError",(0,o.Ky)()),_e=(0,o.PH)("[Service] resetService")},1324:(et,pe,S)=>{"use strict";S.d(pe,{ZD:()=>nt,hv:()=>Ae,Uy:()=>ln,tT:()=>gt,xO:()=>bt,m5:()=>o,rw:()=>$e,Mz:()=>Q,wo:()=>Xe.wo,h8:()=>Se,Y8:()=>tt,i6:()=>Ne,Xu:()=>Tn,U2:()=>Xe.U2,hx:()=>Xe.hx,PR:()=>ne,s0:()=>bo,Ey:()=>xn,EF:()=>Xe.WY,l1:()=>B,iC:()=>lt,t_:()=>Ct,wG:()=>Xe.wG,zb:()=>Ve,zl:()=>Dt,I2:()=>me,li:()=>rn,FV:()=>to,fB:()=>Xe.fB,Nq:()=>de});var o={};S.r(o),S.d(o,{l:()=>Jt});var A=S(4254),F=S(9653);const ne=(0,F.PH)("[User] getUser",(0,F.Ky)()),b=(0,F.PH)("[User] getUserSuccess",(0,F.Ky)()),X=(0,F.PH)("[User] getUserError",(0,F.Ky)()),B=(0,F.PH)("[User] postUser",(0,F.Ky)()),le=(0,F.PH)("[User] postUserSuccess",(0,F.Ky)()),ie=(0,F.PH)("[User] postUserError",(0,F.Ky)()),de=(0,F.PH)("[User] updateUser",(0,F.Ky)()),De=(0,F.PH)("[User] updateUserSuccess",(0,F.Ky)()),Te=(0,F.PH)("[User] updateUserError",(0,F.Ky)()),Se=(0,F.PH)("[User] deleteUser",(0,F.Ky)()),Ie=(0,F.PH)("[User] deleteUserSuccess",(0,F.Ky)()),Re=(0,F.PH)("[User] deleteUserError",(0,F.Ky)()),tt=(0,F.PH)("[User] getAllUser",(0,F.Ky)()),_e=(0,F.PH)("[User] getAllUserSuccess",(0,F.Ky)()),ye=(0,F.PH)("[User] getAllUserError",(0,F.Ky)()),Ve=(0,F.PH)("[User] resetUser"),qe={currentUser:null,users:[],loading:!1,error:{}},Oe=(0,F.Lq)(qe,(0,F.on)(ne,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(b,(Ue,St)=>{const jt=St.currentUser;return Object.assign(Object.assign({},Ue),{currentUser:jt,loading:!1})}),(0,F.on)(X,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(B,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(le,(Ue,St)=>{const jt=[...Ue.users,St.user];return Object.assign(Object.assign({},Ue),{users:jt,loading:!1})}),(0,F.on)(ie,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(de,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(De,(Ue,St)=>{const jt=Ue.users.filter(co=>co._id.$oid!==St.user._id.$oid);jt.push(St.user);let un=Ue.currentUser;return Ue.currentUser._id.$oid===St.user._id.$oid&&(un=St.user),Object.assign(Object.assign({},Ue),{users:jt,currentUser:un,loading:!1})}),(0,F.on)(Te,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(Se,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(Ie,(Ue,St)=>{const jt=Ue.users.filter(bn=>bn!==St.user);return Object.assign(Object.assign({},Ue),{users:jt,loading:!1})}),(0,F.on)(Re,(Ue,St)=>{const bn=St.error;return Object.assign(Object.assign({},Ue),{user:{},loading:!1,error:bn})}),(0,F.on)(tt,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(_e,(Ue,St)=>{const jt=St.users;return Object.assign(Object.assign({},Ue),{users:jt,loading:!1})}),(0,F.on)(ye,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(Ve,()=>Object.assign({},qe))),Ne=(0,F.PH)("[Application] getApplication",(0,F.Ky)()),he=(0,F.PH)("[Application] getApplicationSuccess",(0,F.Ky)()),je=(0,F.PH)("[Application] getApplicationError",(0,F.Ky)()),$e=(0,F.PH)("[Application] deleteApplication",(0,F.Ky)()),Et=(0,F.PH)("[Application] deleteApplicationSuccess",(0,F.Ky)()),Ye=(0,F.PH)("[Application] deleteApplicationError",(0,F.Ky)()),rn=(0,F.PH)("[Application] updateApplication",(0,F.Ky)()),it=(0,F.PH)("[Application] updateApplicationSuccess",(0,F.Ky)()),gn=(0,F.PH)("[Application] updateApplicationError",(0,F.Ky)()),bo=(0,F.PH)("[Application] postApplication",(0,F.Ky)()),wo=(0,F.PH)("[Application] postApplicationSuccess",(0,F.Ky)()),Gt=(0,F.PH)("[Application] postApplicationError",(0,F.Ky)()),Dt=(0,F.PH)("[Application] setCurrentApplication",(0,F.Ky)()),lt=(0,F.PH)("[Application] resetApplication"),Je={currentApplication:null,applications:[],loading:!1,error:{}},Yt=(0,F.Lq)(Je,(0,F.on)(Ne,Ue=>Object.assign(Object.assign({},Ue),{applications:[],loading:!0})),(0,F.on)(he,(Ue,St)=>{const jt=St.applications;return Object.assign(Object.assign({},Ue),{applications:jt,loading:!1})}),(0,F.on)(je,(Ue,St)=>{const bn=St.error;return Object.assign(Object.assign({},Ue),{applications:[],loading:!1,error:bn})}),(0,F.on)($e,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(Et,(Ue,St)=>{const jt=Ue.applications.filter(bn=>bn._id.$oid!==St.application._id.$oid);return Object.assign(Object.assign({},Ue),{applications:jt,loading:!1})}),(0,F.on)(Ye,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(rn,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(it,(Ue,St)=>{const jt=Ue.applications.filter(bn=>bn._id.$oid!==St.application._id.$oid);return jt.push(St.application),Object.assign(Object.assign({},Ue),{applications:jt,loading:!1})}),(0,F.on)(gn,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(bo,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(wo,(Ue,St)=>{console.log(St.application);const jt=[...Ue.applications,St.application];return Object.assign(Object.assign({},Ue),{applications:jt,loading:!1})}),(0,F.on)(Gt,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(Dt,(Ue,St)=>{const jt=St.application;return Object.assign(Object.assign({},Ue),{currentApplication:jt})}),(0,F.on)(lt,()=>Object.assign({},Je))),Tn=(0,F.PH)("[Organization] getOrganization"),Lt=(0,F.PH)("[Organizations getOrganizationSuccess",(0,F.Ky)()),In=(0,F.PH)("[Organizations getOrganizationError",(0,F.Ky)()),Q=(0,F.PH)("[Organization] deleteOrganization",(0,F.Ky)()),Yn=(0,F.PH)("[Organization] deleteOrganizationSuccess",(0,F.Ky)()),Jn=(0,F.PH)("[Organization] deleteOrganizationError",(0,F.Ky)()),to=(0,F.PH)("[Organization] updateOrganization",(0,F.Ky)()),jn=(0,F.PH)("[Organization] updateOrganizationSuccess",(0,F.Ky)()),lo=(0,F.PH)("[Organization] updateOrganizationError",(0,F.Ky)()),xn=(0,F.PH)("[Organization] postOrganization",(0,F.Ky)()),Nn=(0,F.PH)("[Organization] postOrganizationSuccess",(0,F.Ky)()),Zn=(0,F.PH)("[Organization] postOrganizationError",(0,F.Ky)()),Ct=(0,F.PH)("[Organization] resetOrganization"),st={organizations:[],loading:!1,error:{}},we=(0,F.Lq)(st,(0,F.on)(Tn,Ue=>Object.assign(Object.assign({},Ue),{organizations:[],loading:!0})),(0,F.on)(Lt,(Ue,St)=>{const jt=St.organizations;return console.log(St.organizations),Object.assign(Object.assign({},Ue),{organizations:jt,loading:!1})}),(0,F.on)(In,(Ue,St)=>{const bn=St.error;return Object.assign(Object.assign({},Ue),{organizations:[],loading:!1,error:bn})}),(0,F.on)(Q,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(Yn,(Ue,St)=>{const jt=Ue.organizations.filter(bn=>bn._id.$oid!==St.organization._id.$oid);return Object.assign(Object.assign({},Ue),{organizations:jt,loading:!1})}),(0,F.on)(Jn,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(to,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(jn,(Ue,St)=>{const jt=Ue.organizations.filter(bn=>bn._id.$oid!==St.organization._id.$oid);return jt.push(St.organization),Object.assign(Object.assign({},Ue),{organizations:jt,loading:!1})}),(0,F.on)(lo,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(xn,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(Nn,(Ue,St)=>{const jt=Object.assign({_id:{$oid:St.id}},St.organization),un=[...Ue.organizations,jt];return Object.assign(Object.assign({},Ue),{organizations:un,loading:!1})}),(0,F.on)(Zn,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(Ct,()=>Object.assign({},st))),vt=(0,F.PH)("[Settings] getSettings"),rt=(0,F.PH)("[Settings] getSettingsSuccess",(0,F.Ky)()),ct=(0,F.PH)("[Settings] getSettingsError",(0,F.Ky)()),me=(0,F.PH)("[Settings] setSettings",(0,F.Ky)()),ft=(0,F.PH)("[Settings] setSettingsSuccess",(0,F.Ky)()),mt=(0,F.PH)("[Settings] setSettingsError",(0,F.Ky)());var _t=S(9267);const Ze=(0,F.Lq)({settings:{type:_t.c.NONE},loading:!1,error:{}},(0,F.on)(vt,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(rt,(Ue,St)=>{const jt=St.settings;return Object.assign(Object.assign({},Ue),{settings:jt,loading:!1})}),(0,F.on)(ct,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})}),(0,F.on)(me,Ue=>Object.assign(Object.assign({},Ue),{loading:!0})),(0,F.on)(ft,(Ue,St)=>{const jt=St.settings;return Object.assign(Object.assign({},Ue),{settings:jt,loading:!1})}),(0,F.on)(mt,(Ue,St)=>{const un=St.error;return Object.assign(Object.assign({},Ue),{loading:!1,error:un})})),Jt={services:A.Oi,user:Oe,applications:Yt,organizations:we,settings:Ze};S(5125),S(4362),S(7206),S(9118),S(1406);var ce=S(493),V=S(3900),G=S(4004),L=S(262),z=S(5577),oe=S(8505),ke=S(9646),Xe=S(7445),Xt=S(4934),an=S(4650),En=S(7775),Cn=S(4017),_n=S(8937);let ln=(()=>{class Ue{constructor(jt,un,bn,co){this.actions$=jt,this.apiService=un,this.notifyService=bn,this.router=co,this.getServicesOfApp$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Xe.U2),(0,V.w)(({appId:ir})=>this.apiService.getServicesOfApplication(ir).pipe((0,G.U)(dr=>Xe.du({services:dr})),(0,L.K)(dr=>(0,ke.of)(Xe.jT({error:dr.message}))))))),this.getSingleService$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Xe.hx),(0,V.w)(({serviceId:ir})=>this.apiService.getServiceByID(ir).pipe((0,G.U)(dr=>Xe.wx({service:dr})),(0,L.K)(dr=>(0,ke.of)(Xe.cS({error:dr.message}))))))),this.postServices$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Xe.WY),(0,z.z)(({service:ir})=>this.apiService.addService(ir).pipe((0,G.U)(dr=>Xe.DV({service:ir,serviceId:dr})),(0,oe.b)(()=>this.router.navigate(["/control/services"])),(0,L.K)(dr=>(this.notifyService.notify(Xt.k.error,"File was not in the correct format"),(0,ke.of)(Xe.PO({error:dr.message})))))))),this.deleteServices$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Xe.wo),(0,V.w)(({service:ir})=>this.apiService.deleteService(ir).pipe((0,G.U)(()=>Xe.do({service:ir})),(0,L.K)(dr=>(0,ke.of)(Xe.Cq({error:dr.message}))))))),this.updateServices$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Xe.Pg),(0,V.w)(({service:ir})=>this.apiService.updateService(ir,ir._id.$oid).pipe((0,G.U)(dr=>Xe.fB({service:dr})),(0,L.K)(dr=>(0,ke.of)(Xe.ZA({error:dr.message})))))))}}return Ue.\u0275fac=function(jt){return new(jt||Ue)(an.LFG(ce.eX),an.LFG(En.s),an.LFG(Cn.g),an.LFG(_n.F0))},Ue.\u0275prov=an.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),bt=(()=>{class Ue{constructor(jt,un){this.actions$=jt,this.apiService=un,this.getUser$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(ne),(0,V.w)(({name:bn})=>this.apiService.getUserByName(bn).pipe((0,G.U)(co=>b({currentUser:co})),(0,L.K)(co=>(0,ke.of)(X({error:co.message}))))))),this.postUser$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(B),(0,V.w)(({user:bn})=>this.apiService.registerUser(bn).pipe((0,G.U)(co=>le({user:co})),(0,L.K)(co=>(0,ke.of)(ie({error:co.message}))))))),this.updateUser$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(de),(0,V.w)(({user:bn})=>this.apiService.updateUser(bn).pipe((0,G.U)(()=>De({user:bn})),(0,L.K)(co=>(0,ke.of)(Te({error:co.message}))))))),this.deleteUser$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Se),(0,V.w)(({user:bn})=>this.apiService.deleteUser(bn).pipe((0,G.U)(()=>Ie({user:bn})),(0,L.K)(co=>(0,ke.of)(Re({error:co.message}))))))),this.getAllUser$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(tt),(0,V.w)(({organization_id:bn})=>this.apiService.getAllUser(bn).pipe((0,G.U)(co=>_e({users:co})),(0,L.K)(co=>(0,ke.of)(ye({error:co.message})))))))}}return Ue.\u0275fac=function(jt){return new(jt||Ue)(an.LFG(ce.eX),an.LFG(En.s))},Ue.\u0275prov=an.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),nt=(()=>{class Ue{constructor(jt,un){this.actions$=jt,this.apiService=un,this.getApplication$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Ne),(0,V.w)(({id:bn})=>this.apiService.getApplicationsOfUser(bn).pipe((0,G.U)(co=>he({applications:co})),(0,L.K)(co=>(0,ke.of)(je({error:co.message}))))))),this.deleteApplication$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)($e),(0,V.w)(({application:bn})=>this.apiService.deleteApplication(bn).pipe((0,G.U)(()=>Et({application:bn})),(0,L.K)(co=>(0,ke.of)(Ye({error:co.message}))))))),this.postApplication$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(bo),(0,V.w)(({application:bn})=>this.apiService.addApplication(bn).pipe((0,G.U)(()=>wo({application:bn})),(0,L.K)(co=>(0,ke.of)(Gt({error:co.message}))))))),this.updateApplication$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(rn),(0,V.w)(({application:bn})=>this.apiService.updateApplication(bn).pipe((0,G.U)(()=>it({application:bn})),(0,L.K)(co=>(0,ke.of)(gn({error:co.message}))))))),this.onApplicationChange$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Dt),(0,V.w)(({application:bn})=>this.apiService.getServicesOfApplication(bn._id.$oid).pipe((0,G.U)(co=>Xe.du({services:co})),(0,L.K)(co=>(0,ke.of)(Xe.jT({error:co.message})))))))}}return Ue.\u0275fac=function(jt){return new(jt||Ue)(an.LFG(ce.eX),an.LFG(En.s))},Ue.\u0275prov=an.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),Ae=(()=>{class Ue{constructor(jt,un){this.actions$=jt,this.apiService=un,this.getOrganization$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Tn),(0,V.w)(()=>this.apiService.getOrganization().pipe((0,G.U)(bn=>Lt({organizations:bn})),(0,L.K)(bn=>(0,ke.of)(In({error:bn.message}))))))),this.deleteOrganization$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(Q),(0,V.w)(({organization:bn})=>this.apiService.deleteOrganization(bn).pipe((0,G.U)(()=>Yn({organization:bn})),(0,L.K)(co=>(0,ke.of)(Jn({error:co.message}))))))),this.postOrganization$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(xn),(0,V.w)(({organization:bn})=>this.apiService.addOrganization(bn).pipe((0,G.U)(co=>Nn({organization:bn,id:co})),(0,L.K)(co=>(0,ke.of)(Zn({error:co.message}))))))),this.updateOrganization$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(to),(0,V.w)(({organization:bn})=>this.apiService.updateOrganization(bn).pipe((0,G.U)(()=>jn({organization:bn})),(0,L.K)(co=>(0,ke.of)(lo({error:co.message})))))))}}return Ue.\u0275fac=function(jt){return new(jt||Ue)(an.LFG(ce.eX),an.LFG(En.s))},Ue.\u0275prov=an.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),gt=(()=>{class Ue{constructor(jt,un){this.actions$=jt,this.apiService=un,this.getSettings$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(vt),(0,V.w)(()=>this.apiService.getSettings().pipe((0,G.U)(bn=>rt({settings:bn})),(0,L.K)(bn=>(0,ke.of)(ct({error:bn.message}))))))),this.setSettings$=(0,ce.GW)(()=>this.actions$.pipe((0,ce.l4)(me),(0,V.w)(({settings:bn})=>this.apiService.setSettings(bn).pipe((0,G.U)(()=>ft({settings:bn})),(0,L.K)(co=>(0,ke.of)(mt({error:co.message})))))))}}return Ue.\u0275fac=function(jt){return new(jt||Ue)(an.LFG(ce.eX),an.LFG(En.s))},Ue.\u0275prov=an.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})()},4254:(et,pe,S)=>{"use strict";S.d(pe,{I6:()=>X,Oi:()=>b,gG:()=>F});var o=S(9653),A=S(7445);const F="service",ne={servicesOfApp:[],loading:!1,error:{}},b=(0,o.Lq)(ne,(0,o.on)(A.U2,B=>Object.assign(Object.assign({},B),{servicesOfApp:[],loading:!1})),(0,o.on)(A.du,(B,le)=>{const ie=le.services;return Object.assign(Object.assign({},B),{servicesOfApp:ie,loading:!1})}),(0,o.on)(A.jT,(B,le)=>{const De=le.error;return Object.assign(Object.assign({},B),{servicesOfApp:[],loading:!1,error:De})}),(0,o.on)(A.WY,B=>Object.assign(Object.assign({},B),{loading:!0})),(0,o.on)(A.DV,(B,le)=>{const ie=le.serviceId.job_id,de=Object.assign({_id:{$oid:ie}},le.service.applications[0].microservices[0]);de.microserviceID=ie;const De=[...B.servicesOfApp];return De.push(de),console.log(De),Object.assign(Object.assign({},B),{servicesOfApp:De,loading:!1})}),(0,o.on)(A.PO,(B,le)=>{const de=le.error;return Object.assign(Object.assign({},B),{loading:!1,error:de})}),(0,o.on)(A.Pg,B=>Object.assign(Object.assign({},B),{loading:!0})),(0,o.on)(A.fB,(B,le)=>{const ie=B.servicesOfApp.filter(De=>De._id.$oid!==le.service._id.$oid);return ie.push(le.service),Object.assign(Object.assign({},B),{servicesOfApp:ie,loading:!1})}),(0,o.on)(A.ZA,(B,le)=>{const de=le.error;return Object.assign(Object.assign({},B),{loading:!1,error:de})}),(0,o.on)(A.wo,B=>Object.assign(Object.assign({},B),{loading:!0})),(0,o.on)(A.do,(B,le)=>{const ie=B.servicesOfApp.filter(De=>De._id.$oid!==le.service._id.$oid);return Object.assign(Object.assign({},B),{servicesOfApp:ie,loading:!1})}),(0,o.on)(A.Cq,(B,le)=>{const de=le.error;return Object.assign(Object.assign({},B),{loading:!1,error:de})}),(0,o.on)(A.hx,B=>Object.assign(Object.assign({},B),{loading:!1})),(0,o.on)(A.wx,(B,le)=>{const ie=B.servicesOfApp.filter(De=>De._id.$oid!==le.service._id.$oid);return ie.push(le.service),Object.assign(Object.assign({},B),{servicesOfApp:ie,loading:!1})}),(0,o.on)(A.cS,(B,le)=>{const De=le.error;return Object.assign(Object.assign({},B),{service:{},loading:!1,error:De})}),(0,o.on)(A.wG,()=>Object.assign({},ne)));function X(B,le){return b(B,le)}},7206:(et,pe,S)=>{"use strict";S.d(pe,{A:()=>F,R:()=>ne});var o=S(9653);const A=b=>b.applications,F=(0,o.P1)(A,b=>b.applications),ne=(0,o.P1)(A,b=>b.currentApplication)},9118:(et,pe,S)=>{"use strict";S.d(pe,{m:()=>F});const F=(0,S(9653).P1)(ne=>ne.organizations,ne=>ne.organizations)},5125:(et,pe,S)=>{"use strict";S.d(pe,{z:()=>F});const F=(0,S(9653).P1)(ne=>ne.services,ne=>ne.servicesOfApp)},1406:(et,pe,S)=>{"use strict";S.d(pe,{v:()=>F});const F=(0,S(9653).P1)(ne=>ne.settings,ne=>ne.settings)},4362:(et,pe,S)=>{"use strict";S.d(pe,{H:()=>F,f:()=>ne});var o=S(9653);const A=b=>b.user,F=(0,o.P1)(A,b=>b.currentUser),ne=(0,o.P1)(A,b=>b.users)},7775:(et,pe,S)=>{"use strict";S.d(pe,{s:()=>Ie});var o=S(4004),A=S(529),F=S(5577),ne=S(262),b=S(2843),X=S(2340),B=S(1759),le=S(4934),ie=S(4650),de=S(4389),De=S(4017);let Te=(()=>{class Re{constructor(_e,ye,Ve,Be){this.http=_e,this.userService=ye,this.notificationService=Ve,this.window=Be,this.baseURL=X.N.apiUrl,this.requestOptions={headers:new A.WM({"Content-Type":"application/json"})}}doRequest(_e){return this.userService.isLoggedIn()?_e:this.userService.canRefresh()?this.userService.renewToken().pipe((0,F.z)(()=>_e)):(this.userService.redirectToLogin(),(0,b._)("Session expired!"))}doGETRequest(_e){const ye=this.http.get(this.baseURL+_e,this.requestOptions).pipe((0,o.U)(Ve=>"string"==typeof Ve?JSON.parse(Ve):Ve),(0,ne.K)(Ve=>(this.notificationService.notify(le.k.error,Ve.error),(0,b._)(Ve||"Server error"))));return this.doRequest(ye)}doDELRequest(_e){const Ve=this.http.delete(this.baseURL+_e,{headers:this.requestOptions.headers}).pipe((0,o.U)(Be=>{if(null!=Be)return"string"==typeof Be?JSON.parse(Be):Be;(0,b._)("no data")}),(0,ne.K)(Be=>(this.notificationService.notify(le.k.error,Be.error.message),(0,b._)(Be||"Server error"))));return this.doRequest(Ve)}doPOSTRequest(_e,ye){const Ve=this.http.post(this.baseURL+_e,ye,this.requestOptions).pipe((0,o.U)(Be=>null==Be?((0,b._)("no data"),null):"string"==typeof Be?JSON.parse(Be):Be),(0,ne.K)(Be=>(this.notificationService.notify(le.k.error,Be.error.message),(0,b._)(Be||"Server error"))));return this.doRequest(Ve)}doPUTRequest(_e,ye){const Ve=this.http.put(this.baseURL+_e,ye,this.requestOptions).pipe((0,ne.K)(Be=>(this.notificationService.notify(le.k.error,Be.error.message),(0,b._)(Be||"Server error"))));return this.doRequest(Ve)}doPOSTPublicRequest(_e,ye){return this.http.post(this.baseURL+_e,ye,this.requestOptions).pipe((0,o.U)(Ve=>null==Ve?((0,b._)("no data"),null):"string"==typeof Ve?JSON.parse(Ve):Ve),(0,ne.K)(Ve=>(this.notificationService.notify(le.k.error,Ve.error.message),(0,b._)(Ve||"Server error"))))}doPUTPublicRequest(_e,ye){return this.http.put(this.baseURL+_e,ye,this.requestOptions).pipe((0,ne.K)(Ve=>(this.notificationService.notify(le.k.error,Ve.error.message),(0,b._)(Ve||"Server error"))))}}return Re.\u0275fac=function(_e){return new(_e||Re)(ie.LFG(A.eN),ie.LFG(de.K),ie.LFG(De.g),ie.LFG(B.m))},Re.\u0275prov=ie.Yz7({token:Re,factory:Re.\u0275fac}),Re})();var Se=S(4073);let Ie=(()=>{class Re extends Te{constructor(_e,ye,Ve,Be,qe){super(_e,ye,Ve,qe),this.slaGenerator=Be,this.apiUrl=X.N.apiUrl}addApplication(_e){const ye=this.slaGenerator.generateSLA(void 0,_e,this.userService.getUser());return this.doPOSTRequest("/application/",ye)}updateApplication(_e){return this.doPUTRequest("/application/"+_e._id.$oid,_e)}deleteApplication(_e){return this.doDELRequest("/application/"+_e._id.$oid)}getApplicationsOfUser(_e){return this.doGETRequest("/applications/"+_e)}deleteCluster(_e){return this.doDELRequest("/cluster/"+_e)}getClustersOfUser(_e){return this.doGETRequest("/clusters/"+_e)}getClusterById(_e){return this.doGETRequest("/cluster/"+_e)}addService(_e){return this.doPOSTRequest("/service/",_e)}updateService(_e,ye){return this.doPUTRequest("/service/"+ye,_e)}deleteService(_e){var ye;return this.doDELRequest("/service/"+(null===(ye=_e._id)||void 0===ye?void 0:ye.$oid))}getServiceByID(_e){return this.doGETRequest("/service/"+_e)}getServicesOfApplication(_e){return this.doGETRequest("/services/"+_e)}deployService(_e){var ye;return this.doPOSTRequest("/service/"+(null===(ye=_e._id)||void 0===ye?void 0:ye.$oid)+"/instance",_e)}deleteInstance(_e,ye){var Ve;return this.doDELRequest("/service/"+(null===(Ve=_e._id)||void 0===Ve?void 0:Ve.$oid)+"/instance/"+ye.instance_number)}registerUser(_e){return this.doPOSTRequest("/auth/register",_e)}updateUser(_e){return this.doPUTRequest("/user/"+_e.name,_e)}deleteUser(_e){return this.doDELRequest("/user/"+_e.name)}getUserByName(_e){return this.doGETRequest("/user/"+_e)}getAllUser(_e){return this.doGETRequest(""!==_e?`/users/${_e}`:"/users/")}changePassword(_e,ye,Ve){return this.doPOSTRequest("/user/"+_e,{oldPassword:ye,newPassword:Ve})}addOrganization(_e){return this.doPOSTRequest("/organization/",_e)}updateOrganization(_e){return this.doPUTRequest("/organization/"+_e._id.$oid,_e)}deleteOrganization(_e){return this.doDELRequest("/organization/"+_e._id.$oid)}getOrganization(){return this.doGETRequest("/organization/").subscribe(_e=>console.log(_e)),this.doGETRequest("/organization/")}setSettings(_e){return this.doPUTRequest("settings",_e)}getSettings(){return this.doGETRequest("/settings")}getClusters(){return this.doGETRequest("/clusters/")}getAuthorization(_e){return this.doGETRequest("/permission/"+_e).pipe((0,o.U)(ye=>{const Ve=Array();for(const Be of ye.roles)Ve.push(Be);return{roles:Ve}}))}fileUpload(_e){return this.http.post(this.apiUrl+"/uploader",_e)}resetPassword(_e){const ye={username:_e,domain:window.location.host};return this.doPOSTPublicRequest("/user/",ye)}saveResetPassword(_e,ye){return this.doPUTPublicRequest("/user/",{token:_e,password:ye})}}return Re.\u0275fac=function(_e){return new(_e||Re)(ie.LFG(A.eN),ie.LFG(de.K),ie.LFG(De.g),ie.LFG(Se.T),ie.LFG(B.m))},Re.\u0275prov=ie.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})()},7234:(et,pe,S)=>{"use strict";S.d(pe,{P:()=>ne});var o=S(9646),A=S(4650),F=S(4389);let ne=(()=>{class b{constructor(B){this.userService=B}doUserCheck(B){return this.userService.isLoggedIn()?(0,o.of)(!0):this.userService.canRefresh()?this.userService.renewToken():(this.userService.redirectToLogin(),console.log(B),(0,o.of)(!1))}canActivate(B){return this.doUserCheck(B)}canLoad(B){return this.doUserCheck(B)}canActivateChild(B){return this.doUserCheck(B)}}return b.\u0275fac=function(B){return new(B||b)(A.LFG(F.K))},b.\u0275prov=A.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},4865:(et,pe,S)=>{"use strict";S.d(pe,{e:()=>X});var o=S(9646),A=S(4004),F=S(4650),ne=S(4389),b=S(7775);let X=(()=>{class B{constructor(ie,de){this.userService=ie,this.api=de,this.roles=void 0}getAuthorization(){return this.roles?(0,o.of)({roles:this.roles}):this.api.getAuthorization(this.userService.getUsername()).pipe((0,A.U)(ie=>(this.roles=ie.roles,ie)))}clear(){this.roles=void 0}}return B.\u0275fac=function(ie){return new(ie||B)(F.LFG(ne.K),F.LFG(b.s))},B.\u0275prov=F.Yz7({token:B,factory:B.\u0275fac}),B})()},3782:(et,pe,S)=>{"use strict";S.d(pe,{m:()=>le});var o=S(4934),A=S(5122),F=S(4650),ne=S(8937),b=S(4389),X=S(4865),B=S(4017);let le=(()=>{class ie{constructor(De,Te,Se,Ie){this.router=De,this.userService=Te,this.authService=Se,this.notifyService=Ie}doRoleCheck(){return!(!this.userService.hasRole(A.u.ADMIN)&&!this.userService.hasRole(A.u.ORGANIZATION_ADMIN)&&(this.notifyService.notify(o.k.error,"You have not enough permissions!"),this.router.navigate(["/control"]),1))}canActivate(){return this.doRoleCheck()}canActivateChild(){return this.doRoleCheck()}canLoad(){return!0}}return ie.\u0275fac=function(De){return new(De||ie)(F.LFG(ne.F0),F.LFG(b.K),F.LFG(X.e),F.LFG(B.g))},ie.\u0275prov=F.Yz7({token:ie,factory:ie.\u0275fac}),ie})()},4389:(et,pe,S)=>{"use strict";S.d(pe,{K:()=>Be});var o=S(2843),A=S(9646),F=S(529),ne=S(4004),b=S(262);function X(qe){this.message=qe}(X.prototype=new Error).name="InvalidCharacterError";var B=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(qe){var Oe=String(qe).replace(/=+$/,"");if(Oe.length%4==1)throw new X("'atob' failed: The string to be decoded is not correctly encoded.");for(var be,Ne,he=0,je=0,$e="";Ne=Oe.charAt(je++);~Ne&&(be=he%4?64*be+Ne:Ne,he++%4)?$e+=String.fromCharCode(255&be>>(-2*he&6)):0)Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Ne);return $e};function ie(qe){this.message=qe}(ie.prototype=new Error).name="InvalidTokenError";var Te=S(9653),Se=S(2340),Ie=S(4934),Re=S(1324),tt=S(4362),_e=S(4650),ye=S(8937),Ve=S(4017);let Be=(()=>{class qe{constructor(be,Ne,he,je,$e){this.route=be,this.http=Ne,this.router=he,this.notifyService=je,this.store=$e,this.loggedIn=!1,this.currentUser$=this.store.pipe((0,Te.Ys)(tt.H)),this.apiUrl=Se.N.apiUrl,this.currentUser$.subscribe(Et=>this.currentUser=Et)}getUsername(){return this.getDecodedAccessToken(this.getAuthTokenRaw()).sub}hasRole(be){var Ne,he;return null===(he=null===(Ne=this.getDecodedAccessToken(this.getAuthTokenRaw()))||void 0===Ne?void 0:Ne.roles)||void 0===he?void 0:he.includes(be)}getUser(){return this.currentUser}getOrganization(){var be,Ne;return null!==(Ne=null===(be=this.getDecodedAccessToken(this.getAuthTokenRaw()))||void 0===be?void 0:be.organization)&&void 0!==Ne?Ne:""}login(be){return this.http.post(this.apiUrl+"/auth/login",be).pipe((0,ne.U)(Ne=>(this.loggedIn=!0,this.setAuthToken(Ne.token),this.setRefreshToken(Ne.refresh_token),!0)),(0,b.K)(Ne=>{let he;return he=0===Ne.status?"Server is not running":Ne.statusText,(0,o._)(he||"Server error")}))}logout(){this.loggedIn=!1,localStorage.removeItem("api_token"),localStorage.removeItem("api_refresh_token"),sessionStorage.removeItem("id"),this.resetAllStoreValues(),this.router.navigate(["/"],{replaceUrl:!0})}resetAllStoreValues(){this.store.dispatch((0,Re.iC)()),this.store.dispatch((0,Re.t_)()),this.store.dispatch((0,Re.zb)()),this.store.dispatch((0,Re.wG)())}isLoggedIn(){return!!this.checkIfTokenExists("api_token")&&!this.isTokenExpired(this.getAuthTokenRaw())}canRefresh(){return!!this.checkIfTokenExists("api_token")&&!this.isTokenExpired(this.getRefreshTokenRaw())}setAuthToken(be){localStorage.setItem("api_token",be)}setRefreshToken(be){localStorage.setItem("api_refresh_token",be)}tryTokenRenewal(){const be=this.getRefreshTokenRaw(),Ne={headers:new F.WM({Authorization:"Bearer "+be})};return this.http.post(this.apiUrl+"/auth/refresh",{},Ne).pipe((0,ne.U)(he=>(this.setAuthToken(he.token),!0)),(0,b.K)(he=>(this.notifyService.notify(Ie.k.error,he.error.message),(0,o._)(he||"Server error"))))}renewToken(){return this.tryTokenRenewal().pipe((0,ne.U)(()=>!0),(0,b.K)(()=>(this.redirectToLogin(),(0,A.of)(!1))))}redirectToLogin(){this.notifyService.notify(Ie.k.error,"Your session has expired."),this.logout(),this.router.navigate(["/"]).then()}getDecodedAccessToken(be){try{return function de(qe,Oe){if("string"!=typeof qe)throw new ie("Invalid token specified");var be=!0===(Oe=Oe||{}).header?0:1;try{return JSON.parse(function le(qe){var Oe=qe.replace(/-/g,"+").replace(/_/g,"/");switch(Oe.length%4){case 0:break;case 2:Oe+="==";break;case 3:Oe+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(B(Oe).replace(/(.)/g,function(Ne,he){var je=he.charCodeAt(0).toString(16).toUpperCase();return je.length<2&&(je="0"+je),"%"+je}))}catch{return B(Oe)}}(qe.split(".")[be]))}catch(Ne){throw new ie("Invalid token specified: "+Ne.message)}}(be)}catch{return null}}getAuthTokenRaw(){return this.getJWTTokenRaw("api_token")}getRefreshTokenRaw(){return this.getJWTTokenRaw("api_refresh_token")}getJWTTokenRaw(be){var Ne;return this.checkIfTokenExists(be)?null!==(Ne=localStorage.getItem(be))&&void 0!==Ne?Ne:"":((0,o._)("No refresh token found"),"")}checkIfTokenExists(be){const Ne=localStorage.getItem(be);return!(null==Ne||3!==Ne.split(".").length)}getTokenExpirationDate(be){const Ne=this.getDecodedAccessToken(be);return typeof Ne.exp>"u"?null:new Date(0).setUTCSeconds(Ne.exp)}isTokenExpired(be){const Ne=this.getTokenExpirationDate(be);return null!==Ne&&!(Ne.valueOf()>(new Date).valueOf())}setClusterKey(be){localStorage.setItem("cluster_key",be)}getClusterKey(){var be;let Ne;return this.loggedIn?this.checkIfTokenExists("cluster_key")?(Ne=null!==(be=null==localStorage?void 0:localStorage.getItem("cluster_key"))&&void 0!==be?be:"",this.isTokenExpired(Ne)?((0,o._)("The token is already expired"),""):Ne):((0,o._)("No cluster token found"),""):((0,o._)("Session expired, please log in again"),"")}addCluster(be){return this.loggedIn?this.http.post(this.apiUrl+"/cluster/add",be).pipe((0,ne.U)(Ne=>(this.loggedIn=!0,this.setClusterKey(Ne.secret_key),Ne)),(0,b.K)(Ne=>{let he;return he=0===Ne.status?"Server is not running":Ne.statusText,(0,o._)(he||"Server error")})):(this.logout(),(0,o._)("Session expired, please log in again"))}}return qe.\u0275fac=function(be){return new(be||qe)(_e.LFG(ye.gz),_e.LFG(F.eN),_e.LFG(ye.F0),_e.LFG(Ve.g),_e.LFG(Te.yh))},qe.\u0275prov=_e.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})()},4073:(et,pe,S)=>{"use strict";S.d(pe,{T:()=>ne});var o=S(4650);let A=(()=>{class b{static cleanData(B){if("[object Array]"===Object.prototype.toString.call(B))for(let le=0;le{if("microservices"===le)return;const ie=B[le];Array.isArray(ie)?(B[le]=ie.filter(de=>("object"==typeof de&&this.deleteEmptyValues(de),""!==de&&0!==de.length)),0===B[le].length&&delete B[le]):"object"==typeof ie&&null!==ie?(this.deleteEmptyValues(ie),0===Object.keys(ie).length&&delete B[le]):""===ie&&delete B[le]}),B)}}return b.\u0275fac=function(B){return new(B||b)},b.\u0275prov=o.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();var F=S(4389);let ne=(()=>{class b{constructor(B){this.userService=B,B.getOrganization()}generateSLA(B,le,ie){const de=this.userService.getOrganization();return A.deleteEmptyValues({sla_version:"v2.0",customerID:"root"===de?ie._id.$oid:de,applications:[{applicationID:le._id.$oid,application_name:le.application_name,application_namespace:le.application_namespace,application_desc:le.application_desc,microservices:void 0===B?[]:[B]}],args:[""]})}}return b.\u0275fac=function(B){return new(B||b)(o.LFG(F.K))},b.\u0275prov=o.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},1759:(et,pe,S)=>{"use strict";S.d(pe,{Y:()=>ne,m:()=>A});const A=new(S(4650).OlP)("window"),ne=[{provide:A,useFactory:()=>window}]},4017:(et,pe,S)=>{"use strict";S.d(pe,{g:()=>de});var o=S(4934),A=S(4650),F=S(6895),ne=S(4535);function b(De,Te){1&De&&A._UZ(0,"nb-icon",5)}function X(De,Te){1&De&&A._UZ(0,"nb-icon",6)}function B(De,Te){1&De&&A._UZ(0,"nb-icon",7)}let le=(()=>{class De{constructor(Se){this.notification=Se,this.Type=o.k,this.massage="",this.type=o.k.information}ngOnInit(){this.massage=this.notification.massage,this.type=this.notification.type}}return De.\u0275fac=function(Se){return new(Se||De)(A.Y36(de))},De.\u0275cmp=A.Xpm({type:De,selectors:[["app-notification"]],decls:6,vars:4,consts:[[1,"center"],["icon","alert-circle-outline",4,"ngIf"],["icon","alert-triangle-outline",4,"ngIf"],["icon","checkmark-circle-2-outline",4,"ngIf"],[1,"addButtonDiv"],["icon","alert-circle-outline"],["icon","alert-triangle-outline"],["icon","checkmark-circle-2-outline"]],template:function(Se,Ie){1&Se&&(A.TgZ(0,"div",0),A.YNc(1,b,1,0,"nb-icon",1),A.YNc(2,X,1,0,"nb-icon",2),A.YNc(3,B,1,0,"nb-icon",3),A.TgZ(4,"p",4),A._uU(5),A.qZA()()),2&Se&&(A.xp6(1),A.Q6J("ngIf",Ie.type===Ie.Type.error),A.xp6(1),A.Q6J("ngIf",Ie.type===Ie.Type.information),A.xp6(1),A.Q6J("ngIf",Ie.type===Ie.Type.success),A.xp6(2),A.Oqu(Ie.massage))},dependencies:[F.O5,ne.fMN],styles:[".center[_ngcontent-%COMP%]{text-align:center}.addButtonDiv[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;text-align:center}"]}),De})();var ie=S(8010);let de=(()=>{class De{constructor(Se){this.snackBar=Se,this.massage="",this.type=0}notify(Se,Ie){this.type=Se,this.massage=Ie,Se===o.k.error?this.panelClass=["error-snackbar"]:Se===o.k.success&&(this.panelClass=["success-snackbar"]),this.snackBar.openFromComponent(le,{panelClass:this.panelClass,duration:3e3})}}return De.\u0275fac=function(Se){return new(Se||De)(A.LFG(ie.ux))},De.\u0275prov=A.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})()},2340:(et,pe,S)=>{"use strict";S.d(pe,{N:()=>o});const o={production:!0,apiUrl:`http://${window.env.apiIP}/api`||"https://localhost:10000"}},1916:(et,pe,S)=>{"use strict";var o=S(1481),A=S(8937),F=S(4006),ne=S(529),b=S(4650),X=S(7340);function le(x){return new b.vHH(3e3,!1)}function Q(){return typeof window<"u"&&typeof window.document<"u"}function Yn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Jn(x){switch(x.length){case 0:return new X.ZN;case 1:return x[0];default:return new X.ZE(x)}}function to(x,C,m,M,j=new Map,ee=new Map){const xe=[],He=[];let Rt=-1,Zt=null;if(M.forEach(Gn=>{const Qn=Gn.get("offset"),ko=Qn==Rt,Fo=ko&&Zt||new Map;Gn.forEach((Mo,Lo)=>{let Er=Lo,Lr=Mo;if("offset"!==Lo)switch(Er=C.normalizePropertyName(Er,xe),Lr){case X.k1:Lr=j.get(Lo);break;case X.l3:Lr=ee.get(Lo);break;default:Lr=C.normalizeStyleValue(Lo,Er,Lr,xe)}Fo.set(Er,Lr)}),ko||He.push(Fo),Zt=Fo,Rt=Qn}),xe.length)throw function gn(x){return new b.vHH(3502,!1)}();return He}function jn(x,C,m,M){switch(C){case"start":x.onStart(()=>M(m&&lo(m,"start",x)));break;case"done":x.onDone(()=>M(m&&lo(m,"done",x)));break;case"destroy":x.onDestroy(()=>M(m&&lo(m,"destroy",x)))}}function lo(x,C,m){const ee=xn(x.element,x.triggerName,x.fromState,x.toState,C||x.phaseName,m.totalTime??x.totalTime,!!m.disabled),xe=x._data;return null!=xe&&(ee._data=xe),ee}function xn(x,C,m,M,j="",ee=0,xe){return{element:x,triggerName:C,fromState:m,toState:M,phaseName:j,totalTime:ee,disabled:!!xe}}function Nn(x,C,m){let M=x.get(C);return M||x.set(C,M=m),M}function Zn(x){const C=x.indexOf(":");return[x.substring(1,C),x.slice(C+1)]}let Ct=(x,C)=>!1,st=(x,C,m)=>[],we=null;function ve(x){const C=x.parentNode||x.host;return C===we?null:C}(Yn()||typeof Element<"u")&&(Q()?(we=(()=>document.documentElement)(),Ct=(x,C)=>{for(;C;){if(C===x)return!0;C=ve(C)}return!1}):Ct=(x,C)=>x.contains(C),st=(x,C,m)=>{if(m)return Array.from(x.querySelectorAll(C));const M=x.querySelector(C);return M?[M]:[]});let ct=null,me=!1;const dt=Ct,Ht=st;let Nt=(()=>{class x{validateStyleProperty(m){return function ft(x){ct||(ct=function _t(){return typeof document<"u"?document.body:null}()||{},me=!!ct.style&&"WebkitAppearance"in ct.style);let C=!0;return ct.style&&!function rt(x){return"ebkit"==x.substring(1,6)}(x)&&(C=x in ct.style,!C&&me&&(C="Webkit"+x.charAt(0).toUpperCase()+x.slice(1)in ct.style)),C}(m)}matchesElement(m,M){return!1}containsElement(m,M){return dt(m,M)}getParentElement(m){return ve(m)}query(m,M,j){return Ht(m,M,j)}computeStyle(m,M,j){return j||""}animate(m,M,j,ee,xe,He=[],Rt){return new X.ZN(j,ee)}}return x.\u0275fac=function(m){return new(m||x)},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})(),Jt=(()=>{class x{}return x.NOOP=new Nt,x})();const pt="ng-enter",Fe="ng-leave",ce="ng-trigger",V=".ng-trigger",G="ng-animating",L=".ng-animating";function z(x){if("number"==typeof x)return x;const C=x.match(/^(-?[\.\d]+)(m?s)/);return!C||C.length<2?0:oe(parseFloat(C[1]),C[2])}function oe(x,C){return"s"===C?1e3*x:x}function ke(x,C,m){return x.hasOwnProperty("duration")?x:function Xe(x,C,m){let j,ee=0,xe="";if("string"==typeof x){const He=x.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===He)return C.push(le()),{duration:0,delay:0,easing:""};j=oe(parseFloat(He[1]),He[2]);const Rt=He[3];null!=Rt&&(ee=oe(parseFloat(Rt),He[4]));const Zt=He[5];Zt&&(xe=Zt)}else j=x;if(!m){let He=!1,Rt=C.length;j<0&&(C.push(function ie(){return new b.vHH(3100,!1)}()),He=!0),ee<0&&(C.push(function de(){return new b.vHH(3101,!1)}()),He=!0),He&&C.splice(Rt,0,le())}return{duration:j,delay:ee,easing:xe}}(x,C,m)}function Xt(x,C={}){return Object.keys(x).forEach(m=>{C[m]=x[m]}),C}function an(x){const C=new Map;return Object.keys(x).forEach(m=>{C.set(m,x[m])}),C}function _n(x,C=new Map,m){if(m)for(let[M,j]of m)C.set(M,j);for(let[M,j]of x)C.set(M,j);return C}function ln(x,C,m){return m?C+":"+m+";":""}function bt(x){let C="";for(let m=0;m{const ee=ir(j);m&&!m.has(j)&&m.set(j,x.style[ee]),x.style[ee]=M}),Yn()&&bt(x))}function Ae(x,C){x.style&&(C.forEach((m,M)=>{const j=ir(M);x.style[j]=""}),Yn()&&bt(x))}function gt(x){return Array.isArray(x)?1==x.length?x[0]:(0,X.vP)(x):x}const St=new RegExp("{{\\s*(.+?)\\s*}}","g");function jt(x){let C=[];if("string"==typeof x){let m;for(;m=St.exec(x);)C.push(m[1]);St.lastIndex=0}return C}function un(x,C,m){const M=x.toString(),j=M.replace(St,(ee,xe)=>{let He=C[xe];return null==He&&(m.push(function Te(x){return new b.vHH(3003,!1)}()),He=""),He.toString()});return j==M?x:j}function bn(x){const C=[];let m=x.next();for(;!m.done;)C.push(m.value),m=x.next();return C}const co=/-+([a-z0-9])/g;function ir(x){return x.replace(co,(...C)=>C[1].toUpperCase())}function dr(x){return x.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pr(x,C,m){switch(C.type){case 7:return x.visitTrigger(C,m);case 0:return x.visitState(C,m);case 1:return x.visitTransition(C,m);case 2:return x.visitSequence(C,m);case 3:return x.visitGroup(C,m);case 4:return x.visitAnimate(C,m);case 5:return x.visitKeyframes(C,m);case 6:return x.visitStyle(C,m);case 8:return x.visitReference(C,m);case 9:return x.visitAnimateChild(C,m);case 10:return x.visitAnimateRef(C,m);case 11:return x.visitQuery(C,m);case 12:return x.visitStagger(C,m);default:throw function Se(x){return new b.vHH(3004,!1)}()}}function Bi(x,C){return window.getComputedStyle(x)[C]}function ui(x,C){const m=[];return"string"==typeof x?x.split(/\s*,\s*/).forEach(M=>function Ln(x,C,m){if(":"==x[0]){const Rt=function yo(x,C){switch(x){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(m,M)=>parseFloat(M)>parseFloat(m);case":decrement":return(m,M)=>parseFloat(M) *"}}(x,m);if("function"==typeof Rt)return void C.push(Rt);x=Rt}const M=x.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==M||M.length<4)return m.push(function $e(x){return new b.vHH(3015,!1)}()),C;const j=M[1],ee=M[2],xe=M[3];C.push(Jo(j,xe));"<"==ee[0]&&!("*"==j&&"*"==xe)&&C.push(Jo(xe,j))}(M,m,C)):m.push(x),m}const sr=new Set(["true","1"]),Zo=new Set(["false","0"]);function Jo(x,C){const m=sr.has(x)||Zo.has(x),M=sr.has(C)||Zo.has(C);return(j,ee)=>{let xe="*"==x||x==j,He="*"==C||C==ee;return!xe&&m&&"boolean"==typeof j&&(xe=j?sr.has(x):Zo.has(x)),!He&&M&&"boolean"==typeof ee&&(He=ee?sr.has(C):Zo.has(C)),xe&&He}}const ei=new RegExp("s*:selfs*,?","g");function Co(x,C,m,M){return new bi(x).build(C,m,M)}class bi{constructor(C){this._driver=C}build(C,m,M){const j=new cs(m);return this._resetContextStyleTimingState(j),Pr(this,gt(C),j)}_resetContextStyleTimingState(C){C.currentQuerySelector="",C.collectedStyles=new Map,C.collectedStyles.set("",new Map),C.currentTime=0}visitTrigger(C,m){let M=m.queryCount=0,j=m.depCount=0;const ee=[],xe=[];return"@"==C.name.charAt(0)&&m.errors.push(function Re(){return new b.vHH(3006,!1)}()),C.definitions.forEach(He=>{if(this._resetContextStyleTimingState(m),0==He.type){const Rt=He,Zt=Rt.name;Zt.toString().split(/\s*,\s*/).forEach(Gn=>{Rt.name=Gn,ee.push(this.visitState(Rt,m))}),Rt.name=Zt}else if(1==He.type){const Rt=this.visitTransition(He,m);M+=Rt.queryCount,j+=Rt.depCount,xe.push(Rt)}else m.errors.push(function tt(){return new b.vHH(3007,!1)}())}),{type:7,name:C.name,states:ee,transitions:xe,queryCount:M,depCount:j,options:null}}visitState(C,m){const M=this.visitStyle(C.styles,m),j=C.options&&C.options.params||null;if(M.containsDynamicStyles){const ee=new Set,xe=j||{};M.styles.forEach(He=>{He instanceof Map&&He.forEach(Rt=>{jt(Rt).forEach(Zt=>{xe.hasOwnProperty(Zt)||ee.add(Zt)})})}),ee.size&&(bn(ee.values()),m.errors.push(function _e(x,C){return new b.vHH(3008,!1)}()))}return{type:0,name:C.name,style:M,options:j?{params:j}:null}}visitTransition(C,m){m.queryCount=0,m.depCount=0;const M=Pr(this,gt(C.animation),m);return{type:1,matchers:ui(C.expr,m.errors),animation:M,queryCount:m.queryCount,depCount:m.depCount,options:Xo(C.options)}}visitSequence(C,m){return{type:2,steps:C.steps.map(M=>Pr(this,M,m)),options:Xo(C.options)}}visitGroup(C,m){const M=m.currentTime;let j=0;const ee=C.steps.map(xe=>{m.currentTime=M;const He=Pr(this,xe,m);return j=Math.max(j,m.currentTime),He});return m.currentTime=j,{type:3,steps:ee,options:Xo(C.options)}}visitAnimate(C,m){const M=function Os(x,C){if(x.hasOwnProperty("duration"))return x;if("number"==typeof x)return Js(ke(x,C).duration,0,"");const m=x;if(m.split(/\s+/).some(ee=>"{"==ee.charAt(0)&&"{"==ee.charAt(1))){const ee=Js(0,0,"");return ee.dynamic=!0,ee.strValue=m,ee}const j=ke(m,C);return Js(j.duration,j.delay,j.easing)}(C.timings,m.errors);m.currentAnimateTimings=M;let j,ee=C.styles?C.styles:(0,X.oB)({});if(5==ee.type)j=this.visitKeyframes(ee,m);else{let xe=C.styles,He=!1;if(!xe){He=!0;const Zt={};M.easing&&(Zt.easing=M.easing),xe=(0,X.oB)(Zt)}m.currentTime+=M.duration+M.delay;const Rt=this.visitStyle(xe,m);Rt.isEmptyStep=He,j=Rt}return m.currentAnimateTimings=null,{type:4,timings:M,style:j,options:null}}visitStyle(C,m){const M=this._makeStyleAst(C,m);return this._validateStyleAst(M,m),M}_makeStyleAst(C,m){const M=[],j=Array.isArray(C.styles)?C.styles:[C.styles];for(let He of j)"string"==typeof He?He===X.l3?M.push(He):m.errors.push(new b.vHH(3002,!1)):M.push(an(He));let ee=!1,xe=null;return M.forEach(He=>{if(He instanceof Map&&(He.has("easing")&&(xe=He.get("easing"),He.delete("easing")),!ee))for(let Rt of He.values())if(Rt.toString().indexOf("{{")>=0){ee=!0;break}}),{type:6,styles:M,easing:xe,offset:C.offset,containsDynamicStyles:ee,options:null}}_validateStyleAst(C,m){const M=m.currentAnimateTimings;let j=m.currentTime,ee=m.currentTime;M&&ee>0&&(ee-=M.duration+M.delay),C.styles.forEach(xe=>{"string"!=typeof xe&&xe.forEach((He,Rt)=>{const Zt=m.collectedStyles.get(m.currentQuerySelector),Gn=Zt.get(Rt);let Qn=!0;Gn&&(ee!=j&&ee>=Gn.startTime&&j<=Gn.endTime&&(m.errors.push(function Be(x,C,m,M,j){return new b.vHH(3010,!1)}()),Qn=!1),ee=Gn.startTime),Qn&&Zt.set(Rt,{startTime:ee,endTime:j}),m.options&&function Ue(x,C,m){const M=C.params||{},j=jt(x);j.length&&j.forEach(ee=>{M.hasOwnProperty(ee)||m.push(function De(x){return new b.vHH(3001,!1)}())})}(He,m.options,m.errors)})})}visitKeyframes(C,m){const M={type:5,styles:[],options:null};if(!m.currentAnimateTimings)return m.errors.push(function qe(){return new b.vHH(3011,!1)}()),M;let ee=0;const xe=[];let He=!1,Rt=!1,Zt=0;const Gn=C.steps.map(Lr=>{const qo=this._makeStyleAst(Lr,m);let Gi=null!=qo.offset?qo.offset:function xs(x){if("string"==typeof x)return null;let C=null;if(Array.isArray(x))x.forEach(m=>{if(m instanceof Map&&m.has("offset")){const M=m;C=parseFloat(M.get("offset")),M.delete("offset")}});else if(x instanceof Map&&x.has("offset")){const m=x;C=parseFloat(m.get("offset")),m.delete("offset")}return C}(qo.styles),ms=0;return null!=Gi&&(ee++,ms=qo.offset=Gi),Rt=Rt||ms<0||ms>1,He=He||ms0&&ee{const Gi=ko>0?qo==Fo?1:ko*qo:xe[qo],ms=Gi*Er;m.currentTime=Mo+Lo.delay+ms,Lo.duration=ms,this._validateStyleAst(Lr,m),Lr.offset=Gi,M.styles.push(Lr)}),M}visitReference(C,m){return{type:8,animation:Pr(this,gt(C.animation),m),options:Xo(C.options)}}visitAnimateChild(C,m){return m.depCount++,{type:9,options:Xo(C.options)}}visitAnimateRef(C,m){return{type:10,animation:this.visitReference(C.animation,m),options:Xo(C.options)}}visitQuery(C,m){const M=m.currentQuerySelector,j=C.options||{};m.queryCount++,m.currentQuery=C;const[ee,xe]=function uo(x){const C=!!x.split(/\s*,\s*/).find(m=>":self"==m);return C&&(x=x.replace(ei,"")),x=x.replace(/@\*/g,V).replace(/@\w+/g,m=>V+"-"+m.slice(1)).replace(/:animating/g,L),[x,C]}(C.selector);m.currentQuerySelector=M.length?M+" "+ee:ee,Nn(m.collectedStyles,m.currentQuerySelector,new Map);const He=Pr(this,gt(C.animation),m);return m.currentQuery=null,m.currentQuerySelector=M,{type:11,selector:ee,limit:j.limit||0,optional:!!j.optional,includeSelf:xe,animation:He,originalSelector:C.selector,options:Xo(C.options)}}visitStagger(C,m){m.currentQuery||m.errors.push(function he(){return new b.vHH(3013,!1)}());const M="full"===C.timings?{duration:0,delay:0,easing:"full"}:ke(C.timings,m.errors,!0);return{type:12,animation:Pr(this,gt(C.animation),m),timings:M,options:null}}}class cs{constructor(C){this.errors=C,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 Xo(x){return x?(x=Xt(x)).params&&(x.params=function Ei(x){return x?Xt(x):null}(x.params)):x={},x}function Js(x,C,m){return{duration:x,delay:C,easing:m}}function We(x,C,m,M,j,ee,xe=null,He=!1){return{type:1,element:x,keyframes:C,preStyleProps:m,postStyleProps:M,duration:j,delay:ee,totalTime:j+ee,easing:xe,subTimeline:He}}class Bt{constructor(){this._map=new Map}get(C){return this._map.get(C)||[]}append(C,m){let M=this._map.get(C);M||this._map.set(C,M=[]),M.push(...m)}has(C){return this._map.has(C)}clear(){this._map.clear()}}const fn=new RegExp(":enter","g"),Do=new RegExp(":leave","g");function ar(x,C,m,M,j,ee=new Map,xe=new Map,He,Rt,Zt=[]){return(new Cr).buildKeyframes(x,C,m,M,j,ee,xe,He,Rt,Zt)}class Cr{buildKeyframes(C,m,M,j,ee,xe,He,Rt,Zt,Gn=[]){Zt=Zt||new Bt;const Qn=new Go(C,m,Zt,j,ee,Gn,[]);Qn.options=Rt;const ko=Rt.delay?z(Rt.delay):0;Qn.currentTimeline.delayNextStep(ko),Qn.currentTimeline.setStyles([xe],null,Qn.errors,Rt),Pr(this,M,Qn);const Fo=Qn.timelines.filter(Mo=>Mo.containsAnimation());if(Fo.length&&He.size){let Mo;for(let Lo=Fo.length-1;Lo>=0;Lo--){const Er=Fo[Lo];if(Er.element===m){Mo=Er;break}}Mo&&!Mo.allowOnlyTimelineStyles()&&Mo.setStyles([He],null,Qn.errors,Rt)}return Fo.length?Fo.map(Mo=>Mo.buildKeyframes()):[We(m,[],[],[],0,ko,"",!1)]}visitTrigger(C,m){}visitState(C,m){}visitTransition(C,m){}visitAnimateChild(C,m){const M=m.subInstructions.get(m.element);if(M){const j=m.createSubContext(C.options),ee=m.currentTimeline.currentTime,xe=this._visitSubInstructions(M,j,j.options);ee!=xe&&m.transformIntoNewTimeline(xe)}m.previousNode=C}visitAnimateRef(C,m){const M=m.createSubContext(C.options);M.transformIntoNewTimeline(),this._applyAnimationRefDelays([C.options,C.animation.options],m,M),this.visitReference(C.animation,M),m.transformIntoNewTimeline(M.currentTimeline.currentTime),m.previousNode=C}_applyAnimationRefDelays(C,m,M){for(const j of C){const ee=j?.delay;if(ee){const xe="number"==typeof ee?ee:z(un(ee,j?.params??{},m.errors));M.delayNextStep(xe)}}}_visitSubInstructions(C,m,M){let ee=m.currentTimeline.currentTime;const xe=null!=M.duration?z(M.duration):null,He=null!=M.delay?z(M.delay):null;return 0!==xe&&C.forEach(Rt=>{const Zt=m.appendInstructionToTimeline(Rt,xe,He);ee=Math.max(ee,Zt.duration+Zt.delay)}),ee}visitReference(C,m){m.updateOptions(C.options,!0),Pr(this,C.animation,m),m.previousNode=C}visitSequence(C,m){const M=m.subContextCount;let j=m;const ee=C.options;if(ee&&(ee.params||ee.delay)&&(j=m.createSubContext(ee),j.transformIntoNewTimeline(),null!=ee.delay)){6==j.previousNode.type&&(j.currentTimeline.snapshotCurrentStyles(),j.previousNode=Fr);const xe=z(ee.delay);j.delayNextStep(xe)}C.steps.length&&(C.steps.forEach(xe=>Pr(this,xe,j)),j.currentTimeline.applyStylesToKeyframe(),j.subContextCount>M&&j.transformIntoNewTimeline()),m.previousNode=C}visitGroup(C,m){const M=[];let j=m.currentTimeline.currentTime;const ee=C.options&&C.options.delay?z(C.options.delay):0;C.steps.forEach(xe=>{const He=m.createSubContext(C.options);ee&&He.delayNextStep(ee),Pr(this,xe,He),j=Math.max(j,He.currentTimeline.currentTime),M.push(He.currentTimeline)}),M.forEach(xe=>m.currentTimeline.mergeTimelineCollectedStyles(xe)),m.transformIntoNewTimeline(j),m.previousNode=C}_visitTiming(C,m){if(C.dynamic){const M=C.strValue;return ke(m.params?un(M,m.params,m.errors):M,m.errors)}return{duration:C.duration,delay:C.delay,easing:C.easing}}visitAnimate(C,m){const M=m.currentAnimateTimings=this._visitTiming(C.timings,m),j=m.currentTimeline;M.delay&&(m.incrementTime(M.delay),j.snapshotCurrentStyles());const ee=C.style;5==ee.type?this.visitKeyframes(ee,m):(m.incrementTime(M.duration),this.visitStyle(ee,m),j.applyStylesToKeyframe()),m.currentAnimateTimings=null,m.previousNode=C}visitStyle(C,m){const M=m.currentTimeline,j=m.currentAnimateTimings;!j&&M.hasCurrentStyleProperties()&&M.forwardFrame();const ee=j&&j.easing||C.easing;C.isEmptyStep?M.applyEmptyStep(ee):M.setStyles(C.styles,ee,m.errors,m.options),m.previousNode=C}visitKeyframes(C,m){const M=m.currentAnimateTimings,j=m.currentTimeline.duration,ee=M.duration,He=m.createSubContext().currentTimeline;He.easing=M.easing,C.styles.forEach(Rt=>{He.forwardTime((Rt.offset||0)*ee),He.setStyles(Rt.styles,Rt.easing,m.errors,m.options),He.applyStylesToKeyframe()}),m.currentTimeline.mergeTimelineCollectedStyles(He),m.transformIntoNewTimeline(j+ee),m.previousNode=C}visitQuery(C,m){const M=m.currentTimeline.currentTime,j=C.options||{},ee=j.delay?z(j.delay):0;ee&&(6===m.previousNode.type||0==M&&m.currentTimeline.hasCurrentStyleProperties())&&(m.currentTimeline.snapshotCurrentStyles(),m.previousNode=Fr);let xe=M;const He=m.invokeQuery(C.selector,C.originalSelector,C.limit,C.includeSelf,!!j.optional,m.errors);m.currentQueryTotal=He.length;let Rt=null;He.forEach((Zt,Gn)=>{m.currentQueryIndex=Gn;const Qn=m.createSubContext(C.options,Zt);ee&&Qn.delayNextStep(ee),Zt===m.element&&(Rt=Qn.currentTimeline),Pr(this,C.animation,Qn),Qn.currentTimeline.applyStylesToKeyframe(),xe=Math.max(xe,Qn.currentTimeline.currentTime)}),m.currentQueryIndex=0,m.currentQueryTotal=0,m.transformIntoNewTimeline(xe),Rt&&(m.currentTimeline.mergeTimelineCollectedStyles(Rt),m.currentTimeline.snapshotCurrentStyles()),m.previousNode=C}visitStagger(C,m){const M=m.parentContext,j=m.currentTimeline,ee=C.timings,xe=Math.abs(ee.duration),He=xe*(m.currentQueryTotal-1);let Rt=xe*m.currentQueryIndex;switch(ee.duration<0?"reverse":ee.easing){case"reverse":Rt=He-Rt;break;case"full":Rt=M.currentStaggerTime}const Gn=m.currentTimeline;Rt&&Gn.delayNextStep(Rt);const Qn=Gn.currentTime;Pr(this,C.animation,m),m.previousNode=C,M.currentStaggerTime=j.currentTime-Qn+(j.startTime-M.currentTimeline.startTime)}}const Fr={};class Go{constructor(C,m,M,j,ee,xe,He,Rt){this._driver=C,this.element=m,this.subInstructions=M,this._enterClassName=j,this._leaveClassName=ee,this.errors=xe,this.timelines=He,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Rt||new er(this._driver,m,0),He.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(C,m){if(!C)return;const M=C;let j=this.options;null!=M.duration&&(j.duration=z(M.duration)),null!=M.delay&&(j.delay=z(M.delay));const ee=M.params;if(ee){let xe=j.params;xe||(xe=this.options.params={}),Object.keys(ee).forEach(He=>{(!m||!xe.hasOwnProperty(He))&&(xe[He]=un(ee[He],xe,this.errors))})}}_copyOptions(){const C={};if(this.options){const m=this.options.params;if(m){const M=C.params={};Object.keys(m).forEach(j=>{M[j]=m[j]})}}return C}createSubContext(C=null,m,M){const j=m||this.element,ee=new Go(this._driver,j,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(j,M||0));return ee.previousNode=this.previousNode,ee.currentAnimateTimings=this.currentAnimateTimings,ee.options=this._copyOptions(),ee.updateOptions(C),ee.currentQueryIndex=this.currentQueryIndex,ee.currentQueryTotal=this.currentQueryTotal,ee.parentContext=this,this.subContextCount++,ee}transformIntoNewTimeline(C){return this.previousNode=Fr,this.currentTimeline=this.currentTimeline.fork(this.element,C),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(C,m,M){const j={duration:m??C.duration,delay:this.currentTimeline.currentTime+(M??0)+C.delay,easing:""},ee=new Il(this._driver,C.element,C.keyframes,C.preStyleProps,C.postStyleProps,j,C.stretchStartingKeyframe);return this.timelines.push(ee),j}incrementTime(C){this.currentTimeline.forwardTime(this.currentTimeline.duration+C)}delayNextStep(C){C>0&&this.currentTimeline.delayNextStep(C)}invokeQuery(C,m,M,j,ee,xe){let He=[];if(j&&He.push(this.element),C.length>0){C=(C=C.replace(fn,"."+this._enterClassName)).replace(Do,"."+this._leaveClassName);let Zt=this._driver.query(this.element,C,1!=M);0!==M&&(Zt=M<0?Zt.slice(Zt.length+M,Zt.length):Zt.slice(0,M)),He.push(...Zt)}return!ee&&0==He.length&&xe.push(function je(x){return new b.vHH(3014,!1)}()),He}}class er{constructor(C,m,M,j){this._driver=C,this.element=m,this.startTime=M,this._elementTimelineStylesLookup=j,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(m),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(m,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(C){const m=1===this._keyframes.size&&this._pendingStyles.size;this.duration||m?(this.forwardTime(this.currentTime+C),m&&this.snapshotCurrentStyles()):this.startTime+=C}fork(C,m){return this.applyStylesToKeyframe(),new er(this._driver,C,m||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(C){this.applyStylesToKeyframe(),this.duration=C,this._loadKeyframe()}_updateStyle(C,m){this._localTimelineStyles.set(C,m),this._globalTimelineStyles.set(C,m),this._styleSummary.set(C,{time:this.currentTime,value:m})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(C){C&&this._previousKeyframe.set("easing",C);for(let[m,M]of this._globalTimelineStyles)this._backFill.set(m,M||X.l3),this._currentKeyframe.set(m,X.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(C,m,M,j){m&&this._previousKeyframe.set("easing",m);const ee=j&&j.params||{},xe=function Zr(x,C){const m=new Map;let M;return x.forEach(j=>{if("*"===j){M=M||C.keys();for(let ee of M)m.set(ee,X.l3)}else _n(j,m)}),m}(C,this._globalTimelineStyles);for(let[He,Rt]of xe){const Zt=un(Rt,ee,M);this._pendingStyles.set(He,Zt),this._localTimelineStyles.has(He)||this._backFill.set(He,this._globalTimelineStyles.get(He)??X.l3),this._updateStyle(He,Zt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((C,m)=>{this._currentKeyframe.set(m,C)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((C,m)=>{this._currentKeyframe.has(m)||this._currentKeyframe.set(m,C)}))}snapshotCurrentStyles(){for(let[C,m]of this._localTimelineStyles)this._pendingStyles.set(C,m),this._updateStyle(C,m)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const C=[];for(let m in this._currentKeyframe)C.push(m);return C}mergeTimelineCollectedStyles(C){C._styleSummary.forEach((m,M)=>{const j=this._styleSummary.get(M);(!j||m.time>j.time)&&this._updateStyle(M,m.value)})}buildKeyframes(){this.applyStylesToKeyframe();const C=new Set,m=new Set,M=1===this._keyframes.size&&0===this.duration;let j=[];this._keyframes.forEach((He,Rt)=>{const Zt=_n(He,new Map,this._backFill);Zt.forEach((Gn,Qn)=>{Gn===X.k1?C.add(Qn):Gn===X.l3&&m.add(Qn)}),M||Zt.set("offset",Rt/this.duration),j.push(Zt)});const ee=C.size?bn(C.values()):[],xe=m.size?bn(m.values()):[];if(M){const He=j[0],Rt=new Map(He);He.set("offset",0),Rt.set("offset",1),j=[He,Rt]}return We(this.element,j,ee,xe,this.duration,this.startTime,this.easing,!1)}}class Il extends er{constructor(C,m,M,j,ee,xe,He=!1){super(C,m,xe.delay),this.keyframes=M,this.preStyleProps=j,this.postStyleProps=ee,this._stretchStartingKeyframe=He,this.timings={duration:xe.duration,delay:xe.delay,easing:xe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let C=this.keyframes,{delay:m,duration:M,easing:j}=this.timings;if(this._stretchStartingKeyframe&&m){const ee=[],xe=M+m,He=m/xe,Rt=_n(C[0]);Rt.set("offset",0),ee.push(Rt);const Zt=_n(C[0]);Zt.set("offset",Gr(He)),ee.push(Zt);const Gn=C.length-1;for(let Qn=1;Qn<=Gn;Qn++){let ko=_n(C[Qn]);const Fo=ko.get("offset");ko.set("offset",Gr((m+Fo*M)/xe)),ee.push(ko)}M=xe,m=0,j="",C=ee}return We(this.element,C,this.preStyleProps,this.postStyleProps,M,m,j,!0)}}function Gr(x,C=3){const m=Math.pow(10,C-1);return Math.round(x*m)/m}class ti{}const di=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"]);class rc extends ti{normalizePropertyName(C,m){return ir(C)}normalizeStyleValue(C,m,M,j){let ee="";const xe=M.toString().trim();if(di.has(m)&&0!==M&&"0"!==M)if("number"==typeof M)ee="px";else{const He=M.match(/^[+-]?[\d\.]+([a-z]*)$/);He&&0==He[1].length&&j.push(function Ie(x,C){return new b.vHH(3005,!1)}())}return xe+ee}}function La(x,C,m,M,j,ee,xe,He,Rt,Zt,Gn,Qn,ko){return{type:0,element:x,triggerName:C,isRemovalTransition:j,fromState:m,fromStyles:ee,toState:M,toStyles:xe,timelines:He,queriedElements:Rt,preStyleProps:Zt,postStyleProps:Gn,totalTime:Qn,errors:ko}}const As={};class Ba{constructor(C,m,M){this._triggerName=C,this.ast=m,this._stateStyles=M}match(C,m,M,j){return function Fl(x,C,m,M,j){return x.some(ee=>ee(C,m,M,j))}(this.ast.matchers,C,m,M,j)}buildStyles(C,m,M){let j=this._stateStyles.get("*");return void 0!==C&&(j=this._stateStyles.get(C?.toString())||j),j?j.buildStyles(m,M):new Map}build(C,m,M,j,ee,xe,He,Rt,Zt,Gn){const Qn=[],ko=this.ast.options&&this.ast.options.params||As,Mo=this.buildStyles(M,He&&He.params||As,Qn),Lo=Rt&&Rt.params||As,Er=this.buildStyles(j,Lo,Qn),Lr=new Set,qo=new Map,Gi=new Map,ms="void"===j,Xc={params:gl(Lo,ko),delay:this.ast.options?.delay},tl=Gn?[]:ar(C,m,this.ast.animation,ee,xe,Mo,Er,Xc,Zt,Qn);let os=0;if(tl.forEach(Dl=>{os=Math.max(Dl.duration+Dl.delay,os)}),Qn.length)return La(m,this._triggerName,M,j,ms,Mo,Er,[],[],qo,Gi,os,Qn);tl.forEach(Dl=>{const nl=Dl.element,Bf=Nn(qo,nl,new Set);Dl.preStyleProps.forEach(ol=>Bf.add(ol));const eu=Nn(Gi,nl,new Set);Dl.postStyleProps.forEach(ol=>eu.add(ol)),nl!==m&&Lr.add(nl)});const Aa=bn(Lr.values());return La(m,this._triggerName,M,j,ms,Mo,Er,tl,Aa,qo,Gi,os)}}function gl(x,C){const m=Xt(C);for(const M in x)x.hasOwnProperty(M)&&null!=x[M]&&(m[M]=x[M]);return m}class vs{constructor(C,m,M){this.styles=C,this.defaultParams=m,this.normalizer=M}buildStyles(C,m){const M=new Map,j=Xt(this.defaultParams);return Object.keys(C).forEach(ee=>{const xe=C[ee];null!==xe&&(j[ee]=xe)}),this.styles.styles.forEach(ee=>{"string"!=typeof ee&&ee.forEach((xe,He)=>{xe&&(xe=un(xe,j,m));const Rt=this.normalizer.normalizePropertyName(He,m);xe=this.normalizer.normalizeStyleValue(He,Rt,xe,m),M.set(He,xe)})}),M}}class ml{constructor(C,m,M){this.name=C,this.ast=m,this._normalizer=M,this.transitionFactories=[],this.states=new Map,m.states.forEach(j=>{this.states.set(j.name,new vs(j.style,j.options&&j.options.params||{},M))}),us(this.states,"true","1"),us(this.states,"false","0"),m.transitions.forEach(j=>{this.transitionFactories.push(new Ba(C,j,this.states))}),this.fallbackTransition=function Ti(x,C,m){return new Ba(x,{type:1,animation:{type:2,steps:[],options:null},matchers:[(xe,He)=>!0],options:null,queryCount:0,depCount:0},C)}(C,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(C,m,M,j){return this.transitionFactories.find(xe=>xe.match(C,m,M,j))||null}matchStyles(C,m,M){return this.fallbackTransition.buildStyles(C,m,M)}}function us(x,C,m){x.has(C)?x.has(m)||x.set(m,x.get(C)):x.has(m)&&x.set(C,x.get(m))}const Vs=new Bt;class Su{constructor(C,m,M){this.bodyNode=C,this._driver=m,this._normalizer=M,this._animations=new Map,this._playersById=new Map,this.players=[]}register(C,m){const M=[],ee=Co(this._driver,m,M,[]);if(M.length)throw function bo(x){return new b.vHH(3503,!1)}();this._animations.set(C,ee)}_buildPlayer(C,m,M){const j=C.element,ee=to(0,this._normalizer,0,C.keyframes,m,M);return this._driver.animate(j,ee,C.duration,C.delay,C.easing,[],!0)}create(C,m,M={}){const j=[],ee=this._animations.get(C);let xe;const He=new Map;if(ee?(xe=ar(this._driver,m,ee,pt,Fe,new Map,new Map,M,Vs,j),xe.forEach(Gn=>{const Qn=Nn(He,Gn.element,new Map);Gn.postStyleProps.forEach(ko=>Qn.set(ko,null))})):(j.push(function wo(){return new b.vHH(3300,!1)}()),xe=[]),j.length)throw function Gt(x){return new b.vHH(3504,!1)}();He.forEach((Gn,Qn)=>{Gn.forEach((ko,Fo)=>{Gn.set(Fo,this._driver.computeStyle(Qn,Fo,X.l3))})});const Zt=Jn(xe.map(Gn=>{const Qn=He.get(Gn.element);return this._buildPlayer(Gn,new Map,Qn)}));return this._playersById.set(C,Zt),Zt.onDestroy(()=>this.destroy(C)),this.players.push(Zt),Zt}destroy(C){const m=this._getPlayer(C);m.destroy(),this._playersById.delete(C);const M=this.players.indexOf(m);M>=0&&this.players.splice(M,1)}_getPlayer(C){const m=this._playersById.get(C);if(!m)throw function Dt(x){return new b.vHH(3301,!1)}();return m}listen(C,m,M,j){const ee=xn(m,"","","");return jn(this._getPlayer(C),M,ee,j),()=>{}}command(C,m,M,j){if("register"==M)return void this.register(C,j[0]);if("create"==M)return void this.create(C,m,j[0]||{});const ee=this._getPlayer(C);switch(M){case"play":ee.play();break;case"pause":ee.pause();break;case"reset":ee.reset();break;case"restart":ee.restart();break;case"finish":ee.finish();break;case"init":ee.init();break;case"setPosition":ee.setPosition(parseFloat(j[0]));break;case"destroy":this.destroy(C)}}}const xo="ng-animate-queued",ha="ng-animate-disabled",za=[],ds={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Va={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},zi="__ng_removed";class Ha{get params(){return this.options.params}constructor(C,m=""){this.namespaceId=m;const M=C&&C.hasOwnProperty("value");if(this.value=function lc(x){return x??null}(M?C.value:C),M){const ee=Xt(C);delete ee.value,this.options=ee}else this.options={};this.options.params||(this.options.params={})}absorbOptions(C){const m=C.params;if(m){const M=this.options.params;Object.keys(m).forEach(j=>{null==M[j]&&(M[j]=m[j])})}}}const en="void",ys=new Ha(en);class Sa{constructor(C,m,M){this.id=C,this.hostElement=m,this._engine=M,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+C,wr(m,this._hostClassName)}listen(C,m,M,j){if(!this._triggers.has(m))throw function lt(x,C){return new b.vHH(3302,!1)}();if(null==M||0==M.length)throw function Ge(x){return new b.vHH(3303,!1)}();if(!function Bl(x){return"start"==x||"done"==x}(M))throw function Je(x,C){return new b.vHH(3400,!1)}();const ee=Nn(this._elementListeners,C,[]),xe={name:m,phase:M,callback:j};ee.push(xe);const He=Nn(this._engine.statesByElement,C,new Map);return He.has(m)||(wr(C,ce),wr(C,ce+"-"+m),He.set(m,ys)),()=>{this._engine.afterFlush(()=>{const Rt=ee.indexOf(xe);Rt>=0&&ee.splice(Rt,1),this._triggers.has(m)||He.delete(m)})}}register(C,m){return!this._triggers.has(C)&&(this._triggers.set(C,m),!0)}_getTrigger(C){const m=this._triggers.get(C);if(!m)throw function Yt(x){return new b.vHH(3401,!1)}();return m}trigger(C,m,M,j=!0){const ee=this._getTrigger(m),xe=new ac(this.id,m,C);let He=this._engine.statesByElement.get(C);He||(wr(C,ce),wr(C,ce+"-"+m),this._engine.statesByElement.set(C,He=new Map));let Rt=He.get(m);const Zt=new Ha(M,this.id);if(!(M&&M.hasOwnProperty("value"))&&Rt&&Zt.absorbOptions(Rt.options),He.set(m,Zt),Rt||(Rt=ys),Zt.value!==en&&Rt.value===Zt.value){if(!function ri(x,C){const m=Object.keys(x),M=Object.keys(C);if(m.length!=M.length)return!1;for(let j=0;j{Ae(C,Er),nt(C,Lr)})}return}const ko=Nn(this._engine.playersByElement,C,[]);ko.forEach(Lo=>{Lo.namespaceId==this.id&&Lo.triggerName==m&&Lo.queued&&Lo.destroy()});let Fo=ee.matchTransition(Rt.value,Zt.value,C,Zt.params),Mo=!1;if(!Fo){if(!j)return;Fo=ee.fallbackTransition,Mo=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:C,triggerName:m,transition:Fo,fromState:Rt,toState:Zt,player:xe,isFallbackTransition:Mo}),Mo||(wr(C,xo),xe.onStart(()=>{Vr(C,xo)})),xe.onDone(()=>{let Lo=this.players.indexOf(xe);Lo>=0&&this.players.splice(Lo,1);const Er=this._engine.playersByElement.get(C);if(Er){let Lr=Er.indexOf(xe);Lr>=0&&Er.splice(Lr,1)}}),this.players.push(xe),ko.push(xe),xe}deregister(C){this._triggers.delete(C),this._engine.statesByElement.forEach(m=>m.delete(C)),this._elementListeners.forEach((m,M)=>{this._elementListeners.set(M,m.filter(j=>j.name!=C))})}clearElementCache(C){this._engine.statesByElement.delete(C),this._elementListeners.delete(C);const m=this._engine.playersByElement.get(C);m&&(m.forEach(M=>M.destroy()),this._engine.playersByElement.delete(C))}_signalRemovalForInnerTriggers(C,m){const M=this._engine.driver.query(C,V,!0);M.forEach(j=>{if(j[zi])return;const ee=this._engine.fetchNamespacesByElement(j);ee.size?ee.forEach(xe=>xe.triggerLeaveAnimation(j,m,!1,!0)):this.clearElementCache(j)}),this._engine.afterFlushAnimationsDone(()=>M.forEach(j=>this.clearElementCache(j)))}triggerLeaveAnimation(C,m,M,j){const ee=this._engine.statesByElement.get(C),xe=new Map;if(ee){const He=[];if(ee.forEach((Rt,Zt)=>{if(xe.set(Zt,Rt.value),this._triggers.has(Zt)){const Gn=this.trigger(C,Zt,en,j);Gn&&He.push(Gn)}}),He.length)return this._engine.markElementAsRemoved(this.id,C,!0,m,xe),M&&Jn(He).onDone(()=>this._engine.processLeaveNode(C)),!0}return!1}prepareLeaveAnimationListeners(C){const m=this._elementListeners.get(C),M=this._engine.statesByElement.get(C);if(m&&M){const j=new Set;m.forEach(ee=>{const xe=ee.name;if(j.has(xe))return;j.add(xe);const Rt=this._triggers.get(xe).fallbackTransition,Zt=M.get(xe)||ys,Gn=new Ha(en),Qn=new ac(this.id,xe,C);this._engine.totalQueuedPlayers++,this._queue.push({element:C,triggerName:xe,transition:Rt,fromState:Zt,toState:Gn,player:Qn,isFallbackTransition:!0})})}}removeNode(C,m){const M=this._engine;if(C.childElementCount&&this._signalRemovalForInnerTriggers(C,m),this.triggerLeaveAnimation(C,m,!0))return;let j=!1;if(M.totalAnimations){const ee=M.players.length?M.playersByQueriedElement.get(C):[];if(ee&&ee.length)j=!0;else{let xe=C;for(;xe=xe.parentNode;)if(M.statesByElement.get(xe)){j=!0;break}}}if(this.prepareLeaveAnimationListeners(C),j)M.markElementAsRemoved(this.id,C,!1,m);else{const ee=C[zi];(!ee||ee===ds)&&(M.afterFlush(()=>this.clearElementCache(C)),M.destroyInnerAnimations(C),M._onRemovalComplete(C,m))}}insertNode(C,m){wr(C,this._hostClassName)}drainQueuedTransitions(C){const m=[];return this._queue.forEach(M=>{const j=M.player;if(j.destroyed)return;const ee=M.element,xe=this._elementListeners.get(ee);xe&&xe.forEach(He=>{if(He.name==M.triggerName){const Rt=xn(ee,M.triggerName,M.fromState.value,M.toState.value);Rt._data=C,jn(M.player,He.phase,Rt,He.callback)}}),j.markedForDestroy?this._engine.afterFlush(()=>{j.destroy()}):m.push(M)}),this._queue=[],m.sort((M,j)=>{const ee=M.transition.ast.depCount,xe=j.transition.ast.depCount;return 0==ee||0==xe?ee-xe:this._engine.driver.containsElement(M.element,j.element)?1:-1})}destroy(C){this.players.forEach(m=>m.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,C)}elementContainsData(C){let m=!1;return this._elementListeners.has(C)&&(m=!0),m=!!this._queue.find(M=>M.element===C)||m,m}}class hi{_onRemovalComplete(C,m){this.onRemovalComplete(C,m)}constructor(C,m,M){this.bodyNode=C,this.driver=m,this._normalizer=M,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=(j,ee)=>{}}get queuedPlayers(){const C=[];return this._namespaceList.forEach(m=>{m.players.forEach(M=>{M.queued&&C.push(M)})}),C}createNamespace(C,m){const M=new Sa(C,m,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,m)?this._balanceNamespaceList(M,m):(this.newHostElements.set(m,M),this.collectEnterElement(m)),this._namespaceLookup[C]=M}_balanceNamespaceList(C,m){const M=this._namespaceList,j=this.namespacesByHostElement;if(M.length-1>=0){let xe=!1,He=this.driver.getParentElement(m);for(;He;){const Rt=j.get(He);if(Rt){const Zt=M.indexOf(Rt);M.splice(Zt+1,0,C),xe=!0;break}He=this.driver.getParentElement(He)}xe||M.unshift(C)}else M.push(C);return j.set(m,C),C}register(C,m){let M=this._namespaceLookup[C];return M||(M=this.createNamespace(C,m)),M}registerTrigger(C,m,M){let j=this._namespaceLookup[C];j&&j.register(m,M)&&this.totalAnimations++}destroy(C,m){if(!C)return;const M=this._fetchNamespace(C);this.afterFlush(()=>{this.namespacesByHostElement.delete(M.hostElement),delete this._namespaceLookup[C];const j=this._namespaceList.indexOf(M);j>=0&&this._namespaceList.splice(j,1)}),this.afterFlushAnimationsDone(()=>M.destroy(m))}_fetchNamespace(C){return this._namespaceLookup[C]}fetchNamespacesByElement(C){const m=new Set,M=this.statesByElement.get(C);if(M)for(let j of M.values())if(j.namespaceId){const ee=this._fetchNamespace(j.namespaceId);ee&&m.add(ee)}return m}trigger(C,m,M,j){if(ni(m)){const ee=this._fetchNamespace(C);if(ee)return ee.trigger(m,M,j),!0}return!1}insertNode(C,m,M,j){if(!ni(m))return;const ee=m[zi];if(ee&&ee.setForRemoval){ee.setForRemoval=!1,ee.setForMove=!0;const xe=this.collectedLeaveElements.indexOf(m);xe>=0&&this.collectedLeaveElements.splice(xe,1)}if(C){const xe=this._fetchNamespace(C);xe&&xe.insertNode(m,M)}j&&this.collectEnterElement(m)}collectEnterElement(C){this.collectedEnterElements.push(C)}markElementAsDisabled(C,m){m?this.disabledNodes.has(C)||(this.disabledNodes.add(C),wr(C,ha)):this.disabledNodes.has(C)&&(this.disabledNodes.delete(C),Vr(C,ha))}removeNode(C,m,M,j){if(ni(m)){const ee=C?this._fetchNamespace(C):null;if(ee?ee.removeNode(m,j):this.markElementAsRemoved(C,m,!1,j),M){const xe=this.namespacesByHostElement.get(m);xe&&xe.id!==C&&xe.removeNode(m,j)}}else this._onRemovalComplete(m,j)}markElementAsRemoved(C,m,M,j,ee){this.collectedLeaveElements.push(m),m[zi]={namespaceId:C,setForRemoval:j,hasAnimation:M,removedBeforeQueried:!1,previousTriggersValues:ee}}listen(C,m,M,j,ee){return ni(m)?this._fetchNamespace(C).listen(m,M,j,ee):()=>{}}_buildInstruction(C,m,M,j,ee){return C.transition.build(this.driver,C.element,C.fromState.value,C.toState.value,M,j,C.fromState.options,C.toState.options,m,ee)}destroyInnerAnimations(C){let m=this.driver.query(C,V,!0);m.forEach(M=>this.destroyActiveAnimationsForElement(M)),0!=this.playersByQueriedElement.size&&(m=this.driver.query(C,L,!0),m.forEach(M=>this.finishActiveQueriedAnimationOnElement(M)))}destroyActiveAnimationsForElement(C){const m=this.playersByElement.get(C);m&&m.forEach(M=>{M.queued?M.markedForDestroy=!0:M.destroy()})}finishActiveQueriedAnimationOnElement(C){const m=this.playersByQueriedElement.get(C);m&&m.forEach(M=>M.finish())}whenRenderingDone(){return new Promise(C=>{if(this.players.length)return Jn(this.players).onDone(()=>C());C()})}processLeaveNode(C){const m=C[zi];if(m&&m.setForRemoval){if(C[zi]=ds,m.namespaceId){this.destroyInnerAnimations(C);const M=this._fetchNamespace(m.namespaceId);M&&M.clearElementCache(C)}this._onRemovalComplete(C,m.setForRemoval)}C.classList?.contains(ha)&&this.markElementAsDisabled(C,!1),this.driver.query(C,".ng-animate-disabled",!0).forEach(M=>{this.markElementAsDisabled(M,!1)})}flush(C=-1){let m=[];if(this.newHostElements.size&&(this.newHostElements.forEach((M,j)=>this._balanceNamespaceList(M,j)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let M=0;MM()),this._flushFns=[],this._whenQuietFns.length){const M=this._whenQuietFns;this._whenQuietFns=[],m.length?Jn(m).onDone(()=>{M.forEach(j=>j())}):M.forEach(j=>j())}}reportError(C){throw function Kt(x){return new b.vHH(3402,!1)}()}_flushAnimations(C,m){const M=new Bt,j=[],ee=new Map,xe=[],He=new Map,Rt=new Map,Zt=new Map,Gn=new Set;this.disabledNodes.forEach(ro=>{Gn.add(ro);const po=this.driver.query(ro,".ng-animate-queued",!0);for(let go=0;go{const go=pt+Lo++;Mo.set(po,go),ro.forEach(_r=>wr(_r,go))});const Er=[],Lr=new Set,qo=new Set;for(let ro=0;roLr.add(_r)):qo.add(po))}const Gi=new Map,ms=Hs(ko,Array.from(Lr));ms.forEach((ro,po)=>{const go=Fe+Lo++;Gi.set(po,go),ro.forEach(_r=>wr(_r,go))}),C.push(()=>{Fo.forEach((ro,po)=>{const go=Mo.get(po);ro.forEach(_r=>Vr(_r,go))}),ms.forEach((ro,po)=>{const go=Gi.get(po);ro.forEach(_r=>Vr(_r,go))}),Er.forEach(ro=>{this.processLeaveNode(ro)})});const Xc=[],tl=[];for(let ro=this._namespaceList.length-1;ro>=0;ro--)this._namespaceList[ro].drainQueuedTransitions(m).forEach(go=>{const _r=go.player,li=go.element;if(Xc.push(_r),this.collectedEnterElements.length){const _s=li[zi];if(_s&&_s.setForMove){if(_s.previousTriggersValues&&_s.previousTriggersValues.has(go.triggerName)){const Na=_s.previousTriggersValues.get(go.triggerName),sa=this.statesByElement.get(go.element);if(sa&&sa.has(go.triggerName)){const Sc=sa.get(go.triggerName);Sc.value=Na,sa.set(go.triggerName,Sc)}}return void _r.destroy()}}const rl=!Qn||!this.driver.containsElement(Qn,li),Ls=Gi.get(li),ql=Mo.get(li),Xr=this._buildInstruction(go,M,ql,Ls,rl);if(Xr.errors&&Xr.errors.length)return void tl.push(Xr);if(rl)return _r.onStart(()=>Ae(li,Xr.fromStyles)),_r.onDestroy(()=>nt(li,Xr.toStyles)),void j.push(_r);if(go.isFallbackTransition)return _r.onStart(()=>Ae(li,Xr.fromStyles)),_r.onDestroy(()=>nt(li,Xr.toStyles)),void j.push(_r);const Fh=[];Xr.timelines.forEach(_s=>{_s.stretchStartingKeyframe=!0,this.disabledNodes.has(_s.element)||Fh.push(_s)}),Xr.timelines=Fh,M.append(li,Xr.timelines),xe.push({instruction:Xr,player:_r,element:li}),Xr.queriedElements.forEach(_s=>Nn(He,_s,[]).push(_r)),Xr.preStyleProps.forEach((_s,Na)=>{if(_s.size){let sa=Rt.get(Na);sa||Rt.set(Na,sa=new Set),_s.forEach((Sc,Bu)=>sa.add(Bu))}}),Xr.postStyleProps.forEach((_s,Na)=>{let sa=Zt.get(Na);sa||Zt.set(Na,sa=new Set),_s.forEach((Sc,Bu)=>sa.add(Bu))})});if(tl.length){const ro=[];tl.forEach(po=>{ro.push(function Lt(x,C){return new b.vHH(3505,!1)}())}),Xc.forEach(po=>po.destroy()),this.reportError(ro)}const os=new Map,Aa=new Map;xe.forEach(ro=>{const po=ro.element;M.has(po)&&(Aa.set(po,po),this._beforeAnimationBuild(ro.player.namespaceId,ro.instruction,os))}),j.forEach(ro=>{const po=ro.element;this._getPreviousPlayers(po,!1,ro.namespaceId,ro.triggerName,null).forEach(_r=>{Nn(os,po,[]).push(_r),_r.destroy()})});const Dl=Er.filter(ro=>ja(ro,Rt,Zt)),nl=new Map;oi(nl,this.driver,qo,Zt,X.l3).forEach(ro=>{ja(ro,Rt,Zt)&&Dl.push(ro)});const eu=new Map;Fo.forEach((ro,po)=>{oi(eu,this.driver,new Set(ro),Rt,X.k1)}),Dl.forEach(ro=>{const po=nl.get(ro),go=eu.get(ro);nl.set(ro,new Map([...Array.from(po?.entries()??[]),...Array.from(go?.entries()??[])]))});const ol=[],Qd=[],El={};xe.forEach(ro=>{const{element:po,player:go,instruction:_r}=ro;if(M.has(po)){if(Gn.has(po))return go.onDestroy(()=>nt(po,_r.toStyles)),go.disabled=!0,go.overrideTotalTime(_r.totalTime),void j.push(go);let li=El;if(Aa.size>1){let Ls=po;const ql=[];for(;Ls=Ls.parentNode;){const Xr=Aa.get(Ls);if(Xr){li=Xr;break}ql.push(Ls)}ql.forEach(Xr=>Aa.set(Xr,li))}const rl=this._buildAnimation(go.namespaceId,_r,os,ee,eu,nl);if(go.setRealPlayer(rl),li===El)ol.push(go);else{const Ls=this.playersByElement.get(li);Ls&&Ls.length&&(go.parentPlayer=Jn(Ls)),j.push(go)}}else Ae(po,_r.fromStyles),go.onDestroy(()=>nt(po,_r.toStyles)),Qd.push(go),Gn.has(po)&&j.push(go)}),Qd.forEach(ro=>{const po=ee.get(ro.element);if(po&&po.length){const go=Jn(po);ro.setRealPlayer(go)}}),j.forEach(ro=>{ro.parentPlayer?ro.syncPlayerEvents(ro.parentPlayer):ro.destroy()});for(let ro=0;ro!rl.destroyed);li.length?$a(this,po,li):this.processLeaveNode(po)}return Er.length=0,ol.forEach(ro=>{this.players.push(ro),ro.onDone(()=>{ro.destroy();const po=this.players.indexOf(ro);this.players.splice(po,1)}),ro.play()}),ol}elementContainsData(C,m){let M=!1;const j=m[zi];return j&&j.setForRemoval&&(M=!0),this.playersByElement.has(m)&&(M=!0),this.playersByQueriedElement.has(m)&&(M=!0),this.statesByElement.has(m)&&(M=!0),this._fetchNamespace(C).elementContainsData(m)||M}afterFlush(C){this._flushFns.push(C)}afterFlushAnimationsDone(C){this._whenQuietFns.push(C)}_getPreviousPlayers(C,m,M,j,ee){let xe=[];if(m){const He=this.playersByQueriedElement.get(C);He&&(xe=He)}else{const He=this.playersByElement.get(C);if(He){const Rt=!ee||ee==en;He.forEach(Zt=>{Zt.queued||!Rt&&Zt.triggerName!=j||xe.push(Zt)})}}return(M||j)&&(xe=xe.filter(He=>!(M&&M!=He.namespaceId||j&&j!=He.triggerName))),xe}_beforeAnimationBuild(C,m,M){const ee=m.element,xe=m.isRemovalTransition?void 0:C,He=m.isRemovalTransition?void 0:m.triggerName;for(const Rt of m.timelines){const Zt=Rt.element,Gn=Zt!==ee,Qn=Nn(M,Zt,[]);this._getPreviousPlayers(Zt,Gn,xe,He,m.toState).forEach(Fo=>{const Mo=Fo.getRealPlayer();Mo.beforeDestroy&&Mo.beforeDestroy(),Fo.destroy(),Qn.push(Fo)})}Ae(ee,m.fromStyles)}_buildAnimation(C,m,M,j,ee,xe){const He=m.triggerName,Rt=m.element,Zt=[],Gn=new Set,Qn=new Set,ko=m.timelines.map(Mo=>{const Lo=Mo.element;Gn.add(Lo);const Er=Lo[zi];if(Er&&Er.removedBeforeQueried)return new X.ZN(Mo.duration,Mo.delay);const Lr=Lo!==Rt,qo=function _l(x){const C=[];return ea(x,C),C}((M.get(Lo)||za).map(os=>os.getRealPlayer())).filter(os=>!!os.element&&os.element===Lo),Gi=ee.get(Lo),ms=xe.get(Lo),Xc=to(0,this._normalizer,0,Mo.keyframes,Gi,ms),tl=this._buildPlayer(Mo,Xc,qo);if(Mo.subTimeline&&j&&Qn.add(Lo),Lr){const os=new ac(C,He,Lo);os.setRealPlayer(tl),Zt.push(os)}return tl});Zt.forEach(Mo=>{Nn(this.playersByQueriedElement,Mo.element,[]).push(Mo),Mo.onDone(()=>function Xs(x,C,m){let M=x.get(C);if(M){if(M.length){const j=M.indexOf(m);M.splice(j,1)}0==M.length&&x.delete(C)}return M}(this.playersByQueriedElement,Mo.element,Mo))}),Gn.forEach(Mo=>wr(Mo,G));const Fo=Jn(ko);return Fo.onDestroy(()=>{Gn.forEach(Mo=>Vr(Mo,G)),nt(Rt,m.toStyles)}),Qn.forEach(Mo=>{Nn(j,Mo,[]).push(Fo)}),Fo}_buildPlayer(C,m,M){return m.length>0?this.driver.animate(C.element,m,C.duration,C.delay,C.easing,M):new X.ZN(C.duration,C.delay)}}class ac{constructor(C,m,M){this.namespaceId=C,this.triggerName=m,this.element=M,this._player=new X.ZN,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(C){this._containsRealPlayer||(this._player=C,this._queuedCallbacks.forEach((m,M)=>{m.forEach(j=>jn(C,M,void 0,j))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(C.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(C){this.totalTime=C}syncPlayerEvents(C){const m=this._player;m.triggerCallback&&C.onStart(()=>m.triggerCallback("start")),C.onDone(()=>this.finish()),C.onDestroy(()=>this.destroy())}_queueEvent(C,m){Nn(this._queuedCallbacks,C,[]).push(m)}onDone(C){this.queued&&this._queueEvent("done",C),this._player.onDone(C)}onStart(C){this.queued&&this._queueEvent("start",C),this._player.onStart(C)}onDestroy(C){this.queued&&this._queueEvent("destroy",C),this._player.onDestroy(C)}init(){this._player.init()}hasStarted(){return!this.queued&&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(C){this.queued||this._player.setPosition(C)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(C){const m=this._player;m.triggerCallback&&m.triggerCallback(C)}}function ni(x){return x&&1===x.nodeType}function Ua(x,C){const m=x.style.display;return x.style.display=C??"none",m}function oi(x,C,m,M,j){const ee=[];m.forEach(Rt=>ee.push(Ua(Rt)));const xe=[];M.forEach((Rt,Zt)=>{const Gn=new Map;Rt.forEach(Qn=>{const ko=C.computeStyle(Zt,Qn,j);Gn.set(Qn,ko),(!ko||0==ko.length)&&(Zt[zi]=Va,xe.push(Zt))}),x.set(Zt,Gn)});let He=0;return m.forEach(Rt=>Ua(Rt,ee[He++])),xe}function Hs(x,C){const m=new Map;if(x.forEach(He=>m.set(He,[])),0==C.length)return m;const j=new Set(C),ee=new Map;function xe(He){if(!He)return 1;let Rt=ee.get(He);if(Rt)return Rt;const Zt=He.parentNode;return Rt=m.has(Zt)?Zt:j.has(Zt)?1:xe(Zt),ee.set(He,Rt),Rt}return C.forEach(He=>{const Rt=xe(He);1!==Rt&&m.get(Rt).push(He)}),m}function wr(x,C){x.classList?.add(C)}function Vr(x,C){x.classList?.remove(C)}function $a(x,C,m){Jn(m).onDone(()=>x.processLeaveNode(C))}function ea(x,C){for(let m=0;mj.add(ee)):C.set(x,M),m.delete(x),!0}class Bo{constructor(C,m,M){this.bodyNode=C,this._driver=m,this._normalizer=M,this._triggerCache={},this.onRemovalComplete=(j,ee)=>{},this._transitionEngine=new hi(C,m,M),this._timelineEngine=new Su(C,m,M),this._transitionEngine.onRemovalComplete=(j,ee)=>this.onRemovalComplete(j,ee)}registerTrigger(C,m,M,j,ee){const xe=C+"-"+j;let He=this._triggerCache[xe];if(!He){const Rt=[],Gn=Co(this._driver,ee,Rt,[]);if(Rt.length)throw function it(x,C){return new b.vHH(3404,!1)}();He=function ic(x,C,m){return new ml(x,C,m)}(j,Gn,this._normalizer),this._triggerCache[xe]=He}this._transitionEngine.registerTrigger(m,j,He)}register(C,m){this._transitionEngine.register(C,m)}destroy(C,m){this._transitionEngine.destroy(C,m)}onInsert(C,m,M,j){this._transitionEngine.insertNode(C,m,M,j)}onRemove(C,m,M,j){this._transitionEngine.removeNode(C,m,j||!1,M)}disableAnimations(C,m){this._transitionEngine.markElementAsDisabled(C,m)}process(C,m,M,j){if("@"==M.charAt(0)){const[ee,xe]=Zn(M);this._timelineEngine.command(ee,m,xe,j)}else this._transitionEngine.trigger(C,m,M,j)}listen(C,m,M,j,ee){if("@"==M.charAt(0)){const[xe,He]=Zn(M);return this._timelineEngine.listen(xe,m,He,ee)}return this._transitionEngine.listen(C,m,M,j,ee)}flush(C=-1){this._transitionEngine.flush(C)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Vi=(()=>{class x{constructor(m,M,j){this._element=m,this._startStyles=M,this._endStyles=j,this._state=0;let ee=x.initialStylesByElement.get(m);ee||x.initialStylesByElement.set(m,ee=new Map),this._initialStyles=ee}start(){this._state<1&&(this._startStyles&&nt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nt(this._element,this._initialStyles),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(x.initialStylesByElement.delete(this._element),this._startStyles&&(Ae(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ae(this._element,this._endStyles),this._endStyles=null),nt(this._element,this._initialStyles),this._state=3)}}return x.initialStylesByElement=new WeakMap,x})();function fa(x){let C=null;return x.forEach((m,M)=>{(function Ga(x){return"display"===x||"position"===x})(M)&&(C=C||new Map,C.set(M,m))}),C}class oo{constructor(C,m,M,j){this.element=C,this.keyframes=m,this.options=M,this._specialStyles=j,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=M.duration,this._delay=M.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(C=>C()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const C=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,C,this.options),this._finalKeyframe=C.length?C[C.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(C){const m=[];return C.forEach(M=>{m.push(Object.fromEntries(M))}),m}_triggerWebAnimation(C,m,M){return C.animate(this._convertKeyframesToObject(m),M)}onStart(C){this._originalOnStartFns.push(C),this._onStartFns.push(C)}onDone(C){this._originalOnDoneFns.push(C),this._onDoneFns.push(C)}onDestroy(C){this._onDestroyFns.push(C)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(C=>C()),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(C=>C()),this._onDestroyFns=[])}setPosition(C){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=C*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const C=new Map;this.hasStarted()&&this._finalKeyframe.forEach((M,j)=>{"offset"!==j&&C.set(j,this._finished?M:Bi(this.element,j))}),this.currentSnapshot=C}triggerCallback(C){const m="start"===C?this._onStartFns:this._onDoneFns;m.forEach(M=>M()),m.length=0}}class ii{validateStyleProperty(C){return!0}validateAnimatableStyleProperty(C){return!0}matchesElement(C,m){return!1}containsElement(C,m){return dt(C,m)}getParentElement(C){return ve(C)}query(C,m,M){return Ht(C,m,M)}computeStyle(C,m,M){return window.getComputedStyle(C)[m]}animate(C,m,M,j,ee,xe=[]){const Rt={duration:M,delay:j,fill:0==j?"both":"forwards"};ee&&(Rt.easing=ee);const Zt=new Map,Gn=xe.filter(Fo=>Fo instanceof oo);(function Ts(x,C){return 0===x||0===C})(M,j)&&Gn.forEach(Fo=>{Fo.currentSnapshot.forEach((Mo,Lo)=>Zt.set(Lo,Mo))});let Qn=function En(x){return x.length?x[0]instanceof Map?x:x.map(C=>an(C)):[]}(m).map(Fo=>_n(Fo));Qn=function mi(x,C,m){if(m.size&&C.length){let M=C[0],j=[];if(m.forEach((ee,xe)=>{M.has(xe)||j.push(xe),M.set(xe,ee)}),j.length)for(let ee=1;eexe.set(He,Bi(x,He)))}}return C}(C,Qn,Zt);const ko=function cc(x,C){let m=null,M=null;return Array.isArray(C)&&C.length?(m=fa(C[0]),C.length>1&&(M=fa(C[C.length-1]))):C instanceof Map&&(m=fa(C)),m||M?new Vi(x,m,M):null}(C,Qn);return new oo(C,Qn,Rt,ko)}}var Z=S(6895);let Y=(()=>{class x extends X._j{constructor(m,M){super(),this._nextAnimationId=0,this._renderer=m.createRenderer(M.body,{id:"0",encapsulation:b.ifc.None,styles:[],data:{animation:[]}})}build(m){const M=this._nextAnimationId.toString();this._nextAnimationId++;const j=Array.isArray(m)?(0,X.vP)(m):m;return Ft(this._renderer,null,M,"register",[j]),new U(M,this._renderer)}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(b.FYo),b.LFG(Z.K0))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();class U extends X.LC{constructor(C,m){super(),this._id=C,this._renderer=m}create(C,m){return new Me(this._id,C,m||{},this._renderer)}}class Me{constructor(C,m,M,j){this.id=C,this.element=m,this._renderer=j,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",M)}_listen(C,m){return this._renderer.listen(this.element,`@@${this.id}:${C}`,m)}_command(C,...m){return Ft(this._renderer,this.element,this.id,C,m)}onDone(C){this._listen("done",C)}onStart(C){this._listen("start",C)}onDestroy(C){this._listen("destroy",C)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(C){this._command("setPosition",C)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ft(x,C,m,M,j){return x.setProperty(C,`@@${m}:${M}`,j)}const tr="@.disabled";let Ut=(()=>{class x{constructor(m,M,j){this.delegate=m,this.engine=M,this._zone=j,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),M.onRemovalComplete=(ee,xe)=>{const He=xe?.parentNode(ee);He&&xe.removeChild(He,ee)}}createRenderer(m,M){const ee=this.delegate.createRenderer(m,M);if(!(m&&M&&M.data&&M.data.animation)){let Gn=this._rendererCache.get(ee);return Gn||(Gn=new Po("",ee,this.engine,()=>this._rendererCache.delete(ee)),this._rendererCache.set(ee,Gn)),Gn}const xe=M.id,He=M.id+"-"+this._currentId;this._currentId++,this.engine.register(He,m);const Rt=Gn=>{Array.isArray(Gn)?Gn.forEach(Rt):this.engine.registerTrigger(xe,He,m,Gn.name,Gn)};return M.data.animation.forEach(Rt),new kr(this,He,ee,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(m,M,j){m>=0&&mM(j)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ee=>{const[xe,He]=ee;xe(He)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([M,j]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(b.FYo),b.LFG(Bo),b.LFG(b.R0b))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();class Po{constructor(C,m,M,j){this.namespaceId=C,this.delegate=m,this.engine=M,this._onDestroy=j,this.destroyNode=this.delegate.destroyNode?ee=>m.destroyNode(ee):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(C,m){return this.delegate.createElement(C,m)}createComment(C){return this.delegate.createComment(C)}createText(C){return this.delegate.createText(C)}appendChild(C,m){this.delegate.appendChild(C,m),this.engine.onInsert(this.namespaceId,m,C,!1)}insertBefore(C,m,M,j=!0){this.delegate.insertBefore(C,m,M),this.engine.onInsert(this.namespaceId,m,C,j)}removeChild(C,m,M){this.engine.onRemove(this.namespaceId,m,this.delegate,M)}selectRootElement(C,m){return this.delegate.selectRootElement(C,m)}parentNode(C){return this.delegate.parentNode(C)}nextSibling(C){return this.delegate.nextSibling(C)}setAttribute(C,m,M,j){this.delegate.setAttribute(C,m,M,j)}removeAttribute(C,m,M){this.delegate.removeAttribute(C,m,M)}addClass(C,m){this.delegate.addClass(C,m)}removeClass(C,m){this.delegate.removeClass(C,m)}setStyle(C,m,M,j){this.delegate.setStyle(C,m,M,j)}removeStyle(C,m,M){this.delegate.removeStyle(C,m,M)}setProperty(C,m,M){"@"==m.charAt(0)&&m==tr?this.disableAnimations(C,!!M):this.delegate.setProperty(C,m,M)}setValue(C,m){this.delegate.setValue(C,m)}listen(C,m,M){return this.delegate.listen(C,m,M)}disableAnimations(C,m){this.engine.disableAnimations(C,m)}}class kr extends Po{constructor(C,m,M,j,ee){super(m,M,j,ee),this.factory=C,this.namespaceId=m}setProperty(C,m,M){"@"==m.charAt(0)?"."==m.charAt(1)&&m==tr?this.disableAnimations(C,M=void 0===M||!!M):this.engine.process(this.namespaceId,C,m.slice(1),M):this.delegate.setProperty(C,m,M)}listen(C,m,M){if("@"==m.charAt(0)){const j=function uc(x){switch(x){case"body":return document.body;case"document":return document;case"window":return window;default:return x}}(C);let ee=m.slice(1),xe="";return"@"!=ee.charAt(0)&&([ee,xe]=function Wr(x){const C=x.indexOf(".");return[x.substring(0,C),x.slice(C+1)]}(ee)),this.engine.listen(this.namespaceId,j,ee,xe,He=>{this.factory.scheduleListenerCallback(He._data||-1,M,He)})}return this.delegate.listen(C,m,M)}}const bl=[{provide:X._j,useClass:Y},{provide:ti,useFactory:function Uc(){return new rc}},{provide:Bo,useClass:(()=>{class x extends Bo{constructor(m,M,j,ee){super(m.body,M,j)}ngOnDestroy(){this.flush()}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(Z.K0),b.LFG(Jt),b.LFG(ti),b.LFG(b.z2F))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})()},{provide:b.FYo,useFactory:function pa(x,C,m){return new Ut(x,C,m)},deps:[o.se,Bo,b.R0b]}],zl=[{provide:Jt,useFactory:()=>new ii},{provide:b.QbO,useValue:"BrowserAnimations"},...bl],Du=[{provide:Jt,useClass:Nt},{provide:b.QbO,useValue:"NoopAnimations"},...bl];let Eu=(()=>{class x{static withConfig(m){return{ngModule:x,providers:m.disableAnimations?Du:zl}}}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=b.oAB({type:x}),x.\u0275inj=b.cJS({providers:zl,imports:[o.b2]}),x})();var Us=S(8010),Da=S(3238),No=S(9646),lr=(S(2843),S(4128),S(8505),S(4004)),Ps=S(262),yl=(S(8746),S(3099));let I=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=b.oAB({type:x}),x.\u0275inj=b.cJS({imports:[Da.BQ,Da.BQ]}),x})();var se=S(9653),$=S(493),fe=S(1324),Qe=S(825),wt=S(4535),tn=S(8405),eo=S(2340),br=S(4389),Mr=S(4865),nr=S(7234);let Uo=(()=>{class x{constructor(m,M){this.injector=m,this.userService=M,this.router=null,setTimeout(()=>this.router=m.get(A.F0))}intercept(m,M){return this.userService.isLoggedIn()&&(m=this.addToken(m,this.userService.getAuthTokenRaw())),M.handle(m.clone())}addToken(m,M){return m.clone({setHeaders:{Authorization:"Bearer "+M}})}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(b.zs3),b.LFG(br.K))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();var Ar=S(4017),or=S(3782),mr=S(1759);let Zi=(()=>{class x{static forRoot(){return{ngModule:x,providers:[{provide:ne.TP,useClass:Uo,multi:!0},br.K,nr.P,Ar.g]}}}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=b.oAB({type:x}),x.\u0275inj=b.cJS({providers:[br.K,Mr.e,nr.P,Z.uU,or.m,mr.Y],imports:[Z.ez,wt.KdK]}),x})();const fs=[{path:"control",loadChildren:()=>S.e(322).then(S.bind(S,6322)).then(x=>x.ControlModule),canActivate:[nr.P]},{path:"",loadChildren:()=>S.e(986).then(S.bind(S,986)).then(x=>x.LoginModule)},{path:"**",pathMatch:"full",redirectTo:"/"}];var na=S(5657);let qi=(()=>{class x{constructor(m,M){this.themeService=m,this.cookieService=M}ngAfterViewInit(){const m=this.cookieService.get("themeCookie"),M=["default","dark","cosmic","corporate"];if(m){const j=JSON.parse(m);M.includes(j.theme)&&this.themeService.changeTheme("dark")}else this.themeService.changeTheme("default")}}return x.\u0275fac=function(m){return new(m||x)(b.Y36(wt.WMF),b.Y36(na.N))},x.\u0275cmp=b.Xpm({type:x,selectors:[["app-root"]],decls:2,vars:0,consts:[[1,"content","light"]],template:function(m,M){1&m&&(b.TgZ(0,"div",0),b._UZ(1,"router-outlet"),b.qZA())},dependencies:[A.lC],styles:[".content[_ngcontent-%COMP%]{width:100vw;height:100vh}"]}),x})();var Qi=S(6366),ps=S(1135),Ui=S(7579),jc=S(9300),Ji=S(3900),Gc=S(4086),mc=S(2722);const Fn=[],Un={strategies:[],forms:{login:{redirectDelay:500,strategy:"email",rememberMe:!0,showMessages:{success:!0,error:!0},socialLinks:Fn},register:{redirectDelay:500,strategy:"email",showMessages:{success:!0,error:!0},terms:!0,socialLinks:Fn},requestPassword:{redirectDelay:500,strategy:"email",showMessages:{success:!0,error:!0},socialLinks:Fn},resetPassword:{redirectDelay:500,strategy:"email",showMessages:{success:!0,error:!0},socialLinks:Fn},logout:{redirectDelay:500,strategy:"email"},validation:{password:{required:!0,minLength:4,maxLength:50},email:{required:!0},fullName:{required:!1,minLength:4,maxLength:50}}}},$o=new b.OlP("Nebular Auth Options"),Eo=new b.OlP("Nebular User Auth Options"),Is=new b.OlP("Nebular Auth Strategies"),yi=new b.OlP("Nebular Auth Tokens"),Oo=new b.OlP("Nebular Simple Interceptor Header"),es=new b.OlP("Nebular Interceptor Filter"),Oa=function(...x){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];const C=arguments[0],m=Array.prototype.slice.call(arguments,1);let M,j;return m.forEach(function(ee){"object"!=typeof ee||Array.isArray(ee)||Object.keys(ee).forEach(function(xe){if(j=C[xe],M=ee[xe],M!==C)return"object"!=typeof M||null===M?void(C[xe]=M):Array.isArray(M)?void(C[xe]=ns(M)):ts(M)?void(C[xe]=Yl(M)):"object"!=typeof j||null===j||Array.isArray(j)?void(C[xe]=Oa({},M)):void(C[xe]=Oa(j,M))})}),C};function ts(x){return x instanceof Date||x instanceof RegExp}function Yl(x){if(x instanceof Date)return new Date(x.getTime());if(x instanceof RegExp)return new RegExp(x);throw new Error("cloneSpecificValue: Unexpected situation")}function ns(x){const C=[];return x.forEach(function(m,M){C[M]="object"==typeof m&&null!==m?Array.isArray(m)?ns(m):ts(m)?Yl(m):Oa({},m):m}),C}function Ms(x={},C,m){const M=C.split(".");let j=Oa({},x||{});return M.forEach(ee=>{j=j&&typeof j[ee]<"u"?j[ee]:void 0}),typeof j>"u"?m:j}class Yd{constructor(){this.payload=null}getName(){return this.constructor.NAME}getPayload(){return this.payload}}class Pf extends Error{constructor(C){super(C),Object.setPrototypeOf(this,new.target.prototype)}}class ba extends Error{constructor(C){super(C),Object.setPrototypeOf(this,new.target.prototype)}}class ra extends ba{constructor(C){super(C),Object.setPrototypeOf(this,new.target.prototype)}}function Nu(x,C,m,M){return new x(C,m,M)}let Pu=(()=>{class x extends Yd{constructor(m,M,j){super(),this.token=m,this.ownerStrategyName=M,this.createdAt=j;try{this.parsePayload()}catch(ee){if(!(ee instanceof Pf))throw ee}this.createdAt=this.prepareCreatedAt(j)}parsePayload(){this.payload=null}prepareCreatedAt(m){return m||new Date}getCreatedAt(){return this.createdAt}getValue(){return this.token}getOwnerStrategyName(){return this.ownerStrategyName}isValid(){return!!this.getValue()}toString(){return this.token?this.token:""}}return x.NAME="nb:auth:simple:token",x})(),Rf=(()=>{class x extends Pu{constructor(m={},M,j){super((x=>{if("string"==typeof x)try{return JSON.parse(x)}catch{}return x})(m),M,j)}getValue(){return this.token.access_token}getRefreshToken(){return this.token.refresh_token}setRefreshToken(m){this.token.refresh_token=m}parsePayload(){if(!this.token)throw new Pf("Token not found.");if(!Object.keys(this.token).length)throw new ra("Cannot extract payload from an empty token.");this.payload=this.token}getType(){return this.token.token_type}isValid(){return super.isValid()&&(!this.getTokenExpDate()||new Date{class x{constructor(m,M){this.fallbackClass=m,this.tokenClasses=M}wrap(m){return JSON.stringify({name:m.getName(),ownerStrategyName:m.getOwnerStrategyName(),createdAt:m.getCreatedAt().getTime(),value:m.toString()})}unwrap(m){let M=this.fallbackClass,j="",ee="",xe=null;const He=this.parseTokenPack(m);return He&&(M=this.getClassByName(He.name)||this.fallbackClass,j=He.value,ee=He.ownerStrategyName,xe=new Date(Number(He.createdAt))),Nu(M,j,ee,xe)}getClassByName(m){return this.tokenClasses.find(M=>M.NAME===m)}parseTokenPack(m){try{return JSON.parse(m)}catch{}return null}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(Oh),b.LFG(yi))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();class qc{}let Xa=(()=>{class x extends qc{constructor(m){super(),this.parceler=m,this.key="auth_app_token"}get(){const m=localStorage.getItem(this.key);return this.parceler.unwrap(m)}set(m){const M=this.parceler.wrap(m);localStorage.setItem(this.key,M)}clear(){localStorage.removeItem(this.key)}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(If))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})(),fr=(()=>{class x{constructor(m){this.tokenStorage=m,this.token$=new ps.X(null),this.publishStoredToken()}tokenChange(){return this.token$.pipe((0,jc.h)(m=>!!m),(0,yl.B)())}set(m){return this.tokenStorage.set(m),this.publishStoredToken(),(0,No.of)(null)}get(){const m=this.tokenStorage.get();return(0,No.of)(m)}clear(){return this.tokenStorage.clear(),this.publishStoredToken(),(0,No.of)(null)}publishStoredToken(){this.token$.next(this.tokenStorage.get())}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(qc))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})(),Ai=(()=>{class x{constructor(m,M){this.tokenService=m,this.strategies=M}getToken(){return this.tokenService.get()}isAuthenticated(){return this.getToken().pipe((0,lr.U)(m=>m.isValid()))}isAuthenticatedOrRefresh(){return this.getToken().pipe((0,Ji.w)(m=>m.getValue()&&!m.isValid()?this.refreshToken(m.getOwnerStrategyName(),m).pipe((0,Ji.w)(M=>M.isSuccess()?this.isAuthenticated():(0,No.of)(!1))):(0,No.of)(m.isValid())))}onTokenChange(){return this.tokenService.tokenChange()}onAuthenticationChange(){return this.onTokenChange().pipe((0,lr.U)(m=>m.isValid()))}authenticate(m,M){return this.getStrategy(m).authenticate(M).pipe((0,Ji.w)(j=>this.processResultToken(j)))}register(m,M){return this.getStrategy(m).register(M).pipe((0,Ji.w)(j=>this.processResultToken(j)))}logout(m){return this.getStrategy(m).logout().pipe((0,Ji.w)(M=>(M.isSuccess()&&this.tokenService.clear().pipe((0,lr.U)(()=>M)),(0,No.of)(M))))}requestPassword(m,M){return this.getStrategy(m).requestPassword(M)}resetPassword(m,M){return this.getStrategy(m).resetPassword(M)}refreshToken(m,M){return this.getStrategy(m).refreshToken(M).pipe((0,Ji.w)(j=>this.processResultToken(j)))}getStrategy(m){const M=this.strategies.find(j=>j.getName()===m);if(!M)throw new TypeError(`There is no Auth Strategy registered under '${m}' name`);return M}processResultToken(m){return m.isSuccess()&&m.getToken()?this.tokenService.set(m.getToken()).pipe((0,lr.U)(M=>m)):(0,No.of)(m)}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(fr),b.LFG(Is))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();class Kl{setOptions(C){this.options=Oa({},this.defaultOptions,C)}getOption(C){return Ms(this.options,C,null)}createToken(C,m){const M=Nu(this.getOption("token.class"),C,this.getName());if(m&&!M.isValid())throw new ba("Token is empty or invalid.");return M}getName(){return this.getOption("name")}createFailResponse(C){return new ne.Zn({body:{},status:401})}createSuccessResponse(C){return new ne.Zn({body:{},status:200})}getActionEndpoint(C){const m=this.getOption(`${C}.endpoint`),M=this.getOption("baseEndpoint");return m?M+m:""}getHeaders(){const C=this.getOption("headers")??{};if(C instanceof ne.WM)return C;let m=new ne.WM;return Object.entries(C).forEach(([M,j])=>{m=m.append(M,j)}),m}}class Sr{constructor(C,m,M,j,ee,xe=null){this.success=C,this.response=m,this.redirect=M,this.errors=[],this.messages=[],this.errors=this.errors.concat([j]),j instanceof Array&&(this.errors=j),this.messages=this.messages.concat([ee]),ee instanceof Array&&(this.messages=ee),this.token=xe}getResponse(){return this.response}getToken(){return this.token}getRedirect(){return this.redirect}getErrors(){return this.errors.filter(C=>!!C)}getMessages(){return this.messages.filter(C=>!!C)}isSuccess(){return this.success}isFailure(){return!this.success}}class ku{}const ad=new class yc extends ku{constructor(){super(...arguments),this.token={class:Pu},this.delay=1e3,this.alwaysFail=!1}};let Kd=(()=>{class x extends Kl{constructor(){super(...arguments),this.defaultOptions=ad}static setup(m){return[x,m]}authenticate(m){return(0,No.of)(this.createDummyResult(m)).pipe((0,Gc.g)(this.getOption("delay")))}register(m){return(0,No.of)(this.createDummyResult(m)).pipe((0,Gc.g)(this.getOption("delay")))}requestPassword(m){return(0,No.of)(this.createDummyResult(m)).pipe((0,Gc.g)(this.getOption("delay")))}resetPassword(m){return(0,No.of)(this.createDummyResult(m)).pipe((0,Gc.g)(this.getOption("delay")))}logout(m){return(0,No.of)(this.createDummyResult(m)).pipe((0,Gc.g)(this.getOption("delay")))}refreshToken(m){return(0,No.of)(this.createDummyResult(m)).pipe((0,Gc.g)(this.getOption("delay")))}createDummyResult(m){if(this.getOption("alwaysFail"))return new Sr(!1,this.createFailResponse(m),null,["Something went wrong."]);try{const M=this.createToken("test token",!0);return new Sr(!0,this.createSuccessResponse(m),"/",[],["Successfully logged in."],M)}catch(M){return new Sr(!1,this.createFailResponse(m),null,[M.message])}}}return x.\u0275fac=function(){let C;return function(M){return(C||(C=b.n5z(x)))(M||x)}}(),x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();var el=(()=>{return(x=el||(el={})).CODE="code",x.TOKEN="token",el;var x})(),Cc=(()=>{return(x=Cc||(Cc={})).AUTHORIZATION_CODE="authorization_code",x.PASSWORD="password",x.REFRESH_TOKEN="refresh_token",Cc;var x})(),Qc=(()=>{return(x=Qc||(Qc={})).NONE="none",x.BASIC="basic",x.REQUEST_BODY="request-body",Qc;var x})();const Ni=new class ld extends ku{constructor(){super(...arguments),this.baseEndpoint="",this.clientId="",this.clientSecret="",this.clientAuthMethod=Qc.NONE,this.redirect={success:"/",failure:null},this.defaultErrors=["Something went wrong, please try again."],this.defaultMessages=["You have been successfully authenticated."],this.authorize={endpoint:"authorize",responseType:el.CODE,requireValidToken:!0},this.token={endpoint:"token",grantType:Cc.AUTHORIZATION_CODE,requireValidToken:!0,class:Rf},this.refresh={endpoint:"token",grantType:Cc.REFRESH_TOKEN,requireValidToken:!0}}};let Dr=(()=>{class x extends Kl{static setup(m){return[x,m]}get responseType(){return this.getOption("authorize.responseType")}get clientAuthMethod(){return this.getOption("clientAuthMethod")}constructor(m,M,j){super(),this.http=m,this.route=M,this.window=j,this.redirectResultHandlers={[el.CODE]:()=>(0,No.of)(this.route.snapshot.queryParams).pipe((0,Ji.w)(ee=>ee.code?this.requestToken(ee.code):(0,No.of)(new Sr(!1,ee,this.getOption("redirect.failure"),this.getOption("defaultErrors"),[])))),[el.TOKEN]:()=>{const xe=this.getOption("authorize.requireValidToken");return(0,No.of)(this.route.snapshot.fragment).pipe((0,lr.U)(He=>this.parseHashAsQueryParams(He)),(0,lr.U)(He=>He.error?new Sr(!1,He,this.getOption("redirect.failure"),this.getOption("defaultErrors"),[]):new Sr(!0,He,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createToken(He,xe))),(0,Ps.K)(He=>{const Rt=[];return Rt.push(He instanceof ba?He.message:"Something went wrong."),(0,No.of)(new Sr(!1,He,this.getOption("redirect.failure"),Rt))}))}},this.redirectResults={[el.CODE]:()=>(0,No.of)(this.route.snapshot.queryParams).pipe((0,lr.U)(ee=>!(!ee||!ee.code&&!ee.error))),[el.TOKEN]:()=>(0,No.of)(this.route.snapshot.fragment).pipe((0,lr.U)(ee=>this.parseHashAsQueryParams(ee)),(0,lr.U)(ee=>!(!ee||!ee.access_token&&!ee.error)))},this.defaultOptions=Ni}authenticate(m){return this.getOption("token.grantType")===Cc.PASSWORD?this.passwordToken(m.email,m.password):this.isRedirectResult().pipe((0,Ji.w)(M=>M?this.getAuthorizationResult():(this.authorizeRedirect(),(0,No.of)(new Sr(!0)))))}getAuthorizationResult(){const m=this.redirectResultHandlers[this.responseType];if(m)return m.call(this);throw new Error(`'${this.responseType}' responseType is not supported,\n only 'token' and 'code' are supported now`)}refreshToken(m){const M="refresh",j=this.getActionEndpoint(M),ee=this.getOption(`${M}.requireValidToken`);return this.http.post(j,this.buildRefreshRequestData(m),{headers:this.getHeaders()}).pipe((0,lr.U)(xe=>new Sr(!0,xe,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createRefreshedToken(xe,m,ee))),(0,Ps.K)(xe=>this.handleResponseError(xe)))}passwordToken(m,M){const j="token",ee=this.getActionEndpoint(j),xe=this.getOption(`${j}.requireValidToken`);return this.http.post(ee,this.buildPasswordRequestData(m,M),{headers:this.getHeaders()}).pipe((0,lr.U)(He=>new Sr(!0,He,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createToken(He,xe))),(0,Ps.K)(He=>this.handleResponseError(He)))}authorizeRedirect(){this.window.location.href=this.buildRedirectUrl()}isRedirectResult(){return this.redirectResults[this.responseType].call(this)}requestToken(m){const M="token",j=this.getActionEndpoint(M),ee=this.getOption(`${M}.requireValidToken`);return this.http.post(j,this.buildCodeRequestData(m),{headers:this.getHeaders()}).pipe((0,lr.U)(xe=>new Sr(!0,xe,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createToken(xe,ee))),(0,Ps.K)(xe=>this.handleResponseError(xe)))}buildCodeRequestData(m){const M={grant_type:this.getOption("token.grantType"),code:m,redirect_uri:this.getOption("token.redirectUri"),client_id:this.getOption("clientId")};return this.urlEncodeParameters(this.cleanParams(this.addCredentialsToParams(M)))}buildRefreshRequestData(m){const M={grant_type:this.getOption("refresh.grantType"),refresh_token:m.getRefreshToken(),scope:this.getOption("refresh.scope"),client_id:this.getOption("clientId")};return this.urlEncodeParameters(this.cleanParams(this.addCredentialsToParams(M)))}buildPasswordRequestData(m,M){const j={grant_type:this.getOption("token.grantType"),username:m,password:M,scope:this.getOption("token.scope")};return this.urlEncodeParameters(this.cleanParams(this.addCredentialsToParams(j)))}buildAuthHeader(){if(this.clientAuthMethod===Qc.BASIC){if(this.getOption("clientId")&&this.getOption("clientSecret"))return new ne.WM({Authorization:"Basic "+btoa(this.getOption("clientId")+":"+this.getOption("clientSecret"))});throw Error("For basic client authentication method, please provide both clientId & clientSecret.")}}getHeaders(){let m=super.getHeaders();m=m.append("Content-Type","application/x-www-form-urlencoded");const M=this.buildAuthHeader();if(void 0===M)return m;for(const j of M.keys())for(const ee of M.getAll(j))m=m.append(j,ee);return m}cleanParams(m){return Object.entries(m).forEach(([M,j])=>!j&&delete m[M]),m}addCredentialsToParams(m){if(this.clientAuthMethod===Qc.REQUEST_BODY){if(this.getOption("clientId")&&this.getOption("clientSecret"))return{...m,client_id:this.getOption("clientId"),client_secret:this.getOption("clientSecret")};throw Error("For request body client authentication method, please provide both clientId & clientSecret.")}return m}handleResponseError(m){let M=[];return m instanceof ne.UA?m.error.error_description?M.push(m.error.error_description):M=this.getOption("defaultErrors"):M.push(m instanceof ba?m.message:"Something went wrong."),(0,No.of)(new Sr(!1,m,this.getOption("redirect.failure"),M,[]))}buildRedirectUrl(){const m={response_type:this.getOption("authorize.responseType"),client_id:this.getOption("clientId"),redirect_uri:this.getOption("authorize.redirectUri"),scope:this.getOption("authorize.scope"),state:this.getOption("authorize.state"),...this.getOption("authorize.params")};return`${this.getActionEndpoint("authorize")}?${this.urlEncodeParameters(this.cleanParams(m))}`}parseHashAsQueryParams(m){return m?m.split("&").reduce((M,j)=>{const ee=j.split("=");return M[ee[0]]=decodeURIComponent(ee[1]),M},{}):{}}urlEncodeParameters(m){return Object.keys(m).map(M=>`${encodeURIComponent(M)}=${encodeURIComponent(m[M])}`).join("&")}createRefreshedToken(m,M,j){const ee=this.createToken(m,j);return!ee.getRefreshToken()&&M.getRefreshToken()&&ee.setRefreshToken(M.getRefreshToken()),ee}register(m){throw new Error("`register` is not supported by `NbOAuth2AuthStrategy`, use `authenticate`.")}requestPassword(m){throw new Error("`requestPassword` is not supported by `NbOAuth2AuthStrategy`, use `authenticate`.")}resetPassword(m={}){throw new Error("`resetPassword` is not supported by `NbOAuth2AuthStrategy`, use `authenticate`.")}logout(){return(0,No.of)(new Sr(!0))}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(ne.eN),b.LFG(A.gz),b.LFG(wt.Q3p))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();const Ru=new class Dn extends ku{constructor(){super(...arguments),this.baseEndpoint="/api/auth/",this.login={alwaysFail:!1,endpoint:"login",method:"post",requireValidToken:!0,redirect:{success:"/",failure:null},defaultErrors:["Login/Email combination is not correct, please try again."],defaultMessages:["You have been successfully logged in."]},this.register={alwaysFail:!1,endpoint:"register",method:"post",requireValidToken:!0,redirect:{success:"/",failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["You have been successfully registered."]},this.requestPass={endpoint:"request-pass",method:"post",redirect:{success:"/",failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["Reset password instructions have been sent to your email."]},this.resetPass={endpoint:"reset-pass",method:"put",redirect:{success:"/",failure:null},resetPasswordTokenKey:"reset_password_token",defaultErrors:["Something went wrong, please try again."],defaultMessages:["Your password has been successfully changed."]},this.logout={alwaysFail:!1,endpoint:"logout",method:"delete",redirect:{success:"/",failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["You have been successfully logged out."]},this.refreshToken={endpoint:"refresh-token",method:"post",requireValidToken:!0,redirect:{success:null,failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["Your token has been successfully refreshed."]},this.token={class:Pu,key:"data.token",getter:(C,m,M)=>Ms(m.body,M.token.key)},this.errors={key:"data.errors",getter:(C,m,M)=>Ms(m.error,M.errors.key,M[C].defaultErrors)},this.messages={key:"data.messages",getter:(C,m,M)=>Ms(m.body,M.messages.key,M[C].defaultMessages)}}};let Jr=(()=>{class x extends Kl{static setup(m){return[x,m]}constructor(m,M){super(),this.http=m,this.route=M,this.defaultOptions=Ru}authenticate(m){const M="login",j=this.getOption(`${M}.method`),ee=this.getActionEndpoint(M),xe=this.getOption(`${M}.requireValidToken`);return this.http.request(j,ee,{body:m,observe:"response",headers:this.getHeaders()}).pipe((0,lr.U)(He=>{if(this.getOption(`${M}.alwaysFail`))throw this.createFailResponse(m);return He}),(0,lr.U)(He=>new Sr(!0,He,this.getOption(`${M}.redirect.success`),[],this.getOption("messages.getter")(M,He,this.options),this.createToken(this.getOption("token.getter")(M,He,this.options),xe))),(0,Ps.K)(He=>this.handleResponseError(He,M)))}register(m){const M="register",j=this.getOption(`${M}.method`),ee=this.getActionEndpoint(M),xe=this.getOption(`${M}.requireValidToken`);return this.http.request(j,ee,{body:m,observe:"response",headers:this.getHeaders()}).pipe((0,lr.U)(He=>{if(this.getOption(`${M}.alwaysFail`))throw this.createFailResponse(m);return He}),(0,lr.U)(He=>new Sr(!0,He,this.getOption(`${M}.redirect.success`),[],this.getOption("messages.getter")(M,He,this.options),this.createToken(this.getOption("token.getter")("login",He,this.options),xe))),(0,Ps.K)(He=>this.handleResponseError(He,M)))}requestPassword(m){const M="requestPass",j=this.getOption(`${M}.method`),ee=this.getActionEndpoint(M);return this.http.request(j,ee,{body:m,observe:"response",headers:this.getHeaders()}).pipe((0,lr.U)(xe=>{if(this.getOption(`${M}.alwaysFail`))throw this.createFailResponse();return xe}),(0,lr.U)(xe=>new Sr(!0,xe,this.getOption(`${M}.redirect.success`),[],this.getOption("messages.getter")(M,xe,this.options))),(0,Ps.K)(xe=>this.handleResponseError(xe,M)))}resetPassword(m={}){const M="resetPass",j=this.getOption(`${M}.method`),ee=this.getActionEndpoint(M),xe=this.getOption(`${M}.resetPasswordTokenKey`);return m[xe]=this.route.snapshot.queryParams[xe],this.http.request(j,ee,{body:m,observe:"response",headers:this.getHeaders()}).pipe((0,lr.U)(He=>{if(this.getOption(`${M}.alwaysFail`))throw this.createFailResponse();return He}),(0,lr.U)(He=>new Sr(!0,He,this.getOption(`${M}.redirect.success`),[],this.getOption("messages.getter")(M,He,this.options))),(0,Ps.K)(He=>this.handleResponseError(He,M)))}logout(){const m="logout",M=this.getOption(`${m}.method`),j=this.getActionEndpoint(m);return(0,No.of)({}).pipe((0,Ji.w)(ee=>j?this.http.request(M,j,{observe:"response",headers:this.getHeaders()}):(0,No.of)(ee)),(0,lr.U)(ee=>{if(this.getOption(`${m}.alwaysFail`))throw this.createFailResponse();return ee}),(0,lr.U)(ee=>new Sr(!0,ee,this.getOption(`${m}.redirect.success`),[],this.getOption("messages.getter")(m,ee,this.options))),(0,Ps.K)(ee=>this.handleResponseError(ee,m)))}refreshToken(m){const M="refreshToken",j=this.getOption(`${M}.method`),ee=this.getActionEndpoint(M),xe=this.getOption(`${M}.requireValidToken`);return this.http.request(j,ee,{body:m,observe:"response",headers:this.getHeaders()}).pipe((0,lr.U)(He=>{if(this.getOption(`${M}.alwaysFail`))throw this.createFailResponse(m);return He}),(0,lr.U)(He=>new Sr(!0,He,this.getOption(`${M}.redirect.success`),[],this.getOption("messages.getter")(M,He,this.options),this.createToken(this.getOption("token.getter")(M,He,this.options),xe))),(0,Ps.K)(He=>this.handleResponseError(He,M)))}handleResponseError(m,M){let j=[];return m instanceof ne.UA?j=this.getOption("errors.getter")(M,m,this.options):j.push(m instanceof ba?m.message:"Something went wrong."),(0,No.of)(new Sr(!1,m,this.getOption(`${M}.redirect.failure`),j))}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(ne.eN),b.LFG(A.gz))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();function ia(x,C){const m=[];return x.strategies.forEach(([M,j])=>{const ee=C.get(M);ee.setOptions(j),m.push(ee)}),m}function Ah(x){const C=[];return x.forEach(m=>{C.push(m.getOption("token.class"))}),C}function Nh(x){return Oa(Un,x)}function Mc(x){return!0}let ud=(()=>{class x{static forRoot(m){return{ngModule:x,providers:[{provide:Eo,useValue:m},{provide:$o,useFactory:Nh,deps:[Eo]},{provide:Is,useFactory:ia,deps:[$o,b.zs3]},{provide:yi,useFactory:Ah,deps:[Is]},{provide:Oh,useValue:Pu},{provide:Oo,useValue:"Authorization"},{provide:es,useValue:Mc},{provide:qc,useClass:Xa},If,Ai,fr,Kd,Jr,Dr]}}}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=b.oAB({type:x}),x.\u0275inj=b.cJS({imports:[Z.ez,wt.BW0,wt.zyh,wt.MfT,wt.PYG,wt.nKr,wt.T2N,A.Bz,F.u5,wt.KdK]}),x})();var Iu=S(3856);let dd=(()=>{class x{constructor(m,M){this.location=m,this.router=M,this.enabled=!1}trackPageViews(){this.enabled&&this.router.events.pipe((0,jc.h)(m=>m instanceof A.m2)).subscribe(()=>{ga("send",{hitType:"pageview",page:this.location.path()})})}trackEvent(m){this.enabled&&ga("send","event",m)}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(Z.Ye),b.LFG(A.F0))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();var kh=S(266);let gs=(()=>{class x{constructor(){this.playlist=[{name:"Don't Wanna Fight",artist:"Alabama Shakes",url:"https://p.scdn.co/mp3-preview/6156cdbca425a894972c02fca9d76c0b70e001af",cover:"assets/images/cover1.jpg"},{name:"Harder",artist:"Daft Punk",url:"https://p.scdn.co/mp3-preview/92a04c7c0e96bf93a1b1b1cae7dfff1921969a7b",cover:"assets/images/cover2.jpg"},{name:"Come Together",artist:"Beatles",url:"https://p.scdn.co/mp3-preview/83090a4db6899eaca689ae35f69126dbe65d94c9",cover:"assets/images/cover3.jpg"}]}random(){return this.current=Math.floor(Math.random()*this.playlist.length),this.playlist[this.current]}next(){return this.getNextTrack()}prev(){return this.getPrevTrack()}getNextTrack(){return this.current===this.playlist.length-1?this.current=0:this.current++,this.playlist[this.current]}getPrevTrack(){return 0===this.current?this.current=this.playlist.length-1:this.current--,this.playlist[this.current]}}return x.\u0275fac=function(m){return new(m||x)},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})(),Fu=(()=>{class x{constructor(m,M,j){this.router=m,this.destroy$=new Ui.x,this.isBrowser=(0,Z.NF)(j),this.dom=M,this.isBrowser&&this.createCanonicalTag()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}createCanonicalTag(){this.linkCanonical=this.dom.createElement("link"),this.linkCanonical.setAttribute("rel","canonical"),this.dom.head.appendChild(this.linkCanonical),this.linkCanonical.setAttribute("href",this.getCanonicalUrl())}trackCanonicalChanges(){!this.isBrowser||this.router.events.pipe((0,jc.h)(m=>m instanceof A.m2),(0,mc.R)(this.destroy$)).subscribe(()=>{this.linkCanonical.setAttribute("href",this.getCanonicalUrl())})}getCanonicalUrl(){return this.dom.location.origin+this.dom.location.pathname}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(A.F0),b.LFG(wt.qT3),b.LFG(b.Lbi))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();var Ff=S(2529);let Lu=(()=>{class x{constructor(m){this.layouts=[{name:"One Column",icon:"nb-layout-default",id:"one-column",selected:!0},{name:"Two Column",icon:"nb-layout-two-column",id:"two-column"},{name:"Center Column",icon:"nb-layout-centre",id:"center-column"}],this.sidebars=[{name:"Sidebar at layout start",icon:"nb-layout-sidebar-left",id:"start",selected:!0},{name:"Sidebar at layout end",icon:"nb-layout-sidebar-right",id:"end"}],this.layoutState$=new ps.X(this.layouts[0]),this.sidebarState$=new ps.X(this.sidebars[0]),this.alive=!0,m.onDirectionChange().pipe((0,Ff.o)(()=>this.alive)).subscribe(M=>this.updateSidebarIcons(M)),this.updateSidebarIcons(m.getDirection())}ngOnDestroy(){this.alive=!1}updateSidebarIcons(m){const[M,j]=this.sidebars,ee=m===wt.xdM.LTR,He=ee?"nb-layout-sidebar-right":"nb-layout-sidebar-left";M.icon=ee?"nb-layout-sidebar-left":"nb-layout-sidebar-right",j.icon=He}setLayoutState(m){this.layoutState$.next(m)}getLayoutStates(){return(0,No.of)(this.layouts)}onLayoutState(){return this.layoutState$.asObservable()}setSidebarState(m){this.sidebarState$.next(m)}getSidebarStates(){return(0,No.of)(this.sidebars)}onSidebarState(){return this.sidebarState$.asObservable()}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(wt.nXk))},x.\u0275prov=b.Yz7({token:x,factory:x.\u0275fac}),x})();const Lf=[{url:"https://github.com/akveo/nebular",target:"_blank",icon:"github"},{url:"https://www.facebook.com/akveo/",target:"_blank",icon:"facebook"},{url:"https://twitter.com/akveo_inc",target:"_blank",icon:"twitter"}],Ih=[...ud.forRoot({strategies:[Kd.setup({name:"email",delay:3e3})],forms:{login:{socialLinks:Lf},register:{socialLinks:Lf}}}).providers,Iu.KQ.forRoot({accessControl:{guest:{view:"*"},user:{parent:"guest",create:"*",edit:"*",remove:"*"}}}).providers,{provide:Iu.wL,useClass:class Ss extends Iu.wL{getRole(){return(0,No.of)("guest")}}},dd,kh.P,gs,Fu,Lu];let qd=(()=>{class x{constructor(m){!function Fs(x,C){if(x)throw new Error(`${C} has already been loaded. Import Core modules in the AppModule only.`)}(m,"CoreModule")}static forRoot(){return{ngModule:x,providers:[...Ih]}}}return x.\u0275fac=function(m){return new(m||x)(b.LFG(x,12))},x.\u0275mod=b.oAB({type:x}),x.\u0275inj=b.cJS({imports:[Z.ez,ud]}),x})(),w0=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=b.oAB({type:x,bootstrap:[qi]}),x.\u0275inj=b.cJS({imports:[o.b2,F.u5,F.UX,ne.JF,Eu,Zi.forRoot(),A.Bz.forRoot(fs),Us.ZX,I,Qe.FT,se.Aw.forRoot(fe.m5.l,{}),$.sQ.forRoot([fe.xO,fe.ZD,fe.tT,fe.hv]),eo.N.production?[]:Qe.FT.instrument(),wt.SDF.forRoot(),tn.$,wt.P1.forRoot(),wt.j5J.forRoot(),wt.OA.forRoot(),wt.j7H.forRoot(),wt.wXm.forRoot(),wt.LW9.forRoot(),qd.forRoot(),Qi.O.forRoot(),wt.zyh]}),x})();o.q6().bootstrapModule(w0).catch(x=>console.error(x))},6773:function(et){typeof self<"u"&&self,et.exports=function(pe){var S={};function o(A){if(S[A])return S[A].exports;var F=S[A]={i:A,l:!1,exports:{}};return pe[A].call(F.exports,F,F.exports,o),F.l=!0,F.exports}return o.m=pe,o.c=S,o.d=function(A,F,ne){o.o(A,F)||Object.defineProperty(A,F,{enumerable:!0,get:ne})},o.r=function(A){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},o.t=function(A,F){if(1&F&&(A=o(A)),8&F||4&F&&"object"==typeof A&&A&&A.__esModule)return A;var ne=Object.create(null);if(o.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:A}),2&F&&"string"!=typeof A)for(var b in A)o.d(ne,b,function(X){return A[X]}.bind(null,b));return ne},o.n=function(A){var F=A&&A.__esModule?function(){return A.default}:function(){return A};return o.d(F,"a",F),F},o.o=function(A,F){return Object.prototype.hasOwnProperty.call(A,F)},o.p="",o(o.s="./package/src/index.js")}({"./node_modules/classnames/dedupe.js":function(pe,S,o){var F;!function(){"use strict";var ne=function(){function b(){}function X(Ie,Re){for(var tt=Re.length,_e=0;_e',"alert-circle":'',"alert-triangle":'',archive:'',"arrow-back":'',"arrow-circle-down":'',"arrow-circle-left":'',"arrow-circle-right":'',"arrow-circle-up":'',"arrow-down":'',"arrow-downward":'',"arrow-forward":'',"arrow-ios-back":'',"arrow-ios-downward":'',"arrow-ios-forward":'',"arrow-ios-upward":'',"arrow-left":'',"arrow-right":'',"arrow-up":'',"arrow-upward":'',"arrowhead-down":'',"arrowhead-left":'',"arrowhead-right":'',"arrowhead-up":'',at:'',"attach-2":'',attach:'',award:'',backspace:'',"bar-chart-2":'',"bar-chart":'',battery:'',behance:'',"bell-off":'',bell:'',bluetooth:'',"book-open":'',book:'',bookmark:'',briefcase:'',browser:'',brush:'',bulb:'',calendar:'',camera:'',car:'',cast:'',charging:'',"checkmark-circle-2":'',"checkmark-circle":'',"checkmark-square-2":'',"checkmark-square":'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',clipboard:'',clock:'',"close-circle":'',"close-square":'',close:'',"cloud-download":'',"cloud-upload":'',"code-download":'',code:'',collapse:'',"color-palette":'',"color-picker":'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',"credit-card":'',crop:'',cube:'',"diagonal-arrow-left-down":'',"diagonal-arrow-left-up":'',"diagonal-arrow-right-down":'',"diagonal-arrow-right-up":'',"done-all":'',download:'',"droplet-off":'',droplet:'',"edit-2":'',edit:'',email:'',expand:'',"external-link":'',"eye-off-2":'',"eye-off":'',eye:'',facebook:'',"file-add":'',"file-remove":'',"file-text":'',file:'',film:'',flag:'',"flash-off":'',flash:'',"flip-2":'',flip:'',"folder-add":'',"folder-remove":'',folder:'',funnel:'',gift:'',github:'',"globe-2":'',"globe-3":'',globe:'',google:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',home:'',"image-2":'',image:'',inbox:'',info:'',keypad:'',layers:'',layout:'',"link-2":'',link:'',linkedin:'',list:'',lock:'',"log-in":'',"log-out":'',map:'',maximize:'',"menu-2":'',"menu-arrow":'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',move:'',music:'',"navigation-2":'',navigation:'',npm:'',"options-2":'',options:'',pantone:'',"paper-plane":'',"pause-circle":'',people:'',percent:'',"person-add":'',"person-delete":'',"person-done":'',"person-remove":'',person:'',"phone-call":'',"phone-missed":'',"phone-off":'',phone:'',"pie-chart-2":'',"pie-chart":'',pin:'',"play-circle":'',"plus-circle":'',"plus-square":'',plus:'',power:'',pricetags:'',printer:'',"question-mark-circle":'',"question-mark":'',"radio-button-off":'',"radio-button-on":'',radio:'',recording:'',refresh:'',repeat:'',"rewind-left":'',"rewind-right":'',save:'',scissors:'',search:'',"settings-2":'',settings:'',shake:'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',"shuffle-2":'',shuffle:'',"skip-back":'',"skip-forward":'',slash:'',smartphone:'',"smiling-face":'