diff --git a/frontend/server/modelsmith-build/browser/chunk-5Z5NA6W3.js b/frontend/server/modelsmith-build/browser/chunk-2EDU45QX.js similarity index 94% rename from frontend/server/modelsmith-build/browser/chunk-5Z5NA6W3.js rename to frontend/server/modelsmith-build/browser/chunk-2EDU45QX.js index b846f7ac..5ae6ef17 100644 --- a/frontend/server/modelsmith-build/browser/chunk-5Z5NA6W3.js +++ b/frontend/server/modelsmith-build/browser/chunk-2EDU45QX.js @@ -1 +1 @@ -import{a as N}from"./chunk-OZEKUFJS.js";import{a as I}from"./chunk-PEPQONB2.js";import"./chunk-7XUVQUZC.js";import"./chunk-MM4TEEVS.js";import{a as M,b as Mt,c as Nt,d as z}from"./chunk-4KDFY6RG.js";import"./chunk-U7NPFWER.js";import{a as Pt,h as _t}from"./chunk-VMZY47C3.js";import{b as Ot}from"./chunk-ZPFJPO4G.js";import{A as x,Aa as Y,Ad as vt,C as Z,Ca as tt,Cc as St,Cd as f,Da as K,G as J,Gd as Ct,Ja as et,Ka as it,La as rt,Ld as At,Md as _,Na as h,P as v,Pa as U,S as W,T as C,Ta as ot,U as A,Xb as mt,Z as w,Zb as V,Zc as yt,Zd as Tt,_ as k,_b as st,a as L,b as R,dc as lt,ec as pt,fb as nt,he as Ft,ja as n,ka as c,kc as ct,lc as d,m as S,nc as ht,oc as T,pb as at,pc as F,qa as j,qc as ft,rd as O,s as $,sa as a,sd as u,uc as dt,ud as P,vc as ut,w as y,wa as m,wd as g,xa as s,xc as gt,ya as D,z as q,za as X,zd as Q}from"./chunk-XZNUB5IR.js";function Lt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}function Rt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}var l,b=(l=class{get parentFormGroup(){return this.controlContainer.control}get algorithmFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmFormControl(){return this.algorithmFormGroup?.get(this.ALGORITHM_CONTROL_NAME)}constructor(t,e){this.controlContainer=t,this.scriptFacadeService=e,this.controlKey="",this.pruningAlgorithmsList=Mt,this.quantAlgorithmsList=Nt,this.ALGORITHM_CONTROL_NAME="alg"}ngOnInit(){this.initForm(),this.listenToScriptStateChanges(),this.loadInitialData()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(J(1),x(1),y(t=>!vt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===f.PRUNING||e===f.QUANTIZATION?t.algKey:z;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(P.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new F({[this.ALGORITHM_CONTROL_NAME]:new ft(z,ct.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(u(this)).subscribe(t=>{g(t)?this.algorithmFormGroup.disable():this.algorithmFormGroup.enable()})}trackByAlgorithmKey(t,e){return e.key}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(d),c(_))},l.\u0275cmp=C({type:l,selectors:[["ms-panel-algorithm"]],inputs:{controlKey:"controlKey"},features:[ot([],[{provide:d,useFactory:()=>W(d,{skipSelf:!0})}])],decls:10,vars:6,consts:[[1,"ms-card","algorithm-card"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],["label","Pruning"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["label","Quantization"],[3,"value"]],template:function(e,i){e&1&&(m(0,"mat-card",0)(1,"p",1),h(2,"Algorithm"),s(),m(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4)(6,"mat-optgroup",5),j(7,Lt,2,2,"mat-option",6),s(),m(8,"mat-optgroup",7),j(9,Rt,2,2,"mat-option",6),s()()()()()),e&2&&(n(3),a("formGroupName",i.controlKey),n(2),a("formControlName",i.ALGORITHM_CONTROL_NAME),n(2),a("ngForOf",i.pruningAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey),n(2),a("ngForOf",i.quantAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey))},dependencies:[nt,Tt,yt,Ft,pt,lt,ht,T,gt,ut]}),l);b=S([O()],b);var H="custommodel";function It(r){let t=r.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9_]/.test(t)&&(t="file_"+t),/.py$/.test(t)||(t+=".py"),t}var kt=["panelParameters"],p,G=(p=class{constructor(t,e,i,o){this.scriptFacadeService=t,this.fileService=e,this.snackbarService=i,this.router=o,this.form=new F({}),this.AlgorithmType=f,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Ct.IMP,this.selectedAlgorithmType=f.PRUNING}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(q(50),$(()=>{let t=this.form.getRawValue();return t.algorithm&&t.algorithm.alg}),Z(),y(t=>!Q(t)),u(this)).subscribe(t=>{this.selectedAlgorithm=t,this.selectedAlgorithmType=At(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(u(this)).subscribe(t=>{this.isScriptActive=g(t),g(t)?this.form.disable():this.form.enable()})}submit(){if(Q(this.selectedAlgorithm)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{algorithm:t,model:e}=this.form.getRawValue(),{model:i}=e;if(i===H&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===H?It(this.fileService?.file.name):i,E=R(L({},t),{params:R(L({},this.panelParametersComponent.parametersFormatted),{arch:o})});this.scriptFacadeService.dispatch(P.callScript({configs:E}))}goToChartPage(){this.router.navigate([st.RUNNING.ROOT])}},p.\u0275fac=function(e){return new(e||p)(c(_),c(_t),c(Pt),c(mt))},p.\u0275cmp=C({type:p,selectors:[["ms-machine-unlearning"]],viewQuery:function(e,i){if(e&1&&et(kt,5),e&2){let o;it(o=rt())&&(i.panelParametersComponent=o.first)}},decls:17,vars:5,consts:[["panelAlgorithm",""],["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","algorithm"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(e,i){if(e&1){let o=tt();m(0,"p",2),h(1,"Model Compression"),s(),m(2,"div",3)(3,"div",4),X(4,5),D(5,"ms-panel-algorithm",6,0)(7,"ms-panel-model",7)(8,"ms-panel-parameters",8,1),Y(),m(10,"div")(11,"button",9),K("click",function(){return w(o),k(i.submit())}),h(12," Run "),s(),m(13,"button",10),K("click",function(){return w(o),k(i.goToChartPage())}),h(14,"View Chart"),s()()(),m(15,"div",11),D(16,"ms-terminal"),s()()}e&2&&(n(2),a("formGroup",i.form),n(2),a("formGroup",i.form),n(3),a("algorithmType",i.selectedAlgorithmType),n(),a("algorithm",i.selectedAlgorithm),n(3),a("disabled",i.isScriptActive||i.form.invalid))},dependencies:[St,T,dt,M,N,I,b],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),p);G=S([O()],G);var jt=[{path:"",component:G}],bt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[V.forChild(jt),V]});let r=t;return r})();var ke=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,Ot,bt,M,N,I]});let r=t;return r})();export{ke as ModelCompressionModule}; +import{a as N}from"./chunk-M5CIZNTW.js";import{a as I}from"./chunk-C4BAO3YM.js";import"./chunk-FQJTC3NS.js";import"./chunk-WL3ZZTTC.js";import{a as M,b as Mt,c as Nt,d as z}from"./chunk-4LH6YZUP.js";import"./chunk-VBDJDMQD.js";import{a as Pt,h as _t}from"./chunk-3ZHMSG5W.js";import{b as Ot}from"./chunk-KK5JZLDV.js";import{A as x,Aa as Y,Ad as vt,C as Z,Ca as tt,Cc as St,Cd as f,Da as K,G as J,Gd as Ct,Ja as et,Ka as it,La as rt,Ld as At,Md as _,Na as h,P as v,Pa as U,S as W,T as C,Ta as ot,U as A,Xb as mt,Z as w,Zb as V,Zc as yt,Zd as Tt,_ as k,_b as st,a as L,b as R,dc as lt,ec as pt,fb as nt,he as Ft,ja as n,ka as c,kc as ct,lc as d,m as S,nc as ht,oc as T,pb as at,pc as F,qa as j,qc as ft,rd as O,s as $,sa as a,sd as u,uc as dt,ud as P,vc as ut,w as y,wa as m,wd as g,xa as s,xc as gt,ya as D,z as q,za as X,zd as Q}from"./chunk-JA5VSLUI.js";function Lt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}function Rt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}var l,b=(l=class{get parentFormGroup(){return this.controlContainer.control}get algorithmFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmFormControl(){return this.algorithmFormGroup?.get(this.ALGORITHM_CONTROL_NAME)}constructor(t,e){this.controlContainer=t,this.scriptFacadeService=e,this.controlKey="",this.pruningAlgorithmsList=Mt,this.quantAlgorithmsList=Nt,this.ALGORITHM_CONTROL_NAME="alg"}ngOnInit(){this.initForm(),this.listenToScriptStateChanges(),this.loadInitialData()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(J(1),x(1),y(t=>!vt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===f.PRUNING||e===f.QUANTIZATION?t.algKey:z;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(P.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new F({[this.ALGORITHM_CONTROL_NAME]:new ft(z,ct.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(u(this)).subscribe(t=>{g(t)?this.algorithmFormGroup.disable():this.algorithmFormGroup.enable()})}trackByAlgorithmKey(t,e){return e.key}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(d),c(_))},l.\u0275cmp=C({type:l,selectors:[["ms-panel-algorithm"]],inputs:{controlKey:"controlKey"},features:[ot([],[{provide:d,useFactory:()=>W(d,{skipSelf:!0})}])],decls:10,vars:6,consts:[[1,"ms-card","algorithm-card"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],["label","Pruning"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["label","Quantization"],[3,"value"]],template:function(e,i){e&1&&(m(0,"mat-card",0)(1,"p",1),h(2,"Algorithm"),s(),m(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4)(6,"mat-optgroup",5),j(7,Lt,2,2,"mat-option",6),s(),m(8,"mat-optgroup",7),j(9,Rt,2,2,"mat-option",6),s()()()()()),e&2&&(n(3),a("formGroupName",i.controlKey),n(2),a("formControlName",i.ALGORITHM_CONTROL_NAME),n(2),a("ngForOf",i.pruningAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey),n(2),a("ngForOf",i.quantAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey))},dependencies:[nt,Tt,yt,Ft,pt,lt,ht,T,gt,ut]}),l);b=S([O()],b);var H="custommodel";function It(r){let t=r.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9_]/.test(t)&&(t="file_"+t),/.py$/.test(t)||(t+=".py"),t}var kt=["panelParameters"],p,G=(p=class{constructor(t,e,i,o){this.scriptFacadeService=t,this.fileService=e,this.snackbarService=i,this.router=o,this.form=new F({}),this.AlgorithmType=f,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Ct.IMP,this.selectedAlgorithmType=f.PRUNING}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(q(50),$(()=>{let t=this.form.getRawValue();return t.algorithm&&t.algorithm.alg}),Z(),y(t=>!Q(t)),u(this)).subscribe(t=>{this.selectedAlgorithm=t,this.selectedAlgorithmType=At(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(u(this)).subscribe(t=>{this.isScriptActive=g(t),g(t)?this.form.disable():this.form.enable()})}submit(){if(Q(this.selectedAlgorithm)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{algorithm:t,model:e}=this.form.getRawValue(),{model:i}=e;if(i===H&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===H?It(this.fileService?.file.name):i,E=R(L({},t),{params:R(L({},this.panelParametersComponent.parametersFormatted),{arch:o})});this.scriptFacadeService.dispatch(P.callScript({configs:E}))}goToChartPage(){this.router.navigate([st.RUNNING.ROOT])}},p.\u0275fac=function(e){return new(e||p)(c(_),c(_t),c(Pt),c(mt))},p.\u0275cmp=C({type:p,selectors:[["ms-machine-unlearning"]],viewQuery:function(e,i){if(e&1&&et(kt,5),e&2){let o;it(o=rt())&&(i.panelParametersComponent=o.first)}},decls:17,vars:5,consts:[["panelAlgorithm",""],["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","algorithm"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(e,i){if(e&1){let o=tt();m(0,"p",2),h(1,"Model Compression"),s(),m(2,"div",3)(3,"div",4),X(4,5),D(5,"ms-panel-algorithm",6,0)(7,"ms-panel-model",7)(8,"ms-panel-parameters",8,1),Y(),m(10,"div")(11,"button",9),K("click",function(){return w(o),k(i.submit())}),h(12," Run "),s(),m(13,"button",10),K("click",function(){return w(o),k(i.goToChartPage())}),h(14,"View Chart"),s()()(),m(15,"div",11),D(16,"ms-terminal"),s()()}e&2&&(n(2),a("formGroup",i.form),n(2),a("formGroup",i.form),n(3),a("algorithmType",i.selectedAlgorithmType),n(),a("algorithm",i.selectedAlgorithm),n(3),a("disabled",i.isScriptActive||i.form.invalid))},dependencies:[St,T,dt,M,N,I,b],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),p);G=S([O()],G);var jt=[{path:"",component:G}],bt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[V.forChild(jt),V]});let r=t;return r})();var ke=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,Ot,bt,M,N,I]});let r=t;return r})();export{ke as ModelCompressionModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-VMZY47C3.js b/frontend/server/modelsmith-build/browser/chunk-3ZHMSG5W.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-VMZY47C3.js rename to frontend/server/modelsmith-build/browser/chunk-3ZHMSG5W.js index 6b0ebeee..ab629729 100644 --- a/frontend/server/modelsmith-build/browser/chunk-VMZY47C3.js +++ b/frontend/server/modelsmith-build/browser/chunk-3ZHMSG5W.js @@ -1 +1 @@ -import{Ab as A,Bb as U,I as b,Kb as g,Lb as f,Md as V,O as a,Ob as l,Pb as y,Qb as F,R as s,Rb as D,Sb as I,Ub as Q,Ud as Y,Vd as v,Wd as J,Xb as q,_b as H,a as u,b as p,bc as h,cd as T,dd as X,ed as S,f as z,h as $,i as L,o as x,s as P,u as O,ud as K,w as B,x as j,zb as c}from"./chunk-XZNUB5IR.js";var lt=5e3,W=5e3,ft=1e4,Z=(()=>{let t=class t{constructor(r){this.snackbar=r}showSuccess(r){this.showBanner(r,v.SUCCESS,lt,"notification-panel-success")}showInfo(r){this.showBanner(r,v.INFO,W,"notification-panel-info")}showError(r){this.showBanner(r,v.ERROR,ft,"notification-panel-error")}showWarning(r){this.showBanner(r,v.WARNING,W,"notification-panel-warning")}showBanner(r,i,o,m){this.snackbar.openFromComponent(J,{duration:o,data:{message:r,notificationType:i},panelClass:m})}};t.\u0275fac=function(i){return new(i||t)(s(Y))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var n=A({source:"[Core -> Charts]",events:{"Get Current Pruning Chart Data":U(),"Get Current Pruning Chart Data Success":c(),"Get Current Pruning Chart Data Failure":c(),"Get Current Quantization Chart Data":U(),"Get Current Quantization Chart Data Success":c(),"Get Current Quantization Chart Data Failure":c(),"Get Current Machine Unlearning Chart Data":U(),"Get Current Machine Unlearning Chart Data Success":c(),"Get Current Machine Unlearning Chart Data Failure":c(),"Get Chart Configuration Settings":c(),"Get Chart Configuration Settings Success":c(),"Get Chart Configuration Settings Failure":c()}});var w=class extends S{constructor(t){let ut=`type=${t.join(",")}`;super(`chart-configuration-settings?${ut}`,void 0,void 0,!1)}};var R=class extends S{constructor(){super("current-machine-unlearning-chart-data",void 0,void 0,!1)}};var k=class extends S{constructor(){super("current-pruning-chart-data",void 0,void 0,!1)}};var N=class extends S{constructor(){super("current-quantization-chart-data",void 0,void 0,!1)}};var Bt=(()=>{let t=class t{constructor(r,i){this.apiClient=r,this.actions$=i,this.getCurrentPruningChartData$=F(()=>this.actions$.pipe(I(n.getCurrentPruningChartData),b(()=>this.apiClient.serviceCall(new k).pipe(P(o=>n.getCurrentPruningChartDataSuccess({pruningProgress:o})),j(o=>x(n.getCurrentPruningChartDataFailure({error:o}))))))),this.getCurrentQuantizationChartData$=F(()=>this.actions$.pipe(I(n.getCurrentQuantizationChartData),b(()=>this.apiClient.serviceCall(new N).pipe(P(o=>n.getCurrentQuantizationChartDataSuccess({quantizationProgress:o})),j(o=>x(n.getCurrentQuantizationChartDataFailure({error:o}))))))),this.getCurrentMachineUnlearningChartData$=F(()=>this.actions$.pipe(I(n.getCurrentMachineUnlearningChartData),b(()=>this.apiClient.serviceCall(new R).pipe(P(o=>n.getCurrentMachineUnlearningChartDataSuccess({machineUnlearningProgress:o})),j(o=>x(n.getCurrentMachineUnlearningChartDataFailure({error:o}))))))),this.getChartConfigurationSettings$=F(()=>this.actions$.pipe(I(n.getChartConfigurationSettings),b(o=>this.apiClient.serviceCall(new w(o.chartTypes)).pipe(P(m=>n.getChartConfigurationSettingsSuccess({settings:m})),j(m=>x(n.getChartConfigurationSettingsFailure({error:m})))))))}};t.\u0275fac=function(i){return new(i||t)(s(T),s(D))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var gt={pruningProgress:[],machineUnlearningProgress:void 0,quantizationProgress:void 0,settings:{},error:null},Xt=y(gt,l(n.getCurrentPruningChartDataSuccess,(e,{pruningProgress:t})=>p(u({},e),{pruningProgress:t,machineUnlearningProgress:void 0,quantizationProgress:void 0,error:null})),l(n.getCurrentPruningChartDataFailure,(e,{error:t})=>p(u({},e),{pruningProgress:[],error:t})),l(n.getCurrentQuantizationChartDataSuccess,(e,{quantizationProgress:t})=>p(u({},e),{pruningProgress:[],quantizationProgress:t,machineUnlearningProgress:void 0,error:null})),l(n.getCurrentQuantizationChartDataFailure,(e,{error:t})=>p(u({},e),{quantizationProgress:void 0,error:t})),l(n.getCurrentMachineUnlearningChartDataSuccess,(e,{machineUnlearningProgress:t})=>p(u({},e),{pruningProgress:[],quantizationProgress:void 0,machineUnlearningProgress:t,error:null})),l(n.getCurrentQuantizationChartDataFailure,(e,{error:t})=>p(u({},e),{quantizationProgress:void 0,error:t})),l(n.getCurrentPruningChartDataFailure,(e,{error:t})=>p(u({},e),{pruningProgress:[],error:t})),l(n.getChartConfigurationSettingsSuccess,(e,{settings:t})=>p(u({},e),{settings:u(u({},e.settings),t),error:null})),l(n.getChartConfigurationSettingsFailure,(e,{error:t})=>p(u({},e),{error:t})));var _=f(h,e=>e.charts.pruningProgress),tt=f(h,e=>e.charts.quantizationProgress),et=f(h,e=>e.charts.machineUnlearningProgress),rt=f(h,e=>e.charts.settings);var oe=(()=>{let t=class t{constructor(r){this.store=r,this.pruningProgress=this.store.select(_),this.quantizationProgress$=this.store.select(tt),this.machineUnlearningProgress$=this.store.select(et),this.settings$=this.store.select(rt)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var it=A({source:"[Core -> File]",events:{"Upload File":c(),"Upload File Success":c(),"Upload File Failure":c(),"Upload File and Call Script":c()}});var st=(()=>{let t=class t{constructor(r){this.store=r}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var le=(()=>{let t=class t{constructor(r,i){this.bannerService=r,this.fileFacadeService=i,this._fileSubject=new L(null)}get isFileLoaded(){return!!this._fileSubject.value}get file$(){return this._fileSubject.asObservable()}set file(r){this._fileSubject.next(r)}get file(){return this._fileSubject.value}clearFile(){this._fileSubject.next(null)}uploadFile(){if(!this.file){this.bannerService.showError("No file to upload.");return}this.fileFacadeService.dispatch(it.uploadFile({file:this.file}))}};t.\u0275fac=function(i){return new(i||t)(s(Z),s(st))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var Ce=(()=>{let t=class t{constructor(r){this.router=r,this.history=[]}trackNavigationHistory(){this.addInitialUrl(),this.router.events.pipe(B(r=>r instanceof Q)).subscribe(r=>{this.history.push(r.urlAfterRedirects)})}addInitialUrl(){let r=this.router.url;this.history.push(r)}goToPreviousPage(r=H.MODEL_COMPRESSION.ROOT){let i=this.getPreviousUrl();i==="/"?this.router.navigateByUrl(`/${r}`):this.router.navigateByUrl(i)}getPreviousUrl(){return this.history[this.history.length-2]||"/"}};t.\u0275fac=function(i){return new(i||t)(s(q))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var ot=f(h,e=>e.parameters);var Fe=(()=>{let t=class t{constructor(r){this.store=r,this.parameters$=this.store.select(ot)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var nt=f(h,e=>e.statistics.statistics);var at=(()=>{let t=class t{constructor(r){this.store=r,this.statistics$=this.store.select(nt)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var ct=f(h,e=>e.terminal.messages);var Re=(()=>{let t=class t{constructor(r){this.store=r,this.messages$=this.store.select(ct)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var d=A({source:"[Core -> Statistics]",events:{"Get Statistics":U(),"Get Statistics Success":c(),"Get Statistics Failure":c(),"Update Statistics":c()}});var M=class extends S{constructor(){super("statistics",void 0,void 0,!1)}};var qe=(()=>{let t=class t{constructor(r,i){this.apiClient=r,this.actions$=i,this.getStatistics=F(()=>this.actions$.pipe(I(d.getStatistics),b(()=>this.apiClient.serviceCall(new M).pipe(P(o=>d.getStatisticsSuccess({statistics:o})),j(o=>x(d.getStatisticsFailure({error:o})))))))}};t.\u0275fac=function(i){return new(i||t)(s(T),s(D))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var dt={statistics:{},error:null},Ve=y(dt,l(d.getStatisticsSuccess,(e,{statistics:t})=>p(u({},e),{statistics:t,error:null})),l(d.getStatisticsFailure,(e,{error:t})=>p(u({},e),{error:t})),l(d.updateStatistics,(e,{statistics:t})=>p(u({},e),{statistics:t,error:null})));var E=function(e){return e.TERMINAL="terminal",e.SCRIPT_STATUS="script_status",e.STATISTICS="statistics",e.CHARTS_PREFIX="chart_",e}(E||{}),xt=function(e){return e.UPDATE_TESTING="chart_updateTesting",e.UPDATE_LATEST_VALUE="chart_updateLatestValue",e.ENHANCE_SINGLE_PHASE_X_AXIS="chart_enhanceSinglePhaseXAxis",e}(xt||{});var fr=(()=>{let t=class t{handleBeforeUnload(){this.close()}constructor(r,i){this.scriptFacadeService=r,this.statisticsFacadeService=i,this.terminalMessagesSubject=new $,this.chartsMessagesSubject=new $,this.connect()}connect(){this.close(),this.socket=new WebSocket(X.websocketUrl),this.socket.onopen=()=>{console.log("WebSocket connected!")},this.socket.onmessage=r=>z(this,null,function*(){let i=JSON.parse(r.data),{topic:o="",data:m}=i;switch(o){case E.TERMINAL:this.terminalMessagesSubject.next(m);break;case E.SCRIPT_STATUS:this.scriptFacadeService.dispatch(K.updateScriptStatus({status:m}));break;case E.STATISTICS:let{statistics:pt}=m||{};this.statisticsFacadeService.dispatch(d.updateStatistics({statistics:pt}));break;default:o.startsWith(E.CHARTS_PREFIX)?this.chartsMessagesSubject.next({topic:o,data:m}):console.warn("Unknown message type:",o)}}),this.socket.onerror=r=>{console.error("WebSocket Error:",r)},this.socket.onclose=r=>{r.wasClean?console.log(`Closed cleanly, code=${r.code}, reason=${r.reason}`):console.error("Connection died"),O(5e3).subscribe(()=>this.connect())}}get terminalMessages$(){return this.terminalMessagesSubject.asObservable()}get chartsMessages$(){return this.chartsMessagesSubject.asObservable()}send(r){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(r)}close(){this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.close()}};t.\u0275fac=function(i){return new(i||t)(s(V),s(at))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();export{Z as a,n as b,Bt as c,Xt as d,oe as e,st as f,it as g,le as h,Ce as i,Fe as j,at as k,Re as l,d as m,qe as n,Ve as o,xt as p,fr as q}; +import{Ab as A,Bb as U,I as b,Kb as g,Lb as f,Md as V,O as a,Ob as l,Pb as y,Qb as F,R as s,Rb as D,Sb as I,Ub as Q,Ud as Y,Vd as v,Wd as J,Xb as q,_b as H,a as u,b as p,bc as h,cd as T,dd as X,ed as S,f as z,h as $,i as L,o as x,s as P,u as O,ud as K,w as B,x as j,zb as c}from"./chunk-JA5VSLUI.js";var lt=5e3,W=5e3,ft=1e4,Z=(()=>{let t=class t{constructor(r){this.snackbar=r}showSuccess(r){this.showBanner(r,v.SUCCESS,lt,"notification-panel-success")}showInfo(r){this.showBanner(r,v.INFO,W,"notification-panel-info")}showError(r){this.showBanner(r,v.ERROR,ft,"notification-panel-error")}showWarning(r){this.showBanner(r,v.WARNING,W,"notification-panel-warning")}showBanner(r,i,o,m){this.snackbar.openFromComponent(J,{duration:o,data:{message:r,notificationType:i},panelClass:m})}};t.\u0275fac=function(i){return new(i||t)(s(Y))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var n=A({source:"[Core -> Charts]",events:{"Get Current Pruning Chart Data":U(),"Get Current Pruning Chart Data Success":c(),"Get Current Pruning Chart Data Failure":c(),"Get Current Quantization Chart Data":U(),"Get Current Quantization Chart Data Success":c(),"Get Current Quantization Chart Data Failure":c(),"Get Current Machine Unlearning Chart Data":U(),"Get Current Machine Unlearning Chart Data Success":c(),"Get Current Machine Unlearning Chart Data Failure":c(),"Get Chart Configuration Settings":c(),"Get Chart Configuration Settings Success":c(),"Get Chart Configuration Settings Failure":c()}});var w=class extends S{constructor(t){let ut=`type=${t.join(",")}`;super(`chart-configuration-settings?${ut}`,void 0,void 0,!1)}};var R=class extends S{constructor(){super("current-machine-unlearning-chart-data",void 0,void 0,!1)}};var k=class extends S{constructor(){super("current-pruning-chart-data",void 0,void 0,!1)}};var N=class extends S{constructor(){super("current-quantization-chart-data",void 0,void 0,!1)}};var Bt=(()=>{let t=class t{constructor(r,i){this.apiClient=r,this.actions$=i,this.getCurrentPruningChartData$=F(()=>this.actions$.pipe(I(n.getCurrentPruningChartData),b(()=>this.apiClient.serviceCall(new k).pipe(P(o=>n.getCurrentPruningChartDataSuccess({pruningProgress:o})),j(o=>x(n.getCurrentPruningChartDataFailure({error:o}))))))),this.getCurrentQuantizationChartData$=F(()=>this.actions$.pipe(I(n.getCurrentQuantizationChartData),b(()=>this.apiClient.serviceCall(new N).pipe(P(o=>n.getCurrentQuantizationChartDataSuccess({quantizationProgress:o})),j(o=>x(n.getCurrentQuantizationChartDataFailure({error:o}))))))),this.getCurrentMachineUnlearningChartData$=F(()=>this.actions$.pipe(I(n.getCurrentMachineUnlearningChartData),b(()=>this.apiClient.serviceCall(new R).pipe(P(o=>n.getCurrentMachineUnlearningChartDataSuccess({machineUnlearningProgress:o})),j(o=>x(n.getCurrentMachineUnlearningChartDataFailure({error:o}))))))),this.getChartConfigurationSettings$=F(()=>this.actions$.pipe(I(n.getChartConfigurationSettings),b(o=>this.apiClient.serviceCall(new w(o.chartTypes)).pipe(P(m=>n.getChartConfigurationSettingsSuccess({settings:m})),j(m=>x(n.getChartConfigurationSettingsFailure({error:m})))))))}};t.\u0275fac=function(i){return new(i||t)(s(T),s(D))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var gt={pruningProgress:[],machineUnlearningProgress:void 0,quantizationProgress:void 0,settings:{},error:null},Xt=y(gt,l(n.getCurrentPruningChartDataSuccess,(e,{pruningProgress:t})=>p(u({},e),{pruningProgress:t,machineUnlearningProgress:void 0,quantizationProgress:void 0,error:null})),l(n.getCurrentPruningChartDataFailure,(e,{error:t})=>p(u({},e),{pruningProgress:[],error:t})),l(n.getCurrentQuantizationChartDataSuccess,(e,{quantizationProgress:t})=>p(u({},e),{pruningProgress:[],quantizationProgress:t,machineUnlearningProgress:void 0,error:null})),l(n.getCurrentQuantizationChartDataFailure,(e,{error:t})=>p(u({},e),{quantizationProgress:void 0,error:t})),l(n.getCurrentMachineUnlearningChartDataSuccess,(e,{machineUnlearningProgress:t})=>p(u({},e),{pruningProgress:[],quantizationProgress:void 0,machineUnlearningProgress:t,error:null})),l(n.getCurrentQuantizationChartDataFailure,(e,{error:t})=>p(u({},e),{quantizationProgress:void 0,error:t})),l(n.getCurrentPruningChartDataFailure,(e,{error:t})=>p(u({},e),{pruningProgress:[],error:t})),l(n.getChartConfigurationSettingsSuccess,(e,{settings:t})=>p(u({},e),{settings:u(u({},e.settings),t),error:null})),l(n.getChartConfigurationSettingsFailure,(e,{error:t})=>p(u({},e),{error:t})));var _=f(h,e=>e.charts.pruningProgress),tt=f(h,e=>e.charts.quantizationProgress),et=f(h,e=>e.charts.machineUnlearningProgress),rt=f(h,e=>e.charts.settings);var oe=(()=>{let t=class t{constructor(r){this.store=r,this.pruningProgress=this.store.select(_),this.quantizationProgress$=this.store.select(tt),this.machineUnlearningProgress$=this.store.select(et),this.settings$=this.store.select(rt)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var it=A({source:"[Core -> File]",events:{"Upload File":c(),"Upload File Success":c(),"Upload File Failure":c(),"Upload File and Call Script":c()}});var st=(()=>{let t=class t{constructor(r){this.store=r}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var le=(()=>{let t=class t{constructor(r,i){this.bannerService=r,this.fileFacadeService=i,this._fileSubject=new L(null)}get isFileLoaded(){return!!this._fileSubject.value}get file$(){return this._fileSubject.asObservable()}set file(r){this._fileSubject.next(r)}get file(){return this._fileSubject.value}clearFile(){this._fileSubject.next(null)}uploadFile(){if(!this.file){this.bannerService.showError("No file to upload.");return}this.fileFacadeService.dispatch(it.uploadFile({file:this.file}))}};t.\u0275fac=function(i){return new(i||t)(s(Z),s(st))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var Ce=(()=>{let t=class t{constructor(r){this.router=r,this.history=[]}trackNavigationHistory(){this.addInitialUrl(),this.router.events.pipe(B(r=>r instanceof Q)).subscribe(r=>{this.history.push(r.urlAfterRedirects)})}addInitialUrl(){let r=this.router.url;this.history.push(r)}goToPreviousPage(r=H.MODEL_COMPRESSION.ROOT){let i=this.getPreviousUrl();i==="/"?this.router.navigateByUrl(`/${r}`):this.router.navigateByUrl(i)}getPreviousUrl(){return this.history[this.history.length-2]||"/"}};t.\u0275fac=function(i){return new(i||t)(s(q))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var ot=f(h,e=>e.parameters);var Fe=(()=>{let t=class t{constructor(r){this.store=r,this.parameters$=this.store.select(ot)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var nt=f(h,e=>e.statistics.statistics);var at=(()=>{let t=class t{constructor(r){this.store=r,this.statistics$=this.store.select(nt)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var ct=f(h,e=>e.terminal.messages);var Re=(()=>{let t=class t{constructor(r){this.store=r,this.messages$=this.store.select(ct)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var d=A({source:"[Core -> Statistics]",events:{"Get Statistics":U(),"Get Statistics Success":c(),"Get Statistics Failure":c(),"Update Statistics":c()}});var M=class extends S{constructor(){super("statistics",void 0,void 0,!1)}};var qe=(()=>{let t=class t{constructor(r,i){this.apiClient=r,this.actions$=i,this.getStatistics=F(()=>this.actions$.pipe(I(d.getStatistics),b(()=>this.apiClient.serviceCall(new M).pipe(P(o=>d.getStatisticsSuccess({statistics:o})),j(o=>x(d.getStatisticsFailure({error:o})))))))}};t.\u0275fac=function(i){return new(i||t)(s(T),s(D))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var dt={statistics:{},error:null},Ve=y(dt,l(d.getStatisticsSuccess,(e,{statistics:t})=>p(u({},e),{statistics:t,error:null})),l(d.getStatisticsFailure,(e,{error:t})=>p(u({},e),{error:t})),l(d.updateStatistics,(e,{statistics:t})=>p(u({},e),{statistics:t,error:null})));var E=function(e){return e.TERMINAL="terminal",e.SCRIPT_STATUS="script_status",e.STATISTICS="statistics",e.CHARTS_PREFIX="chart_",e}(E||{}),xt=function(e){return e.UPDATE_TESTING="chart_updateTesting",e.UPDATE_LATEST_VALUE="chart_updateLatestValue",e.ENHANCE_SINGLE_PHASE_X_AXIS="chart_enhanceSinglePhaseXAxis",e}(xt||{});var fr=(()=>{let t=class t{handleBeforeUnload(){this.close()}constructor(r,i){this.scriptFacadeService=r,this.statisticsFacadeService=i,this.terminalMessagesSubject=new $,this.chartsMessagesSubject=new $,this.connect()}connect(){this.close(),this.socket=new WebSocket(X.websocketUrl),this.socket.onopen=()=>{console.log("WebSocket connected!")},this.socket.onmessage=r=>z(this,null,function*(){let i=JSON.parse(r.data),{topic:o="",data:m}=i;switch(o){case E.TERMINAL:this.terminalMessagesSubject.next(m);break;case E.SCRIPT_STATUS:this.scriptFacadeService.dispatch(K.updateScriptStatus({status:m}));break;case E.STATISTICS:let{statistics:pt}=m||{};this.statisticsFacadeService.dispatch(d.updateStatistics({statistics:pt}));break;default:o.startsWith(E.CHARTS_PREFIX)?this.chartsMessagesSubject.next({topic:o,data:m}):console.warn("Unknown message type:",o)}}),this.socket.onerror=r=>{console.error("WebSocket Error:",r)},this.socket.onclose=r=>{r.wasClean?console.log(`Closed cleanly, code=${r.code}, reason=${r.reason}`):console.error("Connection died"),O(5e3).subscribe(()=>this.connect())}}get terminalMessages$(){return this.terminalMessagesSubject.asObservable()}get chartsMessages$(){return this.chartsMessagesSubject.asObservable()}send(r){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(r)}close(){this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.close()}};t.\u0275fac=function(i){return new(i||t)(s(V),s(at))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();export{Z as a,n as b,Bt as c,Xt as d,oe as e,st as f,it as g,le as h,Ce as i,Fe as j,at as k,Re as l,d as m,qe as n,Ve as o,xt as p,fr as q}; diff --git a/frontend/server/modelsmith-build/browser/chunk-4KDFY6RG.js b/frontend/server/modelsmith-build/browser/chunk-4LH6YZUP.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-4KDFY6RG.js rename to frontend/server/modelsmith-build/browser/chunk-4LH6YZUP.js index f7856b43..ffa88054 100644 --- a/frontend/server/modelsmith-build/browser/chunk-4KDFY6RG.js +++ b/frontend/server/modelsmith-build/browser/chunk-4LH6YZUP.js @@ -1,4 +1,4 @@ -import{a as Oe,b as Ie,c as Le}from"./chunk-U7NPFWER.js";import{l as nt,q as ot}from"./chunk-VMZY47C3.js";import{A as $e,Ca as Ke,Cd as we,Da as ae,Ec as Ye,Ed as Ee,Fc as Je,G as ze,Gd as te,Hc as Ze,Ic as Qe,Ja as qe,Jd as ke,Ka as Ve,La as Ge,Md as ce,Na as be,Qd as st,Rd as rt,T as ge,Ta as Xe,Ua as ye,Vd as ve,Z as me,_ as Se,d as Fe,e as We,f as Ne,fa as Ce,ka as oe,m as Ue,q as je,rd as et,sd as tt,ud as it,wa as ee,xa as ie,ya as le}from"./chunk-XZNUB5IR.js";var ht=Fe((De,Pe)=>{"use strict";(function(X,N){if(typeof De=="object"&&typeof Pe=="object")Pe.exports=N();else if(typeof define=="function"&&define.amd)define([],N);else{var U=N();for(var $ in U)(typeof De=="object"?De:X)[$]=U[$]}})(self,()=>(()=>{"use strict";var X={4567:function(M,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;let n=o(9042),d=o(6114),f=o(9924),g=o(844),_=o(5596),e=o(4725),s=o(3656),t=r.AccessibilityManager=class extends g.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;lthis._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` +import{a as Oe,b as Ie,c as Le}from"./chunk-VBDJDMQD.js";import{l as nt,q as ot}from"./chunk-3ZHMSG5W.js";import{A as $e,Ca as Ke,Cd as we,Da as ae,Ec as Ye,Ed as Ee,Fc as Je,G as ze,Gd as te,Hc as Ze,Ic as Qe,Ja as qe,Jd as ke,Ka as Ve,La as Ge,Md as ce,Na as be,Qd as st,Rd as rt,T as ge,Ta as Xe,Ua as ye,Vd as ve,Z as me,_ as Se,d as Fe,e as We,f as Ne,fa as Ce,ka as oe,m as Ue,q as je,rd as et,sd as tt,ud as it,wa as ee,xa as ie,ya as le}from"./chunk-JA5VSLUI.js";var ht=Fe((De,Pe)=>{"use strict";(function(X,N){if(typeof De=="object"&&typeof Pe=="object")Pe.exports=N();else if(typeof define=="function"&&define.amd)define([],N);else{var U=N();for(var $ in U)(typeof De=="object"?De:X)[$]=U[$]}})(self,()=>(()=>{"use strict";var X={4567:function(M,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;let n=o(9042),d=o(6114),f=o(9924),g=o(844),_=o(5596),e=o(4725),s=o(3656),t=r.AccessibilityManager=class extends g.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;lthis._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` `))),this.register(this._terminal.onA11yTab(l=>this._handleTab(l))),this.register(this._terminal.onKey(l=>this._handleKey(l.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,g.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let a=0;a0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(i)||this._charsToConsume.push(i)}_refreshRows(i,a){this._liveRegionDebouncer.refresh(i,a,this._terminal.rows)}_renderRows(i,a){let l=this._terminal.buffer,v=l.lines.length.toString();for(let m=i;m<=a;m++){let h=l.translateBufferLineToString(l.ydisp+m,!0),p=(l.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText="\xA0":b.textContent=h,b.setAttribute("aria-posinset",p),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,a){let l=i.target,v=this._rowElements[a===0?1:this._rowElements.length-2];if(l.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(a===0?(m=l,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=l,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){let p=this._createAccessibilityTreeNode();this._rowElements.unshift(p),this._rowContainer.insertAdjacentElement("afterbegin",p)}else{let p=this._createAccessibilityTreeNode();this._rowElements.push(p),this._rowContainer.appendChild(p)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;ai;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i{function o(d){return d.replace(/\r?\n/g,"\r")}function c(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,g,_){d=c(d=o(d),g.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),g.triggerDataEvent(d,!0),f.value=""}function n(d,f,g){let _=g.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=c,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,g,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,g,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,g,_,e){n(d,f,g),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;let c=o(1505);r.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,c,u,n){o.addEventListener(c,u,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(c,u,n))}}}},6465:function(M,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,v=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(v=(l<3?a(v):l>3?a(s,t,v):a(s,t))||v);return l>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;let n=o(3656),d=o(8460),f=o(844),g=o(2585),_=r.Linkifier2=class extends f.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,f.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,f.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{let s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,t){this._element=e,this._mouseService=s,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;let s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;let t=e.composedPath();for(let i=0;i{l?.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let a=!1;for(let[l,v]of this._linkProviders.entries())s?!((i=this._activeProviderReplies)===null||i===void 0)&&i.get(l)&&(a=this._checkLinkProviderResult(l,e,a)):v.provideLinks(e.y,m=>{var h,p;if(this._isMouseOut)return;let b=m?.map(L=>({link:L}));(h=this._activeProviderReplies)===null||h===void 0||h.set(l,b),a=this._checkLinkProviderResult(l,e,a),((p=this._activeProviderReplies)===null||p===void 0?void 0:p.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,s){let t=new Set;for(let i=0;ie?this._bufferService.cols:v.link.range.end.x;for(let p=m;p<=h;p++){if(t.has(p)){a.splice(l--,1);break}t.add(p)}}}}_checkLinkProviderResult(e,s,t){var i;if(!this._activeProviderReplies)return t;let a=this._activeProviderReplies.get(e),l=!1;for(let v=0;vthis._linkAtPosition(m.link,s));v&&(t=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let v=0;vthis._linkAtPosition(h.link,s));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;let s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,f.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;let s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,a;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((a=this._element)===null||a===void 0||a.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,a,l;!((i=this._currentLink)===null||i===void 0)&&i.state&&((l=(a=this._currentLink)===null||a===void 0?void 0:a.state)===null||l===void 0?void 0:l.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;let i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,a=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=a&&(this._clearCurrentLink(i,a),this._lastMouseEvent&&this._element)){let l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._askForLink(l,!1)}})))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){let t=e.range,i=this._bufferService.buffer.ydisp,a=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(a)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){let t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,a=s.y*this._bufferService.cols+s.x;return t<=a&&a<=i}_positionFromMouseEvent(e,s,t){let i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,a){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:a}}};r.Linkifier2=_=c([u(0,g.IBufferService)],_)},9042:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(M,r,o){var c=this&&this.__decorate||function(_,e,s,t){var i,a=arguments.length,l=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(_,e,s,t);else for(var v=_.length-1;v>=0;v--)(i=_[v])&&(l=(a<3?i(l):a>3?i(e,s,l):i(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l},u=this&&this.__param||function(_,e){return function(s,t){e(s,t,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;let n=o(511),d=o(2585),f=r.OscLinkProvider=class{constructor(_,e,s){this._bufferService=_,this._optionsService=e,this._oscLinkService=s}provideLinks(_,e){var s;let t=this._bufferService.buffer.lines.get(_-1);if(!t)return void e(void 0);let i=[],a=this._optionsService.rawOptions.linkHandler,l=new n.CellData,v=t.getTrimmedLength(),m=-1,h=-1,p=!1;for(let b=0;ba?a.activate(x,B,y):g(0,B),hover:(x,B)=>{var I;return(I=a?.hover)===null||I===void 0?void 0:I.call(a,x,B,y)},leave:(x,B)=>{var I;return(I=a?.leave)===null||I===void 0?void 0:I.call(a,x,B,y)}})}p=!1,l.hasExtendedAttrs()&&l.extended.urlId?(h=b,m=l.extended.urlId):(h=-1,m=-1)}}e(i)}};function g(_,e){if(confirm(`Do you want to navigate to ${e}? diff --git a/frontend/server/modelsmith-build/browser/chunk-XSYDPZOE.js b/frontend/server/modelsmith-build/browser/chunk-6GVGRTBF.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-XSYDPZOE.js rename to frontend/server/modelsmith-build/browser/chunk-6GVGRTBF.js index f4cc92ff..7ad6891e 100644 --- a/frontend/server/modelsmith-build/browser/chunk-XSYDPZOE.js +++ b/frontend/server/modelsmith-build/browser/chunk-6GVGRTBF.js @@ -1,4 +1,4 @@ -import{p as Ss,q as ua}from"./chunk-VMZY47C3.js";import{Ad as ha,B as qn,C as Gr,Ja as Zn,Ka as Qn,La as Jn,Md as fa,O as Ee,P as qr,R as ys,T as Kr,Ta as ra,U as Zr,Ua as aa,V as Qr,Y as vs,a as xs,b as _s,d as Uf,e as Yf,ea as Jr,fa as Kn,h as Gn,i as Mi,ja as ta,ka as ce,m as $r,oa as ea,rd as la,sa as ia,sd as qe,wa as sa,wd as ca,xa as na,ya as oa,yd as he}from"./chunk-XZNUB5IR.js";var Gh=Uf((MT,Fn)=>{"use strict";(function(e,i,t,s){"use strict";var n=["","webkit","Moz","MS","ms","o"],o=i.createElement("div"),r="function",a=Math.round,l=Math.abs,c=Date.now;function h(d,g,x){return setTimeout(S(d,x),g)}function f(d,g,x){return Array.isArray(d)?(u(d,x[g],x),!0):!1}function u(d,g,x){var v;if(d)if(d.forEach)d.forEach(g,x);else if(d.length!==s)for(v=0;v{"use strict";(function(e,i,t,s){"use strict";var n=["","webkit","Moz","MS","ms","o"],o=i.createElement("div"),r="function",a=Math.round,l=Math.abs,c=Date.now;function h(d,g,x){return setTimeout(S(d,x),g)}function f(d,g,x){return Array.isArray(d)?(u(d,x[g],x),!0):!1}function u(d,g,x){var v;if(d)if(d.forEach)d.forEach(g,x);else if(d.length!==s)for(v=0;v\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",B=e.console&&(e.console.warn||e.console.log);return B&&B.call(e.console,v,k),d.apply(this,arguments)}}var m;typeof Object.assign!="function"?m=function(g){if(g===s||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var x=Object(g),v=1;v-1}function D(d){return d.trim().split(/\s+/g)}function I(d,g,x){if(d.indexOf&&!x)return d.indexOf(g);for(var v=0;vht[g]}):v=v.sort()),v}function Q(d,g){for(var x,v,P=g[0].toUpperCase()+g.slice(1),k=0;k1&&!x.firstMultiple?x.firstMultiple=kr(g):P===1&&(x.firstMultiple=!1);var k=x.firstInput,B=x.firstMultiple,nt=B?B.center:k.center,at=g.center=Dr(v);g.timeStamp=c(),g.deltaTime=g.timeStamp-k.timeStamp,g.angle=Nn(nt,at),g.distance=hs(nt,at),yf(x,g),g.offsetDirection=Ir(g.deltaX,g.deltaY);var ht=Er(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=ht.x,g.overallVelocityY=ht.y,g.overallVelocity=l(ht.x)>l(ht.y)?ht.x:ht.y,g.scale=B?Cf(B.pointers,v):1,g.rotation=B?Sf(B.pointers,v):0,g.maxPointers=x.prevInput?g.pointers.length>x.prevInput.maxPointers?g.pointers.length:x.prevInput.maxPointers:g.pointers.length,vf(x,g);var Ft=d.element;A(g.srcEvent.target,Ft)&&(Ft=g.srcEvent.target),g.target=Ft}function yf(d,g){var x=g.center,v=d.offsetDelta||{},P=d.prevDelta||{},k=d.prevInput||{};(g.eventType===K||k.eventType===et)&&(P=d.prevDelta={x:k.deltaX||0,y:k.deltaY||0},v=d.offsetDelta={x:x.x,y:x.y}),g.deltaX=P.x+(x.x-v.x),g.deltaY=P.y+(x.y-v.y)}function vf(d,g){var x=d.lastInterval||g,v=g.timeStamp-x.timeStamp,P,k,B,nt;if(g.eventType!=gt&&(v>Oe||x.velocity===s)){var at=g.deltaX-x.deltaX,ht=g.deltaY-x.deltaY,Ft=Er(v,at,ht);k=Ft.x,B=Ft.y,P=l(Ft.x)>l(Ft.y)?Ft.x:Ft.y,nt=Ir(at,ht),d.lastInterval=g}else P=x.velocity,k=x.velocityX,B=x.velocityY,nt=x.direction;g.velocity=P,g.velocityX=k,g.velocityY=B,g.direction=nt}function kr(d){for(var g=[],x=0;x=l(g)?d<0?xi:_i:g<0?yi:vi}function hs(d,g,x){x||(x=Ar);var v=g[x[0]]-d[x[0]],P=g[x[1]]-d[x[1]];return Math.sqrt(v*v+P*P)}function Nn(d,g,x){x||(x=Ar);var v=g[x[0]]-d[x[0]],P=g[x[1]]-d[x[1]];return Math.atan2(P,v)*180/Math.PI}function Sf(d,g){return Nn(g[1],g[0],cs)+Nn(d[1],d[0],cs)}function Cf(d,g){return hs(g[0],g[1],cs)/hs(d[0],d[1],cs)}var Tf={mousedown:K,mousemove:Ae,mouseup:et},Mf="mousedown",Pf="mousemove mouseup";function fs(){this.evEl=Mf,this.evWin=Pf,this.pressed=!1,St.apply(this,arguments)}y(fs,St,{handler:function(g){var x=Tf[g.type];x&K&&g.button===0&&(this.pressed=!0),x&Ae&&g.which!==1&&(x=et),this.pressed&&(x&et&&(this.pressed=!1),this.callback(this.manager,x,{pointers:[g],changedPointers:[g],pointerType:Ut,srcEvent:g}))}});var wf={pointerdown:K,pointermove:Ae,pointerup:et,pointercancel:gt,pointerout:gt},Of={2:It,3:ae,4:Ut,5:Yt},Lr="pointerdown",Rr="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Lr="MSPointerDown",Rr="MSPointerMove MSPointerUp MSPointerCancel");function Bn(){this.evEl=Lr,this.evWin=Rr,St.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y(Bn,St,{handler:function(g){var x=this.store,v=!1,P=g.type.toLowerCase().replace("ms",""),k=wf[P],B=Of[g.pointerType]||g.pointerType,nt=B==It,at=I(x,g.pointerId,"pointerId");k&K&&(g.button===0||nt)?at<0&&(x.push(g),at=x.length-1):k&(et|gt)&&(v=!0),!(at<0)&&(x[at]=g,this.callback(this.manager,k,{pointers:x,changedPointers:[g],pointerType:B,srcEvent:g}),v&&x.splice(at,1))}});var Af={touchstart:K,touchmove:Ae,touchend:et,touchcancel:gt},kf="touchstart",Df="touchstart touchmove touchend touchcancel";function Fr(){this.evTarget=kf,this.evWin=Df,this.started=!1,St.apply(this,arguments)}y(Fr,St,{handler:function(g){var x=Af[g.type];if(x===K&&(this.started=!0),!!this.started){var v=Ef.call(this,g,x);x&(et|gt)&&v[0].length-v[1].length===0&&(this.started=!1),this.callback(this.manager,x,{pointers:v[0],changedPointers:v[1],pointerType:It,srcEvent:g})}}});function Ef(d,g){var x=R(d.touches),v=R(d.changedTouches);return g&(et|gt)&&(x=z(x.concat(v),"identifier",!0)),[x,v]}var If={touchstart:K,touchmove:Ae,touchend:et,touchcancel:gt},Lf="touchstart touchmove touchend touchcancel";function us(){this.evTarget=Lf,this.targetIds={},St.apply(this,arguments)}y(us,St,{handler:function(g){var x=If[g.type],v=Rf.call(this,g,x);v&&this.callback(this.manager,x,{pointers:v[0],changedPointers:v[1],pointerType:It,srcEvent:g})}});function Rf(d,g){var x=R(d.touches),v=this.targetIds;if(g&(K|Ae)&&x.length===1)return v[x[0].identifier]=!0,[x,x];var P,k,B=R(d.changedTouches),nt=[],at=this.target;if(k=x.filter(function(ht){return A(ht.target,at)}),g===K)for(P=0;P-1&&v.splice(k,1)};setTimeout(P,Ff)}}function Nf(d){for(var g=d.srcEvent.clientX,x=d.srcEvent.clientY,v=0;v-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(d){return!!this.simultaneous[d.id]},emit:function(d){var g=this,x=this.state;function v(P){g.manager.emit(P,d)}x=le&&v(g.options.event+Hr(x))},tryEmit:function(d){if(this.canEmit())return this.emit(d);this.state=Rt},canEmit:function(){for(var d=0;dg.threshold&&P&g.direction},attrTest:function(d){return Pt.prototype.attrTest.call(this,d)&&(this.state&Ct||!(this.state&Ct)&&this.directionTest(d))},emit:function(d){this.pX=d.deltaX,this.pY=d.deltaY;var g=Ur(d.direction);g&&(d.additionalEvent=this.options.event+g),this._super.emit.call(this,d)}});function Hn(){Pt.apply(this,arguments)}y(Hn,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.scale-1)>this.options.threshold||this.state&Ct)},emit:function(d){if(d.scale!==1){var g=d.scale<1?"in":"out";d.additionalEvent=this.options.event+g}this._super.emit.call(this,d)}});function Un(){$t.apply(this,arguments),this._timer=null,this._input=null}y(Un,$t,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[jr]},process:function(d){var g=this.options,x=d.pointers.length===g.pointers,v=d.distanceg.time;if(this._input=d,!v||!x||d.eventType&(et|gt)&&!P)this.reset();else if(d.eventType&K)this.reset(),this._timer=h(function(){this.state=Xt,this.tryEmit()},g.time,this);else if(d.eventType&et)return Xt;return Rt},reset:function(){clearTimeout(this._timer)},emit:function(d){this.state===Xt&&(d&&d.eventType&et?this.manager.emit(this.options.event+"up",d):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}});function Yn(){Pt.apply(this,arguments)}y(Yn,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.rotation)>this.options.threshold||this.state&Ct)}});function Xn(){Pt.apply(this,arguments)}y(Xn,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Lt|ke,pointers:1},getTouchAction:function(){return ms.prototype.getTouchAction.call(this)},attrTest:function(d){var g=this.options.direction,x;return g&(Lt|ke)?x=d.overallVelocity:g&Lt?x=d.overallVelocityX:g&ke&&(x=d.overallVelocityY),this._super.attrTest.call(this,d)&&g&d.offsetDirection&&d.distance>this.options.threshold&&d.maxPointers==this.options.pointers&&l(x)>this.options.velocity&&d.eventType&et},emit:function(d){var g=Ur(d.offsetDirection);g&&this.manager.emit(this.options.event+g,d),this.manager.emit(this.options.event,d)}});function bs(){$t.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}y(bs,$t,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Wn]},process:function(d){var g=this.options,x=d.pointers.length===g.pointers,v=d.distance{let i=class i{get toggleZoom$(){return this._toggleZoomSubject.asObservable()}set toggleZoom(s){this._toggleZoomSubject.next(s)}get toggleTooltips$(){return this._toggleTooltipsSubject.asObservable()}set toggleTooltips(s){this._toggleTooltipsSubject.next(s)}constructor(){this._toggleTooltipsSubject=new Mi(!1),this._toggleZoomSubject=new Mi(!1)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=Ee({token:i,factory:i.\u0275fac});let e=i;return e})();function Oi(e){return e+.5|0}var fe=(e,i,t)=>Math.max(Math.min(e,t),i);function Pi(e){return fe(Oi(e*2.55),0,255)}function ue(e){return fe(Oi(e*255),0,255)}function qt(e){return fe(Oi(e/2.55)/100,0,1)}function pa(e){return fe(Oi(e*100),0,100)}var Tt={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},io=[..."0123456789ABCDEF"],$f=e=>io[e&15],Gf=e=>io[(e&240)>>4]+io[e&15],Cs=e=>(e&240)>>4===(e&15),qf=e=>Cs(e.r)&&Cs(e.g)&&Cs(e.b)&&Cs(e.a);function Kf(e){var i=e.length,t;return e[0]==="#"&&(i===4||i===5?t={r:255&Tt[e[1]]*17,g:255&Tt[e[2]]*17,b:255&Tt[e[3]]*17,a:i===5?Tt[e[4]]*17:255}:(i===7||i===9)&&(t={r:Tt[e[1]]<<4|Tt[e[2]],g:Tt[e[3]]<<4|Tt[e[4]],b:Tt[e[5]]<<4|Tt[e[6]],a:i===9?Tt[e[7]]<<4|Tt[e[8]]:255})),t}var Zf=(e,i)=>e<255?i(e):"";function Qf(e){var i=qf(e)?$f:Gf;return e?"#"+i(e.r)+i(e.g)+i(e.b)+Zf(e.a,i):void 0}var Jf=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function xa(e,i,t){let s=i*Math.min(t,1-t),n=(o,r=(o+e/30)%12)=>t-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function tu(e,i,t){let s=(n,o=(n+e/60)%6)=>t-t*i*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function eu(e,i,t){let s=xa(e,1,.5),n;for(i+t>1&&(n=1/(i+t),i*=n,t*=n),n=0;n<3;n++)s[n]*=1-i-t,s[n]+=i;return s}function iu(e,i,t,s,n){return e===n?(i-t)/s+(i.5?h/(2-o-r):h/(o+r),l=iu(t,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function no(e,i,t,s){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,s)).map(ue)}function oo(e,i,t){return no(xa,e,i,t)}function su(e,i,t){return no(eu,e,i,t)}function nu(e,i,t){return no(tu,e,i,t)}function _a(e){return(e%360+360)%360}function ou(e){let i=Jf.exec(e),t=255,s;if(!i)return;i[5]!==s&&(t=i[6]?Pi(+i[5]):ue(+i[5]));let n=_a(+i[2]),o=+i[3]/100,r=+i[4]/100;return i[1]==="hwb"?s=su(n,o,r):i[1]==="hsv"?s=nu(n,o,r):s=oo(n,o,r),{r:s[0],g:s[1],b:s[2],a:t}}function ru(e,i){var t=so(e);t[0]=_a(t[0]+i),t=oo(t),e.r=t[0],e.g=t[1],e.b=t[2]}function au(e){if(!e)return;let i=so(e),t=i[0],s=pa(i[1]),n=pa(i[2]);return e.a<255?`hsla(${t}, ${s}%, ${n}%, ${qt(e.a)})`:`hsl(${t}, ${s}%, ${n}%)`}var ga={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ma={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lu(){let e={},i=Object.keys(ma),t=Object.keys(ga),s,n,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}var Ts;function cu(e){Ts||(Ts=lu(),Ts.transparent=[0,0,0,0]);let i=Ts[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:i.length===4?i[3]:255}}var hu=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function fu(e){let i=hu.exec(e),t=255,s,n,o;if(i){if(i[7]!==s){let r=+i[7];t=i[8]?Pi(r):fe(r*255,0,255)}return s=+i[1],n=+i[3],o=+i[5],s=255&(i[2]?Pi(s):fe(s,0,255)),n=255&(i[4]?Pi(n):fe(n,0,255)),o=255&(i[6]?Pi(o):fe(o,0,255)),{r:s,g:n,b:o,a:t}}}function uu(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var eo=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ke=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function du(e,i,t){let s=Ke(qt(e.r)),n=Ke(qt(e.g)),o=Ke(qt(e.b));return{r:ue(eo(s+t*(Ke(qt(i.r))-s))),g:ue(eo(n+t*(Ke(qt(i.g))-n))),b:ue(eo(o+t*(Ke(qt(i.b))-o))),a:e.a+t*(i.a-e.a)}}function Ms(e,i,t){if(e){let s=so(e);s[i]=Math.max(0,Math.min(s[i]+s[i]*t,i===0?360:1)),s=oo(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function ya(e,i){return e&&Object.assign(i||{},e)}function ba(e){var i={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(i={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(i.a=ue(e[3]))):(i=ya(e,{r:0,g:0,b:0,a:1}),i.a=ue(i.a)),i}function pu(e){return e.charAt(0)==="r"?fu(e):ou(e)}var wi=class e{constructor(i){if(i instanceof e)return i;let t=typeof i,s;t==="object"?s=ba(i):t==="string"&&(s=Kf(i)||cu(i)||pu(i)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var i=ya(this._rgb);return i&&(i.a=qt(i.a)),i}set rgb(i){this._rgb=ba(i)}rgbString(){return this._valid?uu(this._rgb):void 0}hexString(){return this._valid?Qf(this._rgb):void 0}hslString(){return this._valid?au(this._rgb):void 0}mix(i,t){if(i){let s=this.rgb,n=i.rgb,o,r=t===o?.5:t,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(i,t){return i&&(this._rgb=du(this._rgb,i._rgb,t)),this}clone(){return new e(this.rgb)}alpha(i){return this._rgb.a=ue(i),this}clearer(i){let t=this._rgb;return t.a*=1-i,this}greyscale(){let i=this._rgb,t=Oi(i.r*.3+i.g*.59+i.b*.11);return i.r=i.g=i.b=t,this}opaquer(i){let t=this._rgb;return t.a*=1+i,this}negate(){let i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Ms(this._rgb,2,i),this}darken(i){return Ms(this._rgb,2,-i),this}saturate(i){return Ms(this._rgb,1,i),this}desaturate(i){return Ms(this._rgb,1,-i),this}rotate(i){return ru(this._rgb,i),this}};function At(){}var co=(()=>{let e=0;return()=>e++})();function V(e){return e===null||typeof e>"u"}function H(e){if(Array.isArray&&Array.isArray(e))return!0;let i=Object.prototype.toString.call(e);return i.slice(0,7)==="[object"&&i.slice(-6)==="Array]"}function N(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function G(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function dt(e,i){return G(e)?e:i}function E(e,i){return typeof e>"u"?i:e}var ho=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/i,Ds=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*i:+e;function L(e,i,t){if(e&&typeof e.call=="function")return e.apply(t,i)}function F(e,i,t,s){let n,o,r;if(H(e))if(o=e.length,s)for(n=o-1;n>=0;n--)i.call(t,e[n],n);else for(n=0;ne,x:e=>e.x,y:e=>e.y};function Ia(e){let i=e.split("."),t=[],s="";for(let n of i)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(t.push(s),s="");return t}function gu(e){let i=Ia(e);return t=>{for(let s of i){if(s==="")break;t=t&&t[s]}return t}}function Bt(e,i){return(va[i]||(va[i]=gu(i)))(e)}function Ii(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ze=e=>typeof e<"u",zt=e=>typeof e=="function",Es=(e,i)=>{if(e.size!==i.size)return!1;for(let t of e)if(!i.has(t))return!1;return!0};function fo(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var U=Math.PI,Y=2*U,La=Y+U,Di=Number.POSITIVE_INFINITY,Ra=U/180,Z=U/2,de=U/4,ao=U*2/3,Nt=Math.log10,ut=Math.sign;function Ne(e,i,t){return Math.abs(e-i)n-o).pop(),i}function ge(e){return!isNaN(parseFloat(e))&&isFinite(e)}function po(e,i){let t=Math.round(e);return t-i<=e&&t+i>=e}function Ls(e,i,t){let s,n,o;for(s=0,n=e.length;sl&&c=Math.min(i,t)-s&&e<=Math.max(i,t)+s}function Ri(e,i,t){t=t||(r=>e[r]1;)o=n+s>>1,t(o)?n=o:s=o;return{lo:n,hi:s}}var wt=(e,i,t,s)=>Ri(e,t,s?n=>{let o=e[n][i];return oe[n][i]Ri(e,t,s=>e[s][i]>=t);function bo(e,i,t){let s=0,n=e.length;for(;ss&&e[n-1]>t;)n--;return s>0||n{let s="_onData"+Ii(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){let r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function zs(e,i){let t=e._chartjs;if(!t)return;let s=t.listeners,n=s.indexOf(i);n!==-1&&s.splice(n,1),!(s.length>0)&&(za.forEach(o=>{delete e[o]}),delete e._chartjs)}function Ns(e){let i=new Set(e);return i.size===e.length?e:Array.from(i)}var Bs=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Vs(e,i){let t=[],s=!1;return function(...n){t=n,s||(s=!0,Bs.call(window,()=>{s=!1,e.apply(i,t)}))}}function _o(e,i){let t;return function(...s){return i?(clearTimeout(t),t=setTimeout(e,i,s)):e.apply(this,s),i}}var Fi=e=>e==="start"?"left":e==="end"?"right":"center",ot=(e,i,t)=>e==="start"?i:e==="end"?t:(i+t)/2,yo=(e,i,t,s)=>e===(s?"left":"right")?t:e==="center"?(i+t)/2:i;function Ws(e,i,t){let s=i.length,n=0,o=s;if(e._sorted){let{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:f,maxDefined:u}=r.getUserBounds();f&&(n=it(Math.min(wt(a,l,c).lo,t?s:wt(i,l,r.getPixelForValue(c)).lo),0,s-1)),u?o=it(Math.max(wt(a,r.axis,h,!0).hi+1,t?0:wt(i,l,r.getPixelForValue(h),!0).hi+1),n,s)-n:o=s-n}return{start:n,count:o}}function js(e){let{xScale:i,yScale:t,_scaleRanges:s}=e,n={xmin:i.min,xmax:i.max,ymin:t.min,ymax:t.max};if(!s)return e._scaleRanges=n,!0;let o=s.xmin!==i.min||s.xmax!==i.max||s.ymin!==t.min||s.ymax!==t.max;return Object.assign(s,n),o}var Ps=e=>e===0||e===1,Sa=(e,i,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-i)*Y/t)),Ca=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*Y/t)+1,Ie={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Z)+1,easeOutSine:e=>Math.sin(e*Z),easeInOutSine:e=>-.5*(Math.cos(U*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ps(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ps(e)?e:Sa(e,.075,.3),easeOutElastic:e=>Ps(e)?e:Ca(e,.075,.3),easeInOutElastic(e){return Ps(e)?e:e<.5?.5*Sa(e*2,.1125,.45):.5+.5*Ca(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let i=1.70158;return(e/=.5)<1?.5*(e*e*(((i*=1.525)+1)*e-i)):.5*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)},easeInBounce:e=>1-Ie.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ie.easeInBounce(e*2)*.5:Ie.easeOutBounce(e*2-1)*.5+.5};function Hs(e){if(e&&typeof e=="object"){let i=e.toString();return i==="[object CanvasPattern]"||i==="[object CanvasGradient]"}return!1}function Us(e){return Hs(e)?e:new wi(e)}function As(e){return Hs(e)?e:new wi(e).saturate(.5).darken(.1).hexString()}var mu=["x","y","borderWidth","radius","tension"],bu=["color","borderColor","backgroundColor"];function xu(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),e.set("animations",{colors:{type:"color",properties:bu},numbers:{type:"number",properties:mu}}),e.describe("animations",{_fallback:"animation"}),e.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:i=>i|0}}}})}function _u(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Ta=new Map;function yu(e,i){i=i||{};let t=e+JSON.stringify(i),s=Ta.get(t);return s||(s=new Intl.NumberFormat(e,i),Ta.set(t,s)),s}function Ve(e,i,t){return yu(i,t).format(e)}var Na={values(e){return H(e)?e:""+e},numeric(e,i,t){if(e===0)return"0";let s=this.chart.options.locale,n,o=e;if(t.length>1){let c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=vu(e,t)}let r=Nt(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ve(e,s,l)},logarithmic(e,i,t){if(e===0)return"0";let s=t[i].significand||e/Math.pow(10,Math.floor(Nt(e)));return[1,2,3,5,10,15].includes(s)||i>.8*t.length?Na.numeric.call(this,e,i,t):""}};function vu(e,i){let t=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var zi={formatters:Na};function Su(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,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:zi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"&&i!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"})}var me=Object.create(null),Ys=Object.create(null);function Ai(e,i){if(!i)return e;let t=i.split(".");for(let s=0,n=t.length;ss.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=(s,n)=>As(n.backgroundColor),this.hoverBorderColor=(s,n)=>As(n.borderColor),this.hoverColor=(s,n)=>As(n.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(i),this.apply(t)}set(i,t){return ro(this,i,t)}get(i){return Ai(this,i)}describe(i,t){return ro(Ys,i,t)}override(i,t){return ro(me,i,t)}route(i,t,s,n){let o=Ai(this,i),r=Ai(this,s),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let l=this[a],c=r[n];return N(l)?Object.assign({},c,l):E(l,c)},set(l){this[a]=l}}})}apply(i){i.forEach(t=>t(this))}},X=new lo({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[xu,_u,Su]);function Ba(e){return!e||V(e.size)||V(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ze(e,i,t,s,n){let o=i[n];return o||(o=i[n]=e.measureText(n).width,t.push(n)),o>s&&(s=o),s}function vo(e,i,t,s){s=s||{};let n=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==i&&(n=s.data={},o=s.garbageCollect=[],s.font=i),e.save(),e.font=i;let r=0,a=t.length,l,c,h,f,u;for(l=0;lt.length){for(l=0;l0&&e.stroke()}}function Ot(e,i,t){return t=t||.5,!i||e&&e.x>i.left-t&&e.xi.top-t&&e.y0&&o.strokeColor!=="",l,c;for(e.save(),e.font=n.string,Cu(e,o),l=0;l+e||0;function Bi(e,i){let t={},s=N(i),n=s?Object.keys(i):i,o=N(e)?s?r=>E(e[r],e[i[r]]):r=>e[r]:()=>e;for(let r of n)t[r]=Ou(o(r));return t}function Gs(e){return Bi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Jt(e){return Bi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function rt(e){let i=Gs(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function J(e,i){e=e||{},i=i||X.font;let t=E(e.size,i.size);typeof t=="string"&&(t=parseInt(t,10));let s=E(e.style,i.style);s&&!(""+s).match(wu)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);let n={family:E(e.family,i.family),lineHeight:Va(E(e.lineHeight,i.lineHeight),t),size:t,style:s,weight:E(e.weight,i.weight),string:""};return n.string=Ba(n),n}function je(e,i,t,s){let n=!0,o,r,a;for(o=0,r=e.length;ot&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function Vt(e,i){return Object.assign(Object.create(e),i)}function Vi(e,i=[""],t,s,n=()=>e[0]){let o=t||e;typeof s>"u"&&(s=Ha("_fallback",e));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>Vi([a,...e],i,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Wa(a,l,()=>Fu(l,i,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Pa(a).includes(l)},ownKeys(a){return Pa(a)},set(a,l,c){let h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function pe(e,i,t,s){let n={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:qs(e,s),setContext:o=>pe(e,o,t,s),override:o=>pe(e.override(o),i,t,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return Wa(o,r,()=>ku(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function qs(e,i={scriptable:!0,indexable:!0}){let{_scriptable:t=i.scriptable,_indexable:s=i.indexable,_allKeys:n=i.allKeys}=e;return{allKeys:n,scriptable:t,indexable:s,isScriptable:zt(t)?t:()=>t,isIndexable:zt(s)?s:()=>s}}var Au=(e,i)=>e?e+Ii(i):i,Mo=(e,i)=>N(i)&&e!=="adapters"&&(Object.getPrototypeOf(i)===null||i.constructor===Object);function Wa(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i))return e[i];let s=t();return e[i]=s,s}function ku(e,i,t){let{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=e,a=s[i];return zt(a)&&r.isScriptable(i)&&(a=Du(i,a,e,t)),H(a)&&a.length&&(a=Eu(i,a,e,r.isIndexable)),Mo(i,a)&&(a=pe(a,n,o&&o[i],r)),a}function Du(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_stack:a}=t;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=i(o,r||s);return a.delete(e),Mo(e,l)&&(l=Po(n._scopes,n,e,l)),l}function Eu(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=t;if(typeof o.index<"u"&&s(e))return i[o.index%i.length];if(N(i[0])){let l=i,c=n._scopes.filter(h=>h!==l);i=[];for(let h of l){let f=Po(c,n,e,h);i.push(pe(f,o,r&&r[e],a))}}return i}function ja(e,i,t){return zt(e)?e(i,t):e}var Iu=(e,i)=>e===!0?i:typeof e=="string"?Bt(i,e):void 0;function Lu(e,i,t,s,n){for(let o of i){let r=Iu(t,o);if(r){e.add(r);let a=ja(r._fallback,t,n);if(typeof a<"u"&&a!==t&&a!==s)return a}else if(r===!1&&typeof s<"u"&&t!==s)return null}return!1}function Po(e,i,t,s){let n=i._rootScopes,o=ja(i._fallback,t,s),r=[...e,...n],a=new Set;a.add(s);let l=Ma(a,r,t,o||t,s);return l===null||typeof o<"u"&&o!==t&&(l=Ma(a,r,o,l,s),l===null)?!1:Vi(Array.from(a),[""],n,o,()=>Ru(i,t,s))}function Ma(e,i,t,s,n){for(;t;)t=Lu(e,i,t,s,n);return t}function Ru(e,i,t){let s=e._getTarget();i in s||(s[i]={});let n=s[i];return H(n)&&N(t)?t:n||{}}function Fu(e,i,t,s){let n;for(let o of i)if(n=Ha(Au(o,e),t),typeof n<"u")return Mo(e,n)?Po(t,s,e,n):n}function Ha(e,i){for(let t of i){if(!t)continue;let s=t[e];if(typeof s<"u")return s}}function Pa(e){let i=e._keys;return i||(i=e._keys=zu(e._scopes)),i}function zu(e){let i=new Set;for(let t of e)for(let s of Object.keys(t).filter(n=>!n.startsWith("_")))i.add(s);return Array.from(i)}function Ks(e,i,t,s){let{iScale:n}=e,{key:o="r"}=this._parsing,r=new Array(s),a,l,c,h;for(a=0,l=s;aie==="x"?"y":"x";function Ya(e,i,t,s){let n=e.skip?i:e,o=i,r=t.skip?i:t,a=Ei(o,n),l=Ei(r,o),c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;let f=s*c,u=s*h;return{previous:{x:o.x-f*(r.x-n.x),y:o.y-f*(r.y-n.y)},next:{x:o.x+u*(r.x-n.x),y:o.y+u*(r.y-n.y)}}}function Bu(e,i,t){let s=e.length,n,o,r,a,l,c=Qe(e,0);for(let h=0;h!c.skip)),i.cubicInterpolationMode==="monotone")Xa(e,n);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function $a(e,i){return Zs(e).getPropertyValue(i)}var ju=["top","right","bottom","left"];function Le(e,i,t){let s={};t=t?"-"+t:"";for(let n=0;n<4;n++){let o=ju[n];s[o]=parseFloat(e[i+"-"+o+t])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}var Hu=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function Uu(e,i){let t=e.touches,s=t&&t.length?t[0]:e,{offsetX:n,offsetY:o}=s,r=!1,a,l;if(Hu(n,o,e.target))a=n,l=o;else{let c=i.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function vt(e,i){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:s}=i,n=Zs(t),o=n.boxSizing==="border-box",r=Le(n,"padding"),a=Le(n,"border","width"),{x:l,y:c,box:h}=Uu(e,t),f=r.left+(h&&a.left),u=r.top+(h&&a.top),{width:p,height:m}=i;return o&&(p-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-f)/p*t.width/s),y:Math.round((c-u)/m*t.height/s)}}function Yu(e,i,t){let s,n;if(i===void 0||t===void 0){let o=ji(e);if(!o)i=e.clientWidth,t=e.clientHeight;else{let r=o.getBoundingClientRect(),a=Zs(o),l=Le(a,"border","width"),c=Le(a,"padding");i=r.width-c.width-l.width,t=r.height-c.height-l.height,s=ks(a.maxWidth,o,"clientWidth"),n=ks(a.maxHeight,o,"clientHeight")}}return{width:i,height:t,maxWidth:s||Di,maxHeight:n||Di}}var Os=e=>Math.round(e*10)/10;function Oo(e,i,t,s){let n=Zs(e),o=Le(n,"margin"),r=ks(n.maxWidth,e,"clientWidth")||Di,a=ks(n.maxHeight,e,"clientHeight")||Di,l=Yu(e,i,t),{width:c,height:h}=l;if(n.boxSizing==="content-box"){let u=Le(n,"border","width"),p=Le(n,"padding");c-=p.width+u.width,h-=p.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=Os(Math.min(c,r,l.maxWidth)),h=Os(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Os(c/2)),(i!==void 0||t!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=Os(Math.floor(h*s))),{width:c,height:h}}function Qs(e,i,t){let s=i||1,n=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let r=e.canvas;return r.style&&(t||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(e.currentDevicePixelRatio=s,r.height=n,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}var Ao=function(){let e=!1;try{let i={get passive(){return e=!0,!1}};Wi()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function Js(e,i){let t=$a(e,i),s=t&&t.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Kt(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function ko(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:s==="middle"?t<.5?e.y:i.y:s==="after"?t<1?e.y:i.y:t>0?i.y:e.y}}function Do(e,i,t,s){let n={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},r=Kt(e,n,t),a=Kt(n,o,t),l=Kt(o,i,t),c=Kt(r,a,t),h=Kt(a,l,t);return Kt(c,h,t)}var Xu=function(e,i){return{x(t){return e+e+i-t},setWidth(t){i=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,s){return t-s},leftForLtr(t,s){return t-s}}},$u=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,i){return e+i},leftForLtr(e,i){return e}}};function be(e,i,t){return e?Xu(i,t):$u()}function tn(e,i){let t,s;(i==="ltr"||i==="rtl")&&(t=e.canvas.style,s=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=s)}function en(e,i){i!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function Ga(e){return e==="angle"?{between:Be,compare:Fa,normalize:ft}:{between:kt,compare:(i,t)=>i-t,normalize:i=>i}}function wa({start:e,end:i,count:t,loop:s,style:n}){return{start:e%t,end:i%t,loop:s&&(i-e+1)%t===0,style:n}}function Gu(e,i,t){let{property:s,start:n,end:o}=t,{between:r,normalize:a}=Ga(s),l=i.length,{start:c,end:h,loop:f}=e,u,p;if(f){for(c+=l,h+=l,u=0,p=l;ul(n,T,y)&&a(n,T)!==0,C=()=>a(o,y)===0||l(o,T,y),M=()=>b||w(),A=()=>!b||C();for(let O=h,D=h;O<=f;++O)S=i[O%r],!S.skip&&(y=c(S[s]),y!==T&&(b=l(y,n,o),_===null&&M()&&(_=a(y,n)===0?O:D),_!==null&&A()&&(m.push(wa({start:_,end:O,loop:u,count:r,style:p})),_=null),D=O,T=y));return _!==null&&m.push(wa({start:_,end:f,loop:u,count:r,style:p})),m}function nn(e,i){let t=[],s=e.segments;for(let n=0;nn&&e[o%i].skip;)o--;return o%=i,{start:n,end:o}}function Ku(e,i,t,s){let n=e.length,o=[],r=i,a=e[i],l;for(l=i+1;l<=t;++l){let c=e[l%n];c.skip||c.stop?a.skip||(s=!1,o.push({start:i%n,end:(l-1)%n,loop:s}),i=r=c.stop?l:null):(r=l,a.skip&&(i=l)),a=c}return r!==null&&o.push({start:i%n,end:r%n,loop:s}),o}function Eo(e,i){let t=e.points,s=e.options.spanGaps,n=t.length;if(!n)return[];let o=!!e._loop,{start:r,end:a}=qu(t,n,o,s);if(s===!0)return Oa(e,[{start:r,end:a,loop:o}],t,i);let l=aa({chart:i,initial:t.initial,numSteps:r,currentStep:Math.min(s-t.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Bs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;let o=s.items,r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(i),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,i,"progress")),o.length||(s.running=!1,this._notify(n,s,i,"complete"),s.initial=!1),t+=o.length}),this._lastDate=i,t===0&&(this._running=!1)}_getAnims(i){let t=this._charts,s=t.get(i);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(i,s)),s}listen(i,t,s){this._getAnims(i).listeners[t].push(s)}add(i,t){!t||!t.length||this._getAnims(i).items.push(...t)}has(i){return this._getAnims(i).items.length>0}start(i){let t=this._charts.get(i);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(i){if(!this._running)return!1;let t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){let t=this._charts.get(i);if(!t||!t.items.length)return;let s=t.items,n=s.length-1;for(;n>=0;--n)s[n].cancel();t.items=[],this._notify(i,t,Date.now(),"complete")}remove(i){return this._charts.delete(i)}},te=new jo,qa="transparent",Ju={boolean(e,i,t){return t>.5?i:e},color(e,i,t){let s=Us(e||qa),n=s.valid&&Us(i||qa);return n&&n.valid?n.mix(s,t).hexString():i},number(e,i,t){return e+(i-e)*t}},Ho=class{constructor(i,t,s,n){let o=t[s];n=je([i.to,n,o,i.from]);let r=je([i.from,o,n]);this._active=!0,this._fn=i.fn||Ju[i.type||typeof r],this._easing=Ie[i.easing]||Ie.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=t,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(i,t,s){if(this._active){this._notify(!1);let n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=o,this._loop=!!i.loop,this._to=je([i.to,t,n,i.from]),this._from=je([i.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){let t=i-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to,l;if(this._active=o!==a&&(r||t1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){let i=this._promises||(this._promises=[]);return new Promise((t,s)=>{i.push({res:t,rej:s})})}_notify(i){let t=i?"res":"rej",s=this._promises||[];for(let n=0;n{let o=i[n];if(!N(o))return;let r={};for(let a of t)r[a]=o[a];(H(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(i,t){let s=t.options,n=ed(i,s);if(!n)return[];let o=this._createAnimations(n,s);return s.$shared&&td(i.options.$animations,s).then(()=>{i.options=s},()=>{}),o}_createAnimations(i,t){let s=this._properties,n=[],o=i.$animations||(i.$animations={}),r=Object.keys(t),a=Date.now(),l;for(l=r.length-1;l>=0;--l){let c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(i,t));continue}let h=t[c],f=o[c],u=s.get(c);if(f)if(u&&f.active()){f.update(u,h,a);continue}else f.cancel();if(!u||!u.duration){i[c]=h;continue}o[c]=f=new Ho(u,i,c,h),n.push(f)}return n}update(i,t){if(this._properties.size===0){Object.assign(i,t);return}let s=this._createAnimations(i,t);if(s.length)return te.add(this._chart,s),!0}};function td(e,i){let t=[],s=Object.keys(i);for(let n=0;n0||!t&&o<0)return n.index}return null}function tl(e,i){let{chart:t,_cachedMeta:s}=e,n=t._stacks||(t._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=od(o,r,s),f=i.length,u;for(let p=0;pt[s].axis===i).shift()}function ld(e,i){return Vt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}function cd(e,i,t){return Vt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}function Hi(e,i){let t=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){i=i||e._parsed;for(let n of i){let o=n._stacks;if(!o||o[s]===void 0||o[s][t]===void 0)return;delete o[s][t],o[s]._visualValues!==void 0&&o[s]._visualValues[t]!==void 0&&delete o[s]._visualValues[t]}}}var Lo=e=>e==="reset"||e==="none",el=(e,i)=>i?e:Object.assign({},e),hd=(e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:Kl(t,!0),values:null},_e=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,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(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Qa(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&&Hi(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,s=this._cachedMeta,n=this.getDataset(),o=(u,p,m,b)=>u==="x"?p:u==="r"?b:m,r=s.xAxisID=E(n.xAxisID,Io(t,"x")),a=s.yAxisID=E(n.yAxisID,Io(t,"y")),l=s.rAxisID=E(n.rAxisID,Io(t,"r")),c=s.indexAxis,h=s.iAxisID=o(c,r,a,l),f=s.vAxisID=o(c,a,r,l);s.xScale=this.getScaleForId(r),s.yScale=this.getScaleForId(a),s.rScale=this.getScaleForId(l),s.iScale=this.getScaleForId(h),s.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&zs(this._data,this),t._stacked&&Hi(t)}_dataCheck(){let t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(N(s))this._data=nd(s);else if(n!==s){if(n){zs(n,this);let o=this._cachedMeta;Hi(o),o._parsed=[]}s&&Object.isExtensible(s)&&xo(s,this),this._syncList=[],this._data=s}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let s=this._cachedMeta,n=this.getDataset(),o=!1;this._dataCheck();let r=s._stacked;s._stacked=Qa(s.vScale,s),s.stack!==n.stack&&(o=!0,Hi(s),s.stack=n.stack),this._resyncElements(t),(o||r!==s._stacked)&&tl(this,s._parsed)}configure(){let t=this.chart.config,s=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){let{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:a}=n,l=r.axis,c=t===0&&s===o.length?!0:n._sorted,h=t>0&&n._parsed[t-1],f,u,p;if(this._parsing===!1)n._parsed=o,n._sorted=!0,p=o;else{H(o[t])?p=this.parseArrayData(n,o,t,s):N(o[t])?p=this.parseObjectData(n,o,t,s):p=this.parsePrimitiveData(n,o,t,s);let m=()=>u[l]===null||h&&u[l]_||u<_}for(p=0;p=0;--p)if(!b()){this.updateRangeFromParsed(h,t,m,c);break}}return h}getAllParsedValues(t){let s=this._cachedMeta._parsed,n=[],o,r,a;for(o=0,r=s.length;o=0&&tthis.getContext(n,o,s),_=h.resolveNamedOptions(p,m,b,u);return _.$shared&&(_.$shared=c,r[a]=Object.freeze(el(_,c))),_}_resolveAnimations(t,s,n){let o=this.chart,r=this._cachedDataOpts,a=`animation-${s}`,l=r[a];if(l)return l;let c;if(o.options.animation!==!1){let f=this.chart.config,u=f.datasetAnimationScopeKeys(this._type,s),p=f.getOptionScopes(this.getDataset(),u);c=f.createResolver(p,this.getContext(t,n,s))}let h=new pn(o,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||Lo(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){let n=this.resolveDataElementOptions(t,s),o=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(s,r)||r!==o;return this.updateSharedOptions(r,s,n),{sharedOptions:r,includeOptions:a}}updateElement(t,s,n,o){Lo(o)?Object.assign(t,n):this._resolveAnimations(s,o).update(t,n)}updateSharedOptions(t,s,n){t&&!Lo(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,o){t.active=o;let r=this.getStyle(s,o);this._resolveAnimations(s,n,o).update(t,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(t,s,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,s,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let s=this._data,n=this._cachedMeta.data;for(let[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];let o=n.length,r=s.length,a=Math.min(r,o);a&&this.parse(0,a),r>o?this._insertElements(o,r-o,t):r{for(h.length+=s,l=h.length-1;l>=a;l--)h[l]=h[l-s]};for(c(r),l=t;ln-o))}return e._cache.$bar}function ud(e){let i=e.iScale,t=fd(i,e.type),s=i._length,n,o,r,a,l=()=>{r===32767||r===-32768||(ze(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=t.length;n0?n[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),i[t.axis]=c,i._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function Zl(e,i,t,s){return H(e)?gd(e,i,t,s):i[t.axis]=t.parse(e,s),i}function il(e,i,t,s){let n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[],c,h,f,u;for(c=t,h=t+s;c=t?1:-1)}function bd(e){let i,t,s,n,o;return e.horizontal?(i=e.base>e.x,t="left",s="right"):(i=e.base{class e extends _e{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,s,n,o){return il(t,s,n,o)}parseArrayData(t,s,n,o){return il(t,s,n,o)}parseObjectData(t,s,n,o){let{iScale:r,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=r.axis==="x"?l:c,f=a.axis==="x"?l:c,u=[],p,m,b,_;for(p=n,m=n+o;pc.controller.options.grouped),r=n.options.stacked,a=[],l=c=>{let h=c.controller.getParsed(s),f=h&&h[c.vScale.axis];if(V(f)||isNaN(f))return!0};for(let c of o)if(!(s!==void 0&&l(c))&&((r===!1||a.indexOf(c.stack)===-1||r===void 0&&c.stack===void 0)&&a.push(c.stack),c.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,s,n){let o=this._getStacks(t,n),r=s!==void 0?o.indexOf(s):-1;return r===-1?o.length-1:r}_getRuler(){let t=this.options,s=this._cachedMeta,n=s.iScale,o=[],r,a;for(r=0,a=s.data.length;r{class e extends _e{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,s,n,o){let r=super.parsePrimitiveData(t,s,n,o);for(let a=0;a=0;--n)s=Math.max(s,t[n].size(this.resolveDataElementOptions(n))/2);return s>0&&s}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y),h=a._custom;return{label:n[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){let s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(s,o),f=a.axis,u=l.axis;for(let p=s;pBe(T,a,l,!0)?1:Math.max(w,w*t,C,C*t),m=(T,w,C)=>Be(T,a,l,!0)?-1:Math.min(w,w*t,C,C*t),b=p(0,c,f),_=p(Z,h,u),y=m(U,c,f),S=m(U+Z,h,u);s=(b-y)/2,n=(_-S)/2,o=-(b+y)/2,r=-(_+S)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}var cr=(()=>{class e extends _e{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}};constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){let n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let r=c=>+n[c];if(N(n[t])){let{key:c="value"}=this._parsing;r=h=>+Bt(n[h],c)}let a,l;for(a=t,l=t+s;a0&&!isNaN(t)?Y*(Math.abs(t)/s):0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Ve(s._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let s=0,n=this.chart,o,r,a,l,c;if(!t){for(o=0,r=n.data.datasets.length;o{class e extends _e{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let s=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=s,a=this.chart._animationsDisabled,{start:l,count:c}=Ws(s,o,a);this._drawStart=l,this._drawCount=c,js(s)&&(l=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:h},t),this.updateElements(o,l,c,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:u}=this._getSharedOptions(s,o),p=a.axis,m=l.axis,{spanGaps:b,segment:_}=this.options,y=ge(b)?b:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||r||o==="none",T=s+n,w=t.length,C=s>0&&this.getParsed(s-1);for(let M=0;M=T){O.skip=!0;continue}let D=this.getParsed(M),I=V(D[m]),R=O[p]=a.getPixelForValue(D[p],M),z=O[m]=r||I?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,D,c):D[m],M);O.skip=isNaN(R)||isNaN(z)||I,O.stop=M>0&&Math.abs(D[p]-C[p])>y,_&&(O.parsed=D,O.raw=h.data[M]),u&&(O.options=f||this.resolveDataElementOptions(M,A.active?"active":o)),S||this.updateElement(A,M,O,o),C=D}}getMaxOverflow(){let t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,o=t.data||[];if(!o.length)return n;let r=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,a)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),Ql=(()=>{class e extends _e{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Ve(s._parsed[t].r,n.options.locale);return{label:o[t]||"",value:r}}parseObjectData(t,s,n,o){return Ks.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){let t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,o)=>{let r=this.getParsed(o).r;!isNaN(r)&&this.chart.getDataVisibility(o)&&(rs.max&&(s.max=r))}),s}_updateRadius(){let t=this.chart,s=t.chartArea,n=t.options,o=Math.min(s.right-s.left,s.bottom-s.top),r=Math.max(o/2,0),a=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),l=(r-a)/t.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,s,n,o){let r=o==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,u=h.yCenter,p=h.getIndexAngle(0)-.5*U,m=p,b,_=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?yt(this.resolveDataElementOptions(t,s).angle||n):0}}return e})(),Md=(()=>{class e extends cr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),Pd=(()=>{class e extends _e{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let s=this._cachedMeta.vScale,n=this.getParsed(t);return{label:s.getLabels()[t],value:""+s.getLabelForValue(n[s.axis])}}parseObjectData(t,s,n,o){return Ks.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta,n=s.dataset,o=s.data||[],r=s.iScale.getLabels();if(n.points=o,t!=="resize"){let a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);let l={_loop:!0,_fullLoop:r.length===o.length,options:a};this.updateElement(n,void 0,l,t)}this.updateElements(o,0,o.length,t)}updateElements(t,s,n,o){let r=this._cachedMeta.rScale,a=o==="reset";for(let l=s;l{class e extends _e{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let s=this._cachedMeta,{data:n=[]}=s,o=this.chart._animationsDisabled,{start:r,count:a}=Ws(s,n,o);if(this._drawStart=r,this._drawCount=a,js(s)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=s;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:h},t)}else this.datasetElementType&&(delete s.dataset,this.datasetElementType=!1);this.updateElements(n,r,a,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(s,o),u=this.getSharedOptions(f),p=this.includeOptions(o,u),m=a.axis,b=l.axis,{spanGaps:_,segment:y}=this.options,S=ge(_)?_:Number.POSITIVE_INFINITY,T=this.chart._animationsDisabled||r||o==="none",w=s>0&&this.getParsed(s-1);for(let C=s;C0&&Math.abs(A[m]-w[m])>S,y&&(O.parsed=A,O.raw=h.data[C]),p&&(O.options=u||this.resolveDataElementOptions(C,M.active?"active":o)),T||this.updateElement(M,C,O,o),w=A}this.updateSharedOptions(u,o,f)}getMaxOverflow(){let t=this._cachedMeta,s=t.data||[];if(!this.options.showLine){let l=0;for(let c=s.length-1;c>=0;--c)l=Math.max(l,s[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!s.length)return o;let r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}}return e})(),Od=Object.freeze({__proto__:null,BarController:vd,BubbleController:Sd,DoughnutController:cr,LineController:Td,PieController:Md,PolarAreaController:Ql,RadarController:Pd,ScatterController:wd});function He(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Uo=class e{static override(i){Object.assign(e.prototype,i)}options;constructor(i){this.options=i||{}}init(){}formats(){return He()}parse(){return He()}format(){return He()}add(){return He()}diff(){return He()}startOf(){return He()}endOf(){return He()}},Ad={_date:Uo};function kd(e,i,t,s){let{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale;if(a&&i===a.axis&&i!=="r"&&r&&o.length){let l=a._reversePixels?mo:wt;if(s){if(n._sharedOptions){let c=o[0],h=typeof c.getRange=="function"&&c.getRange(i);if(h){let f=l(o,i,t-h),u=l(o,i,t+h);return{lo:f.lo,hi:u.hi}}}}else return l(o,i,t)}return{lo:0,hi:o.length-1}}function Ji(e,i,t,s,n){let o=e.getSortedVisibleDatasetMetas(),r=t[i];for(let a=0,l=o.length;a{l[r](i[t],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(i.x,i.y,n))}),s&&!a?[]:o}var Ld={evaluateInteractionItems:Ji,modes:{index(e,i,t,s){let n=vt(i,e),o=t.axis||"x",r=t.includeInvisible||!1,a=t.intersect?Fo(e,n,o,s,r):zo(e,n,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{let h=a[0].index,f=c.data[h];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,s){let n=vt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1,a=t.intersect?Fo(e,n,o,s,r):zo(e,n,o,!1,s,r);if(a.length>0){let l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;ht.pos===i)}function rl(e,i){return e.filter(t=>Jl.indexOf(t.pos)===-1&&t.box.axis===i)}function Yi(e,i){return e.sort((t,s)=>{let n=i?s:t,o=i?t:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function Rd(e){let i=[],t,s,n,o,r,a;for(t=0,s=(e||[]).length;tc.box.fullSize),!0),s=Yi(Ui(i,"left"),!0),n=Yi(Ui(i,"right")),o=Yi(Ui(i,"top"),!0),r=Yi(Ui(i,"bottom")),a=rl(i,"x"),l=rl(i,"y");return{fullSize:t,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Ui(i,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function al(e,i,t,s){return Math.max(e[t],i[t])+Math.max(e[s],i[s])}function tc(e,i){e.top=Math.max(e.top,i.top),e.left=Math.max(e.left,i.left),e.bottom=Math.max(e.bottom,i.bottom),e.right=Math.max(e.right,i.right)}function Bd(e,i,t,s){let{pos:n,box:o}=t,r=e.maxPadding;if(!N(n)){t.size&&(e[n]-=t.size);let f=s[t.stack]||{size:0,count:1};f.size=Math.max(f.size,t.horizontal?o.height:o.width),t.size=f.size/f.count,e[n]+=t.size}o.getPadding&&tc(r,o.getPadding());let a=Math.max(0,i.outerWidth-al(r,e,"left","right")),l=Math.max(0,i.outerHeight-al(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,t.horizontal?{same:c,other:h}:{same:h,other:c}}function Vd(e){let i=e.maxPadding;function t(s){let n=Math.max(i[s]-e[s],0);return e[s]+=n,n}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function Wd(e,i){let t=i.maxPadding;function s(n){let o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(i[r],t[r])}),o}return s(e?["left","right"]:["top","bottom"])}function Gi(e,i,t,s){let n=[],o,r,a,l,c,h;for(o=0,r=e.length,c=0;o{typeof b.beforeLayout=="function"&&b.beforeLayout()});let h=l.reduce((b,_)=>_.box.options&&_.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:i,outerHeight:t,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);tc(u,rt(s));let p=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),m=zd(l.concat(c),f);Gi(a.fullSize,p,f,m),Gi(l,p,f,m),Gi(c,p,f,m)&&Gi(l,p,f,m),Vd(p),ll(a.leftAndTop,p,f,m),p.x+=p.w,p.y+=p.h,ll(a.rightAndBottom,p,f,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},F(a.chartArea,b=>{let _=b.box;Object.assign(_,e.chartArea),_.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},gn=class{acquireContext(i,t){}releaseContext(i){return!1}addEventListener(i,t,s){}removeEventListener(i,t,s){}getDevicePixelRatio(){return 1}getMaximumSize(i,t,s,n){return t=Math.max(0,t||i.width),s=s||i.height,{width:t,height:Math.max(0,n?Math.floor(t/n):s)}}isAttached(i){return!0}updateConfig(i){}},Yo=class extends gn{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}},un="$chartjs",jd={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},cl=e=>e===null||e==="";function Hd(e,i){let t=e.style,s=e.getAttribute("height"),n=e.getAttribute("width");if(e[un]={initial:{height:s,width:n,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",cl(n)){let o=Js(e,"width");o!==void 0&&(e.width=o)}if(cl(s))if(e.style.height==="")e.height=e.width/(i||2);else{let o=Js(e,"height");o!==void 0&&(e.height=o)}return e}var ec=Ao?{passive:!0}:!1;function Ud(e,i,t){e.addEventListener(i,t,ec)}function Yd(e,i,t){e.canvas.removeEventListener(i,t,ec)}function Xd(e,i){let t=jd[e.type]||e.type,{x:s,y:n}=vt(e,i);return{type:t,chart:i,native:e,x:s!==void 0?s:null,y:n!==void 0?n:null}}function mn(e,i){for(let t of e)if(t===i||t.contains(i))return!0}function $d(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||mn(a.addedNodes,s),r=r&&!mn(a.removedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}function Gd(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||mn(a.removedNodes,s),r=r&&!mn(a.addedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}var Ki=new Map,hl=0;function ic(){let e=window.devicePixelRatio;e!==hl&&(hl=e,Ki.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function qd(e,i){Ki.size||window.addEventListener("resize",ic),Ki.set(e,i)}function Kd(e){Ki.delete(e),Ki.size||window.removeEventListener("resize",ic)}function Zd(e,i,t){let s=e.canvas,n=s&&ji(s);if(!n)return;let o=Vs((a,l)=>{let c=n.clientWidth;t(a,l),c{let l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),qd(e,o),r}function No(e,i,t){t&&t.disconnect(),i==="resize"&&Kd(e)}function Qd(e,i,t){let s=e.canvas,n=Vs(o=>{e.ctx!==null&&t(Xd(o,e))},e);return Ud(s,i,n),n}var Xo=class extends gn{acquireContext(i,t){let s=i&&i.getContext&&i.getContext("2d");return s&&s.canvas===i?(Hd(i,t),s):null}releaseContext(i){let t=i.canvas;if(!t[un])return!1;let s=t[un].initial;["height","width"].forEach(o=>{let r=s[o];V(r)?t.removeAttribute(o):t.setAttribute(o,r)});let n=s.style||{};return Object.keys(n).forEach(o=>{t.style[o]=n[o]}),t.width=t.width,delete t[un],!0}addEventListener(i,t,s){this.removeEventListener(i,t);let n=i.$proxies||(i.$proxies={}),r={attach:$d,detach:Gd,resize:Zd}[t]||Qd;n[t]=r(i,t,s)}removeEventListener(i,t){let s=i.$proxies||(i.$proxies={}),n=s[t];if(!n)return;({attach:No,detach:No,resize:No}[t]||Yd)(i,t,n),s[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,s,n){return Oo(i,t,s,n)}isAttached(i){let t=ji(i);return!!(t&&t.isConnected)}};function Jd(e){return!Wi()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Yo:Xo}var Dt=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(i){let{x:t,y:s}=this.getProps(["x","y"],i);return{x:t,y:s}}hasValue(){return ge(this.x)&&ge(this.y)}getProps(i,t){let s=this.$animations;if(!t||!s)return this;let n={};return i.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}};function tp(e,i){let t=e.options.ticks,s=ep(e),n=Math.min(t.maxTicksLimit||s,s),o=t.major.enabled?sp(i):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return np(i,c,o,r/n),c;let h=ip(o,i,n);if(r>0){let f,u,p=r>1?Math.round((l-a)/(r-1)):null;for(rn(i,c,h,V(p)?0:a-p,a),f=0,u=r-1;fn)return l}return Math.max(n,1)}function sp(e){let i=[],t,s;for(t=0,s=e.length;te==="left"?"right":e==="right"?"left":e,fl=(e,i,t)=>i==="top"||i==="left"?e[i]+t:e[i]-t,ul=(e,i)=>Math.min(i||e,e);function dl(e,i){let t=[],s=e.length/i,n=e.length,o=0;for(;or+a)))return l}function lp(e,i){F(e,t=>{let s=t.gc,n=s.length/2,o;if(n>i){for(o=0;os?s:t,s=n&&t>s?t:s,{min:dt(t,dt(s,t)),max:dt(s,dt(t,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}getLabelItems(i=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(i))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){L(this.options.beforeUpdate,[this])}update(i,t,s){let{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=t,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=To(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}let h=this._getLabelSizes(),f=h.widest.width,u=h.highest.height,p=it(this.chart.width-f,0,this.maxWidth);a=i.offset?this.maxWidth/s:p/(s-1),f+6>a&&(a=p/(s-(i.offset?.5:1)),l=this.maxHeight-Xi(i.grid)-t.padding-pl(i.title,this.chart.options.font),c=Math.sqrt(f*f+u*u),r=Li(Math.min(Math.asin(it((h.highest.height+6)/a,-1,1)),Math.asin(it(l/c,-1,1))-Math.asin(it(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){L(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){L(this.options.beforeFit,[this])}fit(){let i={width:0,height:0},{chart:t,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let l=pl(n,t.options.font);if(a?(i.width=this.maxWidth,i.height=Xi(o)+l):(i.height=this.maxHeight,i.width=Xi(o)+l),s.display&&this.ticks.length){let{first:c,last:h,widest:f,highest:u}=this._getLabelSizes(),p=s.padding*2,m=yt(this.labelRotation),b=Math.cos(m),_=Math.sin(m);if(a){let y=s.mirror?0:_*f.width+b*u.height;i.height=Math.min(this.maxHeight,i.height+y+p)}else{let y=s.mirror?0:b*f.width+_*u.height;i.width=Math.min(this.maxWidth,i.width+y+p)}this._calculatePadding(c,h,_,b)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,t,s,n){let{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),u=0,p=0;l?c?(u=n*i.width,p=s*t.height):(u=s*i.height,p=n*t.width):o==="start"?p=t.width:o==="end"?u=i.width:o!=="inner"&&(u=i.width/2,p=t.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((p-f+r)*this.width/(this.width-f),0)}else{let h=t.height/2,f=i.height/2;o==="start"?(h=0,f=i.height):o==="end"&&(h=t.height,f=0),this.paddingTop=h+r,this.paddingBottom=f+r}}_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(){L(this.options.afterFit,[this])}isHorizontal(){let{axis:i,position:t}=this.options;return t==="top"||t==="bottom"||i==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){this.beforeTickToLabelConversion(),this.generateTickLabels(i);let t,s;for(t=0,s=i.length;t({width:r[D]||0,height:a[D]||0});return{first:O(0),last:O(t-1),widest:O(M),highest:O(A),widths:r,heights:a}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){let t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);let t=this._startPixel+i*this._length;return go(this._alignToPixels?Zt(this.chart,t,0):t)}getDecimalForPixel(i){let t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){let t=this.ticks||[];if(i>=0&&ia*n?a/s:l/n:l*n0}_computeGridLineItems(i){let t=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),u=Xi(o),p=[],m=a.setContext(this.getContext()),b=m.display?m.width:0,_=b/2,y=function(j){return Zt(s,j,b)},S,T,w,C,M,A,O,D,I,R,z,Q;if(r==="top")S=y(this.bottom),A=this.bottom-u,D=S-_,R=y(i.top)+_,Q=i.bottom;else if(r==="bottom")S=y(this.top),R=i.top,Q=y(i.bottom)-_,A=S+_,D=this.top+u;else if(r==="left")S=y(this.right),M=this.right-u,O=S-_,I=y(i.left)+_,z=i.right;else if(r==="right")S=y(this.left),I=i.left,z=y(i.right)-_,M=S+_,O=this.left+u;else if(t==="x"){if(r==="center")S=y((i.top+i.bottom)/2+.5);else if(N(r)){let j=Object.keys(r)[0],q=r[j];S=y(this.chart.scales[j].getPixelForValue(q))}R=i.top,Q=i.bottom,A=S+_,D=A+u}else if(t==="y"){if(r==="center")S=y((i.left+i.right)/2);else if(N(r)){let j=Object.keys(r)[0],q=r[j];S=y(this.chart.scales[j].getPixelForValue(q))}M=S-_,O=M-u,I=i.left,z=i.right}let ct=E(n.ticks.maxTicksLimit,f),W=Math.max(1,Math.ceil(f/ct));for(T=0;T0&&(K-=Yt/2);break}It={left:K,top:Oe,width:Yt+ae.width,height:Ut+ae.height,color:W.backdropColor}}_.push({label:w,font:D,textOffset:z,options:{rotation:b,color:q,strokeColor:pt,strokeWidth:st,textAlign:re,textBaseline:Q,translation:[C,M],backdrop:It}})}return _}_getXAxisLabelAlignment(){let{position:i,ticks:t}=this.options;if(-yt(this.labelRotation))return i==="top"?"left":"right";let n="center";return t.align==="start"?n="left":t.align==="end"?n="right":t.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(i){let{position:t,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=i+o,l=r.widest.width,c,h;return t==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):t==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let i=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:i.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:i.width}}drawBackground(){let{ctx:i,options:{backgroundColor:t},left:s,top:n,width:o,height:r}=this;t&&(i.save(),i.fillStyle=t,i.fillRect(s,n,o,r),i.restore())}getLineWidthForValue(i){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(o=>o.value===i);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(i){let t=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i)),o,r,a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(t.display)for(o=0,r=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(i){let t=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[],o,r;for(o=0,r=t.length;o{let s=t.split("."),n=s.pop(),o=[e].concat(s).join("."),r=i[t].split("."),a=r.pop(),l=r.join(".");X.route(o,n,l,a)})}function gp(e){return"id"in e&&"defaults"in e}var $o=class{constructor(){this.controllers=new si(_e,"datasets",!0),this.elements=new si(Dt,"elements"),this.plugins=new si(Object,"plugins"),this.scales=new si(Ye,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,t,s){[...t].forEach(n=>{let o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(i,o,n):F(n,r=>{let a=s||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,t,s){let n=Ii(i);L(s["before"+n],[],s),t[i](s),L(s["after"+n],[],s)}_getRegistryForType(i){for(let t=0;to.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(t,s),i,"stop"),this._notify(n(s,t),i,"start")}};function mp(e){let i={},t=[],s=Object.keys(jt.plugins.items);for(let o=0;o1&&gl(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function ml(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function Cp(e,i){if(i.data&&i.data.datasets){let t=i.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(t.length)return ml(e,"x",t[0])||ml(e,"y",t[0])}return{}}function Tp(e,i){let t=me[e.type]||{scales:{}},s=i.scales||{},n=qo(e.type,i),o=Object.create(null);return Object.keys(s).forEach(r=>{let a=s[r];if(!N(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let l=Ko(r,a,Cp(r,e),X.scales[a.type]),c=vp(l,n),h=t.scales||{};o[r]=Fe(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{let a=r.type||e.type,l=r.indexAxis||qo(a,i),h=(me[a]||{}).scales||{};Object.keys(h).forEach(f=>{let u=yp(f,l),p=r[u+"AxisID"]||u;o[p]=o[p]||Object.create(null),Fe(o[p],[{axis:u},s[p],h[f]])})}),Object.keys(o).forEach(r=>{let a=o[r];Fe(a,[X.scales[a.type],X.scale])}),o}function sc(e){let i=e.options||(e.options={});i.plugins=E(i.plugins,{}),i.scales=Tp(e,i)}function nc(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Mp(e){return e=e||{},e.data=nc(e.data),sc(e),e}var bl=new Map,oc=new Set;function an(e,i){let t=bl.get(e);return t||(t=i(),bl.set(e,t),oc.add(t)),t}var $i=(e,i,t)=>{let s=Bt(i,t);s!==void 0&&e.add(s)},Zo=class{constructor(i){this._config=Mp(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=nc(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){let i=this._config;this.clearCache(),sc(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return an(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return an(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return an(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){let t=i.id,s=this.type;return an(`${s}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){let s=this._scopeCache,n=s.get(i);return(!n||t)&&(n=new Map,s.set(i,n)),n}getOptionScopes(i,t,s){let{options:n,type:o}=this,r=this._cachedScopes(i,s),a=r.get(t);if(a)return a;let l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(f=>$i(l,i,f))),h.forEach(f=>$i(l,n,f)),h.forEach(f=>$i(l,me[o]||{},f)),h.forEach(f=>$i(l,X,f)),h.forEach(f=>$i(l,Ys,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),oc.has(t)&&r.set(t,c),c}chartOptionScopes(){let{options:i,type:t}=this;return[i,me[t]||{},X.datasets[t]||{},{type:t},X,Ys]}resolveNamedOptions(i,t,s,n=[""]){let o={$shared:!0},{resolver:r,subPrefixes:a}=xl(this._resolverCache,i,n),l=r;if(wp(r,t)){o.$shared=!1,s=zt(s)?s():s;let c=this.createResolver(i,s,a);l=pe(r,s,c)}for(let c of t)o[c]=l[c];return o}createResolver(i,t,s=[""],n){let{resolver:o}=xl(this._resolverCache,i,s);return N(t)?pe(o,t,void 0,n):o}};function xl(e,i,t){let s=e.get(i);s||(s=new Map,e.set(i,s));let n=t.join(),o=s.get(n);return o||(o={resolver:Vi(i,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}var Pp=e=>N(e)&&Object.getOwnPropertyNames(e).some(i=>zt(e[i]));function wp(e,i){let{isScriptable:t,isIndexable:s}=qs(e);for(let n of i){let o=t(n),r=s(n),a=(r||o)&&e[n];if(o&&(zt(a)||Pp(a))||r&&H(a))return!0}return!1}var Op="4.4.1",Ap=["top","bottom","left","right","chartArea"];function _l(e,i){return e==="top"||e==="bottom"||Ap.indexOf(e)===-1&&i==="x"}function yl(e,i){return function(t,s){return t[e]===s[e]?t[i]-s[i]:t[e]-s[e]}}function vl(e){let i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),L(t&&t.onComplete,[e],i)}function kp(e){let i=e.chart,t=i.options.animation;L(t&&t.onProgress,[e],i)}function rc(e){return Wi()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var dn={},Sl=e=>{let i=rc(e);return Object.values(dn).filter(t=>t.canvas===i).pop()};function Dp(e,i,t){let s=Object.keys(e);for(let n of s){let o=+n;if(o>=i){let r=e[n];delete e[n],(t>0||o>i)&&(e[o+t]=r)}}}function Ep(e,i,t,s){return!t||e.type==="mouseout"?null:s?i:e}function ln(e,i,t){return e.options.clip?e[t]:i[t]}function Ip(e,i){let{xScale:t,yScale:s}=e;return t&&s?{left:ln(t,i,"left"),right:ln(t,i,"right"),top:ln(s,i,"top"),bottom:ln(s,i,"bottom")}:i}var Et=(()=>{class e{static defaults=X;static instances=dn;static overrides=me;static registry=jt;static version=Op;static getChart=Sl;static register(...t){jt.add(...t),Cl()}static unregister(...t){jt.remove(...t),Cl()}constructor(t,s){let n=this.config=new Zo(s),o=rc(t),r=Sl(o);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.");let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Jd(o)),this.platform.updateConfig(n);let l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=co(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Go,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=_o(u=>this.update(u),a.resizeDelay||0),this._dataChanges=[],dn[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}te.listen(this,"complete",vl),te.listen(this,"progress",kp),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:o,_aspectRatio:r}=this;return V(t)?s&&r?r: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 jt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Xs(this.canvas,this.ctx),this}stop(){return te.stop(this),this}resize(t,s){te.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){let n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,s,r),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Qs(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),L(n.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let s=this.options.scales||{};F(s,(n,o)=>{n.id=o})}buildOrUpdateScales(){let t=this.options,s=t.scales,n=this.scales,o=Object.keys(n).reduce((a,l)=>(a[l]=!1,a),{}),r=[];s&&(r=r.concat(Object.keys(s).map(a=>{let l=s[a],c=Ko(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),F(r,a=>{let l=a.options,c=l.id,h=Ko(c,l),f=E(l.type,a.dtype);(l.position===void 0||_l(l.position,h)!==_l(a.dposition))&&(l.position=a.dposition),o[c]=!0;let u=null;if(c in n&&n[c].type===f)u=n[c];else{let p=jt.getScale(f);u=new p({id:c,type:f,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(l,t)}),F(o,(a,l)=>{a||delete n[l]}),F(n,a=>{lt.configure(this,a,a.options),lt.addBox(this,a)})}_updateMetasets(){let t=this._metasets,s=this.data.datasets.length,n=t.length;if(t.sort((o,r)=>o.index-r.index),n>s){for(let o=s;os.length&&delete this._stacks,t.forEach((n,o)=>{s.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],s=this.data.datasets,n,o;for(this._removeUnreferencedMetasets(),n=0,o=s.length;n{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let s=this.config;s.update();let n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(yl("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){F(this.scales,t=>{lt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!Es(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(let{method:n,start:o,count:r}of s){let a=n==="_removeElements"?-r:r;Dp(t,o,a)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let s=this.data.datasets.length,n=r=>new Set(t.filter(a=>a[0]===r).map((a,l)=>l+","+a.splice(1).join(","))),o=n(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;lt.update(this,this.width,this.height,t);let s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],F(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,r)=>{o._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let s=this.ctx,n=t._clip,o=!n.disabled,r=Ip(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&ti(s,{left:n.left===!1?0:r.left-n.left,right:n.right===!1?this.width:r.right+n.right,top:n.top===!1?0:r.top-n.top,bottom:n.bottom===!1?this.height:r.bottom+n.bottom}),t.controller.draw(),o&&ei(s),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Ot(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,o){let r=Ld.modes[s];return typeof r=="function"?r(this,t,n,o):[]}getDatasetMeta(t){let s=this.data.datasets[t],n=this._metasets,o=n.filter(r=>r&&r._dataset===s).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let s=this.data.datasets[t];if(!s)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(t,s){let n=this.getDatasetMeta(t);n.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){let o=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,o);ze(s)?(r.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(r,{visible:n}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){let s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),te.remove(this),t=0,s=this.data.datasets.length;t{s.addEventListener(this,r,a),t[r]=a},o=(r,a,l)=>{r.offsetX=a,r.offsetY=l,this._eventHandler(r)};F(this.options.events,r=>n(r,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,s=this.platform,n=(c,h)=>{s.addEventListener(this,c,h),t[c]=h},o=(c,h)=>{t[c]&&(s.removeEventListener(this,c,h),delete t[c])},r=(c,h)=>{this.canvas&&this.resize(c,h)},a,l=()=>{o("attach",l),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",l)},s.isAttached(this.canvas)?l():a()}unbindEvents(){F(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},F(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){let o=n?"set":"remove",r,a,l,c;for(s==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l{let l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[a],index:a}});!Je(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(t,s,n){return this._plugins.notify(this,t,s,n)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,n){let o=this.options.hover,r=(c,h)=>c.filter(f=>!h.some(u=>f.datasetIndex===u.datasetIndex&&f.index===u.index)),a=r(s,t),l=n?t:r(t,s);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,s){let n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;let r=this._handleEvent(t,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(t,s,n){let{_active:o=[],options:r}=this,a=s,l=this._getActiveElements(t,o,n,a),c=fo(t),h=Ep(t,this._lastEvent,n,c);n&&(this._lastEvent=null,L(r.onHover,[t,l,this],this),c&&L(r.onClick,[t,l,this],this));let f=!Je(l,o);return(f||s)&&(this._active=l,this._updateHoverStyles(l,o,s)),this._lastEvent=h,f}_getActiveElements(t,s,n,o){if(t.type==="mouseout")return[];if(!n)return s;let r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,o)}}return e})();function Cl(){return F(Et.instances,e=>e._plugins.invalidate())}function Lp(e,i,t){let{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=i,c=n/a;e.beginPath(),e.arc(o,r,a,s-c,t+c),l>n?(c=n/l,e.arc(o,r,l,t+c,s-c,!0)):e.arc(o,r,n,t+Z,s-Z),e.closePath(),e.clip()}function Rp(e){return Bi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Fp(e,i,t,s){let n=Rp(e.options.borderRadius),o=(t-i)/2,r=Math.min(o,s*i/2),a=l=>{let c=(t-Math.min(o,l))*s/2;return it(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:it(n.innerStart,0,r),innerEnd:it(n.innerEnd,0,r)}}function ii(e,i,t,s){return{x:t+e*Math.cos(i),y:s+e*Math.sin(i)}}function bn(e,i,t,s,n,o){let{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=i,f=Math.max(i.outerRadius+s+t-c,0),u=h>0?h+s+t+c:0,p=0,m=n-l;if(s){let W=h>0?h-s:0,j=f>0?f-s:0,q=(W+j)/2,pt=q!==0?m*q/(q+s):m;p=(m-pt)/2}let b=Math.max(.001,m*f-t/U)/f,_=(m-b)/2,y=l+_+p,S=n-_-p,{outerStart:T,outerEnd:w,innerStart:C,innerEnd:M}=Fp(i,u,f,S-y),A=f-T,O=f-w,D=y+T/A,I=S-w/O,R=u+C,z=u+M,Q=y+C/R,ct=S-M/z;if(e.beginPath(),o){let W=(D+I)/2;if(e.arc(r,a,f,D,W),e.arc(r,a,f,W,I),w>0){let st=ii(O,I,r,a);e.arc(st.x,st.y,w,I,S+Z)}let j=ii(z,S,r,a);if(e.lineTo(j.x,j.y),M>0){let st=ii(z,ct,r,a);e.arc(st.x,st.y,M,S+Z,ct+Math.PI)}let q=(S-M/u+(y+C/u))/2;if(e.arc(r,a,u,S-M/u,q,!0),e.arc(r,a,u,q,y+C/u,!0),C>0){let st=ii(R,Q,r,a);e.arc(st.x,st.y,C,Q+Math.PI,y-Z)}let pt=ii(A,y,r,a);if(e.lineTo(pt.x,pt.y),T>0){let st=ii(A,D,r,a);e.arc(st.x,st.y,T,y-Z,D)}}else{e.moveTo(r,a);let W=Math.cos(D)*f+r,j=Math.sin(D)*f+a;e.lineTo(W,j);let q=Math.cos(I)*f+r,pt=Math.sin(I)*f+a;e.lineTo(q,pt)}e.closePath()}function zp(e,i,t,s,n){let{fullCircles:o,startAngle:r,circumference:a}=i,l=i.endAngle;if(o){bn(e,i,t,s,l,n);for(let c=0;ci!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(i){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,i&&Object.assign(this,i)}inRange(i,t,s){let n=this.getProps(["x","y"],s),{angle:o,distance:r}=Fs(n,{x:i,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),u=(this.options.spacing+this.options.borderWidth)/2,m=E(f,l-a)>=Y||Be(o,a,l),b=kt(r,c+u,h+u);return m&&b}getCenterPoint(i){let{x:t,y:s,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:c}=this.options,h=(n+o)/2,f=(r+a+c+l)/2;return{x:t+Math.cos(h)*f,y:s+Math.sin(h)*f}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:t,circumference:s}=this,n=(t.offset||0)/4,o=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=s>Y?Math.floor(s/Y):0,s===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(a)*n,Math.sin(a)*n);let l=1-Math.sin(Math.min(U,s||0)),c=n*l;i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,zp(i,this,c,o,r),Np(i,this,c,o,r),i.restore()}};function ac(e,i,t=i){e.lineCap=E(t.borderCapStyle,i.borderCapStyle),e.setLineDash(E(t.borderDash,i.borderDash)),e.lineDashOffset=E(t.borderDashOffset,i.borderDashOffset),e.lineJoin=E(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=E(t.borderWidth,i.borderWidth),e.strokeStyle=E(t.borderColor,i.borderColor)}function Bp(e,i,t){e.lineTo(t.x,t.y)}function Vp(e){return e.stepped?So:e.tension||e.cubicInterpolationMode==="monotone"?Co:Bp}function lc(e,i,t={}){let s=e.length,{start:n=0,end:o=s-1}=t,{start:r,end:a}=i,l=Math.max(n,r),c=Math.min(o,a),h=na&&o>a;return{count:s,start:l,loop:i.loop,ilen:c(r+(c?a-w:w))%o,T=()=>{b!==_&&(e.lineTo(h,_),e.lineTo(h,b),e.lineTo(h,y))};for(l&&(p=n[S(0)],e.moveTo(p.x,p.y)),u=0;u<=a;++u){if(p=n[S(u)],p.skip)continue;let w=p.x,C=p.y,M=w|0;M===m?(C_&&(_=C),h=(f*h+w)/++f):(T(),e.lineTo(w,C),m=M,f=0,b=_=C),y=C}T()}function Jo(e){let i=e.options,t=i.borderDash&&i.borderDash.length;return!e._decimated&&!e._loop&&!i.tension&&i.cubicInterpolationMode!=="monotone"&&!i.stepped&&!t?jp:Wp}function Hp(e){return e.stepped?ko:e.tension||e.cubicInterpolationMode==="monotone"?Do:Kt}function Up(e,i,t,s){let n=i._path;n||(n=i._path=new Path2D,i.path(n,t,s)&&n.closePath()),ac(e,i.options),e.stroke(n)}function Yp(e,i,t,s){let{segments:n,options:o}=i,r=Jo(i);for(let a of n)ac(e,o,a.style),e.beginPath(),r(e,i,a,{start:t,end:t+s-1})&&e.closePath(),e.stroke()}var Xp=typeof Path2D=="function";function $p(e,i,t,s){Xp&&!i.options.segment?Up(e,i,t,s):Yp(e,i,t,s)}var yn=(()=>{class e extends Dt{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:t=>t!=="borderDash"&&t!=="fill"};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,s){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let o=n.spanGaps?this._loop:this._fullLoop;wo(this._points,n,t,o,s),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=Eo(this,this.options.segment))}first(){let t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){let t=this.segments,s=this.points,n=t.length;return n&&s[t[n-1].end]}interpolate(t,s){let n=this.options,o=t[s],r=this.points,a=nn(this,{property:s,start:o,end:o});if(!a.length)return;let l=[],c=Hp(n),h,f;for(h=0,f=a.length;h{class e extends Dt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,s,n){let o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(s-a,2)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function hc(e){return er[e%er.length]}function fc(e){return Ml[e%Ml.length]}function eg(e,i){return e.borderColor=hc(i),e.backgroundColor=fc(i),++i}function ig(e,i){return e.backgroundColor=e.data.map(()=>hc(i++)),i}function sg(e,i){return e.backgroundColor=e.data.map(()=>fc(i++)),i}function ng(e){let i=0;return(t,s)=>{let n=e.getDatasetMeta(s).controller;n instanceof cr?i=ig(t,i):n instanceof Ql?i=sg(t,i):n&&(i=eg(t,i))}}function Pl(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}function og(e){return e&&(e.borderColor||e.backgroundColor)}var rg={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;let{data:{datasets:s},options:n}=e.config,{elements:o}=n;if(!t.forceOverride&&(Pl(s)||og(n)||o&&Pl(o)))return;let r=ng(e);s.forEach(r)}};function ag(e,i,t,s,n){let o=n.samples||s;if(o>=t)return e.slice(i,i+t);let r=[],a=(t-2)/(o-2),l=0,c=i+t-1,h=i,f,u,p,m,b;for(r[l++]=e[h],f=0;fp&&(p=m,u=e[S],b=S);r[l++]=u,h=b}return r[l++]=e[c],r}function lg(e,i,t,s){let n=0,o=0,r,a,l,c,h,f,u,p,m,b,_=[],y=i+t-1,S=e[i].x,w=e[y].x-S;for(r=i;rb&&(b=c,u=r),n=(o*n+a.x)/++o;else{let M=r-1;if(!V(f)&&!V(u)){let A=Math.min(f,u),O=Math.max(f,u);A!==p&&A!==M&&_.push(_s(xs({},e[A]),{x:n})),O!==p&&O!==M&&_.push(_s(xs({},e[O]),{x:n}))}r>0&&M!==p&&_.push(e[M]),_.push(a),h=C,o=0,m=b=c,f=u=p=r}}return _}function uc(e){if(e._decimated){let i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}function wl(e){e.data.datasets.forEach(i=>{uc(i)})}function cg(e,i){let t=i.length,s=0,n,{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=it(wt(i,o.axis,r).lo,0,t-1)),c?n=it(wt(i,o.axis,a).hi+1,s,t)-s:n=t-s,{start:s,count:n}}var hg={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled){wl(e);return}let s=e.width;e.data.datasets.forEach((n,o)=>{let{_data:r,indexAxis:a}=n,l=e.getDatasetMeta(o),c=r||n.data;if(je([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let h=e.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||e.options.parsing)return;let{start:f,count:u}=cg(l,c),p=t.threshold||4*s;if(u<=p){uc(n);return}V(r)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let m;switch(t.algorithm){case"lttb":m=ag(c,f,u,s,t);break;case"min-max":m=lg(c,f,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=m})},destroy(e){wl(e)}};function fg(e,i,t){let s=e.segments,n=e.points,o=i.points,r=[];for(let a of s){let{start:l,end:c}=a;c=hr(l,c,n);let h=ir(t,n[l],n[c],a.loop);if(!i.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}let f=nn(i,h);for(let u of f){let p=ir(t,o[u.start],o[u.end],u.loop),m=sn(a,n,p);for(let b of m)r.push({source:b,target:u,start:{[t]:Ol(h,p,"start",Math.max)},end:{[t]:Ol(h,p,"end",Math.min)}})}}return r}function ir(e,i,t,s){if(s)return;let n=i[e],o=t[e];return e==="angle"&&(n=ft(n),o=ft(o)),{property:e,start:n,end:o}}function ug(e,i){let{x:t=null,y:s=null}=e||{},n=i.points,o=[];return i.segments.forEach(({start:r,end:a})=>{a=hr(r,a,n);let l=n[r],c=n[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):t!==null&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}function hr(e,i,t){for(;i>e;i--){let s=t[i];if(!isNaN(s.x)&&!isNaN(s.y))break}return i}function Ol(e,i,t,s){return e&&i?s(e[t],i[t]):e?e[t]:i?i[t]:0}function dc(e,i){let t=[],s=!1;return H(e)?(s=!0,t=e):t=ug(e,i),t.length?new yn({points:t,options:{tension:0},_loop:s,_fullLoop:s}):null}function Al(e){return e&&e.fill!==!1}function dg(e,i,t){let n=e[i].fill,o=[i],r;if(!t)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!G(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function pg(e,i,t){let s=xg(e);if(N(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return G(n)&&Math.floor(n)===n?gg(s[0],i,n,t):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function gg(e,i,t,s){return(e==="-"||e==="+")&&(t=i+t),t===i||t<0||t>=s?!1:t}function mg(e,i){let t=null;return e==="start"?t=i.bottom:e==="end"?t=i.top:N(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}function bg(e,i,t){let s;return e==="start"?s=t:e==="end"?s=i.options.reverse?i.min:i.max:N(e)?s=e.value:s=i.getBaseValue(),s}function xg(e){let i=e.options,t=i.fill,s=E(t&&t.target,t);return s===void 0&&(s=!!i.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function _g(e){let{scale:i,index:t,line:s}=e,n=[],o=s.segments,r=s.points,a=yg(i,t);a.push(dc({x:null,y:i.bottom},s));for(let l=0;l=0;--r){let a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Wo(e.ctx,a,o))}},beforeDatasetsDraw(e,i,t){if(t.drawTime!=="beforeDatasetsDraw")return;let s=e.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){let o=s[n].$filler;Al(o)&&Wo(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){let s=i.meta.$filler;!Al(s)||t.drawTime!=="beforeDatasetDraw"||Wo(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Il=(e,i)=>{let{boxHeight:t=i,boxWidth:s=i}=e;return e.usePointStyle&&(t=Math.min(t,i),s=e.pointStyleWidth||Math.min(s,i)),{boxWidth:s,boxHeight:t,itemHeight:Math.max(i,t)}},Dg=(e,i)=>e!==null&&i!==null&&e.datasetIndex===i.datasetIndex&&e.index===i.index,_n=class extends Dt{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.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(i,t,s){this.maxWidth=i,this.maxHeight=t,this._margins=s,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(){let i=this.options.labels||{},t=L(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(s=>i.filter(s,this.chart.data))),i.sort&&(t=t.sort((s,n)=>i.sort(s,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:i,ctx:t}=this;if(!i.display){this.width=this.height=0;return}let s=i.labels,n=J(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Il(s,o),c,h;t.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(h,i.maxHeight||this.maxHeight)}_fitRows(i,t,s,n){let{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a,f=i;o.textAlign="left",o.textBaseline="middle";let u=-1,p=-h;return this.legendItems.forEach((m,b)=>{let _=s+t/2+o.measureText(m.text).width;(b===0||c[c.length-1]+_+2*a>r)&&(f+=h,c[c.length-(b>0?0:1)]=0,p+=h,u++),l[b]={left:0,top:p,row:u,width:_,height:n},c[c.length-1]+=_+a}),f}_fitCols(i,t,s,n){let{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-i,f=a,u=0,p=0,m=0,b=0;return this.legendItems.forEach((_,y)=>{let{itemWidth:S,itemHeight:T}=Eg(s,t,o,_,n);y>0&&p+T+2*a>h&&(f+=u+a,c.push({width:u,height:p}),m+=u+a,b++,u=p=0),l[y]={left:m,top:p,col:b,width:S,height:T},u=Math.max(u,S),p+=T+a}),f+=u,c.push({width:u,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;let i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:s,labels:{padding:n},rtl:o}}=this,r=be(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ot(s,this.left+n,this.right-this.lineWidths[a]);for(let c of t)a!==c.row&&(a=c.row,l=ot(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+i+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=ot(s,this.top+i+n,this.bottom-this.columnSizes[a].height);for(let c of t)c.col!==a&&(a=c.col,l=ot(s,this.top+i+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let i=this.ctx;ti(i,this),this._draw(),ei(i)}}_draw(){let{options:i,columnSizes:t,lineWidths:s,ctx:n}=this,{align:o,labels:r}=i,a=X.color,l=be(i.rtl,this.left,this.width),c=J(r.font),{padding:h}=r,f=c.size,u=f/2,p;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;let{boxWidth:m,boxHeight:b,itemHeight:_}=Il(r,f),y=function(M,A,O){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;n.save();let D=E(O.lineWidth,1);if(n.fillStyle=E(O.fillStyle,a),n.lineCap=E(O.lineCap,"butt"),n.lineDashOffset=E(O.lineDashOffset,0),n.lineJoin=E(O.lineJoin,"miter"),n.lineWidth=D,n.strokeStyle=E(O.strokeStyle,a),n.setLineDash(E(O.lineDash,[])),r.usePointStyle){let I={radius:b*Math.SQRT2/2,pointStyle:O.pointStyle,rotation:O.rotation,borderWidth:D},R=l.xPlus(M,m/2),z=A+u;$s(n,I,R,z,r.pointStyleWidth&&m)}else{let I=A+Math.max((f-b)/2,0),R=l.leftForLtr(M,m),z=Jt(O.borderRadius);n.beginPath(),Object.values(z).some(Q=>Q!==0)?We(n,{x:R,y:I,w:m,h:b,radius:z}):n.rect(R,I,m,b),n.fill(),D!==0&&n.stroke()}n.restore()},S=function(M,A,O){Qt(n,O.text,M,A+_/2,c,{strikethrough:O.hidden,textAlign:l.textAlign(O.textAlign)})},T=this.isHorizontal(),w=this._computeTitleHeight();T?p={x:ot(o,this.left+h,this.right-s[0]),y:this.top+h+w,line:0}:p={x:this.left+h,y:ot(o,this.top+w+h,this.bottom-t[0].height),line:0},tn(this.ctx,i.textDirection);let C=_+h;this.legendItems.forEach((M,A)=>{n.strokeStyle=M.fontColor,n.fillStyle=M.fontColor;let O=n.measureText(M.text).width,D=l.textAlign(M.textAlign||(M.textAlign=r.textAlign)),I=m+u+O,R=p.x,z=p.y;l.setWidth(this.width),T?A>0&&R+I+h>this.right&&(z=p.y+=C,p.line++,R=p.x=ot(o,this.left+h,this.right-s[p.line])):A>0&&z+C>this.bottom&&(R=p.x=R+t[p.line].width+h,p.line++,z=p.y=ot(o,this.top+w+h,this.bottom-t[p.line].height));let Q=l.x(R);if(y(Q,z,M),R=yo(D,R+m+u,T?R+I:this.right,i.rtl),S(l.x(R),z,M),T)p.x+=I+h;else if(typeof M.text!="string"){let ct=c.lineHeight;p.y+=pc(M,ct)+h}else p.y+=C}),en(this.ctx,i.textDirection)}drawTitle(){let i=this.options,t=i.title,s=J(t.font),n=rt(t.padding);if(!t.display)return;let o=be(i.rtl,this.left,this.width),r=this.ctx,a=t.position,l=s.size/2,c=n.top+l,h,f=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,f=ot(i.align,f,this.right-u);else{let m=this.columnSizes.reduce((b,_)=>Math.max(b,_.height),0);h=c+ot(i.align,this.top,this.bottom-m-i.labels.padding-this._computeTitleHeight())}let p=ot(a,f,f+u);r.textAlign=o.textAlign(Fi(a)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=s.string,Qt(r,t.text,p,h,s)}_computeTitleHeight(){let i=this.options.title,t=J(i.font),s=rt(i.padding);return i.display?t.lineHeight+s.height:0}_getLegendItemAt(i,t){let s,n,o;if(kt(i,this.left,this.right)&&kt(t,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),i+t.size/2+s.measureText(n).width}function Lg(e,i,t){let s=e;return typeof i.text!="string"&&(s=pc(i,t)),s}function pc(e,i){let t=e.text?e.text.length:0;return i*t}function Rg(e,i){return!!((e==="mousemove"||e==="mouseout")&&(i.onHover||i.onLeave)||i.onClick&&(e==="click"||e==="mouseup"))}var Fg={id:"legend",_element:_n,start(e,i,t){let s=e.legend=new _n({ctx:e.ctx,options:t,chart:e});lt.configure(e,s,t),lt.addBox(e,s)},stop(e){lt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){let s=e.legend;lt.configure(e,s,t),s.options=t},afterUpdate(e){let i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){let s=i.datasetIndex,n=t.chart;n.isDatasetVisible(s)?(n.hide(s),i.hidden=!0):(n.show(s),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(t?0:void 0),h=rt(c.borderWidth);return{text:i[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},Zi=class extends Dt{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.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(i,t){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=i,this.height=this.bottom=t;let n=H(s.text)?s.text.length:1;this._padding=rt(s.padding);let o=n*J(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let i=this.options.position;return i==="top"||i==="bottom"}_drawArgs(i){let{top:t,left:s,bottom:n,right:o,options:r}=this,a=r.align,l=0,c,h,f;return this.isHorizontal()?(h=ot(a,s,o),f=t+i,c=o-s):(r.position==="left"?(h=s+i,f=ot(a,n,t),l=U*-.5):(h=o-i,f=ot(a,t,n),l=U*.5),c=n-t),{titleX:h,titleY:f,maxWidth:c,rotation:l}}draw(){let i=this.ctx,t=this.options;if(!t.display)return;let s=J(t.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Qt(i,t.text,0,0,s,{color:t.color,maxWidth:l,rotation:c,textAlign:Fi(t.align),textBaseline:"middle",translation:[r,a]})}};function zg(e,i){let t=new Zi({ctx:e.ctx,options:i,chart:e});lt.configure(e,t,i),lt.addBox(e,t),e.titleBlock=t}var Ng={id:"title",_element:Zi,start(e,i,t){zg(e,t)},stop(e){let i=e.titleBlock;lt.removeBox(e,i),delete e.titleBlock},beforeUpdate(e,i,t){let s=e.titleBlock;lt.configure(e,s,t),s.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}},cn=new WeakMap,Bg={id:"subtitle",start(e,i,t){let s=new Zi({ctx:e.ctx,options:t,chart:e});lt.configure(e,s,t),lt.addBox(e,s),cn.set(e,s)},stop(e){lt.removeBox(e,cn.get(e)),cn.delete(e)},beforeUpdate(e,i,t){let s=cn.get(e);lt.configure(e,s,t),s.options=t},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}},qi={average(e){if(!e.length)return!1;let i,t,s=0,n=0,o=0;for(i=0,t=e.length;i-1?e.split(` diff --git a/frontend/server/modelsmith-build/browser/chunk-DZI3JCLT.js b/frontend/server/modelsmith-build/browser/chunk-73XHKPJW.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-DZI3JCLT.js rename to frontend/server/modelsmith-build/browser/chunk-73XHKPJW.js index 4509c841..2123b279 100644 --- a/frontend/server/modelsmith-build/browser/chunk-DZI3JCLT.js +++ b/frontend/server/modelsmith-build/browser/chunk-73XHKPJW.js @@ -1 +1 @@ -import{$a as P,Aa as k,Ba as y,Ca as C,Cc as J,Da as u,Ea as l,Ec as Q,Fa as W,Fc as Y,Ga as F,Hc as Z,Ic as $,Ma as S,Na as h,O as R,Oa as N,Pa as E,Q as A,R as D,T as V,Ua as z,Z as f,_,a as b,ca as w,fa as L,gb as X,h as j,ha as H,ja as i,jd as ee,ka as M,lb as q,m as B,md as te,pb as G,qa as g,rd as ne,sa as p,sd as oe,ta as K,wa as a,xa as s,ya as U,za as O}from"./chunk-XZNUB5IR.js";var v=new A("DRAWER_DATA");var d=function(e){return e.OPEN="open",e.DISMISS="dismiss",e.SAVE="save",e.CLOSE="close",e}(d||{});var m=class{constructor(n){this.overlayRef=n,this.afterClosedSubject=new j}backdropClick(){return this.overlayRef.backdropClick()}close(n){this.overlayRef.dispose(),this.afterClosedSubject.next(n),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var le=["*"];function pe(e,n){e&1&&y(0)}function de(e,n){if(e&1){let t=C();a(0,"div",7)(1,"div",8),h(2),s(),a(3,"div",9)(4,"button",10),u("click",function(){f(t);let o=l();return _(o.onDismiss())}),U(5,"mat-icon",11),s()()()}if(e&2){let t=l();i(2),N(t.data.title)}}function me(e,n){e&1&&y(0)}function ue(e,n){if(e&1){let t=C();O(0),a(1,"button",14),u("click",function(){f(t);let o=l(2);return _(o.onClose())}),h(2),s(),k()}if(e&2){let t=l(2);i(),p("disabled",t.isDismissDisabled),i(),E(" ",t.data.closeButtonLabel," ")}}function fe(e,n){if(e&1){let t=C();O(0),a(1,"button",15),u("click",function(){f(t);let o=l(2);return _(o.onSave())}),h(2),s(),k()}if(e&2){let t=l(2);i(),p("disabled",t.isSaveDisabled),i(),E(" ",t.data.saveButtonLabel," ")}}function _e(e,n){if(e&1&&(a(0,"div",12),g(1,ue,3,2,"ng-container",13)(2,fe,3,2,"ng-container",13),s()),e&2){let t=l();i(),p("ngIf",t.data.showCloseButton),i(),p("ngIf",t.data.showSaveButton)}}var c,re=(c=class{constructor(n,t){this.drawerRef=n,this.data=t,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new L,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(d.CLOSE),this.drawerRef.close({status:d.CLOSE})}onSave(){this.actionEvent.emit(d.SAVE)}onDismiss(){this.actionEvent.emit(d.DISMISS),this.drawerRef.close({status:d.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.drawerRef.backdropClick().pipe(oe(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},c.\u0275fac=function(t){return new(t||c)(M(m),M(v))},c.\u0275cmp=V({type:c,selectors:[["ms-drawer"]],hostBindings:function(t,r){t&1&&u("keyup.esc",function(){return r.onEscKeyDown()},!1,H)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[z],ngContentSelectors:le,decls:11,vars:4,consts:[["defaultDrawerHeader",""],["defaultDrawerActions",""],[1,"drawer-wrapper"],[1,"drawer-header"],[4,"ngTemplateOutlet"],[1,"drawer-content"],[1,"drawer-actions"],[1,"drawer-header-wrapper"],[1,"heading-section-title"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X"],[1,"actions-wrapper"],[4,"ngIf"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(t,r){if(t&1&&(W(),a(0,"div",2)(1,"div",3),g(2,pe,1,0,"ng-container",4)(3,de,6,1,"ng-template",null,0,P),s(),a(5,"div",5),F(6),s(),a(7,"div",6),g(8,me,1,0,"ng-container",4)(9,_e,3,2,"ng-template",null,1,P),s()()),t&2){let o=S(4),x=S(10);K("width",r.data.width,"px"),i(2),p("ngTemplateOutlet",r.headerTemplate||o),i(6),p("ngTemplateOutlet",r.actionsTemplate||x)}},dependencies:[G,X,q,Y,J,Q,$,Z],styles:[".drawer-wrapper[_ngcontent-%COMP%]{width:inherit;height:100vh;box-shadow:0 0 4px 0 var(--backgrounds-700);display:flex;flex-direction:column}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header[_ngcontent-%COMP%]{min-height:90px;background-color:var(--backgrounds-200);box-sizing:border-box;border-bottom:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]{color:var(--foregrounds-100)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]:hover{color:var(--foregrounds-300)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-content[_ngcontent-%COMP%]{overflow-y:auto;background-color:var(--backgrounds-100);flex-grow:1;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%]{background-color:var(--backgrounds-200);padding:20px 32px;box-sizing:border-box;border-top:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}"]}),c);re=B([ne()],re);var Fe=(()=>{let n=class n{constructor(r,o){this.overlay=r,this.injector=o}open(r,o){let x=this.overlay.position().global().right(),I=this.overlay.create(b({positionStrategy:x,hasBackdrop:!0,backdropClass:"drawer-backdrop",height:"100vh",width:768},o)),T=new m(I),ie=w.create({parent:this.injector,providers:[{provide:m,useValue:T},{provide:v,useValue:b({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:768},o)}]}),ae=new ee(r,null,ie);return I.attach(ae),T}};n.\u0275fac=function(o){return new(o||n)(D(te),D(w))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let e=n;return e})();export{v as a,d as b,m as c,re as d,Fe as e}; +import{$a as P,Aa as k,Ba as y,Ca as C,Cc as J,Da as u,Ea as l,Ec as Q,Fa as W,Fc as Y,Ga as F,Hc as Z,Ic as $,Ma as S,Na as h,O as R,Oa as N,Pa as E,Q as A,R as D,T as V,Ua as z,Z as f,_,a as b,ca as w,fa as L,gb as X,h as j,ha as H,ja as i,jd as ee,ka as M,lb as q,m as B,md as te,pb as G,qa as g,rd as ne,sa as p,sd as oe,ta as K,wa as a,xa as s,ya as U,za as O}from"./chunk-JA5VSLUI.js";var v=new A("DRAWER_DATA");var d=function(e){return e.OPEN="open",e.DISMISS="dismiss",e.SAVE="save",e.CLOSE="close",e}(d||{});var m=class{constructor(n){this.overlayRef=n,this.afterClosedSubject=new j}backdropClick(){return this.overlayRef.backdropClick()}close(n){this.overlayRef.dispose(),this.afterClosedSubject.next(n),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var le=["*"];function pe(e,n){e&1&&y(0)}function de(e,n){if(e&1){let t=C();a(0,"div",7)(1,"div",8),h(2),s(),a(3,"div",9)(4,"button",10),u("click",function(){f(t);let o=l();return _(o.onDismiss())}),U(5,"mat-icon",11),s()()()}if(e&2){let t=l();i(2),N(t.data.title)}}function me(e,n){e&1&&y(0)}function ue(e,n){if(e&1){let t=C();O(0),a(1,"button",14),u("click",function(){f(t);let o=l(2);return _(o.onClose())}),h(2),s(),k()}if(e&2){let t=l(2);i(),p("disabled",t.isDismissDisabled),i(),E(" ",t.data.closeButtonLabel," ")}}function fe(e,n){if(e&1){let t=C();O(0),a(1,"button",15),u("click",function(){f(t);let o=l(2);return _(o.onSave())}),h(2),s(),k()}if(e&2){let t=l(2);i(),p("disabled",t.isSaveDisabled),i(),E(" ",t.data.saveButtonLabel," ")}}function _e(e,n){if(e&1&&(a(0,"div",12),g(1,ue,3,2,"ng-container",13)(2,fe,3,2,"ng-container",13),s()),e&2){let t=l();i(),p("ngIf",t.data.showCloseButton),i(),p("ngIf",t.data.showSaveButton)}}var c,re=(c=class{constructor(n,t){this.drawerRef=n,this.data=t,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new L,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(d.CLOSE),this.drawerRef.close({status:d.CLOSE})}onSave(){this.actionEvent.emit(d.SAVE)}onDismiss(){this.actionEvent.emit(d.DISMISS),this.drawerRef.close({status:d.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.drawerRef.backdropClick().pipe(oe(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},c.\u0275fac=function(t){return new(t||c)(M(m),M(v))},c.\u0275cmp=V({type:c,selectors:[["ms-drawer"]],hostBindings:function(t,r){t&1&&u("keyup.esc",function(){return r.onEscKeyDown()},!1,H)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[z],ngContentSelectors:le,decls:11,vars:4,consts:[["defaultDrawerHeader",""],["defaultDrawerActions",""],[1,"drawer-wrapper"],[1,"drawer-header"],[4,"ngTemplateOutlet"],[1,"drawer-content"],[1,"drawer-actions"],[1,"drawer-header-wrapper"],[1,"heading-section-title"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X"],[1,"actions-wrapper"],[4,"ngIf"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(t,r){if(t&1&&(W(),a(0,"div",2)(1,"div",3),g(2,pe,1,0,"ng-container",4)(3,de,6,1,"ng-template",null,0,P),s(),a(5,"div",5),F(6),s(),a(7,"div",6),g(8,me,1,0,"ng-container",4)(9,_e,3,2,"ng-template",null,1,P),s()()),t&2){let o=S(4),x=S(10);K("width",r.data.width,"px"),i(2),p("ngTemplateOutlet",r.headerTemplate||o),i(6),p("ngTemplateOutlet",r.actionsTemplate||x)}},dependencies:[G,X,q,Y,J,Q,$,Z],styles:[".drawer-wrapper[_ngcontent-%COMP%]{width:inherit;height:100vh;box-shadow:0 0 4px 0 var(--backgrounds-700);display:flex;flex-direction:column}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header[_ngcontent-%COMP%]{min-height:90px;background-color:var(--backgrounds-200);box-sizing:border-box;border-bottom:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]{color:var(--foregrounds-100)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]:hover{color:var(--foregrounds-300)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-content[_ngcontent-%COMP%]{overflow-y:auto;background-color:var(--backgrounds-100);flex-grow:1;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%]{background-color:var(--backgrounds-200);padding:20px 32px;box-sizing:border-box;border-top:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}"]}),c);re=B([ne()],re);var Fe=(()=>{let n=class n{constructor(r,o){this.overlay=r,this.injector=o}open(r,o){let x=this.overlay.position().global().right(),I=this.overlay.create(b({positionStrategy:x,hasBackdrop:!0,backdropClass:"drawer-backdrop",height:"100vh",width:768},o)),T=new m(I),ie=w.create({parent:this.injector,providers:[{provide:m,useValue:T},{provide:v,useValue:b({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:768},o)}]}),ae=new ee(r,null,ie);return I.attach(ae),T}};n.\u0275fac=function(o){return new(o||n)(D(te),D(w))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let e=n;return e})();export{v as a,d as b,m as c,re as d,Fe as e}; diff --git a/frontend/server/modelsmith-build/browser/chunk-AKOJ7TQ4.js b/frontend/server/modelsmith-build/browser/chunk-AKOJ7TQ4.js new file mode 100644 index 00000000..d8b4bb8b --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-AKOJ7TQ4.js @@ -0,0 +1,11 @@ +import{a as ct,e as pt,g as Hi,h as Oe,i as Ie}from"./chunk-6GVGRTBF.js";import{a as ji,b as mt,c as Gi}from"./chunk-H4YXRKOV.js";import{a as lt}from"./chunk-DMXFRYPI.js";import{a as Xi,b as Yi}from"./chunk-WP2WLVOC.js";import{a as Li,b as de,c as zi,d as st,e as Pe}from"./chunk-73XHKPJW.js";import"./chunk-3ZHMSG5W.js";import{b as Vi}from"./chunk-KK5JZLDV.js";import{$ as Ge,$a as K,$c as xi,A as xe,Aa as w,Ab as ai,Ad as rt,Ae as Ni,Bd as Bt,Ca as E,Cc as Ci,Cd as I,Da as C,Ea as m,Ec as _i,G as Et,Hc as Te,I as Dt,Ja as ne,Ka as re,Kb as si,La as oe,Lb as Ue,Lc as vi,Ma as j,Mb as li,Mc as kt,N as Yt,Na as d,Nb as ci,O as U,Oa as A,Ob as Ee,Oc as q,Od as yi,P as we,Pa as F,Pb as pi,Pc as Pt,Qa as ae,Qb as Mt,Qc as Ot,Qd as Ae,R as H,Ra as se,Rb as mi,Rc as ze,S as Wt,Sa as le,Sb as At,Sc as It,T,Ta as be,Tb as di,U as ye,V as Ne,W as je,Wa as Tt,Wc as tt,Y as $t,Ya as b,Z as _,Za as S,Zb as Rt,Zc as it,Zd as bi,_ as v,_a as Jt,a as O,aa as Ut,ab as ei,b as z,ca as Kt,cb as Ye,cd as wi,de as me,ea as Ve,ec as Ke,ed as nt,ee as Re,fa as B,fb as Y,fc as Qe,fe as ke,gb as Q,ge as Si,ha as Qt,hb as ti,he as ot,i as wt,ia as Ft,ib as ii,ic as hi,ja as s,jb as ni,jc as ui,je as Ei,ka as f,kb as We,kc as fe,ke as at,la as qt,lc as Le,le as Di,m as ie,mb as Se,nb as ri,nc as ce,o as yt,ob as oi,oc as De,pb as $e,pc as qe,qa as u,qe as Fi,rc as gi,rd as pe,re as Ti,s as bt,sa as p,sc as Ze,sd as N,se as Mi,ta as X,te as Ai,ua as Xe,uc as Je,ue as Ri,va as Zt,vc as fi,ve as ki,w as Gt,wa as l,we as Pi,x as St,xa as c,xc as Fe,xe as Oi,ya as g,yd as Me,ye as Ii,z as Xt,za as x,zb as ge,zc as et,ze as Bi}from"./chunk-JA5VSLUI.js";var Cn=["hueSlider"],_n=["alphaSlider"];function vn(n,i){if(n&1){let e=E();l(0,"div",10),C("newValue",function(r){_(e);let o=m();return v(o.onSliderChange("saturation-lightness",r))}),l(1,"div",11),g(2,"div"),c()()}if(n&2){let e=m();X("background-color",e.hueSliderColor),p("rgX",1)("rgY",1),s(),X("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function xn(n,i){if(n&1&&(l(0,"div",12),g(1,"div",13)(2,"div",14),c()),n&2){let e=m();s(2),X("background-color",e.selectedColor)}}function wn(n,i){if(n&1){let e=E();l(0,"div",15,1),C("newValue",function(r){_(e);let o=m();return v(o.onSliderChange("hue",r))}),l(2,"div",16)(3,"div"),g(4,"div"),c()()()}if(n&2){let e=m();p("rgX",1),s(2),X("left",e.slider==null?null:e.slider.h,"px")}}function yn(n,i){if(n&1){let e=E();l(0,"div",17,2),C("newValue",function(r){_(e);let o=m();return v(o.onSliderChange("alpha",r))}),g(2,"div",18),l(3,"div",16)(4,"div"),g(5,"div"),c()()()}if(n&2){let e=m();p("rgX",1),s(2),p("ngStyle",e.getBackgroundColor(e.alphaSliderColor)),s(),X("left",e.slider==null?null:e.slider.a,"px")}}var bn=["dialog"],Ui=n=>({background:n});function Sn(n,i){n&1&&g(0,"div",12)}function En(n,i){if(n&1){let e=E();x(0),l(1,"div",9)(2,"div",10),C("click",function(){let r=_(e).$implicit,o=m(2);return v(o.onColorClick(r))}),u(3,Sn,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=i.index,r=m(2);s(2),Xe("colornull",!e),p("ngStyle",r.getBackgroundColor(e)),s(),p("ngIf",t==r.indexSeleccionado)}}function Dn(n,i){if(n&1&&g(0,"div",18),n&2){let e=m(3);p("ngStyle",e.getBackgroundColor(e.color))}}function Fn(n,i){if(n&1){let e=E();l(0,"div",13),C("click",function(){_(e);let r=m(2);return v(r.addColor())}),u(1,Dn,1,1,"div",14),Ge(),l(2,"svg",15),g(3,"path",16)(4,"path",17),c()()}if(n&2){let e=m(2);s(),p("ngIf",e.indexSeleccionado===void 0)}}function Tn(n,i){if(n&1){let e=E();l(0,"color-picker",19),C("colorChange",function(r){_(e);let o=m(2);return v(o.onChangeColorPicker(r))})("onAlphaChange",function(r){_(e);let o=m(2);return v(o.onAlphaChange(r))}),c()}if(n&2){let e=m(2);p("controls",e.colorPickerControls)("color",e.hsva)}}function Mn(n,i){if(n&1&&(x(0),l(1,"div",5),u(2,En,4,4,"ng-container",6)(3,Fn,5,1,"div",7)(4,Tn,1,2,"color-picker",8),c(),w()),n&2){let e=m();s(),p("@colorsAnimation",e.colorsAnimationEffect),s(),p("ngForOf",e.palette),s(),p("ngIf",!e.hideColorPicker&&e.colorPickerControls!="only-alpha"),s(),p("ngIf",!e.hideColorPicker&&e.colorPickerControls=="only-alpha")}}function An(n,i){n&1&&g(0,"div",12)}function Rn(n,i){if(n&1){let e=E();x(0),l(1,"div",9)(2,"div",25),C("click",function(){let r=_(e).$implicit,o=m(2);return v(o.changeColor(r))}),u(3,An,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=m(2);s(2),Xe("colornull",!e),p("ngStyle",Tt(4,Ui,e)),s(),p("ngIf",t.isSelected(e))}}function kn(n,i){if(n&1){let e=E();x(0),l(1,"div",5)(2,"div",20)(3,"div",21),C("click",function(){_(e);let r=m();return v(r.onClickBack())}),Ge(),l(4,"svg",22),g(5,"path",23)(6,"path",24),c()()(),u(7,Rn,4,6,"ng-container",6),c(),w()}if(n&2){let e=m();s(),p("@colorsAnimation",e.colorsAnimationEffect),s(6),p("ngForOf",e.variants)}}function Pn(n,i){if(n&1){let e=E();x(0),l(1,"div",26)(2,"div",27),C("click",function(){_(e);let r=m();return v(r.onClickBack())}),Ge(),l(3,"svg",22),g(4,"path",23)(5,"path",24),c()(),Ut(),l(6,"button",28),C("click",function(){_(e);let r=m();return v(r.emitClose("cancel"))}),d(7),c(),l(8,"button",28),C("click",function(){_(e);let r=m();return v(r.emitClose("accept"))}),d(9),c()(),l(10,"div",29)(11,"color-picker",30),C("sliderChange",function(r){_(e);let o=m();return v(o.onChangeColorPicker(r))}),c()(),w()}if(n&2){let e=m();s(7),F(" ",e.cancelLabel," "),s(2),F(" ",e.acceptLabel," "),s(2),p("controls",e.colorPickerControls)("color",e.hsva)}}function On(n,i){if(n&1){let e=E();l(0,"div",31)(1,"p",32),C("click",function(){_(e);let r=m();return v(r.nextFormat())}),d(2),c(),l(3,"div",33)(4,"input",34,1),C("keyup",function(){_(e);let r=j(5),o=m();return v(o.changeColorManual(r.value))})("keydown.enter",function(){_(e);let r=m();return v(r.emitClose("accept"))}),c()()()}if(n&2){let e=m();s(2),A(e.colorFormats[e.format]),s(2),X("font-size",e.color&&e.color.length>23?9:10,"px")("letter-spacing",e.color&&e.color.length>16?0:1.5,"px"),p("placeholder",e.placeholder)("value",e.color)}}var Nt=["hex","rgba","hsla","cmyk"],R=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(R||{}),Wi=[{color:"rojo",preview:"#E57373",variants:["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828"]},{color:"rosa",preview:"#F06292",variants:["#FCE4EC","#F8BBD0","#F48FB1","#F06292","#EC407A","#E91E63","#D81B60","#C2185B","#AD1457"]},{color:"purpura",preview:"#BA68C8",variants:["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A"]},{color:"purpura oscuro",preview:"#9575CD",variants:["#EDE7F6","#D1C4E9","#B39DDB","#9575CD","#7E57C2","#673AB7","#5E35B1","#512DA8","#4527A0"]},{color:"indigo",preview:"#7986CB",variants:["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593"]},{color:"azul",preview:"#64B5F6",variants:["#E3F2FD","#BBDEFB","#90CAF9","#64B5F6","#42A5F5","#2196F3","#1E88E5","#1976D2","#1565C0"]},{color:"celeste",preview:"#4FC3F7",variants:["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD"]},{color:"cyan",preview:"#4DD0E1",variants:["#E0F7FA","#B2EBF2","#80DEEA","#4DD0E1","#26C6DA","#00BCD4","#00ACC1","#0097A7","#00838F"]},{color:"color",preview:"#4DB6AC",variants:["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C"]},{color:"verde",preview:"#81C784",variants:["#E8F5E9","#C8E6C9","#A5D6A7","#81C784","#66BB6A","#4CAF50","#43A047","#388E3C","#2E7D32"]},{color:"verde claro",preview:"#AED581",variants:["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F"]},{color:"lima",preview:"#DCE775",variants:["#F9FBE7","#F0F4C3","#E6EE9C","#DCE775","#D4E157","#CDDC39","#C0CA33","#AFB42B","#9E9D24"]},{color:"amarillo",preview:"#FFF176",variants:["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825"]},{color:"ambar",preview:"#FFD54F",variants:["#FFF8E1","#FFECB3","#FFE082","#FFD54F","#FFCA28","#FFC107","#FFB300","#FFA000","#FF8F00"]},{color:"naranja",preview:"#FFB74D",variants:["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00"]},{color:"naranja oscuro",preview:"#FF8A65",variants:["#FBE9E7","#FFCCBC","#FFAB91","#FF8A65","#FF7043","#FF5722","#F4511E","#E64A19","#D84315"]},{color:"marron",preview:"#A1887F",variants:["#EFEBE9","#D7CCC8","#BCAAA4","#A1887F","#8D6E63","#795548","#6D4C41","#5D4037","#4E342E"]},{color:"escala de grises",preview:"#E0E0E0",variants:["#FFFFFF","#FAFAFA","#F5F5F5","#EEEEEE","#E0E0E0","#BDBDBD","#9E9E9E","#757575","#616161","#424242","#000000"]},{color:"azul gris",preview:"#90A4AE",variants:["#ECEFF1","#CFD8DC","#B0BEC5","#90A4AE","#78909C","#607D8B","#546E7A","#455A64","#37474F"]}],W=class{constructor(i,e,t,r){this.r=i,this.g=e,this.b=t,this.a=r}denormalize(){return this.r=Math.round(this.r*255),this.g=Math.round(this.g*255),this.b=Math.round(this.b*255),this}toString(){return this.denormalize(),"rgb"+(this.a!=1?"a(":"(")+this.r+", "+this.g+", "+this.b+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},G=class{constructor(i,e,t,r){this.h=i,this.s=e,this.v=t,this.a=r,this.onChange=new B(!0)}onColorChange(i){this.s=i.s/i.rgX,this.v=i.v/i.rgY}onHueChange(i){this.h=i.v/i.rgX}onValueChange(i){this.v=i.v/i.rgX}onAlphaChange(i){this.a=i.v/i.rgX}},Ce=class{constructor(i,e,t,r){this.h=i,this.s=e,this.l=t,this.a=r}denormalize(){return this.h=Math.round(this.h*360),this.s=Math.round(this.s*100),this.l=Math.round(this.l*100),this}toString(){return"hsl"+(this.a!=1?"a(":"(")+this.h+", "+this.s+"%, "+this.l+"%"+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},he=class{constructor(i,e,t,r,o=1){this.c=i,this.m=e,this.y=t,this.k=r,this.a=o}denormalize(){return this.c=Math.round(this.c*100),this.m=Math.round(this.m*100),this.y=Math.round(this.y*100),this.k=Math.round(this.k*100),this}toString(){return this.denormalize(),"cmyk("+this.c+", "+this.m+", "+this.y+", "+this.k+")"}},Vt=class{constructor(i){i&&(this.preview=i.preview,this.variants=i.variants)}},ut=(()=>{class n{constructor(){}toFormat(e,t){var r="";if(e)switch(t){case R.HEX:var a=this.hsvaToRgba(e);a.denormalize();var r=this.rgbaToHex(a,!0);break;case R.HSLA:var o=this.hsva2hsla(e);o.denormalize();var r=o.toString();break;case R.RGBA:var a=this.hsvaToRgba(e),r=a.toString();break;case R.CMYK:var h=this.hsvaToCmyk(e),r=h.toString();break}return r}stringToFormat(e,t){var r=this.stringToHsva(e,!0);return this.toFormat(r,t)}hsva2hsla(e){let t=e.h,r=e.s,o=e.v,a=e.a;if(o===0)return new Ce(t,0,0,a);if(r===0&&o===1)return new Ce(t,1,1,a);{let h=o*(2-r)/2;return new Ce(t,o*r/(1-Math.abs(2*h-1)),h,a)}}hsla2hsva(e){let t=Math.min(e.h,1),r=Math.min(e.s,1),o=Math.min(e.l,1),a=Math.min(e.a,1);if(o===0)return new G(t,0,0,a);{let h=o+r*(1-Math.abs(2*o-1))/2;return new G(t,2*(h-o)/h,h,a)}}hsvaToRgba(e){let t,r,o,a=e.h,h=e.s,y=e.v,D=e.a,$=Math.floor(a*6),ve=a*6-$,P=y*(1-h),Be=y*(1-ve*h),ue=y*(1-(1-ve)*h);switch($%6){case 0:t=y,r=ue,o=P;break;case 1:t=Be,r=y,o=P;break;case 2:t=P,r=y,o=ue;break;case 3:t=P,r=Be,o=y;break;case 4:t=ue,r=P,o=y;break;case 5:t=y,r=P,o=Be;break;default:t=0,r=0,o=0}return new W(t,r,o,D)}cmykToRgb(e){let t=(1-e.c)*(1-e.k),r=(1-e.m)*(1-e.k),o=(1-e.y)*(1-e.k);return new W(t,r,o,e.a)}rgbaToCmyk(e){let t=1-Math.max(e.r,e.g,e.b);if(t===1)return new he(0,0,0,1,e.a);{let r=(1-e.r-t)/(1-t),o=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new he(r,o,a,t,e.a)}}hsvaToCmyk(e){let t=this.hsvaToRgba(e);return this.rgbaToCmyk(t)}rgbaToHsva(e){let t,r,o=Math.min(e.r,1),a=Math.min(e.g,1),h=Math.min(e.b,1),y=Math.min(e.a,1),D=Math.max(o,a,h),$=Math.min(o,a,h),ve=D,P=D-$;if(r=D===0?0:P/D,D===$)t=0;else{switch(D){case o:t=(a-h)/P+(a{class n{mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.dragEnd=new B,this.dragStart=new B,this.newValue=new B,this.listenerMove=t=>this.move(t),this.listenerStop=()=>this.stop()}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-t.left-window.pageXOffset}getY(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-t.top-window.pageYOffset}setCursor(e){let t=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),r));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:o/t,v:1-a/r,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:a/r,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:o/t,rgX:this.rgX})}}return n.\u0275fac=function(e){return new(e||n)(f(Ve))},n.\u0275dir=Ne({type:n,selectors:[["","slider",""]],hostBindings:function(e,t){e&1&&C("mousedown",function(o){return t.mouseDown(o)})("touchstart",function(o){return t.touchStart(o)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),n})(),Bn=(()=>{class n{constructor(e,t){this.service=e,this.cdr=t,this.color=new G(0,1,1,1),this.controls="default",this.sliderChange=new B(!1),this.onAlphaChange=new B(!1),this.hsva=new G(0,1,1,1),this.selectedColor="#000000",this.fallbackColor="#000000"}ngOnInit(){this.color||(this.color=new G(0,1,1,1)),this.slider=new dt(0,0,0,0),this.update()}ngOnDestroy(){}ngOnChanges(e){e.color&&this.color&&this.update()}ngAfterViewInit(){let e=this.hueSlider?.nativeElement.offsetWidth||140,t=this.alphaSlider?.nativeElement.offsetWidth||140;this.sliderDimMax=new Lt(e,220,130,t),this.update()}onSliderChange(e,t){switch(e){case"saturation-lightness":this.hsva.onColorChange(t);break;case"hue":this.hsva.onHueChange(t);break;case"alpha":this.hsva.onAlphaChange(t),this.onAlphaChange.emit(t);break;case"value":this.hsva.onValueChange(t);break}this.update(),this.setColor(this.outputColor)}setColor(e){this.color=e,this.sliderChange.emit(this.color)}getBackgroundColor(e){return{background:"linear-gradient(90deg, rgba(36,0,0,0) 0%, "+e+" 100%)"}}update(){if(this.hsva=this.color,this.sliderDimMax){let e=this.service.hsvaToRgba(this.hsva).denormalize(),t=this.service.hsvaToRgba(new G(this.hsva.h,1,1,1)).denormalize();this.hueSliderColor="rgb("+t.r+","+t.g+","+t.b+")",this.alphaSliderColor="rgb("+e.r+","+e.g+","+e.b+")",this.outputColor=this.hsva,this.selectedColor=this.service.hsvaToRgba(this.hsva).toString(),this.slider=new dt(this.hsva.h*this.sliderDimMax.h-5,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-5),this.cdr.detectChanges()}}}return n.\u0275fac=function(e){return new(e||n)(f(ut),f(Ye))},n.\u0275cmp=T({type:n,selectors:[["color-picker"]],viewQuery:function(e,t){if(e&1&&(ne(Cn,5),ne(_n,5)),e&2){let r;re(r=oe())&&(t.hueSlider=r.first),re(r=oe())&&(t.alphaSlider=r.first)}},inputs:{color:"color",controls:"controls"},outputs:{sliderChange:"sliderChange",onAlphaChange:"onAlphaChange"},features:[$t],decls:8,vars:4,consts:[["dialogPopup",""],["hueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue",4,"ngIf"],[1,"hue-alpha","box"],["class","left",4,"ngIf"],[1,"right"],["class","hue",3,"slider","rgX","newValue",4,"ngIf"],["class","alpha",3,"slider","rgX","newValue",4,"ngIf"],[1,"saturation-lightness",3,"newValue","slider","rgX","rgY"],[1,"cursor"],[1,"left"],[1,"selected-color-background"],[1,"selected-color"],[1,"hue",3,"newValue","slider","rgX"],[1,"sliderCursor"],[1,"alpha",3,"newValue","slider","rgX"],[1,"alpha-gradient",3,"ngStyle"]],template:function(e,t){if(e&1){let r=E();l(0,"div",3,0),C("click",function(a){return _(r),v(a.stopPropagation())}),u(2,vn,3,8,"div",4),l(3,"div",5),u(4,xn,3,2,"div",6),l(5,"div",7),u(6,wn,5,3,"div",8)(7,yn,6,4,"div",9),c()()()}e&2&&(s(2),p("ngIf",t.controls!="only-alpha"),s(2),p("ngIf",t.controls!="only-alpha"),s(2),p("ngIf",t.controls!="only-alpha"),s(),p("ngIf",t.controls!="no-alpha"))},dependencies:[Q,We,In],styles:[`.color-picker{position:relative;z-index:1000;width:220px;height:auto;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .sliderCursor{width:10px;border-radius:5px;position:absolute;margin-top:-3px;border:1px solid black}.color-picker .sliderCursor>div{border:2px solid white;border-radius:5px}.color-picker .sliderCursor>div>div{border-radius:5px;border:1px solid black;height:24px}.color-picker .cursor{position:absolute;width:21px;border:3px solid black;border-radius:100%;margin:-2px 0 0 -2px}.color-picker .cursor>div{height:15px;border:3px solid white;border-radius:100%}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;padding:12px 8px}.color-picker .hue-alpha{display:flex;align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:24px;border:none;border-radius:5px;position:relative;cursor:pointer;background-size:100% 100%;background:linear-gradient(to right,red 0%,#ff0 17%,lime 33%,cyan 50%,blue 66%,#f0f 83%,red 100%)}.color-picker .alpha{direction:ltr;position:relative;width:100%;height:24px;border:none;border-radius:5px;cursor:pointer;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .alpha-gradient{width:100%;height:100%;border-radius:5px;position:absolute}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;box-shadow:0 1px 1px 1px #00000026;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .saturation-lightness{direction:ltr;cursor:crosshair;width:100%;position:relative;height:130px;border:none;touch-action:manipulation;background-image:linear-gradient(to top,#000 0%,transparent 100%),linear-gradient(to right,#fff 0%,transparent 100%)} +`],encapsulation:2}),n})(),Nn=(()=>{class n{click(e){this.isOutside(e)&&this.emitClose("cancel")}onScroll(){this.onScreenMovement()}onResize(){this.onScreenMovement()}constructor(e,t){this.service=e,this.cdr=t,this.color="#000000",this.previewColor="#000000",this.hsva=new G(0,1,1,1),this.colorsAnimationEffect="slide-in",this.palette=Wi,this.variants=[],this.userFormats=[],this.colorFormats=Nt,this.format=R.HEX,this.formatMap={hex:R.HEX,rgba:R.RGBA,hsla:R.HSLA,cmyk:R.CMYK},this.canChangeFormat=!0,this.menu=1,this.hideColorPicker=!1,this.hideTextInput=!1,this.colorPickerControls="default",this.placeholder="#FFFFFF"}ngOnInit(){this.setPosition(),this.hsva=this.service.stringToHsva(this.color),this.indexSeleccionado=this.findIndexSelectedColor(this.palette)}ngAfterViewInit(){this.setPositionY()}onScreenMovement(){this.setPosition(),this.setPositionY(),this.panelRef.nativeElement.style.transition||(this.panelRef.nativeElement.style.transition="transform 0.5s ease-out")}findIndexSelectedColor(e){let t;if(this.color)for(let r=0;rNt.includes(fn))&&(this.colorFormats=ue),h?this.colorFormats.includes(h)?(this.format=this.colorFormats.indexOf(h.toLowerCase()),this.canChangeFormat=!1,this.service.getFormatByString(this.color)!=h.toLowerCase()&&this.setColor(this.service.stringToHsva(this.color))):(console.error("Format provided is invalid, using HEX"),this.format=R.HEX):(this.format=this.colorFormats.indexOf(this.service.getFormatByString(this.color)),this.format<0&&(this.format=0)),this.previewColor=this.color,this.palette=o??Wi,this.colorsAnimationEffect=a,Be=="top"){let jt=this.TriggerBBox.nativeElement.getBoundingClientRect();this.positionString="transform: translateY(calc( -100% - "+jt.height+"px ))"}}setPosition(){if(this.TriggerBBox){let t=this.TriggerBBox.nativeElement.getBoundingClientRect();this.top=t.top+t.height,t.left+250>window.innerWidth?this.left=t.right<250?window.innerWidth/2-250/2:t.right-250:this.left=t.left}}setPositionY(){let e=this.TriggerBBox.nativeElement.getBoundingClientRect(),t=this.panelRef.nativeElement.getBoundingClientRect(),r=t.height;e.bottom+r>window.innerHeight?this.positionString=e.topt.toUpperCase()==this.previewColor.toUpperCase()):!1}isSelected(e){return this.previewColor?typeof e=="string"&&e.toUpperCase()==this.previewColor.toUpperCase():!1}getBackgroundColor(e){return typeof e=="string"?{background:e}:{background:e?.preview}}onAlphaChange(e){this.palette=this.ChangeAlphaOnPalette(e,this.palette)}ChangeAlphaOnPalette(e,t){var r=[];for(let o=0;o slide-in",[ze(":enter",q({opacity:0}),{optional:!0}),ze(":enter",It("10ms",[kt(".3s ease-in",Pt([q({opacity:0,transform:"translatex(-50%)",offset:0}),q({opacity:.5,transform:"translatex(-10px) scale(1.1)",offset:.3}),q({opacity:1,transform:"translatex(0)",offset:1})]))]),{optional:!0})]),Ot("void => popup",[ze(":enter",q({opacity:0,transform:"scale(0)"}),{optional:!0}),ze(":enter",It("10ms",[kt("500ms ease-out",Pt([q({opacity:.5,transform:"scale(.5)",offset:.3}),q({opacity:1,transform:"scale(1.1)",offset:.8}),q({opacity:1,transform:"scale(1)",offset:1})]))]),{optional:!0})])])]}}),n})(),$i={position:"fixed",height:"100%",width:"100%","z-index":2e3,top:0,left:0},Ki=(()=>{class n{constructor(e,t,r){this.resolver=e,this.applicationRef=t,this.injector=r}createPanel(e,t){this.componentRef!=null&&this.removePanel();let r=this.resolver.resolveComponentFactory(Nn);this.componentRef=r.create(this.injector),this.applicationRef.attachView(this.componentRef.hostView);let o=this.componentRef.hostView.rootNodes[0];return this.overlay=document.createElement("div"),this.overlay.id="ngx-colors-overlay",this.overlay.classList.add("ngx-colors-overlay"),this.overlay.classList.add(t),Object.keys($i).forEach(a=>{this.overlay.style[a]=$i[a]}),e?document.getElementById(e).appendChild(this.overlay):document.body.appendChild(this.overlay),this.overlay.appendChild(o),this.componentRef}removePanel(){this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.overlay.remove()}}return n.\u0275fac=function(e){return new(e||n)(H(qt),H(ei),H(Kt))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})(),zt=(()=>{class n{onClick(){this.openPanel()}constructor(e,t,r){this.triggerRef=e,this.panelFactory=t,this.service=r,this.color="",this.colorsAnimation="slide-in",this.position="bottom",this.attachTo=void 0,this.overlayClassName=void 0,this.colorPickerControls="default",this.acceptLabel="ACCEPT",this.cancelLabel="CANCEL",this.change=new B,this.input=new B,this.slider=new B,this.close=new B,this.open=new B,this.isDisabled=!1,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}ngOnDestroy(){this.panelRef&&this.panelFactory.removePanel()}openPanel(){this.isDisabled||(this.panelRef=this.panelFactory.createPanel(this.attachTo,this.overlayClassName),this.panelRef.instance.iniciate(this,this.triggerRef,this.color,this.palette,this.colorsAnimation,this.format,this.hideTextInput,this.hideColorPicker,this.acceptLabel,this.cancelLabel,this.colorPickerControls,this.position,this.formats)),this.open.emit(this.color)}closePanel(){this.panelFactory.removePanel(),this.onTouchedCallback(),this.close.emit(this.color)}setDisabledState(e){this.isDisabled=e,this.triggerRef.nativeElement.style.opacity=e?.5:1}setColor(e,t=""){this.writeValue(e,t),this.onChangeCallback(e),this.input.emit(e)}sliderChange(e){this.slider.emit(e)}get value(){return this.color}set value(e){this.setColor(e),this.onChangeCallback(e)}writeValue(e,t=""){if(e!==this.color){if(this.format){let o=Nt.indexOf(this.format.toLowerCase());e=this.service.stringToFormat(e,o)}this.color=e;let r=!1;e&&e.startsWith("cmyk")&&(r=!0,t||(t=this.service.stringToFormat(e,R.RGBA))),this.change.emit(r?t:e)}}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return n.\u0275fac=function(e){return new(e||n)(f(Ve),f(Ki),f(ut))},n.\u0275dir=Ne({type:n,selectors:[["","ngx-colors-trigger",""]],hostBindings:function(e,t){e&1&&C("click",function(){return t.onClick()})},inputs:{colorsAnimation:"colorsAnimation",palette:"palette",format:"format",formats:"formats",position:"position",hideTextInput:"hideTextInput",hideColorPicker:"hideColorPicker",attachTo:"attachTo",overlayClassName:"overlayClassName",colorPickerControls:"colorPickerControls",acceptLabel:"acceptLabel",cancelLabel:"cancelLabel"},outputs:{change:"change",input:"input",slider:"slider",close:"close",open:"open"},features:[be([{provide:hi,useExisting:Yt(()=>n),multi:!0}])]}),n})(),Qi=(()=>{class n{constructor(e,t){this.cdRef=e,this.triggerDirective=t,this.triggerDirectiveColorChangeSubscription=null,this.color=this.triggerDirective.color}ngOnInit(){this.triggerDirectiveColorChangeSubscription=this.triggerDirective.change.subscribe(e=>{this.color=e,this.cdRef.markForCheck()})}ngOnDestroy(){this.triggerDirectiveColorChangeSubscription&&this.triggerDirectiveColorChangeSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(Ye),f(zt,1))},n.\u0275cmp=T({type:n,selectors:[["ngx-colors"]],decls:4,vars:5,consts:[[1,"app-color-picker"],[1,"preview"],[1,"preview-background"],[1,"circle",3,"ngStyle"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3),c()()()),e&2&&(s(3),Xe("colornull",!t.color),p("ngStyle",Tt(3,Ui,t.color)))},dependencies:[We],styles:["[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%]{line-height:1px;font-family:sans-serif}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{margin:2px;display:inline-block;box-sizing:border-box;border-radius:100%;background:white;cursor:pointer;padding:3px;box-shadow:0 1px 1px #0003,0 1px 1px 1px #00000024,0 1px 1px 1px #0000001f}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .preview-background[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px;border-radius:100%}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{height:20px;width:20px;box-sizing:border-box;border-radius:100%;cursor:pointer}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle.colornull[_ngcontent-%COMP%]{background:linear-gradient(135deg,rgba(236,236,236,.7) 0%,rgba(236,236,236,.7) 45%,#de0f00 50%,rgba(236,236,236,.7) 55%,rgba(236,236,236,.7) 100%)}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .noselected[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}"]}),n})(),qi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=we({providers:[ut,Ki],imports:[$e]}),n})();var M=ai({source:"[Run Records -> Records]",events:{"Get Run Records Filenames":ge(),"Get Run Records Filenames Success":ge(),"Get Run Records Filenames Failure":ge(),"Get Run Record Summarized Data":ge(),"Get Run Record Summarized Data Success":ge(),"Get Run Record Summarized Data Failure":ge()}});var gt=class extends nt{constructor(i){super(`run-records-filenames/${i}`,void 0,void 0,!1)}};var ft=class extends nt{constructor(i,e){super(`run-records-summarized-data/${i}/${e}`,void 0,void 0,!1)}};var Zi=(()=>{let i=class i{constructor(t,r){this.apiClient=t,this.actions$=r,this.getRunRecordsFilenames$=Mt(()=>this.actions$.pipe(At(M.getRunRecordsFilenames),Dt(o=>{let{algorithmType:a}=o;return this.apiClient.serviceCall(new gt(a)).pipe(bt(h=>M.getRunRecordsFilenamesSuccess({files:h})),St(h=>yt(M.getRunRecordsFilenamesFailure({error:h}))))}))),this.getRunRecordSummarizedData$=Mt(()=>this.actions$.pipe(At(M.getRunRecordSummarizedData),Dt(o=>{let{algorithmType:a,filename:h}=o;return this.apiClient.serviceCall(new ft(a,h)).pipe(bt(y=>M.getRunRecordSummarizedDataSuccess({record:y})),St(y=>yt(M.getRunRecordSummarizedDataFailure({error:y}))))})))}};i.\u0275fac=function(r){return new(r||i)(H(wi),H(mi))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var Ln={filenames:[],summarizedRecord:{},error:""},Ji=pi(Ln,Ee(M.getRunRecordsFilenamesSuccess,(n,{files:i})=>z(O({},n),{filenames:i,error:null})),Ee(M.getRunRecordsFilenamesFailure,(n,{error:i})=>z(O({},n),{error:i})),Ee(M.getRunRecordSummarizedData,n=>z(O({},n),{loading:!0,error:null})),Ee(M.getRunRecordSummarizedDataSuccess,(n,{record:i})=>z(O({},n),{summarizedRecord:i,error:null})),Ee(M.getRunRecordSummarizedDataFailure,(n,{error:i})=>z(O({},n),{error:i})));var en=li("runRecords");var tn=Ue(en,n=>n.records),nn=Ue(tn,n=>n.filenames),rn=Ue(tn,n=>n.summarizedRecord);var on={records:Ji};var an=(()=>{let i=class i{get lineClamp(){return this.maxEllipsisLines}onMouseEnter(){this.isTextOverflowing?this.tooltip.show():this.tooltip.hide()}onMouseLeave(){this.tooltip.hide()}constructor(t,r){this.tooltip=t,this.elementRef=r,this.maxEllipsisLines=2,this.display="-webkit-box",this.overflow="hidden",this.boxOrient="vertical",this.textOverflow="ellipsis",this.whiteSpace="normal",this.wordBreak="break-all"}ngAfterViewInit(){setTimeout(()=>{this.tooltip.message=this.elementRef.nativeElement.textContent.trim(),this.tooltip.position="above"},0)}get isTextOverflowing(){let t=parseInt(window.getComputedStyle(this.elementRef.nativeElement).lineHeight),r=this.maxEllipsisLines*t;return this.elementRef.nativeElement.scrollHeight>r}};i.\u0275fac=function(r){return new(r||i)(f(Ae),f(Ve))},i.\u0275dir=Ne({type:i,selectors:[["","msUseEllipsis",""]],hostVars:14,hostBindings:function(r,o){r&1&&C("mouseenter",function(){return o.onMouseEnter()})("mouseleave",function(){return o.onMouseLeave()}),r&2&&X("display",o.display)("overflow",o.overflow)("-webkit-box-orient",o.boxOrient)("-webkit-line-clamp",o.lineClamp)("text-overflow",o.textOverflow)("white-space",o.whiteSpace)("word-break",o.wordBreak)},inputs:{maxEllipsisLines:"maxEllipsisLines"},standalone:!0,features:[be([Ae])]});let n=i;return n})();var sn=(()=>{let i=class i{transform(t){return typeof t=="string"&&t&&t!="None"||typeof t=="number"&&!isNaN(t)?t.toString():"-"}};i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=je({name:"emptyTableField",type:i,pure:!0,standalone:!0});let n=i;return n})();var ln=(()=>{let i=class i{transform(t){return t&&typeof t=="object"&&Object.keys(t).length>0}};i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=je({name:"hasKeys",type:i,pure:!0,standalone:!0});let n=i;return n})();var V=function(n){return n.ADD="add",n.EDIT="edit",n.VIEW="view",n}(V||{});var Ct=(()=>{let i=class i{constructor(t){this.store=t,this.filenames$=this.store.select(nn),this.summarizedRecord$=this.store.select(rn)}dispatch(t){this.store.dispatch(t)}};i.\u0275fac=function(r){return new(r||i)(H(si))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var L=(()=>{let i=class i{get algorithmType(){return this._algorithmType.value}get algorithmType$(){return this._algorithmType.asObservable()}set algorithmType(t){this._recordsMap.set(this._algorithmType.value,this._records.value),this._algorithmType.next(t);let r=this._recordsMap.get(t)||[];this._records.next(r)}get records(){return this._records.value}get records$(){return this._records.asObservable()}addRecord(t){this.stopTooltips();let o=[...this._records.value,t];this._records.next(o),this._recordsMap.set(this._algorithmType.value,o)}updateRecord(t,r){this.stopTooltips();let o=this._records.value;if(t>=0&&t=0&&th!==t);this._records.next(o),this._recordsMap.set(this._algorithmType.value,o)}}stopTooltips(){this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1}constructor(t){this.chartToolsGlobalSignalsService=t,this._recordsMap=new Map,this._records=new wt([]),this._algorithmType=new wt(I.PRUNING)}};i.\u0275fac=function(r){return new(r||i)(H(Oe))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var pn=(()=>{let i=class i{get parentFormGroup(){return this.controlContainer.control}get chartFormGroup(){return this.parentFormGroup.get(this.controlKey)}get borderColorControl(){return this.chartFormGroup.get(this.CHART_BODER_COLOR_CONTROL_NAME)}get backgroundColorControl(){return this.chartFormGroup.get(this.CHART_BACKGROUND_COLOR_CONTROL_NAME)}constructor(t){this.controlContainer=t,this.controlKey="",this.CHART_BODER_COLOR_CONTROL_NAME="borderColor",this.CHART_BACKGROUND_COLOR_CONTROL_NAME="backgroundColor"}ngOnInit(){}};i.\u0275fac=function(r){return new(r||i)(f(Le))},i.\u0275cmp=T({type:i,selectors:[["ms-chart-colors-form-controls"]],inputs:{controlKey:"controlKey"},features:[be([],[{provide:Le,useFactory:()=>Wt(Le,{skipSelf:!0})}])],decls:15,vars:5,consts:[[3,"formGroupName"],[1,"form-field-container"],[1,"flex","items-center"],[1,"mr-2"],["ngx-colors-trigger","",3,"formControlName"]],template:function(r,o){r&1&&(x(0,0),l(1,"div",1)(2,"mat-label"),d(3,"Chart border color"),c(),l(4,"div",2)(5,"div",3),g(6,"ngx-colors",4),c(),d(7),c()(),l(8,"div",1)(9,"mat-label"),d(10,"Chart background color"),c(),l(11,"div",2)(12,"div",3),g(13,"ngx-colors",4),c(),d(14),c()(),w()),r&2&&(p("formGroupName",o.controlKey),s(6),p("formControlName",o.CHART_BODER_COLOR_CONTROL_NAME),s(),F(" ",o.borderColorControl==null?null:o.borderColorControl.value," "),s(6),p("formControlName",o.CHART_BACKGROUND_COLOR_CONTROL_NAME),s(),F(" ",o.backgroundColorControl==null?null:o.backgroundColorControl.value," "))},dependencies:[Qi,zt,tt,ce,De,Fe,fi]});let n=i;return n})();function Jn(n,i){if(n&1&&(l(0,"mat-option",14),d(1),c()),n&2){let e=m();s(),F(" No algorithm was yet run. Please run a ",e.algorithmTypeLabel," algorithm. ")}}function er(n,i){if(n&1&&(l(0,"mat-option",16),d(1),c()),n&2){let e=i.$implicit;p("value",e.name)("disabled",e.disabled),s(),F(" ",e.name," ")}}function tr(n,i){if(n&1&&(x(0),u(1,er,2,3,"mat-option",15),w()),n&2){let e=m();s(),p("ngForOf",e.files)}}function ir(n,i){n&1&&(l(0,"div")(1,"div",17),g(2,"mat-spinner",18),c()())}function nr(n,i){if(n&1&&(x(0),d(1),b(2,"readableDuration"),w()),n&2){let e=m().$implicit;s(),A(S(2,1,e.value))}}function rr(n,i){if(n&1&&(x(0),d(1),w()),n&2){let e=m().$implicit;s(),A(e.value)}}function or(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function ar(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),x(6,29),u(7,nr,3,3,"ng-container",30)(8,rr,2,1,"ng-container",31),w(),c()(),u(9,or,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",S(4,4,e.key),":"),s(3),p("ngSwitch",e.key),s(),p("ngSwitchCase","duration_seconds"),s(2),p("ngIf",!t)}}function sr(n,i){if(n&1&&(x(0),u(1,ar,10,6,"div",24),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}function lr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function cr(n,i){if(n&1&&(x(0),d(1),b(2,"adaptiveFileSize"),w()),n&2){let e=m().$implicit;s(),A(S(2,1,e.value))}}function pr(n,i){if(n&1&&(x(0),d(1),b(2,"date"),w()),n&2){let e=m().$implicit;s(),A(Jt(2,1,e.value,"medium"))}}function mr(n,i){if(n&1&&(x(0),d(1),b(2,"readableDuration"),w()),n&2){let e=m().$implicit;s(),A(S(2,1,e.value))}}function dr(n,i){if(n&1&&(x(0),d(1),w()),n&2){let e=m().$implicit;s(),A(e.value)}}function hr(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function ur(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),x(6,29),u(7,cr,3,3,"ng-container",30)(8,pr,3,4,"ng-container",30)(9,mr,3,3,"ng-container",30)(10,dr,2,1,"ng-container",31),w(),c()(),u(11,hr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",S(4,6,e.key),":"),s(3),p("ngSwitch",e.key),s(),p("ngSwitchCase","file_size_bytes"),s(),p("ngSwitchCase","creation_date"),s(),p("ngSwitchCase","training_duration_seconds"),s(2),p("ngIf",!t)}}function gr(n,i){if(n&1&&(x(0),u(1,ur,12,8,"div",24),b(2,"keyvalue"),w()),n&2){let e=m(3);s(),p("ngForOf",S(2,1,e.summarizedRecord==null?null:e.summarizedRecord.modelTrainingDetails))}}function fr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function Cr(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function _r(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),d(6),c()(),u(7,Cr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",S(4,3,e.key),":"),s(3),A(e.value),s(),p("ngIf",!t)}}function vr(n,i){if(n&1&&(x(0),u(1,_r,8,5,"div",24),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}function xr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function wr(n,i){if(n&1&&(x(0),g(1,"ms-chart-colors-form-controls",35)(2,"ms-line-chart",36),w()),n&2){let e=m(3);s(2),p("data",e.lastRunAccuracyTestingChartData)("settings",e.testingAccuracyChartDisplaySettings)}}function yr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function br(n,i){if(n&1){let e=E();x(0),g(1,"mat-divider"),l(2,"div",19)(3,"mat-label"),d(4,"Set run name"),c(),l(5,"mat-form-field",9),g(6,"input",20),c()(),l(7,"mat-accordion",21)(8,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.statistics,r)||(o.panelStates.statistics=r),v(r)}),l(9,"mat-expansion-panel-header")(10,"mat-panel-title",23),d(11," Statistics "),c()(),u(12,sr,2,1,"ng-container",13),b(13,"keyvalue"),u(14,lr,2,0,"ng-template",null,2,K),c(),l(16,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.modelTrainingDetails,r)||(o.panelStates.modelTrainingDetails=r),v(r)}),l(17,"mat-expansion-panel-header")(18,"mat-panel-title",23),d(19," Model training details "),c()(),u(20,gr,3,3,"ng-container",13),b(21,"hasKeys"),u(22,fr,2,0,"ng-template",null,3,K),c(),l(24,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.parameters,r)||(o.panelStates.parameters=r),v(r)}),l(25,"mat-expansion-panel-header")(26,"mat-panel-title",23),d(27," Parameters "),c()(),u(28,vr,2,1,"ng-container",13),b(29,"keyvalue"),u(30,xr,2,0,"ng-template",null,4,K),c(),l(32,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.accuracy,r)||(o.panelStates.accuracy=r),v(r)}),l(33,"mat-expansion-panel-header")(34,"mat-panel-title",23),d(35," Last Accuracy Test Run "),c()(),u(36,wr,3,2,"ng-container",13),b(37,"keyvalue"),u(38,yr,2,0,"ng-template",null,5,K),c()(),w()}if(n&2){let e=j(15),t=j(23),r=j(31),o=j(39),a=m(2);s(8),ae("expanded",a.panelStates.statistics),s(4),p("ngIf",S(13,12,a.summarizedRecord==null?null:a.summarizedRecord.statistics))("ngIfElse",e),s(4),ae("expanded",a.panelStates.modelTrainingDetails),s(4),p("ngIf",S(21,14,a.summarizedRecord==null?null:a.summarizedRecord.modelTrainingDetails))("ngIfElse",t),s(4),ae("expanded",a.panelStates.parameters),s(4),p("ngIf",S(29,16,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",r),s(4),ae("expanded",a.panelStates.accuracy),s(4),p("ngIf",S(37,18,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",o)}}function Sr(n,i){if(n&1&&u(0,br,40,20,"ng-container",13),n&2){let e=m(),t=j(14);p("ngIf",!!e.summarizedRecord)("ngIfElse",t)}}function Er(n,i){n&1&&g(0,"ms-empty-state",37)}var Z,_e=(Z=class{get chartFormGroup(){return this.form.get("chart")}get selectRunFormControl(){return this.form.get("selectRun")}get runNameFormControl(){return this.form.get("runName")}constructor(i,e,t,r,o,a){this.drawerRef=i,this.drawerConfig=e,this.fb=t,this.recordsFacadeService=r,this.recordsDataService=o,this.customAPILoadingService=a,this.panelStates={statistics:!0,parameters:!0,accuracy:!0,modelTrainingDetails:!0},this.form=new qe({}),this.algorithmTypeLabel="",this.files=[],this.isSummarizedRecordLoading$=this.customAPILoadingService.getLoadingObservableForKey(Xi.RUN_RECORDS_SUMMARIZED_DATA),this.testingAccuracyChartDisplaySettings={},this.lastRunAccuracyTestingChartData=[]}ngAfterViewInit(){this.restorePanelStates()}ngOnInit(){switch(this.initForm(),this.initChartDisplaySettings(),this.listenToChartColorChanges(),this.algorithmTypeLabel=this.getAlgorithmTypeString(),this.drawerConfig.actionType){case V.ADD:{this.loadData(),this.configureAddTypeActions();break}case V.EDIT:case V.VIEW:{this.configureEditOrViewTypeActions();break}}}getAlgorithmTypeString(){switch(this.recordsDataService.algorithmType){case I.PRUNING:return"pruning";case I.QUANTIZATION:return"quantization";case I.MACHINE_UNLEARNING:return"machine unlearning";default:return"specified"}}initChartDisplaySettings(){let i=0;switch(this.recordsDataService.algorithmType){case I.PRUNING:{i=100;break}case I.QUANTIZATION:{i=79;break}case I.MACHINE_UNLEARNING:{i=36;break}default:break}this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisTickInterval:20,chartDataStructure:pt.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:i,yAxisMaximumValue:100,isXAxisVisible:!0,isXAxisDynamic:!0,areTooltipsEnabled:!0,xAxisInitialLabelValue:1,xAxisLabelPrefix:"Step:",datasetLabelPrefix:"Test:",isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:[{backgroundColor:"rgba(241, 196, 15, 0.2)",borderColor:"#f1c40f"}]}}}listenToChartColorChanges(){this.chartFormGroup.valueChanges.pipe(Xt(300),N(this)).subscribe(i=>{if(Me(i))return;let{backgroundColor:e,borderColor:t}=i;this.testingAccuracyChartDisplaySettings=z(O({},this.testingAccuracyChartDisplaySettings),{customChartColors:{datasetColors:[{backgroundColor:e,borderColor:t}]}}),this.lastRunAccuracyTestingChartData=[...this.lastRunAccuracyTestingChartData]})}configureEditOrViewTypeActions(){let{recordName:i,recordFilename:e,record:t,chartColors:r}=this.drawerConfig.data;this.drawerConfig.actionType===V.VIEW?this.form.disable():this.drawerConfig.actionType===V.EDIT&&this.selectRunFormControl.disable(),this.files=[{name:e,disabled:!0}],this.form.patchValue({selectRun:e,runName:i,chart:{borderColor:r.borderColor,backgroundColor:r.backgroundColor}}),this.summarizedRecord=t,this.lastRunAccuracyTestingChartData=this.configureChartDataset(t),this.testingAccuracyChartDisplaySettings=z(O({},this.testingAccuracyChartDisplaySettings),{hasCustomDatasetsLabels:!0,customDatasetsLabels:[i],customChartColors:{datasetColors:[{backgroundColor:r.backgroundColor||"rgba(241, 196, 15, 0.2)",borderColor:r.borderColor||"#f1c40f"}]}})}configureAddTypeActions(){this.listenToSelectRunFormValueChanges(),this.listenToSummarizedRecordChanges()}listenToSelectRunFormValueChanges(){this.selectRunFormControl.valueChanges.pipe(N(this),Gt(i=>!rt(i))).subscribe(i=>{this.runNameFormControl.reset(),this.recordsFacadeService.dispatch(M.getRunRecordSummarizedData({algorithmType:this.recordsDataService.algorithmType,filename:i}))})}listenToSummarizedRecordChanges(){this.recordsFacadeService.summarizedRecord$.pipe(N(this),Et(1)).subscribe(i=>{this.summarizedRecord=i,this.lastRunAccuracyTestingChartData=this.configureChartDataset(i);let e=this.summarizedRecord?.statistics.algorithm_key,t=this.summarizedRecord?.parameters.arch;!rt(e)&&!rt(t)&&this.runNameFormControl.setValue(`${e}_${t}`),this.savePanelStates(),this.restorePanelStates()})}configureChartDataset(i){return[{datasetIndex:0,values:i.lastRunTestingAccuracyData||[]}]}loadData(){this.recordsFacadeService.dispatch(M.getRunRecordsFilenames({algorithmType:this.recordsDataService.algorithmType})),this.recordsFacadeService.filenames$.pipe(Et(1),xe(1)).subscribe(i=>{let e=new Set(this.recordsDataService.records.map(t=>t.recordFilename));this.files=i.map(t=>({name:t,disabled:e.has(t)}))})}initForm(){let i=this.getDefaultChartColors();this.form=this.fb.group({selectRun:[null,fe.required],runName:[null,fe.required],chart:this.fb.group({borderColor:[i.borderColor,fe.required],backgroundColor:[i.backgroundColor,fe.required]})})}getDefaultChartColors(){let i=Math.max(this.recordsDataService.records.length,0),e=Hi[ct.YELLOW].datasetColors[i];return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}}save(i){if(i!==de.SAVE)return;let{backgroundColor:e,borderColor:t}=this.form.get("chart")?.getRawValue();this.drawerRef.close({result:{recordName:this.runNameFormControl.value,recordFilename:this.selectRunFormControl.value,record:this.summarizedRecord,chartColors:{backgroundColor:e,borderColor:t}},status:i})}close(){this.drawerRef.close()}savePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]=i.expanded})}restorePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]!==void 0&&(i.expanded=this.panelStates[e])})}},Z.\u0275fac=function(e){return new(e||Z)(f(zi),f(Li),f(et),f(Ct),f(L),f(Yi))},Z.\u0275cmp=T({type:Z,selectors:[["ms-run-drawer-actions"]],viewQuery:function(e,t){if(e&1&&ne(me,5),e&2){let r;re(r=oe())&&(t.panels=r)}},decls:15,vars:8,consts:[["content",""],["noData",""],["noStatisticsData",""],["noModelTrainingDetailsData",""],["noParametersData",""],["noAccuracyData",""],[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["formControlName","selectRun","placeholder","Select a run record"],["disabled","",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["disabled",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],[1,"spinner-wrapper","mt-4"],["diameter","80"],[1,"form-field-container","mt-4"],["matInput","","formControlName","runName","placeholder","Set run name"],["multi",""],[3,"expandedChange","expanded"],[1,"paragraph-bold-p3-small-bold"],["class","key-value-container single",4,"ngFor","ngForOf"],[1,"key-value-container","single"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],[1,"no-data-container"],["controlKey","chart"],[3,"data","settings"],["title","Awaiting Run Record Selection","message","Select a run record from the dropdown to view details and statistics."]],template:function(e,t){if(e&1){let r=E();l(0,"ms-drawer",6),C("actionEvent",function(a){return _(r),v(t.save(a))}),l(1,"form",7)(2,"div",8)(3,"mat-label"),d(4,"Select run record"),c(),l(5,"mat-form-field",9)(6,"mat-select",10),u(7,Jn,2,1,"mat-option",11)(8,tr,2,1,"ng-container",12),c()()(),u(9,ir,3,0,"div",13),b(10,"async"),u(11,Sr,1,2,"ng-template",null,0,K),c()(),u(13,Er,1,0,"ng-template",null,1,K)}if(e&2){let r=j(12);p("isSaveDisabled",t.form.invalid),s(),p("formGroup",t.form),s(6),p("ngIf",t.files.length===0),s(),p("ngIf",t.files.length>0),s(),p("ngIf",S(10,6,t.isSummarizedRecordLoading$))("ngIfElse",r)}},dependencies:[Y,Q,ti,ii,ni,st,Qe,xi,it,tt,ot,Ke,yi,Si,me,Re,ke,Ze,ui,ce,De,Je,Fe,Ie,lt,pn,Se,ri,oi,Gi,mt,ji,ln],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),Z);_e=ie([pe()],_e);function Fr(n,i){if(n&1){let e=E();l(0,"mat-card",3)(1,"div",4)(2,"div",5),d(3),c(),l(4,"div",6)(5,"button",7),C("click",function(){let r=_(e).$implicit,o=m(2);return v(o.viewRecord(r))}),g(6,"mat-icon",8),c(),l(7,"button",7),C("click",function(){let r=_(e),o=r.$implicit,a=r.index,h=m(2);return v(h.editRecord(a,o))}),g(8,"mat-icon",9),c(),l(9,"button",10),C("click",function(){let r=_(e).index,o=m(2);return v(o.removeRecord(r))}),l(10,"mat-icon",11),d(11,"delete"),c()()()()()}if(n&2){let e=i.$implicit;s(3),A(e.recordName)}}function Tr(n,i){if(n&1&&(x(0),u(1,Fr,12,1,"mat-card",2),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}var un=(()=>{let i=class i{constructor(t,r){this.recordsDataService=t,this.drawerService=r}removeRecord(t){this.recordsDataService.removeRecord(t)}viewRecord(t){this.drawerService.open(_e,{title:"View Run",showSaveButton:!1,showCloseButton:!0,closeButtonLabel:"Close",actionType:V.VIEW,data:t})}editRecord(t,r){this.drawerService.open(_e,{title:"Edit Run",saveButtonLabel:"Update",showCloseButton:!0,closeButtonLabel:"Close",actionType:V.EDIT,data:r}).afterClosed().pipe(xe(1)).subscribe(a=>{let{status:h}=a;if(h===de.DISMISS||h===de.CLOSE)return;let{result:y}=a;Me(y)||this.recordsDataService.updateRecord(t,y)})}};i.\u0275fac=function(r){return new(r||i)(f(L),f(Pe))},i.\u0275cmp=T({type:i,selectors:[["ms-algorithm-comparison-list"]],decls:3,vars:3,consts:[[1,"items-wrapper"],[4,"ngIf"],["class","ms-card comparison-item",4,"ngFor","ngForOf"],[1,"ms-card","comparison-item"],[1,"item-wrapper"],["msUseEllipsis",""],[1,"record-summary-buttons-wrapper"],["mat-icon-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Eye",1,"mat-primary"],["fontSet","ms","fontIcon","icon-PencilSimple",1,"mat-primary"],["mat-icon-button","","color","error",3,"click"],[1,"mat-error"]],template:function(r,o){r&1&&(l(0,"div",0),u(1,Tr,2,1,"ng-container",1),b(2,"async"),c()),r&2&&(s(),p("ngIf",S(2,1,o.recordsDataService.records$)))},dependencies:[Y,Q,_i,Te,bi,an,Se],styles:[".items-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px;padding:20px 0}.items-wrapper[_ngcontent-%COMP%] .ms-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 16px #0003}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%] .record-summary-buttons-wrapper[_ngcontent-%COMP%]{display:flex}"]});let n=i;return n})();var J,_t=(J=class{constructor(i,e){this.recordsDataService=i,this.chartToolsGlobalSignalsService=e,this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisMaximumValue:100,yAxisTickInterval:20,chartDataStructure:pt.SINGLE_PHASE_X_AXIS,datasetColorSettingsKey:ct.YELLOW,isXAxisVisible:!0,xAxisLabelPrefix:"Step:",zoomRangeLimits:{min:0,max:100},isXAxisDynamic:!0,hasCustomDatasetsLabels:!0},this.lastRunsAccuracyTestingChartData=[],this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToRecordsChanges(),this.subscribeToChartToolsSignals()}listenToRecordsChanges(){this.recordsDataService.records$.pipe(N(this)).subscribe(i=>{Bt(i)||(this.lastRunsAccuracyTestingChartData=this.configureChartDatasets(i),this.testingAccuracyChartDisplaySettings=z(O({},this.testingAccuracyChartDisplaySettings),{customDatasetsLabels:i.map(e=>e.recordName),xAxisDataPointsCount:i[0].record.lastRunTestingAccuracyData.length,isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:i.map(e=>e.chartColors)}}))})}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(N(this)).subscribe(i=>{this.enableTooltips=i}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(N(this)).subscribe(i=>{this.enableZoom=i})}configureChartDatasets(i){let e=[];return i.forEach((t,r)=>{let{record:o}=t;e.push({datasetIndex:r,values:o.lastRunTestingAccuracyData||[]})}),e}toggleTooltip(i){this.chartToolsGlobalSignalsService.toggleTooltips=i.checked}toggleZoom(i){this.chartToolsGlobalSignalsService.toggleZoom=i.checked}},J.\u0275fac=function(e){return new(e||J)(f(L),f(Oe))},J.\u0275cmp=T({type:J,selectors:[["ms-algorithm-comparison-chart"]],decls:14,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[3,"data","settings"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),d(3," Last Accuracy Test Run "),c()(),l(4,"div",2)(5,"div")(6,"mat-slide-toggle",3),le("ngModelChange",function(o){return se(t.enableTooltips,o)||(t.enableTooltips=o),o}),C("change",function(o){return t.toggleTooltip(o)}),d(7," Enable tooltips "),c()(),l(8,"div",4)(9,"mat-slide-toggle",5),le("ngModelChange",function(o){return se(t.enableZoom,o)||(t.enableZoom=o),o}),C("change",function(o){return t.toggleZoom(o)}),d(10," Enable zoom "),c(),l(11,"div",6),g(12,"mat-icon",7),c()()(),g(13,"ms-line-chart",8),c()),e&2&&(s(6),ae("ngModel",t.enableTooltips),s(3),ae("ngModel",t.enableZoom),s(4),p("data",t.lastRunsAccuracyTestingChartData)("settings",t.testingAccuracyChartDisplaySettings))},dependencies:[Te,Ae,Ei,me,Re,ke,ce,gi,Ie]}),J);_t=ie([pe()],_t);function Rr(n,i){n&1&&(l(0,"th",10),d(1,"Record Name"),c())}function kr(n,i){if(n&1&&(l(0,"td",11),d(1),c()),n&2){let e=i.$implicit;s(),A(e.recordName)}}function Pr(n,i){if(n&1&&(l(0,"th",10),d(1),b(2,"parametersLabel"),c()),n&2){let e=m().$implicit;s(),F(" ",S(2,1,e)," ")}}function Or(n,i){if(n&1&&(l(0,"td",11),d(1),b(2,"emptyTableField"),c()),n&2){let e=i.$implicit,t=m().$implicit;s(),F(" ",S(2,1,e[t])," ")}}function Ir(n,i){if(n&1&&(x(0,12),u(1,Pr,3,3,"th",5)(2,Or,3,3,"td",6),w()),n&2){let e=i.$implicit;p("matColumnDef",e)}}function Br(n,i){n&1&&g(0,"tr",13)}function Nr(n,i){n&1&&g(0,"tr",14)}var ee,vt=(ee=class{constructor(i){this.recordsDataService=i,this.dataSource=new Ni,this.displayedColumns=[]}ngOnInit(){this.recordsDataService.records$.pipe(N(this)).subscribe(i=>{this.updateDisplayedColumns(i),this.updateDataSource(i)})}ngAfterViewInit(){Me(this.sort)||setTimeout(()=>{this.dataSource.sort=this.sort},1200)}updateDisplayedColumns(i){let e=new Set;i.forEach(t=>{Object.keys(t.record.parameters).forEach(r=>{r!=="save_dir"&&r!=="data"&&e.add(r)})}),this.displayedColumns=["recordName",...Array.from(e)]}updateDataSource(i){let e=i.map(t=>{let r=t.record.parameters;return O({recordName:t.recordName},r)});this.dataSource.data=e}},ee.\u0275fac=function(e){return new(e||ee)(f(L))},ee.\u0275cmp=T({type:ee,selectors:[["ms-algorithm-comparison-table"]],viewQuery:function(e,t){if(e&1&&ne(at,5),e&2){let r;re(r=oe())&&(t.sort=r.first)}},decls:12,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"table-container"],["mat-table","","matSort","",1,"mat-table",3,"dataSource"],["matColumnDef","recordName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","hover-highlight",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"hover-highlight"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),d(3," Parameters "),c()(),l(4,"div",2)(5,"table",3),x(6,4),u(7,Rr,2,0,"th",5)(8,kr,2,1,"td",6),w(),u(9,Ir,3,1,"ng-container",7)(10,Br,1,0,"tr",8)(11,Nr,1,0,"tr",9),c()()()),e&2&&(s(5),p("dataSource",t.dataSource),s(4),p("ngForOf",t.displayedColumns.slice(1)),s(),p("matHeaderRowDef",t.displayedColumns),s(),p("matRowDefColumns",t.displayedColumns))},dependencies:[Y,Fi,Mi,Pi,Ai,Ti,Oi,Ri,ki,Ii,Bi,at,Di,me,Re,ke,mt,sn],styles:[".table-container[_ngcontent-%COMP%]{overflow:auto}.hover-highlight[_ngcontent-%COMP%]:hover{background-color:var(--backgrounds-80)}.mat-column-disable_8bit_head_stem[_ngcontent-%COMP%]{min-width:200px}.mat-column-workers[_ngcontent-%COMP%], .mat-column-n_bits_w[_ngcontent-%COMP%], .mat-column-channel_wise[_ngcontent-%COMP%], .mat-column-n_bits_a[_ngcontent-%COMP%]{min-width:160px}.mat-column-act_quant[_ngcontent-%COMP%]{min-width:180px}.mat-column-num_samples[_ngcontent-%COMP%], .mat-column-iters_w[_ngcontent-%COMP%]{min-width:160px}.mat-column-keep_cpu[_ngcontent-%COMP%], .mat-column-awq[_ngcontent-%COMP%]{min-width:180px}.mat-column-aaq[_ngcontent-%COMP%], .mat-column-init_wmode[_ngcontent-%COMP%], .mat-column-init_amode[_ngcontent-%COMP%]{min-width:200px}.mat-column-num_indexes_to_replace[_ngcontent-%COMP%]{min-width:185px}.mat-column-unlearn_lr[_ngcontent-%COMP%], .mat-column-alpha[_ngcontent-%COMP%], .mat-column-unlearn_epochs[_ngcontent-%COMP%], .mat-column-train_seed[_ngcontent-%COMP%], .mat-column-class_to_replace[_ngcontent-%COMP%], .mat-column-indexes_to_replace[_ngcontent-%COMP%], .mat-column-no_aug[_ngcontent-%COMP%]{min-width:200px}.mat-column-imagenet_arch[_ngcontent-%COMP%]{min-width:220px}.mat-column-num_workers[_ngcontent-%COMP%]{min-width:180px}"]}),ee);vt=ie([pe()],vt);function Lr(n,i){if(n&1&&(l(0,"mat-option",13),d(1),c()),n&2){let e=i.$implicit;p("value",e.key),s(),F(" ",e.value," ")}}function zr(n,i){n&1&&(x(0),g(1,"ms-algorithm-comparison-list"),l(2,"div",8),g(3,"mat-divider"),c(),g(4,"ms-algorithm-comparison-table"),l(5,"div",8),g(6,"mat-divider"),c(),g(7,"ms-algorithm-comparison-chart"),w())}function Hr(n,i){n&1&&(l(0,"div",14),g(1,"ms-empty-state",15),c())}var te,xt=(te=class{get algorithmTypeFormControl(){return this.form.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(i,e,t){this.drawerService=i,this.recordsDataService=e,this.fb=t,this.form=new qe({}),this.algorithmTypesOptions=[{key:I.QUANTIZATION,value:"Quantization"},{key:I.PRUNING,value:"Pruning"},{key:I.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}openAddRunDrawer(){this.drawerService.open(_e,{title:"Add Run",saveButtonLabel:"Add",showCloseButton:!0,closeButtonLabel:"Close",actionType:V.ADD}).afterClosed().pipe(xe(1)).subscribe(e=>{let{status:t}=e;if(t===de.DISMISS||t===de.CLOSE)return;let{result:r}=e;this.recordsDataService.addRecord(r)})}ngOnInit(){this.initForm(),this.listenToAlgorithmTypeChanges()}initForm(){this.form=this.fb.group({[this.ALGORITHM_TYPE_CONTROL_NAME]:[this.recordsDataService.algorithmType,fe.required]})}listenToAlgorithmTypeChanges(){this.algorithmTypeFormControl.valueChanges.pipe(N(this)).subscribe(i=>{this.recordsDataService.algorithmType=i})}trackByAlgorithmType(i,e){return e.key}},te.\u0275fac=function(e){return new(e||te)(f(Pe),f(L),f(et))},te.\u0275cmp=T({type:te,selectors:[["ms-algorithm-comparison"]],decls:19,vars:8,consts:[["noData",""],[1,"title-wrapper"],[1,"heading-primary-title","title"],[1,"ml-2",3,"formGroup"],[1,"form-field-container","w-56","mt-2"],["appearance","outline"],["placeholder","Select a run record",3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-4","mb-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Plus"],[1,"mt-4"],[4,"ngIf","ngIfElse"],[3,"value"],[1,"no-data-wrapper"],["title","No data selected"]],template:function(e,t){if(e&1){let r=E();l(0,"div",1)(1,"p",2),d(2,"Algorithm Comparison for"),c(),l(3,"form",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-select",6),u(7,Lr,2,2,"mat-option",7),c()()()()(),l(8,"div",8),g(9,"mat-divider"),c(),l(10,"button",9),C("click",function(){return _(r),v(t.openAddRunDrawer())}),g(11,"mat-icon",10),d(12,` Add run +`),c(),l(13,"div",11),g(14,"mat-divider"),c(),u(15,zr,8,0,"ng-container",12),b(16,"async"),u(17,Hr,2,0,"ng-template",null,0,K)}if(e&2){let r=j(18);s(3),p("formGroup",t.form),s(3),p("formControlName",t.ALGORITHM_TYPE_CONTROL_NAME),s(),p("ngForOf",t.algorithmTypesOptions)("ngForTrackBy",t.trackByAlgorithmType),s(8),p("ngIf",S(16,6,t.recordsDataService.records$).length>0)("ngIfElse",r)}},dependencies:[Y,Q,Qe,Ci,Te,it,ot,Ke,Ze,ce,De,Je,Fe,lt,un,_t,vt,Se],styles:[".no-data-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),te);xt=ie([pe()],xt);var jr=[{path:"",component:xt}],gn=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ye({type:i}),i.\u0275inj=we({imports:[Rt.forChild(jr),Rt]});let n=i;return n})();var Hs=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ye({type:i}),i.\u0275inj=we({providers:[Pe,Ct,L,Oe],imports:[$e,gn,st,qi,Vi,ci.forFeature("runRecords",on),di.forFeature([Zi]),Ie]});let n=i;return n})();export{Hs as AlgorithmComparisonModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-IPWIVMWL.js b/frontend/server/modelsmith-build/browser/chunk-BD6J76BW.js similarity index 88% rename from frontend/server/modelsmith-build/browser/chunk-IPWIVMWL.js rename to frontend/server/modelsmith-build/browser/chunk-BD6J76BW.js index a67f4e37..0b640706 100644 --- a/frontend/server/modelsmith-build/browser/chunk-IPWIVMWL.js +++ b/frontend/server/modelsmith-build/browser/chunk-BD6J76BW.js @@ -1 +1 @@ -import{a as d}from"./chunk-PEPQONB2.js";import"./chunk-MM4TEEVS.js";import{a as f}from"./chunk-4KDFY6RG.js";import"./chunk-U7NPFWER.js";import"./chunk-VMZY47C3.js";import{b as W}from"./chunk-ZPFJPO4G.js";import{Aa as P,Ca as I,Cc as V,Cd as k,Da as N,Fd as M,Ja as O,Ka as j,La as D,Md as B,Na as v,P as p,T as F,U as l,Z as A,Zb as C,_ as T,a as h,b,ja as m,ka as g,m as w,oc as L,pb as G,rd as _,sa as a,sd as z,uc as R,ud as Q,wa as s,wd as y,xa as c,ya as S,za as E,zc as U}from"./chunk-XZNUB5IR.js";var K=["panelParameters"],r,u=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=k,this.MultiflowAlgorithmsEnum=M,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(M.MULTIFLOW_PRUNE)},0)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(z(this)).subscribe(t=>{this.isScriptActive=y(t),y(t)?this.form.disable():this.form.enable()})}submit(){if(this.isScriptActive)return;let{algorithm:t}=this.form.getRawValue(),i=b(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(Q.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(U),g(B))},r.\u0275cmp=F({type:r,selectors:[["ms-model-specialization"]],viewQuery:function(i,e){if(i&1&&O(K,5),i&2){let o;j(o=D())&&(e.panelParametersComponent=o.first)}},decls:12,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let o=I();s(0,"p",1),v(1,"Model Specialization"),c(),s(2,"div",2)(3,"div",3),E(4,4),S(5,"ms-panel-parameters",5,0),P(),s(7,"div")(8,"button",6),N("click",function(){return A(o),T(e.submit())}),v(9," Run "),c()()(),s(10,"div",7),S(11,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[V,L,R,d,f],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);u=w([_()],u);var Z=[{path:"",component:u}],x=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(Z),C]});let n=t;return n})();var vt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[G,W,d,f,x]});let n=t;return n})();export{vt as ModelSpecializationModule}; +import{a as d}from"./chunk-C4BAO3YM.js";import"./chunk-WL3ZZTTC.js";import{a as f}from"./chunk-4LH6YZUP.js";import"./chunk-VBDJDMQD.js";import"./chunk-3ZHMSG5W.js";import{b as W}from"./chunk-KK5JZLDV.js";import{Aa as P,Ca as I,Cc as V,Cd as k,Da as N,Fd as M,Ja as O,Ka as j,La as D,Md as B,Na as v,P as p,T as F,U as l,Z as A,Zb as C,_ as T,a as h,b,ja as m,ka as g,m as w,oc as L,pb as G,rd as _,sa as a,sd as z,uc as R,ud as Q,wa as s,wd as y,xa as c,ya as S,za as E,zc as U}from"./chunk-JA5VSLUI.js";var K=["panelParameters"],r,u=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=k,this.MultiflowAlgorithmsEnum=M,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(M.MULTIFLOW_PRUNE)},0)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(z(this)).subscribe(t=>{this.isScriptActive=y(t),y(t)?this.form.disable():this.form.enable()})}submit(){if(this.isScriptActive)return;let{algorithm:t}=this.form.getRawValue(),i=b(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(Q.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(U),g(B))},r.\u0275cmp=F({type:r,selectors:[["ms-model-specialization"]],viewQuery:function(i,e){if(i&1&&O(K,5),i&2){let o;j(o=D())&&(e.panelParametersComponent=o.first)}},decls:12,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let o=I();s(0,"p",1),v(1,"Model Specialization"),c(),s(2,"div",2)(3,"div",3),E(4,4),S(5,"ms-panel-parameters",5,0),P(),s(7,"div")(8,"button",6),N("click",function(){return A(o),T(e.submit())}),v(9," Run "),c()()(),s(10,"div",7),S(11,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[V,L,R,d,f],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);u=w([_()],u);var Z=[{path:"",component:u}],x=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(Z),C]});let n=t;return n})();var vt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[G,W,d,f,x]});let n=t;return n})();export{vt as ModelSpecializationModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-PEPQONB2.js b/frontend/server/modelsmith-build/browser/chunk-C4BAO3YM.js similarity index 96% rename from frontend/server/modelsmith-build/browser/chunk-PEPQONB2.js rename to frontend/server/modelsmith-build/browser/chunk-C4BAO3YM.js index f7d1f618..5cd8e94d 100644 --- a/frontend/server/modelsmith-build/browser/chunk-PEPQONB2.js +++ b/frontend/server/modelsmith-build/browser/chunk-C4BAO3YM.js @@ -1 +1 @@ -import{a as ue}from"./chunk-MM4TEEVS.js";import{d as fe}from"./chunk-4KDFY6RG.js";import{j as de}from"./chunk-VMZY47C3.js";import{$a as N,$c as Z,$d as pe,Aa as C,Bc as q,Ea as f,G as M,Ha as _,Hc as z,Ic as J,Ma as T,Md as ie,Na as s,Oa as g,Pa as b,Qd as ae,Rd as oe,S,T as I,Ta as E,Ua as A,Wc as Q,Y as P,Yc as W,Zc as X,Zd as ne,_b as D,_c as Y,_d as me,ad as ee,ae as le,ec as K,fb as O,gb as G,he as se,ie as ce,ja as i,jc as $,ka as c,lc as u,m as y,nc as k,oc as L,pb as w,pc as R,qa as d,rd as te,s as x,sa as n,sd as F,vc as V,wa as m,wc as j,wd as re,xa as o,xc as U,ya as v,yc as B,za as h,zc as H}from"./chunk-XZNUB5IR.js";function _e(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11),v(4,"input",12)(5,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p)("placeholder",a.placeholder)("type",a.inputType),i(),_("matTooltip",a.help)}}function ge(r,t){if(r&1&&(m(0,"mat-option",16),s(1),o()),r&2){let e=t.$implicit;n("value",e.value),i(),b(" ",e.viewValue," ")}}function he(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11)(4,"mat-select",14),d(5,ge,2,2,"mat-option",15),o(),v(6,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p),i(),n("ngForOf",a.options),i(),_("matTooltip",a.help)}}function Ce(r,t){if(r&1&&(m(0,"div",17)(1,"mat-checkbox",14),s(2),o(),m(3,"div",18),v(4,"mat-icon",19),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(),n("formControlName",p),i(),g(a.label),i(2),_("matTooltip",a.help)}}function Fe(r,t){if(r&1&&(h(0),d(1,_e,6,5,"div",8)(2,he,7,4,"div",8)(3,Ce,5,3,"div",9),C()),r&2){let e=t.$implicit;i(),n("ngIf",e.inputType==="text"||e.inputType==="number"),i(),n("ngIf",e.inputType==="select"),i(),n("ngIf",e.inputType==="checkbox")}}function ye(r,t){if(r&1&&(m(0,"div",4),h(1,5),m(2,"div",6),d(3,Fe,4,3,"ng-container",7),o(),C(),o()),r&2){let e=f();i(),n("formGroupName",e.controlKey),i(2),n("ngForOf",e.parameters)}}function xe(r,t){r&1&&(m(0,"p",20),s(1,"No parameters configured."),o())}var l,ve=(l=class{ngOnChanges(t){t.algorithm&&t.algorithm.currentValue&&(this.alg=t.algorithm.currentValue,this.loadParametersForAlgorithm(this.alg))}get parentFormGroup(){return this.controlContainer.control}get paramsFormGroup(){return this.parentFormGroup.get(this.controlKey)}get parametersFormArray(){return this.paramsFormGroup.get("parametersArray")}constructor(t,e,a,p){this.fb=t,this.controlContainer=e,this.parametersFacadeService=a,this.scriptFacadeService=p,this.controlKey="",this.RoutesList=D,this.alg=fe,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new R({parametersArray:new B([])}))}loadParametersForAlgorithm(t){this.parametersFacadeService.dispatch(ue.loadParameters({arg:t})),this.parametersFacadeService.parameters$.pipe(x(e=>e[t]?.data||[]),M(1),F(this)).subscribe(e=>{this.buildFormArray(e)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(F(this)).subscribe(t=>{this.isScriptActive=re(t)})}buildFormArray(t){this.parametersFormArray.clear(),t.forEach(e=>{this.parametersFormArray.push(this.fb.control(e.defaultValue))}),this.isScriptActive?this.paramsFormGroup.disable():this.paramsFormGroup.enable(),this.parameters=t}get parametersFormatted(){let t={},e=this.parametersFormArray.getRawValue();return this.parameters.forEach((a,p)=>{t[a.argName]=e[p]}),t}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(H),c(u),c(de),c(ie))},l.\u0275cmp=I({type:l,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[E([],[{provide:u,useFactory:()=>S(u,{skipSelf:!0})}]),P,A],decls:6,vars:2,consts:[["noParametersTemplate",""],[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],["class","parameters-wrapper",4,"ngIf","ngIfElse"],[1,"parameters-wrapper"],[3,"formGroupName"],["formArrayName","parametersArray"],[4,"ngFor","ngForOf"],["class","form-field-container",4,"ngIf"],["class","form-field-container inline-container mb-[22px]",4,"ngIf"],[1,"form-field-container"],["appearance","outline"],["matInput","",3,"formControlName","placeholder","type"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"form-field-container","inline-container","mb-[22px]"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"],[1,"no-parameters-message"]],template:function(e,a){if(e&1&&(m(0,"mat-card",1)(1,"p",2),s(2,"Parameters"),o(),d(3,ye,4,2,"div",3)(4,xe,2,0,"ng-template",null,0,N),o()),e&2){let p=T(5);i(3),n("ngIf",a.parameters.length)("ngIfElse",p)}},dependencies:[w,O,G,ee,Z,X,Q,W,q,$,k,L,U,V,j,me,ne,Y,ce,se,K,oe,ae,le,pe,J,z],styles:[".parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%]{max-height:400px;overflow:auto;padding-right:20px}.parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%] .parameter-divider[_ngcontent-%COMP%]{margin-bottom:20px}"]}),l);ve=y([te()],ve);export{ve as a}; +import{a as ue}from"./chunk-WL3ZZTTC.js";import{d as fe}from"./chunk-4LH6YZUP.js";import{j as de}from"./chunk-3ZHMSG5W.js";import{$a as N,$c as Z,$d as pe,Aa as C,Bc as q,Ea as f,G as M,Ha as _,Hc as z,Ic as J,Ma as T,Md as ie,Na as s,Oa as g,Pa as b,Qd as ae,Rd as oe,S,T as I,Ta as E,Ua as A,Wc as Q,Y as P,Yc as W,Zc as X,Zd as ne,_b as D,_c as Y,_d as me,ad as ee,ae as le,ec as K,fb as O,gb as G,he as se,ie as ce,ja as i,jc as $,ka as c,lc as u,m as y,nc as k,oc as L,pb as w,pc as R,qa as d,rd as te,s as x,sa as n,sd as F,vc as V,wa as m,wc as j,wd as re,xa as o,xc as U,ya as v,yc as B,za as h,zc as H}from"./chunk-JA5VSLUI.js";function _e(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11),v(4,"input",12)(5,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p)("placeholder",a.placeholder)("type",a.inputType),i(),_("matTooltip",a.help)}}function ge(r,t){if(r&1&&(m(0,"mat-option",16),s(1),o()),r&2){let e=t.$implicit;n("value",e.value),i(),b(" ",e.viewValue," ")}}function he(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11)(4,"mat-select",14),d(5,ge,2,2,"mat-option",15),o(),v(6,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p),i(),n("ngForOf",a.options),i(),_("matTooltip",a.help)}}function Ce(r,t){if(r&1&&(m(0,"div",17)(1,"mat-checkbox",14),s(2),o(),m(3,"div",18),v(4,"mat-icon",19),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(),n("formControlName",p),i(),g(a.label),i(2),_("matTooltip",a.help)}}function Fe(r,t){if(r&1&&(h(0),d(1,_e,6,5,"div",8)(2,he,7,4,"div",8)(3,Ce,5,3,"div",9),C()),r&2){let e=t.$implicit;i(),n("ngIf",e.inputType==="text"||e.inputType==="number"),i(),n("ngIf",e.inputType==="select"),i(),n("ngIf",e.inputType==="checkbox")}}function ye(r,t){if(r&1&&(m(0,"div",4),h(1,5),m(2,"div",6),d(3,Fe,4,3,"ng-container",7),o(),C(),o()),r&2){let e=f();i(),n("formGroupName",e.controlKey),i(2),n("ngForOf",e.parameters)}}function xe(r,t){r&1&&(m(0,"p",20),s(1,"No parameters configured."),o())}var l,ve=(l=class{ngOnChanges(t){t.algorithm&&t.algorithm.currentValue&&(this.alg=t.algorithm.currentValue,this.loadParametersForAlgorithm(this.alg))}get parentFormGroup(){return this.controlContainer.control}get paramsFormGroup(){return this.parentFormGroup.get(this.controlKey)}get parametersFormArray(){return this.paramsFormGroup.get("parametersArray")}constructor(t,e,a,p){this.fb=t,this.controlContainer=e,this.parametersFacadeService=a,this.scriptFacadeService=p,this.controlKey="",this.RoutesList=D,this.alg=fe,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new R({parametersArray:new B([])}))}loadParametersForAlgorithm(t){this.parametersFacadeService.dispatch(ue.loadParameters({arg:t})),this.parametersFacadeService.parameters$.pipe(x(e=>e[t]?.data||[]),M(1),F(this)).subscribe(e=>{this.buildFormArray(e)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(F(this)).subscribe(t=>{this.isScriptActive=re(t)})}buildFormArray(t){this.parametersFormArray.clear(),t.forEach(e=>{this.parametersFormArray.push(this.fb.control(e.defaultValue))}),this.isScriptActive?this.paramsFormGroup.disable():this.paramsFormGroup.enable(),this.parameters=t}get parametersFormatted(){let t={},e=this.parametersFormArray.getRawValue();return this.parameters.forEach((a,p)=>{t[a.argName]=e[p]}),t}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(H),c(u),c(de),c(ie))},l.\u0275cmp=I({type:l,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[E([],[{provide:u,useFactory:()=>S(u,{skipSelf:!0})}]),P,A],decls:6,vars:2,consts:[["noParametersTemplate",""],[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],["class","parameters-wrapper",4,"ngIf","ngIfElse"],[1,"parameters-wrapper"],[3,"formGroupName"],["formArrayName","parametersArray"],[4,"ngFor","ngForOf"],["class","form-field-container",4,"ngIf"],["class","form-field-container inline-container mb-[22px]",4,"ngIf"],[1,"form-field-container"],["appearance","outline"],["matInput","",3,"formControlName","placeholder","type"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"form-field-container","inline-container","mb-[22px]"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"],[1,"no-parameters-message"]],template:function(e,a){if(e&1&&(m(0,"mat-card",1)(1,"p",2),s(2,"Parameters"),o(),d(3,ye,4,2,"div",3)(4,xe,2,0,"ng-template",null,0,N),o()),e&2){let p=T(5);i(3),n("ngIf",a.parameters.length)("ngIfElse",p)}},dependencies:[w,O,G,ee,Z,X,Q,W,q,$,k,L,U,V,j,me,ne,Y,ce,se,K,oe,ae,le,pe,J,z],styles:[".parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%]{max-height:400px;overflow:auto;padding-right:20px}.parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%] .parameter-divider[_ngcontent-%COMP%]{margin-bottom:20px}"]}),l);ve=y([te()],ve);export{ve as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7TE64OY5.js b/frontend/server/modelsmith-build/browser/chunk-DMXFRYPI.js similarity index 92% rename from frontend/server/modelsmith-build/browser/chunk-7TE64OY5.js rename to frontend/server/modelsmith-build/browser/chunk-DMXFRYPI.js index 77b57386..11c00e03 100644 --- a/frontend/server/modelsmith-build/browser/chunk-7TE64OY5.js +++ b/frontend/server/modelsmith-build/browser/chunk-DMXFRYPI.js @@ -1 +1 @@ -import{Na as l,Oa as o,T as m,Ua as d,ja as a,wa as i,xa as s,ya as c}from"./chunk-XZNUB5IR.js";var u=(()=>{let e=class e{constructor(){this.title="",this.message=""}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=m({type:e,selectors:[["ms-empty-state"]],inputs:{title:"title",message:"message"},standalone:!0,features:[d],decls:6,vars:2,consts:[["src","assets/icons/empty-state.svg"],[1,"heading-section-title"],[1,"paragraph-regular-p2-large"]],template:function(t,r){t&1&&(i(0,"div"),c(1,"img",0),i(2,"div",1),l(3),s(),i(4,"div",2),l(5),s()()),t&2&&(a(3),o(r.title),a(2),o(r.message))},styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%;text-align:center}div[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}img[_ngcontent-%COMP%]{max-width:100%;height:auto}"]});let n=e;return n})();export{u as a}; +import{Na as l,Oa as o,T as m,Ua as d,ja as a,wa as i,xa as s,ya as c}from"./chunk-JA5VSLUI.js";var u=(()=>{let e=class e{constructor(){this.title="",this.message=""}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=m({type:e,selectors:[["ms-empty-state"]],inputs:{title:"title",message:"message"},standalone:!0,features:[d],decls:6,vars:2,consts:[["src","assets/icons/empty-state.svg"],[1,"heading-section-title"],[1,"paragraph-regular-p2-large"]],template:function(t,r){t&1&&(i(0,"div"),c(1,"img",0),i(2,"div",1),l(3),s(),i(4,"div",2),l(5),s()()),t&2&&(a(3),o(r.title),a(2),o(r.message))},styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%;text-align:center}div[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}img[_ngcontent-%COMP%]{max-width:100%;height:auto}"]});let n=e;return n})();export{u as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7XUVQUZC.js b/frontend/server/modelsmith-build/browser/chunk-FQJTC3NS.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-7XUVQUZC.js rename to frontend/server/modelsmith-build/browser/chunk-FQJTC3NS.js index 01af7cdf..397937fc 100644 --- a/frontend/server/modelsmith-build/browser/chunk-7XUVQUZC.js +++ b/frontend/server/modelsmith-build/browser/chunk-FQJTC3NS.js @@ -1 +1 @@ -import{$a as F,$d as Ee,A as B,B as W,Bc as _e,Ca as M,Da as x,Ea as m,Ec as Ce,Fa as J,Fc as Se,Ga as v,H as Q,Hc as be,I as O,Ia as T,Ic as ye,J as h,Ja as w,K as k,Ka as C,La as S,Ma as P,N as $,Na as D,Oa as X,Od as ve,P as K,Pa as Y,Pd as Ie,Q as z,Qd as Oe,Rd as ke,T as q,Ta as ee,U,V as E,Xa as te,Ya as ne,Z as g,Za as ie,Zc as Me,_ as f,ae as Ae,cb as oe,ea as A,eb as ae,ec as ce,fa as Z,fc as he,gb as le,gc as pe,h as V,he as Te,i as R,ic as me,ja as c,jc as de,ka as d,ld as xe,mb as re,nc as ue,o as N,pb as se,qa as _,qc as ge,ra as G,s as b,sa as s,t as j,tc as fe,w as H,wa as u,xa as p,ya as y}from"./chunk-XZNUB5IR.js";var we=["searchSelectInput"],Pe=["innerSelectSearch"],De=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Fe=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Le=(n,a)=>({"mat-select-search-inner-multiple":n,"mat-select-search-inner-toggle-all":a});function Ve(n,a){if(n&1){let e=M();u(0,"mat-checkbox",12),x("change",function(i){g(e);let o=m();return f(o._emitSelectAllBooleanToParent(i.checked))}),p()}if(n&2){let e=m();s("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function Re(n,a){n&1&&y(0,"mat-spinner",13)}function Ne(n,a){n&1&&v(0,1,["*ngIf","clearIcon; else defaultIcon"])}function je(n,a){if(n&1&&(u(0,"mat-icon",16),D(1),p()),n&2){let e=m(2);s("svgIcon",e.closeSvgIcon),c(),Y(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function He(n,a){if(n&1){let e=M();u(0,"button",14),x("click",function(){g(e);let i=m();return f(i._reset(!0))}),_(1,Ne,1,0,"ng-content",15)(2,je,2,2,"ng-template",null,2,F),p()}if(n&2){let e=P(3),t=m();c(),s("ngIf",t.clearIcon)("ngIfElse",e)}}function Be(n,a){n&1&&v(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function We(n,a){if(n&1&&D(0),n&2){let e=m(2);X(e.noEntriesFoundLabel)}}function Qe(n,a){if(n&1&&(u(0,"div",17),_(1,Be,1,0,"ng-content",15)(2,We,1,1,"ng-template",null,3,F),p()),n&2){let e=P(3),t=m();c(),s("ngIf",t.noEntriesFound)("ngIfElse",e)}}var $e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=E({type:n,selectors:[["","ngxMatSelectSearchClear",""]]}),n})(),Ke=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ze=new z("mat-selectsearch-default-options"),qe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=E({type:n,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),n})(),jt=(()=>{class n{constructor(e,t,i,o=null,l=null,L){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=i,this.matOption=o,this.matFormField=l,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new Z,this.onTouched=r=>{},this._options$=new R(null),this.optionsList$=this._options$.pipe(O(r=>r?r.changes.pipe(b(I=>I.toArray()),Q(r.toArray())):N(null))),this.optionsLength$=this.optionsList$.pipe(b(r=>r?r.length:0)),this._formControl=new ge(""),this._showNoEntriesFound$=j([this._formControl.valueChanges,this.optionsLength$]).pipe(b(([r,I])=>this.noEntriesFoundLabel&&r&&I===this.getOptionsLengthOffset())),this._onDestroy=new V,this.applyDefaultOptions(L)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let t of Ke)e.hasOwnProperty(t)&&(this[t]=e[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(W(1),h(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(B(1),O(e=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(k(()=>{setTimeout(()=>{let i=this._options.toArray(),o=i[this.getOptionsLengthOffset()],l=this.matSelect._keyManager;l&&this.matSelect.panelOpen&&o&&((!t||!this.matSelect.compareWith(t.value,o.value)||!l.activeItem||!i.find(r=>this.matSelect.compareWith(r.value,l.activeItem.value)))&&l.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=o})}))})).pipe(h(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(h(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(h(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(h(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||e.keyCode===32||this.preventHomeEndKeyPropagation&&(e.keyCode===36||e.keyCode===35))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===13&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed===!0&&e.keyCode===27&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.keyCode===38||e.keyCode===40){let t=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex(o=>o.id===t);i!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[i]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(H(t=>t!==this._lastExternalInputValue),k(()=>this._lastExternalInputValue=void 0),h(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(h(this._onDestroy)).subscribe(e=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let i=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!e.some(l=>this.matSelect.compareWith(l,o))&&!i.some(l=>this.matSelect.compareWith(l,o))&&(e.push(o),t=!0)})}this.previousSelectedValues=e,t&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,t;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return n.\u0275fac=function(e){return new(e||n)(d(Te),d(oe),d(xe),d(ce,8),d(Me,8),d(ze,8))},n.\u0275cmp=q({type:n,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,i){if(e&1&&(T(i,$e,5),T(i,qe,5)),e&2){let o;C(o=S())&&(t.clearIcon=o.first),C(o=S())&&(t.noEntriesFound=o.first)}},viewQuery:function(e,t){if(e&1&&(w(we,7,A),w(Pe,7,A)),e&2){let i;C(i=S())&&(t.searchSelectInput=i.first),C(i=S())&&(t.innerSelectSearch=i.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[ee([{provide:me,useExisting:$(()=>n),multi:!0}])],ngContentSelectors:Fe,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,t){if(e&1){let i=M();J(De),y(0,"input",4),u(1,"div",5,0)(3,"div",6),_(4,Ve,1,5,"mat-checkbox",7),u(5,"input",8,1),x("keydown",function(l){return g(i),f(t._handleKeydown(l))})("keyup",function(l){return g(i),f(t._handleKeyup(l))})("blur",function(){return g(i),f(t.onBlur())}),p(),_(7,Re,1,0,"mat-spinner",9)(8,He,4,2,"button",10),v(9),p(),y(10,"mat-divider"),p(),_(11,Qe,4,2,"div",11),ne(12,"async")}e&2&&(c(),s("ngClass",te(11,Le,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),c(3),s("ngIf",t._isToggleAllCheckboxVisible()),c(),s("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),G("aria-label",t.ariaLabel),c(2),s("ngIf",t.searching),c(),s("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),c(3),s("ngIf",ie(12,9,t._showNoEntriesFound$)))},dependencies:[ae,le,de,ue,fe,Ce,Ee,be,ve,Oe,he,re],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),n})();var Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=U({type:n}),n.\u0275inj=K({imports:[se,_e,Se,Ae,ye,Ie,ke,pe]}),n})();export{ze as a,jt as b,Ht as c}; +import{$a as F,$d as Ee,A as B,B as W,Bc as _e,Ca as M,Da as x,Ea as m,Ec as Ce,Fa as J,Fc as Se,Ga as v,H as Q,Hc as be,I as O,Ia as T,Ic as ye,J as h,Ja as w,K as k,Ka as C,La as S,Ma as P,N as $,Na as D,Oa as X,Od as ve,P as K,Pa as Y,Pd as Ie,Q as z,Qd as Oe,Rd as ke,T as q,Ta as ee,U,V as E,Xa as te,Ya as ne,Z as g,Za as ie,Zc as Me,_ as f,ae as Ae,cb as oe,ea as A,eb as ae,ec as ce,fa as Z,fc as he,gb as le,gc as pe,h as V,he as Te,i as R,ic as me,ja as c,jc as de,ka as d,ld as xe,mb as re,nc as ue,o as N,pb as se,qa as _,qc as ge,ra as G,s as b,sa as s,t as j,tc as fe,w as H,wa as u,xa as p,ya as y}from"./chunk-JA5VSLUI.js";var we=["searchSelectInput"],Pe=["innerSelectSearch"],De=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Fe=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Le=(n,a)=>({"mat-select-search-inner-multiple":n,"mat-select-search-inner-toggle-all":a});function Ve(n,a){if(n&1){let e=M();u(0,"mat-checkbox",12),x("change",function(i){g(e);let o=m();return f(o._emitSelectAllBooleanToParent(i.checked))}),p()}if(n&2){let e=m();s("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function Re(n,a){n&1&&y(0,"mat-spinner",13)}function Ne(n,a){n&1&&v(0,1,["*ngIf","clearIcon; else defaultIcon"])}function je(n,a){if(n&1&&(u(0,"mat-icon",16),D(1),p()),n&2){let e=m(2);s("svgIcon",e.closeSvgIcon),c(),Y(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function He(n,a){if(n&1){let e=M();u(0,"button",14),x("click",function(){g(e);let i=m();return f(i._reset(!0))}),_(1,Ne,1,0,"ng-content",15)(2,je,2,2,"ng-template",null,2,F),p()}if(n&2){let e=P(3),t=m();c(),s("ngIf",t.clearIcon)("ngIfElse",e)}}function Be(n,a){n&1&&v(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function We(n,a){if(n&1&&D(0),n&2){let e=m(2);X(e.noEntriesFoundLabel)}}function Qe(n,a){if(n&1&&(u(0,"div",17),_(1,Be,1,0,"ng-content",15)(2,We,1,1,"ng-template",null,3,F),p()),n&2){let e=P(3),t=m();c(),s("ngIf",t.noEntriesFound)("ngIfElse",e)}}var $e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=E({type:n,selectors:[["","ngxMatSelectSearchClear",""]]}),n})(),Ke=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ze=new z("mat-selectsearch-default-options"),qe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=E({type:n,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),n})(),jt=(()=>{class n{constructor(e,t,i,o=null,l=null,L){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=i,this.matOption=o,this.matFormField=l,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new Z,this.onTouched=r=>{},this._options$=new R(null),this.optionsList$=this._options$.pipe(O(r=>r?r.changes.pipe(b(I=>I.toArray()),Q(r.toArray())):N(null))),this.optionsLength$=this.optionsList$.pipe(b(r=>r?r.length:0)),this._formControl=new ge(""),this._showNoEntriesFound$=j([this._formControl.valueChanges,this.optionsLength$]).pipe(b(([r,I])=>this.noEntriesFoundLabel&&r&&I===this.getOptionsLengthOffset())),this._onDestroy=new V,this.applyDefaultOptions(L)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let t of Ke)e.hasOwnProperty(t)&&(this[t]=e[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(W(1),h(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(B(1),O(e=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(k(()=>{setTimeout(()=>{let i=this._options.toArray(),o=i[this.getOptionsLengthOffset()],l=this.matSelect._keyManager;l&&this.matSelect.panelOpen&&o&&((!t||!this.matSelect.compareWith(t.value,o.value)||!l.activeItem||!i.find(r=>this.matSelect.compareWith(r.value,l.activeItem.value)))&&l.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=o})}))})).pipe(h(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(h(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(h(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(h(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||e.keyCode===32||this.preventHomeEndKeyPropagation&&(e.keyCode===36||e.keyCode===35))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===13&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed===!0&&e.keyCode===27&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.keyCode===38||e.keyCode===40){let t=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex(o=>o.id===t);i!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[i]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(H(t=>t!==this._lastExternalInputValue),k(()=>this._lastExternalInputValue=void 0),h(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(h(this._onDestroy)).subscribe(e=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let i=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!e.some(l=>this.matSelect.compareWith(l,o))&&!i.some(l=>this.matSelect.compareWith(l,o))&&(e.push(o),t=!0)})}this.previousSelectedValues=e,t&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,t;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return n.\u0275fac=function(e){return new(e||n)(d(Te),d(oe),d(xe),d(ce,8),d(Me,8),d(ze,8))},n.\u0275cmp=q({type:n,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,i){if(e&1&&(T(i,$e,5),T(i,qe,5)),e&2){let o;C(o=S())&&(t.clearIcon=o.first),C(o=S())&&(t.noEntriesFound=o.first)}},viewQuery:function(e,t){if(e&1&&(w(we,7,A),w(Pe,7,A)),e&2){let i;C(i=S())&&(t.searchSelectInput=i.first),C(i=S())&&(t.innerSelectSearch=i.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[ee([{provide:me,useExisting:$(()=>n),multi:!0}])],ngContentSelectors:Fe,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,t){if(e&1){let i=M();J(De),y(0,"input",4),u(1,"div",5,0)(3,"div",6),_(4,Ve,1,5,"mat-checkbox",7),u(5,"input",8,1),x("keydown",function(l){return g(i),f(t._handleKeydown(l))})("keyup",function(l){return g(i),f(t._handleKeyup(l))})("blur",function(){return g(i),f(t.onBlur())}),p(),_(7,Re,1,0,"mat-spinner",9)(8,He,4,2,"button",10),v(9),p(),y(10,"mat-divider"),p(),_(11,Qe,4,2,"div",11),ne(12,"async")}e&2&&(c(),s("ngClass",te(11,Le,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),c(3),s("ngIf",t._isToggleAllCheckboxVisible()),c(),s("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),G("aria-label",t.ariaLabel),c(2),s("ngIf",t.searching),c(),s("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),c(3),s("ngIf",ie(12,9,t._showNoEntriesFound$)))},dependencies:[ae,le,de,ue,fe,Ce,Ee,be,ve,Oe,he,re],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),n})();var Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=U({type:n}),n.\u0275inj=K({imports:[se,_e,Se,Ae,ye,Ie,ke,pe]}),n})();export{ze as a,jt as b,Ht as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-WROZFHBO.js b/frontend/server/modelsmith-build/browser/chunk-H4YXRKOV.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-WROZFHBO.js rename to frontend/server/modelsmith-build/browser/chunk-H4YXRKOV.js index 64b6316a..09a0e43c 100644 --- a/frontend/server/modelsmith-build/browser/chunk-WROZFHBO.js +++ b/frontend/server/modelsmith-build/browser/chunk-H4YXRKOV.js @@ -1 +1 @@ -import{W as o}from"./chunk-XZNUB5IR.js";var l=(()=>{let t=class t{transform(a,e=2){let n=Number(a);if(isNaN(n)||n===0)return"0 Bytes";let s=1024,c=e<0?0:e,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],u=Math.floor(Math.log(n)/Math.log(s));return parseFloat((n/Math.pow(s,u)).toFixed(c))+" "+r[u]}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"adaptiveFileSize",type:t,pure:!0,standalone:!0});let i=t;return i})();var d=(()=>{let t=class t{transform(a){return{creation_date:"Creation Date",epochs:"Number of Epochs",file_size_bytes:"File Size",learning_rate:"Learning Rate",model:"Model Architecture",training_duration_seconds:"Training Duration",duration_seconds:"Total Duration",arch:"Model Architecture",best_acc:"Best Accuracy",device:"Device Used",lr:"Learning Rate",pruning_ratio:"Pruning Ratio",start_epoch:"Starting Epoch",pruning_times:"Pruning Iterations",rewinding_epoch:"Rewinding Epoch",save_dir:"Saving Directory",algorithm_key:"Algorithm Key",execution_date:"Execution Date",seed:"Random Seed",dataset:"Dataset Name",batch_size:"Batch Size",workers:"Workers",n_bits_w:"Bitwidth for Weights",channel_wise:"Channel-wise Quantization",n_bits_a:"Bitwidth for Activations",disable_8bit_head_stem:"Disable 8-bit Head and Stem",num_samples:"Number of Samples",iters_w:"Number of Iterations",weight:"Weight Parameter",keep_cpu:"Keep Calibration Data on CPU",wwq:"Weight Quantization",waq:"Activation Quantization",b_start:"Initial Temperature",b_end:"Final Temperature",warmup:"Warmup Period",awq:"Activation Weight Quantization",aaq:"Activation Activation Quantization",init_wmode:"Weight Initialization Mode",init_amode:"Activation Initialization Mode",order:"Order of Quantization",prob:"Probability",input_prob:"Input Probability",act_quant:"Apply Activation Quantization",num_indexes_to_replace:"Number of Indexes to Replace",alpha:"L1 Regularization Coefficient (Alpha)",unlearn_lr:"Learning Rate for Unlearning",unlearn_epochs:"Nr. of Epochs for L1-Sparse Unlearning",train_seed:"Random Seed for Training",class_to_replace:"Specific Class to Forget",data:"Location of the Data Corpus",indexes_to_replace:"Specific Index Data to Forget",no_aug:"No Augmentation in Training Dataset",decreasing_lr:"Decreasing Strategy",rewind_epoch:"Rewind Checkpoint",imagenet_arch:"Architecture for ImageNet Size Samples",no_l1_epochs:"Non L1 Epochs",momentum:"Momentum",weight_decay:"Weight Decay",num_workers:"Number of workers"}[a]||a}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"parametersLabel",type:t,pure:!0,standalone:!0});let i=t;return i})();var f=(()=>{let t=class t{transform(a){let e=Number(a);if(isNaN(e))return"Invalid duration";let n=Math.floor(e/3600),s=Math.floor(e%3600/60),c=Math.floor(e%60),r="";return n>0&&(r+=`${n}h `),(s>0||n>0)&&(r+=`${s}m `),r+=`${c}s`,r.trim()}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"readableDuration",type:t,pure:!0,standalone:!0});let i=t;return i})();export{l as a,d as b,f as c}; +import{W as o}from"./chunk-JA5VSLUI.js";var l=(()=>{let t=class t{transform(a,e=2){let n=Number(a);if(isNaN(n)||n===0)return"0 Bytes";let s=1024,c=e<0?0:e,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],u=Math.floor(Math.log(n)/Math.log(s));return parseFloat((n/Math.pow(s,u)).toFixed(c))+" "+r[u]}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"adaptiveFileSize",type:t,pure:!0,standalone:!0});let i=t;return i})();var d=(()=>{let t=class t{transform(a){return{creation_date:"Creation Date",epochs:"Number of Epochs",file_size_bytes:"File Size",learning_rate:"Learning Rate",model:"Model Architecture",training_duration_seconds:"Training Duration",duration_seconds:"Total Duration",arch:"Model Architecture",best_acc:"Best Accuracy",device:"Device Used",lr:"Learning Rate",pruning_ratio:"Pruning Ratio",start_epoch:"Starting Epoch",pruning_times:"Pruning Iterations",rewinding_epoch:"Rewinding Epoch",save_dir:"Saving Directory",algorithm_key:"Algorithm Key",execution_date:"Execution Date",seed:"Random Seed",dataset:"Dataset Name",batch_size:"Batch Size",workers:"Workers",n_bits_w:"Bitwidth for Weights",channel_wise:"Channel-wise Quantization",n_bits_a:"Bitwidth for Activations",disable_8bit_head_stem:"Disable 8-bit Head and Stem",num_samples:"Number of Samples",iters_w:"Number of Iterations",weight:"Weight Parameter",keep_cpu:"Keep Calibration Data on CPU",wwq:"Weight Quantization",waq:"Activation Quantization",b_start:"Initial Temperature",b_end:"Final Temperature",warmup:"Warmup Period",awq:"Activation Weight Quantization",aaq:"Activation Activation Quantization",init_wmode:"Weight Initialization Mode",init_amode:"Activation Initialization Mode",order:"Order of Quantization",prob:"Probability",input_prob:"Input Probability",act_quant:"Apply Activation Quantization",num_indexes_to_replace:"Number of Indexes to Replace",alpha:"L1 Regularization Coefficient (Alpha)",unlearn_lr:"Learning Rate for Unlearning",unlearn_epochs:"Nr. of Epochs for L1-Sparse Unlearning",train_seed:"Random Seed for Training",class_to_replace:"Specific Class to Forget",data:"Location of the Data Corpus",indexes_to_replace:"Specific Index Data to Forget",no_aug:"No Augmentation in Training Dataset",decreasing_lr:"Decreasing Strategy",rewind_epoch:"Rewind Checkpoint",imagenet_arch:"Architecture for ImageNet Size Samples",no_l1_epochs:"Non L1 Epochs",momentum:"Momentum",weight_decay:"Weight Decay",num_workers:"Number of workers"}[a]||a}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"parametersLabel",type:t,pure:!0,standalone:!0});let i=t;return i})();var f=(()=>{let t=class t{transform(a){let e=Number(a);if(isNaN(e))return"Invalid duration";let n=Math.floor(e/3600),s=Math.floor(e%3600/60),c=Math.floor(e%60),r="";return n>0&&(r+=`${n}h `),(s>0||n>0)&&(r+=`${s}m `),r+=`${c}s`,r.trim()}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"readableDuration",type:t,pure:!0,standalone:!0});let i=t;return i})();export{l as a,d as b,f as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-IUBE55F7.js b/frontend/server/modelsmith-build/browser/chunk-HCG7N3XK.js similarity index 88% rename from frontend/server/modelsmith-build/browser/chunk-IUBE55F7.js rename to frontend/server/modelsmith-build/browser/chunk-HCG7N3XK.js index 1d948b2e..ee3a3280 100644 --- a/frontend/server/modelsmith-build/browser/chunk-IUBE55F7.js +++ b/frontend/server/modelsmith-build/browser/chunk-HCG7N3XK.js @@ -1 +1 @@ -import{Fa as a,Ga as c,T as r,Ua as d,wa as i,xa as o}from"./chunk-XZNUB5IR.js";var l=["*"],p=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=r({type:e,selectors:[["ms-background-gradient"]],standalone:!0,features:[d],ngContentSelectors:l,decls:2,vars:0,consts:[[1,"full-page-gradient"]],template:function(n,g){n&1&&(a(),i(0,"div",0),c(1),o())},styles:[".full-page-gradient[_ngcontent-%COMP%]{height:100vh;width:100vw;background:linear-gradient(to right,var(--header-left),var(--header-right))}"]});let t=e;return t})();export{p as a}; +import{Fa as a,Ga as c,T as r,Ua as d,wa as i,xa as o}from"./chunk-JA5VSLUI.js";var l=["*"],p=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=r({type:e,selectors:[["ms-background-gradient"]],standalone:!0,features:[d],ngContentSelectors:l,decls:2,vars:0,consts:[[1,"full-page-gradient"]],template:function(n,g){n&1&&(a(),i(0,"div",0),c(1),o())},styles:[".full-page-gradient[_ngcontent-%COMP%]{height:100vh;width:100vw;background:linear-gradient(to right,var(--header-left),var(--header-right))}"]});let t=e;return t})();export{p as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-BF3VVV5I.js b/frontend/server/modelsmith-build/browser/chunk-IS3LT32Q.js similarity index 86% rename from frontend/server/modelsmith-build/browser/chunk-BF3VVV5I.js rename to frontend/server/modelsmith-build/browser/chunk-IS3LT32Q.js index 9169d1d2..11e76229 100644 --- a/frontend/server/modelsmith-build/browser/chunk-BF3VVV5I.js +++ b/frontend/server/modelsmith-build/browser/chunk-IS3LT32Q.js @@ -1 +1 @@ -import{a as d}from"./chunk-OZEKUFJS.js";import{a as u}from"./chunk-PEPQONB2.js";import"./chunk-7XUVQUZC.js";import"./chunk-MM4TEEVS.js";import{a as f}from"./chunk-4KDFY6RG.js";import"./chunk-U7NPFWER.js";import"./chunk-VMZY47C3.js";import{b as B}from"./chunk-ZPFJPO4G.js";import{Aa as I,Ca as N,Cc as D,Cd as k,Da as E,Id as T,Ja as V,Ka as L,La as j,Md as q,Na as S,P as p,T as Q,U as l,Z as P,Zb as A,_ as F,a as g,b as y,ja as m,ka as v,m as b,oc as R,pb as G,rd as O,sa as a,sd as _,uc as W,ud as U,wa as s,wd as M,xa as c,ya as C,za as w,zc as z}from"./chunk-XZNUB5IR.js";var $=["panelParameters"],o,h=(o=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=k,this.AWQAlgorithmsEnum=T,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(_(this)).subscribe(t=>{this.isScriptActive=M(t),M(t)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(T.AWQ_QUANTIZATION)},0)}submit(){if(this.isScriptActive)return;let{algorithm:t,model:i}=this.form.getRawValue(),{model:e}=i,r=y(g({},t),{params:y(g({},this.panelParametersComponent.parametersFormatted),{model:e})});this.scriptFacadeService.dispatch(U.callScript({configs:r}))}},o.\u0275fac=function(i){return new(i||o)(v(z),v(q))},o.\u0275cmp=Q({type:o,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V($,5),i&2){let r;L(r=j())&&(e.panelParametersComponent=r.first)}},decls:13,vars:6,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType","isTrainModelsPageRouteVisible"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let r=N();s(0,"p",1),S(1,"LLM Quantization"),c(),s(2,"div",2)(3,"div",3),w(4,4),C(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),I(),s(8,"div")(9,"button",7),E("click",function(){return P(r),F(e.submit())}),S(10," Run "),c()()(),s(11,"div",8),C(12,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithmType",e.AlgorithmType.AWQ)("isTrainModelsPageRouteVisible",!1),m(),a("algorithm",e.AWQAlgorithmsEnum.AWQ_QUANTIZATION),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[D,R,W,d,u,f],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);h=b([O()],h);var x=[{path:"",component:h}],Z=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[A.forChild(x),A]});let n=t;return n})();var At=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[G,B,Z,d,u,f]});let n=t;return n})();export{At as LlmQuantizationModule}; +import{a as d}from"./chunk-M5CIZNTW.js";import{a as u}from"./chunk-C4BAO3YM.js";import"./chunk-FQJTC3NS.js";import"./chunk-WL3ZZTTC.js";import{a as f}from"./chunk-4LH6YZUP.js";import"./chunk-VBDJDMQD.js";import"./chunk-3ZHMSG5W.js";import{b as B}from"./chunk-KK5JZLDV.js";import{Aa as I,Ca as N,Cc as D,Cd as k,Da as E,Id as T,Ja as V,Ka as L,La as j,Md as q,Na as S,P as p,T as Q,U as l,Z as P,Zb as A,_ as F,a as g,b as y,ja as m,ka as v,m as b,oc as R,pb as G,rd as O,sa as a,sd as _,uc as W,ud as U,wa as s,wd as M,xa as c,ya as C,za as w,zc as z}from"./chunk-JA5VSLUI.js";var $=["panelParameters"],o,h=(o=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=k,this.AWQAlgorithmsEnum=T,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(_(this)).subscribe(t=>{this.isScriptActive=M(t),M(t)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(T.AWQ_QUANTIZATION)},0)}submit(){if(this.isScriptActive)return;let{algorithm:t,model:i}=this.form.getRawValue(),{model:e}=i,r=y(g({},t),{params:y(g({},this.panelParametersComponent.parametersFormatted),{model:e})});this.scriptFacadeService.dispatch(U.callScript({configs:r}))}},o.\u0275fac=function(i){return new(i||o)(v(z),v(q))},o.\u0275cmp=Q({type:o,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V($,5),i&2){let r;L(r=j())&&(e.panelParametersComponent=r.first)}},decls:13,vars:6,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType","isTrainModelsPageRouteVisible"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let r=N();s(0,"p",1),S(1,"LLM Quantization"),c(),s(2,"div",2)(3,"div",3),w(4,4),C(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),I(),s(8,"div")(9,"button",7),E("click",function(){return P(r),F(e.submit())}),S(10," Run "),c()()(),s(11,"div",8),C(12,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithmType",e.AlgorithmType.AWQ)("isTrainModelsPageRouteVisible",!1),m(),a("algorithm",e.AWQAlgorithmsEnum.AWQ_QUANTIZATION),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[D,R,W,d,u,f],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);h=b([O()],h);var x=[{path:"",component:h}],Z=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[A.forChild(x),A]});let n=t;return n})();var At=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[G,B,Z,d,u,f]});let n=t;return n})();export{At as LlmQuantizationModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-XZNUB5IR.js b/frontend/server/modelsmith-build/browser/chunk-JA5VSLUI.js similarity index 52% rename from frontend/server/modelsmith-build/browser/chunk-XZNUB5IR.js rename to frontend/server/modelsmith-build/browser/chunk-JA5VSLUI.js index 27754853..fb0d2d39 100644 --- a/frontend/server/modelsmith-build/browser/chunk-XZNUB5IR.js +++ b/frontend/server/modelsmith-build/browser/chunk-JA5VSLUI.js @@ -1,17 +1,17 @@ -var $k=Object.create;var Pf=Object.defineProperty,Gk=Object.defineProperties,Wk=Object.getOwnPropertyDescriptor,qk=Object.getOwnPropertyDescriptors,Yk=Object.getOwnPropertyNames,el=Object.getOwnPropertySymbols,Zk=Object.getPrototypeOf,Lf=Object.prototype.hasOwnProperty,j_=Object.prototype.propertyIsEnumerable;var L_=(t,e,r)=>e in t?Pf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||={})Lf.call(e,r)&&L_(t,r,e[r]);if(el)for(var r of el(e))j_.call(e,r)&&L_(t,r,e[r]);return t},Q=(t,e)=>Gk(t,qk(e));var Qk=(t,e)=>{var r={};for(var i in t)Lf.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&el)for(var i of el(t))e.indexOf(i)<0&&j_.call(t,i)&&(r[i]=t[i]);return r};var s3=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Kk=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yk(e))!Lf.call(t,n)&&n!==r&&Pf(t,n,{get:()=>e[n],enumerable:!(i=Wk(e,n))||i.enumerable});return t};var a3=(t,e,r)=>(r=t!=null?$k(Zk(t)):{},Kk(e||!t||!t.__esModule?Pf(r,"default",{value:t,enumerable:!0}):r,t));var ia=(t,e,r)=>new Promise((i,n)=>{var o=c=>{try{a(r.next(c))}catch(l){n(l)}},s=c=>{try{a(r.throw(c))}catch(l){n(l)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function V_(t,e){return Object.is(t,e)}var Dt=null,na=!1,tl=1,rn=Symbol("SIGNAL");function Te(t){let e=Dt;return Dt=t,e}function B_(){return Dt}function Xk(){return na}var Fo={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function zf(t){if(na)throw new Error("");if(Dt===null)return;Dt.consumerOnSignalRead(t);let e=Dt.nextProducerIndex++;if(al(Dt),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function rl(t){al(t);for(let e=0;e0}function al(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function W_(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function q_(t){return t.producerNode!==void 0}function Y_(t){let e=Object.create(eT);e.computation=t;let r=()=>{if(z_(e),zf(e),e.value===il)throw e.error;return e.value};return r[rn]=e,r}var jf=Symbol("UNSET"),Vf=Symbol("COMPUTING"),il=Symbol("ERRORED"),eT=Q(w({},Fo),{value:jf,dirty:!0,error:null,equal:V_,producerMustRecompute(t){return t.value===jf||t.value===Vf},producerRecomputeValue(t){if(t.value===Vf)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Vf;let r=oa(t),i;try{i=t.computation()}catch(n){i=il,t.error=n}finally{nl(t,r)}if(e!==jf&&e!==il&&i!==il&&t.equal(e,i)){t.value=e;return}t.value=i,t.version++}});function tT(){throw new Error}var Z_=tT;function Q_(){Z_()}function K_(t){Z_=t}var iT=null;function X_(t){let e=Object.create(ey);e.value=t;let r=()=>(zf(e),e.value);return r[rn]=e,r}function Uf(t,e){H_()||Q_(),t.equal(t.value,e)||(t.value=e,nT(t))}function J_(t,e){H_()||Q_(),Uf(t,e(t.value))}var ey=Q(w({},Fo),{equal:V_,value:void 0});function nT(t){t.version++,Jk(),U_(t),iT?.()}function ty(t,e,r){let i=Object.create(rT);r&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=e;let n=c=>{i.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(ol(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Bf)}let a=()=>{if(i.fn===null)return;if(Xk())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!rl(i))return;i.hasRun=!0;let c=oa(i);try{i.cleanupFn(),i.cleanupFn=Bf,i.fn(n)}finally{nl(i,c)}};return i.ref={notify:()=>$_(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[rn]:i},i.ref}var Bf=()=>{},rT=Q(w({},Fo),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Bf});function ce(t){return typeof t=="function"}function or(t){let r=t(i=>{Error.call(i),i.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var cl=or(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +var Gk=Object.create;var Of=Object.defineProperty,Wk=Object.defineProperties,qk=Object.getOwnPropertyDescriptor,Yk=Object.getOwnPropertyDescriptors,Zk=Object.getOwnPropertyNames,tl=Object.getOwnPropertySymbols,Qk=Object.getPrototypeOf,Nf=Object.prototype.hasOwnProperty,j_=Object.prototype.propertyIsEnumerable;var L_=(t,e,r)=>e in t?Of(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||={})Nf.call(e,r)&&L_(t,r,e[r]);if(tl)for(var r of tl(e))j_.call(e,r)&&L_(t,r,e[r]);return t},Q=(t,e)=>Wk(t,Yk(e));var Kk=(t,e)=>{var r={};for(var i in t)Nf.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&tl)for(var i of tl(t))e.indexOf(i)<0&&j_.call(t,i)&&(r[i]=t[i]);return r};var d3=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Xk=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zk(e))!Nf.call(t,n)&&n!==r&&Of(t,n,{get:()=>e[n],enumerable:!(i=qk(e,n))||i.enumerable});return t};var u3=(t,e,r)=>(r=t!=null?Gk(Qk(t)):{},Xk(e||!t||!t.__esModule?Of(r,"default",{value:t,enumerable:!0}):r,t));var Bo=(t,e,r)=>new Promise((i,n)=>{var o=c=>{try{a(r.next(c))}catch(l){n(l)}},s=c=>{try{a(r.throw(c))}catch(l){n(l)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function V_(t,e){return Object.is(t,e)}var Dt=null,oa=!1,il=1,an=Symbol("SIGNAL");function Te(t){let e=Dt;return Dt=t,e}function B_(){return Dt}function Jk(){return oa}var zo={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function jf(t){if(oa)throw new Error("");if(Dt===null)return;Dt.consumerOnSignalRead(t);let e=Dt.nextProducerIndex++;if(cl(Dt),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ol(t){cl(t);for(let e=0;e0}function cl(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function W_(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function q_(t){return t.producerNode!==void 0}function Y_(t){let e=Object.create(tT);e.computation=t;let r=()=>{if(z_(e),jf(e),e.value===nl)throw e.error;return e.value};return r[an]=e,r}var Ff=Symbol("UNSET"),Pf=Symbol("COMPUTING"),nl=Symbol("ERRORED"),tT=Q(w({},zo),{value:Ff,dirty:!0,error:null,equal:V_,producerMustRecompute(t){return t.value===Ff||t.value===Pf},producerRecomputeValue(t){if(t.value===Pf)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Pf;let r=aa(t),i;try{i=t.computation()}catch(n){i=nl,t.error=n}finally{rl(t,r)}if(e!==Ff&&e!==nl&&i!==nl&&t.equal(e,i)){t.value=e;return}t.value=i,t.version++}});function iT(){throw new Error}var Z_=iT;function Q_(){Z_()}function K_(t){Z_=t}var nT=null;function X_(t){let e=Object.create(ey);e.value=t;let r=()=>(jf(e),e.value);return r[an]=e,r}function Vf(t,e){H_()||Q_(),t.equal(t.value,e)||(t.value=e,rT(t))}function J_(t,e){H_()||Q_(),Vf(t,e(t.value))}var ey=Q(w({},zo),{equal:V_,value:void 0});function rT(t){t.version++,eT(),U_(t),nT?.()}function ty(t,e,r){let i=Object.create(oT);r&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=e;let n=c=>{i.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(sl(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Lf)}let a=()=>{if(i.fn===null)return;if(Jk())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!ol(i))return;i.hasRun=!0;let c=aa(i);try{i.cleanupFn(),i.cleanupFn=Lf,i.fn(n)}finally{rl(i,c)}};return i.ref={notify:()=>$_(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[an]:i},i.ref}var Lf=()=>{},oT=Q(w({},zo),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Lf});function ce(t){return typeof t=="function"}function lr(t){let r=t(i=>{Error.call(i),i.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ll=lr(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: ${r.map((i,n)=>`${n+1}) ${i.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Br(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ne=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:i}=this;if(ce(i))try{i()}catch(o){e=o instanceof cl?o.errors:[o]}let{_finalizers:n}=this;if(n){this._finalizers=null;for(let o of n)try{iy(o)}catch(s){e=e??[],s instanceof cl?e=[...e,...s.errors]:e.push(s)}}if(e)throw new cl(e)}}add(e){var r;if(e&&e!==this)if(this.closed)iy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Br(r,e)}remove(e){let{_finalizers:r}=this;r&&Br(r,e),e instanceof t&&e._removeParent(this)}};ne.EMPTY=(()=>{let t=new ne;return t.closed=!0,t})();var Hf=ne.EMPTY;function ll(t){return t instanceof ne||t&&"closed"in t&&ce(t.remove)&&ce(t.add)&&ce(t.unsubscribe)}function iy(t){ce(t)?t():t.unsubscribe()}var Bi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Po={setTimeout(t,e,...r){let{delegate:i}=Po;return i?.setTimeout?i.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Po;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function dl(t){Po.setTimeout(()=>{let{onUnhandledError:e}=Bi;if(e)e(t);else throw t})}function jn(){}var ny=$f("C",void 0,void 0);function ry(t){return $f("E",void 0,t)}function oy(t){return $f("N",t,void 0)}function $f(t,e,r){return{kind:t,value:e,error:r}}var zr=null;function Lo(t){if(Bi.useDeprecatedSynchronousErrorHandling){let e=!zr;if(e&&(zr={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:i}=zr;if(zr=null,r)throw i}}else t()}function sy(t){Bi.useDeprecatedSynchronousErrorHandling&&zr&&(zr.errorThrown=!0,zr.error=t)}var Ur=class extends ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ll(e)&&e.add(this)):this.destination=aT}static create(e,r,i){return new zi(e,r,i)}next(e){this.isStopped?Wf(oy(e),this):this._next(e)}error(e){this.isStopped?Wf(ry(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Wf(ny,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},oT=Function.prototype.bind;function Gf(t,e){return oT.call(t,e)}var qf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(i){ul(i)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(i){ul(i)}else ul(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){ul(r)}}},zi=class extends Ur{constructor(e,r,i){super();let n;if(ce(e)||!e)n={next:e??void 0,error:r??void 0,complete:i??void 0};else{let o;this&&Bi.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),n={next:e.next&&Gf(e.next,o),error:e.error&&Gf(e.error,o),complete:e.complete&&Gf(e.complete,o)}):n=e}this.destination=new qf(n)}};function ul(t){Bi.useDeprecatedSynchronousErrorHandling?sy(t):dl(t)}function sT(t){throw t}function Wf(t,e){let{onStoppedNotification:r}=Bi;r&&Po.setTimeout(()=>r(t,e))}var aT={closed:!0,next:jn,error:sT,complete:jn};var jo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Nt(t){return t}function Yf(...t){return Zf(t)}function Zf(t){return t.length===0?Nt:t.length===1?t[0]:function(r){return t.reduce((i,n)=>n(i),r)}}var oe=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let i=new t;return i.source=this,i.operator=r,i}subscribe(r,i,n){let o=lT(r)?r:new zi(r,i,n);return Lo(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(i){r.error(i)}}forEach(r,i){return i=ay(i),new i((n,o)=>{let s=new zi({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:n});this.subscribe(s)})}_subscribe(r){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(r)}[jo](){return this}pipe(...r){return Zf(r)(this)}toPromise(r){return r=ay(r),new r((i,n)=>{let o;this.subscribe(s=>o=s,s=>n(s),()=>i(o))})}}return t.create=e=>new t(e),t})();function ay(t){var e;return(e=t??Bi.Promise)!==null&&e!==void 0?e:Promise}function cT(t){return t&&ce(t.next)&&ce(t.error)&&ce(t.complete)}function lT(t){return t&&t instanceof Ur||cT(t)&&ll(t)}function Qf(t){return ce(t?.lift)}function J(t){return e=>{if(Qf(e))return e.lift(function(r){try{return t(r,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function X(t,e,r,i,n){return new sa(t,e,r,i,n)}var sa=class extends Ur{constructor(e,r,i,n,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=n?function(a){try{n(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Vo(){return J((t,e)=>{let r=null;t._refCount++;let i=X(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let n=t._connection,o=r;r=null,n&&(!o||n===o)&&n.unsubscribe(),e.unsubscribe()});t.subscribe(i),i.closed||(r=t.connect())})}var sr=class extends oe{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Qf(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ne;let r=this.getSubject();e.add(this.source.subscribe(X(r,void 0,()=>{this._teardown(),r.complete()},i=>{this._teardown(),r.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ne.EMPTY)}return e}refCount(){return Vo()(this)}};var Bo={schedule(t){let e=requestAnimationFrame,r=cancelAnimationFrame,{delegate:i}=Bo;i&&(e=i.requestAnimationFrame,r=i.cancelAnimationFrame);let n=e(o=>{r=void 0,t(o)});return new ne(()=>r?.(n))},requestAnimationFrame(...t){let{delegate:e}=Bo;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Bo;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var cy=or(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var C=(()=>{class t extends oe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let i=new hl(this,this);return i.operator=r,i}_throwIfClosed(){if(this.closed)throw new cy}next(r){Lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(r)}})}error(r){Lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:i}=this;for(;i.length;)i.shift().error(r)}})}complete(){Lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:i,isStopped:n,observers:o}=this;return i||n?Hf:(this.currentObservers=null,o.push(r),new ne(()=>{this.currentObservers=null,Br(o,r)}))}_checkFinalizedStatuses(r){let{hasError:i,thrownError:n,isStopped:o}=this;i?r.error(n):o&&r.complete()}asObservable(){let r=new oe;return r.source=this,r}}return t.create=(e,r)=>new hl(e,r),t})(),hl=class extends C{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,e)}error(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&i!==void 0?i:Hf}};var Pe=class extends C{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:i}=this;if(e)throw r;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}};var aa={now(){return(aa.delegate||Date).now()},delegate:void 0};var Hr=class extends C{constructor(e=1/0,r=1/0,i=aa){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:i,_infiniteTimeWindow:n,_timestampProvider:o,_windowTime:s}=this;r||(i.push(e),!n&&i.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:n}=this,o=n.slice();for(let s=0;sly(e)&&t()),e},clearImmediate(t){ly(t)}};var{setImmediate:uT,clearImmediate:hT}=dy,la={setImmediate(...t){let{delegate:e}=la;return(e?.setImmediate||uT)(...t)},clearImmediate(t){let{delegate:e}=la;return(e?.clearImmediate||hT)(t)},delegate:void 0};var pl=class extends on{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,i=0){return i!==null&&i>0?super.requestAsyncId(e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=la.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,i=0){var n;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(e,r,i);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(la.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var zo=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,i){return new this.schedulerActionCtor(this,e).schedule(i,r)}};zo.now=aa.now;var sn=class extends zo{constructor(e,r=zo.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,i){for(;e=r.shift();)e.unsubscribe();throw i}}};var ml=class extends sn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:i}=this,n;e=e||i.shift();do if(n=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift());if(this._active=!1,n){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw n}}};var da=new ml(pl);var Ui=new sn(on),uy=Ui;var gl=class extends on{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}schedule(e,r=0){return r>0?super.schedule(e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)}execute(e,r){return r>0||this.closed?super.execute(e,r):this._execute(e,r)}requestAsyncId(e,r,i=0){return i!=null&&i>0||i==null&&this.delay>0?super.requestAsyncId(e,r,i):(e.flush(this),0)}};var vl=class extends sn{};var Jf=new vl(gl);var bl=class extends on{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,i=0){return i!==null&&i>0?super.requestAsyncId(e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=Bo.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,r,i=0){var n;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(e,r,i);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(Bo.cancelAnimationFrame(r),e._scheduled=void 0)}};var _l=class extends sn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:i}=this,n;e=e||i.shift();do if(n=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift());if(this._active=!1,n){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw n}}};var yl=new _l(bl);var ct=new oe(t=>t.complete());function wl(t){return t&&ce(t.schedule)}function ep(t){return t[t.length-1]}function Uo(t){return ce(ep(t))?t.pop():void 0}function an(t){return wl(ep(t))?t.pop():void 0}function hy(t,e){return typeof ep(t)=="number"?t.pop():e}function py(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o}function my(t,e,r,i){function n(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(d){try{l(i.next(d))}catch(u){s(u)}}function c(d){try{l(i.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):n(d.value).then(a,c)}l((i=i.apply(t,e||[])).next())})}function fy(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function $r(t){return this instanceof $r?(this.v=t,this):new $r(t)}function gy(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(f){i[f]&&(n[f]=function(p){return new Promise(function(_,S){o.push([f,p,_,S])>1||a(f,p)})})}function a(f,p){try{c(i[f](p))}catch(_){u(o[0][3],_)}}function c(f){f.value instanceof $r?Promise.resolve(f.value.v).then(l,d):u(o[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function u(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function vy(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof fy=="function"?fy(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),n(a,c,s.done,s.value)})}}function n(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Ho=t=>t&&typeof t.length=="number"&&typeof t!="function";function xl(t){return ce(t?.then)}function Dl(t){return ce(t[jo])}function Cl(t){return Symbol.asyncIterator&&ce(t?.[Symbol.asyncIterator])}function El(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function fT(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Il=fT();function Sl(t){return ce(t?.[Il])}function Ml(t){return gy(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:i,done:n}=yield $r(r.read());if(n)return yield $r(void 0);yield yield $r(i)}}finally{r.releaseLock()}})}function kl(t){return ce(t?.getReader)}function Ee(t){if(t instanceof oe)return t;if(t!=null){if(Dl(t))return pT(t);if(Ho(t))return mT(t);if(xl(t))return gT(t);if(Cl(t))return by(t);if(Sl(t))return vT(t);if(kl(t))return bT(t)}throw El(t)}function pT(t){return new oe(e=>{let r=t[jo]();if(ce(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mT(t){return new oe(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,dl)})}function vT(t){return new oe(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function by(t){return new oe(e=>{_T(t,e).catch(r=>e.error(r))})}function bT(t){return by(Ml(t))}function _T(t,e){var r,i,n,o;return my(this,void 0,void 0,function*(){try{for(r=vy(t);i=yield r.next(),!i.done;){let s=i.value;if(e.next(s),e.closed)return}}catch(s){n={error:s}}finally{try{i&&!i.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}e.complete()})}function Bt(t,e,r,i=0,n=!1){let o=e.schedule(function(){r(),n?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!n)return o}function Gr(t,e=0){return J((r,i)=>{r.subscribe(X(i,n=>Bt(i,t,()=>i.next(n),e),()=>Bt(i,t,()=>i.complete(),e),n=>Bt(i,t,()=>i.error(n),e)))})}function Tl(t,e=0){return J((r,i)=>{i.add(t.schedule(()=>r.subscribe(i),e))})}function _y(t,e){return Ee(t).pipe(Tl(e),Gr(e))}function yy(t,e){return Ee(t).pipe(Tl(e),Gr(e))}function wy(t,e){return new oe(r=>{let i=0;return e.schedule(function(){i===t.length?r.complete():(r.next(t[i++]),r.closed||this.schedule())})})}function xy(t,e){return new oe(r=>{let i;return Bt(r,e,()=>{i=t[Il](),Bt(r,e,()=>{let n,o;try{({value:n,done:o}=i.next())}catch(s){r.error(s);return}o?r.complete():r.next(n)},0,!0)}),()=>ce(i?.return)&&i.return()})}function Rl(t,e){if(!t)throw new Error("Iterable cannot be null");return new oe(r=>{Bt(r,e,()=>{let i=t[Symbol.asyncIterator]();Bt(r,e,()=>{i.next().then(n=>{n.done?r.complete():r.next(n.value)})},0,!0)})})}function Dy(t,e){return Rl(Ml(t),e)}function Cy(t,e){if(t!=null){if(Dl(t))return _y(t,e);if(Ho(t))return wy(t,e);if(xl(t))return yy(t,e);if(Cl(t))return Rl(t,e);if(Sl(t))return xy(t,e);if(kl(t))return Dy(t,e)}throw El(t)}function He(t,e){return e?Cy(t,e):Ee(t)}function V(...t){let e=an(t);return He(t,e)}function cn(t,e){let r=ce(t)?t:()=>t,i=n=>n.error(r());return new oe(e?n=>e.schedule(i,0,n):i)}var ar=class t{constructor(e,r,i){this.kind=e,this.value=r,this.error=i,this.hasValue=e==="N"}observe(e){return tp(this,e)}do(e,r,i){let{kind:n,value:o,error:s}=this;return n==="N"?e?.(o):n==="E"?r?.(s):i?.()}accept(e,r,i){var n;return ce((n=e)===null||n===void 0?void 0:n.next)?this.observe(e):this.do(e,r,i)}toObservable(){let{kind:e,value:r,error:i}=this,n=e==="N"?V(r):e==="E"?cn(()=>i):e==="C"?ct:0;if(!n)throw new TypeError(`Unexpected notification kind ${e}`);return n}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};ar.completeNotification=new ar("C");function tp(t,e){var r,i,n;let{kind:o,value:s,error:a}=t;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(r=e.next)===null||r===void 0||r.call(e,s):o==="E"?(i=e.error)===null||i===void 0||i.call(e,a):(n=e.complete)===null||n===void 0||n.call(e)}function Wr(t){return!!t&&(t instanceof oe||ce(t.lift)&&ce(t.subscribe))}var Hi=or(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function yT(t,e){let r=typeof e=="object";return new Promise((i,n)=>{let o=new zi({next:s=>{i(s),o.unsubscribe()},error:n,complete:()=>{r?i(e.defaultValue):n(new Hi)}});t.subscribe(o)})}function Al(t){return t instanceof Date&&!isNaN(t)}var wT=or(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function xT(t,e){let{first:r,each:i,with:n=DT,scheduler:o=e??Ui,meta:s=null}=Al(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&i==null)throw new TypeError("No timeout provided.");return J((a,c)=>{let l,d,u=null,f=0,p=_=>{d=Bt(c,o,()=>{try{l.unsubscribe(),Ee(n({meta:s,lastValue:u,seen:f})).subscribe(c)}catch(S){c.error(S)}},_)};l=a.subscribe(X(c,_=>{d?.unsubscribe(),f++,c.next(u=_),i>0&&p(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),u=null})),!f&&p(r!=null?typeof r=="number"?r:+r-o.now():i)})}function DT(t){throw new wT(t)}function P(t,e){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>{i.next(t.call(e,o,n++))}))})}var{isArray:CT}=Array;function ET(t,e){return CT(e)?t(...e):t(e)}function $o(t){return P(e=>ET(t,e))}var{isArray:IT}=Array,{getPrototypeOf:ST,prototype:MT,keys:kT}=Object;function Ol(t){if(t.length===1){let e=t[0];if(IT(e))return{args:e,keys:null};if(TT(e)){let r=kT(e);return{args:r.map(i=>e[i]),keys:r}}}return{args:t,keys:null}}function TT(t){return t&&typeof t=="object"&&ST(t)===MT}function Nl(t,e){return t.reduce((r,i,n)=>(r[i]=e[n],r),{})}function $i(...t){let e=an(t),r=Uo(t),{args:i,keys:n}=Ol(t);if(i.length===0)return He([],e);let o=new oe(RT(i,e,n?s=>Nl(n,s):Nt));return r?o.pipe($o(r)):o}function RT(t,e,r=Nt){return i=>{Ey(e,()=>{let{length:n}=t,o=new Array(n),s=n,a=n;for(let c=0;c{let l=He(t[c],e),d=!1;l.subscribe(X(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(r(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function Ey(t,e,r){t?Bt(r,t,e):e()}function Iy(t,e,r,i,n,o,s,a){let c=[],l=0,d=0,u=!1,f=()=>{u&&!c.length&&!l&&e.complete()},p=S=>l{o&&e.next(S),l++;let E=!1;Ee(r(S,d++)).subscribe(X(e,R=>{n?.(R),o?p(R):e.next(R)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&l_(R)):_(R)}f()}catch(R){e.error(R)}}))};return t.subscribe(X(e,p,()=>{u=!0,f()})),()=>{a?.()}}function Fe(t,e,r=1/0){return ce(e)?Fe((i,n)=>P((o,s)=>e(i,o,n,s))(Ee(t(i,n))),r):(typeof e=="number"&&(r=e),J((i,n)=>Iy(i,n,t,r)))}function ln(t=1/0){return Fe(Nt,t)}function Sy(){return ln(1)}function dn(...t){return Sy()(He(t,an(t)))}function qr(t){return new oe(e=>{Ee(t()).subscribe(e)})}function ua(...t){let e=Uo(t),{args:r,keys:i}=Ol(t),n=new oe(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=f},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?Nl(i,a):a),o.complete())}))}});return e?n.pipe($o(e)):n}var AT=["addListener","removeListener"],OT=["addEventListener","removeEventListener"],NT=["on","off"];function Go(t,e,r,i){if(ce(r)&&(i=r,r=void 0),i)return Go(t,e,r).pipe($o(i));let[n,o]=LT(t)?OT.map(s=>a=>t[s](e,a,r)):FT(t)?AT.map(My(t,e)):PT(t)?NT.map(My(t,e)):[];if(!n&&Ho(t))return Fe(s=>Go(s,e,r))(Ee(t));if(!n)throw new TypeError("Invalid event target");return new oe(s=>{let a=(...c)=>s.next(1o(a)})}function My(t,e){return r=>i=>t[r](e,i)}function FT(t){return ce(t.addListener)&&ce(t.removeListener)}function PT(t){return ce(t.on)&&ce(t.off)}function LT(t){return ce(t.addEventListener)&&ce(t.removeEventListener)}function Yr(t=0,e,r=uy){let i=-1;return e!=null&&(wl(e)?r=e:i=e),new oe(n=>{let o=Al(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=i?this.schedule(void 0,i):n.complete())},o)})}function ip(t=0,e=Ui){return t<0&&(t=0),Yr(t,t,e)}function Ze(...t){let e=an(t),r=hy(t,1/0),i=t;return i.length?i.length===1?Ee(i[0]):ln(r)(He(i,e)):ct}function ge(t,e){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>t.call(e,o,n++)&&i.next(o)))})}function ky(t){return J((e,r)=>{let i=!1,n=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let l=n;n=null,r.next(l)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(X(r,l=>{i=!0,n=l,o||Ee(t(l)).subscribe(o=X(r,a,c))},()=>{s=!0,(!i||!o||o.closed)&&r.complete()}))})}function Fl(t,e=Ui){return ky(()=>Yr(t,e))}function ut(t){return J((e,r)=>{let i=null,n=!1,o;i=e.subscribe(X(r,void 0,void 0,s=>{o=Ee(t(s,ut(t)(e))),i?(i.unsubscribe(),i=null,o.subscribe(r)):n=!0})),n&&(i.unsubscribe(),i=null,o.subscribe(r))})}function Ty(t,e,r,i,n){return(o,s)=>{let a=r,c=e,l=0;o.subscribe(X(s,d=>{let u=l++;c=a?t(c,d,u):(a=!0,d),i&&s.next(c)},n&&(()=>{a&&s.next(c),s.complete()})))}}function un(t,e){return ce(e)?Fe(t,e,1):Fe(t,1)}function Wo(t,e=Ui){return J((r,i)=>{let n=null,o=null,s=null,a=()=>{if(n){n.unsubscribe(),n=null;let l=o;o=null,i.next(l)}};function c(){let l=s+t,d=e.now();if(d{o=l,s=e.now(),n||(n=e.schedule(c,t),i.add(n))},()=>{a(),i.complete()},void 0,()=>{o=n=null}))})}function cr(t){return J((e,r)=>{let i=!1;e.subscribe(X(r,n=>{i=!0,r.next(n)},()=>{i||r.next(t),r.complete()}))})}function We(t){return t<=0?()=>ct:J((e,r)=>{let i=0;e.subscribe(X(r,n=>{++i<=t&&(r.next(n),t<=i&&r.complete())}))})}function ha(){return J((t,e)=>{t.subscribe(X(e,jn))})}function fa(t){return P(()=>t)}function np(t,e){return e?r=>dn(e.pipe(We(1),ha()),r.pipe(np(t))):Fe((r,i)=>Ee(t(r,i)).pipe(We(1),fa(r)))}function pa(t,e=Ui){let r=Yr(t,e);return np(()=>r)}function rp(){return J((t,e)=>{t.subscribe(X(e,r=>tp(r,e)))})}function Gi(t,e=Nt){return t=t??jT,J((r,i)=>{let n,o=!0;r.subscribe(X(i,s=>{let a=e(s);(o||!t(n,a))&&(o=!1,n=a,i.next(s))}))})}function jT(t,e){return t===e}function Pl(t=VT){return J((e,r)=>{let i=!1;e.subscribe(X(r,n=>{i=!0,r.next(n)},()=>i?r.complete():r.error(t())))})}function VT(){return new Hi}function Ll(t,e){return e?r=>r.pipe(Ll((i,n)=>Ee(t(i,n)).pipe(P((o,s)=>e(i,o,n,s))))):J((r,i)=>{let n=0,o=null,s=!1;r.subscribe(X(i,a=>{o||(o=X(i,void 0,()=>{o=null,s&&i.complete()}),Ee(t(a,n++)).subscribe(o))},()=>{s=!0,!o&&i.complete()}))})}function Ei(t){return J((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function hn(t,e){let r=arguments.length>=2;return i=>i.pipe(t?ge((n,o)=>t(n,o,i)):Nt,We(1),r?cr(e):Pl(()=>new Hi))}function jl(t,e,r,i){return J((n,o)=>{let s;!e||typeof e=="function"?s=e:{duration:r,element:s,connector:i}=e;let a=new Map,c=_=>{a.forEach(_),_(o)},l=_=>c(S=>S.error(_)),d=0,u=!1,f=new sa(o,_=>{try{let S=t(_),E=a.get(S);if(!E){a.set(S,E=i?i():new C);let R=p(S,E);if(o.next(R),r){let he=X(E,()=>{E.complete(),he?.unsubscribe()},void 0,void 0,()=>a.delete(S));f.add(Ee(r(R)).subscribe(he))}}E.next(s?s(_):_)}catch(S){l(S)}},()=>c(_=>_.complete()),l,()=>a.clear(),()=>(u=!0,d===0));n.subscribe(f);function p(_,S){let E=new oe(R=>{d++;let he=S.subscribe(R);return()=>{he.unsubscribe(),--d===0&&u&&f.unsubscribe()}});return E.key=_,E}})}function qo(t){return t<=0?()=>ct:J((e,r)=>{let i=[];e.subscribe(X(r,n=>{i.push(n),t{for(let n of i)r.next(n);r.complete()},void 0,()=>{i=null}))})}function op(t,e){let r=arguments.length>=2;return i=>i.pipe(t?ge((n,o)=>t(n,o,i)):Nt,qo(1),r?cr(e):Pl(()=>new Hi))}function sp(){return J((t,e)=>{t.subscribe(X(e,r=>{e.next(ar.createNext(r))},()=>{e.next(ar.createComplete()),e.complete()},r=>{e.next(ar.createError(r)),e.complete()}))})}function ap(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return P(r=>{let i=r;for(let n=0;n=2,!0))}function ga(t={}){let{connector:e=()=>new C,resetOnError:r=!0,resetOnComplete:i=!0,resetOnRefCountZero:n=!0}=t;return o=>{let s,a,c,l=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,d=u=!1},_=()=>{let S=s;p(),S?.unsubscribe()};return J((S,E)=>{l++,!u&&!d&&f();let R=c=c??e();E.add(()=>{l--,l===0&&!u&&!d&&(a=cp(_,n))}),R.subscribe(E),!s&&l>0&&(s=new zi({next:he=>R.next(he),error:he=>{u=!0,f(),a=cp(p,r,he),R.error(he)},complete:()=>{d=!0,f(),a=cp(p,i),R.complete()}}),Ee(S).subscribe(s))})(o)}}function cp(t,e,...r){if(e===!0){t();return}if(e===!1)return;let i=new zi({next:()=>{i.unsubscribe(),t()}});return Ee(e(...r)).subscribe(i)}function Vl(t,e,r){let i,n=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:e=1/0,refCount:n=!1,scheduler:r}=t:i=t??1/0,ga({connector:()=>new Hr(i,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:n})}function lr(t){return ge((e,r)=>t<=r)}function Qe(...t){let e=an(t);return J((r,i)=>{(e?dn(t,r,e):dn(t,r)).subscribe(i)})}function Oe(t,e){return J((r,i)=>{let n=null,o=0,s=!1,a=()=>s&&!n&&i.complete();r.subscribe(X(i,c=>{n?.unsubscribe();let l=0,d=o++;Ee(t(c,d)).subscribe(n=X(i,u=>i.next(e?e(c,u,d,l++):u),()=>{n=null,a()}))},()=>{s=!0,a()}))})}function te(t){return J((e,r)=>{Ee(t).subscribe(X(r,()=>r.complete(),jn)),!r.closed&&e.subscribe(r)})}function lp(t,e=!1){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>{let s=t(o,n++);(s||e)&&i.next(o),!s&&i.complete()}))})}function je(t,e,r){let i=ce(t)||e||r?{next:t,error:e,complete:r}:t;return i?J((n,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;n.subscribe(X(o,c=>{var l;(l=i.next)===null||l===void 0||l.call(i,c),o.next(c)},()=>{var c;a=!1,(c=i.complete)===null||c===void 0||c.call(i),o.complete()},c=>{var l;a=!1,(l=i.error)===null||l===void 0||l.call(i,c),o.error(c)},()=>{var c,l;a&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(l=i.finalize)===null||l===void 0||l.call(i)}))}):Nt}function va(...t){let e=Uo(t);return J((r,i)=>{let n=t.length,o=new Array(n),s=t.map(()=>!1),a=!1;for(let c=0;c{o[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(Nt))&&(s=null))},jn));r.subscribe(X(i,c=>{if(a){let l=[c,...o];i.next(e?e(...l):l)}}))})}var C0="https://g.co/ng/security#xss",G=class extends Error{constructor(e,r){super(kd(e,r)),this.code=e}};function kd(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Ma(t){return{toString:t}.toString()}var Bl="__parameters__";function BT(t){return function(...r){if(t){let i=t(...r);for(let n in i)this[n]=i[n]}}}function Fm(t,e,r){return Ma(()=>{let i=BT(e);function n(...o){if(this instanceof n)return i.apply(this,o),this;let s=new n(...o);return a.annotation=s,a;function a(c,l,d){let u=c.hasOwnProperty(Bl)?c[Bl]:Object.defineProperty(c,Bl,{value:[]})[Bl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return r&&(n.prototype=Object.create(r.prototype)),n.prototype.ngMetadataName=t,n.annotationCls=n,n})}var ht=globalThis;function Ke(t){for(let e in t)if(t[e]===Ke)return e;throw Error("Could not find renamed property on target object.")}function zT(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Kt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Kt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function Ep(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var UT=Ke({__forward_ref__:Ke});function lt(t){return t.__forward_ref__=lt,t.toString=function(){return Kt(this())},t}function Zt(t){return E0(t)?t():t}function E0(t){return typeof t=="function"&&t.hasOwnProperty(UT)&&t.__forward_ref__===lt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function Td(t){return Ry(t,S0)||Ry(t,M0)}function I0(t){return Td(t)!==null}function Ry(t,e){return t.hasOwnProperty(e)?t[e]:null}function HT(t){let e=t&&(t[S0]||t[M0]);return e||null}function Ay(t){return t&&(t.hasOwnProperty(Oy)||t.hasOwnProperty($T))?t[Oy]:null}var S0=Ke({\u0275prov:Ke}),Oy=Ke({\u0275inj:Ke}),M0=Ke({ngInjectableDef:Ke}),$T=Ke({ngInjectorDef:Ke}),g=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function k0(t){return t&&!!t.\u0275providers}var GT=Ke({\u0275cmp:Ke}),WT=Ke({\u0275dir:Ke}),Pm=Ke({\u0275pipe:Ke}),qT=Ke({\u0275mod:Ke}),ed=Ke({\u0275fac:Ke}),ba=Ke({__NG_ELEMENT_ID__:Ke}),Ny=Ke({__NG_ENV_ID__:Ke});function Rd(t){return typeof t=="string"?t:t==null?"":String(t)}function YT(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Rd(t)}function ZT(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new G(-200,t)}function Lm(t,e){throw new G(-201,!1)}var Ie=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ie||{}),Ip;function T0(){return Ip}function si(t){let e=Ip;return Ip=t,e}function R0(t,e,r){let i=Td(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(r&Ie.Optional)return null;if(e!==void 0)return e;Lm(t,"Injector")}var QT={},ya=QT,Sp="__NG_DI_FLAG__",td="ngTempTokenPath",KT="ngTokenPath",XT=/\n/gm,JT="\u0275",Fy="__source",Ko;function eR(){return Ko}function dr(t){let e=Ko;return Ko=t,e}function tR(t,e=Ie.Default){if(Ko===void 0)throw new G(-203,!1);return Ko===null?R0(t,void 0,e):Ko.get(t,e&Ie.Optional?null:void 0,e)}function m(t,e=Ie.Default){return(T0()||tR)(Zt(t),e)}function v(t,e=Ie.Default){return m(t,Ad(e))}function Ad(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Mp(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Kt(a)))}n=`{${o.join(", ")}}`}return`${r}${i?"("+i+")":""}[${n}]: ${t.replace(XT,` - `)}`}var Vm=jm(Fm("Inject",t=>({token:t})),-1),_n=jm(Fm("Optional"),8);var Gn=jm(Fm("SkipSelf"),4);function Xr(t,e){let r=t.hasOwnProperty(ed);return r?t[ed]:null}function oR(t,e,r){if(t.length!==e.length)return!1;for(let i=0;iArray.isArray(r)?Bm(r,e):e(r))}function A0(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function id(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function aR(t,e){let r=[];for(let i=0;ie;){let o=n-2;t[n]=t[o],n--}t[e]=r,t[e+1]=i}}function ka(t,e,r){let i=Ta(t,e);return i>=0?t[i|1]=r:(i=~i,cR(t,i,e,r)),i}function dp(t,e){let r=Ta(t,e);if(r>=0)return t[r|1]}function Ta(t,e){return lR(t,e,1)}function lR(t,e,r){let i=0,n=t.length>>r;for(;n!==i;){let o=i+(n-i>>1),s=t[o<e?n=o:i=o+1}return~(n<e){s=o-1;break}}}for(;o-1){let o;for(;++no?u="":u=n[d+1].toLowerCase(),i&2&&l!==u){if(Wi(i))return!1;s=!0}}}}return Wi(i)||s}function Wi(t){return(t&1)===0}function mR(t,e,r,i){if(e===null)return-1;let n=0;if(i||!r){let o=!1;for(;n-1)for(r++;r0?'="'+a+'"':"")+"]"}else i&8?n+="."+s:i&4&&(n+=" "+s);else n!==""&&!Wi(s)&&(e+=Ly(o,n),n=""),i=s,o=o||!Wi(i);r++}return n!==""&&(e+=Ly(o,n)),e}function wR(t){return t.map(yR).join(",")}function xR(t){let e=[],r=[],i=1,n=2;for(;i{let e=H0(t),r=Q(w({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===F0.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||mn.Emulated,styles:t.styles||Qt,_:null,schemas:t.schemas||null,tView:null,id:""});$0(r);let i=t.dependencies;return r.directiveDefs=Vy(i,!1),r.pipeDefs=Vy(i,!0),r.id=ER(r),r})}function DR(t){return zn(t)||V0(t)}function CR(t){return t!==null}function O(t){return Ma(()=>({type:t.type,bootstrap:t.bootstrap||Qt,declarations:t.declarations||Qt,imports:t.imports||Qt,exports:t.exports||Qt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function jy(t,e){if(t==null)return Jo;let r={};for(let i in t)if(t.hasOwnProperty(i)){let n=t[i],o,s,a=es.None;Array.isArray(n)?(a=n[0],o=n[1],s=n[2]??o):(o=n,s=n),e?(r[o]=a!==es.None?[i,a]:i,e[o]=s):r[o]=i}return r}function I(t){return Ma(()=>{let e=H0(t);return $0(e),e})}function Od(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function zn(t){return t[GT]||null}function V0(t){return t[WT]||null}function B0(t){return t[Pm]||null}function z0(t){let e=zn(t)||V0(t)||B0(t);return e!==null?e.standalone:!1}function U0(t,e){let r=t[qT]||null;if(!r&&e===!0)throw new Error(`Type ${Kt(t)} does not have '\u0275mod' property.`);return r}function H0(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Jo,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Qt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:jy(t.inputs,e),outputs:jy(t.outputs),debugInfo:null}}function $0(t){t.features?.forEach(e=>e(t))}function Vy(t,e){if(!t)return null;let r=e?B0:DR;return()=>(typeof t=="function"?t():t).map(i=>r(i)).filter(CR)}function ER(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let n of r)e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function us(t){return{\u0275providers:t}}function IR(...t){return{\u0275providers:G0(!0,t),\u0275fromNgModule:!0}}function G0(t,...e){let r=[],i=new Set,n,o=s=>{r.push(s)};return Bm(e,s=>{let a=s;Tp(a,o,[],i)&&(n||=[],n.push(a))}),n!==void 0&&W0(n,o),r}function W0(t,e){for(let r=0;r{e(o,i)})}}function Tp(t,e,r,i){if(t=Zt(t),!t)return!1;let n=null,o=Ay(t),s=!o&&zn(t);if(!o&&!s){let c=t.ngModule;if(o=Ay(c),o)n=c;else return!1}else{if(s&&!s.standalone)return!1;n=t}let a=i.has(n);if(s){if(a)return!1;if(i.add(n),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Tp(l,e,r,i)}}else if(o){if(o.imports!=null&&!a){i.add(n);let l;try{Bm(o.imports,d=>{Tp(d,e,r,i)&&(l||=[],l.push(d))})}finally{}l!==void 0&&W0(l,e)}if(!a){let l=Xr(n)||(()=>new n);e({provide:n,useFactory:l,deps:Qt},n),e({provide:N0,useValue:n,multi:!0},n),e({provide:hr,useValue:()=>m(n),multi:!0},n)}let c=o.providers;if(c!=null&&!a){let l=t;Um(c,d=>{e(d,l)})}}else return!1;return n!==t&&t.providers!==void 0}function Um(t,e){for(let r of t)k0(r)&&(r=r.\u0275providers),Array.isArray(r)?Um(r,e):e(r)}var SR=Ke({provide:String,useValue:Ke});function q0(t){return t!==null&&typeof t=="object"&&SR in t}function MR(t){return!!(t&&t.useExisting)}function kR(t){return!!(t&&t.useFactory)}function ts(t){return typeof t=="function"}function TR(t){return!!t.useClass}var Nd=new g(""),ql={},RR={},up;function Fd(){return up===void 0&&(up=new nd),up}var _t=class{},xa=class extends _t{get destroyed(){return this._destroyed}constructor(e,r,i,n){super(),this.parent=r,this.source=i,this.scopes=n,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ap(e,s=>this.processProvider(s)),this.records.set(O0,Yo(void 0,this)),n.has("environment")&&this.records.set(_t,Yo(void 0,this));let o=this.records.get(Nd);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(N0,Qt,Ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Te(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of r)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Te(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=dr(this),i=si(void 0),n;try{return e()}finally{dr(r),si(i)}}get(e,r=ya,i=Ie.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Ny))return e[Ny](this);i=Ad(i);let n,o=dr(this),s=si(void 0);try{if(!(i&Ie.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=PR(e)&&Td(e);l&&this.injectableDefInScope(l)?c=Yo(Rp(e),ql):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=i&Ie.Self?Fd():this.parent;return r=i&Ie.Optional&&r===ya?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[td]=a[td]||[]).unshift(Kt(e)),o)throw a;return nR(a,e,"R3InjectorError",this.source)}else throw a}finally{si(s),dr(o)}}resolveInjectorInitializers(){let e=Te(null),r=dr(this),i=si(void 0),n;try{let o=this.get(hr,Qt,Ie.Self);for(let s of o)s()}finally{dr(r),si(i),Te(e)}}toString(){let e=[],r=this.records;for(let i of r.keys())e.push(Kt(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new G(205,!1)}processProvider(e){e=Zt(e);let r=ts(e)?e:Zt(e&&e.provide),i=OR(e);if(!ts(e)&&e.multi===!0){let n=this.records.get(r);n||(n=Yo(void 0,ql,!0),n.factory=()=>Mp(n.multi),this.records.set(r,n)),r=e,n.multi.push(e)}this.records.set(r,i)}hydrate(e,r){let i=Te(null);try{return r.value===ql&&(r.value=RR,r.value=r.factory()),typeof r.value=="object"&&r.value&&FR(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{Te(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Zt(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Rp(t){let e=Td(t),r=e!==null?e.factory:Xr(t);if(r!==null)return r;if(t instanceof g)throw new G(204,!1);if(t instanceof Function)return AR(t);throw new G(204,!1)}function AR(t){if(t.length>0)throw new G(204,!1);let r=HT(t);return r!==null?()=>r.factory(t):()=>new t}function OR(t){if(q0(t))return Yo(void 0,t.useValue);{let e=Y0(t);return Yo(e,ql)}}function Y0(t,e,r){let i;if(ts(t)){let n=Zt(t);return Xr(n)||Rp(n)}else if(q0(t))i=()=>Zt(t.useValue);else if(kR(t))i=()=>t.useFactory(...Mp(t.deps||[]));else if(MR(t))i=()=>m(Zt(t.useExisting));else{let n=Zt(t&&(t.useClass||t.provide));if(NR(t))i=()=>new n(...Mp(t.deps));else return Xr(n)||Rp(n)}return i}function Yo(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function NR(t){return!!t.deps}function FR(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function PR(t){return typeof t=="function"||typeof t=="object"&&t instanceof g}function Ap(t,e){for(let r of t)Array.isArray(r)?Ap(r,e):r&&k0(r)?Ap(r.\u0275providers,e):e(r)}function ai(t,e){t instanceof xa&&t.assertNotDestroyed();let r,i=dr(t),n=si(void 0);try{return e()}finally{dr(i),si(n)}}function Z0(){return T0()!==void 0||eR()!=null}function Ra(t){if(!Z0())throw new G(-203,!1)}function LR(t){let e=ht.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function jR(t){return typeof t=="function"}var yn=0,fe=1,ve=2,Ut=3,qi=4,ci=5,is=6,rd=7,St=8,ns=9,gn=10,nt=11,Da=12,By=13,hs=14,di=15,Jr=16,Zo=17,Un=18,Aa=19,Q0=20,ur=21,Yl=22,Si=23,ft=25,Hm=1;var eo=7,od=8,rs=9,zt=10,sd=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(sd||{});function Bn(t){return Array.isArray(t)&&typeof t[Hm]=="object"}function Wn(t){return Array.isArray(t)&&t[Hm]===!0}function $m(t){return(t.flags&4)!==0}function Pd(t){return t.componentOffset>-1}function Ld(t){return(t.flags&1)===1}function Hn(t){return!!t.template}function Op(t){return(t[ve]&512)!==0}var Np=class{constructor(e,r,i){this.previousValue=e,this.currentValue=r,this.firstChange=i}isFirstChange(){return this.firstChange}};function K0(t,e,r,i){e!==null?e.applyValueToInputSignal(e,i):t[r]=i}function Me(){return X0}function X0(t){return t.type.prototype.ngOnChanges&&(t.setInput=BR),VR}Me.ngInherit=!0;function VR(){let t=ew(this),e=t?.current;if(e){let r=t.previous;if(r===Jo)t.previous=e;else for(let i in e)r[i]=e[i];t.current=null,this.ngOnChanges(e)}}function BR(t,e,r,i,n){let o=this.declaredInputs[i],s=ew(t)||zR(t,{previous:Jo,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Np(l&&l.currentValue,r,c===Jo),K0(t,e,n,r)}var J0="__ngSimpleChanges__";function ew(t){return t[J0]||null}function zR(t,e){return t[J0]=e}var zy=null;var fn=function(t,e,r){zy?.(t,e,r)},tw="svg",UR="math";function ui(t){for(;Array.isArray(t);)t=t[yn];return t}function HR(t){for(;Array.isArray(t);){if(typeof t[Hm]=="object")return t;t=t[yn]}return null}function iw(t,e){return ui(e[t])}function Mi(t,e){return ui(e[t.index])}function Gm(t,e){return t.data[e]}function Wm(t,e){return t[e]}function vn(t,e){let r=e[t];return Bn(r)?r:r[yn]}function $R(t){return(t[ve]&4)===4}function qm(t){return(t[ve]&128)===128}function GR(t){return Wn(t[Ut])}function fr(t,e){return e==null?null:t[e]}function nw(t){t[Zo]=0}function rw(t){t[ve]&1024||(t[ve]|=1024,qm(t)&&jd(t))}function WR(t,e){for(;t>0;)e=e[hs],t--;return e}function Ca(t){return!!(t[ve]&9216||t[Si]?.dirty)}function Fp(t){t[gn].changeDetectionScheduler?.notify(7),t[ve]&64&&(t[ve]|=1024),Ca(t)&&jd(t)}function jd(t){t[gn].changeDetectionScheduler?.notify(0);let e=to(t);for(;e!==null&&!(e[ve]&8192||(e[ve]|=8192,!qm(e)));)e=to(e)}function ow(t,e){if((t[ve]&256)===256)throw new G(911,!1);t[ur]===null&&(t[ur]=[]),t[ur].push(e)}function qR(t,e){if(t[ur]===null)return;let r=t[ur].indexOf(e);r!==-1&&t[ur].splice(r,1)}function to(t){let e=t[Ut];return Wn(e)?e[Ut]:e}var xe={lFrame:mw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sw=!1;function YR(){return xe.lFrame.elementDepthCount}function ZR(){xe.lFrame.elementDepthCount++}function QR(){xe.lFrame.elementDepthCount--}function aw(){return xe.bindingsEnabled}function cw(){return xe.skipHydrationRootTNode!==null}function KR(t){return xe.skipHydrationRootTNode===t}function XR(){xe.skipHydrationRootTNode=null}function me(){return xe.lFrame.lView}function et(){return xe.lFrame.tView}function be(t){return xe.lFrame.contextLView=t,t[St]}function _e(t){return xe.lFrame.contextLView=null,t}function Mt(){let t=lw();for(;t!==null&&t.type===64;)t=t.parent;return t}function lw(){return xe.lFrame.currentTNode}function JR(){let t=xe.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function co(t,e){let r=xe.lFrame;r.currentTNode=t,r.isParent=e}function Ym(){return xe.lFrame.isParent}function Zm(){xe.lFrame.isParent=!1}function eA(){return xe.lFrame.contextLView}function dw(){return sw}function Uy(t){sw=t}function Oa(){let t=xe.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function tA(t){return xe.lFrame.bindingIndex=t}function mr(){return xe.lFrame.bindingIndex++}function uw(t){let e=xe.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function iA(){return xe.lFrame.inI18n}function nA(t,e){let r=xe.lFrame;r.bindingIndex=r.bindingRootIndex=t,Pp(e)}function rA(){return xe.lFrame.currentDirectiveIndex}function Pp(t){xe.lFrame.currentDirectiveIndex=t}function Qm(t){let e=xe.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hw(){return xe.lFrame.currentQueryIndex}function Km(t){xe.lFrame.currentQueryIndex=t}function oA(t){let e=t[fe];return e.type===2?e.declTNode:e.type===1?t[ci]:null}function fw(t,e,r){if(r&Ie.SkipSelf){let n=e,o=t;for(;n=n.parent,n===null&&!(r&Ie.Host);)if(n=oA(o),n===null||(o=o[hs],n.type&10))break;if(n===null)return!1;e=n,t=o}let i=xe.lFrame=pw();return i.currentTNode=e,i.lView=t,!0}function Xm(t){let e=pw(),r=t[fe];xe.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function pw(){let t=xe.lFrame,e=t===null?null:t.child;return e===null?mw(t):e}function mw(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function gw(){let t=xe.lFrame;return xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var vw=gw;function Jm(){let t=gw();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function sA(t){return(xe.lFrame.contextLView=WR(t,xe.lFrame.contextLView))[St]}function gr(){return xe.lFrame.selectedIndex}function io(t){xe.lFrame.selectedIndex=t}function fs(){let t=xe.lFrame;return Gm(t.tView,t.selectedIndex)}function li(){xe.lFrame.currentNamespace=tw}function Vd(){aA()}function aA(){xe.lFrame.currentNamespace=null}function cA(){return xe.lFrame.currentNamespace}var bw=!0;function Bd(){return bw}function zd(t){bw=t}function lA(t,e,r){let{ngOnChanges:i,ngOnInit:n,ngDoCheck:o}=e.type.prototype;if(i){let s=X0(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}n&&(r.preOrderHooks??=[]).push(0-t,n),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Ud(t,e){for(let r=e.directiveStart,i=e.directiveEnd;r=i)break}else e[c]<0&&(t[Zo]+=65536),(a>14>16&&(t[ve]&3)===e&&(t[ve]+=16384,Hy(a,o)):Hy(a,o)}var Xo=-1,no=class{constructor(e,r,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=i}};function uA(t){return t instanceof no}function hA(t){return(t.flags&8)!==0}function fA(t){return(t.flags&16)!==0}var fp={},Lp=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,i){i=Ad(i);let n=this.injector.get(e,fp,i);return n!==fp||r===fp?n:this.parentInjector.get(e,r,i)}};function yw(t){return t!==Xo}function ad(t){return t&32767}function pA(t){return t>>16}function cd(t,e){let r=pA(t),i=e;for(;r>0;)i=i[hs],r--;return i}var jp=!0;function ld(t){let e=jp;return jp=t,e}var mA=256,ww=mA-1,xw=5,gA=0,pn={};function vA(t,e,r){let i;typeof r=="string"?i=r.charCodeAt(0)||0:r.hasOwnProperty(ba)&&(i=r[ba]),i==null&&(i=r[ba]=gA++);let n=i&ww,o=1<>xw)]|=o}function dd(t,e){let r=Dw(t,e);if(r!==-1)return r;let i=e[fe];i.firstCreatePass&&(t.injectorIndex=e.length,pp(i.data,t),pp(e,null),pp(i.blueprint,null));let n=eg(t,e),o=t.injectorIndex;if(yw(n)){let s=ad(n),a=cd(n,e),c=a[fe].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=n,o}function pp(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dw(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function eg(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,i=null,n=e;for(;n!==null;){if(i=Mw(n),i===null)return Xo;if(r++,n=n[hs],i.injectorIndex!==-1)return i.injectorIndex|r<<16}return Xo}function Vp(t,e,r){vA(t,e,r)}function bA(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let i=r.length,n=0;for(;n>20,u=i?a:a+d,f=n?a+d:l;for(let p=u;p=c&&_.type===r)return p}if(n){let p=s[c];if(p&&Hn(p)&&p.type===r)return c}return null}function ro(t,e,r,i){let n=t[r],o=e.data;if(uA(n)){let s=n;s.resolving&&ZT(YT(o[r]));let a=ld(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?si(s.injectImpl):null,d=fw(t,i,Ie.Default);try{n=t[r]=s.factory(void 0,o,t,i),e.firstCreatePass&&r>=i.directiveStart&&lA(r,o[r],e)}finally{l!==null&&si(l),ld(a),s.resolving=!1,vw()}}return n}function yA(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ba)?t[ba]:void 0;return typeof e=="number"?e>=0?e&ww:wA:e}function $y(t,e,r){let i=1<>xw)]&i)}function Gy(t,e){return!(t&Ie.Self)&&!(t&Ie.Host&&e)}var Kr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,i){return Iw(this._tNode,this._lView,e,Ad(i),r)}};function wA(){return new Kr(Mt(),me())}function qe(t){return Ma(()=>{let e=t.prototype.constructor,r=e[ed]||Bp(e),i=Object.prototype,n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==i;){let o=n[ed]||Bp(n);if(o&&o!==r)return o;n=Object.getPrototypeOf(n)}return o=>new o})}function Bp(t){return E0(t)?()=>{let e=Bp(Zt(t));return e&&e()}:Xr(t)}function xA(t,e,r,i,n){let o=t,s=e;for(;o!==null&&s!==null&&s[ve]&2048&&!(s[ve]&512);){let a=Sw(o,s,r,i|Ie.Self,pn);if(a!==pn)return a;let c=o.parent;if(!c){let l=s[Q0];if(l){let d=l.get(r,pn,i);if(d!==pn)return d}c=Mw(s),s=s[hs]}o=c}return n}function Mw(t){let e=t[fe],r=e.type;return r===2?e.declTNode:r===1?t[ci]:null}function pt(t){return bA(Mt(),t)}function Wy(t,e=null,r=null,i){let n=kw(t,e,r,i);return n.resolveInjectorInitializers(),n}function kw(t,e=null,r=null,i,n=new Set){let o=[r||Qt,IR(t)];return i=i||(typeof t=="object"?void 0:Kt(t)),new xa(o,e||Fd(),i||null,n)}var Qr=class Qr{static create(e,r){if(Array.isArray(e))return Wy({name:""},r,e,"");{let i=e.name??"";return Wy({name:i},e.parent,e.providers,i)}}};Qr.THROW_IF_NOT_FOUND=ya,Qr.NULL=new nd,Qr.\u0275prov=D({token:Qr,providedIn:"any",factory:()=>m(O0)}),Qr.__NG_ELEMENT_ID__=-1;var Se=Qr;var DA=new g("");DA.__NG_ELEMENT_ID__=t=>{let e=Mt();if(e===null)throw new G(204,!1);if(e.type&2)return e.value;if(t&Ie.Optional)return null;throw new G(204,!1)};var CA="ngOriginalError";function mp(t){return t[CA]}var Ft=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&mp(e);for(;r&&mp(r);)r=mp(r);return r||null}},Tw=new g("",{providedIn:"root",factory:()=>v(Ft).handleError.bind(void 0)}),vr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=EA,e.__NG_ENV_ID__=i=>i;let t=e;return t})(),zp=class extends vr{constructor(e){super(),this._lView=e}onDestroy(e){return ow(this._lView,e),()=>qR(this._lView,e)}};function EA(){return new zp(me())}function IA(){return ps(Mt(),me())}function ps(t,e){return new N(Mi(t,e))}var N=(()=>{let e=class e{constructor(i){this.nativeElement=i}};e.__NG_ELEMENT_ID__=IA;let t=e;return t})();function SA(t){return t instanceof N?t.nativeElement:t}var wn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Up=class extends C{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Z0()&&(this.destroyRef=v(vr,{optional:!0})??void 0,this.pendingTasks=v(wn,{optional:!0})??void 0)}emit(e){let r=Te(null);try{super.next(e)}finally{Te(r)}}subscribe(e,r,i){let n=e,o=r||(()=>null),s=i;if(e&&typeof e=="object"){let c=e;n=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),n&&(n=this.wrapInTimeout(n)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:n,error:o,complete:s});return e instanceof ne&&e.add(a),a}wrapInTimeout(e){return r=>{let i=this.pendingTasks?.add();setTimeout(()=>{e(r),i!==void 0&&this.pendingTasks?.remove(i)})}}},B=Up;function MA(){return this._results[Symbol.iterator]()}var Pt=class t{get changes(){return this._changes??=new B}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=MA)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let i=sR(e);(this._changesDetected=!oR(this._results,i,r))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Rw(t){return(t.flags&128)===128}var tg=new Map,kA=0;function TA(){return kA++}function RA(t){tg.set(t[Aa],t)}function Aw(t){return tg.get(t)||null}function AA(t){tg.delete(t[Aa])}var Hp=class{get lView(){return Aw(this.lViewId)}constructor(e,r,i){this.lViewId=e,this.nodeIndex=r,this.native=i}};function Ow(t){let e=gp(t);if(e){if(Bn(e)){let r=e,i,n,o;if(Nw(t)){if(i=FA(r,t),i==-1)throw new Error("The provided component was not found in the application");n=t}else if(OA(t)){if(i=PA(r,t),i==-1)throw new Error("The provided directive was not found in the application");o=LA(i,r)}else if(i=Yy(r,t),i==-1)return null;let s=ui(r[i]),a=gp(s),c=a&&!Array.isArray(a)?a:qy(r,i,s);if(n&&c.component===void 0&&(c.component=n,Ii(c.component,c)),o&&c.directives===void 0){c.directives=o;for(let l=0;l=0){let a=ui(o[s]),c=qy(o,s,a);Ii(a,c),e=c;break}}}}return e||null}function qy(t,e,r){return new Hp(t[Aa],e,r)}var $p="__ngContext__";function Ii(t,e){Bn(e)?(t[$p]=e[Aa],RA(e)):t[$p]=e}function gp(t){let e=t[$p];return typeof e=="number"?Aw(e):e||null}function Nw(t){return t&&t.constructor&&t.constructor.\u0275cmp}function OA(t){return t&&t.constructor&&t.constructor.\u0275dir}function Yy(t,e){let r=t[fe];for(let i=ft;iVA}),VA="ng",ig=new g(""),ki=new g("",{providedIn:"platform",factory:()=>"unknown"});var rt=new g(""),Na=new g("",{providedIn:"root",factory:()=>jA().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var BA="h",zA="b";var UA=()=>null;function ng(t,e,r=!1){return UA(t,e,r)}var Vw=!1,HA=new g("",{providedIn:"root",factory:()=>Vw});var zl;function $A(){if(zl===void 0&&(zl=null,ht.trustedTypes))try{zl=ht.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zl}function Hd(t){return $A()?.createHTML(t)||t}var Ul;function GA(){if(Ul===void 0&&(Ul=null,ht.trustedTypes))try{Ul=ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ul}function Zy(t){return GA()?.createScriptURL(t)||t}var $n=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${C0})`}},Wp=class extends $n{getTypeName(){return"HTML"}},qp=class extends $n{getTypeName(){return"Style"}},Yp=class extends $n{getTypeName(){return"Script"}},Zp=class extends $n{getTypeName(){return"URL"}},Qp=class extends $n{getTypeName(){return"ResourceURL"}};function Ti(t){return t instanceof $n?t.changingThisBreaksApplicationSecurity:t}function br(t,e){let r=WA(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${C0})`)}return r===e}function WA(t){return t instanceof $n&&t.getTypeName()||null}function Bw(t){return new Wp(t)}function zw(t){return new qp(t)}function Uw(t){return new Yp(t)}function Hw(t){return new Zp(t)}function $w(t){return new Qp(t)}function qA(t){let e=new Xp(t);return YA()?new Kp(e):e}var Kp=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Hd(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},Xp=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Hd(e),r}};function YA(){try{return!!new window.DOMParser().parseFromString(Hd(""),"text/html")}catch{return!1}}var ZA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $d(t){return t=String(t),t.match(ZA)?t:"unsafe:"+t}function qn(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Fa(...t){let e={};for(let r of t)for(let i in r)r.hasOwnProperty(i)&&(e[i]=!0);return e}var Gw=qn("area,br,col,hr,img,wbr"),Ww=qn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qw=qn("rp,rt"),QA=Fa(qw,Ww),KA=Fa(Ww,qn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),XA=Fa(qw,qn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Qy=Fa(Gw,KA,XA,QA),Yw=qn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),JA=qn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),e1=qn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),t1=Fa(Yw,JA,e1),i1=qn("script,style,template"),Jp=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,i=!0,n=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?i=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,i&&r.firstChild){n.push(r),r=o1(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=r1(r);if(o){r=o;break}r=n.pop()}}return this.buf.join("")}startElement(e){let r=Ky(e).toLowerCase();if(!Qy.hasOwnProperty(r))return this.sanitizedSomething=!0,!i1.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let i=e.attributes;for(let n=0;n"),!0}endElement(e){let r=Ky(e).toLowerCase();Qy.hasOwnProperty(r)&&!Gw.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Xy(e))}};function n1(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function r1(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Zw(e);return e}function o1(t){let e=t.firstChild;if(e&&n1(t,e))throw Zw(e);return e}function Ky(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Zw(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var s1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a1=/([^\#-~ |!])/g;function Xy(t){return t.replace(/&/g,"&").replace(s1,function(e){let r=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((r-55296)*1024+(i-56320)+65536)+";"}).replace(a1,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Hl;function Qw(t,e){let r=null;try{Hl=Hl||qA(t);let i=e?String(e):"";r=Hl.getInertBodyElement(i);let n=5,o=i;do{if(n===0)throw new Error("Failed to sanitize html because the input is unstable");n--,i=o,o=r.innerHTML,r=Hl.getInertBodyElement(i)}while(i!==o);let a=new Jp().sanitizeChildren(Jy(r)||r);return Hd(a)}finally{if(r){let i=Jy(r)||r;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Jy(t){return"content"in t&&c1(t)?t.content:null}function c1(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ht=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ht||{});function l1(t){let e=Xw();return e?e.sanitize(Ht.URL,t)||"":br(t,"URL")?Ti(t):$d(Rd(t))}function d1(t){let e=Xw();if(e)return Zy(e.sanitize(Ht.RESOURCE_URL,t)||"");if(br(t,"ResourceURL"))return Zy(Ti(t));throw new G(904,!1)}function u1(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?d1:l1}function Kw(t,e,r){return u1(e,r)(t)}function Xw(){let t=me();return t&&t[gn].sanitizer}var h1=/^>|^->||--!>|)/g,p1="\u200B$1\u200B";function m1(t){return t.replace(h1,e=>e.replace(f1,p1))}function RY(t){return t.ownerDocument.defaultView}function AY(t){return t.ownerDocument}function Jw(t){return t instanceof Function?t():t}function ex(t){return(t??v(Se)).get(ki)==="browser"}var bn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(bn||{}),g1;function rg(t,e){return g1(t,e)}function Qo(t,e,r,i,n){if(i!=null){let o,s=!1;Wn(i)?o=i:Bn(i)&&(s=!0,i=i[yn]);let a=ui(i);t===0&&r!==null?n==null?ox(e,r,a):ud(e,r,a,n||null,!0):t===1&&r!==null?ud(e,r,a,n||null,!0):t===2?R1(e,a,s):t===3&&e.destroyNode(a),o!=null&&O1(e,t,o,r,n)}}function v1(t,e){return t.createText(e)}function b1(t,e,r){t.setValue(e,r)}function _1(t,e){return t.createComment(m1(e))}function tx(t,e,r){return t.createElement(e,r)}function y1(t,e){ix(t,e),e[yn]=null,e[ci]=null}function w1(t,e,r,i,n,o){i[yn]=n,i[ci]=e,qd(t,i,r,1,n,o)}function ix(t,e){e[gn].changeDetectionScheduler?.notify(8),qd(t,e,e[nt],2,null,null)}function x1(t){let e=t[Da];if(!e)return vp(t[fe],t);for(;e;){let r=null;if(Bn(e))r=e[Da];else{let i=e[zt];i&&(r=i)}if(!r){for(;e&&!e[qi]&&e!==t;)Bn(e)&&vp(e[fe],e),e=e[Ut];e===null&&(e=t),Bn(e)&&vp(e[fe],e),r=e&&e[qi]}e=r}}function D1(t,e,r,i){let n=zt+i,o=r.length;i>0&&(r[n-1][qi]=e),i0&&(t[r-1][qi]=i[qi]);let o=id(t,zt+e);y1(i[fe],i);let s=o[Un];s!==null&&s.detachView(o[fe]),i[Ut]=null,i[qi]=null,i[ve]&=-129}return i}function Gd(t,e){if(!(e[ve]&256)){let r=e[nt];r.destroyNode&&qd(t,e,r,3,null,null),x1(e)}}function vp(t,e){if(e[ve]&256)return;let r=Te(null);try{e[ve]&=-129,e[ve]|=256,e[Si]&&ol(e[Si]),E1(t,e),C1(t,e),e[fe].type===1&&e[nt].destroy();let i=e[Jr];if(i!==null&&Wn(e[Ut])){i!==e[Ut]&&og(i,e);let n=e[Un];n!==null&&n.detachView(t)}AA(e)}finally{Te(r)}}function C1(t,e){let r=t.cleanup,i=e[rd];if(r!==null)for(let o=0;o=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[r[o+1]];r[o].call(s)}i!==null&&(e[rd]=null);let n=e[ur];if(n!==null){e[ur]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[i.directiveStart+n];if(o===mn.None||o===mn.Emulated)return null}return Mi(i,r)}}function ud(t,e,r,i,n){t.insertBefore(e,r,i,n)}function ox(t,e,r){t.appendChild(e,r)}function e0(t,e,r,i,n){i!==null?ud(t,e,r,i,n):ox(t,e,r)}function S1(t,e,r,i){t.removeChild(e,r,i)}function sg(t,e){return t.parentNode(e)}function M1(t,e){return t.nextSibling(e)}function sx(t,e,r){return T1(t,e,r)}function k1(t,e,r){return t.type&40?Mi(t,r):null}var T1=k1,t0;function Wd(t,e,r,i){let n=rx(t,i,e),o=e[nt],s=i.parent||e[ci],a=sx(s,i,e);if(n!=null)if(Array.isArray(r))for(let c=0;cft&&ux(t,e,ft,!1),fn(s?2:0,n),r(i,n)}finally{io(o),fn(s?3:1,n)}}function cg(t,e,r){if($m(e)){let i=Te(null);try{let n=e.directiveStart,o=e.directiveEnd;for(let s=n;snull;function U1(t,e,r,i){let n=yx(e);n.push(r),t.firstCreatePass&&wx(t).push(i,n.length-1)}function H1(t,e,r,i,n,o){let s=e?e.injectorIndex:-1,a=0;return cw()&&(a|=128),{type:r,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:n,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function i0(t,e,r,i,n){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;i??={};let a,c=es.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(n!==null){if(!n.hasOwnProperty(o))continue;l=n[o]}t===0?n0(i,r,l,a,c):n0(i,r,l,a)}return i}function n0(t,e,r,i,n){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,i):o=t[r]=[e,i],n!==void 0&&o.push(n)}function $1(t,e,r){let i=e.directiveStart,n=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let d=i;d0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function Z1(t,e,r,i){let n=r.directiveStart,o=r.directiveEnd;Pd(r)&&iO(e,r,t.data[n+r.componentOffset]),t.firstCreatePass||dd(r,e),Ii(i,e);let s=r.initialInputs;for(let a=n;a{jd(t.lView)},consumerOnSignalRead(){this.lView[Si]=this}});function gO(t){let e=t[Si]??Object.create(vO);return e.lView=t,e}var vO=Q(w({},Fo),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=to(t.lView);for(;e&&!Sx(e[fe]);)e=to(e);e&&rw(e)},consumerOnSignalRead(){this.lView[Si]=this}});function Sx(t){return t.type!==2}var bO=100;function Mx(t,e=!0,r=0){let i=t[gn],n=i.rendererFactory,o=!1;o||n.begin?.();try{_O(t,r)}catch(s){throw e&&Dx(t,s),s}finally{o||(n.end?.(),i.inlineEffectRunner?.flush())}}function _O(t,e){let r=dw();try{Uy(!0),nm(t,e);let i=0;for(;Ca(t);){if(i===bO)throw new G(103,!1);i++,nm(t,1)}}finally{Uy(r)}}function yO(t,e,r,i){let n=e[ve];if((n&256)===256)return;let o=!1,s=!1;!o&&e[gn].inlineEffectRunner?.flush(),Xm(e);let a=!0,c=null,l=null;o||(Sx(t)?(l=hO(e),c=oa(l)):B_()===null?(a=!1,l=gO(e),c=oa(l)):e[Si]&&(ol(e[Si]),e[Si]=null));try{nw(e),tA(t.bindingStartIndex),r!==null&&px(t,e,r,2,i);let d=(n&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&Zl(e,p,null)}else{let p=t.preOrderHooks;p!==null&&Ql(e,p,0,null),hp(e,0)}if(s||wO(e),kx(e,0),t.contentQueries!==null&&_x(t,e),!o)if(d){let p=t.contentCheckHooks;p!==null&&Zl(e,p)}else{let p=t.contentHooks;p!==null&&Ql(e,p,1),hp(e,1)}P1(t,e);let u=t.components;u!==null&&Rx(e,u,0);let f=t.viewQuery;if(f!==null&&im(2,f,i),!o)if(d){let p=t.viewCheckHooks;p!==null&&Zl(e,p)}else{let p=t.viewHooks;p!==null&&Ql(e,p,2),hp(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Yl]){for(let p of e[Yl])p();e[Yl]=null}o||(e[ve]&=-73)}catch(d){throw o||jd(e),d}finally{l!==null&&(nl(l,c),a&&pO(l)),Jm()}}function kx(t,e){for(let r=Fw(t);r!==null;r=Pw(r))for(let i=zt;i-1&&(Ea(e,i),id(r,i))}this._attachedToViewContainer=!1}Gd(this._lView[fe],this._lView)}onDestroy(e){ow(this._lView,e)}markForCheck(){mg(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[ve]&=-129}reattach(){Fp(this._lView),this._lView[ve]|=128}detectChanges(){this._lView[ve]|=1024,Mx(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new G(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Op(this._lView),r=this._lView[Jr];r!==null&&!e&&og(r,this._lView),ix(this._lView[fe],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new G(902,!1);this._appRef=e;let r=Op(this._lView),i=this._lView[Jr];i!==null&&!r&&nx(i,this._lView),Fp(this._lView)}},Re=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=EO;let t=e;return t})(),DO=Re,CO=class extends DO{constructor(e,r,i){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,i){let n=ja(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:i});return new oo(n)}};function EO(){return Qd(Mt(),me())}function Qd(t,e){return t.type&4?new CO(e,t,ps(t,e)):null}var NY=new RegExp(`^(\\d+)*(${zA}|${BA})*(.*)`);var IO=()=>null;function ss(t,e){return IO(t,e)}var as=class{},Ax=new g("",{providedIn:"root",factory:()=>!1});var Ox=new g(""),rm=class{},fd=class{};function SO(t){let e=Error(`No component factory found for ${Kt(t)}.`);return e[MO]=t,e}var MO="ngComponent";var om=class{resolveComponentFactory(e){throw SO(e)}},Rg=class Rg{};Rg.NULL=new om;var Yi=Rg,cs=class{},xn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>kO();let t=e;return t})();function kO(){let t=me(),e=Mt(),r=vn(e.index,t);return(Bn(r)?r:t)[nt]}var TO=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var r0=new Set;function Dn(t){r0.has(t)||(r0.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Nx(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ht.requestAnimationFrame=="function"&&ht.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function o0(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function s0(...t){}var F=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new B(!1),this.onMicrotaskEmpty=new B(!1),this.onStable=new B(!1),this.onError=new B(!1),typeof Zone>"u")throw new G(908,!1);Zone.assertZonePatched();let n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&r,n.shouldCoalesceRunChangeDetection=i,n.callbackScheduled=!1,OO(n)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new G(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new G(909,!1)}run(e,r,i){return this._inner.run(e,r,i)}runTask(e,r,i,n){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+n,e,RO,s0,s0);try{return o.runTask(s,r,i)}finally{o.cancelTask(s)}}runGuarded(e,r,i){return this._inner.runGuarded(e,r,i)}runOutsideAngular(e){return this._outer.run(e)}},RO={};function gg(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function AO(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Nx(()=>{t.callbackScheduled=!1,sm(t),t.isCheckStableRunning=!0,gg(t),t.isCheckStableRunning=!1})}),sm(t))}function OO(t){let e=()=>{AO(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,i,n,o,s,a)=>{if(NO(a))return r.invokeTask(n,o,s,a);try{return a0(t),r.invokeTask(n,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),c0(t)}},onInvoke:(r,i,n,o,s,a,c)=>{try{return a0(t),r.invoke(n,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!FO(a)&&e(),c0(t)}},onHasTask:(r,i,n,o)=>{r.hasTask(n,o),i===n&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,sm(t),gg(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,n,o)=>(r.handleError(n,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function sm(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function a0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function c0(t){t._nesting--,gg(t)}var pd=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new B,this.onMicrotaskEmpty=new B,this.onStable=new B,this.onError=new B}run(e,r,i){return e.apply(r,i)}runGuarded(e,r,i){return e.apply(r,i)}runOutsideAngular(e){return e()}runTask(e,r,i,n){return e.apply(r,i)}};function NO(t){return Fx(t,"__ignore_ng_zone__")}function FO(t){return Fx(t,"__scheduler_tick__")}function Fx(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function PO(t="zone.js",e){return t==="noop"?new pd:t==="zone.js"?new F(e):t}var Vn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Vn||{}),Px={destroy(){}};function Ba(t,e){!e&&Ra(Ba);let r=e?.injector??v(Se);if(!ex(r))return Px;Dn("NgAfterRender");let i=r.get(Kd),n=i.handler??=new gd,o=e?.phase??Vn.MixedReadWrite,s=()=>{n.unregister(c),a()},a=r.get(vr).onDestroy(s),c=ai(r,()=>new md(o,t));return n.register(c),{destroy:s}}function $t(t,e){!e&&Ra($t);let r=e?.injector??v(Se);if(!ex(r))return Px;Dn("NgAfterNextRender");let i=r.get(Kd),n=i.handler??=new gd,o=e?.phase??Vn.MixedReadWrite,s=()=>{n.unregister(c),a()},a=r.get(vr).onDestroy(s),c=ai(r,()=>new md(o,()=>{s(),t()}));return n.register(c),{destroy:s}}var md=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=v(F),this.errorHandler=v(Ft,{optional:!0}),v(as,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},gd=class{constructor(){this.executingCallbacks=!1,this.buckets={[Vn.EarlyRead]:new Set,[Vn.Write]:new Set,[Vn.MixedReadWrite]:new Set,[Vn.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Kd=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let n of i)n()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function vd(t,e,r){let i=r?t.styles:null,n=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&lx(t,r,o.join(" "))}}function HO(t,e,r){let i=t.projection=[];for(let n=0;n{let e=class e{};e.__NG_ELEMENT_ID__=GO;let t=e;return t})();function GO(){let t=Mt();return jx(t,me())}var WO=Ve,Lx=class extends WO{constructor(e,r,i){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=i}get element(){return ps(this._hostTNode,this._hostLView)}get injector(){return new Kr(this._hostTNode,this._hostLView)}get parentInjector(){let e=eg(this._hostTNode,this._hostLView);if(yw(e)){let r=cd(e,this._hostLView),i=ad(e),n=r[fe].data[i+8];return new Kr(n,r)}else return new Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=d0(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-zt}createEmbeddedView(e,r,i){let n,o;typeof i=="number"?n=i:i!=null&&(n=i.index,o=i.injector);let s=ss(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,n,os(this._hostTNode,s)),a}createComponent(e,r,i,n,o){let s=e&&!jR(e),a;if(s)a=r;else{let _=r||{};a=_.index,i=_.injector,n=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}let c=s?e:new so(zn(e)),l=i||this.parentInjector;if(!o&&c.ngModule==null){let S=(s?l:this.parentInjector).get(_t,null);S&&(o=S)}let d=zn(c.componentType??{}),u=ss(this._lContainer,d?.id??null),f=u?.firstChild??null,p=c.create(l,n,f,o);return this.insertImpl(p.hostView,a,os(this._hostTNode,u)),p}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,i){let n=e._lView;if(GR(n)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=n[Ut],l=new Lx(c,c[ci],c[Ut]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Va(s,n,o,i),e.attachToViewContainerRef(),A0(bp(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=d0(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),i=Ea(this._lContainer,r);i&&(id(bp(this._lContainer),r),Gd(i[fe],i))}detach(e){let r=this._adjustIndex(e,-1),i=Ea(this._lContainer,r);return i&&id(bp(this._lContainer),r)!=null?new oo(i):null}_adjustIndex(e,r=0){return e??this.length+r}};function d0(t){return t[od]}function bp(t){return t[od]||(t[od]=[])}function jx(t,e){let r,i=e[t.index];return Wn(i)?r=i:(r=bx(i,e,null,t),e[t.index]=r,Zd(e,r)),YO(r,e,t,i),new Lx(r,t,e)}function qO(t,e){let r=t[nt],i=r.createComment(""),n=Mi(e,t),o=sg(r,n);return ud(r,o,i,M1(r,n),!1),i}var YO=KO,ZO=()=>!1;function QO(t,e,r){return ZO(t,e,r)}function KO(t,e,r,i){if(t[eo])return;let n;r.type&8?n=ui(i):n=qO(e,r),t[eo]=n}var cm=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},lm=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let i=e.contentQueries!==null?e.contentQueries[0]:r.length,n=[];for(let o=0;o0)i.push(s[a/2]);else{let l=o[a+1],d=e[-c];for(let u=zt;ue.trim())}function zx(t,e,r){t.queries===null&&(t.queries=new dm),t.queries.track(new um(e,r))}function sN(t,e){let r=t.contentQueries||(t.contentQueries=[]),i=r.length?r[r.length-1]:-1;e!==i&&r.push(t.queries.length-1,e)}function vg(t,e){return t.queries.getByIndex(e)}function aN(t,e){let r=t[fe],i=vg(r,e);return i.crossesNgTemplate?hm(r,t,e,[]):Vx(r,t,i,e)}function Xd(t){return typeof t=="function"&&t[rn]!==void 0}function vs(t,e){Dn("NgSignals");let r=X_(t),i=r[rn];return e?.equal&&(i.equal=e.equal),r.set=n=>Uf(i,n),r.update=n=>J_(i,n),r.asReadonly=cN.bind(r),r}function cN(){let t=this[rn];if(t.readonlyFn===void 0){let e=()=>this();e[rn]=t,t.readonlyFn=e}return t.readonlyFn}function Ux(t){return Xd(t)&&typeof t.set=="function"}function lN(t){let e=[],r=new Map;function i(n){let o=r.get(n);if(!o){let s=t(n);r.set(n,o=s.then(fN))}return o}return yd.forEach((n,o)=>{let s=[];n.templateUrl&&s.push(i(n.templateUrl).then(l=>{n.template=l}));let a=typeof n.styles=="string"?[n.styles]:n.styles||[];if(n.styles=a,n.styleUrl&&n.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(n.styleUrls?.length){let l=n.styles.length,d=n.styleUrls;n.styleUrls.forEach((u,f)=>{a.push(""),s.push(i(u).then(p=>{a[l+f]=p,d.splice(d.indexOf(u),1),d.length==0&&(n.styleUrls=void 0)}))})}else n.styleUrl&&s.push(i(n.styleUrl).then(l=>{a.push(l),n.styleUrl=void 0}));let c=Promise.all(s).then(()=>pN(o));e.push(c)}),uN(),Promise.all(e).then(()=>{})}var yd=new Map,dN=new Set;function uN(){let t=yd;return yd=new Map,t}function hN(){return yd.size===0}function fN(t){return typeof t=="string"?t:t.text()}function pN(t){dN.delete(t)}function mN(t){return Object.getPrototypeOf(t.prototype).constructor}function ae(t){let e=mN(t.type),r=!0,i=[t];for(;e;){let n;if(Hn(t))n=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new G(903,!1);n=e.\u0275dir}if(n){if(r){i.push(n);let s=t;s.inputs=$l(t.inputs),s.inputTransforms=$l(t.inputTransforms),s.declaredInputs=$l(t.declaredInputs),s.outputs=$l(t.outputs);let a=n.hostBindings;a&&yN(t,a);let c=n.viewQuery,l=n.contentQueries;if(c&&bN(t,c),l&&_N(t,l),gN(t,n),zT(t.outputs,n.outputs),Hn(n)&&n.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(n.data.animation)}}let o=n.features;if(o)for(let s=0;s=0;i--){let n=t[i];n.hostVars=e+=n.hostVars,n.hostAttrs=wa(n.hostAttrs,r=wa(r,n.hostAttrs))}}function $l(t){return t===Jo?{}:t===Qt?[]:t}function bN(t,e){let r=t.viewQuery;r?t.viewQuery=(i,n)=>{e(i,n),r(i,n)}:t.viewQuery=e}function _N(t,e){let r=t.contentQueries;r?t.contentQueries=(i,n,o)=>{e(i,n,o),r(i,n,o)}:t.contentQueries=e}function yN(t,e){let r=t.hostBindings;r?t.hostBindings=(i,n)=>{e(i,n),r(i,n)}:t.hostBindings=e}function re(t){let e=t.inputConfig,r={};for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];Array.isArray(n)&&n[3]&&(r[i]=n[3])}t.inputTransforms=r}var pr=class{},Ia=class{};var wd=class extends pr{constructor(e,r,i){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bd(this);let n=U0(e);this._bootstrapComponents=Jw(n.bootstrap),this._r3Injector=kw(e,r,[{provide:pr,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver},...i],Kt(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},xd=class extends Ia{constructor(e){super(),this.moduleType=e}create(e){return new wd(this.moduleType,e,[])}};function wN(t,e,r){return new wd(t,e,r)}var fm=class extends pr{constructor(e){super(),this.componentFactoryResolver=new bd(this),this.instance=null;let r=new xa([...e.providers,{provide:pr,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver}],e.parent||Fd(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Jd(t,e,r=null){return new fm({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function Hx(t){return bg(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function xN(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function kN(t){return(t&2)==2}function TN(t,e){return t&131071|e<<17}function pm(t){return t|2}function ls(t){return(t&131068)>>2}function _p(t,e){return t&-131069|e<<2}function RN(t){return(t&1)===1}function mm(t){return t|1}function AN(t,e,r,i,n,o){let s=o?e.classBindings:e.styleBindings,a=ao(s),c=ls(s);t[i]=r;let l=!1,d;if(Array.isArray(r)){let u=r;d=u[1],(d===null||Ta(u,d)>0)&&(l=!0)}else d=r;if(n)if(c!==0){let f=ao(t[a+1]);t[i+1]=Gl(f,a),f!==0&&(t[f+1]=_p(t[f+1],i)),t[a+1]=TN(t[a+1],i)}else t[i+1]=Gl(a,0),a!==0&&(t[a+1]=_p(t[a+1],i)),a=i;else t[i+1]=Gl(c,0),a===0?a=i:t[c+1]=_p(t[c+1],i),c=i;l&&(t[i+1]=pm(t[i+1])),u0(t,d,i,!0),u0(t,d,i,!1),ON(e,d,t,i,o),s=Gl(a,c),o?e.classBindings=s:e.styleBindings=s}function ON(t,e,r,i,n){let o=n?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Ta(o,e)>=0&&(r[i+1]=mm(r[i+1]))}function u0(t,e,r,i){let n=t[r+1],o=e===null,s=i?ao(n):ls(n),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];NN(c,e)&&(a=!0,t[s+1]=i?mm(l):pm(l)),s=i?ao(l):ls(l)}a&&(t[r+1]=i?pm(n):mm(n))}function NN(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Ta(t,e)>=0:!1}var Ct={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $x(t){return t.substring(Ct.key,Ct.keyEnd)}function FN(t){return t.substring(Ct.value,Ct.valueEnd)}function PN(t){return qx(t),Gx(t,ds(t,0,Ct.textEnd))}function Gx(t,e){let r=Ct.textEnd;return r===e?-1:(e=Ct.keyEnd=jN(t,Ct.key=e,r),ds(t,e,r))}function LN(t){return qx(t),Wx(t,ds(t,0,Ct.textEnd))}function Wx(t,e){let r=Ct.textEnd,i=Ct.key=ds(t,e,r);return r===i?-1:(i=Ct.keyEnd=VN(t,i,r),i=h0(t,i,r,58),i=Ct.value=ds(t,i,r),i=Ct.valueEnd=BN(t,i,r),h0(t,i,r,59))}function qx(t){Ct.key=0,Ct.keyEnd=0,Ct.value=0,Ct.valueEnd=0,Ct.textEnd=t.length}function ds(t,e,r){for(;e32;)e++;return e}function VN(t,e,r){let i;for(;e=65&&(i&-33)<=90||i>=48&&i<=57);)e++;return e}function h0(t,e,r,i){return e=ds(t,e,r),e32&&(a=s),o=n,n=i,i=c&-33}return a}function f0(t,e,r,i){let n=-1,o=r;for(;o=0;r=Wx(e,r))Xx(t,$x(e),FN(e))}function kt(t){wg(qN,Yx,t,!0)}function Yx(t,e){for(let r=PN(e);r>=0;r=Gx(e,r))ka(t,$x(e),!0)}function Zx(t,e,r,i){let n=me(),o=et(),s=uw(2);if(o.firstUpdatePass&&Kx(o,t,s,i),e!==Ri&&hi(n,s,e)){let a=o.data[gr()];Jx(o,a,n,n[nt],t,n[s+1]=ZN(e,r),i,s)}}function wg(t,e,r,i){let n=et(),o=uw(2);n.firstUpdatePass&&Kx(n,null,o,i);let s=me();if(r!==Ri&&hi(s,o,r)){let a=n.data[gr()];if(eD(a,i)&&!Qx(n,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=Ep(c,r||"")),gm(n,a,s,r,i)}else YN(n,a,s,s[nt],s[o+1],s[o+1]=WN(t,e,r),i,o)}}function Qx(t,e){return e>=t.expandoStartIndex}function Kx(t,e,r,i){let n=t.data;if(n[r+1]===null){let o=n[gr()],s=Qx(t,r);eD(o,i)&&e===null&&!s&&(e=!1),e=UN(n,o,e,i),AN(n,o,e,r,s,i)}}function UN(t,e,r,i){let n=Qm(t),o=i?e.residualClasses:e.residualStyles;if(n===null)(i?e.classBindings:e.styleBindings)===0&&(r=yp(null,t,e,r,i),r=Sa(r,e.attrs,i),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==n)if(r=yp(n,t,e,r,i),o===null){let c=HN(t,e,i);c!==void 0&&Array.isArray(c)&&(c=yp(null,t,e,c[1],i),c=Sa(c,e.attrs,i),$N(t,e,i,c))}else o=GN(t,e,i)}return o!==void 0&&(i?e.residualClasses=o:e.residualStyles=o),r}function HN(t,e,r){let i=r?e.classBindings:e.styleBindings;if(ls(i)!==0)return t[ao(i)]}function $N(t,e,r,i){let n=r?e.classBindings:e.styleBindings;t[ao(n)]=i}function GN(t,e,r){let i,n=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[n],l=Array.isArray(c),d=l?c[1]:c,u=d===null,f=r[n+1];f===Ri&&(f=u?Qt:void 0);let p=u?dp(f,i):d===i?f:void 0;if(l&&!Cd(p)&&(p=dp(c,i)),Cd(p)&&(a=p,s))return a;let _=t[n+1];n=s?ao(_):ls(_)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=dp(c,i))}return a}function Cd(t){return t!==void 0}function ZN(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Kt(Ti(t)))),t}function eD(t,e){return(t.flags&(e?8:16))!==0}function eu(t,e,r){let i=me(),n=yg(i,t,e,r);wg(ka,Yx,n,!0)}var vm=class{destroy(e){}updateValue(e,r){}swap(e,r){let i=Math.min(e,r),n=Math.max(e,r),o=this.detach(n);if(n-i>1){let s=this.detach(i);this.attach(i,o),this.attach(n,s)}else this.attach(i,o)}move(e,r){this.attach(r,this.detach(e))}};function wp(t,e,r,i,n){return t===r&&Object.is(e,i)?1:Object.is(n(t,e),n(r,i))?-1:0}function QN(t,e,r){let i,n,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let l=t.at(o),d=e[o],u=wp(o,l,o,d,r);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let f=t.at(s),p=e[c],_=wp(s,f,c,p,r);if(_!==0){_<0&&t.updateValue(s,p),s--,c--;continue}let S=r(o,l),E=r(s,f),R=r(o,d);if(Object.is(R,E)){let he=r(c,p);Object.is(he,S)?(t.swap(o,s),t.updateValue(s,p),c--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(i??=new Ed,n??=g0(t,o,s,r),bm(t,i,o,R))t.updateValue(o,d),o++,s++;else if(n.has(R))i.set(S,t.detach(o)),s--;else{let he=t.create(o,e[o]);t.attach(o,he),o++,s++}}for(;o<=c;)m0(t,i,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&o<=s;){let d=t.at(o),u=l.value,f=wp(o,d,o,u,r);if(f!==0)f<0&&t.updateValue(o,u),o++,l=c.next();else{i??=new Ed,n??=g0(t,o,s,r);let p=r(o,u);if(bm(t,i,o,p))t.updateValue(o,u),o++,s++,l=c.next();else if(!n.has(p))t.attach(o,t.create(o,u)),o++,s++,l=c.next();else{let _=r(o,d);i.set(_,t.detach(o)),s--}}}for(;!l.done;)m0(t,i,r,t.length,l.value),l=c.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(c=>{t.destroy(c)})}function bm(t,e,r,i){return e!==void 0&&e.has(i)?(t.attach(r,e.get(i)),e.delete(i),!0):!1}function m0(t,e,r,i,n){if(bm(t,e,i,r(i,n)))t.updateValue(i,n);else{let o=t.create(i,n);t.attach(i,o)}}function g0(t,e,r,i){let n=new Set;for(let o=e;o<=r;o++)n.add(i(o,t.at(o)));return n}var Ed=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(i);)i=n.get(i);n.set(i,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,i]of this.kvMap)if(e(i,r),this._vMap!==void 0){let n=this._vMap;for(;n.has(i);)i=n.get(i),e(i,r)}}};function le(t,e){Dn("NgControlFlow");let r=me(),i=mr(),n=r[i]!==Ri?r[i]:-1,o=n!==-1?Id(r,ft+n):void 0,s=0;if(hi(r,i,t)){let a=Te(null);try{if(o!==void 0&&Ex(o,s),t!==-1){let c=ft+t,l=Id(r,c),d=xm(r[fe],c),u=ss(l,d.tView.ssrId),f=ja(r,d,e,{dehydratedView:u});Va(l,f,s,os(d,u))}}finally{Te(a)}}else if(o!==void 0){let a=Cx(o,s);a!==void 0&&(a[St]=e)}}var _m=class{constructor(e,r,i){this.lContainer=e,this.$implicit=r,this.$index=i}get $count(){return this.lContainer.length-zt}};function tu(t,e){return e}var ym=class{constructor(e,r,i){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=i}};function iu(t,e,r,i,n,o,s,a,c,l,d,u,f){Dn("NgControlFlow");let p=me(),_=et(),S=c!==void 0,E=me(),R=a?s.bind(E[di][St]):s,he=new ym(S,R);E[ft+t]=he,Dd(p,_,t+1,e,r,i,n,fr(_.consts,o)),S&&Dd(p,_,t+2,c,l,d,u,fr(_.consts,f))}var wm=class extends vm{constructor(e,r,i){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-zt}at(e){return this.getLView(e)[St].$implicit}attach(e,r){let i=r[is];this.needsIndexUpdate||=e!==this.length,Va(this.lContainer,r,e,os(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,KN(this.lContainer,e)}create(e,r){let i=ss(this.lContainer,this.templateTNode.tView.ssrId),n=ja(this.hostLView,this.templateTNode,new _m(this.lContainer,r,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),n}destroy(e){Gd(e[fe],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[St].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(zd(!0),tx(i,n,cA()));function tF(t,e,r,i,n){let o=e.consts,s=fr(o,i),a=gs(e,t,8,"ng-container",s);s!==null&&vd(a,s,!0);let c=fr(o,n);return hg(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function _r(t,e,r){let i=me(),n=et(),o=t+ft,s=n.firstCreatePass?tF(o,n,i,e,r):n.data[o];co(s,!0);let a=iF(n,i,s,t);return i[o]=a,Bd()&&Wd(n,i,a,s),Ii(a,i),Ld(s)&&(lg(n,i,s),cg(n,s,i)),r!=null&&dg(i,s),_r}function yr(){let t=Mt(),e=et();return Ym()?Zm():(t=t.parent,co(t,!1)),e.firstCreatePass&&(Ud(e,t),$m(t)&&e.queries.elementEnd(t)),yr}function tt(t,e,r){return _r(t,e,r),yr(),tt}var iF=(t,e,r,i)=>(zd(!0),_1(e[nt],""));function Ye(){return me()}function yt(t,e,r){let i=me(),n=mr();if(hi(i,n,e)){let o=et(),s=fs();La(o,s,i,t,e,i[nt],r,!0)}return yt}function xg(t,e,r){let i=me(),n=mr();if(hi(i,n,e)){let o=et(),s=fs(),a=Qm(o.data),c=xx(a,s,i);La(o,s,i,t,e,c,r,!0)}return xg}var Zr=void 0;function nF(t){let e=t,r=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&i===0?1:5}var rF=["en",[["a","p"],["AM","PM"],Zr],[["AM","PM"],Zr,Zr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zr,"{1} 'at' {0}",Zr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",nF],xp={};function Ai(t){let e=oF(t),r=v0(e);if(r)return r;let i=e.split("-")[0];if(r=v0(i),r)return r;if(i==="en")return rF;throw new G(701,!1)}function v0(t){return t in xp||(xp[t]=ht.ng&&ht.ng.common&&ht.ng.common.locales&&ht.ng.common.locales[t]),xp[t]}var mt=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(mt||{});function oF(t){return t.toLowerCase().replace(/_/g,"-")}var Sd="en-US";var sF=Sd;function aF(t){typeof t=="string"&&(sF=t.toLowerCase().replace(/_/g,"-"))}var cF=(t,e,r)=>{};function Z(t,e,r,i){let n=me(),o=et(),s=Mt();return Cg(o,n,n[nt],s,t,e,i),Z}function Dg(t,e){let r=Mt(),i=me(),n=et(),o=Qm(n.data),s=xx(o,r,i);return Cg(n,i,s,r,t,e),Dg}function lF(t,e,r,i){let n=t.cleanup;if(n!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Cg(t,e,r,i,n,o,s){let a=Ld(i),l=t.firstCreatePass&&wx(t),d=e[St],u=yx(e),f=!0;if(i.type&3||s){let S=Mi(i,e),E=s?s(S):S,R=u.length,he=s?Ue=>s(ui(Ue[i.index])):i.index,Ne=null;if(!s&&a&&(Ne=lF(t,e,n,i.index)),Ne!==null){let Ue=Ne.__ngLastListenerFn__||Ne;Ue.__ngNextListenerFn__=o,Ne.__ngLastListenerFn__=o,f=!1}else{o=_0(i,e,d,o),cF(S,n,o);let Ue=r.listen(E,n,o);u.push(o,Ue),l&&l.push(n,he,R,R+1)}}else o=_0(i,e,d,o);let p=i.outputs,_;if(f&&p!==null&&(_=p[n])){let S=_.length;if(S)for(let E=0;E-1?vn(t.index,e):e;mg(s,5);let a=b0(e,r,i,o),c=n.__ngNextListenerFn__;for(;c;)a=b0(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function $(t=1){return sA(t)}function dF(t,e){let r=null,i=gR(t);for(let n=0;n=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}function gt(t){let e=eA();return Wm(e,ft+t)}function we(t,e=""){let r=me(),i=et(),n=t+ft,o=i.firstCreatePass?gs(i,n,1,e,null):i.data[n],s=pF(i,r,o,e,t);r[n]=s,Bd()&&Wd(i,r,s,o),co(o,!1)}var pF=(t,e,r,i,n)=>(zd(!0),v1(e[nt],i));function at(t){return Lt("",t,""),at}function Lt(t,e,r){let i=me(),n=yg(i,t,e,r);return n!==Ri&&aO(i,gr(),n),Lt}function mF(t,e,r){Ux(e)&&(e=e());let i=me(),n=mr();if(hi(i,n,e)){let o=et(),s=fs();La(o,s,i,t,e,i[nt],r,!1)}return mF}function LY(t,e){let r=Ux(t);return r&&t.set(e),r}function gF(t,e){let r=me(),i=et(),n=Mt();return Cg(i,r,r[nt],n,t,e),gF}function vF(t,e,r){let i=et();if(i.firstCreatePass){let n=Hn(t);Dm(r,i.data,i.blueprint,n,!0),Dm(e,i.data,i.blueprint,n,!1)}}function Dm(t,e,r,i,n){if(t=Zt(t),Array.isArray(t))for(let o=0;o>20;if(ts(t)||!t.multi){let p=new no(l,n,h),_=Cp(c,e,n?d:d+f,u);_===-1?(Vp(dd(a,s),o,c),Dp(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),r.push(p),s.push(p)):(r[_]=p,s[_]=p)}else{let p=Cp(c,e,d+f,u),_=Cp(c,e,d,d+f),S=p>=0&&r[p],E=_>=0&&r[_];if(n&&!E||!n&&!S){Vp(dd(a,s),o,c);let R=yF(n?_F:bF,r.length,n,i,l);!n&&E&&(r[_].providerFactory=R),Dp(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),r.push(R),s.push(R)}else{let R=iD(r[n?_:p],l,!n&&i);Dp(o,t,p>-1?p:_,R)}!n&&i&&E&&r[_].componentProviders++}}}function Dp(t,e,r,i){let n=ts(e),o=TR(e);if(n||o){let c=(o?Zt(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!n&&e.multi){let d=l.indexOf(r);d===-1?l.push(r,[i,c]):l[d+1].push(i,c)}else l.push(r,c)}}}function iD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Cp(t,e,r,i){for(let n=r;n{r.providersResolver=(i,n)=>vF(i,n?n(t):t,e)}}var wF=(()=>{let e=class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let n=G0(!1,i.type),o=n.length>0?Jd([n],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,o)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(m(_t))});let t=e;return t})();function Y(t){Dn("NgStandalone"),t.getStandaloneInjector=e=>e.get(wF).getOrCreateStandaloneInjector(t)}function jY(t,e,r){let i=Oa()+t,n=me();return n[i]===Ri?_g(n,i,r?e.call(r):e()):DN(n,i)}function Eg(t,e,r,i){return rD(me(),Oa(),t,e,r,i)}function za(t,e,r,i,n){return oD(me(),Oa(),t,e,r,i,n)}function nD(t,e){let r=t[e];return r===Ri?void 0:r}function rD(t,e,r,i,n,o){let s=e+r;return hi(t,s,n)?_g(t,s+1,o?i.call(o,n):i(n)):nD(t,s+1)}function oD(t,e,r,i,n,o,s){let a=e+r;return CN(t,a,n,o)?_g(t,a+2,s?i.call(s,n,o):i(n,o)):nD(t,a+2)}function ru(t,e){let r=et(),i,n=t+ft;r.firstCreatePass?(i=xF(e,r.pipeRegistry),r.data[n]=i,i.onDestroy&&(r.destroyHooks??=[]).push(n,i.onDestroy)):i=r.data[n];let o=i.factory||(i.factory=Xr(i.type,!0)),s,a=si(h);try{let c=ld(!1),l=o();return ld(c),fF(r,me(),n,l),l}finally{si(a)}}function xF(t,e){if(e)for(let r=e.length-1;r>=0;r--){let i=e[r];if(t===i.name)return i}}function ou(t,e,r){let i=t+ft,n=me(),o=Wm(n,i);return sD(n,i)?rD(n,Oa(),e,o.transform,r,o):o.transform(r)}function VY(t,e,r,i){let n=t+ft,o=me(),s=Wm(o,n);return sD(o,n)?oD(o,Oa(),e,s.transform,r,i,s):s.transform(r,i)}function sD(t,e){return t[fe].data[e].pure}function wr(t,e){return Qd(t,e)}var Wl=null;function DF(t){Wl!==null&&(t.defaultEncapsulation!==Wl.defaultEncapsulation||t.preserveWhitespaces!==Wl.preserveWhitespaces)||(Wl=t)}var su=(()=>{let e=class e{log(i){console.log(i)}warn(i){console.warn(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Ig=new g(""),Ua=new g(""),au=(()=>{let e=class e{constructor(i,n,o){this._ngZone=i,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Sg||(CF(o),o.addToWindow(n)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(i)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),i()},n)),this._callbacks.push({doneCb:i,timeoutId:s,updateCb:o})}whenStable(i,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,n,o),this._runCallbacksIfReady()}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,n,o){return[]}};e.\u0275fac=function(n){return new(n||e)(m(F),m(cu),m(Ua))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),cu=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(i,n){this._applications.set(i,n)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,n=!0){return Sg?.findTestabilityInTree(this,i,n)??null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function CF(t){Sg=t}var Sg;function xr(t){return!!t&&typeof t.then=="function"}function Mg(t){return!!t&&typeof t.subscribe=="function"}var lu=new g(""),aD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,n)=>{this.resolve=i,this.reject=n}),this.appInits=v(lu,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let o of this.appInits){let s=o();if(xr(s))i.push(s);else if(Mg(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});i.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{n()}).catch(o=>{this.reject(o)}),i.length===0&&n(),this.initialized=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),du=new g("");function EF(){K_(()=>{throw new G(600,!1)})}function IF(t){return t.isBoundToModule}var SF=10;function MF(t,e,r){try{let i=r();return xr(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}function cD(t,e){return Array.isArray(e)?e.reduce(cD,t):w(w({},t),e)}var fi=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(Tw),this.afterRenderEffectManager=v(Kd),this.zonelessEnabled=v(Ax),this.externalTestViews=new Set,this.beforeRender=new C,this.afterTick=new C,this.componentTypes=[],this.components=[],this.isStable=v(wn).hasPendingTasks.pipe(P(i=>!i)),this._injector=v(_t)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,n){let o=i instanceof fd;if(!this._injector.get(aD).done){let p=!o&&z0(i),_=!1;throw new G(405,_)}let a;o?a=i:a=this._injector.get(Yi).resolveComponentFactory(i),this.componentTypes.push(a.componentType);let c=IF(a)?void 0:this._injector.get(pr),l=n||a.selector,d=a.create(Se.NULL,[],l,c),u=d.location.nativeElement,f=d.injector.get(Ig,null);return f?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),Jl(this.components,d),f?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new G(101,!1);let n=Te(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,Te(n),this.afterTick.next()}}detectChangesInAttachedViews(i){let n=null;this._injector.destroyed||(n=this._injector.get(cs,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oCa(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Ca(c))))break}}attachView(i){let n=i;this._views.push(n),n.attachToAppRef(this)}detachView(i){let n=i;Jl(this._views,n),n.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let n=this._injector.get(du,[]);[...this._bootstrapListeners,...n].forEach(o=>o(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>Jl(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new G(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Jl(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function kF(t,e,r,i){if(!r&&!Ca(t))return;Mx(t,e,r&&!i?0:1)}var Em=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},uu=(()=>{let e=class e{compileModuleSync(i){return new xd(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let n=this.compileModuleSync(i),o=U0(i),s=Jw(o.declarations).reduce((a,c)=>{let l=zn(c);return l&&a.push(new so(l)),a},[]);return new Em(n,s)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),TF=new g("");function RF(t,e,r){let i=new xd(r);return Promise.resolve(i)}function y0(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var AF=(()=>{let e=class e{constructor(){this.zone=v(F),this.changeDetectionScheduler=v(as),this.applicationRef=v(fi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function OF({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new F(lD()),[{provide:F,useFactory:t},{provide:hr,multi:!0,useFactory:()=>{let r=v(AF,{optional:!0});return()=>r.initialize()}},{provide:hr,multi:!0,useFactory:()=>{let r=v(FF);return()=>{r.initialize()}}},{provide:Tw,useFactory:NF},e===!0?{provide:Ox,useValue:!0}:[]]}function NF(){let t=v(F),e=v(Ft);return r=>t.runOutsideAngular(()=>e.handleError(r))}function lD(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var FF=(()=>{let e=class e{constructor(){this.subscription=new ne,this.initialized=!1,this.zone=v(F),this.pendingTasks=v(wn)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{F.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var PF=(()=>{let e=class e{constructor(){this.appRef=v(fi),this.taskService=v(wn),this.ngZone=v(F),this.zonelessEnabled=v(Ax),this.disableScheduling=v(Ox,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ne,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof pd||!this.zoneIsDefined)}notify(i){if(!this.zonelessEnabled&&i===5)return;switch(i){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?o0:Nx;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&F.isInAngularZone())}tick(i){if(this.runningTick||this.appRef.destroyed)return;let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(i)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,o0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function LF(){return typeof $localize<"u"&&$localize.locale||Sd}var Ha=new g("",{providedIn:"root",factory:()=>v(Ha,Ie.Optional|Ie.SkipSelf)||LF()});var dD=new g(""),uD=(()=>{let e=class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,n){let o=PO(n?.ngZone,lD({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{let s=n?.ignoreChangesOutsideZone,a=wN(i.moduleType,this.injector,[...OF({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s}),{provide:as,useExisting:PF}]),c=a.injector.get(Ft,null);return o.runOutsideAngular(()=>{let l=o.onError.subscribe({next:d=>{c.handleError(d)}});a.onDestroy(()=>{Jl(this._modules,a),l.unsubscribe()})}),MF(c,o,()=>{let l=a.injector.get(aD);return l.runInitializers(),l.donePromise.then(()=>{let d=a.injector.get(Ha,Sd);return aF(d||Sd),this._moduleDoBootstrap(a),a})})})}bootstrapModule(i,n=[]){let o=cD({},n);return RF(this.injector,o,i).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(i){let n=i.injector.get(fi);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(o=>n.bootstrap(o));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(n);else throw new G(-403,!1);this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new G(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let i=this._injector.get(dD,null);i&&(i.forEach(n=>n()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(n){return new(n||e)(m(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),_a=null,hD=new g("");function jF(t){if(_a&&!_a.get(hD,!1))throw new G(400,!1);EF(),_a=t;let e=t.get(uD);return zF(t),e}function kg(t,e,r=[]){let i=`Platform: ${e}`,n=new g(i);return(o=[])=>{let s=fD();if(!s||s.injector.get(hD,!1)){let a=[...r,...o,{provide:n,useValue:!0}];t?t(a):jF(VF(a,i))}return BF(n)}}function VF(t=[],e){return Se.create({name:e,providers:[{provide:Nd,useValue:"platform"},{provide:dD,useValue:new Set([()=>_a=null])},...t]})}function BF(t){let e=fD();if(!e)throw new G(401,!1);return e}function fD(){return _a?.get(uD)??null}function zF(t){t.get(ig,null)?.forEach(r=>r())}function Tg(){return!1}var ue=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=UF;let t=e;return t})();function UF(t){return HF(Mt(),me(),(t&16)===16)}function HF(t,e,r){if(Pd(t)&&!r){let i=vn(t.index,e);return new oo(i,i)}else if(t.type&175){let i=e[di];return new oo(i,e)}return null}var Im=class{constructor(){}supports(e){return Hx(e)}create(e){return new Sm(e)}},$F=(t,e)=>e,Sm=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||$F}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,i=this._removalsHead,n=0,o=null;for(;r||i;){let s=!i||r&&r.currentIndex{s=this._trackByFn(n,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,n),i=!0):(i&&(r=this._verifyReinsertion(r,a,s,n)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,i,n){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,n)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,n),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,n)):e=this._addAfter(new Mm(r,i),o,n)),e}_verifyReinsertion(e,r,i,n){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?e=this._reinsertAfter(o,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let n=e._prevRemoved,o=e._nextRemoved;return n===null?this._removalsHead=o:n._nextRemoved=o,o===null?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(e,r,i),this._addToMoves(e,i),e}_moveAfter(e,r,i){return this._unlink(e),this._insertAfter(e,r,i),this._addToMoves(e,i),e}_addAfter(e,r,i){return this._insertAfter(e,r,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,i){let n=r===null?this._itHead:r._next;return e._next=n,e._prev=r,n===null?this._itTail=e:n._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Md),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,i=e._next;return r===null?this._itHead=i:r._next=i,i===null?this._itTail=r:i._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Md),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Mm=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},km=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let i;for(i=this._head;i!==null;i=i._nextDup)if((r===null||r<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let r=e._prevDup,i=e._nextDup;return r===null?this._head=i:r._nextDup=i,i===null?this._tail=r:i._prevDup=r,this._head===null}},Md=class{constructor(){this.map=new Map}put(e){let r=e.trackById,i=this.map.get(r);i||(i=new km,this.map.set(r,i)),i.add(e)}get(e,r){let i=e,n=this.map.get(i);return n?n.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function w0(t,e,r){let i=t.previousIndex;if(i===null)return i;let n=0;return r&&i{if(r&&r.key===n)this._maybeAddToChanges(r,i),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(n,i);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let i=r;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let i=e._prev;return r._next=e,r._prev=i,e._prev=r,i&&(i._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,r);let o=n._prev,s=n._next;return o&&(o._next=s),s&&(s._prev=o),n._next=null,n._prev=null,n}let i=new Am(e);return this._records.set(e,i),i.currentValue=r,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(i=>r(e[i],i))}},Am=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function x0(){return new Cn([new Im])}var Cn=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,n){if(n!=null){let o=n.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:n=>e.create(i,n||x0()),deps:[[e,new Gn,new _n]]}}find(i){let n=this.factories.find(o=>o.supports(i));if(n!=null)return n;throw new G(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:x0});let t=e;return t})();function D0(){return new hu([new Tm])}var hu=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,n){if(n){let o=n.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:n=>e.create(i,n||D0()),deps:[[e,new Gn,new _n]]}}find(i){let n=this.factories.find(o=>o.supports(i));if(n)return n;throw new G(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:D0});let t=e;return t})();var pD=kg(null,"core",[]),mD=(()=>{let e=class e{constructor(i){}};e.\u0275fac=function(n){return new(n||e)(m(fi))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var gD=new g("");function T(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function dt(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function fu(t,e){Dn("NgSignals");let r=Y_(t);return e?.equal&&(r[rn].equal=e.equal),r}function bs(t){let e=Te(null);try{return t()}finally{Te(e)}}var GF=new g("",{providedIn:"root",factory:()=>v(WF)}),WF=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new Om});let t=e;return t})(),Om=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=v(wn),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let i=this.queues.get(r);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},Nm=class{constructor(e,r,i,n,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=i,this.injector=o,this.watcher=ty(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Ft,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function pu(t,e){Dn("NgSignals"),!e?.injector&&Ra(pu);let r=e?.injector??v(Se),i=e?.manualCleanup!==!0?r.get(vr):null,n=new Nm(r.get(GF),t,typeof Zone>"u"?null:Zone.current,i,r,e?.allowSignalWrites??!1),o=r.get(ue,null,{optional:!0});return!o||!(o._lView[ve]&8)?n.watcher.notify():(o._lView[Yl]??=[]).push(n.watcher.notify),n}function vD(t,e){let r=zn(t),i=e.elementInjector||Fd();return new so(r).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}function bD(t){let e=zn(t);if(!e)return null;let r=new so(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var ID=null;function En(){return ID}function SD(t){ID??=t}var Du=class{};var K=new g(""),Ug=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>v(qF),providedIn:"platform"});let t=e;return t})(),MD=new g(""),qF=(()=>{let e=class e extends Ug{constructor(){super(),this._doc=v(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return En().getBaseHref(this._doc)}onPopState(i){let n=En().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",i,!1),()=>n.removeEventListener("popstate",i)}onHashChange(i){let n=En().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",i,!1),()=>n.removeEventListener("hashchange",i)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(i){this._location.pathname=i}pushState(i,n,o){this._history.pushState(i,n,o)}replaceState(i,n,o){this._history.replaceState(i,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Hg(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function _D(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,i=r-(t[r-1]==="/"?1:0);return t.slice(0,i)+t.slice(r)}function Zn(t){return t&&t[0]!=="?"?"?"+t:t}var Kn=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>v($g),providedIn:"root"});let t=e;return t})(),kD=new g(""),$g=(()=>{let e=class e extends Kn{constructor(i,n){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??v(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return Hg(this._baseHref,i)}path(i=!1){let n=this._platformLocation.pathname+Zn(this._platformLocation.search),o=this._platformLocation.hash;return o&&i?`${n}${o}`:n}pushState(i,n,o,s){let a=this.prepareExternalUrl(o+Zn(s));this._platformLocation.pushState(i,n,a)}replaceState(i,n,o,s){let a=this.prepareExternalUrl(o+Zn(s));this._platformLocation.replaceState(i,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ug),m(kD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),TD=(()=>{let e=class e extends Kn{constructor(i,n){super(),this._platformLocation=i,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}path(i=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(i){let n=Hg(this._baseHref,i);return n.length>0?"#"+n:n}pushState(i,n,o,s){let a=this.prepareExternalUrl(o+Zn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(i,n,a)}replaceState(i,n,o,s){let a=this.prepareExternalUrl(o+Zn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(i,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ug),m(kD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Cr=(()=>{let e=class e{constructor(i){this._subject=new B,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let n=this._locationStrategy.getBaseHref();this._basePath=QF(_D(yD(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,n=""){return this.path()==this.normalize(i+Zn(n))}normalize(i){return e.stripTrailingSlash(ZF(this._basePath,yD(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,n="",o=null){this._locationStrategy.pushState(o,"",i,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Zn(n)),o)}replaceState(i,n="",o=null){this._locationStrategy.replaceState(o,"",i,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Zn(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",n){this._urlChangeListeners.forEach(o=>o(i,n))}subscribe(i,n,o){return this._subject.subscribe({next:i,error:n,complete:o})}};e.normalizeQueryParams=Zn,e.joinWithSlash=Hg,e.stripTrailingSlash=_D,e.\u0275fac=function(n){return new(n||e)(m(Kn))},e.\u0275prov=D({token:e,factory:()=>YF(),providedIn:"root"});let t=e;return t})();function YF(){return new Cr(m(Kn))}function ZF(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function yD(t){return t.replace(/\/index.html$/,"")}function QF(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var Jt=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Jt||{}),Xe=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Xe||{}),pi=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(pi||{}),Dr={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function KF(t){return Ai(t)[mt.LocaleId]}function XF(t,e,r){let i=Ai(t),n=[i[mt.DayPeriodsFormat],i[mt.DayPeriodsStandalone]],o=Oi(n,e);return Oi(o,r)}function JF(t,e,r){let i=Ai(t),n=[i[mt.DaysFormat],i[mt.DaysStandalone]],o=Oi(n,e);return Oi(o,r)}function eP(t,e,r){let i=Ai(t),n=[i[mt.MonthsFormat],i[mt.MonthsStandalone]],o=Oi(n,e);return Oi(o,r)}function tP(t,e){let i=Ai(t)[mt.Eras];return Oi(i,e)}function mu(t,e){let r=Ai(t);return Oi(r[mt.DateFormat],e)}function gu(t,e){let r=Ai(t);return Oi(r[mt.TimeFormat],e)}function vu(t,e){let i=Ai(t)[mt.DateTimeFormat];return Oi(i,e)}function Su(t,e){let r=Ai(t),i=r[mt.NumberSymbols][e];if(typeof i>"u"){if(e===Dr.CurrencyDecimal)return r[mt.NumberSymbols][Dr.Decimal];if(e===Dr.CurrencyGroup)return r[mt.NumberSymbols][Dr.Group]}return i}function RD(t){if(!t[mt.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[mt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function iP(t){let e=Ai(t);return RD(e),(e[mt.ExtraData][2]||[]).map(i=>typeof i=="string"?Ag(i):[Ag(i[0]),Ag(i[1])])}function nP(t,e,r){let i=Ai(t);RD(i);let n=[i[mt.ExtraData][0],i[mt.ExtraData][1]],o=Oi(n,e)||[];return Oi(o,r)||[]}function Oi(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function Ag(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var rP=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,bu={},oP=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Qn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Qn||{}),ze=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ze||{}),Be=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Be||{});function sP(t,e,r,i){let n=mP(t);e=Yn(r,e)||e;let s=[],a;for(;e;)if(a=oP.exec(e),a){s=s.concat(a.slice(1));let d=s.pop();if(!d)break;e=d}else{s.push(e);break}let c=n.getTimezoneOffset();i&&(c=OD(i,c),n=pP(n,i,!0));let l="";return s.forEach(d=>{let u=hP(d);l+=u?u(n,r,c):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Cu(t,e,r){let i=new Date(0);return i.setFullYear(t,e,r),i.setHours(0,0,0),i}function Yn(t,e){let r=KF(t);if(bu[r]??={},bu[r][e])return bu[r][e];let i="";switch(e){case"shortDate":i=mu(t,pi.Short);break;case"mediumDate":i=mu(t,pi.Medium);break;case"longDate":i=mu(t,pi.Long);break;case"fullDate":i=mu(t,pi.Full);break;case"shortTime":i=gu(t,pi.Short);break;case"mediumTime":i=gu(t,pi.Medium);break;case"longTime":i=gu(t,pi.Long);break;case"fullTime":i=gu(t,pi.Full);break;case"short":let n=Yn(t,"shortTime"),o=Yn(t,"shortDate");i=_u(vu(t,pi.Short),[n,o]);break;case"medium":let s=Yn(t,"mediumTime"),a=Yn(t,"mediumDate");i=_u(vu(t,pi.Medium),[s,a]);break;case"long":let c=Yn(t,"longTime"),l=Yn(t,"longDate");i=_u(vu(t,pi.Long),[c,l]);break;case"full":let d=Yn(t,"fullTime"),u=Yn(t,"fullDate");i=_u(vu(t,pi.Full),[d,u]);break}return i&&(bu[r][e]=i),i}function _u(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,i){return e!=null&&i in e?e[i]:r})),t}function Zi(t,e,r="-",i,n){let o="";(t<0||n&&t<=0)&&(n?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===ze.Hours)a===0&&r===-12&&(a=12);else if(t===ze.FractionalSeconds)return aP(a,e);let c=Su(s,Dr.MinusSign);return Zi(a,e,c,i,n)}}function cP(t,e){switch(t){case ze.FullYear:return e.getFullYear();case ze.Month:return e.getMonth();case ze.Date:return e.getDate();case ze.Hours:return e.getHours();case ze.Minutes:return e.getMinutes();case ze.Seconds:return e.getSeconds();case ze.FractionalSeconds:return e.getMilliseconds();case ze.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function it(t,e,r=Jt.Format,i=!1){return function(n,o){return lP(n,o,t,e,r,i)}}function lP(t,e,r,i,n,o){switch(r){case Be.Months:return eP(e,n,i)[t.getMonth()];case Be.Days:return JF(e,n,i)[t.getDay()];case Be.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let l=iP(e),d=nP(e,n,i),u=l.findIndex(f=>{if(Array.isArray(f)){let[p,_]=f,S=s>=p.hours&&a>=p.minutes,E=s<_.hours||s===_.hours&&a<_.minutes;if(p.hours<_.hours){if(S&&E)return!0}else if(S||E)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(u!==-1)return d[u]}return XF(e,n,i)[s<12?0:1];case Be.Eras:return tP(e,i)[t.getFullYear()<=0?0:1];default:let c=r;throw new Error(`unexpected translation type ${c}`)}}function yu(t){return function(e,r,i){let n=-1*i,o=Su(r,Dr.MinusSign),s=n>0?Math.floor(n/60):Math.ceil(n/60);switch(t){case Qn.Short:return(n>=0?"+":"")+Zi(s,2,o)+Zi(Math.abs(n%60),2,o);case Qn.ShortGMT:return"GMT"+(n>=0?"+":"")+Zi(s,1,o);case Qn.Long:return"GMT"+(n>=0?"+":"")+Zi(s,2,o)+":"+Zi(Math.abs(n%60),2,o);case Qn.Extended:return i===0?"Z":(n>=0?"+":"")+Zi(s,2,o)+":"+Zi(Math.abs(n%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var dP=0,xu=4;function uP(t){let e=Cu(t,dP,1).getDay();return Cu(t,0,1+(e<=xu?xu:xu+7)-e)}function AD(t){let e=t.getDay(),r=e===0?-3:xu-e;return Cu(t.getFullYear(),t.getMonth(),t.getDate()+r)}function Og(t,e=!1){return function(r,i){let n;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();n=1+Math.floor((s+o)/7)}else{let o=AD(r),s=uP(o.getFullYear()),a=o.getTime()-s.getTime();n=1+Math.round(a/6048e5)}return Zi(n,t,Su(i,Dr.MinusSign))}}function wu(t,e=!1){return function(r,i){let o=AD(r).getFullYear();return Zi(o,t,Su(i,Dr.MinusSign),e)}}var Ng={};function hP(t){if(Ng[t])return Ng[t];let e;switch(t){case"G":case"GG":case"GGG":e=it(Be.Eras,Xe.Abbreviated);break;case"GGGG":e=it(Be.Eras,Xe.Wide);break;case"GGGGG":e=it(Be.Eras,Xe.Narrow);break;case"y":e=wt(ze.FullYear,1,0,!1,!0);break;case"yy":e=wt(ze.FullYear,2,0,!0,!0);break;case"yyy":e=wt(ze.FullYear,3,0,!1,!0);break;case"yyyy":e=wt(ze.FullYear,4,0,!1,!0);break;case"Y":e=wu(1);break;case"YY":e=wu(2,!0);break;case"YYY":e=wu(3);break;case"YYYY":e=wu(4);break;case"M":case"L":e=wt(ze.Month,1,1);break;case"MM":case"LL":e=wt(ze.Month,2,1);break;case"MMM":e=it(Be.Months,Xe.Abbreviated);break;case"MMMM":e=it(Be.Months,Xe.Wide);break;case"MMMMM":e=it(Be.Months,Xe.Narrow);break;case"LLL":e=it(Be.Months,Xe.Abbreviated,Jt.Standalone);break;case"LLLL":e=it(Be.Months,Xe.Wide,Jt.Standalone);break;case"LLLLL":e=it(Be.Months,Xe.Narrow,Jt.Standalone);break;case"w":e=Og(1);break;case"ww":e=Og(2);break;case"W":e=Og(1,!0);break;case"d":e=wt(ze.Date,1);break;case"dd":e=wt(ze.Date,2);break;case"c":case"cc":e=wt(ze.Day,1);break;case"ccc":e=it(Be.Days,Xe.Abbreviated,Jt.Standalone);break;case"cccc":e=it(Be.Days,Xe.Wide,Jt.Standalone);break;case"ccccc":e=it(Be.Days,Xe.Narrow,Jt.Standalone);break;case"cccccc":e=it(Be.Days,Xe.Short,Jt.Standalone);break;case"E":case"EE":case"EEE":e=it(Be.Days,Xe.Abbreviated);break;case"EEEE":e=it(Be.Days,Xe.Wide);break;case"EEEEE":e=it(Be.Days,Xe.Narrow);break;case"EEEEEE":e=it(Be.Days,Xe.Short);break;case"a":case"aa":case"aaa":e=it(Be.DayPeriods,Xe.Abbreviated);break;case"aaaa":e=it(Be.DayPeriods,Xe.Wide);break;case"aaaaa":e=it(Be.DayPeriods,Xe.Narrow);break;case"b":case"bb":case"bbb":e=it(Be.DayPeriods,Xe.Abbreviated,Jt.Standalone,!0);break;case"bbbb":e=it(Be.DayPeriods,Xe.Wide,Jt.Standalone,!0);break;case"bbbbb":e=it(Be.DayPeriods,Xe.Narrow,Jt.Standalone,!0);break;case"B":case"BB":case"BBB":e=it(Be.DayPeriods,Xe.Abbreviated,Jt.Format,!0);break;case"BBBB":e=it(Be.DayPeriods,Xe.Wide,Jt.Format,!0);break;case"BBBBB":e=it(Be.DayPeriods,Xe.Narrow,Jt.Format,!0);break;case"h":e=wt(ze.Hours,1,-12);break;case"hh":e=wt(ze.Hours,2,-12);break;case"H":e=wt(ze.Hours,1);break;case"HH":e=wt(ze.Hours,2);break;case"m":e=wt(ze.Minutes,1);break;case"mm":e=wt(ze.Minutes,2);break;case"s":e=wt(ze.Seconds,1);break;case"ss":e=wt(ze.Seconds,2);break;case"S":e=wt(ze.FractionalSeconds,1);break;case"SS":e=wt(ze.FractionalSeconds,2);break;case"SSS":e=wt(ze.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=yu(Qn.Short);break;case"ZZZZZ":e=yu(Qn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=yu(Qn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=yu(Qn.Long);break;default:return null}return Ng[t]=e,e}function OD(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function fP(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function pP(t,e,r){let i=r?-1:1,n=t.getTimezoneOffset(),o=OD(e,n);return fP(t,i*(o-n))}function mP(t){if(wD(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[n,o=1,s=1]=t.split("-").map(a=>+a);return Cu(n,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let i;if(i=t.match(rP))return gP(i)}let e=new Date(t);if(!wD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function gP(t){let e=new Date(0),r=0,i=0,n=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),i=Number(t[9]+t[11])),n.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,l),e}function wD(t){return t instanceof Date&&!isNaN(t.valueOf())}function Mu(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let i=r.indexOf("="),[n,o]=i==-1?[r,""]:[r.slice(0,i),r.slice(i+1)];if(n.trim()===e)return decodeURIComponent(o)}return null}var Fg=/\s+/,xD=[],ys=(()=>{let e=class e{constructor(i,n){this._ngEl=i,this._renderer=n,this.initialClasses=xD,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(Fg):xD}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(Fg):i}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let n of i)this._updateState(n,!0);else if(i!=null)for(let n of Object.keys(i))this._updateState(n,!!i[n]);this._applyStateDiff()}_updateState(i,n){let o=this.stateMap.get(i);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(i,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let n=i[0],o=i[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(i,n){i=i.trim(),i.length>0&&i.split(Fg).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(xn))},e.\u0275dir=I({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Pg=class{constructor(e,r,i,n){this.$implicit=e,this.ngForOf=r,this.index=i,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},ND=(()=>{let e=class e{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,n,o){this._viewContainer=i,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let n=this._viewContainer;i.forEachOperation((o,s,a)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new Pg(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)n.remove(s===null?void 0:s);else if(s!==null){let c=n.get(s);n.move(c,a),DD(c,o)}});for(let o=0,s=n.length;o{let s=n.get(o.currentIndex);DD(s,o)})}static ngTemplateContextGuard(i,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(Cn))},e.\u0275dir=I({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function DD(t,e){t.context.$implicit=e.item}var Er=(()=>{let e=class e{constructor(i,n){this._viewContainer=i,this._context=new Lg,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){CD("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){CD("ngIfElse",i),this._elseTemplateRef=i,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(i,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re))},e.\u0275dir=I({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Lg=class{constructor(){this.$implicit=null,this.ngIf=null}};function CD(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Kt(e)}'.`)}var Eu=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},ku=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(i){this._ngSwitch=i,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(i){this._defaultViews.push(i)}_matchCase(i){let n=i===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(i){if(this._defaultViews.length>0&&i!==this._defaultUsed){this._defaultUsed=i;for(let n of this._defaultViews)n.enforceState(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),FD=(()=>{let e=class e{constructor(i,n,o){this.ngSwitch=o,o._addCase(),this._view=new Eu(i,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(ku,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),rZ=(()=>{let e=class e{constructor(i,n,o){o._addDefault(new Eu(i,n))}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(ku,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var oZ=(()=>{let e=class e{constructor(i,n,o){this._ngEl=i,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(i){this._ngStyle=i,!this._differ&&i&&(this._differ=this._differs.find(i).create())}ngDoCheck(){if(this._differ){let i=this._differ.diff(this._ngStyle);i&&this._applyChanges(i)}}_setStyle(i,n){let[o,s]=i.split("."),a=o.indexOf("-")===-1?void 0:bn.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(i){i.forEachRemovedItem(n=>this._setStyle(n.key,null)),i.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),i.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(hu),h(xn))},e.\u0275dir=I({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),lo=(()=>{let e=class e{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(i,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}};e.\u0275fac=function(n){return new(n||e)(h(Ve))},e.\u0275dir=I({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Me]});let t=e;return t})();function PD(t,e){return new G(2100,!1)}var jg=class{createSubscription(e,r){return bs(()=>e.subscribe({next:r,error:i=>{throw i}}))}dispose(e){bs(()=>e.unsubscribe())}},Vg=class{createSubscription(e,r){return e.then(r,i=>{throw i})}dispose(e){}},vP=new Vg,bP=new jg,Tu=(()=>{let e=class e{constructor(i){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=i}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(i){if(!this._obj){if(i)try{this.markForCheckOnValueUpdate=!1,this._subscribe(i)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return i!==this._obj?(this._dispose(),this.transform(i)):this._latestValue}_subscribe(i){this._obj=i,this._strategy=this._selectStrategy(i),this._subscription=this._strategy.createSubscription(i,n=>this._updateLatestValue(i,n))}_selectStrategy(i){if(xr(i))return vP;if(Mg(i))return bP;throw PD(e,i)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(i,n){i===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue,16))},e.\u0275pipe=Od({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var _P="mediumDate",yP=new g(""),wP=new g(""),sZ=(()=>{let e=class e{constructor(i,n,o){this.locale=i,this.defaultTimezone=n,this.defaultOptions=o}transform(i,n,o,s){if(i==null||i===""||i!==i)return null;try{let a=n??this.defaultOptions?.dateFormat??_P,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return sP(i,a,s||this.locale,c)}catch(a){throw PD(e,a.message)}}};e.\u0275fac=function(n){return new(n||e)(h(Ha,16),h(yP,24),h(wP,24))},e.\u0275pipe=Od({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function xP(t,e){return{key:t,value:e}}var aZ=(()=>{let e=class e{constructor(i){this.differs=i,this.keyValues=[],this.compareFn=ED}transform(i,n=ED){if(!i||!(i instanceof Map)&&typeof i!="object")return null;this.differ??=this.differs.find(i).create();let o=this.differ.diff(i),s=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(xP(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}};e.\u0275fac=function(n){return new(n||e)(h(hu,16))},e.\u0275pipe=Od({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function ED(t,e){let r=t.key,i=e.key;if(r===i)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(r===null)return 1;if(i===null)return-1;if(typeof r=="string"&&typeof i=="string")return r{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Gg="browser",DP="server";function Wg(t){return t===Gg}function Ru(t){return t===DP}var LD=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Wg(v(ki))?new Bg(v(K),window):new zg});let t=e;return t})(),Bg=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=CP(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),i=r.left+this.window.pageXOffset,n=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],n-o[1])}};function CP(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),n=i.currentNode;for(;n;){let o=n.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}n=i.nextNode()}}return null}var zg=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},_s=class{};var Ga=class{},Ou=class{},Xn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let i=r.indexOf(":");if(i>0){let n=r.slice(0,i),o=n.toLowerCase(),s=r.slice(i+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,i)=>{this.setHeaderEntries(i,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,i])=>{this.setHeaderEntries(r,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,r);let n=(e.op==="a"?this.headers.get(r):void 0)||[];n.push(...i),this.headers.set(r,n);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let i=(Array.isArray(r)?r:[r]).map(o=>o.toString()),n=e.toLowerCase();this.headers.set(n,i),this.maybeSetNormalizedName(e,n)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Yg=class{encodeKey(e){return jD(e)}encodeValue(e){return jD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function EP(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[s,a]=o==-1?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,o)),e.decodeValue(n.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var IP=/%(\d[a-f0-9])/gi,SP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function jD(t){return encodeURIComponent(t).replace(IP,(e,r)=>SP[r]??e)}function Au(t){return`${t}`}var In=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yg,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=EP(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let i=e.fromObject[r],n=Array.isArray(i)?i.map(Au):[Au(i)];this.map.set(r,n)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(i=>{let n=e[i];Array.isArray(n)?n.forEach(o=>{r.push({param:i,value:o,op:"a"})}):r.push({param:i,value:n,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(i=>r+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Au(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],n=i.indexOf(Au(e.value));n!==-1&&i.splice(n,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Zg=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function MP(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function VD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function BD(t){return typeof Blob<"u"&&t instanceof Blob}function zD(t){return typeof FormData<"u"&&t instanceof FormData}function kP(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var $a=class t{constructor(e,r,i,n){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(MP(this.method)||n?(this.body=i!==void 0?i:null,o=n):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Xn,this.context??=new Zg,!this.params)this.params=new In,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(p,e.setHeaders[p]),l)),e.setParams&&(d=Object.keys(e.setParams).reduce((f,p)=>f.set(p,e.setParams[p]),d)),new t(r,i,s,{params:d,headers:l,context:u,reportProgress:c,responseType:n,withCredentials:a,transferCache:o})}},Mr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Mr||{}),Wa=class{constructor(e,r=200,i="OK"){this.headers=e.headers||new Xn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Nu=class t extends Wa{constructor(e={}){super(e),this.type=Mr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},qa=class t extends Wa{constructor(e={}){super(e),this.type=Mr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Sr=class extends Wa{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},WD=200,TP=204;function qg(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Xg=(()=>{let e=class e{constructor(i){this.handler=i}request(i,n,o={}){let s;if(i instanceof $a)s=i;else{let l;o.headers instanceof Xn?l=o.headers:l=new Xn(o.headers);let d;o.params&&(o.params instanceof In?d=o.params:d=new In({fromObject:o.params})),s=new $a(i,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=V(s).pipe(un(l=>this.handler.handle(l)));if(i instanceof $a||o.observe==="events")return a;let c=a.pipe(ge(l=>l instanceof qa));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(P(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(P(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(i,n={}){return this.request("DELETE",i,n)}get(i,n={}){return this.request("GET",i,n)}head(i,n={}){return this.request("HEAD",i,n)}jsonp(i,n){return this.request("JSONP",i,{params:new In().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,n={}){return this.request("OPTIONS",i,n)}patch(i,n,o={}){return this.request("PATCH",i,qg(o,n))}post(i,n,o={}){return this.request("POST",i,qg(o,n))}put(i,n,o={}){return this.request("PUT",i,qg(o,n))}};e.\u0275fac=function(n){return new(n||e)(m(Ga))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),RP=/^\)\]\}',?\n/,AP="X-Request-URL";function UD(t){if(t.url)return t.url;let e=AP.toLocaleLowerCase();return t.headers.get(e)}var OP=(()=>{let e=class e{constructor(){this.fetchImpl=v(Qg,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=v(F)}handle(i){return new oe(n=>{let o=new AbortController;return this.doRequest(i,o.signal,n).then(Kg,s=>n.error(new Sr({error:s}))),()=>o.abort()})}doRequest(i,n,o){return ia(this,null,function*(){let s=this.createRequestInit(i),a;try{let _=this.fetchImpl(i.urlWithParams,w({signal:n},s));NP(_),o.next({type:Mr.Sent}),a=yield _}catch(_){o.error(new Sr({error:_,status:_.status??0,statusText:_.statusText,url:i.urlWithParams,headers:_.headers}));return}let c=new Xn(a.headers),l=a.statusText,d=UD(a)??i.urlWithParams,u=a.status,f=null;if(i.reportProgress&&o.next(new Nu({headers:c,status:u,statusText:l,url:d})),a.body){let _=a.headers.get("content-length"),S=[],E=a.body.getReader(),R=0,he,Ne,Ue=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ia(this,null,function*(){for(;;){let{done:xt,value:Ci}=yield E.read();if(xt)break;if(S.push(Ci),R+=Ci.length,i.reportProgress){Ne=i.responseType==="text"?(Ne??"")+(he??=new TextDecoder).decode(Ci,{stream:!0}):void 0;let No=()=>o.next({type:Mr.DownloadProgress,total:_?+_:void 0,loaded:R,partialText:Ne});Ue?Ue.run(No):No()}}}));let Di=this.concatChunks(S,R);try{let xt=a.headers.get("Content-Type")??"";f=this.parseBody(i,Di,xt)}catch(xt){o.error(new Sr({error:xt,headers:new Xn(a.headers),status:a.status,statusText:a.statusText,url:UD(a)??i.urlWithParams}));return}}u===0&&(u=f?WD:0),u>=200&&u<300?(o.next(new qa({body:f,headers:c,status:u,statusText:l,url:d})),o.complete()):o.error(new Sr({error:f,headers:c,status:u,statusText:l,url:d}))})}parseBody(i,n,o){switch(i.responseType){case"json":let s=new TextDecoder().decode(n).replace(RP,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(i){let n={},o=i.withCredentials?"include":void 0;if(i.headers.forEach((s,a)=>n[s]=a.join(",")),n.Accept??="application/json, text/plain, */*",!n["Content-Type"]){let s=i.detectContentTypeHeader();s!==null&&(n["Content-Type"]=s)}return{body:i.serializeBody(),method:i.method,headers:n,credentials:o}}concatChunks(i,n){let o=new Uint8Array(n),s=0;for(let a of i)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qg=class{};function Kg(){}function NP(t){t.then(Kg,Kg)}function qD(t,e){return e(t)}function FP(t,e){return(r,i)=>e.intercept(r,{handle:n=>t(n,i)})}function PP(t,e,r){return(i,n)=>ai(r,()=>e(i,o=>t(o,n)))}var LP=new g(""),Jg=new g(""),jP=new g(""),YD=new g("",{providedIn:"root",factory:()=>!0});function VP(){let t=null;return(e,r)=>{t===null&&(t=(v(LP,{optional:!0})??[]).reduceRight(FP,qD));let i=v(wn);if(v(YD)){let o=i.add();return t(e,r).pipe(Ei(()=>i.remove(o)))}else return t(e,r)}}var HD=(()=>{let e=class e extends Ga{constructor(i,n){super(),this.backend=i,this.injector=n,this.chain=null,this.pendingTasks=v(wn),this.contributeToStability=v(YD)}handle(i){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Jg),...this.injector.get(jP,[])]));this.chain=n.reduceRight((o,s)=>PP(o,s,this.injector),qD)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(i,o=>this.backend.handle(o)).pipe(Ei(()=>this.pendingTasks.remove(n)))}else return this.chain(i,n=>this.backend.handle(n))}};e.\u0275fac=function(n){return new(n||e)(m(Ou),m(_t))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var BP=/^\)\]\}',?\n/;function zP(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var $D=(()=>{let e=class e{constructor(i){this.xhrFactory=i}handle(i){if(i.method==="JSONP")throw new G(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?He(n.\u0275loadImpl()):V(null)).pipe(Oe(()=>new oe(s=>{let a=n.build();if(a.open(i.method,i.urlWithParams),i.withCredentials&&(a.withCredentials=!0),i.headers.forEach((E,R)=>a.setRequestHeader(E,R.join(","))),i.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){let E=i.detectContentTypeHeader();E!==null&&a.setRequestHeader("Content-Type",E)}if(i.responseType){let E=i.responseType.toLowerCase();a.responseType=E!=="json"?E:"text"}let c=i.serializeBody(),l=null,d=()=>{if(l!==null)return l;let E=a.statusText||"OK",R=new Xn(a.getAllResponseHeaders()),he=zP(a)||i.url;return l=new Nu({headers:R,status:a.status,statusText:E,url:he}),l},u=()=>{let{headers:E,status:R,statusText:he,url:Ne}=d(),Ue=null;R!==TP&&(Ue=typeof a.response>"u"?a.responseText:a.response),R===0&&(R=Ue?WD:0);let Di=R>=200&&R<300;if(i.responseType==="json"&&typeof Ue=="string"){let xt=Ue;Ue=Ue.replace(BP,"");try{Ue=Ue!==""?JSON.parse(Ue):null}catch(Ci){Ue=xt,Di&&(Di=!1,Ue={error:Ci,text:Ue})}}Di?(s.next(new qa({body:Ue,headers:E,status:R,statusText:he,url:Ne||void 0})),s.complete()):s.error(new Sr({error:Ue,headers:E,status:R,statusText:he,url:Ne||void 0}))},f=E=>{let{url:R}=d(),he=new Sr({error:E,status:a.status||0,statusText:a.statusText||"Unknown Error",url:R||void 0});s.error(he)},p=!1,_=E=>{p||(s.next(d()),p=!0);let R={type:Mr.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(R.total=E.total),i.responseType==="text"&&a.responseText&&(R.partialText=a.responseText),s.next(R)},S=E=>{let R={type:Mr.UploadProgress,loaded:E.loaded};E.lengthComputable&&(R.total=E.total),s.next(R)};return a.addEventListener("load",u),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),i.reportProgress&&(a.addEventListener("progress",_),c!==null&&a.upload&&a.upload.addEventListener("progress",S)),a.send(c),s.next({type:Mr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",u),a.removeEventListener("timeout",f),i.reportProgress&&(a.removeEventListener("progress",_),c!==null&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(n){return new(n||e)(m(_s))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ZD=new g(""),UP="XSRF-TOKEN",HP=new g("",{providedIn:"root",factory:()=>UP}),$P="X-XSRF-TOKEN",GP=new g("",{providedIn:"root",factory:()=>$P}),Fu=class{},WP=(()=>{let e=class e{constructor(i,n,o){this.doc=i,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mu(i,this.cookieName),this.lastCookieString=i),this.lastToken}};e.\u0275fac=function(n){return new(n||e)(m(K),m(ki),m(HP))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function qP(t,e){let r=t.url.toLowerCase();if(!v(ZD)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let i=v(Fu).getToken(),n=v(GP);return i!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,i)})),e(t)}var QD=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(QD||{});function YP(t,e){return{\u0275kind:t,\u0275providers:e}}function wZ(...t){let e=[Xg,$D,HD,{provide:Ga,useExisting:HD},{provide:Ou,useFactory:()=>v(OP,{optional:!0})??v($D)},{provide:Jg,useValue:qP,multi:!0},{provide:ZD,useValue:!0},{provide:Fu,useClass:WP}];for(let r of t)e.push(...r.\u0275providers);return us(e)}var GD=new g("");function xZ(){return YP(QD.LegacyInterceptors,[{provide:GD,useFactory:VP},{provide:Jg,useExisting:GD,multi:!0}])}var iv=class extends Du{constructor(){super(...arguments),this.supportsDOMEvents=!0}},nv=class t extends iv{static makeCurrent(){SD(new t)}onAndCancel(e,r,i){return e.addEventListener(r,i),()=>{e.removeEventListener(r,i)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=QP();return r==null?null:KP(r)}resetBaseElement(){Ya=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Mu(document.cookie,e)}},Ya=null;function QP(){return Ya=Ya||document.querySelector("base"),Ya?Ya.getAttribute("href"):null}function KP(t){return new URL(t,document.baseURI).pathname}var rv=class{addToWindow(e){ht.getAngularTestability=(i,n=!0)=>{let o=e.findTestabilityInTree(i,n);if(o==null)throw new G(5103,!1);return o},ht.getAllAngularTestabilities=()=>e.getAllTestabilities(),ht.getAllAngularRootElements=()=>e.getAllRootElements();let r=i=>{let n=ht.getAllAngularTestabilities(),o=n.length,s=function(){o--,o==0&&i()};n.forEach(a=>{a.whenStable(s)})};ht.frameworkStabilizers||(ht.frameworkStabilizers=[]),ht.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,i){if(r==null)return null;let n=e.getTestability(r);return n??(i?En().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},XP=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Pu=new g(""),eC=(()=>{let e=class e{constructor(i,n){this._zone=n,this._eventNameToPlugin=new Map,i.forEach(o=>{o.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,n,o){return this._findPluginFor(n).addEventListener(i,n,o)}getZone(){return this._zone}_findPluginFor(i){let n=this._eventNameToPlugin.get(i);if(n)return n;if(n=this._plugins.find(s=>s.supports(i)),!n)throw new G(5101,!1);return this._eventNameToPlugin.set(i,n),n}};e.\u0275fac=function(n){return new(n||e)(m(Pu),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Za=class{constructor(e){this._doc=e}},ev="ng-app-id",tC=(()=>{let e=class e{constructor(i,n,o,s={}){this.doc=i,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ru(s),this.resetHostNodes()}addStyles(i){for(let n of i)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(i){for(let n of i)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(n=>n.remove()),i.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let n of this.getAllStyles())this.addStyleToHost(i,n)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let n of this.hostNodes)this.addStyleToHost(n,i)}onStyleRemoved(i){let n=this.styleRef;n.get(i)?.elements?.forEach(o=>o.remove()),n.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${ev}="${this.appId}"]`);if(i?.length){let n=new Map;return i.forEach(o=>{o.textContent!=null&&n.set(o.textContent,o)}),n}return null}changeUsageCount(i,n){let o=this.styleRef;if(o.has(i)){let s=o.get(i);return s.usage+=n,s.usage}return o.set(i,{usage:n,elements:[]}),n}getStyleElement(i,n){let o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===i)return o.delete(n),s.removeAttribute(ev),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(ev,this.appId),i.appendChild(a),a}}addStyleToHost(i,n){let o=this.getStyleElement(i,n),s=this.styleRef,a=s.get(n)?.elements;a?a.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(ms),m(Na,8),m(ki))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),tv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},sv=/%COMP%/g,iC="%COMP%",JP=`_nghost-${iC}`,eL=`_ngcontent-${iC}`,tL=!0,iL=new g("",{providedIn:"root",factory:()=>tL});function nL(t){return eL.replace(sv,t)}function rL(t){return JP.replace(sv,t)}function nC(t,e){return e.map(r=>r.replace(sv,t))}var KD=(()=>{let e=class e{constructor(i,n,o,s,a,c,l,d=null){this.eventManager=i,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Ru(c),this.defaultRenderer=new Qa(i,a,l,this.platformIsServer)}createRenderer(i,n){if(!i||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===mn.ShadowDom&&(n=Q(w({},n),{encapsulation:mn.Emulated}));let o=this.getOrCreateRenderer(i,n);return o instanceof Lu?o.applyToHost(i):o instanceof Ka&&o.applyStyles(),o}getOrCreateRenderer(i,n){let o=this.rendererByCompId,s=o.get(n.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(n.encapsulation){case mn.Emulated:s=new Lu(l,d,n,this.appId,u,a,c,f);break;case mn.ShadowDom:return new ov(l,d,i,n,a,c,this.nonce,f);default:s=new Ka(l,d,n,u,a,c,f);break}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(m(eC),m(tC),m(ms),m(iL),m(K),m(ki),m(F),m(Na))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qa=class{constructor(e,r,i,n){this.eventManager=e,this.doc=r,this.ngZone=i,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(tv[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(XD(e)?e.content:e).appendChild(r)}insertBefore(e,r,i){e&&(XD(e)?e.content:e).insertBefore(r,i)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new G(-5104,!1);return r||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,i,n){if(n){r=n+":"+r;let o=tv[n];o?e.setAttributeNS(o,r,i):e.setAttribute(r,i)}else e.setAttribute(r,i)}removeAttribute(e,r,i){if(i){let n=tv[i];n?e.removeAttributeNS(n,r):e.removeAttribute(`${i}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,i,n){n&(bn.DashCase|bn.Important)?e.style.setProperty(r,i,n&bn.Important?"important":""):e.style[r]=i}removeStyle(e,r,i){i&bn.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,i){e!=null&&(e[r]=i)}setValue(e,r){e.nodeValue=r}listen(e,r,i){if(typeof e=="string"&&(e=En().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(i))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function XD(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ov=class extends Qa{constructor(e,r,i,n,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=nC(n.id,n.styles);for(let d of l){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,i){return super.insertBefore(this.nodeOrShadowRoot(e),r,i)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ka=class extends Qa{constructor(e,r,i,n,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=c?nC(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Lu=class extends Ka{constructor(e,r,i,n,o,s,a,c){let l=n+"-"+i.id;super(e,r,i,o,s,a,c,l),this.contentAttr=nL(l),this.hostAttr=rL(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let i=super.createElement(e,r);return super.setAttribute(i,this.contentAttr,""),i}},oL=(()=>{let e=class e extends Za{constructor(i){super(i)}supports(i){return!0}addEventListener(i,n,o){return i.addEventListener(n,o,!1),()=>this.removeEventListener(i,n,o)}removeEventListener(i,n,o){return i.removeEventListener(n,o)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),sL=(()=>{let e=class e extends Za{constructor(i){super(i),this.delegate=v(gD,{optional:!0})}supports(i){return this.delegate?this.delegate.supports(i):!1}addEventListener(i,n,o){return this.delegate.addEventListener(i,n,o)}removeEventListener(i,n,o){return this.delegate.removeEventListener(i,n,o)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),JD=["alt","control","meta","shift"],aL={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cL={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},lL=(()=>{let e=class e extends Za{constructor(i){super(i)}supports(i){return e.parseEventName(i)!=null}addEventListener(i,n,o){let s=e.parseEventName(n),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>En().onAndCancel(i,s.domEventName,a))}static parseEventName(i){let n=i.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(n.pop()),a="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),a="code."),JD.forEach(d=>{let u=n.indexOf(d);u>-1&&(n.splice(u,1),a+=d+".")}),a+=s,n.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(i,n){let o=aL[i.key]||i.key,s="";return n.indexOf("code.")>-1&&(o=i.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),JD.forEach(a=>{if(a!==o){let c=cL[a];c(i)&&(s+=a+".")}}),s+=o,s===n)}static eventCallback(i,n,o){return s=>{e.matchEventFullKeyCode(s,i)&&o.runGuarded(()=>n(s))}}static _normalizeKey(i){return i==="esc"?"escape":i}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function dL(){nv.makeCurrent()}function uL(){return new Ft}function hL(){return jw(document),document}var fL=[{provide:ki,useValue:Gg},{provide:ig,useValue:dL,multi:!0},{provide:K,useFactory:hL,deps:[]}],PZ=kg(pD,"browser",fL),pL=new g(""),mL=[{provide:Ua,useClass:rv,deps:[]},{provide:Ig,useClass:au,deps:[F,cu,Ua]},{provide:au,useClass:au,deps:[F,cu,Ua]}],gL=[{provide:Nd,useValue:"root"},{provide:Ft,useFactory:uL,deps:[]},{provide:Pu,useClass:oL,multi:!0,deps:[K,F,ki]},{provide:Pu,useClass:lL,multi:!0,deps:[K]},{provide:Pu,useClass:sL,multi:!0},KD,tC,eC,{provide:cs,useExisting:KD},{provide:_s,useClass:XP,deps:[]},[]],LZ=(()=>{let e=class e{constructor(i){}static withServerTransition(i){return{ngModule:e,providers:[{provide:ms,useValue:i.appId}]}}};e.\u0275fac=function(n){return new(n||e)(m(pL,12))},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[...gL,...mL],imports:[Gt,mD]});let t=e;return t})();var rC=(()=>{let e=class e{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var av=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=m(vL),o},providedIn:"root"});let t=e;return t})(),vL=(()=>{let e=class e extends av{constructor(i){super(),this._doc=i}sanitize(i,n){if(n==null)return null;switch(i){case Ht.NONE:return n;case Ht.HTML:return br(n,"HTML")?Ti(n):Qw(this._doc,String(n)).toString();case Ht.STYLE:return br(n,"Style")?Ti(n):n;case Ht.SCRIPT:if(br(n,"Script"))return Ti(n);throw new G(5200,!1);case Ht.URL:return br(n,"URL")?Ti(n):$d(String(n));case Ht.RESOURCE_URL:if(br(n,"ResourceURL"))return Ti(n);throw new G(5201,!1);default:throw new G(5202,!1)}}bypassSecurityTrustHtml(i){return Bw(i)}bypassSecurityTrustStyle(i){return zw(i)}bypassSecurityTrustScript(i){return Uw(i)}bypassSecurityTrustUrl(i){return Hw(i)}bypassSecurityTrustResourceUrl(i){return $w(i)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cv(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Ra(cv);let i=r?e?.injector?.get(vr)??v(vr):null,n;e?.requireSync?n=vs({kind:0}):n=vs({kind:1,value:e?.initialValue});let o=t.subscribe({next:s=>n.set({kind:1,value:s}),error:s=>{if(e?.rejectErrors)throw s;n.set({kind:2,error:s})}});return i?.onDestroy(o.unsubscribe.bind(o)),fu(()=>{let s=n();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new G(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}var hv={};function gv(t,e){if(hv[t]=(hv[t]||0)+1,typeof e=="function")return lv(t,(...i)=>Q(w({},e(...i)),{type:t}));switch(e?e._as:"empty"){case"empty":return lv(t,()=>({type:t}));case"props":return lv(t,i=>Q(w({},i),{type:t}));default:throw new Error("Unexpected config.")}}function Tt(){return{_as:"props",_p:void 0}}function lv(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}function bL(t){return t.charAt(0).toUpperCase()+t.substring(1)}function _L(t){return t.charAt(0).toLowerCase()+t.substring(1)}function ws(t){let{source:e,events:r}=t;return Object.keys(r).reduce((i,n)=>Q(w({},i),{[yL(n)]:gv(wL(e,n),r[n])}),{})}function Jn(){return Tt()}function yL(t){return t.trim().split(" ").map((e,r)=>r===0?_L(e):bL(e)).join("")}function wL(t,e){return`[${t}] ${e}`}var wC="@ngrx/store/init",xs=(()=>{let e=class e extends Pe{constructor(){super({type:wC})}next(i){if(typeof i=="function")throw new TypeError(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Hr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ne=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:i}=this;if(ce(i))try{i()}catch(o){e=o instanceof ll?o.errors:[o]}let{_finalizers:n}=this;if(n){this._finalizers=null;for(let o of n)try{iy(o)}catch(s){e=e??[],s instanceof ll?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ll(e)}}add(e){var r;if(e&&e!==this)if(this.closed)iy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Hr(r,e)}remove(e){let{_finalizers:r}=this;r&&Hr(r,e),e instanceof t&&e._removeParent(this)}};ne.EMPTY=(()=>{let t=new ne;return t.closed=!0,t})();var Bf=ne.EMPTY;function dl(t){return t instanceof ne||t&&"closed"in t&&ce(t.remove)&&ce(t.add)&&ce(t.unsubscribe)}function iy(t){ce(t)?t():t.unsubscribe()}var Hi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Uo={setTimeout(t,e,...r){let{delegate:i}=Uo;return i?.setTimeout?i.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Uo;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ul(t){Uo.setTimeout(()=>{let{onUnhandledError:e}=Hi;if(e)e(t);else throw t})}function Un(){}var ny=zf("C",void 0,void 0);function ry(t){return zf("E",void 0,t)}function oy(t){return zf("N",t,void 0)}function zf(t,e,r){return{kind:t,value:e,error:r}}var $r=null;function Ho(t){if(Hi.useDeprecatedSynchronousErrorHandling){let e=!$r;if(e&&($r={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:i}=$r;if($r=null,r)throw i}}else t()}function sy(t){Hi.useDeprecatedSynchronousErrorHandling&&$r&&($r.errorThrown=!0,$r.error=t)}var Gr=class extends ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,dl(e)&&e.add(this)):this.destination=cT}static create(e,r,i){return new $i(e,r,i)}next(e){this.isStopped?Hf(oy(e),this):this._next(e)}error(e){this.isStopped?Hf(ry(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Hf(ny,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},sT=Function.prototype.bind;function Uf(t,e){return sT.call(t,e)}var $f=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(i){hl(i)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(i){hl(i)}else hl(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){hl(r)}}},$i=class extends Gr{constructor(e,r,i){super();let n;if(ce(e)||!e)n={next:e??void 0,error:r??void 0,complete:i??void 0};else{let o;this&&Hi.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),n={next:e.next&&Uf(e.next,o),error:e.error&&Uf(e.error,o),complete:e.complete&&Uf(e.complete,o)}):n=e}this.destination=new $f(n)}};function hl(t){Hi.useDeprecatedSynchronousErrorHandling?sy(t):ul(t)}function aT(t){throw t}function Hf(t,e){let{onStoppedNotification:r}=Hi;r&&Uo.setTimeout(()=>r(t,e))}var cT={closed:!0,next:Un,error:aT,complete:Un};var $o=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Nt(t){return t}function Gf(...t){return Wf(t)}function Wf(t){return t.length===0?Nt:t.length===1?t[0]:function(r){return t.reduce((i,n)=>n(i),r)}}var oe=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let i=new t;return i.source=this,i.operator=r,i}subscribe(r,i,n){let o=dT(r)?r:new $i(r,i,n);return Ho(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(i){r.error(i)}}forEach(r,i){return i=ay(i),new i((n,o)=>{let s=new $i({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:n});this.subscribe(s)})}_subscribe(r){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(r)}[$o](){return this}pipe(...r){return Wf(r)(this)}toPromise(r){return r=ay(r),new r((i,n)=>{let o;this.subscribe(s=>o=s,s=>n(s),()=>i(o))})}}return t.create=e=>new t(e),t})();function ay(t){var e;return(e=t??Hi.Promise)!==null&&e!==void 0?e:Promise}function lT(t){return t&&ce(t.next)&&ce(t.error)&&ce(t.complete)}function dT(t){return t&&t instanceof Gr||lT(t)&&dl(t)}function qf(t){return ce(t?.lift)}function J(t){return e=>{if(qf(e))return e.lift(function(r){try{return t(r,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function X(t,e,r,i,n){return new ca(t,e,r,i,n)}var ca=class extends Gr{constructor(e,r,i,n,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=n?function(a){try{n(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Go(){return J((t,e)=>{let r=null;t._refCount++;let i=X(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let n=t._connection,o=r;r=null,n&&(!o||n===o)&&n.unsubscribe(),e.unsubscribe()});t.subscribe(i),i.closed||(r=t.connect())})}var dr=class extends oe{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,qf(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ne;let r=this.getSubject();e.add(this.source.subscribe(X(r,void 0,()=>{this._teardown(),r.complete()},i=>{this._teardown(),r.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ne.EMPTY)}return e}refCount(){return Go()(this)}};var Wo={schedule(t){let e=requestAnimationFrame,r=cancelAnimationFrame,{delegate:i}=Wo;i&&(e=i.requestAnimationFrame,r=i.cancelAnimationFrame);let n=e(o=>{r=void 0,t(o)});return new ne(()=>r?.(n))},requestAnimationFrame(...t){let{delegate:e}=Wo;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Wo;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var cy=lr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var C=(()=>{class t extends oe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let i=new fl(this,this);return i.operator=r,i}_throwIfClosed(){if(this.closed)throw new cy}next(r){Ho(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(r)}})}error(r){Ho(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:i}=this;for(;i.length;)i.shift().error(r)}})}complete(){Ho(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:i,isStopped:n,observers:o}=this;return i||n?Bf:(this.currentObservers=null,o.push(r),new ne(()=>{this.currentObservers=null,Hr(o,r)}))}_checkFinalizedStatuses(r){let{hasError:i,thrownError:n,isStopped:o}=this;i?r.error(n):o&&r.complete()}asObservable(){let r=new oe;return r.source=this,r}}return t.create=(e,r)=>new fl(e,r),t})(),fl=class extends C{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,e)}error(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&i!==void 0?i:Bf}};var Pe=class extends C{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:i}=this;if(e)throw r;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}};var la={now(){return(la.delegate||Date).now()},delegate:void 0};var Wr=class extends C{constructor(e=1/0,r=1/0,i=la){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:i,_infiniteTimeWindow:n,_timestampProvider:o,_windowTime:s}=this;r||(i.push(e),!n&&i.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:n}=this,o=n.slice();for(let s=0;sly(e)&&t()),e},clearImmediate(t){ly(t)}};var{setImmediate:hT,clearImmediate:fT}=dy,ua={setImmediate(...t){let{delegate:e}=ua;return(e?.setImmediate||hT)(...t)},clearImmediate(t){let{delegate:e}=ua;return(e?.clearImmediate||fT)(t)},delegate:void 0};var ml=class extends cn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,i=0){return i!==null&&i>0?super.requestAsyncId(e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=ua.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,i=0){var n;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(e,r,i);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(ua.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var qo=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,i){return new this.schedulerActionCtor(this,e).schedule(i,r)}};qo.now=la.now;var ln=class extends qo{constructor(e,r=qo.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,i){for(;e=r.shift();)e.unsubscribe();throw i}}};var gl=class extends ln{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:i}=this,n;e=e||i.shift();do if(n=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift());if(this._active=!1,n){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw n}}};var ha=new gl(ml);var Gi=new ln(cn),uy=Gi;var vl=class extends cn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}schedule(e,r=0){return r>0?super.schedule(e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)}execute(e,r){return r>0||this.closed?super.execute(e,r):this._execute(e,r)}requestAsyncId(e,r,i=0){return i!=null&&i>0||i==null&&this.delay>0?super.requestAsyncId(e,r,i):(e.flush(this),0)}};var bl=class extends ln{};var Qf=new bl(vl);var _l=class extends cn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,i=0){return i!==null&&i>0?super.requestAsyncId(e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=Wo.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,r,i=0){var n;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(e,r,i);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(Wo.cancelAnimationFrame(r),e._scheduled=void 0)}};var yl=class extends ln{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:i}=this,n;e=e||i.shift();do if(n=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift());if(this._active=!1,n){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw n}}};var wl=new yl(_l);var ct=new oe(t=>t.complete());function xl(t){return t&&ce(t.schedule)}function Kf(t){return t[t.length-1]}function Yo(t){return ce(Kf(t))?t.pop():void 0}function dn(t){return xl(Kf(t))?t.pop():void 0}function hy(t,e){return typeof Kf(t)=="number"?t.pop():e}function py(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o}function my(t,e,r,i){function n(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(d){try{l(i.next(d))}catch(u){s(u)}}function c(d){try{l(i.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):n(d.value).then(a,c)}l((i=i.apply(t,e||[])).next())})}function fy(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qr(t){return this instanceof qr?(this.v=t,this):new qr(t)}function gy(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(f){i[f]&&(n[f]=function(p){return new Promise(function(v,S){o.push([f,p,v,S])>1||a(f,p)})})}function a(f,p){try{c(i[f](p))}catch(v){u(o[0][3],v)}}function c(f){f.value instanceof qr?Promise.resolve(f.value.v).then(l,d):u(o[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function u(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function vy(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof fy=="function"?fy(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),n(a,c,s.done,s.value)})}}function n(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Zo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Dl(t){return ce(t?.then)}function Cl(t){return ce(t[$o])}function El(t){return Symbol.asyncIterator&&ce(t?.[Symbol.asyncIterator])}function Il(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function pT(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Sl=pT();function Ml(t){return ce(t?.[Sl])}function kl(t){return gy(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:i,done:n}=yield qr(r.read());if(n)return yield qr(void 0);yield yield qr(i)}}finally{r.releaseLock()}})}function Tl(t){return ce(t?.getReader)}function Ee(t){if(t instanceof oe)return t;if(t!=null){if(Cl(t))return mT(t);if(Zo(t))return gT(t);if(Dl(t))return vT(t);if(El(t))return by(t);if(Ml(t))return bT(t);if(Tl(t))return _T(t)}throw Il(t)}function mT(t){return new oe(e=>{let r=t[$o]();if(ce(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function gT(t){return new oe(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,ul)})}function bT(t){return new oe(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function by(t){return new oe(e=>{yT(t,e).catch(r=>e.error(r))})}function _T(t){return by(kl(t))}function yT(t,e){var r,i,n,o;return my(this,void 0,void 0,function*(){try{for(r=vy(t);i=yield r.next(),!i.done;){let s=i.value;if(e.next(s),e.closed)return}}catch(s){n={error:s}}finally{try{i&&!i.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}e.complete()})}function Bt(t,e,r,i=0,n=!1){let o=e.schedule(function(){r(),n?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!n)return o}function Yr(t,e=0){return J((r,i)=>{r.subscribe(X(i,n=>Bt(i,t,()=>i.next(n),e),()=>Bt(i,t,()=>i.complete(),e),n=>Bt(i,t,()=>i.error(n),e)))})}function Rl(t,e=0){return J((r,i)=>{i.add(t.schedule(()=>r.subscribe(i),e))})}function _y(t,e){return Ee(t).pipe(Rl(e),Yr(e))}function yy(t,e){return Ee(t).pipe(Rl(e),Yr(e))}function wy(t,e){return new oe(r=>{let i=0;return e.schedule(function(){i===t.length?r.complete():(r.next(t[i++]),r.closed||this.schedule())})})}function xy(t,e){return new oe(r=>{let i;return Bt(r,e,()=>{i=t[Sl](),Bt(r,e,()=>{let n,o;try{({value:n,done:o}=i.next())}catch(s){r.error(s);return}o?r.complete():r.next(n)},0,!0)}),()=>ce(i?.return)&&i.return()})}function Al(t,e){if(!t)throw new Error("Iterable cannot be null");return new oe(r=>{Bt(r,e,()=>{let i=t[Symbol.asyncIterator]();Bt(r,e,()=>{i.next().then(n=>{n.done?r.complete():r.next(n.value)})},0,!0)})})}function Dy(t,e){return Al(kl(t),e)}function Cy(t,e){if(t!=null){if(Cl(t))return _y(t,e);if(Zo(t))return wy(t,e);if(Dl(t))return yy(t,e);if(El(t))return Al(t,e);if(Ml(t))return xy(t,e);if(Tl(t))return Dy(t,e)}throw Il(t)}function He(t,e){return e?Cy(t,e):Ee(t)}function V(...t){let e=dn(t);return He(t,e)}function un(t,e){let r=ce(t)?t:()=>t,i=n=>n.error(r());return new oe(e?n=>e.schedule(i,0,n):i)}var ur=class t{constructor(e,r,i){this.kind=e,this.value=r,this.error=i,this.hasValue=e==="N"}observe(e){return Xf(this,e)}do(e,r,i){let{kind:n,value:o,error:s}=this;return n==="N"?e?.(o):n==="E"?r?.(s):i?.()}accept(e,r,i){var n;return ce((n=e)===null||n===void 0?void 0:n.next)?this.observe(e):this.do(e,r,i)}toObservable(){let{kind:e,value:r,error:i}=this,n=e==="N"?V(r):e==="E"?un(()=>i):e==="C"?ct:0;if(!n)throw new TypeError(`Unexpected notification kind ${e}`);return n}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};ur.completeNotification=new ur("C");function Xf(t,e){var r,i,n;let{kind:o,value:s,error:a}=t;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(r=e.next)===null||r===void 0||r.call(e,s):o==="E"?(i=e.error)===null||i===void 0||i.call(e,a):(n=e.complete)===null||n===void 0||n.call(e)}function Zr(t){return!!t&&(t instanceof oe||ce(t.lift)&&ce(t.subscribe))}var Wi=lr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function wT(t,e){let r=typeof e=="object";return new Promise((i,n)=>{let o=new $i({next:s=>{i(s),o.unsubscribe()},error:n,complete:()=>{r?i(e.defaultValue):n(new Wi)}});t.subscribe(o)})}function Ol(t){return t instanceof Date&&!isNaN(t)}var xT=lr(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function DT(t,e){let{first:r,each:i,with:n=CT,scheduler:o=e??Gi,meta:s=null}=Ol(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&i==null)throw new TypeError("No timeout provided.");return J((a,c)=>{let l,d,u=null,f=0,p=v=>{d=Bt(c,o,()=>{try{l.unsubscribe(),Ee(n({meta:s,lastValue:u,seen:f})).subscribe(c)}catch(S){c.error(S)}},v)};l=a.subscribe(X(c,v=>{d?.unsubscribe(),f++,c.next(u=v),i>0&&p(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),u=null})),!f&&p(r!=null?typeof r=="number"?r:+r-o.now():i)})}function CT(t){throw new xT(t)}function P(t,e){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>{i.next(t.call(e,o,n++))}))})}var{isArray:ET}=Array;function IT(t,e){return ET(e)?t(...e):t(e)}function Qo(t){return P(e=>IT(t,e))}var{isArray:ST}=Array,{getPrototypeOf:MT,prototype:kT,keys:TT}=Object;function Nl(t){if(t.length===1){let e=t[0];if(ST(e))return{args:e,keys:null};if(RT(e)){let r=TT(e);return{args:r.map(i=>e[i]),keys:r}}}return{args:t,keys:null}}function RT(t){return t&&typeof t=="object"&&MT(t)===kT}function Fl(t,e){return t.reduce((r,i,n)=>(r[i]=e[n],r),{})}function qi(...t){let e=dn(t),r=Yo(t),{args:i,keys:n}=Nl(t);if(i.length===0)return He([],e);let o=new oe(AT(i,e,n?s=>Fl(n,s):Nt));return r?o.pipe(Qo(r)):o}function AT(t,e,r=Nt){return i=>{Ey(e,()=>{let{length:n}=t,o=new Array(n),s=n,a=n;for(let c=0;c{let l=He(t[c],e),d=!1;l.subscribe(X(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(r(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function Ey(t,e,r){t?Bt(r,t,e):e()}function Iy(t,e,r,i,n,o,s,a){let c=[],l=0,d=0,u=!1,f=()=>{u&&!c.length&&!l&&e.complete()},p=S=>l{o&&e.next(S),l++;let E=!1;Ee(r(S,d++)).subscribe(X(e,R=>{n?.(R),o?p(R):e.next(R)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&lv(R)):v(R)}f()}catch(R){e.error(R)}}))};return t.subscribe(X(e,p,()=>{u=!0,f()})),()=>{a?.()}}function Fe(t,e,r=1/0){return ce(e)?Fe((i,n)=>P((o,s)=>e(i,o,n,s))(Ee(t(i,n))),r):(typeof e=="number"&&(r=e),J((i,n)=>Iy(i,n,t,r)))}function hn(t=1/0){return Fe(Nt,t)}function Sy(){return hn(1)}function fn(...t){return Sy()(He(t,dn(t)))}function Qr(t){return new oe(e=>{Ee(t()).subscribe(e)})}function fa(...t){let e=Yo(t),{args:r,keys:i}=Nl(t),n=new oe(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=f},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?Fl(i,a):a),o.complete())}))}});return e?n.pipe(Qo(e)):n}var OT=["addListener","removeListener"],NT=["addEventListener","removeEventListener"],FT=["on","off"];function Ko(t,e,r,i){if(ce(r)&&(i=r,r=void 0),i)return Ko(t,e,r).pipe(Qo(i));let[n,o]=jT(t)?NT.map(s=>a=>t[s](e,a,r)):PT(t)?OT.map(My(t,e)):LT(t)?FT.map(My(t,e)):[];if(!n&&Zo(t))return Fe(s=>Ko(s,e,r))(Ee(t));if(!n)throw new TypeError("Invalid event target");return new oe(s=>{let a=(...c)=>s.next(1o(a)})}function My(t,e){return r=>i=>t[r](e,i)}function PT(t){return ce(t.addListener)&&ce(t.removeListener)}function LT(t){return ce(t.on)&&ce(t.off)}function jT(t){return ce(t.addEventListener)&&ce(t.removeEventListener)}function Kr(t=0,e,r=uy){let i=-1;return e!=null&&(xl(e)?r=e:i=e),new oe(n=>{let o=Ol(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=i?this.schedule(void 0,i):n.complete())},o)})}function Jf(t=0,e=Gi){return t<0&&(t=0),Kr(t,t,e)}function Ze(...t){let e=dn(t),r=hy(t,1/0),i=t;return i.length?i.length===1?Ee(i[0]):hn(r)(He(i,e)):ct}function ge(t,e){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>t.call(e,o,n++)&&i.next(o)))})}function ky(t){return J((e,r)=>{let i=!1,n=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let l=n;n=null,r.next(l)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(X(r,l=>{i=!0,n=l,o||Ee(t(l)).subscribe(o=X(r,a,c))},()=>{s=!0,(!i||!o||o.closed)&&r.complete()}))})}function Pl(t,e=Gi){return ky(()=>Kr(t,e))}function ut(t){return J((e,r)=>{let i=null,n=!1,o;i=e.subscribe(X(r,void 0,void 0,s=>{o=Ee(t(s,ut(t)(e))),i?(i.unsubscribe(),i=null,o.subscribe(r)):n=!0})),n&&(i.unsubscribe(),i=null,o.subscribe(r))})}function Ty(t,e,r,i,n){return(o,s)=>{let a=r,c=e,l=0;o.subscribe(X(s,d=>{let u=l++;c=a?t(c,d,u):(a=!0,d),i&&s.next(c)},n&&(()=>{a&&s.next(c),s.complete()})))}}function pn(t,e){return ce(e)?Fe(t,e,1):Fe(t,1)}function Xo(t,e=Gi){return J((r,i)=>{let n=null,o=null,s=null,a=()=>{if(n){n.unsubscribe(),n=null;let l=o;o=null,i.next(l)}};function c(){let l=s+t,d=e.now();if(d{o=l,s=e.now(),n||(n=e.schedule(c,t),i.add(n))},()=>{a(),i.complete()},void 0,()=>{o=n=null}))})}function hr(t){return J((e,r)=>{let i=!1;e.subscribe(X(r,n=>{i=!0,r.next(n)},()=>{i||r.next(t),r.complete()}))})}function We(t){return t<=0?()=>ct:J((e,r)=>{let i=0;e.subscribe(X(r,n=>{++i<=t&&(r.next(n),t<=i&&r.complete())}))})}function pa(){return J((t,e)=>{t.subscribe(X(e,Un))})}function ma(t){return P(()=>t)}function ep(t,e){return e?r=>fn(e.pipe(We(1),pa()),r.pipe(ep(t))):Fe((r,i)=>Ee(t(r,i)).pipe(We(1),ma(r)))}function ga(t,e=Gi){let r=Kr(t,e);return ep(()=>r)}function tp(){return J((t,e)=>{t.subscribe(X(e,r=>Xf(r,e)))})}function Yi(t,e=Nt){return t=t??VT,J((r,i)=>{let n,o=!0;r.subscribe(X(i,s=>{let a=e(s);(o||!t(n,a))&&(o=!1,n=a,i.next(s))}))})}function VT(t,e){return t===e}function Ll(t=BT){return J((e,r)=>{let i=!1;e.subscribe(X(r,n=>{i=!0,r.next(n)},()=>i?r.complete():r.error(t())))})}function BT(){return new Wi}function jl(t,e){return e?r=>r.pipe(jl((i,n)=>Ee(t(i,n)).pipe(P((o,s)=>e(i,o,n,s))))):J((r,i)=>{let n=0,o=null,s=!1;r.subscribe(X(i,a=>{o||(o=X(i,void 0,()=>{o=null,s&&i.complete()}),Ee(t(a,n++)).subscribe(o))},()=>{s=!0,!o&&i.complete()}))})}function Si(t){return J((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function mn(t,e){let r=arguments.length>=2;return i=>i.pipe(t?ge((n,o)=>t(n,o,i)):Nt,We(1),r?hr(e):Ll(()=>new Wi))}function Vl(t,e,r,i){return J((n,o)=>{let s;!e||typeof e=="function"?s=e:{duration:r,element:s,connector:i}=e;let a=new Map,c=v=>{a.forEach(v),v(o)},l=v=>c(S=>S.error(v)),d=0,u=!1,f=new ca(o,v=>{try{let S=t(v),E=a.get(S);if(!E){a.set(S,E=i?i():new C);let R=p(S,E);if(o.next(R),r){let he=X(E,()=>{E.complete(),he?.unsubscribe()},void 0,void 0,()=>a.delete(S));f.add(Ee(r(R)).subscribe(he))}}E.next(s?s(v):v)}catch(S){l(S)}},()=>c(v=>v.complete()),l,()=>a.clear(),()=>(u=!0,d===0));n.subscribe(f);function p(v,S){let E=new oe(R=>{d++;let he=S.subscribe(R);return()=>{he.unsubscribe(),--d===0&&u&&f.unsubscribe()}});return E.key=v,E}})}function Jo(t){return t<=0?()=>ct:J((e,r)=>{let i=[];e.subscribe(X(r,n=>{i.push(n),t{for(let n of i)r.next(n);r.complete()},void 0,()=>{i=null}))})}function ip(t,e){let r=arguments.length>=2;return i=>i.pipe(t?ge((n,o)=>t(n,o,i)):Nt,Jo(1),r?hr(e):Ll(()=>new Wi))}function np(){return J((t,e)=>{t.subscribe(X(e,r=>{e.next(ur.createNext(r))},()=>{e.next(ur.createComplete()),e.complete()},r=>{e.next(ur.createError(r)),e.complete()}))})}function rp(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return P(r=>{let i=r;for(let n=0;n=2,!0))}function ba(t={}){let{connector:e=()=>new C,resetOnError:r=!0,resetOnComplete:i=!0,resetOnRefCountZero:n=!0}=t;return o=>{let s,a,c,l=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,d=u=!1},v=()=>{let S=s;p(),S?.unsubscribe()};return J((S,E)=>{l++,!u&&!d&&f();let R=c=c??e();E.add(()=>{l--,l===0&&!u&&!d&&(a=op(v,n))}),R.subscribe(E),!s&&l>0&&(s=new $i({next:he=>R.next(he),error:he=>{u=!0,f(),a=op(p,r,he),R.error(he)},complete:()=>{d=!0,f(),a=op(p,i),R.complete()}}),Ee(S).subscribe(s))})(o)}}function op(t,e,...r){if(e===!0){t();return}if(e===!1)return;let i=new $i({next:()=>{i.unsubscribe(),t()}});return Ee(e(...r)).subscribe(i)}function Bl(t,e,r){let i,n=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:e=1/0,refCount:n=!1,scheduler:r}=t:i=t??1/0,ba({connector:()=>new Wr(i,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:n})}function fr(t){return ge((e,r)=>t<=r)}function Qe(...t){let e=dn(t);return J((r,i)=>{(e?fn(t,r,e):fn(t,r)).subscribe(i)})}function Oe(t,e){return J((r,i)=>{let n=null,o=0,s=!1,a=()=>s&&!n&&i.complete();r.subscribe(X(i,c=>{n?.unsubscribe();let l=0,d=o++;Ee(t(c,d)).subscribe(n=X(i,u=>i.next(e?e(c,u,d,l++):u),()=>{n=null,a()}))},()=>{s=!0,a()}))})}function te(t){return J((e,r)=>{Ee(t).subscribe(X(r,()=>r.complete(),Un)),!r.closed&&e.subscribe(r)})}function sp(t,e=!1){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>{let s=t(o,n++);(s||e)&&i.next(o),!s&&i.complete()}))})}function je(t,e,r){let i=ce(t)||e||r?{next:t,error:e,complete:r}:t;return i?J((n,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;n.subscribe(X(o,c=>{var l;(l=i.next)===null||l===void 0||l.call(i,c),o.next(c)},()=>{var c;a=!1,(c=i.complete)===null||c===void 0||c.call(i),o.complete()},c=>{var l;a=!1,(l=i.error)===null||l===void 0||l.call(i,c),o.error(c)},()=>{var c,l;a&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(l=i.finalize)===null||l===void 0||l.call(i)}))}):Nt}function _a(...t){let e=Yo(t);return J((r,i)=>{let n=t.length,o=new Array(n),s=t.map(()=>!1),a=!1;for(let c=0;c{o[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(Nt))&&(s=null))},Un));r.subscribe(X(i,c=>{if(a){let l=[c,...o];i.next(e?e(...l):l)}}))})}var C0="https://g.co/ng/security#xss",G=class extends Error{constructor(e,r){super(Md(e,r)),this.code=e}};function Md(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Ta(t){return{toString:t}.toString()}var zl="__parameters__";function zT(t){return function(...r){if(t){let i=t(...r);for(let n in i)this[n]=i[n]}}}function Nm(t,e,r){return Ta(()=>{let i=zT(e);function n(...o){if(this instanceof n)return i.apply(this,o),this;let s=new n(...o);return a.annotation=s,a;function a(c,l,d){let u=c.hasOwnProperty(zl)?c[zl]:Object.defineProperty(c,zl,{value:[]})[zl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return r&&(n.prototype=Object.create(r.prototype)),n.prototype.ngMetadataName=t,n.annotationCls=n,n})}var ht=globalThis;function Ke(t){for(let e in t)if(t[e]===Ke)return e;throw Error("Could not find renamed property on target object.")}function UT(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Xt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Xt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function xp(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var HT=Ke({__forward_ref__:Ke});function lt(t){return t.__forward_ref__=lt,t.toString=function(){return Xt(this())},t}function Zt(t){return E0(t)?t():t}function E0(t){return typeof t=="function"&&t.hasOwnProperty(HT)&&t.__forward_ref__===lt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function kd(t){return Ry(t,S0)||Ry(t,M0)}function I0(t){return kd(t)!==null}function Ry(t,e){return t.hasOwnProperty(e)?t[e]:null}function $T(t){let e=t&&(t[S0]||t[M0]);return e||null}function Ay(t){return t&&(t.hasOwnProperty(Oy)||t.hasOwnProperty(GT))?t[Oy]:null}var S0=Ke({\u0275prov:Ke}),Oy=Ke({\u0275inj:Ke}),M0=Ke({ngInjectableDef:Ke}),GT=Ke({ngInjectorDef:Ke}),g=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function k0(t){return t&&!!t.\u0275providers}var WT=Ke({\u0275cmp:Ke}),qT=Ke({\u0275dir:Ke}),Fm=Ke({\u0275pipe:Ke}),YT=Ke({\u0275mod:Ke}),td=Ke({\u0275fac:Ke}),ya=Ke({__NG_ELEMENT_ID__:Ke}),Ny=Ke({__NG_ENV_ID__:Ke});function Td(t){return typeof t=="string"?t:t==null?"":String(t)}function ZT(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Td(t)}function QT(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new G(-200,t)}function Pm(t,e){throw new G(-201,!1)}var Ie=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ie||{}),Dp;function T0(){return Dp}function ci(t){let e=Dp;return Dp=t,e}function R0(t,e,r){let i=kd(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(r&Ie.Optional)return null;if(e!==void 0)return e;Pm(t,"Injector")}var KT={},xa=KT,Cp="__NG_DI_FLAG__",id="ngTempTokenPath",XT="ngTokenPath",JT=/\n/gm,eR="\u0275",Fy="__source",ns;function tR(){return ns}function pr(t){let e=ns;return ns=t,e}function iR(t,e=Ie.Default){if(ns===void 0)throw new G(-203,!1);return ns===null?R0(t,void 0,e):ns.get(t,e&Ie.Optional?null:void 0,e)}function m(t,e=Ie.Default){return(T0()||iR)(Zt(t),e)}function b(t,e=Ie.Default){return m(t,Rd(e))}function Rd(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ep(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Xt(a)))}n=`{${o.join(", ")}}`}return`${r}${i?"("+i+")":""}[${n}]: ${t.replace(JT,` + `)}`}var jm=Lm(Nm("Inject",t=>({token:t})),-1),xn=Lm(Nm("Optional"),8);var Yn=Lm(Nm("SkipSelf"),4);function to(t,e){let r=t.hasOwnProperty(td);return r?t[td]:null}function sR(t,e,r){if(t.length!==e.length)return!1;for(let i=0;iArray.isArray(r)?Vm(r,e):e(r))}function A0(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function nd(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function cR(t,e){let r=[];for(let i=0;ie;){let o=n-2;t[n]=t[o],n--}t[e]=r,t[e+1]=i}}function Ra(t,e,r){let i=Aa(t,e);return i>=0?t[i|1]=r:(i=~i,lR(t,i,e,r)),i}function ap(t,e){let r=Aa(t,e);if(r>=0)return t[r|1]}function Aa(t,e){return dR(t,e,1)}function dR(t,e,r){let i=0,n=t.length>>r;for(;n!==i;){let o=i+(n-i>>1),s=t[o<e?n=o:i=o+1}return~(n<e){s=o-1;break}}}for(;o-1){let o;for(;++no?u="":u=n[d+1].toLowerCase(),i&2&&l!==u){if(Zi(i))return!1;s=!0}}}}return Zi(i)||s}function Zi(t){return(t&1)===0}function gR(t,e,r,i){if(e===null)return-1;let n=0;if(i||!r){let o=!1;for(;n-1)for(r++;r0?'="'+a+'"':"")+"]"}else i&8?n+="."+s:i&4&&(n+=" "+s);else n!==""&&!Zi(s)&&(e+=Ly(o,n),n=""),i=s,o=o||!Zi(i);r++}return n!==""&&(e+=Ly(o,n)),e}function xR(t){return t.map(wR).join(",")}function DR(t){let e=[],r=[],i=1,n=2;for(;i{let e=H0(t),r=Q(w({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===F0.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||bn.Emulated,styles:t.styles||Qt,_:null,schemas:t.schemas||null,tView:null,id:""});$0(r);let i=t.dependencies;return r.directiveDefs=Vy(i,!1),r.pipeDefs=Vy(i,!0),r.id=IR(r),r})}function CR(t){return $n(t)||V0(t)}function ER(t){return t!==null}function O(t){return Ta(()=>({type:t.type,bootstrap:t.bootstrap||Qt,declarations:t.declarations||Qt,imports:t.imports||Qt,exports:t.exports||Qt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function jy(t,e){if(t==null)return os;let r={};for(let i in t)if(t.hasOwnProperty(i)){let n=t[i],o,s,a=vr.None;Array.isArray(n)?(a=n[0],o=n[1],s=n[2]??o):(o=n,s=n),e?(r[o]=a!==vr.None?[i,a]:i,e[o]=s):r[o]=i}return r}function I(t){return Ta(()=>{let e=H0(t);return $0(e),e})}function Ad(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function $n(t){return t[WT]||null}function V0(t){return t[qT]||null}function B0(t){return t[Fm]||null}function z0(t){let e=$n(t)||V0(t)||B0(t);return e!==null?e.standalone:!1}function U0(t,e){let r=t[YT]||null;if(!r&&e===!0)throw new Error(`Type ${Xt(t)} does not have '\u0275mod' property.`);return r}function H0(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||os,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Qt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:jy(t.inputs,e),outputs:jy(t.outputs),debugInfo:null}}function $0(t){t.features?.forEach(e=>e(t))}function Vy(t,e){if(!t)return null;let r=e?B0:CR;return()=>(typeof t=="function"?t():t).map(i=>r(i)).filter(ER)}function IR(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let n of r)e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function gs(t){return{\u0275providers:t}}function SR(...t){return{\u0275providers:G0(!0,t),\u0275fromNgModule:!0}}function G0(t,...e){let r=[],i=new Set,n,o=s=>{r.push(s)};return Vm(e,s=>{let a=s;Sp(a,o,[],i)&&(n||=[],n.push(a))}),n!==void 0&&W0(n,o),r}function W0(t,e){for(let r=0;r{e(o,i)})}}function Sp(t,e,r,i){if(t=Zt(t),!t)return!1;let n=null,o=Ay(t),s=!o&&$n(t);if(!o&&!s){let c=t.ngModule;if(o=Ay(c),o)n=c;else return!1}else{if(s&&!s.standalone)return!1;n=t}let a=i.has(n);if(s){if(a)return!1;if(i.add(n),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Sp(l,e,r,i)}}else if(o){if(o.imports!=null&&!a){i.add(n);let l;try{Vm(o.imports,d=>{Sp(d,e,r,i)&&(l||=[],l.push(d))})}finally{}l!==void 0&&W0(l,e)}if(!a){let l=to(n)||(()=>new n);e({provide:n,useFactory:l,deps:Qt},n),e({provide:N0,useValue:n,multi:!0},n),e({provide:gr,useValue:()=>m(n),multi:!0},n)}let c=o.providers;if(c!=null&&!a){let l=t;zm(c,d=>{e(d,l)})}}else return!1;return n!==t&&t.providers!==void 0}function zm(t,e){for(let r of t)k0(r)&&(r=r.\u0275providers),Array.isArray(r)?zm(r,e):e(r)}var MR=Ke({provide:String,useValue:Ke});function q0(t){return t!==null&&typeof t=="object"&&MR in t}function kR(t){return!!(t&&t.useExisting)}function TR(t){return!!(t&&t.useFactory)}function ss(t){return typeof t=="function"}function RR(t){return!!t.useClass}var Od=new g(""),Yl={},AR={},cp;function Nd(){return cp===void 0&&(cp=new rd),cp}var _t=class{},Ca=class extends _t{get destroyed(){return this._destroyed}constructor(e,r,i,n){super(),this.parent=r,this.source=i,this.scopes=n,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,kp(e,s=>this.processProvider(s)),this.records.set(O0,es(void 0,this)),n.has("environment")&&this.records.set(_t,es(void 0,this));let o=this.records.get(Od);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(N0,Qt,Ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Te(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of r)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Te(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=pr(this),i=ci(void 0),n;try{return e()}finally{pr(r),ci(i)}}get(e,r=xa,i=Ie.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Ny))return e[Ny](this);i=Rd(i);let n,o=pr(this),s=ci(void 0);try{if(!(i&Ie.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=LR(e)&&kd(e);l&&this.injectableDefInScope(l)?c=es(Mp(e),Yl):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=i&Ie.Self?Nd():this.parent;return r=i&Ie.Optional&&r===xa?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[id]=a[id]||[]).unshift(Xt(e)),o)throw a;return rR(a,e,"R3InjectorError",this.source)}else throw a}finally{ci(s),pr(o)}}resolveInjectorInitializers(){let e=Te(null),r=pr(this),i=ci(void 0),n;try{let o=this.get(gr,Qt,Ie.Self);for(let s of o)s()}finally{pr(r),ci(i),Te(e)}}toString(){let e=[],r=this.records;for(let i of r.keys())e.push(Xt(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new G(205,!1)}processProvider(e){e=Zt(e);let r=ss(e)?e:Zt(e&&e.provide),i=NR(e);if(!ss(e)&&e.multi===!0){let n=this.records.get(r);n||(n=es(void 0,Yl,!0),n.factory=()=>Ep(n.multi),this.records.set(r,n)),r=e,n.multi.push(e)}this.records.set(r,i)}hydrate(e,r){let i=Te(null);try{return r.value===Yl&&(r.value=AR,r.value=r.factory()),typeof r.value=="object"&&r.value&&PR(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{Te(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Zt(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Mp(t){let e=kd(t),r=e!==null?e.factory:to(t);if(r!==null)return r;if(t instanceof g)throw new G(204,!1);if(t instanceof Function)return OR(t);throw new G(204,!1)}function OR(t){if(t.length>0)throw new G(204,!1);let r=$T(t);return r!==null?()=>r.factory(t):()=>new t}function NR(t){if(q0(t))return es(void 0,t.useValue);{let e=Y0(t);return es(e,Yl)}}function Y0(t,e,r){let i;if(ss(t)){let n=Zt(t);return to(n)||Mp(n)}else if(q0(t))i=()=>Zt(t.useValue);else if(TR(t))i=()=>t.useFactory(...Ep(t.deps||[]));else if(kR(t))i=()=>m(Zt(t.useExisting));else{let n=Zt(t&&(t.useClass||t.provide));if(FR(t))i=()=>new n(...Ep(t.deps));else return to(n)||Mp(n)}return i}function es(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function FR(t){return!!t.deps}function PR(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function LR(t){return typeof t=="function"||typeof t=="object"&&t instanceof g}function kp(t,e){for(let r of t)Array.isArray(r)?kp(r,e):r&&k0(r)?kp(r.\u0275providers,e):e(r)}function pi(t,e){t instanceof Ca&&t.assertNotDestroyed();let r,i=pr(t),n=ci(void 0);try{return e()}finally{pr(i),ci(n)}}function Z0(){return T0()!==void 0||tR()!=null}function Oa(t){if(!Z0())throw new G(-203,!1)}function jR(t){let e=ht.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function VR(t){return typeof t=="function"}var Dn=0,fe=1,ve=2,Ut=3,Qi=4,li=5,as=6,od=7,St=8,cs=9,_n=10,nt=11,Ea=12,By=13,vs=14,ui=15,io=16,ts=17,Gn=18,Na=19,Q0=20,mr=21,Zl=22,ki=23,ft=25,Um=1;var no=7,sd=8,ls=9,zt=10,ad=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(ad||{});function Hn(t){return Array.isArray(t)&&typeof t[Um]=="object"}function Zn(t){return Array.isArray(t)&&t[Um]===!0}function Hm(t){return(t.flags&4)!==0}function Fd(t){return t.componentOffset>-1}function Pd(t){return(t.flags&1)===1}function Wn(t){return!!t.template}function Tp(t){return(t[ve]&512)!==0}var Rp=class{constructor(e,r,i){this.previousValue=e,this.currentValue=r,this.firstChange=i}isFirstChange(){return this.firstChange}};function K0(t,e,r,i){e!==null?e.applyValueToInputSignal(e,i):t[r]=i}function Me(){return X0}function X0(t){return t.type.prototype.ngOnChanges&&(t.setInput=zR),BR}Me.ngInherit=!0;function BR(){let t=ew(this),e=t?.current;if(e){let r=t.previous;if(r===os)t.previous=e;else for(let i in e)r[i]=e[i];t.current=null,this.ngOnChanges(e)}}function zR(t,e,r,i,n){let o=this.declaredInputs[i],s=ew(t)||UR(t,{previous:os,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Rp(l&&l.currentValue,r,c===os),K0(t,e,n,r)}var J0="__ngSimpleChanges__";function ew(t){return t[J0]||null}function UR(t,e){return t[J0]=e}var zy=null;var gn=function(t,e,r){zy?.(t,e,r)},tw="svg",HR="math";function hi(t){for(;Array.isArray(t);)t=t[Dn];return t}function $R(t){for(;Array.isArray(t);){if(typeof t[Um]=="object")return t;t=t[Dn]}return null}function iw(t,e){return hi(e[t])}function Ti(t,e){return hi(e[t.index])}function $m(t,e){return t.data[e]}function Gm(t,e){return t[e]}function yn(t,e){let r=e[t];return Hn(r)?r:r[Dn]}function GR(t){return(t[ve]&4)===4}function Wm(t){return(t[ve]&128)===128}function WR(t){return Zn(t[Ut])}function br(t,e){return e==null?null:t[e]}function nw(t){t[ts]=0}function rw(t){t[ve]&1024||(t[ve]|=1024,Wm(t)&&Ld(t))}function qR(t,e){for(;t>0;)e=e[vs],t--;return e}function Ia(t){return!!(t[ve]&9216||t[ki]?.dirty)}function Ap(t){t[_n].changeDetectionScheduler?.notify(7),t[ve]&64&&(t[ve]|=1024),Ia(t)&&Ld(t)}function Ld(t){t[_n].changeDetectionScheduler?.notify(0);let e=ro(t);for(;e!==null&&!(e[ve]&8192||(e[ve]|=8192,!Wm(e)));)e=ro(e)}function ow(t,e){if((t[ve]&256)===256)throw new G(911,!1);t[mr]===null&&(t[mr]=[]),t[mr].push(e)}function YR(t,e){if(t[mr]===null)return;let r=t[mr].indexOf(e);r!==-1&&t[mr].splice(r,1)}function ro(t){let e=t[Ut];return Zn(e)?e[Ut]:e}var xe={lFrame:mw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sw=!1;function ZR(){return xe.lFrame.elementDepthCount}function QR(){xe.lFrame.elementDepthCount++}function KR(){xe.lFrame.elementDepthCount--}function aw(){return xe.bindingsEnabled}function cw(){return xe.skipHydrationRootTNode!==null}function XR(t){return xe.skipHydrationRootTNode===t}function JR(){xe.skipHydrationRootTNode=null}function me(){return xe.lFrame.lView}function et(){return xe.lFrame.tView}function be(t){return xe.lFrame.contextLView=t,t[St]}function _e(t){return xe.lFrame.contextLView=null,t}function Mt(){let t=lw();for(;t!==null&&t.type===64;)t=t.parent;return t}function lw(){return xe.lFrame.currentTNode}function eA(){let t=xe.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function ho(t,e){let r=xe.lFrame;r.currentTNode=t,r.isParent=e}function qm(){return xe.lFrame.isParent}function Ym(){xe.lFrame.isParent=!1}function tA(){return xe.lFrame.contextLView}function dw(){return sw}function Uy(t){sw=t}function Fa(){let t=xe.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function iA(t){return xe.lFrame.bindingIndex=t}function yr(){return xe.lFrame.bindingIndex++}function uw(t){let e=xe.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function nA(){return xe.lFrame.inI18n}function rA(t,e){let r=xe.lFrame;r.bindingIndex=r.bindingRootIndex=t,Op(e)}function oA(){return xe.lFrame.currentDirectiveIndex}function Op(t){xe.lFrame.currentDirectiveIndex=t}function Zm(t){let e=xe.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hw(){return xe.lFrame.currentQueryIndex}function Qm(t){xe.lFrame.currentQueryIndex=t}function sA(t){let e=t[fe];return e.type===2?e.declTNode:e.type===1?t[li]:null}function fw(t,e,r){if(r&Ie.SkipSelf){let n=e,o=t;for(;n=n.parent,n===null&&!(r&Ie.Host);)if(n=sA(o),n===null||(o=o[vs],n.type&10))break;if(n===null)return!1;e=n,t=o}let i=xe.lFrame=pw();return i.currentTNode=e,i.lView=t,!0}function Km(t){let e=pw(),r=t[fe];xe.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function pw(){let t=xe.lFrame,e=t===null?null:t.child;return e===null?mw(t):e}function mw(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function gw(){let t=xe.lFrame;return xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var vw=gw;function Xm(){let t=gw();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function aA(t){return(xe.lFrame.contextLView=qR(t,xe.lFrame.contextLView))[St]}function wr(){return xe.lFrame.selectedIndex}function oo(t){xe.lFrame.selectedIndex=t}function bs(){let t=xe.lFrame;return $m(t.tView,t.selectedIndex)}function di(){xe.lFrame.currentNamespace=tw}function jd(){cA()}function cA(){xe.lFrame.currentNamespace=null}function lA(){return xe.lFrame.currentNamespace}var bw=!0;function Vd(){return bw}function Bd(t){bw=t}function dA(t,e,r){let{ngOnChanges:i,ngOnInit:n,ngDoCheck:o}=e.type.prototype;if(i){let s=X0(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}n&&(r.preOrderHooks??=[]).push(0-t,n),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function zd(t,e){for(let r=e.directiveStart,i=e.directiveEnd;r=i)break}else e[c]<0&&(t[ts]+=65536),(a>14>16&&(t[ve]&3)===e&&(t[ve]+=16384,Hy(a,o)):Hy(a,o)}var rs=-1,so=class{constructor(e,r,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=i}};function hA(t){return t instanceof so}function fA(t){return(t.flags&8)!==0}function pA(t){return(t.flags&16)!==0}var dp={},Np=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,i){i=Rd(i);let n=this.injector.get(e,dp,i);return n!==dp||r===dp?n:this.parentInjector.get(e,r,i)}};function yw(t){return t!==rs}function cd(t){return t&32767}function mA(t){return t>>16}function ld(t,e){let r=mA(t),i=e;for(;r>0;)i=i[vs],r--;return i}var Fp=!0;function dd(t){let e=Fp;return Fp=t,e}var gA=256,ww=gA-1,xw=5,vA=0,vn={};function bA(t,e,r){let i;typeof r=="string"?i=r.charCodeAt(0)||0:r.hasOwnProperty(ya)&&(i=r[ya]),i==null&&(i=r[ya]=vA++);let n=i&ww,o=1<>xw)]|=o}function ud(t,e){let r=Dw(t,e);if(r!==-1)return r;let i=e[fe];i.firstCreatePass&&(t.injectorIndex=e.length,up(i.data,t),up(e,null),up(i.blueprint,null));let n=Jm(t,e),o=t.injectorIndex;if(yw(n)){let s=cd(n),a=ld(n,e),c=a[fe].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=n,o}function up(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dw(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Jm(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,i=null,n=e;for(;n!==null;){if(i=Mw(n),i===null)return rs;if(r++,n=n[vs],i.injectorIndex!==-1)return i.injectorIndex|r<<16}return rs}function Pp(t,e,r){bA(t,e,r)}function _A(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let i=r.length,n=0;for(;n>20,u=i?a:a+d,f=n?a+d:l;for(let p=u;p=c&&v.type===r)return p}if(n){let p=s[c];if(p&&Wn(p)&&p.type===r)return c}return null}function ao(t,e,r,i){let n=t[r],o=e.data;if(hA(n)){let s=n;s.resolving&&QT(ZT(o[r]));let a=dd(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?ci(s.injectImpl):null,d=fw(t,i,Ie.Default);try{n=t[r]=s.factory(void 0,o,t,i),e.firstCreatePass&&r>=i.directiveStart&&dA(r,o[r],e)}finally{l!==null&&ci(l),dd(a),s.resolving=!1,vw()}}return n}function wA(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ya)?t[ya]:void 0;return typeof e=="number"?e>=0?e&ww:xA:e}function $y(t,e,r){let i=1<>xw)]&i)}function Gy(t,e){return!(t&Ie.Self)&&!(t&Ie.Host&&e)}var eo=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,i){return Iw(this._tNode,this._lView,e,Rd(i),r)}};function xA(){return new eo(Mt(),me())}function qe(t){return Ta(()=>{let e=t.prototype.constructor,r=e[td]||Lp(e),i=Object.prototype,n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==i;){let o=n[td]||Lp(n);if(o&&o!==r)return o;n=Object.getPrototypeOf(n)}return o=>new o})}function Lp(t){return E0(t)?()=>{let e=Lp(Zt(t));return e&&e()}:to(t)}function DA(t,e,r,i,n){let o=t,s=e;for(;o!==null&&s!==null&&s[ve]&2048&&!(s[ve]&512);){let a=Sw(o,s,r,i|Ie.Self,vn);if(a!==vn)return a;let c=o.parent;if(!c){let l=s[Q0];if(l){let d=l.get(r,vn,i);if(d!==vn)return d}c=Mw(s),s=s[vs]}o=c}return n}function Mw(t){let e=t[fe],r=e.type;return r===2?e.declTNode:r===1?t[li]:null}function pt(t){return _A(Mt(),t)}function Wy(t,e=null,r=null,i){let n=kw(t,e,r,i);return n.resolveInjectorInitializers(),n}function kw(t,e=null,r=null,i,n=new Set){let o=[r||Qt,SR(t)];return i=i||(typeof t=="object"?void 0:Xt(t)),new Ca(o,e||Nd(),i||null,n)}var Jr=class Jr{static create(e,r){if(Array.isArray(e))return Wy({name:""},r,e,"");{let i=e.name??"";return Wy({name:i},e.parent,e.providers,i)}}};Jr.THROW_IF_NOT_FOUND=xa,Jr.NULL=new rd,Jr.\u0275prov=D({token:Jr,providedIn:"any",factory:()=>m(O0)}),Jr.__NG_ELEMENT_ID__=-1;var Se=Jr;var CA=new g("");CA.__NG_ELEMENT_ID__=t=>{let e=Mt();if(e===null)throw new G(204,!1);if(e.type&2)return e.value;if(t&Ie.Optional)return null;throw new G(204,!1)};var EA="ngOriginalError";function hp(t){return t[EA]}var Ft=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&hp(e);for(;r&&hp(r);)r=hp(r);return r||null}},Tw=new g("",{providedIn:"root",factory:()=>b(Ft).handleError.bind(void 0)}),fo=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=IA,e.__NG_ENV_ID__=i=>i;let t=e;return t})(),jp=class extends fo{constructor(e){super(),this._lView=e}onDestroy(e){return ow(this._lView,e),()=>YR(this._lView,e)}};function IA(){return new jp(me())}function SA(){return _s(Mt(),me())}function _s(t,e){return new N(Ti(t,e))}var N=(()=>{let e=class e{constructor(i){this.nativeElement=i}};e.__NG_ELEMENT_ID__=SA;let t=e;return t})();function MA(t){return t instanceof N?t.nativeElement:t}var Cn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Vp=class extends C{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Z0()&&(this.destroyRef=b(fo,{optional:!0})??void 0,this.pendingTasks=b(Cn,{optional:!0})??void 0)}emit(e){let r=Te(null);try{super.next(e)}finally{Te(r)}}subscribe(e,r,i){let n=e,o=r||(()=>null),s=i;if(e&&typeof e=="object"){let c=e;n=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),n&&(n=this.wrapInTimeout(n)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:n,error:o,complete:s});return e instanceof ne&&e.add(a),a}wrapInTimeout(e){return r=>{let i=this.pendingTasks?.add();setTimeout(()=>{e(r),i!==void 0&&this.pendingTasks?.remove(i)})}}},B=Vp;function kA(){return this._results[Symbol.iterator]()}var Pt=class t{get changes(){return this._changes??=new B}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=kA)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let i=aR(e);(this._changesDetected=!sR(this._results,i,r))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Rw(t){return(t.flags&128)===128}var eg=new Map,TA=0;function RA(){return TA++}function AA(t){eg.set(t[Na],t)}function Aw(t){return eg.get(t)||null}function OA(t){eg.delete(t[Na])}var Bp=class{get lView(){return Aw(this.lViewId)}constructor(e,r,i){this.lViewId=e,this.nodeIndex=r,this.native=i}};function Ow(t){let e=fp(t);if(e){if(Hn(e)){let r=e,i,n,o;if(Nw(t)){if(i=PA(r,t),i==-1)throw new Error("The provided component was not found in the application");n=t}else if(NA(t)){if(i=LA(r,t),i==-1)throw new Error("The provided directive was not found in the application");o=jA(i,r)}else if(i=Yy(r,t),i==-1)return null;let s=hi(r[i]),a=fp(s),c=a&&!Array.isArray(a)?a:qy(r,i,s);if(n&&c.component===void 0&&(c.component=n,Mi(c.component,c)),o&&c.directives===void 0){c.directives=o;for(let l=0;l=0){let a=hi(o[s]),c=qy(o,s,a);Mi(a,c),e=c;break}}}}return e||null}function qy(t,e,r){return new Bp(t[Na],e,r)}var zp="__ngContext__";function Mi(t,e){Hn(e)?(t[zp]=e[Na],AA(e)):t[zp]=e}function fp(t){let e=t[zp];return typeof e=="number"?Aw(e):e||null}function Nw(t){return t&&t.constructor&&t.constructor.\u0275cmp}function NA(t){return t&&t.constructor&&t.constructor.\u0275dir}function Yy(t,e){let r=t[fe];for(let i=ft;iBA}),BA="ng",tg=new g(""),Ri=new g("",{providedIn:"platform",factory:()=>"unknown"});var rt=new g(""),Pa=new g("",{providedIn:"root",factory:()=>VA().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var zA="h",UA="b";var HA=()=>null;function ig(t,e,r=!1){return HA(t,e,r)}var Vw=!1,$A=new g("",{providedIn:"root",factory:()=>Vw});var Ul;function GA(){if(Ul===void 0&&(Ul=null,ht.trustedTypes))try{Ul=ht.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ul}function Ud(t){return GA()?.createHTML(t)||t}var Hl;function WA(){if(Hl===void 0&&(Hl=null,ht.trustedTypes))try{Hl=ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Hl}function Zy(t){return WA()?.createScriptURL(t)||t}var qn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${C0})`}},Hp=class extends qn{getTypeName(){return"HTML"}},$p=class extends qn{getTypeName(){return"Style"}},Gp=class extends qn{getTypeName(){return"Script"}},Wp=class extends qn{getTypeName(){return"URL"}},qp=class extends qn{getTypeName(){return"ResourceURL"}};function Ai(t){return t instanceof qn?t.changingThisBreaksApplicationSecurity:t}function xr(t,e){let r=qA(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${C0})`)}return r===e}function qA(t){return t instanceof qn&&t.getTypeName()||null}function Bw(t){return new Hp(t)}function zw(t){return new $p(t)}function Uw(t){return new Gp(t)}function Hw(t){return new Wp(t)}function $w(t){return new qp(t)}function YA(t){let e=new Zp(t);return ZA()?new Yp(e):e}var Yp=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Ud(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},Zp=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Ud(e),r}};function ZA(){try{return!!new window.DOMParser().parseFromString(Ud(""),"text/html")}catch{return!1}}var QA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Hd(t){return t=String(t),t.match(QA)?t:"unsafe:"+t}function Qn(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function La(...t){let e={};for(let r of t)for(let i in r)r.hasOwnProperty(i)&&(e[i]=!0);return e}var Gw=Qn("area,br,col,hr,img,wbr"),Ww=Qn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qw=Qn("rp,rt"),KA=La(qw,Ww),XA=La(Ww,Qn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),JA=La(qw,Qn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Qy=La(Gw,XA,JA,KA),Yw=Qn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),e1=Qn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),t1=Qn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),i1=La(Yw,e1,t1),n1=Qn("script,style,template"),Qp=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,i=!0,n=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?i=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,i&&r.firstChild){n.push(r),r=s1(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=o1(r);if(o){r=o;break}r=n.pop()}}return this.buf.join("")}startElement(e){let r=Ky(e).toLowerCase();if(!Qy.hasOwnProperty(r))return this.sanitizedSomething=!0,!n1.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let i=e.attributes;for(let n=0;n"),!0}endElement(e){let r=Ky(e).toLowerCase();Qy.hasOwnProperty(r)&&!Gw.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Xy(e))}};function r1(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function o1(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Zw(e);return e}function s1(t){let e=t.firstChild;if(e&&r1(t,e))throw Zw(e);return e}function Ky(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Zw(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var a1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c1=/([^\#-~ |!])/g;function Xy(t){return t.replace(/&/g,"&").replace(a1,function(e){let r=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((r-55296)*1024+(i-56320)+65536)+";"}).replace(c1,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var $l;function Qw(t,e){let r=null;try{$l=$l||YA(t);let i=e?String(e):"";r=$l.getInertBodyElement(i);let n=5,o=i;do{if(n===0)throw new Error("Failed to sanitize html because the input is unstable");n--,i=o,o=r.innerHTML,r=$l.getInertBodyElement(i)}while(i!==o);let a=new Qp().sanitizeChildren(Jy(r)||r);return Ud(a)}finally{if(r){let i=Jy(r)||r;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Jy(t){return"content"in t&&l1(t)?t.content:null}function l1(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ht=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ht||{});function d1(t){let e=Xw();return e?e.sanitize(Ht.URL,t)||"":xr(t,"URL")?Ai(t):Hd(Td(t))}function u1(t){let e=Xw();if(e)return Zy(e.sanitize(Ht.RESOURCE_URL,t)||"");if(xr(t,"ResourceURL"))return Zy(Ai(t));throw new G(904,!1)}function h1(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?u1:d1}function Kw(t,e,r){return h1(e,r)(t)}function Xw(){let t=me();return t&&t[_n].sanitizer}var f1=/^>|^->||--!>|)/g,m1="\u200B$1\u200B";function g1(t){return t.replace(f1,e=>e.replace(p1,m1))}function FY(t){return t.ownerDocument.defaultView}function PY(t){return t.ownerDocument}function Jw(t){return t instanceof Function?t():t}function ex(t){return(t??b(Se)).get(Ri)==="browser"}var wn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(wn||{}),v1;function ng(t,e){return v1(t,e)}function is(t,e,r,i,n){if(i!=null){let o,s=!1;Zn(i)?o=i:Hn(i)&&(s=!0,i=i[Dn]);let a=hi(i);t===0&&r!==null?n==null?ox(e,r,a):hd(e,r,a,n||null,!0):t===1&&r!==null?hd(e,r,a,n||null,!0):t===2?A1(e,a,s):t===3&&e.destroyNode(a),o!=null&&N1(e,t,o,r,n)}}function b1(t,e){return t.createText(e)}function _1(t,e,r){t.setValue(e,r)}function y1(t,e){return t.createComment(g1(e))}function tx(t,e,r){return t.createElement(e,r)}function w1(t,e){ix(t,e),e[Dn]=null,e[li]=null}function x1(t,e,r,i,n,o){i[Dn]=n,i[li]=e,Wd(t,i,r,1,n,o)}function ix(t,e){e[_n].changeDetectionScheduler?.notify(8),Wd(t,e,e[nt],2,null,null)}function D1(t){let e=t[Ea];if(!e)return pp(t[fe],t);for(;e;){let r=null;if(Hn(e))r=e[Ea];else{let i=e[zt];i&&(r=i)}if(!r){for(;e&&!e[Qi]&&e!==t;)Hn(e)&&pp(e[fe],e),e=e[Ut];e===null&&(e=t),Hn(e)&&pp(e[fe],e),r=e&&e[Qi]}e=r}}function C1(t,e,r,i){let n=zt+i,o=r.length;i>0&&(r[n-1][Qi]=e),i0&&(t[r-1][Qi]=i[Qi]);let o=nd(t,zt+e);w1(i[fe],i);let s=o[Gn];s!==null&&s.detachView(o[fe]),i[Ut]=null,i[Qi]=null,i[ve]&=-129}return i}function $d(t,e){if(!(e[ve]&256)){let r=e[nt];r.destroyNode&&Wd(t,e,r,3,null,null),D1(e)}}function pp(t,e){if(e[ve]&256)return;let r=Te(null);try{e[ve]&=-129,e[ve]|=256,e[ki]&&sl(e[ki]),I1(t,e),E1(t,e),e[fe].type===1&&e[nt].destroy();let i=e[io];if(i!==null&&Zn(e[Ut])){i!==e[Ut]&&rg(i,e);let n=e[Gn];n!==null&&n.detachView(t)}OA(e)}finally{Te(r)}}function E1(t,e){let r=t.cleanup,i=e[od];if(r!==null)for(let o=0;o=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[r[o+1]];r[o].call(s)}i!==null&&(e[od]=null);let n=e[mr];if(n!==null){e[mr]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[i.directiveStart+n];if(o===bn.None||o===bn.Emulated)return null}return Ti(i,r)}}function hd(t,e,r,i,n){t.insertBefore(e,r,i,n)}function ox(t,e,r){t.appendChild(e,r)}function e0(t,e,r,i,n){i!==null?hd(t,e,r,i,n):ox(t,e,r)}function M1(t,e,r,i){t.removeChild(e,r,i)}function og(t,e){return t.parentNode(e)}function k1(t,e){return t.nextSibling(e)}function sx(t,e,r){return R1(t,e,r)}function T1(t,e,r){return t.type&40?Ti(t,r):null}var R1=T1,t0;function Gd(t,e,r,i){let n=rx(t,i,e),o=e[nt],s=i.parent||e[li],a=sx(s,i,e);if(n!=null)if(Array.isArray(r))for(let c=0;cft&&ux(t,e,ft,!1),gn(s?2:0,n),r(i,n)}finally{oo(o),gn(s?3:1,n)}}function ag(t,e,r){if(Hm(e)){let i=Te(null);try{let n=e.directiveStart,o=e.directiveEnd;for(let s=n;snull;function H1(t,e,r,i){let n=yx(e);n.push(r),t.firstCreatePass&&wx(t).push(i,n.length-1)}function $1(t,e,r,i,n,o){let s=e?e.injectorIndex:-1,a=0;return cw()&&(a|=128),{type:r,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:n,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function i0(t,e,r,i,n){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;i??={};let a,c=vr.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(n!==null){if(!n.hasOwnProperty(o))continue;l=n[o]}t===0?n0(i,r,l,a,c):n0(i,r,l,a)}return i}function n0(t,e,r,i,n){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,i):o=t[r]=[e,i],n!==void 0&&o.push(n)}function G1(t,e,r){let i=e.directiveStart,n=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let d=i;d0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function Q1(t,e,r,i){let n=r.directiveStart,o=r.directiveEnd;Fd(r)&&nO(e,r,t.data[n+r.componentOffset]),t.firstCreatePass||ud(r,e),Mi(i,e);let s=r.initialInputs;for(let a=n;a{Ld(t.lView)},consumerOnSignalRead(){this.lView[ki]=this}});function vO(t){let e=t[ki]??Object.create(bO);return e.lView=t,e}var bO=Q(w({},zo),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=ro(t.lView);for(;e&&!Sx(e[fe]);)e=ro(e);e&&rw(e)},consumerOnSignalRead(){this.lView[ki]=this}});function Sx(t){return t.type!==2}var _O=100;function Mx(t,e=!0,r=0){let i=t[_n],n=i.rendererFactory,o=!1;o||n.begin?.();try{yO(t,r)}catch(s){throw e&&Dx(t,s),s}finally{o||(n.end?.(),i.inlineEffectRunner?.flush())}}function yO(t,e){let r=dw();try{Uy(!0),em(t,e);let i=0;for(;Ia(t);){if(i===_O)throw new G(103,!1);i++,em(t,1)}}finally{Uy(r)}}function wO(t,e,r,i){let n=e[ve];if((n&256)===256)return;let o=!1,s=!1;!o&&e[_n].inlineEffectRunner?.flush(),Km(e);let a=!0,c=null,l=null;o||(Sx(t)?(l=fO(e),c=aa(l)):B_()===null?(a=!1,l=vO(e),c=aa(l)):e[ki]&&(sl(e[ki]),e[ki]=null));try{nw(e),iA(t.bindingStartIndex),r!==null&&px(t,e,r,2,i);let d=(n&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&Ql(e,p,null)}else{let p=t.preOrderHooks;p!==null&&Kl(e,p,0,null),lp(e,0)}if(s||xO(e),kx(e,0),t.contentQueries!==null&&_x(t,e),!o)if(d){let p=t.contentCheckHooks;p!==null&&Ql(e,p)}else{let p=t.contentHooks;p!==null&&Kl(e,p,1),lp(e,1)}L1(t,e);let u=t.components;u!==null&&Rx(e,u,0);let f=t.viewQuery;if(f!==null&&Jp(2,f,i),!o)if(d){let p=t.viewCheckHooks;p!==null&&Ql(e,p)}else{let p=t.viewHooks;p!==null&&Kl(e,p,2),lp(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Zl]){for(let p of e[Zl])p();e[Zl]=null}o||(e[ve]&=-73)}catch(d){throw o||Ld(e),d}finally{l!==null&&(rl(l,c),a&&mO(l)),Xm()}}function kx(t,e){for(let r=Fw(t);r!==null;r=Pw(r))for(let i=zt;i-1&&(Sa(e,i),nd(r,i))}this._attachedToViewContainer=!1}$d(this._lView[fe],this._lView)}onDestroy(e){ow(this._lView,e)}markForCheck(){pg(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[ve]&=-129}reattach(){Ap(this._lView),this._lView[ve]|=128}detectChanges(){this._lView[ve]|=1024,Mx(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new G(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Tp(this._lView),r=this._lView[io];r!==null&&!e&&rg(r,this._lView),ix(this._lView[fe],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new G(902,!1);this._appRef=e;let r=Tp(this._lView),i=this._lView[io];i!==null&&!r&&nx(i,this._lView),Ap(this._lView)}},Re=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=IO;let t=e;return t})(),CO=Re,EO=class extends CO{constructor(e,r,i){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,i){let n=Ba(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:i});return new co(n)}};function IO(){return Zd(Mt(),me())}function Zd(t,e){return t.type&4?new EO(e,t,_s(t,e)):null}var jY=new RegExp(`^(\\d+)*(${UA}|${zA})*(.*)`);var SO=()=>null;function us(t,e){return SO(t,e)}var hs=class{},Ax=new g("",{providedIn:"root",factory:()=>!1});var Ox=new g(""),tm=class{},pd=class{};function MO(t){let e=Error(`No component factory found for ${Xt(t)}.`);return e[kO]=t,e}var kO="ngComponent";var im=class{resolveComponentFactory(e){throw MO(e)}},Rg=class Rg{};Rg.NULL=new im;var Ki=Rg,fs=class{},En=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>TO();let t=e;return t})();function TO(){let t=me(),e=Mt(),r=yn(e.index,t);return(Hn(r)?r:t)[nt]}var RO=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var r0=new Set;function In(t){r0.has(t)||(r0.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Nx(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ht.requestAnimationFrame=="function"&&ht.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function o0(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function s0(...t){}var F=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new B(!1),this.onMicrotaskEmpty=new B(!1),this.onStable=new B(!1),this.onError=new B(!1),typeof Zone>"u")throw new G(908,!1);Zone.assertZonePatched();let n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&r,n.shouldCoalesceRunChangeDetection=i,n.callbackScheduled=!1,NO(n)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new G(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new G(909,!1)}run(e,r,i){return this._inner.run(e,r,i)}runTask(e,r,i,n){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+n,e,AO,s0,s0);try{return o.runTask(s,r,i)}finally{o.cancelTask(s)}}runGuarded(e,r,i){return this._inner.runGuarded(e,r,i)}runOutsideAngular(e){return this._outer.run(e)}},AO={};function mg(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function OO(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Nx(()=>{t.callbackScheduled=!1,nm(t),t.isCheckStableRunning=!0,mg(t),t.isCheckStableRunning=!1})}),nm(t))}function NO(t){let e=()=>{OO(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,i,n,o,s,a)=>{if(FO(a))return r.invokeTask(n,o,s,a);try{return a0(t),r.invokeTask(n,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),c0(t)}},onInvoke:(r,i,n,o,s,a,c)=>{try{return a0(t),r.invoke(n,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!PO(a)&&e(),c0(t)}},onHasTask:(r,i,n,o)=>{r.hasTask(n,o),i===n&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,nm(t),mg(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,n,o)=>(r.handleError(n,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function nm(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function a0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function c0(t){t._nesting--,mg(t)}var md=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new B,this.onMicrotaskEmpty=new B,this.onStable=new B,this.onError=new B}run(e,r,i){return e.apply(r,i)}runGuarded(e,r,i){return e.apply(r,i)}runOutsideAngular(e){return e()}runTask(e,r,i,n){return e.apply(r,i)}};function FO(t){return Fx(t,"__ignore_ng_zone__")}function PO(t){return Fx(t,"__scheduler_tick__")}function Fx(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function LO(t="zone.js",e){return t==="noop"?new md:t==="zone.js"?new F(e):t}var Kt=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Kt||{}),Px={destroy(){}};function Ua(t,e){!e&&Oa(Ua);let r=e?.injector??b(Se);return ex(r)?(In("NgAfterRender"),Lx(t,r,!1,e?.phase??Kt.MixedReadWrite)):Px}function $t(t,e){!e&&Oa($t);let r=e?.injector??b(Se);return ex(r)?(In("NgAfterNextRender"),Lx(t,r,!0,e?.phase??Kt.MixedReadWrite)):Px}function jO(t,e){if(t instanceof Function)switch(e){case Kt.EarlyRead:return{earlyRead:t};case Kt.Write:return{write:t};case Kt.MixedReadWrite:return{mixedReadWrite:t};case Kt.Read:return{read:t}}return t}function Lx(t,e,r,i){let n=jO(t,i),o=e.get(gg),s=o.handler??=new om,a=[],c=[],l=()=>{for(let f of c)s.unregister(f);d()},d=e.get(fo).onDestroy(l),u=(f,p)=>{if(!p)return;let v=r?(...E)=>{l(),p(...E)}:p,S=pi(e,()=>new rm(f,a,v));s.register(S),c.push(S)};return u(Kt.EarlyRead,n.earlyRead),u(Kt.Write,n.write),u(Kt.MixedReadWrite,n.mixedReadWrite),u(Kt.Read,n.read),{destroy:l}}var rm=class{constructor(e,r,i){this.phase=e,this.pipelinedArgs=r,this.callbackFn=i,this.zone=b(F),this.errorHandler=b(Ft,{optional:!0}),b(hs,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},om=class{constructor(){this.executingCallbacks=!1,this.buckets={[Kt.EarlyRead]:new Set,[Kt.Write]:new Set,[Kt.MixedReadWrite]:new Set,[Kt.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},gg=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let n of i)n()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function gd(t,e,r){let i=r?t.styles:null,n=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&lx(t,r,o.join(" "))}}function GO(t,e,r){let i=t.projection=[];for(let n=0;n{let e=class e{};e.__NG_ELEMENT_ID__=qO;let t=e;return t})();function qO(){let t=Mt();return Vx(t,me())}var YO=Ve,jx=class extends YO{constructor(e,r,i){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=i}get element(){return _s(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){let e=Jm(this._hostTNode,this._hostLView);if(yw(e)){let r=ld(e,this._hostLView),i=cd(e),n=r[fe].data[i+8];return new eo(n,r)}else return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=d0(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-zt}createEmbeddedView(e,r,i){let n,o;typeof i=="number"?n=i:i!=null&&(n=i.index,o=i.injector);let s=us(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,n,ds(this._hostTNode,s)),a}createComponent(e,r,i,n,o){let s=e&&!VR(e),a;if(s)a=r;else{let v=r||{};a=v.index,i=v.injector,n=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let c=s?e:new lo($n(e)),l=i||this.parentInjector;if(!o&&c.ngModule==null){let S=(s?l:this.parentInjector).get(_t,null);S&&(o=S)}let d=$n(c.componentType??{}),u=us(this._lContainer,d?.id??null),f=u?.firstChild??null,p=c.create(l,n,f,o);return this.insertImpl(p.hostView,a,ds(this._hostTNode,u)),p}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,i){let n=e._lView;if(WR(n)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=n[Ut],l=new jx(c,c[li],c[Ut]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return za(s,n,o,i),e.attachToViewContainerRef(),A0(mp(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=d0(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),i=Sa(this._lContainer,r);i&&(nd(mp(this._lContainer),r),$d(i[fe],i))}detach(e){let r=this._adjustIndex(e,-1),i=Sa(this._lContainer,r);return i&&nd(mp(this._lContainer),r)!=null?new co(i):null}_adjustIndex(e,r=0){return e??this.length+r}};function d0(t){return t[sd]}function mp(t){return t[sd]||(t[sd]=[])}function Vx(t,e){let r,i=e[t.index];return Zn(i)?r=i:(r=bx(i,e,null,t),e[t.index]=r,Yd(e,r)),QO(r,e,t,i),new jx(r,t,e)}function ZO(t,e){let r=t[nt],i=r.createComment(""),n=Ti(e,t),o=og(r,n);return hd(r,o,i,k1(r,n),!1),i}var QO=JO,KO=()=>!1;function XO(t,e,r){return KO(t,e,r)}function JO(t,e,r,i){if(t[no])return;let n;r.type&8?n=hi(i):n=ZO(e,r),t[no]=n}var am=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},cm=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let i=e.contentQueries!==null?e.contentQueries[0]:r.length,n=[];for(let o=0;o0)i.push(s[a/2]);else{let l=o[a+1],d=e[-c];for(let u=zt;ue.trim())}function Ux(t,e,r){t.queries===null&&(t.queries=new lm),t.queries.track(new dm(e,r))}function cN(t,e){let r=t.contentQueries||(t.contentQueries=[]),i=r.length?r[r.length-1]:-1;e!==i&&r.push(t.queries.length-1,e)}function vg(t,e){return t.queries.getByIndex(e)}function lN(t,e){let r=t[fe],i=vg(r,e);return i.crossesNgTemplate?um(r,t,e,[]):Bx(r,t,i,e)}function Qd(t){return typeof t=="function"&&t[an]!==void 0}function Ni(t,e){In("NgSignals");let r=X_(t),i=r[an];return e?.equal&&(i.equal=e.equal),r.set=n=>Vf(i,n),r.update=n=>J_(i,n),r.asReadonly=dN.bind(r),r}function dN(){let t=this[an];if(t.readonlyFn===void 0){let e=()=>this();e[an]=t,t.readonlyFn=e}return t.readonlyFn}function Hx(t){return Qd(t)&&typeof t.set=="function"}function uN(t){let e=[],r=new Map;function i(n){let o=r.get(n);if(!o){let s=t(n);r.set(n,o=s.then(mN))}return o}return _d.forEach((n,o)=>{let s=[];n.templateUrl&&s.push(i(n.templateUrl).then(l=>{n.template=l}));let a=typeof n.styles=="string"?[n.styles]:n.styles||[];if(n.styles=a,n.styleUrl&&n.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(n.styleUrls?.length){let l=n.styles.length,d=n.styleUrls;n.styleUrls.forEach((u,f)=>{a.push(""),s.push(i(u).then(p=>{a[l+f]=p,d.splice(d.indexOf(u),1),d.length==0&&(n.styleUrls=void 0)}))})}else n.styleUrl&&s.push(i(n.styleUrl).then(l=>{a.push(l),n.styleUrl=void 0}));let c=Promise.all(s).then(()=>gN(o));e.push(c)}),fN(),Promise.all(e).then(()=>{})}var _d=new Map,hN=new Set;function fN(){let t=_d;return _d=new Map,t}function pN(){return _d.size===0}function mN(t){return typeof t=="string"?t:t.text()}function gN(t){hN.delete(t)}function vN(t){return Object.getPrototypeOf(t.prototype).constructor}function ae(t){let e=vN(t.type),r=!0,i=[t];for(;e;){let n;if(Wn(t))n=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new G(903,!1);n=e.\u0275dir}if(n){if(r){i.push(n);let s=t;s.inputs=Gl(t.inputs),s.inputTransforms=Gl(t.inputTransforms),s.declaredInputs=Gl(t.declaredInputs),s.outputs=Gl(t.outputs);let a=n.hostBindings;a&&xN(t,a);let c=n.viewQuery,l=n.contentQueries;if(c&&yN(t,c),l&&wN(t,l),bN(t,n),UT(t.outputs,n.outputs),Wn(n)&&n.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(n.data.animation)}}let o=n.features;if(o)for(let s=0;s=0;i--){let n=t[i];n.hostVars=e+=n.hostVars,n.hostAttrs=Da(n.hostAttrs,r=Da(r,n.hostAttrs))}}function Gl(t){return t===os?{}:t===Qt?[]:t}function yN(t,e){let r=t.viewQuery;r?t.viewQuery=(i,n)=>{e(i,n),r(i,n)}:t.viewQuery=e}function wN(t,e){let r=t.contentQueries;r?t.contentQueries=(i,n,o)=>{e(i,n,o),r(i,n,o)}:t.contentQueries=e}function xN(t,e){let r=t.hostBindings;r?t.hostBindings=(i,n)=>{e(i,n),r(i,n)}:t.hostBindings=e}function re(t){let e=t.inputConfig,r={};for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];Array.isArray(n)&&n[3]&&(r[i]=n[3])}t.inputTransforms=r}var _r=class{},Ma=class{};var yd=class extends _r{constructor(e,r,i){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new vd(this);let n=U0(e);this._bootstrapComponents=Jw(n.bootstrap),this._r3Injector=kw(e,r,[{provide:_r,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver},...i],Xt(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},wd=class extends Ma{constructor(e){super(),this.moduleType=e}create(e){return new yd(this.moduleType,e,[])}};function DN(t,e,r){return new yd(t,e,r)}var hm=class extends _r{constructor(e){super(),this.componentFactoryResolver=new vd(this),this.instance=null;let r=new Ca([...e.providers,{provide:_r,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver}],e.parent||Nd(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Kd(t,e,r=null){return new hm({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function $x(t){return bg(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function CN(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function RN(t){return(t&2)==2}function AN(t,e){return t&131071|e<<17}function fm(t){return t|2}function ps(t){return(t&131068)>>2}function gp(t,e){return t&-131069|e<<2}function ON(t){return(t&1)===1}function pm(t){return t|1}function NN(t,e,r,i,n,o){let s=o?e.classBindings:e.styleBindings,a=uo(s),c=ps(s);t[i]=r;let l=!1,d;if(Array.isArray(r)){let u=r;d=u[1],(d===null||Aa(u,d)>0)&&(l=!0)}else d=r;if(n)if(c!==0){let f=uo(t[a+1]);t[i+1]=Wl(f,a),f!==0&&(t[f+1]=gp(t[f+1],i)),t[a+1]=AN(t[a+1],i)}else t[i+1]=Wl(a,0),a!==0&&(t[a+1]=gp(t[a+1],i)),a=i;else t[i+1]=Wl(c,0),a===0?a=i:t[c+1]=gp(t[c+1],i),c=i;l&&(t[i+1]=fm(t[i+1])),u0(t,d,i,!0),u0(t,d,i,!1),FN(e,d,t,i,o),s=Wl(a,c),o?e.classBindings=s:e.styleBindings=s}function FN(t,e,r,i,n){let o=n?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Aa(o,e)>=0&&(r[i+1]=pm(r[i+1]))}function u0(t,e,r,i){let n=t[r+1],o=e===null,s=i?uo(n):ps(n),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];PN(c,e)&&(a=!0,t[s+1]=i?pm(l):fm(l)),s=i?uo(l):ps(l)}a&&(t[r+1]=i?fm(n):pm(n))}function PN(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Aa(t,e)>=0:!1}var Ct={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Gx(t){return t.substring(Ct.key,Ct.keyEnd)}function LN(t){return t.substring(Ct.value,Ct.valueEnd)}function jN(t){return Yx(t),Wx(t,ms(t,0,Ct.textEnd))}function Wx(t,e){let r=Ct.textEnd;return r===e?-1:(e=Ct.keyEnd=BN(t,Ct.key=e,r),ms(t,e,r))}function VN(t){return Yx(t),qx(t,ms(t,0,Ct.textEnd))}function qx(t,e){let r=Ct.textEnd,i=Ct.key=ms(t,e,r);return r===i?-1:(i=Ct.keyEnd=zN(t,i,r),i=h0(t,i,r,58),i=Ct.value=ms(t,i,r),i=Ct.valueEnd=UN(t,i,r),h0(t,i,r,59))}function Yx(t){Ct.key=0,Ct.keyEnd=0,Ct.value=0,Ct.valueEnd=0,Ct.textEnd=t.length}function ms(t,e,r){for(;e32;)e++;return e}function zN(t,e,r){let i;for(;e=65&&(i&-33)<=90||i>=48&&i<=57);)e++;return e}function h0(t,e,r,i){return e=ms(t,e,r),e32&&(a=s),o=n,n=i,i=c&-33}return a}function f0(t,e,r,i){let n=-1,o=r;for(;o=0;r=qx(e,r))Jx(t,Gx(e),LN(e))}function kt(t){wg(ZN,Zx,t,!0)}function Zx(t,e){for(let r=jN(e);r>=0;r=Wx(e,r))Ra(t,Gx(e),!0)}function Qx(t,e,r,i){let n=me(),o=et(),s=uw(2);if(o.firstUpdatePass&&Xx(o,t,s,i),e!==Oi&&fi(n,s,e)){let a=o.data[wr()];eD(o,a,n,n[nt],t,n[s+1]=KN(e,r),i,s)}}function wg(t,e,r,i){let n=et(),o=uw(2);n.firstUpdatePass&&Xx(n,null,o,i);let s=me();if(r!==Oi&&fi(s,o,r)){let a=n.data[wr()];if(tD(a,i)&&!Kx(n,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=xp(c,r||"")),mm(n,a,s,r,i)}else QN(n,a,s,s[nt],s[o+1],s[o+1]=YN(t,e,r),i,o)}}function Kx(t,e){return e>=t.expandoStartIndex}function Xx(t,e,r,i){let n=t.data;if(n[r+1]===null){let o=n[wr()],s=Kx(t,r);tD(o,i)&&e===null&&!s&&(e=!1),e=$N(n,o,e,i),NN(n,o,e,r,s,i)}}function $N(t,e,r,i){let n=Zm(t),o=i?e.residualClasses:e.residualStyles;if(n===null)(i?e.classBindings:e.styleBindings)===0&&(r=vp(null,t,e,r,i),r=ka(r,e.attrs,i),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==n)if(r=vp(n,t,e,r,i),o===null){let c=GN(t,e,i);c!==void 0&&Array.isArray(c)&&(c=vp(null,t,e,c[1],i),c=ka(c,e.attrs,i),WN(t,e,i,c))}else o=qN(t,e,i)}return o!==void 0&&(i?e.residualClasses=o:e.residualStyles=o),r}function GN(t,e,r){let i=r?e.classBindings:e.styleBindings;if(ps(i)!==0)return t[uo(i)]}function WN(t,e,r,i){let n=r?e.classBindings:e.styleBindings;t[uo(n)]=i}function qN(t,e,r){let i,n=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[n],l=Array.isArray(c),d=l?c[1]:c,u=d===null,f=r[n+1];f===Oi&&(f=u?Qt:void 0);let p=u?ap(f,i):d===i?f:void 0;if(l&&!Dd(p)&&(p=ap(c,i)),Dd(p)&&(a=p,s))return a;let v=t[n+1];n=s?uo(v):ps(v)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=ap(c,i))}return a}function Dd(t){return t!==void 0}function KN(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Xt(Ai(t)))),t}function tD(t,e){return(t.flags&(e?8:16))!==0}function Xd(t,e,r){let i=me(),n=yg(i,t,e,r);wg(Ra,Zx,n,!0)}var gm=class{destroy(e){}updateValue(e,r){}swap(e,r){let i=Math.min(e,r),n=Math.max(e,r),o=this.detach(n);if(n-i>1){let s=this.detach(i);this.attach(i,o),this.attach(n,s)}else this.attach(i,o)}move(e,r){this.attach(r,this.detach(e))}};function bp(t,e,r,i,n){return t===r&&Object.is(e,i)?1:Object.is(n(t,e),n(r,i))?-1:0}function XN(t,e,r){let i,n,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let l=t.at(o),d=e[o],u=bp(o,l,o,d,r);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let f=t.at(s),p=e[c],v=bp(s,f,c,p,r);if(v!==0){v<0&&t.updateValue(s,p),s--,c--;continue}let S=r(o,l),E=r(s,f),R=r(o,d);if(Object.is(R,E)){let he=r(c,p);Object.is(he,S)?(t.swap(o,s),t.updateValue(s,p),c--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(i??=new Cd,n??=g0(t,o,s,r),vm(t,i,o,R))t.updateValue(o,d),o++,s++;else if(n.has(R))i.set(S,t.detach(o)),s--;else{let he=t.create(o,e[o]);t.attach(o,he),o++,s++}}for(;o<=c;)m0(t,i,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&o<=s;){let d=t.at(o),u=l.value,f=bp(o,d,o,u,r);if(f!==0)f<0&&t.updateValue(o,u),o++,l=c.next();else{i??=new Cd,n??=g0(t,o,s,r);let p=r(o,u);if(vm(t,i,o,p))t.updateValue(o,u),o++,s++,l=c.next();else if(!n.has(p))t.attach(o,t.create(o,u)),o++,s++,l=c.next();else{let v=r(o,d);i.set(v,t.detach(o)),s--}}}for(;!l.done;)m0(t,i,r,t.length,l.value),l=c.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(c=>{t.destroy(c)})}function vm(t,e,r,i){return e!==void 0&&e.has(i)?(t.attach(r,e.get(i)),e.delete(i),!0):!1}function m0(t,e,r,i,n){if(vm(t,e,i,r(i,n)))t.updateValue(i,n);else{let o=t.create(i,n);t.attach(i,o)}}function g0(t,e,r,i){let n=new Set;for(let o=e;o<=r;o++)n.add(i(o,t.at(o)));return n}var Cd=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(i);)i=n.get(i);n.set(i,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,i]of this.kvMap)if(e(i,r),this._vMap!==void 0){let n=this._vMap;for(;n.has(i);)i=n.get(i),e(i,r)}}};function le(t,e){In("NgControlFlow");let r=me(),i=yr(),n=r[i]!==Oi?r[i]:-1,o=n!==-1?Ed(r,ft+n):void 0,s=0;if(fi(r,i,t)){let a=Te(null);try{if(o!==void 0&&Ex(o,s),t!==-1){let c=ft+t,l=Ed(r,c),d=wm(r[fe],c),u=us(l,d.tView.ssrId),f=Ba(r,d,e,{dehydratedView:u});za(l,f,s,ds(d,u))}}finally{Te(a)}}else if(o!==void 0){let a=Cx(o,s);a!==void 0&&(a[St]=e)}}var bm=class{constructor(e,r,i){this.lContainer=e,this.$implicit=r,this.$index=i}get $count(){return this.lContainer.length-zt}};function Jd(t,e){return e}var _m=class{constructor(e,r,i){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=i}};function eu(t,e,r,i,n,o,s,a,c,l,d,u,f){In("NgControlFlow");let p=me(),v=et(),S=c!==void 0,E=me(),R=a?s.bind(E[ui][St]):s,he=new _m(S,R);E[ft+t]=he,xd(p,v,t+1,e,r,i,n,br(v.consts,o)),S&&xd(p,v,t+2,c,l,d,u,br(v.consts,f))}var ym=class extends gm{constructor(e,r,i){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-zt}at(e){return this.getLView(e)[St].$implicit}attach(e,r){let i=r[as];this.needsIndexUpdate||=e!==this.length,za(this.lContainer,r,e,ds(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,JN(this.lContainer,e)}create(e,r){let i=us(this.lContainer,this.templateTNode.tView.ssrId),n=Ba(this.hostLView,this.templateTNode,new bm(this.lContainer,r,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),n}destroy(e){$d(e[fe],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[St].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Bd(!0),tx(i,n,lA()));function nF(t,e,r,i,n){let o=e.consts,s=br(o,i),a=ws(e,t,8,"ng-container",s);s!==null&&gd(a,s,!0);let c=br(o,n);return ug(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function Dr(t,e,r){let i=me(),n=et(),o=t+ft,s=n.firstCreatePass?nF(o,n,i,e,r):n.data[o];ho(s,!0);let a=rF(n,i,s,t);return i[o]=a,Vd()&&Gd(n,i,a,s),Mi(a,i),Pd(s)&&(cg(n,i,s),ag(n,s,i)),r!=null&&lg(i,s),Dr}function Cr(){let t=Mt(),e=et();return qm()?Ym():(t=t.parent,ho(t,!1)),e.firstCreatePass&&(zd(e,t),Hm(t)&&e.queries.elementEnd(t)),Cr}function tt(t,e,r){return Dr(t,e,r),Cr(),tt}var rF=(t,e,r,i)=>(Bd(!0),y1(e[nt],""));function Ye(){return me()}function yt(t,e,r){let i=me(),n=yr();if(fi(i,n,e)){let o=et(),s=bs();Va(o,s,i,t,e,i[nt],r,!0)}return yt}function xg(t,e,r){let i=me(),n=yr();if(fi(i,n,e)){let o=et(),s=bs(),a=Zm(o.data),c=xx(a,s,i);Va(o,s,i,t,e,c,r,!0)}return xg}var Xr=void 0;function oF(t){let e=t,r=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&i===0?1:5}var sF=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",oF],_p={};function Fi(t){let e=aF(t),r=v0(e);if(r)return r;let i=e.split("-")[0];if(r=v0(i),r)return r;if(i==="en")return sF;throw new G(701,!1)}function v0(t){return t in _p||(_p[t]=ht.ng&&ht.ng.common&&ht.ng.common.locales&&ht.ng.common.locales[t]),_p[t]}var mt=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(mt||{});function aF(t){return t.toLowerCase().replace(/_/g,"-")}var Id="en-US";var cF=Id;function lF(t){typeof t=="string"&&(cF=t.toLowerCase().replace(/_/g,"-"))}var dF=(t,e,r)=>{};function Z(t,e,r,i){let n=me(),o=et(),s=Mt();return Cg(o,n,n[nt],s,t,e,i),Z}function Dg(t,e){let r=Mt(),i=me(),n=et(),o=Zm(n.data),s=xx(o,r,i);return Cg(n,i,s,r,t,e),Dg}function uF(t,e,r,i){let n=t.cleanup;if(n!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Cg(t,e,r,i,n,o,s){let a=Pd(i),l=t.firstCreatePass&&wx(t),d=e[St],u=yx(e),f=!0;if(i.type&3||s){let S=Ti(i,e),E=s?s(S):S,R=u.length,he=s?Ue=>s(hi(Ue[i.index])):i.index,Ne=null;if(!s&&a&&(Ne=uF(t,e,n,i.index)),Ne!==null){let Ue=Ne.__ngLastListenerFn__||Ne;Ue.__ngNextListenerFn__=o,Ne.__ngLastListenerFn__=o,f=!1}else{o=_0(i,e,d,o),dF(S,n,o);let Ue=r.listen(E,n,o);u.push(o,Ue),l&&l.push(n,he,R,R+1)}}else o=_0(i,e,d,o);let p=i.outputs,v;if(f&&p!==null&&(v=p[n])){let S=v.length;if(S)for(let E=0;E-1?yn(t.index,e):e;pg(s,5);let a=b0(e,r,i,o),c=n.__ngNextListenerFn__;for(;c;)a=b0(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function $(t=1){return aA(t)}function hF(t,e){let r=null,i=vR(t);for(let n=0;n=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}function gt(t){let e=tA();return Gm(e,ft+t)}function we(t,e=""){let r=me(),i=et(),n=t+ft,o=i.firstCreatePass?ws(i,n,1,e,null):i.data[n],s=gF(i,r,o,e,t);r[n]=s,Vd()&&Gd(i,r,s,o),ho(o,!1)}var gF=(t,e,r,i,n)=>(Bd(!0),b1(e[nt],i));function at(t){return Lt("",t,""),at}function Lt(t,e,r){let i=me(),n=yg(i,t,e,r);return n!==Oi&&cO(i,wr(),n),Lt}function vF(t,e,r){Hx(e)&&(e=e());let i=me(),n=yr();if(fi(i,n,e)){let o=et(),s=bs();Va(o,s,i,t,e,i[nt],r,!1)}return vF}function zY(t,e){let r=Hx(t);return r&&t.set(e),r}function bF(t,e){let r=me(),i=et(),n=Mt();return Cg(i,r,r[nt],n,t,e),bF}function _F(t,e,r){let i=et();if(i.firstCreatePass){let n=Wn(t);xm(r,i.data,i.blueprint,n,!0),xm(e,i.data,i.blueprint,n,!1)}}function xm(t,e,r,i,n){if(t=Zt(t),Array.isArray(t))for(let o=0;o>20;if(ss(t)||!t.multi){let p=new so(l,n,h),v=wp(c,e,n?d:d+f,u);v===-1?(Pp(ud(a,s),o,c),yp(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),r.push(p),s.push(p)):(r[v]=p,s[v]=p)}else{let p=wp(c,e,d+f,u),v=wp(c,e,d,d+f),S=p>=0&&r[p],E=v>=0&&r[v];if(n&&!E||!n&&!S){Pp(ud(a,s),o,c);let R=xF(n?wF:yF,r.length,n,i,l);!n&&E&&(r[v].providerFactory=R),yp(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),r.push(R),s.push(R)}else{let R=nD(r[n?v:p],l,!n&&i);yp(o,t,p>-1?p:v,R)}!n&&i&&E&&r[v].componentProviders++}}}function yp(t,e,r,i){let n=ss(e),o=RR(e);if(n||o){let c=(o?Zt(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!n&&e.multi){let d=l.indexOf(r);d===-1?l.push(r,[i,c]):l[d+1].push(i,c)}else l.push(r,c)}}}function nD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function wp(t,e,r,i){for(let n=r;n{r.providersResolver=(i,n)=>_F(i,n?n(t):t,e)}}var DF=(()=>{let e=class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let n=G0(!1,i.type),o=n.length>0?Kd([n],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,o)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(m(_t))});let t=e;return t})();function Y(t){In("NgStandalone"),t.getStandaloneInjector=e=>e.get(DF).getOrCreateStandaloneInjector(t)}function UY(t,e,r){let i=Fa()+t,n=me();return n[i]===Oi?_g(n,i,r?e.call(r):e()):EN(n,i)}function Eg(t,e,r,i){return oD(me(),Fa(),t,e,r,i)}function Ha(t,e,r,i,n){return sD(me(),Fa(),t,e,r,i,n)}function rD(t,e){let r=t[e];return r===Oi?void 0:r}function oD(t,e,r,i,n,o){let s=e+r;return fi(t,s,n)?_g(t,s+1,o?i.call(o,n):i(n)):rD(t,s+1)}function sD(t,e,r,i,n,o,s){let a=e+r;return IN(t,a,n,o)?_g(t,a+2,s?i.call(s,n,o):i(n,o)):rD(t,a+2)}function iu(t,e){let r=et(),i,n=t+ft;r.firstCreatePass?(i=CF(e,r.pipeRegistry),r.data[n]=i,i.onDestroy&&(r.destroyHooks??=[]).push(n,i.onDestroy)):i=r.data[n];let o=i.factory||(i.factory=to(i.type,!0)),s,a=ci(h);try{let c=dd(!1),l=o();return dd(c),mF(r,me(),n,l),l}finally{ci(a)}}function CF(t,e){if(e)for(let r=e.length-1;r>=0;r--){let i=e[r];if(t===i.name)return i}}function nu(t,e,r){let i=t+ft,n=me(),o=Gm(n,i);return aD(n,i)?oD(n,Fa(),e,o.transform,r,o):o.transform(r)}function HY(t,e,r,i){let n=t+ft,o=me(),s=Gm(o,n);return aD(o,n)?sD(o,Fa(),e,s.transform,r,i,s):s.transform(r,i)}function aD(t,e){return t[fe].data[e].pure}function Er(t,e){return Zd(t,e)}var ql=null;function EF(t){ql!==null&&(t.defaultEncapsulation!==ql.defaultEncapsulation||t.preserveWhitespaces!==ql.preserveWhitespaces)||(ql=t)}var ru=(()=>{let e=class e{log(i){console.log(i)}warn(i){console.warn(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Ig=new g(""),$a=new g(""),ou=(()=>{let e=class e{constructor(i,n,o){this._ngZone=i,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Sg||(IF(o),o.addToWindow(n)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(i)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),i()},n)),this._callbacks.push({doneCb:i,timeoutId:s,updateCb:o})}whenStable(i,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,n,o),this._runCallbacksIfReady()}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,n,o){return[]}};e.\u0275fac=function(n){return new(n||e)(m(F),m(su),m($a))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),su=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(i,n){this._applications.set(i,n)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,n=!0){return Sg?.findTestabilityInTree(this,i,n)??null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function IF(t){Sg=t}var Sg;function Ir(t){return!!t&&typeof t.then=="function"}function Mg(t){return!!t&&typeof t.subscribe=="function"}var au=new g(""),cD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,n)=>{this.resolve=i,this.reject=n}),this.appInits=b(au,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let o of this.appInits){let s=o();if(Ir(s))i.push(s);else if(Mg(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});i.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{n()}).catch(o=>{this.reject(o)}),i.length===0&&n(),this.initialized=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cu=new g("");function SF(){K_(()=>{throw new G(600,!1)})}function MF(t){return t.isBoundToModule}var kF=10;function TF(t,e,r){try{let i=r();return Ir(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}function lD(t,e){return Array.isArray(e)?e.reduce(lD,t):w(w({},t),e)}var mi=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(Tw),this.afterRenderEffectManager=b(gg),this.zonelessEnabled=b(Ax),this.externalTestViews=new Set,this.beforeRender=new C,this.afterTick=new C,this.componentTypes=[],this.components=[],this.isStable=b(Cn).hasPendingTasks.pipe(P(i=>!i)),this._injector=b(_t)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,n){let o=i instanceof pd;if(!this._injector.get(cD).done){let p=!o&&z0(i),v=!1;throw new G(405,v)}let a;o?a=i:a=this._injector.get(Ki).resolveComponentFactory(i),this.componentTypes.push(a.componentType);let c=MF(a)?void 0:this._injector.get(_r),l=n||a.selector,d=a.create(Se.NULL,[],l,c),u=d.location.nativeElement,f=d.injector.get(Ig,null);return f?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),ed(this.components,d),f?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new G(101,!1);let n=Te(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,Te(n),this.afterTick.next()}}detectChangesInAttachedViews(i){let n=null;this._injector.destroyed||(n=this._injector.get(fs,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oIa(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Ia(c))))break}}attachView(i){let n=i;this._views.push(n),n.attachToAppRef(this)}detachView(i){let n=i;ed(this._views,n),n.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let n=this._injector.get(cu,[]);[...this._bootstrapListeners,...n].forEach(o=>o(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>ed(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new G(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ed(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function RF(t,e,r,i){if(!r&&!Ia(t))return;Mx(t,e,r&&!i?0:1)}var Cm=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},lu=(()=>{let e=class e{compileModuleSync(i){return new wd(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let n=this.compileModuleSync(i),o=U0(i),s=Jw(o.declarations).reduce((a,c)=>{let l=$n(c);return l&&a.push(new lo(l)),a},[]);return new Cm(n,s)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),AF=new g("");function OF(t,e,r){let i=new wd(r);return Promise.resolve(i)}function y0(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var NF=(()=>{let e=class e{constructor(){this.zone=b(F),this.changeDetectionScheduler=b(hs),this.applicationRef=b(mi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function FF({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new F(dD()),[{provide:F,useFactory:t},{provide:gr,multi:!0,useFactory:()=>{let r=b(NF,{optional:!0});return()=>r.initialize()}},{provide:gr,multi:!0,useFactory:()=>{let r=b(LF);return()=>{r.initialize()}}},{provide:Tw,useFactory:PF},e===!0?{provide:Ox,useValue:!0}:[]]}function PF(){let t=b(F),e=b(Ft);return r=>t.runOutsideAngular(()=>e.handleError(r))}function dD(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var LF=(()=>{let e=class e{constructor(){this.subscription=new ne,this.initialized=!1,this.zone=b(F),this.pendingTasks=b(Cn)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{F.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var jF=(()=>{let e=class e{constructor(){this.appRef=b(mi),this.taskService=b(Cn),this.ngZone=b(F),this.zonelessEnabled=b(Ax),this.disableScheduling=b(Ox,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ne,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof md||!this.zoneIsDefined)}notify(i){if(!this.zonelessEnabled&&i===5)return;switch(i){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?o0:Nx;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&F.isInAngularZone())}tick(i){if(this.runningTick||this.appRef.destroyed)return;let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(i)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,o0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function VF(){return typeof $localize<"u"&&$localize.locale||Id}var Ga=new g("",{providedIn:"root",factory:()=>b(Ga,Ie.Optional|Ie.SkipSelf)||VF()});var uD=new g(""),hD=(()=>{let e=class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,n){let o=LO(n?.ngZone,dD({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{let s=n?.ignoreChangesOutsideZone,a=DN(i.moduleType,this.injector,[...FF({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s}),{provide:hs,useExisting:jF}]),c=a.injector.get(Ft,null);return o.runOutsideAngular(()=>{let l=o.onError.subscribe({next:d=>{c.handleError(d)}});a.onDestroy(()=>{ed(this._modules,a),l.unsubscribe()})}),TF(c,o,()=>{let l=a.injector.get(cD);return l.runInitializers(),l.donePromise.then(()=>{let d=a.injector.get(Ga,Id);return lF(d||Id),this._moduleDoBootstrap(a),a})})})}bootstrapModule(i,n=[]){let o=lD({},n);return OF(this.injector,o,i).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(i){let n=i.injector.get(mi);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(o=>n.bootstrap(o));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(n);else throw new G(-403,!1);this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new G(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let i=this._injector.get(uD,null);i&&(i.forEach(n=>n()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(n){return new(n||e)(m(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),wa=null,fD=new g("");function BF(t){if(wa&&!wa.get(fD,!1))throw new G(400,!1);SF(),wa=t;let e=t.get(hD);return HF(t),e}function kg(t,e,r=[]){let i=`Platform: ${e}`,n=new g(i);return(o=[])=>{let s=pD();if(!s||s.injector.get(fD,!1)){let a=[...r,...o,{provide:n,useValue:!0}];t?t(a):BF(zF(a,i))}return UF(n)}}function zF(t=[],e){return Se.create({name:e,providers:[{provide:Od,useValue:"platform"},{provide:uD,useValue:new Set([()=>wa=null])},...t]})}function UF(t){let e=pD();if(!e)throw new G(401,!1);return e}function pD(){return wa?.get(hD)??null}function HF(t){t.get(tg,null)?.forEach(r=>r())}function Tg(){return!1}var ue=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=$F;let t=e;return t})();function $F(t){return GF(Mt(),me(),(t&16)===16)}function GF(t,e,r){if(Fd(t)&&!r){let i=yn(t.index,e);return new co(i,i)}else if(t.type&175){let i=e[ui];return new co(i,e)}return null}var Em=class{constructor(){}supports(e){return $x(e)}create(e){return new Im(e)}},WF=(t,e)=>e,Im=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||WF}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,i=this._removalsHead,n=0,o=null;for(;r||i;){let s=!i||r&&r.currentIndex{s=this._trackByFn(n,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,n),i=!0):(i&&(r=this._verifyReinsertion(r,a,s,n)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,i,n){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,n)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,n),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,n)):e=this._addAfter(new Sm(r,i),o,n)),e}_verifyReinsertion(e,r,i,n){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?e=this._reinsertAfter(o,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let n=e._prevRemoved,o=e._nextRemoved;return n===null?this._removalsHead=o:n._nextRemoved=o,o===null?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(e,r,i),this._addToMoves(e,i),e}_moveAfter(e,r,i){return this._unlink(e),this._insertAfter(e,r,i),this._addToMoves(e,i),e}_addAfter(e,r,i){return this._insertAfter(e,r,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,i){let n=r===null?this._itHead:r._next;return e._next=n,e._prev=r,n===null?this._itTail=e:n._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Sd),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,i=e._next;return r===null?this._itHead=i:r._next=i,i===null?this._itTail=r:i._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Sd),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Sm=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Mm=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let i;for(i=this._head;i!==null;i=i._nextDup)if((r===null||r<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let r=e._prevDup,i=e._nextDup;return r===null?this._head=i:r._nextDup=i,i===null?this._tail=r:i._prevDup=r,this._head===null}},Sd=class{constructor(){this.map=new Map}put(e){let r=e.trackById,i=this.map.get(r);i||(i=new Mm,this.map.set(r,i)),i.add(e)}get(e,r){let i=e,n=this.map.get(i);return n?n.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function w0(t,e,r){let i=t.previousIndex;if(i===null)return i;let n=0;return r&&i{if(r&&r.key===n)this._maybeAddToChanges(r,i),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(n,i);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let i=r;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let i=e._prev;return r._next=e,r._prev=i,e._prev=r,i&&(i._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,r);let o=n._prev,s=n._next;return o&&(o._next=s),s&&(s._prev=o),n._next=null,n._prev=null,n}let i=new Rm(e);return this._records.set(e,i),i.currentValue=r,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(i=>r(e[i],i))}},Rm=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function x0(){return new Sn([new Em])}var Sn=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,n){if(n!=null){let o=n.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:n=>e.create(i,n||x0()),deps:[[e,new Yn,new xn]]}}find(i){let n=this.factories.find(o=>o.supports(i));if(n!=null)return n;throw new G(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:x0});let t=e;return t})();function D0(){return new du([new km])}var du=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,n){if(n){let o=n.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:n=>e.create(i,n||D0()),deps:[[e,new Yn,new xn]]}}find(i){let n=this.factories.find(o=>o.supports(i));if(n)return n;throw new G(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:D0});let t=e;return t})();var mD=kg(null,"core",[]),gD=(()=>{let e=class e{constructor(i){}};e.\u0275fac=function(n){return new(n||e)(m(mi))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var vD=new g("");function T(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function dt(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Mn(t,e){In("NgSignals");let r=Y_(t);return e?.equal&&(r[an].equal=e.equal),r}function ei(t){let e=Te(null);try{return t()}finally{Te(e)}}var qF=new g("",{providedIn:"root",factory:()=>b(YF)}),YF=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new Am});let t=e;return t})(),Am=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=b(Cn),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let i=this.queues.get(r);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},Om=class{constructor(e,r,i,n,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=i,this.injector=o,this.watcher=ty(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Ft,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function uu(t,e){In("NgSignals"),!e?.injector&&Oa(uu);let r=e?.injector??b(Se),i=e?.manualCleanup!==!0?r.get(fo):null,n=new Om(r.get(qF),t,typeof Zone>"u"?null:Zone.current,i,r,e?.allowSignalWrites??!1),o=r.get(ue,null,{optional:!0});return!o||!(o._lView[ve]&8)?n.watcher.notify():(o._lView[Zl]??=[]).push(n.watcher.notify),n}function bD(t,e){let r=$n(t),i=e.elementInjector||Nd();return new lo(r).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}function _D(t){let e=$n(t);if(!e)return null;let r=new lo(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var SD=null;function kn(){return SD}function MD(t){SD??=t}var yu=class{};var K=new g(""),Ug=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(QF),providedIn:"platform"});let t=e;return t})(),kD=new g(""),QF=(()=>{let e=class e extends Ug{constructor(){super(),this._doc=b(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return kn().getBaseHref(this._doc)}onPopState(i){let n=kn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",i,!1),()=>n.removeEventListener("popstate",i)}onHashChange(i){let n=kn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",i,!1),()=>n.removeEventListener("hashchange",i)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(i){this._location.pathname=i}pushState(i,n,o){this._history.pushState(i,n,o)}replaceState(i,n,o){this._history.replaceState(i,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Hg(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function yD(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,i=r-(t[r-1]==="/"?1:0);return t.slice(0,i)+t.slice(r)}function Xn(t){return t&&t[0]!=="?"?"?"+t:t}var er=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b($g),providedIn:"root"});let t=e;return t})(),TD=new g(""),$g=(()=>{let e=class e extends er{constructor(i,n){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??b(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return Hg(this._baseHref,i)}path(i=!1){let n=this._platformLocation.pathname+Xn(this._platformLocation.search),o=this._platformLocation.hash;return o&&i?`${n}${o}`:n}pushState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));this._platformLocation.pushState(i,n,a)}replaceState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));this._platformLocation.replaceState(i,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ug),m(TD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),RD=(()=>{let e=class e extends er{constructor(i,n){super(),this._platformLocation=i,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}path(i=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(i){let n=Hg(this._baseHref,i);return n.length>0?"#"+n:n}pushState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(i,n,a)}replaceState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(i,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ug),m(TD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Mr=(()=>{let e=class e{constructor(i){this._subject=new B,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let n=this._locationStrategy.getBaseHref();this._basePath=JF(yD(wD(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,n=""){return this.path()==this.normalize(i+Xn(n))}normalize(i){return e.stripTrailingSlash(XF(this._basePath,wD(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,n="",o=null){this._locationStrategy.pushState(o,"",i,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Xn(n)),o)}replaceState(i,n="",o=null){this._locationStrategy.replaceState(o,"",i,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Xn(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",n){this._urlChangeListeners.forEach(o=>o(i,n))}subscribe(i,n,o){return this._subject.subscribe({next:i,error:n,complete:o})}};e.normalizeQueryParams=Xn,e.joinWithSlash=Hg,e.stripTrailingSlash=yD,e.\u0275fac=function(n){return new(n||e)(m(er))},e.\u0275prov=D({token:e,factory:()=>KF(),providedIn:"root"});let t=e;return t})();function KF(){return new Mr(m(er))}function XF(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function wD(t){return t.replace(/\/index.html$/,"")}function JF(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var ti=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ti||{}),Xe=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Xe||{}),gi=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(gi||{}),Sr={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function eP(t){return Fi(t)[mt.LocaleId]}function tP(t,e,r){let i=Fi(t),n=[i[mt.DayPeriodsFormat],i[mt.DayPeriodsStandalone]],o=Pi(n,e);return Pi(o,r)}function iP(t,e,r){let i=Fi(t),n=[i[mt.DaysFormat],i[mt.DaysStandalone]],o=Pi(n,e);return Pi(o,r)}function nP(t,e,r){let i=Fi(t),n=[i[mt.MonthsFormat],i[mt.MonthsStandalone]],o=Pi(n,e);return Pi(o,r)}function rP(t,e){let i=Fi(t)[mt.Eras];return Pi(i,e)}function hu(t,e){let r=Fi(t);return Pi(r[mt.DateFormat],e)}function fu(t,e){let r=Fi(t);return Pi(r[mt.TimeFormat],e)}function pu(t,e){let i=Fi(t)[mt.DateTimeFormat];return Pi(i,e)}function Cu(t,e){let r=Fi(t),i=r[mt.NumberSymbols][e];if(typeof i>"u"){if(e===Sr.CurrencyDecimal)return r[mt.NumberSymbols][Sr.Decimal];if(e===Sr.CurrencyGroup)return r[mt.NumberSymbols][Sr.Group]}return i}function AD(t){if(!t[mt.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[mt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function oP(t){let e=Fi(t);return AD(e),(e[mt.ExtraData][2]||[]).map(i=>typeof i=="string"?Ag(i):[Ag(i[0]),Ag(i[1])])}function sP(t,e,r){let i=Fi(t);AD(i);let n=[i[mt.ExtraData][0],i[mt.ExtraData][1]],o=Pi(n,e)||[];return Pi(o,r)||[]}function Pi(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function Ag(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var aP=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mu={},cP=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Jn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Jn||{}),ze=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ze||{}),Be=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Be||{});function lP(t,e,r,i){let n=bP(t);e=Kn(r,e)||e;let s=[],a;for(;e;)if(a=cP.exec(e),a){s=s.concat(a.slice(1));let d=s.pop();if(!d)break;e=d}else{s.push(e);break}let c=n.getTimezoneOffset();i&&(c=ND(i,c),n=vP(n,i,!0));let l="";return s.forEach(d=>{let u=mP(d);l+=u?u(n,r,c):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function wu(t,e,r){let i=new Date(0);return i.setFullYear(t,e,r),i.setHours(0,0,0),i}function Kn(t,e){let r=eP(t);if(mu[r]??={},mu[r][e])return mu[r][e];let i="";switch(e){case"shortDate":i=hu(t,gi.Short);break;case"mediumDate":i=hu(t,gi.Medium);break;case"longDate":i=hu(t,gi.Long);break;case"fullDate":i=hu(t,gi.Full);break;case"shortTime":i=fu(t,gi.Short);break;case"mediumTime":i=fu(t,gi.Medium);break;case"longTime":i=fu(t,gi.Long);break;case"fullTime":i=fu(t,gi.Full);break;case"short":let n=Kn(t,"shortTime"),o=Kn(t,"shortDate");i=gu(pu(t,gi.Short),[n,o]);break;case"medium":let s=Kn(t,"mediumTime"),a=Kn(t,"mediumDate");i=gu(pu(t,gi.Medium),[s,a]);break;case"long":let c=Kn(t,"longTime"),l=Kn(t,"longDate");i=gu(pu(t,gi.Long),[c,l]);break;case"full":let d=Kn(t,"fullTime"),u=Kn(t,"fullDate");i=gu(pu(t,gi.Full),[d,u]);break}return i&&(mu[r][e]=i),i}function gu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,i){return e!=null&&i in e?e[i]:r})),t}function Xi(t,e,r="-",i,n){let o="";(t<0||n&&t<=0)&&(n?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===ze.Hours)a===0&&r===-12&&(a=12);else if(t===ze.FractionalSeconds)return dP(a,e);let c=Cu(s,Sr.MinusSign);return Xi(a,e,c,i,n)}}function uP(t,e){switch(t){case ze.FullYear:return e.getFullYear();case ze.Month:return e.getMonth();case ze.Date:return e.getDate();case ze.Hours:return e.getHours();case ze.Minutes:return e.getMinutes();case ze.Seconds:return e.getSeconds();case ze.FractionalSeconds:return e.getMilliseconds();case ze.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function it(t,e,r=ti.Format,i=!1){return function(n,o){return hP(n,o,t,e,r,i)}}function hP(t,e,r,i,n,o){switch(r){case Be.Months:return nP(e,n,i)[t.getMonth()];case Be.Days:return iP(e,n,i)[t.getDay()];case Be.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let l=oP(e),d=sP(e,n,i),u=l.findIndex(f=>{if(Array.isArray(f)){let[p,v]=f,S=s>=p.hours&&a>=p.minutes,E=s0?Math.floor(n/60):Math.ceil(n/60);switch(t){case Jn.Short:return(n>=0?"+":"")+Xi(s,2,o)+Xi(Math.abs(n%60),2,o);case Jn.ShortGMT:return"GMT"+(n>=0?"+":"")+Xi(s,1,o);case Jn.Long:return"GMT"+(n>=0?"+":"")+Xi(s,2,o)+":"+Xi(Math.abs(n%60),2,o);case Jn.Extended:return i===0?"Z":(n>=0?"+":"")+Xi(s,2,o)+":"+Xi(Math.abs(n%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var fP=0,_u=4;function pP(t){let e=wu(t,fP,1).getDay();return wu(t,0,1+(e<=_u?_u:_u+7)-e)}function OD(t){let e=t.getDay(),r=e===0?-3:_u-e;return wu(t.getFullYear(),t.getMonth(),t.getDate()+r)}function Og(t,e=!1){return function(r,i){let n;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();n=1+Math.floor((s+o)/7)}else{let o=OD(r),s=pP(o.getFullYear()),a=o.getTime()-s.getTime();n=1+Math.round(a/6048e5)}return Xi(n,t,Cu(i,Sr.MinusSign))}}function bu(t,e=!1){return function(r,i){let o=OD(r).getFullYear();return Xi(o,t,Cu(i,Sr.MinusSign),e)}}var Ng={};function mP(t){if(Ng[t])return Ng[t];let e;switch(t){case"G":case"GG":case"GGG":e=it(Be.Eras,Xe.Abbreviated);break;case"GGGG":e=it(Be.Eras,Xe.Wide);break;case"GGGGG":e=it(Be.Eras,Xe.Narrow);break;case"y":e=wt(ze.FullYear,1,0,!1,!0);break;case"yy":e=wt(ze.FullYear,2,0,!0,!0);break;case"yyy":e=wt(ze.FullYear,3,0,!1,!0);break;case"yyyy":e=wt(ze.FullYear,4,0,!1,!0);break;case"Y":e=bu(1);break;case"YY":e=bu(2,!0);break;case"YYY":e=bu(3);break;case"YYYY":e=bu(4);break;case"M":case"L":e=wt(ze.Month,1,1);break;case"MM":case"LL":e=wt(ze.Month,2,1);break;case"MMM":e=it(Be.Months,Xe.Abbreviated);break;case"MMMM":e=it(Be.Months,Xe.Wide);break;case"MMMMM":e=it(Be.Months,Xe.Narrow);break;case"LLL":e=it(Be.Months,Xe.Abbreviated,ti.Standalone);break;case"LLLL":e=it(Be.Months,Xe.Wide,ti.Standalone);break;case"LLLLL":e=it(Be.Months,Xe.Narrow,ti.Standalone);break;case"w":e=Og(1);break;case"ww":e=Og(2);break;case"W":e=Og(1,!0);break;case"d":e=wt(ze.Date,1);break;case"dd":e=wt(ze.Date,2);break;case"c":case"cc":e=wt(ze.Day,1);break;case"ccc":e=it(Be.Days,Xe.Abbreviated,ti.Standalone);break;case"cccc":e=it(Be.Days,Xe.Wide,ti.Standalone);break;case"ccccc":e=it(Be.Days,Xe.Narrow,ti.Standalone);break;case"cccccc":e=it(Be.Days,Xe.Short,ti.Standalone);break;case"E":case"EE":case"EEE":e=it(Be.Days,Xe.Abbreviated);break;case"EEEE":e=it(Be.Days,Xe.Wide);break;case"EEEEE":e=it(Be.Days,Xe.Narrow);break;case"EEEEEE":e=it(Be.Days,Xe.Short);break;case"a":case"aa":case"aaa":e=it(Be.DayPeriods,Xe.Abbreviated);break;case"aaaa":e=it(Be.DayPeriods,Xe.Wide);break;case"aaaaa":e=it(Be.DayPeriods,Xe.Narrow);break;case"b":case"bb":case"bbb":e=it(Be.DayPeriods,Xe.Abbreviated,ti.Standalone,!0);break;case"bbbb":e=it(Be.DayPeriods,Xe.Wide,ti.Standalone,!0);break;case"bbbbb":e=it(Be.DayPeriods,Xe.Narrow,ti.Standalone,!0);break;case"B":case"BB":case"BBB":e=it(Be.DayPeriods,Xe.Abbreviated,ti.Format,!0);break;case"BBBB":e=it(Be.DayPeriods,Xe.Wide,ti.Format,!0);break;case"BBBBB":e=it(Be.DayPeriods,Xe.Narrow,ti.Format,!0);break;case"h":e=wt(ze.Hours,1,-12);break;case"hh":e=wt(ze.Hours,2,-12);break;case"H":e=wt(ze.Hours,1);break;case"HH":e=wt(ze.Hours,2);break;case"m":e=wt(ze.Minutes,1);break;case"mm":e=wt(ze.Minutes,2);break;case"s":e=wt(ze.Seconds,1);break;case"ss":e=wt(ze.Seconds,2);break;case"S":e=wt(ze.FractionalSeconds,1);break;case"SS":e=wt(ze.FractionalSeconds,2);break;case"SSS":e=wt(ze.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=vu(Jn.Short);break;case"ZZZZZ":e=vu(Jn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=vu(Jn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=vu(Jn.Long);break;default:return null}return Ng[t]=e,e}function ND(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function gP(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function vP(t,e,r){let i=r?-1:1,n=t.getTimezoneOffset(),o=ND(e,n);return gP(t,i*(o-n))}function bP(t){if(xD(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[n,o=1,s=1]=t.split("-").map(a=>+a);return wu(n,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let i;if(i=t.match(aP))return _P(i)}let e=new Date(t);if(!xD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function _P(t){let e=new Date(0),r=0,i=0,n=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),i=Number(t[9]+t[11])),n.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,l),e}function xD(t){return t instanceof Date&&!isNaN(t.valueOf())}function Eu(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let i=r.indexOf("="),[n,o]=i==-1?[r,""]:[r.slice(0,i),r.slice(i+1)];if(n.trim()===e)return decodeURIComponent(o)}return null}var Fg=/\s+/,DD=[],Ds=(()=>{let e=class e{constructor(i,n){this._ngEl=i,this._renderer=n,this.initialClasses=DD,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(Fg):DD}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(Fg):i}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let n of i)this._updateState(n,!0);else if(i!=null)for(let n of Object.keys(i))this._updateState(n,!!i[n]);this._applyStateDiff()}_updateState(i,n){let o=this.stateMap.get(i);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(i,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let n=i[0],o=i[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(i,n){i=i.trim(),i.length>0&&i.split(Fg).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(En))},e.\u0275dir=I({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Pg=class{constructor(e,r,i,n){this.$implicit=e,this.ngForOf=r,this.index=i,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},FD=(()=>{let e=class e{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,n,o){this._viewContainer=i,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let n=this._viewContainer;i.forEachOperation((o,s,a)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new Pg(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)n.remove(s===null?void 0:s);else if(s!==null){let c=n.get(s);n.move(c,a),CD(c,o)}});for(let o=0,s=n.length;o{let s=n.get(o.currentIndex);CD(s,o)})}static ngTemplateContextGuard(i,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(Sn))},e.\u0275dir=I({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function CD(t,e){t.context.$implicit=e.item}var kr=(()=>{let e=class e{constructor(i,n){this._viewContainer=i,this._context=new Lg,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){ED("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){ED("ngIfElse",i),this._elseTemplateRef=i,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(i,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re))},e.\u0275dir=I({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Lg=class{constructor(){this.$implicit=null,this.ngIf=null}};function ED(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Xt(e)}'.`)}var xu=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},Iu=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(i){this._ngSwitch=i,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(i){this._defaultViews.push(i)}_matchCase(i){let n=i===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(i){if(this._defaultViews.length>0&&i!==this._defaultUsed){this._defaultUsed=i;for(let n of this._defaultViews)n.enforceState(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),PD=(()=>{let e=class e{constructor(i,n,o){this.ngSwitch=o,o._addCase(),this._view=new xu(i,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(Iu,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),lZ=(()=>{let e=class e{constructor(i,n,o){o._addDefault(new xu(i,n))}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(Iu,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var dZ=(()=>{let e=class e{constructor(i,n,o){this._ngEl=i,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(i){this._ngStyle=i,!this._differ&&i&&(this._differ=this._differs.find(i).create())}ngDoCheck(){if(this._differ){let i=this._differ.diff(this._ngStyle);i&&this._applyChanges(i)}}_setStyle(i,n){let[o,s]=i.split("."),a=o.indexOf("-")===-1?void 0:wn.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(i){i.forEachRemovedItem(n=>this._setStyle(n.key,null)),i.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),i.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(du),h(En))},e.\u0275dir=I({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),po=(()=>{let e=class e{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(i,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}};e.\u0275fac=function(n){return new(n||e)(h(Ve))},e.\u0275dir=I({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Me]});let t=e;return t})();function LD(t,e){return new G(2100,!1)}var jg=class{createSubscription(e,r){return ei(()=>e.subscribe({next:r,error:i=>{throw i}}))}dispose(e){ei(()=>e.unsubscribe())}},Vg=class{createSubscription(e,r){return e.then(r,i=>{throw i})}dispose(e){}},yP=new Vg,wP=new jg,Su=(()=>{let e=class e{constructor(i){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=i}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(i){if(!this._obj){if(i)try{this.markForCheckOnValueUpdate=!1,this._subscribe(i)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return i!==this._obj?(this._dispose(),this.transform(i)):this._latestValue}_subscribe(i){this._obj=i,this._strategy=this._selectStrategy(i),this._subscription=this._strategy.createSubscription(i,n=>this._updateLatestValue(i,n))}_selectStrategy(i){if(Ir(i))return yP;if(Mg(i))return wP;throw LD(e,i)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(i,n){i===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue,16))},e.\u0275pipe=Ad({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var xP="mediumDate",DP=new g(""),CP=new g(""),uZ=(()=>{let e=class e{constructor(i,n,o){this.locale=i,this.defaultTimezone=n,this.defaultOptions=o}transform(i,n,o,s){if(i==null||i===""||i!==i)return null;try{let a=n??this.defaultOptions?.dateFormat??xP,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return lP(i,a,s||this.locale,c)}catch(a){throw LD(e,a.message)}}};e.\u0275fac=function(n){return new(n||e)(h(Ga,16),h(DP,24),h(CP,24))},e.\u0275pipe=Ad({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function EP(t,e){return{key:t,value:e}}var hZ=(()=>{let e=class e{constructor(i){this.differs=i,this.keyValues=[],this.compareFn=ID}transform(i,n=ID){if(!i||!(i instanceof Map)&&typeof i!="object")return null;this.differ??=this.differs.find(i).create();let o=this.differ.diff(i),s=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(EP(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}};e.\u0275fac=function(n){return new(n||e)(h(du,16))},e.\u0275pipe=Ad({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function ID(t,e){let r=t.key,i=e.key;if(r===i)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(r===null)return 1;if(i===null)return-1;if(typeof r=="string"&&typeof i=="string")return r{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Gg="browser",IP="server";function Wg(t){return t===Gg}function Mu(t){return t===IP}var jD=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Wg(b(Ri))?new Bg(b(K),window):new zg});let t=e;return t})(),Bg=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=SP(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),i=r.left+this.window.pageXOffset,n=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],n-o[1])}};function SP(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),n=i.currentNode;for(;n;){let o=n.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}n=i.nextNode()}}return null}var zg=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},xs=class{};var qa=class{},Tu=class{},tr=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let i=r.indexOf(":");if(i>0){let n=r.slice(0,i),o=n.toLowerCase(),s=r.slice(i+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,i)=>{this.setHeaderEntries(i,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,i])=>{this.setHeaderEntries(r,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,r);let n=(e.op==="a"?this.headers.get(r):void 0)||[];n.push(...i),this.headers.set(r,n);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let i=(Array.isArray(r)?r:[r]).map(o=>o.toString()),n=e.toLowerCase();this.headers.set(n,i),this.maybeSetNormalizedName(e,n)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Yg=class{encodeKey(e){return VD(e)}encodeValue(e){return VD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function MP(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[s,a]=o==-1?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,o)),e.decodeValue(n.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var kP=/%(\d[a-f0-9])/gi,TP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VD(t){return encodeURIComponent(t).replace(kP,(e,r)=>TP[r]??e)}function ku(t){return`${t}`}var Tn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yg,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=MP(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let i=e.fromObject[r],n=Array.isArray(i)?i.map(ku):[ku(i)];this.map.set(r,n)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(i=>{let n=e[i];Array.isArray(n)?n.forEach(o=>{r.push({param:i,value:o,op:"a"})}):r.push({param:i,value:n,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(i=>r+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ku(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],n=i.indexOf(ku(e.value));n!==-1&&i.splice(n,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Zg=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function RP(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function BD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function zD(t){return typeof Blob<"u"&&t instanceof Blob}function UD(t){return typeof FormData<"u"&&t instanceof FormData}function AP(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Wa=class t{constructor(e,r,i,n){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(RP(this.method)||n?(this.body=i!==void 0?i:null,o=n):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new tr,this.context??=new Zg,!this.params)this.params=new Tn,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(p,e.setHeaders[p]),l)),e.setParams&&(d=Object.keys(e.setParams).reduce((f,p)=>f.set(p,e.setParams[p]),d)),new t(r,i,s,{params:d,headers:l,context:u,reportProgress:c,responseType:n,withCredentials:a,transferCache:o})}},Ar=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ar||{}),Ya=class{constructor(e,r=200,i="OK"){this.headers=e.headers||new tr,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Ru=class t extends Ya{constructor(e={}){super(e),this.type=Ar.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Za=class t extends Ya{constructor(e={}){super(e),this.type=Ar.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Rr=class extends Ya{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},qD=200,OP=204;function qg(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Xg=(()=>{let e=class e{constructor(i){this.handler=i}request(i,n,o={}){let s;if(i instanceof Wa)s=i;else{let l;o.headers instanceof tr?l=o.headers:l=new tr(o.headers);let d;o.params&&(o.params instanceof Tn?d=o.params:d=new Tn({fromObject:o.params})),s=new Wa(i,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=V(s).pipe(pn(l=>this.handler.handle(l)));if(i instanceof Wa||o.observe==="events")return a;let c=a.pipe(ge(l=>l instanceof Za));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(P(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(P(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(i,n={}){return this.request("DELETE",i,n)}get(i,n={}){return this.request("GET",i,n)}head(i,n={}){return this.request("HEAD",i,n)}jsonp(i,n){return this.request("JSONP",i,{params:new Tn().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,n={}){return this.request("OPTIONS",i,n)}patch(i,n,o={}){return this.request("PATCH",i,qg(o,n))}post(i,n,o={}){return this.request("POST",i,qg(o,n))}put(i,n,o={}){return this.request("PUT",i,qg(o,n))}};e.\u0275fac=function(n){return new(n||e)(m(qa))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),NP=/^\)\]\}',?\n/,FP="X-Request-URL";function HD(t){if(t.url)return t.url;let e=FP.toLocaleLowerCase();return t.headers.get(e)}var PP=(()=>{let e=class e{constructor(){this.fetchImpl=b(Qg,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=b(F)}handle(i){return new oe(n=>{let o=new AbortController;return this.doRequest(i,o.signal,n).then(Kg,s=>n.error(new Rr({error:s}))),()=>o.abort()})}doRequest(i,n,o){return Bo(this,null,function*(){let s=this.createRequestInit(i),a;try{let v=this.ngZone.runOutsideAngular(()=>this.fetchImpl(i.urlWithParams,w({signal:n},s)));LP(v),o.next({type:Ar.Sent}),a=yield v}catch(v){o.error(new Rr({error:v,status:v.status??0,statusText:v.statusText,url:i.urlWithParams,headers:v.headers}));return}let c=new tr(a.headers),l=a.statusText,d=HD(a)??i.urlWithParams,u=a.status,f=null;if(i.reportProgress&&o.next(new Ru({headers:c,status:u,statusText:l,url:d})),a.body){let v=a.headers.get("content-length"),S=[],E=a.body.getReader(),R=0,he,Ne,Ue=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Bo(this,null,function*(){for(;;){let{done:xt,value:Ii}=yield E.read();if(xt)break;if(S.push(Ii),R+=Ii.length,i.reportProgress){Ne=i.responseType==="text"?(Ne??"")+(he??=new TextDecoder).decode(Ii,{stream:!0}):void 0;let Vo=()=>o.next({type:Ar.DownloadProgress,total:v?+v:void 0,loaded:R,partialText:Ne});Ue?Ue.run(Vo):Vo()}}}));let Ei=this.concatChunks(S,R);try{let xt=a.headers.get("Content-Type")??"";f=this.parseBody(i,Ei,xt)}catch(xt){o.error(new Rr({error:xt,headers:new tr(a.headers),status:a.status,statusText:a.statusText,url:HD(a)??i.urlWithParams}));return}}u===0&&(u=f?qD:0),u>=200&&u<300?(o.next(new Za({body:f,headers:c,status:u,statusText:l,url:d})),o.complete()):o.error(new Rr({error:f,headers:c,status:u,statusText:l,url:d}))})}parseBody(i,n,o){switch(i.responseType){case"json":let s=new TextDecoder().decode(n).replace(NP,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(i){let n={},o=i.withCredentials?"include":void 0;if(i.headers.forEach((s,a)=>n[s]=a.join(",")),i.headers.has("Accept")||(n.Accept="application/json, text/plain, */*"),!i.headers.has("Content-Type")){let s=i.detectContentTypeHeader();s!==null&&(n["Content-Type"]=s)}return{body:i.serializeBody(),method:i.method,headers:n,credentials:o}}concatChunks(i,n){let o=new Uint8Array(n),s=0;for(let a of i)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qg=class{};function Kg(){}function LP(t){t.then(Kg,Kg)}function YD(t,e){return e(t)}function jP(t,e){return(r,i)=>e.intercept(r,{handle:n=>t(n,i)})}function VP(t,e,r){return(i,n)=>pi(r,()=>e(i,o=>t(o,n)))}var BP=new g(""),Jg=new g(""),zP=new g(""),ZD=new g("",{providedIn:"root",factory:()=>!0});function UP(){let t=null;return(e,r)=>{t===null&&(t=(b(BP,{optional:!0})??[]).reduceRight(jP,YD));let i=b(Cn);if(b(ZD)){let o=i.add();return t(e,r).pipe(Si(()=>i.remove(o)))}else return t(e,r)}}var $D=(()=>{let e=class e extends qa{constructor(i,n){super(),this.backend=i,this.injector=n,this.chain=null,this.pendingTasks=b(Cn),this.contributeToStability=b(ZD)}handle(i){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Jg),...this.injector.get(zP,[])]));this.chain=n.reduceRight((o,s)=>VP(o,s,this.injector),YD)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(i,o=>this.backend.handle(o)).pipe(Si(()=>this.pendingTasks.remove(n)))}else return this.chain(i,n=>this.backend.handle(n))}};e.\u0275fac=function(n){return new(n||e)(m(Tu),m(_t))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var HP=/^\)\]\}',?\n/;function $P(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var GD=(()=>{let e=class e{constructor(i){this.xhrFactory=i}handle(i){if(i.method==="JSONP")throw new G(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?He(n.\u0275loadImpl()):V(null)).pipe(Oe(()=>new oe(s=>{let a=n.build();if(a.open(i.method,i.urlWithParams),i.withCredentials&&(a.withCredentials=!0),i.headers.forEach((E,R)=>a.setRequestHeader(E,R.join(","))),i.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){let E=i.detectContentTypeHeader();E!==null&&a.setRequestHeader("Content-Type",E)}if(i.responseType){let E=i.responseType.toLowerCase();a.responseType=E!=="json"?E:"text"}let c=i.serializeBody(),l=null,d=()=>{if(l!==null)return l;let E=a.statusText||"OK",R=new tr(a.getAllResponseHeaders()),he=$P(a)||i.url;return l=new Ru({headers:R,status:a.status,statusText:E,url:he}),l},u=()=>{let{headers:E,status:R,statusText:he,url:Ne}=d(),Ue=null;R!==OP&&(Ue=typeof a.response>"u"?a.responseText:a.response),R===0&&(R=Ue?qD:0);let Ei=R>=200&&R<300;if(i.responseType==="json"&&typeof Ue=="string"){let xt=Ue;Ue=Ue.replace(HP,"");try{Ue=Ue!==""?JSON.parse(Ue):null}catch(Ii){Ue=xt,Ei&&(Ei=!1,Ue={error:Ii,text:Ue})}}Ei?(s.next(new Za({body:Ue,headers:E,status:R,statusText:he,url:Ne||void 0})),s.complete()):s.error(new Rr({error:Ue,headers:E,status:R,statusText:he,url:Ne||void 0}))},f=E=>{let{url:R}=d(),he=new Rr({error:E,status:a.status||0,statusText:a.statusText||"Unknown Error",url:R||void 0});s.error(he)},p=!1,v=E=>{p||(s.next(d()),p=!0);let R={type:Ar.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(R.total=E.total),i.responseType==="text"&&a.responseText&&(R.partialText=a.responseText),s.next(R)},S=E=>{let R={type:Ar.UploadProgress,loaded:E.loaded};E.lengthComputable&&(R.total=E.total),s.next(R)};return a.addEventListener("load",u),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),i.reportProgress&&(a.addEventListener("progress",v),c!==null&&a.upload&&a.upload.addEventListener("progress",S)),a.send(c),s.next({type:Ar.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",u),a.removeEventListener("timeout",f),i.reportProgress&&(a.removeEventListener("progress",v),c!==null&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(n){return new(n||e)(m(xs))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),QD=new g(""),GP="XSRF-TOKEN",WP=new g("",{providedIn:"root",factory:()=>GP}),qP="X-XSRF-TOKEN",YP=new g("",{providedIn:"root",factory:()=>qP}),Au=class{},ZP=(()=>{let e=class e{constructor(i,n,o){this.doc=i,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=Eu(i,this.cookieName),this.lastCookieString=i),this.lastToken}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ri),m(WP))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function QP(t,e){let r=t.url.toLowerCase();if(!b(QD)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let i=b(Au).getToken(),n=b(YP);return i!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,i)})),e(t)}var KD=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(KD||{});function KP(t,e){return{\u0275kind:t,\u0275providers:e}}function EZ(...t){let e=[Xg,GD,$D,{provide:qa,useExisting:$D},{provide:Tu,useFactory:()=>b(PP,{optional:!0})??b(GD)},{provide:Jg,useValue:QP,multi:!0},{provide:QD,useValue:!0},{provide:Au,useClass:ZP}];for(let r of t)e.push(...r.\u0275providers);return gs(e)}var WD=new g("");function IZ(){return KP(KD.LegacyInterceptors,[{provide:WD,useFactory:UP},{provide:Jg,useExisting:WD,multi:!0}])}var iv=class extends yu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},nv=class t extends iv{static makeCurrent(){MD(new t)}onAndCancel(e,r,i){return e.addEventListener(r,i),()=>{e.removeEventListener(r,i)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=JP();return r==null?null:eL(r)}resetBaseElement(){Qa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Eu(document.cookie,e)}},Qa=null;function JP(){return Qa=Qa||document.querySelector("base"),Qa?Qa.getAttribute("href"):null}function eL(t){return new URL(t,document.baseURI).pathname}var rv=class{addToWindow(e){ht.getAngularTestability=(i,n=!0)=>{let o=e.findTestabilityInTree(i,n);if(o==null)throw new G(5103,!1);return o},ht.getAllAngularTestabilities=()=>e.getAllTestabilities(),ht.getAllAngularRootElements=()=>e.getAllRootElements();let r=i=>{let n=ht.getAllAngularTestabilities(),o=n.length,s=function(){o--,o==0&&i()};n.forEach(a=>{a.whenStable(s)})};ht.frameworkStabilizers||(ht.frameworkStabilizers=[]),ht.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,i){if(r==null)return null;let n=e.getTestability(r);return n??(i?kn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},tL=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ou=new g(""),tC=(()=>{let e=class e{constructor(i,n){this._zone=n,this._eventNameToPlugin=new Map,i.forEach(o=>{o.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,n,o){return this._findPluginFor(n).addEventListener(i,n,o)}getZone(){return this._zone}_findPluginFor(i){let n=this._eventNameToPlugin.get(i);if(n)return n;if(n=this._plugins.find(s=>s.supports(i)),!n)throw new G(5101,!1);return this._eventNameToPlugin.set(i,n),n}};e.\u0275fac=function(n){return new(n||e)(m(Ou),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ka=class{constructor(e){this._doc=e}},ev="ng-app-id",iC=(()=>{let e=class e{constructor(i,n,o,s={}){this.doc=i,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Mu(s),this.resetHostNodes()}addStyles(i){for(let n of i)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(i){for(let n of i)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(n=>n.remove()),i.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let n of this.getAllStyles())this.addStyleToHost(i,n)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let n of this.hostNodes)this.addStyleToHost(n,i)}onStyleRemoved(i){let n=this.styleRef;n.get(i)?.elements?.forEach(o=>o.remove()),n.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${ev}="${this.appId}"]`);if(i?.length){let n=new Map;return i.forEach(o=>{o.textContent!=null&&n.set(o.textContent,o)}),n}return null}changeUsageCount(i,n){let o=this.styleRef;if(o.has(i)){let s=o.get(i);return s.usage+=n,s.usage}return o.set(i,{usage:n,elements:[]}),n}getStyleElement(i,n){let o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===i)return o.delete(n),s.removeAttribute(ev),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(ev,this.appId),i.appendChild(a),a}}addStyleToHost(i,n){let o=this.getStyleElement(i,n),s=this.styleRef,a=s.get(n)?.elements;a?a.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(ys),m(Pa,8),m(Ri))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),tv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},sv=/%COMP%/g,nC="%COMP%",iL=`_nghost-${nC}`,nL=`_ngcontent-${nC}`,rL=!0,oL=new g("",{providedIn:"root",factory:()=>rL});function sL(t){return nL.replace(sv,t)}function aL(t){return iL.replace(sv,t)}function rC(t,e){return e.map(r=>r.replace(sv,t))}var XD=(()=>{let e=class e{constructor(i,n,o,s,a,c,l,d=null){this.eventManager=i,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Mu(c),this.defaultRenderer=new Xa(i,a,l,this.platformIsServer)}createRenderer(i,n){if(!i||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===bn.ShadowDom&&(n=Q(w({},n),{encapsulation:bn.Emulated}));let o=this.getOrCreateRenderer(i,n);return o instanceof Nu?o.applyToHost(i):o instanceof Ja&&o.applyStyles(),o}getOrCreateRenderer(i,n){let o=this.rendererByCompId,s=o.get(n.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(n.encapsulation){case bn.Emulated:s=new Nu(l,d,n,this.appId,u,a,c,f);break;case bn.ShadowDom:return new ov(l,d,i,n,a,c,this.nonce,f);default:s=new Ja(l,d,n,u,a,c,f);break}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(m(tC),m(iC),m(ys),m(oL),m(K),m(Ri),m(F),m(Pa))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xa=class{constructor(e,r,i,n){this.eventManager=e,this.doc=r,this.ngZone=i,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(tv[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(JD(e)?e.content:e).appendChild(r)}insertBefore(e,r,i){e&&(JD(e)?e.content:e).insertBefore(r,i)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new G(-5104,!1);return r||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,i,n){if(n){r=n+":"+r;let o=tv[n];o?e.setAttributeNS(o,r,i):e.setAttribute(r,i)}else e.setAttribute(r,i)}removeAttribute(e,r,i){if(i){let n=tv[i];n?e.removeAttributeNS(n,r):e.removeAttribute(`${i}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,i,n){n&(wn.DashCase|wn.Important)?e.style.setProperty(r,i,n&wn.Important?"important":""):e.style[r]=i}removeStyle(e,r,i){i&wn.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,i){e!=null&&(e[r]=i)}setValue(e,r){e.nodeValue=r}listen(e,r,i){if(typeof e=="string"&&(e=kn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(i))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function JD(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ov=class extends Xa{constructor(e,r,i,n,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=rC(n.id,n.styles);for(let d of l){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,i){return super.insertBefore(this.nodeOrShadowRoot(e),r,i)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ja=class extends Xa{constructor(e,r,i,n,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=c?rC(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Nu=class extends Ja{constructor(e,r,i,n,o,s,a,c){let l=n+"-"+i.id;super(e,r,i,o,s,a,c,l),this.contentAttr=sL(l),this.hostAttr=aL(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let i=super.createElement(e,r);return super.setAttribute(i,this.contentAttr,""),i}},cL=(()=>{let e=class e extends Ka{constructor(i){super(i)}supports(i){return!0}addEventListener(i,n,o){return i.addEventListener(n,o,!1),()=>this.removeEventListener(i,n,o)}removeEventListener(i,n,o){return i.removeEventListener(n,o)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),lL=(()=>{let e=class e extends Ka{constructor(i){super(i),this.delegate=b(vD,{optional:!0})}supports(i){return this.delegate?this.delegate.supports(i):!1}addEventListener(i,n,o){return this.delegate.addEventListener(i,n,o)}removeEventListener(i,n,o){return this.delegate.removeEventListener(i,n,o)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),eC=["alt","control","meta","shift"],dL={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},uL={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},hL=(()=>{let e=class e extends Ka{constructor(i){super(i)}supports(i){return e.parseEventName(i)!=null}addEventListener(i,n,o){let s=e.parseEventName(n),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kn().onAndCancel(i,s.domEventName,a))}static parseEventName(i){let n=i.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(n.pop()),a="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),a="code."),eC.forEach(d=>{let u=n.indexOf(d);u>-1&&(n.splice(u,1),a+=d+".")}),a+=s,n.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(i,n){let o=dL[i.key]||i.key,s="";return n.indexOf("code.")>-1&&(o=i.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),eC.forEach(a=>{if(a!==o){let c=uL[a];c(i)&&(s+=a+".")}}),s+=o,s===n)}static eventCallback(i,n,o){return s=>{e.matchEventFullKeyCode(s,i)&&o.runGuarded(()=>n(s))}}static _normalizeKey(i){return i==="esc"?"escape":i}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function fL(){nv.makeCurrent()}function pL(){return new Ft}function mL(){return jw(document),document}var gL=[{provide:Ri,useValue:Gg},{provide:tg,useValue:fL,multi:!0},{provide:K,useFactory:mL,deps:[]}],BZ=kg(mD,"browser",gL),vL=new g(""),bL=[{provide:$a,useClass:rv,deps:[]},{provide:Ig,useClass:ou,deps:[F,su,$a]},{provide:ou,useClass:ou,deps:[F,su,$a]}],_L=[{provide:Od,useValue:"root"},{provide:Ft,useFactory:pL,deps:[]},{provide:Ou,useClass:cL,multi:!0,deps:[K,F,Ri]},{provide:Ou,useClass:hL,multi:!0,deps:[K]},{provide:Ou,useClass:lL,multi:!0},XD,iC,tC,{provide:fs,useExisting:XD},{provide:xs,useClass:tL,deps:[]},[]],zZ=(()=>{let e=class e{constructor(i){}static withServerTransition(i){return{ngModule:e,providers:[{provide:ys,useValue:i.appId}]}}};e.\u0275fac=function(n){return new(n||e)(m(vL,12))},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[..._L,...bL],imports:[Gt,gD]});let t=e;return t})();var oC=(()=>{let e=class e{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var av=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=m(yL),o},providedIn:"root"});let t=e;return t})(),yL=(()=>{let e=class e extends av{constructor(i){super(),this._doc=i}sanitize(i,n){if(n==null)return null;switch(i){case Ht.NONE:return n;case Ht.HTML:return xr(n,"HTML")?Ai(n):Qw(this._doc,String(n)).toString();case Ht.STYLE:return xr(n,"Style")?Ai(n):n;case Ht.SCRIPT:if(xr(n,"Script"))return Ai(n);throw new G(5200,!1);case Ht.URL:return xr(n,"URL")?Ai(n):Hd(String(n));case Ht.RESOURCE_URL:if(xr(n,"ResourceURL"))return Ai(n);throw new G(5201,!1);default:throw new G(5202,!1)}}bypassSecurityTrustHtml(i){return Bw(i)}bypassSecurityTrustStyle(i){return zw(i)}bypassSecurityTrustScript(i){return Uw(i)}bypassSecurityTrustUrl(i){return Hw(i)}bypassSecurityTrustResourceUrl(i){return $w(i)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cv(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Oa(cv);let i=r?e?.injector?.get(fo)??b(fo):null,n=wL(e?.equal),o;e?.requireSync?o=Ni({kind:0},{equal:n}):o=Ni({kind:1,value:e?.initialValue},{equal:n});let s=t.subscribe({next:a=>o.set({kind:1,value:a}),error:a=>{if(e?.rejectErrors)throw a;o.set({kind:2,error:a})}});return i?.onDestroy(s.unsubscribe.bind(s)),Mn(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new G(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:e?.equal})}function wL(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var hv={};function gv(t,e){if(hv[t]=(hv[t]||0)+1,typeof e=="function")return lv(t,(...i)=>Q(w({},e(...i)),{type:t}));switch(e?e._as:"empty"){case"empty":return lv(t,()=>({type:t}));case"props":return lv(t,i=>Q(w({},i),{type:t}));default:throw new Error("Unexpected config.")}}function Tt(){return{_as:"props",_p:void 0}}function lv(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}function xL(t){return t.charAt(0).toUpperCase()+t.substring(1)}function DL(t){return t.charAt(0).toLowerCase()+t.substring(1)}function Cs(t){let{source:e,events:r}=t;return Object.keys(r).reduce((i,n)=>Q(w({},i),{[CL(n)]:gv(EL(e,n),r[n])}),{})}function ir(){return Tt()}function CL(t){return t.trim().split(" ").map((e,r)=>r===0?DL(e):xL(e)).join("")}function EL(t,e){return`[${t}] ${e}`}var xC="@ngrx/store/init",Es=(()=>{let e=class e extends Pe{constructor(){super({type:xC})}next(i){if(typeof i=="function")throw new TypeError(` Dispatch expected an object, instead it received a function. If you're using the createAction function, make sure to invoke the function - before dispatching the action. For example, someAction should be someAction().`);if(typeof i>"u")throw new TypeError("Actions must be objects");if(typeof i.type>"u")throw new TypeError("Actions must have a type property");super.next(i)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),xL=[xs],xC=new g("@ngrx/store Internal Root Guard"),sC=new g("@ngrx/store Internal Initial State"),vv=new g("@ngrx/store Initial State"),DC=new g("@ngrx/store Reducer Factory"),aC=new g("@ngrx/store Internal Reducer Factory Provider"),CC=new g("@ngrx/store Initial Reducers"),dv=new g("@ngrx/store Internal Initial Reducers"),cC=new g("@ngrx/store Store Features"),lC=new g("@ngrx/store Internal Store Reducers"),uv=new g("@ngrx/store Internal Feature Reducers"),dC=new g("@ngrx/store Internal Feature Configs"),EC=new g("@ngrx/store Internal Store Features"),uC=new g("@ngrx/store Internal Feature Reducers Token"),IC=new g("@ngrx/store Feature Reducers"),hC=new g("@ngrx/store User Provided Meta Reducers"),ju=new g("@ngrx/store Meta Reducers"),fC=new g("@ngrx/store Internal Resolved Meta Reducers"),pC=new g("@ngrx/store User Runtime Checks Config"),mC=new g("@ngrx/store Internal User Runtime Checks Config"),Xa=new g("@ngrx/store Internal Runtime Checks"),bv=new g("@ngrx/store Check if Action types are unique"),DL=new g("@ngrx/store Root Store Provider"),CL=new g("@ngrx/store Feature State Provider");function _v(t,e={}){let r=Object.keys(t),i={};for(let o=0;or!==e).reduce((r,i)=>Object.assign(r,{[i]:t[i]}),{})}function SC(...t){return function(e){if(t.length===0)return e;let r=t[t.length-1];return t.slice(0,-1).reduceRight((n,o)=>o(n),r(e))}}function MC(t,e){return Array.isArray(e)&&e.length>0&&(t=SC.apply(null,[...e,t])),(r,i)=>{let n=t(r);return(o,s)=>(o=o===void 0?i:o,n(o,s))}}function IL(t){let e=Array.isArray(t)&&t.length>0?SC(...t):r=>r;return(r,i)=>(r=e(r),(n,o)=>(n=n===void 0?i:n,r(n,o)))}var Ja=class extends oe{},Vu=class extends xs{},SL="@ngrx/store/update-reducers",Bu=(()=>{let e=class e extends Pe{get currentReducers(){return this.reducers}constructor(i,n,o,s){super(s(o,n)),this.dispatcher=i,this.initialState=n,this.reducers=o,this.reducerFactory=s}addFeature(i){this.addFeatures([i])}addFeatures(i){let n=i.reduce((o,{reducers:s,reducerFactory:a,metaReducers:c,initialState:l,key:d})=>{let u=typeof s=="function"?IL(c)(s,l):MC(a,c)(s,l);return o[d]=u,o},{});this.addReducers(n)}removeFeature(i){this.removeFeatures([i])}removeFeatures(i){this.removeReducers(i.map(n=>n.key))}addReducer(i,n){this.addReducers({[i]:n})}addReducers(i){this.reducers=w(w({},this.reducers),i),this.updateReducers(Object.keys(i))}removeReducer(i){this.removeReducers([i])}removeReducers(i){i.forEach(n=>{this.reducers=EL(this.reducers,n)}),this.updateReducers(i)}updateReducers(i){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:SL,features:i})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(n){return new(n||e)(m(Vu),m(vv),m(CC),m(DC))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ML=[Bu,{provide:Ja,useExisting:Bu},{provide:Vu,useExisting:xs}],ec=(()=>{let e=class e extends C{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),kL=[ec],zu=class extends oe{},gC=(()=>{let e=class e extends Pe{constructor(i,n,o,s){super(s);let c=i.pipe(Gr(Jf)).pipe(va(n)),l={state:s},d=c.pipe(ma(TL,l));this.stateSubscription=d.subscribe(({state:u,action:f})=>{this.next(u),o.next(f)}),this.state=cv(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=wC,e.\u0275fac=function(n){return new(n||e)(m(xs),m(Ja),m(ec),m(vv))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function TL(t={state:void 0},[e,r]){let{state:i}=t;return{state:r(i,e),action:e}}var RL=[gC,{provide:zu,useExisting:gC}],ei=(()=>{let e=class e extends oe{constructor(i,n,o){super(),this.actionsObserver=n,this.reducerManager=o,this.source=i,this.state=i.state}select(i,...n){return OL.call(null,i,...n)(this)}selectSignal(i,n){return fu(()=>i(this.state()),n)}lift(i){let n=new e(this,this.actionsObserver,this.reducerManager);return n.operator=i,n}dispatch(i){this.actionsObserver.next(i)}next(i){this.actionsObserver.next(i)}error(i){this.actionsObserver.error(i)}complete(){this.actionsObserver.complete()}addReducer(i,n){this.reducerManager.addReducer(i,n)}removeReducer(i){this.reducerManager.removeReducer(i)}};e.\u0275fac=function(n){return new(n||e)(m(zu),m(xs),m(Bu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),AL=[ei];function OL(t,e,...r){return function(n){let o;if(typeof t=="string"){let s=[e,...r].filter(Boolean);o=n.pipe(ap(t,...s))}else if(typeof t=="function")o=n.pipe(P(s=>t(s,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return o.pipe(Gi())}}var yv="https://ngrx.io/guide/store/configuration/runtime-checks";function vC(t){return t===void 0}function bC(t){return t===null}function kC(t){return Array.isArray(t)}function NL(t){return typeof t=="string"}function FL(t){return typeof t=="boolean"}function PL(t){return typeof t=="number"}function TC(t){return typeof t=="object"&&t!==null}function LL(t){return TC(t)&&!kC(t)}function jL(t){if(!LL(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function fv(t){return typeof t=="function"}function VL(t){return fv(t)&&t.hasOwnProperty("\u0275cmp")}function BL(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var zL=!1;function UL(){return zL}function _C(t,e){return t===e}function HL(t,e,r){for(let i=0;is(t));return i.memoized.apply(null,o)}let n=e.map(o=>o(t,r));return i.memoized.apply(null,[...n,r])}function GL(t,e={stateFn:$L}){return function(...r){let i=r;if(Array.isArray(i[0])){let[d,...u]=i;i=[...d,...u]}else i.length===1&&WL(i[0])&&(i=qL(i[0]));let n=i.slice(0,i.length-1),o=i[i.length-1],s=n.filter(d=>d.release&&typeof d.release=="function"),a=t(function(...d){return o.apply(null,d)}),c=RC(function(d,u){return e.stateFn.apply(null,[d,n,u,a])});function l(){c.reset(),a.reset(),s.forEach(d=>d.release())}return Object.assign(c.memoized,{release:l,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function AC(t){return Sn(e=>{let r=e[t];return!UL()&&Tg()&&!(t in e)&&console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),r},e=>e)}function WL(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function qL(t){let e=Object.values(t),r=Object.keys(t),i=(...n)=>r.reduce((o,s,a)=>Q(w({},o),{[s]:n[a]}),{});return[...e,i]}function YL(t){return t instanceof g?v(t):t}function ZL(t,e){return e.map((r,i)=>{if(t[i]instanceof g){let n=v(t[i]);return{key:r.key,reducerFactory:n.reducerFactory?n.reducerFactory:_v,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}}return r})}function QL(t){return t.map(e=>e instanceof g?v(e):e)}function OC(t){return typeof t=="function"?t():t}function KL(t,e){return t.concat(e)}function XL(){if(v(ei,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function JL(t,e){return function(r,i){let n=e.action(i)?pv(i):i,o=t(r,n);return e.state()?pv(o):o}}function pv(t){Object.freeze(t);let e=fv(t);return Object.getOwnPropertyNames(t).forEach(r=>{if(!r.startsWith("\u0275")&&BL(t,r)&&(!e||r!=="caller"&&r!=="callee"&&r!=="arguments")){let i=t[r];(TC(i)||fv(i))&&!Object.isFrozen(i)&&pv(i)}}),t}function ej(t,e){return function(r,i){if(e.action(i)){let o=mv(i);yC(o,"action")}let n=t(r,i);if(e.state()){let o=mv(n);yC(o,"state")}return n}}function mv(t,e=[]){return(vC(t)||bC(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((i,n)=>{if(i)return i;let o=t[n];return VL(o)?i:vC(o)||bC(o)||PL(o)||FL(o)||NL(o)||kC(o)?!1:jL(o)?mv(o,[...e,n]):{path:[...e,n],value:o}},!1)}function yC(t,e){if(t===!1)return;let r=t.path.join("."),i=new Error(`Detected unserializable ${e} at "${r}". ${yv}#strict${e}serializability`);throw i.value=t.value,i.unserializablePath=r,i}function tj(t,e){return function(r,i){if(e.action(i)&&!F.isInAngularZone())throw new Error(`Action '${i.type}' running outside NgZone. ${yv}#strictactionwithinngzone`);return t(r,i)}}function ij(t){return Tg()?w({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function nj({strictActionSerializability:t,strictStateSerializability:e}){return r=>t||e?ej(r,{action:i=>t&&!wv(i),state:()=>e}):r}function rj({strictActionImmutability:t,strictStateImmutability:e}){return r=>t||e?JL(r,{action:i=>t&&!wv(i),state:()=>e}):r}function wv(t){return t.type.startsWith("@ngrx")}function oj({strictActionWithinNgZone:t}){return e=>t?tj(e,{action:r=>t&&!wv(r)}):e}function sj(t){return[{provide:mC,useValue:t},{provide:pC,useFactory:aj,deps:[mC]},{provide:Xa,deps:[pC],useFactory:ij},{provide:ju,multi:!0,deps:[Xa],useFactory:rj},{provide:ju,multi:!0,deps:[Xa],useFactory:nj},{provide:ju,multi:!0,deps:[Xa],useFactory:oj}]}function NC(){return[{provide:bv,multi:!0,deps:[Xa],useFactory:cj}]}function aj(t){return t}function cj(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(hv).filter(([,r])=>r>1).map(([r])=>r);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(r=>`"${r}"`).join(", ")}. ${yv}#strictactiontypeuniqueness`)}function lj(t={},e={}){return[{provide:xC,useFactory:XL},{provide:sC,useValue:e.initialState},{provide:vv,useFactory:OC,deps:[sC]},{provide:dv,useValue:t},{provide:lC,useExisting:t instanceof g?t:dv},{provide:CC,deps:[dv,[new Vm(lC)]],useFactory:YL},{provide:hC,useValue:e.metaReducers?e.metaReducers:[]},{provide:fC,deps:[ju,hC],useFactory:KL},{provide:aC,useValue:e.reducerFactory?e.reducerFactory:_v},{provide:DC,deps:[aC,fC],useFactory:MC},xL,ML,kL,RL,AL,sj(e.runtimeChecks),NC()]}function dj(t,e,r={}){return[{provide:dC,multi:!0,useValue:t instanceof Object?{}:r},{provide:cC,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(r instanceof g)&&r.reducerFactory?r.reducerFactory:_v,metaReducers:!(r instanceof g)&&r.metaReducers?r.metaReducers:[],initialState:!(r instanceof g)&&r.initialState?r.initialState:void 0}},{provide:EC,deps:[dC,cC],useFactory:ZL},{provide:uv,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:uC,multi:!0,useExisting:e instanceof g?e:uv},{provide:IC,multi:!0,deps:[uv,[new Vm(uC)]],useFactory:QL},NC()]}var tc=(()=>{let e=class e{constructor(i,n,o,s,a,c){}};e.\u0275fac=function(n){return new(n||e)(m(xs),m(Ja),m(ec),m(ei),m(xC,8),m(bv,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Uu=(()=>{let e=class e{constructor(i,n,o,s,a){this.features=i,this.featureReducers=n,this.reducerManager=o;let c=i.map((l,d)=>{let f=n.shift()[d];return Q(w({},l),{reducers:f,initialState:OC(l.initialState)})});o.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(n){return new(n||e)(m(EC),m(IC),m(Bu),m(tc),m(bv,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),QZ=(()=>{let e=class e{static forRoot(i,n){return{ngModule:tc,providers:[...lj(i,n)]}}static forFeature(i,n,o={}){return{ngModule:Uu,providers:[...dj(i,n,o)]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function Wt(...t){let e=t.pop(),r=t.map(i=>i.type);return{reducer:e,types:r}}function Hu(t,...e){let r=new Map;for(let i of e)for(let n of i.types){let o=r.get(n);if(o){let s=(a,c)=>i.reducer(o(a,c),c);r.set(n,s)}else r.set(n,i.reducer)}return function(i=t,n){let o=r.get(n.type);return o?o(i,n):i}}var uj={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Gu="__@ngrx/effects_create__";function Mn(t,e={}){let r=e.functional?t:t(),i=w(w({},uj),e);return Object.defineProperty(r,Gu,{value:i}),r}function hj(t){return Object.getOwnPropertyNames(t).filter(i=>t[i]&&t[i].hasOwnProperty(Gu)?t[i][Gu].hasOwnProperty("dispatch"):!1).map(i=>{let n=t[i][Gu];return w({propertyName:i},n)})}function fj(t){return hj(t)}function jC(t){return Object.getPrototypeOf(t)}function pj(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function VC(t){return typeof t=="function"}function FC(t){return t.filter(VC)}function mj(t){return t instanceof g||VC(t)}function gj(t,e,r){let i=jC(t),o=!!i&&i.constructor.name!=="Object"?i.constructor.name:null,s=fj(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:l})=>{let d=typeof t[a]=="function"?t[a]():t[a],u=l?r(d,e):d;return c===!1?u.pipe(ha()):u.pipe(sp()).pipe(P(p=>({effect:t[a],notification:p,propertyName:a,sourceName:o,sourceInstance:t})))});return Ze(...s)}var vj=10;function BC(t,e,r=vj){return t.pipe(ut(i=>(e&&e.handleError(i),r<=1?t:BC(t,e,r-1))))}var Wu=(()=>{let e=class e extends oe{constructor(i){super(),i&&(this.source=i)}lift(i){let n=new e;return n.source=this,n.operator=i,n}};e.\u0275fac=function(n){return new(n||e)(m(ec))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kn(...t){return ge(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var zC=new g("@ngrx/effects Internal Root Guard"),$u=new g("@ngrx/effects User Provided Effects"),xv=new g("@ngrx/effects Internal Root Effects"),UC=new g("@ngrx/effects Internal Root Effects Instances"),PC=new g("@ngrx/effects Internal Feature Effects"),HC=new g("@ngrx/effects Internal Feature Effects Instance Groups"),bj=new g("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>BC}),$C="@ngrx/effects/init",sQ=gv($C);function _j(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!yj(r)&&e.handleError(new Error(`Effect ${wj(t)} dispatched an invalid action: ${xj(r)}`))}}function yj(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function wj({propertyName:t,sourceInstance:e,sourceName:r}){let i=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${i?"()":""}"`:`"${String(t)}()"`}function xj(t){try{return JSON.stringify(t)}catch{return t}}var Dj="ngrxOnIdentifyEffects";function Cj(t){return Dv(t,Dj)}var Ej="ngrxOnRunEffects";function Ij(t){return Dv(t,Ej)}var Sj="ngrxOnInitEffects";function Mj(t){return Dv(t,Sj)}function Dv(t,e){return t&&e in t&&typeof t[e]=="function"}var GC=(()=>{let e=class e extends C{constructor(i,n){super(),this.errorHandler=i,this.effectsErrorHandler=n}addEffects(i){this.next(i)}toActions(){return this.pipe(jl(i=>pj(i)?jC(i):i),Fe(i=>i.pipe(jl(kj))),Fe(i=>{let n=i.pipe(Ll(s=>Tj(this.errorHandler,this.effectsErrorHandler)(s)),P(s=>(_j(s,this.errorHandler),s.notification)),ge(s=>s.kind==="N"&&s.value!=null),rp()),o=i.pipe(We(1),ge(Mj),P(s=>s.ngrxOnInitEffects()));return Ze(n,o)}))}};e.\u0275fac=function(n){return new(n||e)(m(Ft),m(bj))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kj(t){return Cj(t)?t.ngrxOnIdentifyEffects():""}function Tj(t,e){return r=>{let i=gj(r,t,e);return Ij(r)?r.ngrxOnRunEffects(i):i}}var WC=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(i,n){this.effectSources=i,this.store=n,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(m(GC),m(ei))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qC=(()=>{let e=class e{constructor(i,n,o,s,a,c,l){this.sources=i,n.start();for(let d of s)i.addEffects(d);o.dispatch({type:$C})}addEffects(i){this.sources.addEffects(i)}};e.\u0275fac=function(n){return new(n||e)(m(GC),m(WC),m(ei),m(UC),m(tc,8),m(Uu,8),m(zC,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Rj=(()=>{let e=class e{constructor(i,n,o,s){let a=n.flat();for(let c of a)i.addEffects(c)}};e.\u0275fac=function(n){return new(n||e)(m(qC),m(HC),m(tc,8),m(Uu,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),aQ=(()=>{let e=class e{static forFeature(...i){let n=i.flat(),o=FC(n);return{ngModule:Rj,providers:[o,{provide:PC,multi:!0,useValue:n},{provide:$u,multi:!0,useValue:[]},{provide:HC,multi:!0,useFactory:LC,deps:[PC,$u]}]}}static forRoot(...i){let n=i.flat(),o=FC(n);return{ngModule:qC,providers:[o,{provide:xv,useValue:[n]},{provide:zC,useFactory:Aj},{provide:$u,multi:!0,useValue:[]},{provide:UC,useFactory:LC,deps:[xv,$u]}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function LC(t,e){let r=[];for(let i of t)r.push(...i);for(let i of e)r.push(...i);return r.map(i=>mj(i)?v(i):i)}function Aj(){let t=v(WC,{optional:!0,skipSelf:!0}),e=v(xv,{self:!0});if(!(e.length===1&&e[0].length===0)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var Ce="primary",vc=Symbol("RouteTitle"),Mv=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Ms(t){return new Mv(t)}function Oj(t,e,r){let i=r.path.split("/");if(i.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||i.lengthi[o]===n)}else return t===e}function sE(t){return t.length>0?t[t.length-1]:null}function Rr(t){return Wr(t)?t:xr(t)?He(Promise.resolve(t)):V(t)}var Fj={exact:cE,subset:lE},aE={exact:Pj,subset:Lj,ignored:()=>!0};function ZC(t,e,r){return Fj[r.paths](t.root,e.root,r.matrixParams)&&aE[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Pj(t,e){return Tn(t,e)}function cE(t,e,r){if(!ho(t.segments,e.segments)||!Zu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!cE(t.children[i],e.children[i],r))return!1;return!0}function Lj(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>oE(t[r],e[r]))}function lE(t,e,r){return dE(t,e,e.segments,r)}function dE(t,e,r,i){if(t.segments.length>r.length){let n=t.segments.slice(0,r.length);return!(!ho(n,r)||e.hasChildren()||!Zu(n,r,i))}else if(t.segments.length===r.length){if(!ho(t.segments,r)||!Zu(t.segments,r,i))return!1;for(let n in e.children)if(!t.children[n]||!lE(t.children[n],e.children[n],i))return!1;return!0}else{let n=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!ho(t.segments,n)||!Zu(t.segments,n,i)||!t.children[Ce]?!1:dE(t.children[Ce],e,o,i)}}function Zu(t,e,r){return e.every((i,n)=>aE[r](t[n].parameters,i.parameters))}var kr=class{constructor(e=new $e([],{}),r={},i=null){this.root=e,this.queryParams=r,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Ms(this.queryParams),this._queryParamMap}toString(){return Bj.serialize(this)}},$e=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qu(this)}},uo=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Ms(this.parameters),this._parameterMap}toString(){return hE(this)}};function jj(t,e){return ho(t,e)&&t.every((r,i)=>Tn(r.parameters,e[i].parameters))}function ho(t,e){return t.length!==e.length?!1:t.every((r,i)=>r.path===e[i].path)}function Vj(t,e){let r=[];return Object.entries(t.children).forEach(([i,n])=>{i===Ce&&(r=r.concat(e(n,i)))}),Object.entries(t.children).forEach(([i,n])=>{i!==Ce&&(r=r.concat(e(n,i)))}),r}var bc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>new ks,providedIn:"root"});let t=e;return t})(),ks=class{parse(e){let r=new Rv(e);return new kr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${nc(e.root,!0)}`,i=Hj(e.queryParams),n=typeof e.fragment=="string"?`#${zj(e.fragment)}`:"";return`${r}${i}${n}`}},Bj=new ks;function Qu(t){return t.segments.map(e=>hE(e)).join("/")}function nc(t,e){if(!t.hasChildren())return Qu(t);if(e){let r=t.children[Ce]?nc(t.children[Ce],!1):"",i=[];return Object.entries(t.children).forEach(([n,o])=>{n!==Ce&&i.push(`${n}:${nc(o,!1)}`)}),i.length>0?`${r}(${i.join("//")})`:r}else{let r=Vj(t,(i,n)=>n===Ce?[nc(t.children[Ce],!1)]:[`${n}:${nc(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[Ce]!=null?`${Qu(t)}/${r[0]}`:`${Qu(t)}/(${r.join("//")})`}}function uE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qu(t){return uE(t).replace(/%3B/gi,";")}function zj(t){return encodeURI(t)}function Tv(t){return uE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ku(t){return decodeURIComponent(t)}function QC(t){return Ku(t.replace(/\+/g,"%20"))}function hE(t){return`${Tv(t.path)}${Uj(t.parameters)}`}function Uj(t){return Object.entries(t).map(([e,r])=>`;${Tv(e)}=${Tv(r)}`).join("")}function Hj(t){let e=Object.entries(t).map(([r,i])=>Array.isArray(i)?i.map(n=>`${qu(r)}=${qu(n)}`).join("&"):`${qu(r)}=${qu(i)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var $j=/^[^\/()?;#]+/;function Cv(t){let e=t.match($j);return e?e[0]:""}var Gj=/^[^\/()?;=#]+/;function Wj(t){let e=t.match(Gj);return e?e[0]:""}var qj=/^[^=?&#]+/;function Yj(t){let e=t.match(qj);return e?e[0]:""}var Zj=/^[^&#]+/;function Qj(t){let e=t.match(Zj);return e?e[0]:""}var Rv=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(i[Ce]=new $e(e,r)),i}parseSegment(){let e=Cv(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new G(4009,!1);return this.capture(e),new uo(Ku(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Wj(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let n=Cv(this.remaining);n&&(i=n,this.capture(i))}e[Ku(r)]=Ku(i)}parseQueryParam(e){let r=Yj(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let s=Qj(this.remaining);s&&(i=s,this.capture(i))}let n=QC(r),o=QC(i);if(e.hasOwnProperty(n)){let s=e[n];Array.isArray(s)||(s=[s],e[n]=s),s.push(o)}else e[n]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Cv(this.remaining),n=this.remaining[i.length];if(n!=="/"&&n!==")"&&n!==";")throw new G(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Ce);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[Ce]:new $e([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new G(4011,!1)}};function fE(t){return t.segments.length>0?new $e([],{[Ce]:t}):t}function pE(t){let e={};for(let[i,n]of Object.entries(t.children)){let o=pE(n);if(i===Ce&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[i]=o)}let r=new $e(t.segments,e);return Kj(r)}function Kj(t){if(t.numberOfChildren===1&&t.children[Ce]){let e=t.children[Ce];return new $e(t.segments.concat(e.segments),e.children)}return t}function lc(t){return t instanceof kr}function Xj(t,e,r=null,i=null){let n=mE(t);return gE(n,e,r,i)}function mE(t){let e;function r(o){let s={};for(let c of o.children){let l=r(c);s[c.outlet]=l}let a=new $e(o.url,s);return o===t&&(e=a),a}let i=r(t.root),n=fE(i);return e??n}function gE(t,e,r,i){let n=t;for(;n.parent;)n=n.parent;if(e.length===0)return Ev(n,n,n,r,i);let o=Jj(e);if(o.toRoot())return Ev(n,n,new $e([],{}),r,i);let s=e2(o,n,t),a=s.processChildren?sc(s.segmentGroup,s.index,o.commands):bE(s.segmentGroup,s.index,o.commands);return Ev(n,s.segmentGroup,a,r,i)}function Xu(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function dc(t){return typeof t=="object"&&t!=null&&t.outlets}function Ev(t,e,r,i,n){let o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;t===e?s=r:s=vE(t,e,r);let a=fE(pE(s));return new kr(a,o,n)}function vE(t,e,r){let i={};return Object.entries(t.children).forEach(([n,o])=>{o===e?i[n]=r:i[n]=vE(o,e,r)}),new $e(t.segments,i)}var Ju=class{constructor(e,r,i){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=i,e&&i.length>0&&Xu(i[0]))throw new G(4003,!1);let n=i.find(dc);if(n&&n!==sE(i))throw new G(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Jj(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ju(!0,0,t);let e=0,r=!1,i=t.reduce((n,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...n,{outlets:a}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&n.push(a))}),n):[...n,o]},[]);return new Ju(r,e,i)}var Es=class{constructor(e,r,i){this.segmentGroup=e,this.processChildren=r,this.index=i}};function e2(t,e,r){if(t.isAbsolute)return new Es(e,!0,0);if(!r)return new Es(e,!1,NaN);if(r.parent===null)return new Es(r,!0,0);let i=Xu(t.commands[0])?0:1,n=r.segments.length-1+i;return t2(r,n,t.numberOfDoubleDots)}function t2(t,e,r){let i=t,n=e,o=r;for(;o>n;){if(o-=n,i=i.parent,!i)throw new G(4005,!1);n=i.segments.length}return new Es(i,!1,n-o)}function i2(t){return dc(t[0])?t[0].outlets:{[Ce]:t}}function bE(t,e,r){if(t??=new $e([],{}),t.segments.length===0&&t.hasChildren())return sc(t,e,r);let i=n2(t,e,r),n=r.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Ce)&&t.children[Ce]&&t.numberOfChildren===1&&t.children[Ce].segments.length===0){let o=sc(t.children[Ce],e,r);return new $e(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(n[o]=bE(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(n[o]=s)}),new $e(t.segments,n)}}function n2(t,e,r){let i=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let s=t.segments[n],a=r[i];if(dc(a))break;let c=`${a}`,l=i0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!XC(c,l,s))return o;i+=2}else{if(!XC(c,{},s))return o;i++}n++}return{match:!0,pathIndex:n,commandIndex:i}}function Av(t,e,r){let i=t.segments.slice(0,e),n=0;for(;n{typeof i=="string"&&(i=[i]),i!==null&&(e[r]=Av(new $e([],{}),0,i))}),e}function KC(t){let e={};return Object.entries(t).forEach(([r,i])=>e[r]=`${i}`),e}function XC(t,e,r){return t==r.path&&Tn(e,r.parameters)}var ac="imperative",Rt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Rt||{}),Ni=class{constructor(e,r){this.id=e,this.url=r}},Ts=class extends Ni{constructor(e,r,i="imperative",n=null){super(e,r),this.type=Rt.NavigationStart,this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ki=class extends Ni{constructor(e,r,i){super(e,r),this.urlAfterRedirects=i,this.type=Rt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},gi=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(gi||{}),eh=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(eh||{}),er=class extends Ni{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Rt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Tr=class extends Ni{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Rt.NavigationSkipped}},uc=class extends Ni{constructor(e,r,i,n){super(e,r),this.error=i,this.target=n,this.type=Rt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},th=class extends Ni{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ov=class extends Ni{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nv=class extends Ni{constructor(e,r,i,n,o){super(e,r),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=o,this.type=Rt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Fv=class extends Ni{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pv=class extends Ni{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lv=class{constructor(e){this.route=e,this.type=Rt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},jv=class{constructor(e){this.route=e,this.type=Rt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vv=class{constructor(e){this.snapshot=e,this.type=Rt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bv=class{constructor(e){this.snapshot=e,this.type=Rt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zv=class{constructor(e){this.snapshot=e,this.type=Rt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uv=class{constructor(e){this.snapshot=e,this.type=Rt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ih=class{constructor(e,r,i){this.routerEvent=e,this.position=r,this.anchor=i,this.type=Rt.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},hc=class{},Rs=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function o2(t,e){return t.providers&&!t._injector&&(t._injector=Jd(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Qi(t){return t.outlet||Ce}function s2(t,e){let r=t.filter(i=>Qi(i)===e);return r.push(...t.filter(i=>Qi(i)!==e)),r}function _c(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Hv=class{get injector(){return _c(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new yc(this.rootInjector),this.attachRef=null}},yc=(()=>{let e=class e{constructor(i){this.rootInjector=i,this.contexts=new Map}onChildOutletCreated(i,n){let o=this.getOrCreateContext(i);o.outlet=n,this.contexts.set(i,o)}onChildOutletDestroyed(i){let n=this.getContext(i);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let n=this.getContext(i);return n||(n=new Hv(this.rootInjector),this.contexts.set(i,n)),n}getContext(i){return this.contexts.get(i)||null}};e.\u0275fac=function(n){return new(n||e)(m(_t))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nh=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=$v(e,this._root);return r?r.children.map(i=>i.value):[]}firstChild(e){let r=$v(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Gv(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return Gv(e,this._root).map(r=>r.value)}};function $v(t,e){if(t===e.value)return e;for(let r of e.children){let i=$v(t,r);if(i)return i}return null}function Gv(t,e){if(t===e.value)return[e];for(let r of e.children){let i=Gv(t,r);if(i.length)return i.unshift(e),i}return[]}var mi=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Cs(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var rh=class extends nh{constructor(e,r){super(e),this.snapshot=r,eb(this,e)}toString(){return this.snapshot.toString()}};function _E(t){let e=a2(t),r=new Pe([new uo("",{})]),i=new Pe({}),n=new Pe({}),o=new Pe({}),s=new Pe(""),a=new fo(r,i,o,s,n,Ce,t,e.root);return a.snapshot=e.root,new rh(new mi(a,[]),e)}function a2(t){let e={},r={},i={},n="",o=new Is([],e,i,n,r,Ce,t,null,{});return new sh("",new mi(o,[]))}var fo=class{constructor(e,r,i,n,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=i,this.fragmentSubject=n,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(P(l=>l[vc]))??V(void 0),this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(P(e=>Ms(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(e=>Ms(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function oh(t,e,r="emptyOnly"){let i,{routeConfig:n}=t;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:w(w({},e.params),t.params),data:w(w({},e.data),t.data),resolve:w(w(w(w({},t.data),e.data),n?.data),t._resolvedData)}:i={params:w({},t.params),data:w({},t.data),resolve:w(w({},t.data),t._resolvedData??{})},n&&wE(n)&&(i.resolve[vc]=n.title),i}var Is=class{get title(){return this.data?.[vc]}constructor(e,r,i,n,o,s,a,c,l){this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ms(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ms(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},sh=class extends nh{constructor(e,r){super(r),this.url=e,eb(this,r)}toString(){return yE(this._root)}};function eb(t,e){e.value._routerState=t,e.children.forEach(r=>eb(t,r))}function yE(t){let e=t.children.length>0?` { ${t.children.map(yE).join(", ")} } `:"";return`${t.value}${e}`}function Iv(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Tn(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Tn(e.params,r.params)||t.paramsSubject.next(r.params),Nj(e.url,r.url)||t.urlSubject.next(r.url),Tn(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Wv(t,e){let r=Tn(t.params,e.params)&&jj(t.url,e.url),i=!t.parent!=!e.parent;return r&&!i&&(!t.parent||Wv(t.parent,e.parent))}function wE(t){return typeof t.title=="string"||t.title===null}var tb=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new B,this.deactivateEvents=new B,this.attachEvents=new B,this.detachEvents=new B,this.parentContexts=v(yc),this.location=v(Ve),this.changeDetector=v(ue),this.inputBinder=v(hh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:n,previousValue:o}=i.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new G(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new G(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new G(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,n){this.activated=i,this._activatedRoute=n,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,n){if(this.isActivated)throw new G(4013,!1);this._activatedRoute=i;let o=this.location,a=i.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new qv(i,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Me]});let t=e;return t})(),qv=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,i){this.route=e,this.childContexts=r,this.parent=i}get(e,r){return e===fo?this.route:e===yc?this.childContexts:this.parent.get(e,r)}},hh=new g(""),JC=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:n}=i,o=$i([n.queryParams,n.params,n.data]).pipe(Oe(([s,a,c],l)=>(c=w(w(w({},s),a),c),l===0?V(c):Promise.resolve(c)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(i);return}let a=bD(n.component);if(!a){this.unsubscribeFromRouteData(i);return}for(let{templateName:c}of a.inputs)i.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(i,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function c2(t,e,r){let i=fc(t,e._root,r?r._root:void 0);return new rh(i,e)}function fc(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let i=r.value;i._futureSnapshot=e.value;let n=l2(t,e,r);return new mi(i,n)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>fc(t,a)),s}}let i=d2(e.value),n=e.children.map(o=>fc(t,o));return new mi(i,n)}}function l2(t,e,r){return e.children.map(i=>{for(let n of r.children)if(t.shouldReuseRoute(i.value,n.value.snapshot))return fc(t,i,n);return fc(t,i)})}function d2(t){return new fo(new Pe(t.url),new Pe(t.params),new Pe(t.queryParams),new Pe(t.fragment),new Pe(t.data),t.outlet,t.component,t)}var pc=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},xE="ngNavigationCancelingError";function ah(t,e){let{redirectTo:r,navigationBehaviorOptions:i}=lc(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=DE(!1,gi.Redirect);return n.url=r,n.navigationBehaviorOptions=i,n}function DE(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[xE]=!0,r.cancellationCode=e,r}function u2(t){return CE(t)&&lc(t.url)}function CE(t){return!!t&&t[xE]}var h2=(t,e,r,i)=>P(n=>(new Yv(e,n.targetRouterState,n.currentRouterState,r,i).activate(t),n)),Yv=class{constructor(e,r,i,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=i,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,i,e),Iv(this.futureState.root),this.activateChildRoutes(r,i,e)}deactivateChildRoutes(e,r,i){let n=Cs(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,n[s],i),delete n[s]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,i);else o&&this.deactivateRouteAndItsChildren(r,i)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=Cs(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=Cs(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,r,i){let n=Cs(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],i),this.forwardEvent(new Uv(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Bv(e.value.snapshot))}activateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(Iv(n),n===o)if(n.component){let s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,i);else if(n.component){let s=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Iv(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=n,s.outlet&&s.outlet.activateWith(n,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,i)}},ch=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ss=class{constructor(e,r){this.component=e,this.route=r}};function f2(t,e,r){let i=t._root,n=e?e._root:null;return rc(i,n,r,[i.value])}function p2(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Os(t,e){let r=Symbol(),i=e.get(t,r);return i===r?typeof t=="function"&&!I0(t)?t:e.get(t):i}function rc(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=Cs(e);return t.children.forEach(s=>{m2(s,o[s.value.outlet],r,i.concat([s.value]),n),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>cc(a,r.getContext(s),n)),n}function m2(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=g2(s,o,o.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new ch(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?rc(t,e,a?a.children:null,i,n):rc(t,e,r,i,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new Ss(a.outlet.component,s))}else s&&cc(e,a,n),n.canActivateChecks.push(new ch(i)),o.component?rc(t,null,a?a.children:null,i,n):rc(t,null,r,i,n);return n}function g2(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!ho(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ho(t.url,e.url)||!Tn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wv(t,e)||!Tn(t.queryParams,e.queryParams);case"paramsChange":default:return!Wv(t,e)}}function cc(t,e,r){let i=Cs(t),n=t.value;Object.entries(i).forEach(([o,s])=>{n.component?e?cc(s,e.children.getContext(o),r):cc(s,null,r):cc(s,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Ss(e.outlet.component,n)):r.canDeactivateChecks.push(new Ss(null,n)):r.canDeactivateChecks.push(new Ss(null,n))}function wc(t){return typeof t=="function"}function v2(t){return typeof t=="boolean"}function b2(t){return t&&wc(t.canLoad)}function _2(t){return t&&wc(t.canActivate)}function y2(t){return t&&wc(t.canActivateChild)}function w2(t){return t&&wc(t.canDeactivate)}function x2(t){return t&&wc(t.canMatch)}function EE(t){return t instanceof Hi||t?.name==="EmptyError"}var Yu=Symbol("INITIAL_VALUE");function As(){return Oe(t=>$i(t.map(e=>e.pipe(We(1),Qe(Yu)))).pipe(P(e=>{for(let r of e)if(r!==!0){if(r===Yu)return Yu;if(r===!1||D2(r))return r}return!0}),ge(e=>e!==Yu),We(1)))}function D2(t){return lc(t)||t instanceof pc}function C2(t,e){return Fe(r=>{let{targetSnapshot:i,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?V(Q(w({},r),{guardsResult:!0})):E2(s,i,n,t).pipe(Fe(a=>a&&v2(a)?I2(i,o,t,e):V(a)),P(a=>Q(w({},r),{guardsResult:a})))})}function E2(t,e,r,i){return He(t).pipe(Fe(n=>R2(n.component,n.route,r,e,i)),hn(n=>n!==!0,!0))}function I2(t,e,r,i){return He(e).pipe(un(n=>dn(M2(n.route.parent,i),S2(n.route,i),T2(t,n.path,r),k2(t,n.route,r))),hn(n=>n!==!0,!0))}function S2(t,e){return t!==null&&e&&e(new zv(t)),V(!0)}function M2(t,e){return t!==null&&e&&e(new Vv(t)),V(!0)}function k2(t,e,r){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return V(!0);let n=i.map(o=>qr(()=>{let s=_c(e)??r,a=Os(o,s),c=_2(a)?a.canActivate(e,t):ai(s,()=>a(e,t));return Rr(c).pipe(hn())}));return V(n).pipe(As())}function T2(t,e,r){let i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>p2(s)).filter(s=>s!==null).map(s=>qr(()=>{let a=s.guards.map(c=>{let l=_c(s.node)??r,d=Os(c,l),u=y2(d)?d.canActivateChild(i,t):ai(l,()=>d(i,t));return Rr(u).pipe(hn())});return V(a).pipe(As())}));return V(o).pipe(As())}function R2(t,e,r,i,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return V(!0);let s=o.map(a=>{let c=_c(e)??n,l=Os(a,c),d=w2(l)?l.canDeactivate(t,e,r,i):ai(c,()=>l(t,e,r,i));return Rr(d).pipe(hn())});return V(s).pipe(As())}function A2(t,e,r,i){let n=e.canLoad;if(n===void 0||n.length===0)return V(!0);let o=n.map(s=>{let a=Os(s,t),c=b2(a)?a.canLoad(e,r):ai(t,()=>a(e,r));return Rr(c)});return V(o).pipe(As(),IE(i))}function IE(t){return Yf(je(e=>{if(typeof e!="boolean")throw ah(t,e)}),P(e=>e===!0))}function O2(t,e,r,i){let n=e.canMatch;if(!n||n.length===0)return V(!0);let o=n.map(s=>{let a=Os(s,t),c=x2(a)?a.canMatch(e,r):ai(t,()=>a(e,r));return Rr(c)});return V(o).pipe(As(),IE(i))}var mc=class{constructor(e){this.segmentGroup=e||null}},gc=class extends Error{constructor(e){super(),this.urlTree=e}};function Ds(t){return cn(new mc(t))}function N2(t){return cn(new G(4e3,!1))}function F2(t){return cn(DE(!1,gi.GuardRejected))}var Zv=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let i=[],n=r.root;for(;;){if(i=i.concat(n.segments),n.numberOfChildren===0)return V(i);if(n.numberOfChildren>1||!n.children[Ce])return N2(`${e.redirectTo}`);n=n.children[Ce]}}applyRedirectCommands(e,r,i,n,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,params:p,data:_,title:S}=n,E=ai(o,()=>a({params:p,data:_,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,title:S}));if(E instanceof kr)throw new gc(E);r=E}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,i);if(r[0]==="/")throw new gc(s);return s}applyRedirectCreateUrlTree(e,r,i,n){let o=this.createSegmentGroup(e,r.root,i,n);return new kr(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let i={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[n]=r[a]}else i[n]=o}),i}createSegmentGroup(e,r,i,n){let o=this.createSegments(e,r.segments,i,n),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,i,n)}),new $e(o,s)}createSegments(e,r,i,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,i))}findPosParam(e,r,i){let n=i[r.path.substring(1)];if(!n)throw new G(4001,!1);return n}findOrReturn(e,r){let i=0;for(let n of r){if(n.path===e.path)return r.splice(i),n;i++}return e}},Qv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function P2(t,e,r,i,n){let o=ib(t,e,r);return o.matched?(i=o2(e,i),O2(i,e,r,n).pipe(P(s=>s===!0?o:w({},Qv)))):V(o)}function ib(t,e,r){if(e.path==="**")return L2(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?w({},Qv):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||Oj)(r,t,e);if(!n)return w({},Qv);let o={};Object.entries(n.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=n.consumed.length>0?w(w({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:s,positionalParamSegments:n.posParams??{}}}function L2(t){return{matched:!0,parameters:t.length>0?sE(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function eE(t,e,r,i){return r.length>0&&B2(t,r,i)?{segmentGroup:new $e(e,V2(i,new $e(r,t.children))),slicedSegments:[]}:r.length===0&&z2(t,r,i)?{segmentGroup:new $e(t.segments,j2(t,r,i,t.children)),slicedSegments:r}:{segmentGroup:new $e(t.segments,t.children),slicedSegments:r}}function j2(t,e,r,i){let n={};for(let o of r)if(fh(t,e,o)&&!i[Qi(o)]){let s=new $e([],{});n[Qi(o)]=s}return w(w({},i),n)}function V2(t,e){let r={};r[Ce]=e;for(let i of t)if(i.path===""&&Qi(i)!==Ce){let n=new $e([],{});r[Qi(i)]=n}return r}function B2(t,e,r){return r.some(i=>fh(t,e,i)&&Qi(i)!==Ce)}function z2(t,e,r){return r.some(i=>fh(t,e,i))}function fh(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function U2(t,e,r,i){return Qi(t)!==i&&(i===Ce||!fh(e,r,t))?!1:ib(e,t,r).matched}function H2(t,e,r){return e.length===0&&!t.children[r]}var Kv=class{};function $2(t,e,r,i,n,o,s="emptyOnly"){return new Xv(t,e,r,i,n,s,o).recognize()}var G2=31,Xv=class{constructor(e,r,i,n,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=i,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Zv(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new G(4002,`'${e.segmentGroup}'`)}recognize(){let e=eE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(P(({children:r,rootSnapshot:i})=>{let n=new mi(i,r),o=new sh("",n),s=Xj(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Is([],Object.freeze({}),Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ce,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Ce,r).pipe(P(i=>({children:i,rootSnapshot:r})),ut(i=>{if(i instanceof gc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof mc?this.noMatchError(i):i}))}processSegmentGroup(e,r,i,n,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,r,i,o):this.processSegment(e,r,i,i.segments,n,!0,o).pipe(P(s=>s instanceof mi?[s]:[]))}processChildren(e,r,i,n){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return He(o).pipe(un(s=>{let a=i.children[s],c=s2(r,s);return this.processSegmentGroup(e,c,a,s,n)}),ma((s,a)=>(s.push(...a),s)),cr(null),op(),Fe(s=>{if(s===null)return Ds(i);let a=SE(s);return W2(a),V(a)}))}processSegment(e,r,i,n,o,s,a){return He(r).pipe(un(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,i,n,o,s,a).pipe(ut(l=>{if(l instanceof mc)return V(null);throw l}))),hn(c=>!!c),ut(c=>{if(EE(c))return H2(i,n,o)?V(new Kv):Ds(i);throw c}))}processSegmentAgainstRoute(e,r,i,n,o,s,a,c){return U2(i,n,o,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,i,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s,c):Ds(n):Ds(n)}expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=ib(r,n,o);if(!c)return Ds(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>G2&&(this.allowRedirects=!1));let p=new Is(o,l,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,tE(n),Qi(n),n.component??n._loadedComponent??null,n,iE(n)),_=oh(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(_.params),p.data=Object.freeze(_.data);let S=this.applyRedirects.applyRedirectCommands(d,n.redirectTo,u,p,e);return this.applyRedirects.lineralizeSegments(n,S).pipe(Fe(E=>this.processSegment(e,i,r,E.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,i,n,o,s){let a=P2(r,i,n,e,this.urlSerializer);return i.path==="**"&&(r.children={}),a.pipe(Oe(c=>c.matched?(e=i._injector??e,this.getChildConfig(e,i,n).pipe(Oe(({routes:l})=>{let d=i._loadedInjector??e,{parameters:u,consumedSegments:f,remainingSegments:p}=c,_=new Is(f,u,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,tE(i),Qi(i),i.component??i._loadedComponent??null,i,iE(i)),S=oh(_,s,this.paramsInheritanceStrategy);_.params=Object.freeze(S.params),_.data=Object.freeze(S.data);let{segmentGroup:E,slicedSegments:R}=eE(r,f,p,l);if(R.length===0&&E.hasChildren())return this.processChildren(d,l,E,_).pipe(P(Ne=>new mi(_,Ne)));if(l.length===0&&R.length===0)return V(new mi(_,[]));let he=Qi(i)===o;return this.processSegment(d,l,E,R,he?Ce:o,!0,_).pipe(P(Ne=>new mi(_,Ne instanceof mi?[Ne]:[])))}))):Ds(r)))}getChildConfig(e,r,i){return r.children?V({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?V({routes:r._loadedRoutes,injector:r._loadedInjector}):A2(e,r,i,this.urlSerializer).pipe(Fe(n=>n?this.configLoader.loadChildren(e,r).pipe(je(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):F2(r))):V({routes:[],injector:e})}};function W2(t){t.sort((e,r)=>e.value.outlet===Ce?-1:r.value.outlet===Ce?1:e.value.outlet.localeCompare(r.value.outlet))}function q2(t){let e=t.value.routeConfig;return e&&e.path===""}function SE(t){let e=[],r=new Set;for(let i of t){if(!q2(i)){e.push(i);continue}let n=e.find(o=>i.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...i.children),r.add(n)):e.push(i)}for(let i of r){let n=SE(i.children);e.push(new mi(i.value,n))}return e.filter(i=>!r.has(i))}function tE(t){return t.data||{}}function iE(t){return t.resolve||{}}function Y2(t,e,r,i,n,o){return Fe(s=>$2(t,e,r,i,s.extractedUrl,n,o).pipe(P(({state:a,tree:c})=>Q(w({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Z2(t,e){return Fe(r=>{let{targetSnapshot:i,guards:{canActivateChecks:n}}=r;if(!n.length)return V(r);let o=new Set(n.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of ME(c))s.add(l);let a=0;return He(s).pipe(un(c=>o.has(c)?Q2(c,i,t,e):(c.data=oh(c,c.parent,t).resolve,V(void 0))),je(()=>a++),qo(1),Fe(c=>a===s.size?V(r):ct))})}function ME(t){let e=t.children.map(r=>ME(r)).flat();return[t,...e]}function Q2(t,e,r,i){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!wE(n)&&(o[vc]=n.title),K2(o,t,e,i).pipe(P(s=>(t._resolvedData=s,t.data=oh(t,t.parent,r).resolve,null)))}function K2(t,e,r,i){let n=kv(t);if(n.length===0)return V({});let o={};return He(n).pipe(Fe(s=>X2(t[s],e,r,i).pipe(hn(),je(a=>{if(a instanceof pc)throw ah(new ks,a);o[s]=a}))),qo(1),fa(o),ut(s=>EE(s)?ct:cn(s)))}function X2(t,e,r,i){let n=_c(e)??i,o=Os(t,n),s=o.resolve?o.resolve(e,r):ai(n,()=>o(e,r));return Rr(s)}function Sv(t){return Oe(e=>{let r=t(e);return r?He(r).pipe(P(()=>e)):V(e)})}var kE=(()=>{let e=class e{buildTitle(i){let n,o=i.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ce);return n}getResolvedTitleForRoute(i){return i.data[vc]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>v(J2),providedIn:"root"});let t=e;return t})(),J2=(()=>{let e=class e extends kE{constructor(i){super(),this.title=i}updateTitle(i){let n=this.buildTitle(i);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(m(rC))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xc=new g("",{providedIn:"root",factory:()=>({})}),eV=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ng-component"]],standalone:!0,features:[Y],decls:1,vars:0,template:function(n,o){n&1&&k(0,"router-outlet")},dependencies:[tb],encapsulation:2});let t=e;return t})();function nb(t){let e=t.children&&t.children.map(nb),r=e?Q(w({},t),{children:e}):w({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==Ce&&(r.component=eV),r}var lh=new g(""),rb=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(uu)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return V(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let n=Rr(i.loadComponent()).pipe(P(TE),je(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),Ei(()=>{this.componentLoaders.delete(i)})),o=new sr(n,()=>new C).pipe(Vo());return this.componentLoaders.set(i,o),o}loadChildren(i,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return V({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=tV(n,this.compiler,i,this.onLoadEndListener).pipe(Ei(()=>{this.childrenLoaders.delete(n)})),a=new sr(s,()=>new C).pipe(Vo());return this.childrenLoaders.set(n,a),a}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tV(t,e,r,i){return Rr(t.loadChildren()).pipe(P(TE),Fe(n=>n instanceof Ia||Array.isArray(n)?V(n):He(e.compileModuleAsync(n))),P(n=>{i&&i(t);let o,s,a=!1;return Array.isArray(n)?(s=n,a=!0):(o=n.create(r).injector,s=o.get(lh,[],{optional:!0,self:!0}).flat()),{routes:s.map(nb),injector:o}}))}function iV(t){return t&&typeof t=="object"&&"default"in t}function TE(t){return iV(t)?t.default:t}var ob=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>v(nV),providedIn:"root"});let t=e;return t})(),nV=(()=>{let e=class e{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,n){return i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),RE=new g(""),AE=new g("");function rV(t,e,r){let i=t.get(AE),n=t.get(K);return t.get(F).runOutsideAngular(()=>{if(!n.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=n.startViewTransition(()=>(o(),oV(t))),{onViewTransitionCreated:c}=i;return c&&ai(t,()=>c({transition:a,from:e,to:r})),s})}function oV(t){return new Promise(e=>{$t(()=>setTimeout(e),{injector:t,phase:Vn.Read})})}var sV=new g(""),sb=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new C,this.transitionAbortSubject=new C,this.configLoader=v(rb),this.environmentInjector=v(_t),this.urlSerializer=v(bc),this.rootContexts=v(yc),this.location=v(Cr),this.inputBindingEnabled=v(hh,{optional:!0})!==null,this.titleStrategy=v(kE),this.options=v(xc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(ob),this.createViewTransition=v(RE,{optional:!0}),this.navigationErrorHandler=v(sV,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>V(void 0),this.rootComponentType=null;let i=o=>this.events.next(new Lv(o)),n=o=>this.events.next(new jv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let n=++this.navigationId;this.transitions?.next(Q(w(w({},this.transitions.value),i),{id:n}))}setupNavigations(i,n,o){return this.transitions=new Pe({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ac,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ge(s=>s.id!==0),P(s=>Q(w({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Oe(s=>{let a=!1,c=!1;return V(s).pipe(Oe(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",gi.SupersededByNewNavigation),ct;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Q(w({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!d&&u!=="reload"){let f="";return this.events.next(new Tr(l.id,this.urlSerializer.serialize(l.rawUrl),f,eh.IgnoredSameUrlNavigation)),l.resolve(!1),ct}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return V(l).pipe(Oe(f=>{let p=this.transitions?.getValue();return this.events.next(new Ts(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?ct:Promise.resolve(f)}),Y2(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),je(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Q(w({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let p=new th(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:p,source:_,restoredState:S,extras:E}=l,R=new Ts(f,this.urlSerializer.serialize(p),_,S);this.events.next(R);let he=_E(this.rootComponentType).snapshot;return this.currentTransition=s=Q(w({},l),{targetSnapshot:he,urlAfterRedirects:p,extras:Q(w({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,V(s)}else{let f="";return this.events.next(new Tr(l.id,this.urlSerializer.serialize(l.extractedUrl),f,eh.IgnoredByUrlHandlingStrategy)),l.resolve(!1),ct}}),je(l=>{let d=new Ov(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),P(l=>(this.currentTransition=s=Q(w({},l),{guards:f2(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),C2(this.environmentInjector,l=>this.events.next(l)),je(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw ah(this.urlSerializer,l.guardsResult);let d=new Nv(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),ge(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",gi.GuardRejected),!1)),Sv(l=>{if(l.guards.canActivateChecks.length)return V(l).pipe(je(d=>{let u=new Fv(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),Oe(d=>{let u=!1;return V(d).pipe(Z2(this.paramsInheritanceStrategy,this.environmentInjector),je({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",gi.NoDataFromResolver)}}))}),je(d=>{let u=new Pv(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),Sv(l=>{let d=u=>{let f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(je(p=>{u.component=p}),P(()=>{})));for(let p of u.children)f.push(...d(p));return f};return $i(d(l.targetSnapshot.root)).pipe(cr(null),We(1))}),Sv(()=>this.afterPreactivation()),Oe(()=>{let{currentSnapshot:l,targetSnapshot:d}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return u?He(u).pipe(P(()=>s)):V(s)}),P(l=>{let d=c2(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=Q(w({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),je(()=>{this.events.next(new hc)}),h2(this.rootContexts,i.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),We(1),je({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ki(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),te(this.transitionAbortSubject.pipe(je(l=>{throw l}))),Ei(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",gi.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ut(l=>{if(c=!0,CE(l))this.events.next(new er(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),u2(l)?this.events.next(new Rs(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let d=new uc(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=ai(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(u instanceof pc){let{message:f,cancellationCode:p}=ah(this.urlSerializer,u);this.events.next(new er(s.id,this.urlSerializer.serialize(s.extractedUrl),f,p)),this.events.next(new Rs(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(d);let f=i.errorHandler(l);s.resolve(!!f)}}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return ct}))}))}cancelNavigationTransition(i,n,o){let s=new er(i.id,this.urlSerializer.serialize(i.extractedUrl),n,o);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aV(t){return t!==ac}var cV=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>v(lV),providedIn:"root"});let t=e;return t})(),Jv=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},lV=(()=>{let e=class e extends Jv{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OE=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>v(dV),providedIn:"root"});let t=e;return t})(),dV=(()=>{let e=class e extends OE{constructor(){super(...arguments),this.location=v(Cr),this.urlSerializer=v(bc),this.options=v(xc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(ob),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new kr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=_E(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(n=>{n.type==="popstate"&&i(n.url,n.state)})}handleRouterEvent(i,n){if(i instanceof Ts)this.stateMemento=this.createStateMemento();else if(i instanceof Tr)this.rawUrlTree=n.initialUrl;else if(i instanceof th){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(o,n)}}else i instanceof hc?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n))):i instanceof er&&(i.code===gi.GuardRejected||i.code===gi.NoDataFromResolver)?this.restoreHistory(n):i instanceof uc?this.restoreHistory(n,!0):i instanceof Ki&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,n){let o=this.urlSerializer.serialize(i);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let s=this.browserPageId,a=w(w({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(o,"",a)}else{let s=w(w({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(i,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,n){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:n}:{navigationId:i}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oc=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(oc||{});function NE(t,e){t.events.pipe(ge(r=>r instanceof Ki||r instanceof er||r instanceof uc||r instanceof Tr),P(r=>r instanceof Ki||r instanceof Tr?oc.COMPLETE:(r instanceof er?r.code===gi.Redirect||r.code===gi.SupersededByNewNavigation:!1)?oc.REDIRECTING:oc.FAILED),ge(r=>r!==oc.REDIRECTING),We(1)).subscribe(()=>{e()})}function uV(t){throw t}var hV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},vi=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=v(su),this.stateManager=v(OE),this.options=v(xc,{optional:!0})||{},this.pendingTasks=v(wn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(sb),this.urlSerializer=v(bc),this.location=v(Cr),this.urlHandlingStrategy=v(ob),this._events=new C,this.errorHandler=this.options.errorHandler||uV,this.navigated=!1,this.routeReuseStrategy=v(cV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=v(lh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!v(hh,{optional:!0}),this.eventsSubscription=new ne,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof er&&n.code!==gi.Redirect&&n.code!==gi.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Ki)this.navigated=!0;else if(n instanceof Rs){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=w({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||aV(o.source)},a);this.scheduleNavigation(c,ac,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}mV(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ac,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",n)},0)})}navigateToSyncWithBrowser(i,n,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=w({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,n,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(nb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,n={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=n,d=l?this.currentUrlTree.fragment:a,u=null;switch(c){case"merge":u=w(w({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let f;try{let p=o?o.snapshot:this.routerState.snapshot.root;f=mE(p)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),f=this.currentUrlTree.root}return gE(f,i,u,d??null)}navigateByUrl(i,n={skipLocationChange:!1}){let o=lc(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ac,null,n)}navigate(i,n={skipLocationChange:!1}){return pV(i),this.navigateByUrl(this.createUrlTree(i,n),n)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,n){let o;if(n===!0?o=w({},hV):n===!1?o=w({},fV):o=n,lc(i))return ZC(this.currentUrlTree,i,o);let s=this.parseUrl(i);return ZC(this.currentUrlTree,s,o)}removeEmptyProps(i){return Object.entries(i).reduce((n,[o,s])=>(s!=null&&(n[o]=s),n),{})}scheduleNavigation(i,n,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((f,p)=>{c=f,l=p});let u=this.pendingTasks.add();return NE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(f=>Promise.reject(f))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pV(t){for(let e=0;e{let e=class e{constructor(i,n,o,s,a,c){this.router=i,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new C,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=i.events.subscribe(d=>{d instanceof Ki&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(i){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",i)}ngOnChanges(i){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(i){i!=null?(this.commands=Array.isArray(i)?i:[i],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(i,n,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(i!==0||n||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let i=this.urlTree;this.href=i!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(i)):null;let n=this.href===null?null:Kw(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(i,n){let o=this.renderer,s=this.el.nativeElement;n!==null?o.setAttribute(s,i,n):o.removeAttribute(s,i)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(h(vi),h(fo),pt("tabindex"),h(xn),h(N),h(Kn))},e.\u0275dir=I({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&q("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",T],skipLocationChange:[2,"skipLocationChange","skipLocationChange",T],replaceUrl:[2,"replaceUrl","replaceUrl",T],routerLink:"routerLink"},standalone:!0,features:[re,Me]});let t=e;return t})(),FE=(()=>{let e=class e{get isActive(){return this._isActive}constructor(i,n,o,s,a){this.router=i,this.element=n,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new B,this.routerEventsSubscription=i.events.subscribe(c=>{c instanceof Ki&&this.update()})}ngAfterContentInit(){V(this.links.changes,V(null)).pipe(ln()).subscribe(i=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let i=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=He(i).pipe(ln()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(i){let n=Array.isArray(i)?i:i.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(i){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let i=this.hasActiveLinks();this.classes.forEach(n=>{i?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),i&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==i&&(this._isActive=i,this.cdr.markForCheck(),this.isActiveChange.emit(i))})}isLinkActive(i){let n=gV(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?i.isActive(s,n):!1}}hasActiveLinks(){let i=this.isLinkActive(this.router);return this.link&&i(this.link)||this.links.some(i)}};e.\u0275fac=function(n){return new(n||e)(h(vi),h(N),h(xn),h(ue),h(dh,8))},e.\u0275dir=I({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(n&1&&pe(s,dh,5),n&2){let a;L(a=j())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Me]});let t=e;return t})();function gV(t){return!!t.paths}var uh=class{};var vV=(()=>{let e=class e{constructor(i,n,o,s,a){this.router=i,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ge(i=>i instanceof Ki),un(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,n){let o=[];for(let s of n){s.providers&&!s._injector&&(s._injector=Jd(s.providers,i,`Route: ${s.path}`));let a=s._injector??i,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return He(o).pipe(ln())}preloadConfig(i,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(i,n):o=V(null);let s=o.pipe(Fe(a=>a===null?V(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??i,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return He([s,a]).pipe(ln())}else return s})}};e.\u0275fac=function(n){return new(n||e)(m(vi),m(uu),m(_t),m(uh),m(rb))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),PE=new g(""),bV=(()=>{let e=class e{constructor(i,n,o,s,a={}){this.urlSerializer=i,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=v(_t),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Ts?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Ki?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof Tr&&i.code===eh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof ih&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,n){this.zone.runOutsideAngular(()=>ia(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),$t(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new ih(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){Pa()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function _V(t){return t.routerState.root}function Dc(t,e){return{\u0275kind:t,\u0275providers:e}}function yV(){let t=v(Se);return e=>{let r=t.get(fi);if(e!==r.components[0])return;let i=t.get(vi),n=t.get(LE);t.get(ab)===1&&i.initialNavigation(),t.get(jE,null,Ie.Optional)?.setUpPreloading(),t.get(PE,null,Ie.Optional)?.init(),i.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var LE=new g("",{factory:()=>new C}),ab=new g("",{providedIn:"root",factory:()=>1});function wV(){return Dc(2,[{provide:ab,useValue:0},{provide:lu,multi:!0,deps:[Se],useFactory:e=>{let r=e.get(MD,Promise.resolve());return()=>r.then(()=>new Promise(i=>{let n=e.get(vi),o=e.get(LE);NE(n,()=>{i(!0)}),e.get(sb).afterPreactivation=()=>(i(!0),o.closed?V(void 0):o),n.initialNavigation()}))}}])}function xV(){return Dc(3,[{provide:lu,multi:!0,useFactory:()=>{let e=v(vi);return()=>{e.setUpLocationChangeListener()}}},{provide:ab,useValue:2}])}var jE=new g("");function DV(t){return Dc(0,[{provide:jE,useExisting:vV},{provide:uh,useExisting:t}])}function CV(){return Dc(8,[JC,{provide:hh,useExisting:JC}])}function EV(t){let e=[{provide:RE,useValue:rV},{provide:AE,useValue:w({skipNextTransition:!!t?.skipInitialTransition},t)}];return Dc(9,e)}var nE=new g("ROUTER_FORROOT_GUARD"),IV=[Cr,{provide:bc,useClass:ks},vi,yc,{provide:fo,useFactory:_V,deps:[vi]},rb,[]],EQ=(()=>{let e=class e{constructor(i){}static forRoot(i,n){return{ngModule:e,providers:[IV,[],{provide:lh,multi:!0,useValue:i},{provide:nE,useFactory:TV,deps:[[vi,new _n,new Gn]]},{provide:xc,useValue:n||{}},n?.useHash?MV():kV(),SV(),n?.preloadingStrategy?DV(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?RV(n):[],n?.bindToComponentInputs?CV().\u0275providers:[],n?.enableViewTransitions?EV().\u0275providers:[],AV()]}}static forChild(i){return{ngModule:e,providers:[{provide:lh,multi:!0,useValue:i}]}}};e.\u0275fac=function(n){return new(n||e)(m(nE,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function SV(){return{provide:PE,useFactory:()=>{let t=v(LD),e=v(F),r=v(xc),i=v(sb),n=v(bc);return r.scrollOffset&&t.setOffset(r.scrollOffset),new bV(n,i,t,e,r)}}}function MV(){return{provide:Kn,useClass:TD}}function kV(){return{provide:Kn,useClass:$g}}function TV(t){return"guarded"}function RV(t){return[t.initialNavigation==="disabled"?xV().\u0275providers:[],t.initialNavigation==="enabledBlocking"?wV().\u0275providers:[]]}var rE=new g("");function AV(){return[{provide:rE,useFactory:yV},{provide:du,multi:!0,useExisting:rE}]}var ti={AUTH:{ROOT:"auth",LOGIN:"login"},MODE_SELECT:{ROOT:"mode-select"},WIZARD:{ROOT:"wizard"},MODEL_COMPRESSION:{ROOT:"project-settings"},MACHINE_UNLEARNING:{ROOT:"machine-unlearning"},RUNNING:{ROOT:"running"},MODEL_TRAINING:{ROOT:"model-training"},ALGORITHM_COMPARISON:{ROOT:"algorithm-comparison"},MODEL_SPECIALIZATION:{ROOT:"model-specialization"},AWQ:{ROOT:"awq"},DEMO:{ROOT:"demo",BUTTONS:"buttons",FORM_FIELDS:"form-fields",TABLE:"table",TYPOGRAPHY:"typography",ICONS:"icons",MENU:"menu",CARDS:"cards",WIZARD:"wizard",CHIPS:"chips",CHECKBOXES:"checkboxes",NOTIFICATIONS:"notifications",DRAWER:"drawer"}};var cb=ws({source:"[Core -> Configs]",events:{"Set Default Mode":Tt(),"Set Current Mode":Tt()}});var Ns=function(t){return t.GUIDED="guided",t.EXPERT="expert",t}(Ns||{});var tr=AC("core");var VE=Sn(tr,t=>t.configs.defaultMode),BE=Sn(tr,t=>t.configs.currentMode);var zE=(()=>{let e=class e{constructor(i){this.store=i,this.defaultMode$=this.store.select(VE),this.currentMode$=this.store.select(BE)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ei))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var db;try{db=typeof Intl<"u"&&Intl.v8BreakIterator}catch{db=!1}var Ae=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?Wg(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||db)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(n){return new(n||e)(m(ki))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Fs,UE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ub(){if(Fs)return Fs;if(typeof document!="object"||!document)return Fs=new Set(UE),Fs;let t=document.createElement("input");return Fs=new Set(UE.filter(e=>(t.setAttribute("type",e),t.type===e))),Fs}var Cc;function NV(){if(Cc==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Cc=!0}))}finally{Cc=Cc||!1}return Cc}function jt(t){return NV()?t:!!t.capture}var po;function HE(){if(po==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return po=!1,po;if("scrollBehavior"in document.documentElement.style)po=!0;else{let t=Element.prototype.scrollTo;t?po=!/\{\s*\[native code\]\s*\}/.test(t.toString()):po=!1}}return po}var lb;function FV(){if(lb==null){let t=typeof document<"u"?document.head:null;lb=!!(t&&(t.createShadowRoot||t.attachShadow))}return lb}function Ec(t){if(FV()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function hb(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function At(t){return t.composedPath?t.composedPath()[0]:t.target}function Ic(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Vt(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function bi(t){return t!=null&&`${t}`!="false"}function mo(t,e=0){return fb(t)?Number(t):e}function fb(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function go(t){return Array.isArray(t)?t:[t]}function vt(t){return t==null?"":typeof t=="string"?t:`${t}px`}function ot(t){return t instanceof N?t.nativeElement:t}var PV=(()=>{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var mh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[PV]});let t=e;return t})();var $E=new Set,vo,LV=(()=>{let e=class e{constructor(i,n){this._platform=i,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):VV}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&jV(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(Na,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jV(t,e){if(!$E.has(t))try{vo||(vo=document.createElement("style"),e&&vo.setAttribute("nonce",e),vo.setAttribute("type","text/css"),document.head.appendChild(vo)),vo.sheet&&(vo.sheet.insertRule(`@media ${t} {body{ }}`,0),$E.add(t))}catch(r){console.error(r)}}function VV(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var gh=(()=>{let e=class e{constructor(i,n){this._mediaMatcher=i,this._zone=n,this._queries=new Map,this._destroySubject=new C}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return GE(go(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=GE(go(i)).map(a=>this._registerQuery(a).observable),s=$i(o);return s=dn(s.pipe(We(1)),s.pipe(lr(1),Wo(0))),s.pipe(P(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{c.matches=c.matches||l,c.breakpoints[d]=l}),c}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let n=this._mediaMatcher.matchMedia(i),s={observable:new oe(a=>{let c=l=>this._zone.run(()=>a.next(l));return n.addListener(c),()=>{n.removeListener(c)}}).pipe(Qe(n),P(({matches:a})=>({query:i,matches:a})),te(this._destroySubject)),mql:n};return this._queries.set(i,s),s}};e.\u0275fac=function(n){return new(n||e)(m(LV),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function GE(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var WE={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var QE=" ";function bb(t,e,r){let i=yh(t,e);r=r.trim(),!i.some(n=>n.trim()===r)&&(i.push(r),t.setAttribute(e,i.join(QE)))}function Dh(t,e,r){let i=yh(t,e);r=r.trim();let n=i.filter(o=>o!==r);n.length?t.setAttribute(e,n.join(QE)):t.removeAttribute(e)}function yh(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var KE="cdk-describedby-message",vh="cdk-describedby-host",gb=0,Ch=(()=>{let e=class e{constructor(i,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${gb++}`,this._document=i,this._id=v(ms)+"-"+gb++}describe(i,n,o){if(!this._canBeDescribed(i,n))return;let s=pb(n,o);typeof n!="string"?(qE(n,this._id),this._messageRegistry.set(s,{messageElement:n,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(n,o),this._isElementDescribedByMessage(i,s)||this._addMessageReference(i,s)}removeDescription(i,n,o){if(!n||!this._isElementNode(i))return;let s=pb(n,o);if(this._isElementDescribedByMessage(i,s)&&this._removeMessageReference(i,s),typeof n=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let i=this._document.querySelectorAll(`[${vh}="${this._id}"]`);for(let n=0;no.indexOf(KE)!=0);i.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(i,n){let o=this._messageRegistry.get(n);bb(i,"aria-describedby",o.messageElement.id),i.setAttribute(vh,this._id),o.referenceCount++}_removeMessageReference(i,n){let o=this._messageRegistry.get(n);o.referenceCount--,Dh(i,"aria-describedby",o.messageElement.id),i.removeAttribute(vh)}_isElementDescribedByMessage(i,n){let o=yh(i,"aria-describedby"),s=this._messageRegistry.get(n),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(i,n){if(!this._isElementNode(i))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),s=i.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(i){return i.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pb(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function qE(t,e){t.id||(t.id=`${KE}-${e}-${gb++}`)}var wh=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C,this._typeaheadSubscription=ne.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new C,this.change=new C,e instanceof Pt?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):Xd(e)&&(this._effectRef=pu(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(je(r=>this._pressedLetters.push(r)),Wo(e),ge(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join(""))).subscribe(r=>{let i=this._getItemsArray();for(let n=1;n!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),i=typeof e=="number"?e:r.indexOf(e),n=r[i];this._activeItem=n??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let i=1;i<=r.length;i++){let n=(this._activeItemIndex+e*i+r.length)%r.length,o=r[n];if(!this._skipPredicateFn(o)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=r,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return Xd(this._items)?this._items():this._items instanceof Pt?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},xh=class extends wh{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},Rn=class extends wh{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function Do(t){return t.buttons===0||t.detail===0}function Co(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var eB=new g("cdk-input-modality-detector-options"),tB={ignoreKeys:[18,17,224,91,16]},XE=650,Ps=jt({passive:!0,capture:!0}),iB=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,n,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new Pe(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=At(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(Co(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=At(a)},this._options=w(w({},tB),s),this.modalityDetected=this._modality.pipe(lr(1)),this.modalityChanged=this.modalityDetected.pipe(Gi()),i.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ps),o.addEventListener("mousedown",this._onMousedown,Ps),o.addEventListener("touchstart",this._onTouchstart,Ps)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ps),document.removeEventListener("mousedown",this._onMousedown,Ps),document.removeEventListener("touchstart",this._onTouchstart,Ps))}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F),m(K),m(eB,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nB=new g("liveAnnouncerElement",{providedIn:"root",factory:rB});function rB(){return null}var oB=new g("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),sB=0,Eh=(()=>{let e=class e{constructor(i,n,o,s){this._ngZone=n,this._defaultOptions=s,this._document=o,this._liveElement=i||this._createLiveElement()}announce(i,...n){let o=this._defaultOptions,s,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[s,a]=n,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=i,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let i="cdk-live-announcer-element",n=this._document.getElementsByClassName(i),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(i,n,o,s,a){this._ngZone=i,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new C,this._rootNodeFocusAndBlurListener=c=>{let l=At(c);for(let d=l;d;d=d.parentElement)c.type==="focus"?this._onFocus(c,d):this._onBlur(c,d)},this._document=s,this._detectionMode=a?.detectionMode||_h.IMMEDIATE}monitor(i,n=!1){let o=ot(i);if(!this._platform.isBrowser||o.nodeType!==1)return V();let s=Ec(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let c={checkChildren:n,subject:new C,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(i){let n=ot(i),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(i,n,o){let s=ot(i),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,n,l)):(this._setOrigin(n),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===_h.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,n){i.classList.toggle("cdk-focused",!!n),i.classList.toggle("cdk-touch-focused",n==="touch"),i.classList.toggle("cdk-keyboard-focused",n==="keyboard"),i.classList.toggle("cdk-mouse-focused",n==="mouse"),i.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(i,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&n,this._detectionMode===_h.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?XE:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,n){let o=this._elementInfo.get(n),s=At(i);!o||!o.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),o)}_onBlur(i,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&i.relatedTarget instanceof Node&&n.contains(i.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(i,n){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(n))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let n=i.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,bh),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,bh)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(te(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let n=i.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bh),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bh),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,n,o){this._setClasses(i,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(i){let n=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&n.push([s,o])}),n}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let a=0;a{let e=class e{constructor(i,n){this._platform=i,this._document=n,this._breakpointSubscription=v(gh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return bo.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return bo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return bo.BLACK_ON_WHITE}return bo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(mb,YE,ZE),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===bo.BLACK_ON_WHITE?i.add(mb,YE):n===bo.WHITE_ON_BLACK&&i.add(mb,ZE)}}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),JE=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(m(_b))},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[mh]});let t=e;return t})();var cB=new g("cdk-dir-doc",{providedIn:"root",factory:lB});function lB(){return v(K)}var dB=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function uB(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?dB.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var bt=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new B,i){let n=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=uB(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(n){return new(n||e)(m(cB,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var An=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var hB=["*",[["mat-option"],["ng-container"]]],fB=["*","mat-option, ng-container"],pB=["text"],mB=[[["mat-icon"]],"*"],gB=["mat-icon","*"];function vB(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let r=$();M("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function bB(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}function _B(t,e){if(t&1&&(b(0,"span",4),we(1),y()),t&2){let r=$();x(),Lt("(",r.group.label,")")}}var yB=["mat-internal-form-field",""],wB=["*"];var cI=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),lI=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function xB(){return!0}var DB=new g("mat-sanity-checks",{providedIn:"root",factory:xB}),ee=(()=>{let e=class e{constructor(i,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,i._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(i){return Ic()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(n){return new(n||e)(m(_b),m(DB,8),m(K))},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[An,An]});let t=e;return t})();var Eo=class{constructor(e,r,i,n,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=i,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(n,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var Ji=(()=>{let e=class e{isErrorState(i,n){return!!(i&&i.invalid&&(i.touched||n&&n.submitted))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Pi=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Pi||{}),xb=class{constructor(e,r,i,n=!1){this._renderer=e,this.element=r,this.config=i,this._animationForciblyDisabledThroughCss=n,this.state=Pi.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},eI=jt({passive:!0,capture:!0}),Db=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=At(e);r&&this._events.get(e.type)?.forEach((i,n)=>{(n===r||n.contains(r))&&i.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,i,n){let o=this._events.get(r);if(o){let s=o.get(i);s?s.add(n):o.set(i,new Set([n]))}else this._events.set(r,new Map([[i,new Set([n])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,eI)})}removeHandler(e,r,i){let n=this._events.get(e);if(!n)return;let o=n.get(r);o&&(o.delete(i),o.size===0&&n.delete(r),n.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,eI)))}},tI={enterDuration:225,exitDuration:150},CB=800,iI=jt({passive:!0,capture:!0}),nI=["mousedown","touchstart"],rI=["mouseup","mouseleave","touchend","touchcancel"],Sc=class Sc{constructor(e,r,i,n){this._target=e,this._ngZone=r,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=ot(i))}fadeInRipple(e,r,i={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=w(w({},tI),i.animation);i.centered&&(e=n.left+n.width/2,r=n.top+n.height/2);let s=i.radius||EB(e,r,n),a=e-n.left,c=r-n.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${c-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),f=u.transitionProperty,p=u.transitionDuration,_=f==="none"||p==="0s"||p==="0s, 0s"||n.width===0&&n.height===0,S=new xb(this,d,i,_);d.style.transform="scale3d(1, 1, 1)",S.state=Pi.FADING_IN,i.persistent||(this._mostRecentTransientRipple=S);let E=null;return!_&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let R=()=>{E&&(E.fallbackTimer=null),clearTimeout(Ne),this._finishRippleTransition(S)},he=()=>this._destroyRipple(S),Ne=setTimeout(he,l+100);d.addEventListener("transitionend",R),d.addEventListener("transitioncancel",he),E={onTransitionEnd:R,onTransitionCancel:he,fallbackTimer:Ne}}),this._activeRipples.set(S,E),(_||!l)&&this._finishRippleTransition(S),S}fadeOutRipple(e){if(e.state===Pi.FADING_OUT||e.state===Pi.HIDDEN)return;let r=e.element,i=w(w({},tI),e.config.animation);r.style.transitionDuration=`${i.exitDuration}ms`,r.style.opacity="0",e.state=Pi.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=ot(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,nI.forEach(i=>{Sc._eventManager.addHandler(this._ngZone,i,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{rI.forEach(r=>{this._triggerElement.addEventListener(r,this,iI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Pi.FADING_IN?this._startFadeOutTransition(e):e.state===Pi.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=Pi.VISIBLE,!i&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=Pi.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),e.element.remove()}_onMousedown(e){let r=Do(e),i=this._lastTouchStartEvent&&Date.now(){let r=e.state===Pi.VISIBLE||e.config.terminateOnPointerUp&&e.state===Pi.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(nI.forEach(r=>Sc._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(rI.forEach(r=>e.removeEventListener(r,this,iI)),this._pointerUpEventsRegistered=!1))}};Sc._eventManager=new Db;var Cb=Sc;function EB(t,e,r){let i=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),n=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(i*i+n*n)}var Sh=new g("mat-ripple-global-options"),yi=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){i&&this.fadeOutAllNonPersistent(),this._disabled=i,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(i){this._trigger=i,this._setupTriggerEventsIfEnabled()}constructor(i,n,o,s,a){this._elementRef=i,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Cb(this,n,i,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:w(w(w({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(i,n=0,o){return typeof i=="number"?this._rippleRenderer.fadeInRipple(i,n,w(w({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,w(w({},this.rippleConfig),i))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F),h(Ae),h(Sh,8),h(rt,8))},e.\u0275dir=I({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),en=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})(),Ib=(()=>{let e=class e{constructor(i){this._animationMode=i,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(n){return new(n||e)(h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&H("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),IB=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee]});let t=e;return t})(),Mh=new g("MAT_OPTION_PARENT_COMPONENT"),SB=0,kh=new g("MatOptgroup"),GK=(()=>{let e=class e{constructor(i){this.disabled=!1,this._labelId=`mat-optgroup-label-${SB++}`,this._inert=i?.inertGroups??!1}};e.\u0275fac=function(n){return new(n||e)(h(Mh,8))},e.\u0275cmp=z({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(n,o){n&2&&q("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",T]},exportAs:["matOptgroup"],standalone:!0,features:[se([{provide:kh,useExisting:e}]),re,Y],ngContentSelectors:fB,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(n,o){n&1&&(ye(hB),b(0,"span",0)(1,"span",1),we(2),W(3),y()(),W(4,1)),n&2&&(H("mdc-list-item--disabled",o.disabled),M("id",o._labelId),x(2),Lt("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0});let t=e;return t})(),MB=0,Eb=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},dI=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(i){this._disabled=i}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(i,n,o,s){this._element=i,this._changeDetectorRef=n,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${MB++}`,this.onSelectionChange=new B,this._stateChanges=new C}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(i=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}deselect(i=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}focus(i,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!Vt(i)&&(this._selectViaInteraction(),i.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let i=this.viewValue;i!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=i)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(i=!1){this.onSelectionChange.emit(new Eb(this,i))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(Mh,8),h(kh,8))},e.\u0275cmp=z({type:e,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&De(pB,7),n&2){let s;L(s=j())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&Z("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(yt("id",o.id),q("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),H("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",T]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[re,Y],ngContentSelectors:gB,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(ye(mB),U(0,vB,1,2,"mat-pseudo-checkbox",1),W(1),b(2,"span",2,0),W(4,1),y(),U(5,bB,1,1,"mat-pseudo-checkbox",3)(6,_B,2,1,"span",4),k(7,"div",5)),n&2&&(le(o.multiple?0:-1),x(5),le(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),x(),le(o.group&&o.group._inert?6:-1),x(),M("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Ib,yi],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function uI(t,e,r){if(r.length){let i=e.toArray(),n=r.toArray(),o=0;for(let s=0;sr+i?Math.max(0,t-i+e):r}var Sb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[en,ee,IB]});let t=e;return t})(),oI={capture:!0},sI=["focus","mousedown","mouseenter","touchstart"],yb="mat-ripple-loader-uninitialized",wb="mat-ripple-loader-class-name",aI="mat-ripple-loader-centered",Ih="mat-ripple-loader-disabled",Th=(()=>{let e=class e{constructor(){this._document=v(K,{optional:!0}),this._animationMode=v(rt,{optional:!0}),this._globalRippleOptions=v(Sh,{optional:!0}),this._platform=v(Ae),this._ngZone=v(F),this._hosts=new Map,this._onInteraction=i=>{let n=At(i);if(n instanceof HTMLElement){let o=n.closest(`[${yb}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let i of sI)this._document?.addEventListener(i,this._onInteraction,oI)})}ngOnDestroy(){let i=this._hosts.keys();for(let n of i)this.destroyRipple(n);for(let n of sI)this._document?.removeEventListener(n,this._onInteraction,oI)}configureRipple(i,n){i.setAttribute(yb,this._globalRippleOptions?.namespace??""),(n.className||!i.hasAttribute(wb))&&i.setAttribute(wb,n.className||""),n.centered&&i.setAttribute(aI,""),n.disabled&&i.setAttribute(Ih,"")}getRipple(i){return this._hosts.get(i)||this._createRipple(i)}setDisabled(i,n){let o=this._hosts.get(i);if(o){o.disabled=n;return}n?i.setAttribute(Ih,""):i.removeAttribute(Ih)}_createRipple(i){if(!this._document)return;let n=this._hosts.get(i);if(n)return n;i.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",i.getAttribute(wb)),i.append(o);let s=new yi(new N(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=i,s.centered=i.hasAttribute(aI),s.disabled=i.hasAttribute(Ih),this.attachRipple(i,s),s}attachRipple(i,n){i.removeAttribute(yb),this._hosts.set(i,n)}destroyRipple(i){let n=this._hosts.get(i);n&&(n.ngOnDestroy(),this._hosts.delete(i))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Y],attrs:yB,ngContentSelectors:wB,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},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}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var Ah=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(i){this._vertical=bi(i)}get inset(){return this._inset}set inset(i){this._inset=bi(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(q("aria-orientation",o.vertical?"vertical":"horizontal"),H("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),fI=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})();function kB(t,e){t&1&&k(0,"div",8)}function TB(t,e){t&1&&k(0,"div",8)}var mI=(()=>{let e=class e{constructor(){this.styleMode="fullWidth",this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-footer"]],inputs:{styleMode:"styleMode"},decls:14,vars:4,consts:[[1,"footer-wrapper"],[1,"mb-4"],[1,"grid","grid-cols-12"],["class","col-span-1",4,"ngIf"],[1,"footer-content",3,"ngClass"],[1,"left"],[1,"right"],[1,"mr-4"],[1,"col-span-1"]],template:function(n,o){n&1&&(b(0,"div",0)(1,"div",1),k(2,"mat-divider"),y(),b(3,"footer",2),U(4,kB,1,0,"div",3),b(5,"div",4)(6,"div",5),we(7),y(),b(8,"div",6)(9,"a",7),we(10,"Privacy Policy"),y(),b(11,"a"),we(12,"Terms of Service"),y()()(),U(13,TB,1,0,"div",3),y()()),n&2&&(x(4),M("ngIf",o.styleMode!=="mainLayout"),x(),M("ngClass",o.styleMode==="mainLayout"?"col-span-12":"col-span-10"),x(2),Lt("\xA9 ",o.currentYear," Cisco Systems, Inc"),x(6),M("ngIf",o.styleMode!=="mainLayout"))},dependencies:[ys,Er,Ah],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.footer-wrapper[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;display:flex;justify-content:space-between}[styleMode=fullWidth][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{width:100%;position:absolute;bottom:30px}[styleMode=mainLayout][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{position:relative;bottom:0}"]});let t=e;return t})();var DI=(()=>{let e=class e{constructor(i,n){this._renderer=i,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,n){this._renderer.setProperty(this._elementRef.nativeElement,i,n)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(n){return new(n||e)(h(xn),h(N))},e.\u0275dir=I({type:e});let t=e;return t})(),AB=(()=>{let e=class e extends DI{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,features:[ae]});let t=e;return t})(),Nn=new g("");var OB={provide:Nn,useExisting:lt(()=>zh),multi:!0};function NB(){let t=En()?En().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var FB=new g(""),zh=(()=>{let e=class e extends DI{constructor(i,n,o){super(i,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!NB())}writeValue(i){let n=i??"";this.setProperty("value",n)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(n){return new(n||e)(h(xn),h(N),h(FB,8))},e.\u0275dir=I({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&Z("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[se([OB]),ae]});let t=e;return t})();function Ar(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function CI(t){return t!=null&&typeof t.length=="number"}var tn=new g(""),So=new g(""),PB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Vs=class{static min(e){return LB(e)}static max(e){return jB(e)}static required(e){return VB(e)}static requiredTrue(e){return BB(e)}static email(e){return zB(e)}static minLength(e){return UB(e)}static maxLength(e){return HB(e)}static pattern(e){return $B(e)}static nullValidator(e){return EI(e)}static compose(e){return RI(e)}static composeAsync(e){return AI(e)}};function LB(t){return e=>{if(Ar(e.value)||Ar(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Ar(e.value)||Ar(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function VB(t){return Ar(t.value)?{required:!0}:null}function BB(t){return t.value===!0?null:{required:!0}}function zB(t){return Ar(t.value)||PB.test(t.value)?null:{email:!0}}function UB(t){return e=>Ar(e.value)||!CI(e.value)?null:e.value.lengthCI(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function $B(t){if(!t)return EI;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),i=>{if(Ar(i.value))return null;let n=i.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function EI(t){return null}function II(t){return t!=null}function SI(t){return xr(t)?He(t):t}function MI(t){let e={};return t.forEach(r=>{e=r!=null?w(w({},e),r):e}),Object.keys(e).length===0?null:e}function kI(t,e){return e.map(r=>r(t))}function GB(t){return!t.validate}function TI(t){return t.map(e=>GB(e)?e:r=>e.validate(r))}function RI(t){if(!t)return null;let e=t.filter(II);return e.length==0?null:function(r){return MI(kI(r,e))}}function Nb(t){return t!=null?RI(TI(t)):null}function AI(t){if(!t)return null;let e=t.filter(II);return e.length==0?null:function(r){let i=kI(r,e).map(SI);return ua(i).pipe(P(MI))}}function Fb(t){return t!=null?AI(TI(t)):null}function gI(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function OI(t){return t._rawValidators}function NI(t){return t._rawAsyncValidators}function kb(t){return t?Array.isArray(t)?t:[t]:[]}function Nh(t,e){return Array.isArray(t)?t.includes(e):t===e}function vI(t,e){let r=kb(e);return kb(t).forEach(n=>{Nh(r,n)||r.push(n)}),r}function bI(t,e){return kb(e).filter(r=>!Nh(t,r))}var Fh=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Nb(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Fb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},ni=class extends Fh{get formDirective(){return null}get path(){return null}},wi=class extends Fh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ph=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},WB={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},dX=Q(w({},WB),{"[class.ng-submitted]":"isSubmitted"}),FI=(()=>{let e=class e extends Ph{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(h(wi,2))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ae]});let t=e;return t})(),uX=(()=>{let e=class e extends Ph{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(h(ni,10))},e.\u0275dir=I({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ae]});let t=e;return t})();var Mc="VALID",Oh="INVALID",Ls="PENDING",kc="DISABLED",Or=class{},Lh=class extends Or{constructor(e,r){super(),this.value=e,this.source=r}},Rc=class extends Or{constructor(e,r){super(),this.pristine=e,this.source=r}},Ac=class extends Or{constructor(e,r){super(),this.touched=e,this.source=r}},js=class extends Or{constructor(e,r){super(),this.status=e,this.source=r}},Tb=class extends Or{constructor(e){super(),this.source=e}},Rb=class extends Or{constructor(e){super(),this.source=e}};function Pb(t){return(Uh(t)?t.validators:t)||null}function qB(t){return Array.isArray(t)?Nb(t):t||null}function Lb(t,e){return(Uh(e)?e.asyncValidators:t)||null}function YB(t){return Array.isArray(t)?Fb(t):t||null}function Uh(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function PI(t,e,r){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new G(1e3,"");if(!i[r])throw new G(1001,"")}function LI(t,e,r){t._forEachChild((i,n)=>{if(r[n]===void 0)throw new G(1002,"")})}var Bs=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new C,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Mc}get invalid(){return this.status===Oh}get pending(){return this.status==Ls}get disabled(){return this.status===kc}get enabled(){return this.status!==kc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(vI(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(vI(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(bI(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(bI(e,this._rawAsyncValidators))}hasValidator(e){return Nh(this._rawValidators,e)}hasAsyncValidator(e){return Nh(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Q(w({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Ac(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),r&&e.emitEvent!==!1&&this._events.next(new Ac(!1,i))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Q(w({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Rc(!1,i))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&e.emitEvent!==!1&&this._events.next(new Rc(!0,i))}markAsPending(e={}){this.status=Ls;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new js(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Q(w({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=kc,this.errors=null,this._forEachChild(n=>{n.disable(Q(w({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Lh(this.value,i)),this._events.next(new js(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Q(w({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Mc,this._forEachChild(i=>{i.enable(Q(w({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Q(w({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mc||this.status===Ls)&&this._runAsyncValidator(i,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Lh(this.value,r)),this._events.next(new js(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Q(w({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?kc:Mc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Ls,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let i=SI(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((i,n)=>i&&i._find(n),this)}getError(e,r){let i=r?this.get(r):this;return i&&i.errors?i.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new js(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,i)}_initObservables(){this.valueChanges=new B,this.statusChanges=new B}_calculateStatus(){return this._allControlsDisabled()?kc:this.errors?Oh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ls)?Ls:this._anyControlsHaveStatus(Oh)?Oh:Mc}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new Rc(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Ac(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Uh(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=qB(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=YB(this._rawAsyncValidators)}},zs=class extends Bs{constructor(e,r,i){super(Pb(r),Lb(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,i={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){LI(this,!0,e),Object.keys(e).forEach(i=>{PI(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(i=>{let n=this.controls[i];n&&n.patchValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((i,n)=>{i.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,i)=>(e[i]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,i)=>i._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let i=this.controls[r];i&&e(i,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,i]of Object.entries(this.controls))if(this.contains(r)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,i,n)=>((i.enabled||this.disabled)&&(r[n]=i.value),r))}_reduceChildren(e,r){let i=e;return this._forEachChild((n,o)=>{i=r(i,n,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ab=class extends zs{};var Us=new g("CallSetDisabledState",{providedIn:"root",factory:()=>Hh}),Hh="always";function $h(t,e){return[...e.path,t]}function Oc(t,e,r=Hh){jb(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),QB(t,e),XB(t,e),KB(t,e),ZB(t,e)}function jh(t,e,r=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Bh(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Vh(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function ZB(t,e){if(e.valueAccessor.setDisabledState){let r=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function jb(t,e){let r=OI(t);e.validator!==null?t.setValidators(gI(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let i=NI(t);e.asyncValidator!==null?t.setAsyncValidators(gI(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let n=()=>t.updateValueAndValidity();Vh(e._rawValidators,n),Vh(e._rawAsyncValidators,n)}function Bh(t,e){let r=!1;if(t!==null){if(e.validator!==null){let n=OI(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.validator);o.length!==n.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let n=NI(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.asyncValidator);o.length!==n.length&&(r=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Vh(e._rawValidators,i),Vh(e._rawAsyncValidators,i),r}function QB(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jI(t,e)})}function KB(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jI(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function jI(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function XB(t,e){let r=(i,n)=>{e.valueAccessor.writeValue(i),n&&e.viewToModelUpdate(i)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function VI(t,e){t==null,jb(t,e)}function JB(t,e){return Bh(t,e)}function Vb(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function ez(t){return Object.getPrototypeOf(t.constructor)===AB}function BI(t,e){t._syncPendingControls(),e.forEach(r=>{let i=r.control;i.updateOn==="submit"&&i._pendingChange&&(r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Bb(t,e){if(!e)return null;Array.isArray(e);let r,i,n;return e.forEach(o=>{o.constructor===zh?r=o:ez(o)?i=o:n=o}),n||i||r||null}function tz(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var iz={provide:ni,useExisting:lt(()=>Nc)},Tc=Promise.resolve(),Nc=(()=>{let e=class e extends ni{constructor(i,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new B,this.form=new zs({},Nb(i),Fb(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){Tc.then(()=>{let n=this._findContainer(i.path);i.control=n.registerControl(i.name,i.control),Oc(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){Tc.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){Tc.then(()=>{let n=this._findContainer(i.path),o=new zs({});VI(o,i),n.registerControl(i.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){Tc.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,n){Tc.then(()=>{this.form.get(i.path).setValue(n)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submitted=!0,BI(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};e.\u0275fac=function(n){return new(n||e)(h(tn,10),h(So,10),h(Us,8))},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&Z("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([iz]),ae]});let t=e;return t})();function _I(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function yI(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Io=class extends Bs{constructor(e=null,r,i){super(Pb(r),Lb(i,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Uh(r)&&(r.nonNullable||r.initialValueIsDefault)&&(yI(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){_I(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){_I(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){yI(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var nz=t=>t instanceof Io,rz=(()=>{let e=class e extends ni{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $h(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,features:[ae]});let t=e;return t})();var oz={provide:wi,useExisting:lt(()=>sz)},wI=Promise.resolve(),sz=(()=>{let e=class e extends wi{constructor(i,n,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Io,this._registered=!1,this.name="",this.update=new B,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Bb(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let n=i.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),Vb(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Oc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){wI.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let n=i.isDisabled.currentValue,o=n!==0&&T(n);wI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?$h(i,this._parent):[i]}};e.\u0275fac=function(n){return new(n||e)(h(ni,9),h(tn,10),h(So,10),h(Nn,10),h(ue,8),h(Us,8))},e.\u0275dir=I({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[se([oz]),ae,Me]});let t=e;return t})(),fX=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var zb=new g(""),az={provide:wi,useExisting:lt(()=>Ub)},Ub=(()=>{let e=class e extends wi{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new B,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Bb(this,o)}ngOnChanges(i){if(this._isControlChanged(i)){let n=i.form.previousValue;n&&jh(n,this,!1),Oc(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Vb(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&jh(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(tn,10),h(So,10),h(Nn,10),h(zb,8),h(Us,8))},e.\u0275dir=I({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[se([az]),ae,Me]});let t=e;return t})(),cz={provide:ni,useExisting:lt(()=>Hs)},Hs=(()=>{let e=class e extends ni{constructor(i,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new B,this._setValidators(i),this._setAsyncValidators(n)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Bh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let n=this.form.get(i.path);return Oc(n,i,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),n}getControl(i){return this.form.get(i.path)}removeControl(i){jh(i.control||null,i,!1),tz(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,n){this.form.get(i.path).setValue(n)}onSubmit(i){return this.submitted=!0,BI(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new Tb(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1,this.form._events.next(new Rb(this.form))}_updateDomValue(){this.directives.forEach(i=>{let n=i.control,o=this.form.get(i.path);n!==o&&(jh(n||null,i),nz(o)&&(Oc(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let n=this.form.get(i.path);VI(n,i),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let n=this.form.get(i.path);n&&JB(n,i)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jb(this.form,this),this._oldForm&&Bh(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(h(tn,10),h(So,10),h(Us,8))},e.\u0275dir=I({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&Z("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([cz]),ae,Me]});let t=e;return t})(),lz={provide:ni,useExisting:lt(()=>zI)},zI=(()=>{let e=class e extends rz{constructor(i,n,o){super(),this.name=null,this._parent=i,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){HI(this._parent)}};e.\u0275fac=function(n){return new(n||e)(h(ni,13),h(tn,10),h(So,10))},e.\u0275dir=I({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[se([lz]),ae]});let t=e;return t})(),dz={provide:ni,useExisting:lt(()=>UI)},UI=(()=>{let e=class e extends ni{constructor(i,n,o){super(),this.name=null,this._parent=i,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return $h(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){HI(this._parent)}};e.\u0275fac=function(n){return new(n||e)(h(ni,13),h(tn,10),h(So,10))},e.\u0275dir=I({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[se([dz]),ae]});let t=e;return t})();function HI(t){return!(t instanceof zI)&&!(t instanceof Hs)&&!(t instanceof UI)}var uz={provide:wi,useExisting:lt(()=>hz)},hz=(()=>{let e=class e extends wi{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new B,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Bb(this,s)}ngOnChanges(i){this._added||this._setUpControl(),Vb(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return $h(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(ni,13),h(tn,10),h(So,10),h(Nn,10),h(zb,8))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[se([uz]),ae,Me]});let t=e;return t})();var $I=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Ob=class extends Bs{constructor(e,r,i){super(Pb(r),Lb(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,i={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),r&&(this.controls.splice(n,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){LI(this,!1,e),e.forEach((i,n)=>{PI(this,!1,n),this.at(n).setValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((i,n)=>{this.at(n)&&this.at(n).patchValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,i)=>i._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,i)=>{e(r,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function xI(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var pX=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let i=new e;return i.useNonNullable=!0,i}group(i,n=null){let o=this._reduceControls(i),s={};return xI(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new zs(o,s)}record(i,n=null){let o=this._reduceControls(i);return new Ab(o,n)}control(i,n,o){let s={};return this.useNonNullable?(xI(n)?s=n:(s.validators=n,s.asyncValidators=o),new Io(i,Q(w({},s),{nonNullable:!0}))):new Io(i,n,o)}array(i,n,o){let s=i.map(a=>this._createControl(a));return new Ob(s,n,o)}_reduceControls(i){let n={};return Object.keys(i).forEach(o=>{n[o]=this._createControl(i[o])}),n}_createControl(i){if(i instanceof Io)return i;if(i instanceof Bs)return i;if(Array.isArray(i)){let n=i[0],o=i.length>1?i[1]:null,s=i.length>2?i[2]:null;return this.control(n,o,s)}else return this.control(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var mX=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:Us,useValue:i.callSetDisabledState??Hh}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[$I]});let t=e;return t})(),gX=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:zb,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:Us,useValue:i.callSetDisabledState??Hh}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[$I]});let t=e;return t})();var GI=["mat-button",""],WI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],qI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],fz='.mdc-touch-target-wrapper{display:inline}.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-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__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:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__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-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',YI=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var pz=["mat-icon-button",""],mz=["*"];var gz=new g("MAT_BUTTON_CONFIG");var vz=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],$b=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=i,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._updateRippleDisabled()}constructor(i,n,o,s){this._elementRef=i,this._platform=n,this._ngZone=o,this._animationMode=s,this._focusMonitor=v(Et),this._rippleLoader=v(Th),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=v(gz,{optional:!0}),c=i.nativeElement,l=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:d,mdcClasses:u}of vz)c.hasAttribute(d)&&l.add(...u)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(i="program",n){i?this._focusMonitor.focusVia(this._elementRef.nativeElement,i,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){Pa()},e.\u0275dir=I({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",T],disabled:[2,"disabled","disabled",T],ariaDisabled:[2,"aria-disabled","ariaDisabled",T],disabledInteractive:[2,"disabledInteractive","disabledInteractive",T]},features:[re]});let t=e;return t})();var bz=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(n){Pa()},e.\u0275dir=I({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)]},features:[re,ae]});let t=e;return t})(),Gh=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ae,Y],attrs:GI,ngContentSelectors:qI,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(ye(WI),k(0,"span",0),W(1),b(2,"span",1),W(3,1),y(),W(4,2),k(5,"span",2)(6,"span",3)),n&2&&H("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.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-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__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:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__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-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),kX=(()=>{let e=class e extends bz{constructor(i,n,o,s){super(i,n,o,s)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ae,Y],attrs:GI,ngContentSelectors:qI,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(ye(WI),k(0,"span",0),W(1),b(2,"span",1),W(3,1),y(),W(4,2),k(5,"span",2)(6,"span",3)),n&2&&H("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[fz,YI],encapsulation:2,changeDetection:0});let t=e;return t})();var ZI=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ae,Y],attrs:pz,ngContentSelectors:mz,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(ye(),k(0,"span",0),W(1),k(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',YI],encapsulation:2,changeDetection:0});let t=e;return t})();var Wh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,en,ee]});let t=e;return t})();var _z=["*"],qh;function yz(){if(qh===void 0&&(qh=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(qh=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return qh}function Fc(t){return yz()?.createHTML(t)||t}function KI(t){return Error(`Unable to find icon with the name "${t}"`)}function wz(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function XI(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function JI(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var ir=class{constructor(e,r,i){this.url=e,this.svgText=r,this.options=i}},xz=(()=>{let e=class e{constructor(i,n,o,s){this._httpClient=i,this._sanitizer=n,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(i,n,o){return this.addSvgIconInNamespace("",i,n,o)}addSvgIconLiteral(i,n,o){return this.addSvgIconLiteralInNamespace("",i,n,o)}addSvgIconInNamespace(i,n,o,s){return this._addSvgIconConfig(i,n,new ir(o,null,s))}addSvgIconResolver(i){return this._resolvers.push(i),this}addSvgIconLiteralInNamespace(i,n,o,s){let a=this._sanitizer.sanitize(Ht.HTML,o);if(!a)throw JI(o);let c=Fc(a);return this._addSvgIconConfig(i,n,new ir("",c,s))}addSvgIconSet(i,n){return this.addSvgIconSetInNamespace("",i,n)}addSvgIconSetLiteral(i,n){return this.addSvgIconSetLiteralInNamespace("",i,n)}addSvgIconSetInNamespace(i,n,o){return this._addSvgIconSetConfig(i,new ir(n,null,o))}addSvgIconSetLiteralInNamespace(i,n,o){let s=this._sanitizer.sanitize(Ht.HTML,n);if(!s)throw JI(n);let a=Fc(s);return this._addSvgIconSetConfig(i,new ir("",a,o))}registerFontClassAlias(i,n=i){return this._fontCssClassesByAlias.set(i,n),this}classNameForFontAlias(i){return this._fontCssClassesByAlias.get(i)||i}setDefaultFontSetClass(...i){return this._defaultFontSetClass=i,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(i){let n=this._sanitizer.sanitize(Ht.RESOURCE_URL,i);if(!n)throw XI(i);let o=this._cachedIconsByUrl.get(n);return o?V(Yh(o)):this._loadSvgIconFromConfig(new ir(i,null)).pipe(je(s=>this._cachedIconsByUrl.set(n,s)),P(s=>Yh(s)))}getNamedSvgIcon(i,n=""){let o=eS(n,i),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(n,i),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(i,a):cn(KI(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(i){return i.svgText?V(Yh(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe(P(n=>Yh(n)))}_getSvgFromIconSetConfigs(i,n){let o=this._extractIconWithNameFromAnySet(i,n);if(o)return V(o);let s=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ut(c=>{let d=`Loading icon set URL: ${this._sanitizer.sanitize(Ht.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(d)),V(null)})));return ua(s).pipe(P(()=>{let a=this._extractIconWithNameFromAnySet(i,n);if(!a)throw KI(i);return a}))}_extractIconWithNameFromAnySet(i,n){for(let o=n.length-1;o>=0;o--){let s=n[o];if(s.svgText&&s.svgText.toString().indexOf(i)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,i,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(i){return this._fetchIcon(i).pipe(je(n=>i.svgText=n),P(()=>this._svgElementFromConfig(i)))}_loadSvgIconSetFromConfig(i){return i.svgText?V(null):this._fetchIcon(i).pipe(je(n=>i.svgText=n))}_extractSvgIconFromSet(i,n,o){let s=i.querySelector(`[id="${n}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(Fc(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(i){let n=this._document.createElement("DIV");n.innerHTML=i;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(i){let n=this._svgElementFromString(Fc("")),o=i.attributes;for(let s=0;sFc(d)),Ei(()=>this._inProgressUrlFetches.delete(a)),ga());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(i,n,o){return this._svgIconConfigs.set(eS(i,n),o),this}_addSvgIconSetConfig(i,n){let o=this._iconSetConfigs.get(i);return o?o.push(n):this._iconSetConfigs.set(i,[n]),this}_svgElementFromConfig(i){if(!i.svgElement){let n=this._svgElementFromString(i.svgText);this._setSvgAttributes(n,i.options),i.svgElement=n}return i.svgElement}_getIconConfigFromResolvers(i,n){for(let o=0;oe?e.pathname+e.search:""}}var tS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Sz=tS.map(t=>`[${t}]`).join(", "),Mz=/^url\(['"]?#(.*?)['"]?\)$/,Li=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}get svgIcon(){return this._svgIcon}set svgIcon(i){i!==this._svgIcon&&(i?this._updateSvgIcon(i):this._svgIcon&&this._clearSvgElement(),this._svgIcon=i)}get fontSet(){return this._fontSet}set fontSet(i){let n=this._cleanupFontValue(i);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(i){let n=this._cleanupFontValue(i);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(i,n,o,s,a,c){this._elementRef=i,this._iconRegistry=n,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ne.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||i.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(i){if(!i)return["",""];let n=i.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${i}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let i=this._elementsWithExternalReferences;if(i&&i.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(i){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(i),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(i)}_clearSvgElement(){let i=this._elementRef.nativeElement,n=i.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=i.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let i=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>i.classList.remove(o)),n.forEach(o=>i.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&i.classList.remove(this._previousFontIconClass),this.fontIcon&&i.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(i){return typeof i=="string"?i.trim().split(" ")[0]:i}_prependPathToReferences(i){let n=this._elementsWithExternalReferences;n&&n.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${i}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(i){let n=i.querySelectorAll(Sz),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=n[s],l=c.getAttribute(a),d=l?l.match(Mz):null;if(d){let u=o.get(c);u||(u=[],o.set(c,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(i){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),i){let[n,o]=this._splitIconName(i);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(We(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${n}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(n){return new(n||e)(h(N),h(xz),pt("aria-hidden"),h(Ez),h(Ft),h(Cz,8))},e.\u0275cmp=z({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(q("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),kt(o.color?"mat-"+o.color:""),H("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",T],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[re,Y],ngContentSelectors:_z,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let t=e;return t})(),Zh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})();var ji=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ji||{}),HX="*";function st(t,e){return{type:ji.Trigger,name:t,definitions:e,options:{}}}function Ge(t,e=null){return{type:ji.Animate,styles:e,timings:t}}function Gb(t,e=null){return{type:ji.Group,steps:t,options:e}}function $X(t,e=null){return{type:ji.Sequence,steps:t,options:e}}function de(t){return{type:ji.Style,styles:t,offset:null}}function ke(t,e,r){return{type:ji.State,name:t,styles:e,options:r}}function Lc(t){return{type:ji.Keyframes,steps:t}}function Le(t,e,r=null){return{type:ji.Transition,expr:t,animation:e,options:r}}function Mo(t=null){return{type:ji.AnimateChild,options:t}}function ko(t,e,r=null){return{type:ji.Query,selector:t,animation:e,options:r}}function GX(t,e){return{type:ji.Stagger,timings:t,animation:e}}var iS=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},nS=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,i=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,r/i.totalTime):1;i.setPosition(n)})}getPosition(){let e=this.players.reduce((r,i)=>r===null||i.totalTime>r.totalTime?i:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},WX="!";var Wb=class{constructor(e){this._box=e,this._destroyed=new C,this._resizeSubject=new C,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new oe(r=>{let i=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(ge(r=>r.some(i=>i.target===e)),Vl({bufferSize:1,refCount:!0}),te(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},rS=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=v(F),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,i]of this._observers)i.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(i,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new Wb(o)),this._observers.get(o).observe(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var kz=["notch"],Tz=["matFormFieldNotchedOutline",""],Rz=["*"],Az=["textField"],Oz=["iconPrefixContainer"],Nz=["textPrefixContainer"],Fz=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Pz=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Lz(t,e){t&1&&k(0,"span",19)}function jz(t,e){if(t&1&&(b(0,"label",18),W(1,1),U(2,Lz,1,0,"span",19),y()),t&2){let r=$(2);M("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),q("for",r._control.disableAutomaticLabeling?null:r._control.id),x(2),le(!r.hideRequiredMarker&&r._control.required?2:-1)}}function Vz(t,e){if(t&1&&U(0,jz,3,5,"label",18),t&2){let r=$();le(r._hasFloatingLabel()?0:-1)}}function Bz(t,e){t&1&&k(0,"div",5)}function zz(t,e){}function Uz(t,e){if(t&1&&U(0,zz,0,0,"ng-template",11),t&2){$(2);let r=gt(1);M("ngTemplateOutlet",r)}}function Hz(t,e){if(t&1&&(b(0,"div",7),U(1,Uz,1,1,null,11),y()),t&2){let r=$();M("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),x(),le(r._forceDisplayInfixLabel()?-1:1)}}function $z(t,e){t&1&&(b(0,"div",8,2),W(2,2),y())}function Gz(t,e){t&1&&(b(0,"div",9,3),W(2,3),y())}function Wz(t,e){}function qz(t,e){if(t&1&&U(0,Wz,0,0,"ng-template",11),t&2){$();let r=gt(1);M("ngTemplateOutlet",r)}}function Yz(t,e){t&1&&(b(0,"div",12),W(1,4),y())}function Zz(t,e){t&1&&(b(0,"div",13),W(1,5),y())}function Qz(t,e){t&1&&k(0,"div",14)}function Kz(t,e){if(t&1&&(b(0,"div",16),W(1,6),y()),t&2){let r=$();M("@transitionMessages",r._subscriptAnimationState)}}function Xz(t,e){if(t&1&&(b(0,"mat-hint",20),we(1),y()),t&2){let r=$(2);M("id",r._hintLabelId),x(),at(r.hintLabel)}}function Jz(t,e){if(t&1&&(b(0,"div",17),U(1,Xz,2,2,"mat-hint",20),W(2,7),k(3,"div",21),W(4,8),y()),t&2){let r=$();M("@transitionMessages",r._subscriptAnimationState),x(),le(r.hintLabel?1:-1)}}var oS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})(),eU=0,pS=new g("MatError"),yJ=(()=>{let e=class e{constructor(i,n){this.id=`mat-mdc-error-${eU++}`,i||n.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(n){return new(n||e)(pt("aria-live"),h(N))},e.\u0275dir=I({type:e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,o){n&2&&yt("id",o.id)},inputs:{id:"id"},standalone:!0,features:[se([{provide:pS,useExisting:e}])]});let t=e;return t})(),tU=0,sS=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${tU++}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("align",null),H("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),mS=new g("MatPrefix"),gS=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[se([{provide:mS,useExisting:e}])]});let t=e;return t})(),vS=new g("MatSuffix"),wJ=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[se([{provide:vS,useExisting:e}])]});let t=e;return t})(),bS=new g("FloatingLabelParent"),aS=(()=>{let e=class e{get floating(){return this._floating}set floating(i){this._floating=i,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(i){this._monitorResize=i,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(i){this._elementRef=i,this._floating=!1,this._monitorResize=!1,this._resizeObserver=v(rS),this._ngZone=v(F),this._parent=v(bS),this._resizeSubscription=new ne}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return iU(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function iU(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let i=r.scrollWidth;return r.remove(),i}var cS="mdc-line-ripple--active",Qh="mdc-line-ripple--deactivating",lS=(()=>{let e=class e{constructor(i,n){this._elementRef=i,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(Qh);o.propertyName==="opacity"&&a&&s.remove(cS,Qh)},n.runOutsideAngular(()=>{i.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let i=this._elementRef.nativeElement.classList;i.remove(Qh),i.add(cS)}deactivate(){this._elementRef.nativeElement.classList.add(Qh)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F))},e.\u0275dir=I({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),dS=(()=>{let e=class e{constructor(i,n){this._elementRef=i,this._ngZone=n,this.open=!1}ngAfterViewInit(){let i=this._elementRef.nativeElement.querySelector(".mdc-floating-label");i?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(i){!this.open||!i?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${i}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F))},e.\u0275cmp=z({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&De(kz,5),n&2){let s;L(s=j())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Y],attrs:Tz,ngContentSelectors:Rz,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(ye(),k(0,"div",1),b(1,"div",2,0),W(3),y(),k(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),nU={transitionMessages:st("transitionMessages",[ke("enter",de({opacity:1,transform:"translateY(0%)"})),Le("void => enter",[de({opacity:0,transform:"translateY(-5px)"}),Ge("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},jc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e});let t=e;return t})();var Vc=new g("MatFormField"),qb=new g("MAT_FORM_FIELD_DEFAULT_OPTIONS"),uS=0,hS="fill",rU="auto",fS="fixed",oU="translateY(-50%)",_S=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=bi(i)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||rU}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(i){let n=this._appearance,o=i||this._defaults?.appearance||hS;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||fS}set subscriptSizing(i){this._subscriptSizing=i||this._defaults?.subscriptSizing||fS}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(i){this._explicitFormFieldControl=i}constructor(i,n,o,s,a,c,l,d){this._elementRef=i,this._changeDetectorRef=n,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance=hS,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${uS++}`,this._hintLabelId=`mat-mdc-hint-${uS++}`,this._subscriptAnimationState="",this._destroyed=new C,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=v(Se),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),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(){let i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${i.controlType}`),i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe(te(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(i=>!i._isText),this._hasTextPrefix=!!this._prefixChildren.find(i=>i._isText),this._hasIconSuffix=!!this._suffixChildren.find(i=>!i._isText),this._hasTextSuffix=!!this._suffixChildren.find(i=>i._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ze(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Ba(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(te(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(i){let n=this._control?this._control.ngControl:null;return n&&n[i]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&i.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;n?i.push(n.id):this._hintLabel&&i.push(this._hintLabelId),o&&i.push(o.id)}else this._errorChildren&&i.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(i)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let i=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){i.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=n?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",l=`${s+a}px`,u=`calc(${c} * (${l} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;i.style.transform=`var( + before dispatching the action. For example, someAction should be someAction().`);if(typeof i>"u")throw new TypeError("Actions must be objects");if(typeof i.type>"u")throw new TypeError("Actions must have a type property");super.next(i)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),IL=[Es],DC=new g("@ngrx/store Internal Root Guard"),aC=new g("@ngrx/store Internal Initial State"),vv=new g("@ngrx/store Initial State"),CC=new g("@ngrx/store Reducer Factory"),cC=new g("@ngrx/store Internal Reducer Factory Provider"),EC=new g("@ngrx/store Initial Reducers"),dv=new g("@ngrx/store Internal Initial Reducers"),lC=new g("@ngrx/store Store Features"),dC=new g("@ngrx/store Internal Store Reducers"),uv=new g("@ngrx/store Internal Feature Reducers"),uC=new g("@ngrx/store Internal Feature Configs"),IC=new g("@ngrx/store Internal Store Features"),hC=new g("@ngrx/store Internal Feature Reducers Token"),SC=new g("@ngrx/store Feature Reducers"),fC=new g("@ngrx/store User Provided Meta Reducers"),Fu=new g("@ngrx/store Meta Reducers"),pC=new g("@ngrx/store Internal Resolved Meta Reducers"),mC=new g("@ngrx/store User Runtime Checks Config"),gC=new g("@ngrx/store Internal User Runtime Checks Config"),ec=new g("@ngrx/store Internal Runtime Checks"),bv=new g("@ngrx/store Check if Action types are unique"),SL=new g("@ngrx/store Root Store Provider"),ML=new g("@ngrx/store Feature State Provider");function _v(t,e={}){let r=Object.keys(t),i={};for(let o=0;or!==e).reduce((r,i)=>Object.assign(r,{[i]:t[i]}),{})}function MC(...t){return function(e){if(t.length===0)return e;let r=t[t.length-1];return t.slice(0,-1).reduceRight((n,o)=>o(n),r(e))}}function kC(t,e){return Array.isArray(e)&&e.length>0&&(t=MC.apply(null,[...e,t])),(r,i)=>{let n=t(r);return(o,s)=>(o=o===void 0?i:o,n(o,s))}}function TL(t){let e=Array.isArray(t)&&t.length>0?MC(...t):r=>r;return(r,i)=>(r=e(r),(n,o)=>(n=n===void 0?i:n,r(n,o)))}var tc=class extends oe{},Pu=class extends Es{},RL="@ngrx/store/update-reducers",Lu=(()=>{let e=class e extends Pe{get currentReducers(){return this.reducers}constructor(i,n,o,s){super(s(o,n)),this.dispatcher=i,this.initialState=n,this.reducers=o,this.reducerFactory=s}addFeature(i){this.addFeatures([i])}addFeatures(i){let n=i.reduce((o,{reducers:s,reducerFactory:a,metaReducers:c,initialState:l,key:d})=>{let u=typeof s=="function"?TL(c)(s,l):kC(a,c)(s,l);return o[d]=u,o},{});this.addReducers(n)}removeFeature(i){this.removeFeatures([i])}removeFeatures(i){this.removeReducers(i.map(n=>n.key))}addReducer(i,n){this.addReducers({[i]:n})}addReducers(i){this.reducers=w(w({},this.reducers),i),this.updateReducers(Object.keys(i))}removeReducer(i){this.removeReducers([i])}removeReducers(i){i.forEach(n=>{this.reducers=kL(this.reducers,n)}),this.updateReducers(i)}updateReducers(i){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:RL,features:i})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(n){return new(n||e)(m(Pu),m(vv),m(EC),m(CC))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),AL=[Lu,{provide:tc,useExisting:Lu},{provide:Pu,useExisting:Es}],ic=(()=>{let e=class e extends C{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),OL=[ic],ju=class extends oe{},vC=(()=>{let e=class e extends Pe{constructor(i,n,o,s){super(s);let c=i.pipe(Yr(Qf)).pipe(_a(n)),l={state:s},d=c.pipe(va(NL,l));this.stateSubscription=d.subscribe(({state:u,action:f})=>{this.next(u),o.next(f)}),this.state=cv(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=xC,e.\u0275fac=function(n){return new(n||e)(m(Es),m(tc),m(ic),m(vv))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function NL(t={state:void 0},[e,r]){let{state:i}=t;return{state:r(i,e),action:e}}var FL=[vC,{provide:ju,useExisting:vC}],ii=(()=>{let e=class e extends oe{constructor(i,n,o){super(),this.actionsObserver=n,this.reducerManager=o,this.source=i,this.state=i.state}select(i,...n){return LL.call(null,i,...n)(this)}selectSignal(i,n){return Mn(()=>i(this.state()),n)}lift(i){let n=new e(this,this.actionsObserver,this.reducerManager);return n.operator=i,n}dispatch(i){this.actionsObserver.next(i)}next(i){this.actionsObserver.next(i)}error(i){this.actionsObserver.error(i)}complete(){this.actionsObserver.complete()}addReducer(i,n){this.reducerManager.addReducer(i,n)}removeReducer(i){this.reducerManager.removeReducer(i)}};e.\u0275fac=function(n){return new(n||e)(m(ju),m(Es),m(Lu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),PL=[ii];function LL(t,e,...r){return function(n){let o;if(typeof t=="string"){let s=[e,...r].filter(Boolean);o=n.pipe(rp(t,...s))}else if(typeof t=="function")o=n.pipe(P(s=>t(s,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return o.pipe(Yi())}}var yv="https://ngrx.io/guide/store/configuration/runtime-checks";function bC(t){return t===void 0}function _C(t){return t===null}function TC(t){return Array.isArray(t)}function jL(t){return typeof t=="string"}function VL(t){return typeof t=="boolean"}function BL(t){return typeof t=="number"}function RC(t){return typeof t=="object"&&t!==null}function zL(t){return RC(t)&&!TC(t)}function UL(t){if(!zL(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function fv(t){return typeof t=="function"}function HL(t){return fv(t)&&t.hasOwnProperty("\u0275cmp")}function $L(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var GL=!1;function WL(){return GL}function yC(t,e){return t===e}function qL(t,e,r){for(let i=0;is(t));return i.memoized.apply(null,o)}let n=e.map(o=>o(t,r));return i.memoized.apply(null,[...n,r])}function ZL(t,e={stateFn:YL}){return function(...r){let i=r;if(Array.isArray(i[0])){let[d,...u]=i;i=[...d,...u]}else i.length===1&&QL(i[0])&&(i=KL(i[0]));let n=i.slice(0,i.length-1),o=i[i.length-1],s=n.filter(d=>d.release&&typeof d.release=="function"),a=t(function(...d){return o.apply(null,d)}),c=AC(function(d,u){return e.stateFn.apply(null,[d,n,u,a])});function l(){c.reset(),a.reset(),s.forEach(d=>d.release())}return Object.assign(c.memoized,{release:l,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function OC(t){return Rn(e=>{let r=e[t];return!WL()&&Tg()&&!(t in e)&&console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),r},e=>e)}function QL(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function KL(t){let e=Object.values(t),r=Object.keys(t),i=(...n)=>r.reduce((o,s,a)=>Q(w({},o),{[s]:n[a]}),{});return[...e,i]}function XL(t){return t instanceof g?b(t):t}function JL(t,e){return e.map((r,i)=>{if(t[i]instanceof g){let n=b(t[i]);return{key:r.key,reducerFactory:n.reducerFactory?n.reducerFactory:_v,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}}return r})}function ej(t){return t.map(e=>e instanceof g?b(e):e)}function NC(t){return typeof t=="function"?t():t}function tj(t,e){return t.concat(e)}function ij(){if(b(ii,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function nj(t,e){return function(r,i){let n=e.action(i)?pv(i):i,o=t(r,n);return e.state()?pv(o):o}}function pv(t){Object.freeze(t);let e=fv(t);return Object.getOwnPropertyNames(t).forEach(r=>{if(!r.startsWith("\u0275")&&$L(t,r)&&(!e||r!=="caller"&&r!=="callee"&&r!=="arguments")){let i=t[r];(RC(i)||fv(i))&&!Object.isFrozen(i)&&pv(i)}}),t}function rj(t,e){return function(r,i){if(e.action(i)){let o=mv(i);wC(o,"action")}let n=t(r,i);if(e.state()){let o=mv(n);wC(o,"state")}return n}}function mv(t,e=[]){return(bC(t)||_C(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((i,n)=>{if(i)return i;let o=t[n];return HL(o)?i:bC(o)||_C(o)||BL(o)||VL(o)||jL(o)||TC(o)?!1:UL(o)?mv(o,[...e,n]):{path:[...e,n],value:o}},!1)}function wC(t,e){if(t===!1)return;let r=t.path.join("."),i=new Error(`Detected unserializable ${e} at "${r}". ${yv}#strict${e}serializability`);throw i.value=t.value,i.unserializablePath=r,i}function oj(t,e){return function(r,i){if(e.action(i)&&!F.isInAngularZone())throw new Error(`Action '${i.type}' running outside NgZone. ${yv}#strictactionwithinngzone`);return t(r,i)}}function sj(t){return Tg()?w({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function aj({strictActionSerializability:t,strictStateSerializability:e}){return r=>t||e?rj(r,{action:i=>t&&!wv(i),state:()=>e}):r}function cj({strictActionImmutability:t,strictStateImmutability:e}){return r=>t||e?nj(r,{action:i=>t&&!wv(i),state:()=>e}):r}function wv(t){return t.type.startsWith("@ngrx")}function lj({strictActionWithinNgZone:t}){return e=>t?oj(e,{action:r=>t&&!wv(r)}):e}function dj(t){return[{provide:gC,useValue:t},{provide:mC,useFactory:uj,deps:[gC]},{provide:ec,deps:[mC],useFactory:sj},{provide:Fu,multi:!0,deps:[ec],useFactory:cj},{provide:Fu,multi:!0,deps:[ec],useFactory:aj},{provide:Fu,multi:!0,deps:[ec],useFactory:lj}]}function FC(){return[{provide:bv,multi:!0,deps:[ec],useFactory:hj}]}function uj(t){return t}function hj(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(hv).filter(([,r])=>r>1).map(([r])=>r);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(r=>`"${r}"`).join(", ")}. ${yv}#strictactiontypeuniqueness`)}function fj(t={},e={}){return[{provide:DC,useFactory:ij},{provide:aC,useValue:e.initialState},{provide:vv,useFactory:NC,deps:[aC]},{provide:dv,useValue:t},{provide:dC,useExisting:t instanceof g?t:dv},{provide:EC,deps:[dv,[new jm(dC)]],useFactory:XL},{provide:fC,useValue:e.metaReducers?e.metaReducers:[]},{provide:pC,deps:[Fu,fC],useFactory:tj},{provide:cC,useValue:e.reducerFactory?e.reducerFactory:_v},{provide:CC,deps:[cC,pC],useFactory:kC},IL,AL,OL,FL,PL,dj(e.runtimeChecks),FC()]}function pj(t,e,r={}){return[{provide:uC,multi:!0,useValue:t instanceof Object?{}:r},{provide:lC,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(r instanceof g)&&r.reducerFactory?r.reducerFactory:_v,metaReducers:!(r instanceof g)&&r.metaReducers?r.metaReducers:[],initialState:!(r instanceof g)&&r.initialState?r.initialState:void 0}},{provide:IC,deps:[uC,lC],useFactory:JL},{provide:uv,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:hC,multi:!0,useExisting:e instanceof g?e:uv},{provide:SC,multi:!0,deps:[uv,[new jm(hC)]],useFactory:ej},FC()]}var nc=(()=>{let e=class e{constructor(i,n,o,s,a,c){}};e.\u0275fac=function(n){return new(n||e)(m(Es),m(tc),m(ic),m(ii),m(DC,8),m(bv,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Vu=(()=>{let e=class e{constructor(i,n,o,s,a){this.features=i,this.featureReducers=n,this.reducerManager=o;let c=i.map((l,d)=>{let f=n.shift()[d];return Q(w({},l),{reducers:f,initialState:NC(l.initialState)})});o.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(n){return new(n||e)(m(IC),m(SC),m(Lu),m(nc),m(bv,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),eQ=(()=>{let e=class e{static forRoot(i,n){return{ngModule:nc,providers:[...fj(i,n)]}}static forFeature(i,n,o={}){return{ngModule:Vu,providers:[...pj(i,n,o)]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function Wt(...t){let e=t.pop(),r=t.map(i=>i.type);return{reducer:e,types:r}}function Bu(t,...e){let r=new Map;for(let i of e)for(let n of i.types){let o=r.get(n);if(o){let s=(a,c)=>i.reducer(o(a,c),c);r.set(n,s)}else r.set(n,i.reducer)}return function(i=t,n){let o=r.get(n.type);return o?o(i,n):i}}var mj={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Uu="__@ngrx/effects_create__";function An(t,e={}){let r=e.functional?t:t(),i=w(w({},mj),e);return Object.defineProperty(r,Uu,{value:i}),r}function gj(t){return Object.getOwnPropertyNames(t).filter(i=>t[i]&&t[i].hasOwnProperty(Uu)?t[i][Uu].hasOwnProperty("dispatch"):!1).map(i=>{let n=t[i][Uu];return w({propertyName:i},n)})}function vj(t){return gj(t)}function VC(t){return Object.getPrototypeOf(t)}function bj(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function BC(t){return typeof t=="function"}function PC(t){return t.filter(BC)}function _j(t){return t instanceof g||BC(t)}function yj(t,e,r){let i=VC(t),o=!!i&&i.constructor.name!=="Object"?i.constructor.name:null,s=vj(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:l})=>{let d=typeof t[a]=="function"?t[a]():t[a],u=l?r(d,e):d;return c===!1?u.pipe(pa()):u.pipe(np()).pipe(P(p=>({effect:t[a],notification:p,propertyName:a,sourceName:o,sourceInstance:t})))});return Ze(...s)}var wj=10;function zC(t,e,r=wj){return t.pipe(ut(i=>(e&&e.handleError(i),r<=1?t:zC(t,e,r-1))))}var Hu=(()=>{let e=class e extends oe{constructor(i){super(),i&&(this.source=i)}lift(i){let n=new e;return n.source=this,n.operator=i,n}};e.\u0275fac=function(n){return new(n||e)(m(ic))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function On(...t){return ge(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var UC=new g("@ngrx/effects Internal Root Guard"),zu=new g("@ngrx/effects User Provided Effects"),xv=new g("@ngrx/effects Internal Root Effects"),HC=new g("@ngrx/effects Internal Root Effects Instances"),LC=new g("@ngrx/effects Internal Feature Effects"),$C=new g("@ngrx/effects Internal Feature Effects Instance Groups"),xj=new g("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>zC}),GC="@ngrx/effects/init",dQ=gv(GC);function Dj(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!Cj(r)&&e.handleError(new Error(`Effect ${Ej(t)} dispatched an invalid action: ${Ij(r)}`))}}function Cj(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function Ej({propertyName:t,sourceInstance:e,sourceName:r}){let i=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${i?"()":""}"`:`"${String(t)}()"`}function Ij(t){try{return JSON.stringify(t)}catch{return t}}var Sj="ngrxOnIdentifyEffects";function Mj(t){return Dv(t,Sj)}var kj="ngrxOnRunEffects";function Tj(t){return Dv(t,kj)}var Rj="ngrxOnInitEffects";function Aj(t){return Dv(t,Rj)}function Dv(t,e){return t&&e in t&&typeof t[e]=="function"}var WC=(()=>{let e=class e extends C{constructor(i,n){super(),this.errorHandler=i,this.effectsErrorHandler=n}addEffects(i){this.next(i)}toActions(){return this.pipe(Vl(i=>bj(i)?VC(i):i),Fe(i=>i.pipe(Vl(Oj))),Fe(i=>{let n=i.pipe(jl(s=>Nj(this.errorHandler,this.effectsErrorHandler)(s)),P(s=>(Dj(s,this.errorHandler),s.notification)),ge(s=>s.kind==="N"&&s.value!=null),tp()),o=i.pipe(We(1),ge(Aj),P(s=>s.ngrxOnInitEffects()));return Ze(n,o)}))}};e.\u0275fac=function(n){return new(n||e)(m(Ft),m(xj))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Oj(t){return Mj(t)?t.ngrxOnIdentifyEffects():""}function Nj(t,e){return r=>{let i=yj(r,t,e);return Tj(r)?r.ngrxOnRunEffects(i):i}}var qC=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(i,n){this.effectSources=i,this.store=n,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(m(WC),m(ii))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),YC=(()=>{let e=class e{constructor(i,n,o,s,a,c,l){this.sources=i,n.start();for(let d of s)i.addEffects(d);o.dispatch({type:GC})}addEffects(i){this.sources.addEffects(i)}};e.\u0275fac=function(n){return new(n||e)(m(WC),m(qC),m(ii),m(HC),m(nc,8),m(Vu,8),m(UC,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Fj=(()=>{let e=class e{constructor(i,n,o,s){let a=n.flat();for(let c of a)i.addEffects(c)}};e.\u0275fac=function(n){return new(n||e)(m(YC),m($C),m(nc,8),m(Vu,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),uQ=(()=>{let e=class e{static forFeature(...i){let n=i.flat(),o=PC(n);return{ngModule:Fj,providers:[o,{provide:LC,multi:!0,useValue:n},{provide:zu,multi:!0,useValue:[]},{provide:$C,multi:!0,useFactory:jC,deps:[LC,zu]}]}}static forRoot(...i){let n=i.flat(),o=PC(n);return{ngModule:YC,providers:[o,{provide:xv,useValue:[n]},{provide:UC,useFactory:Pj},{provide:zu,multi:!0,useValue:[]},{provide:HC,useFactory:jC,deps:[xv,zu]}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function jC(t,e){let r=[];for(let i of t)r.push(...i);for(let i of e)r.push(...i);return r.map(i=>_j(i)?b(i):i)}function Pj(){let t=b(qC,{optional:!0,skipSelf:!0}),e=b(xv,{self:!0});if(!(e.length===1&&e[0].length===0)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var Ce="primary",bc=Symbol("RouteTitle"),Mv=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Rs(t){return new Mv(t)}function Lj(t,e,r){let i=r.path.split("/");if(i.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||i.lengthi[o]===n)}else return t===e}function aE(t){return t.length>0?t[t.length-1]:null}function Nr(t){return Zr(t)?t:Ir(t)?He(Promise.resolve(t)):V(t)}var Vj={exact:lE,subset:dE},cE={exact:Bj,subset:zj,ignored:()=>!0};function QC(t,e,r){return Vj[r.paths](t.root,e.root,r.matrixParams)&&cE[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Bj(t,e){return Nn(t,e)}function lE(t,e,r){if(!go(t.segments,e.segments)||!Wu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!lE(t.children[i],e.children[i],r))return!1;return!0}function zj(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>sE(t[r],e[r]))}function dE(t,e,r){return uE(t,e,e.segments,r)}function uE(t,e,r,i){if(t.segments.length>r.length){let n=t.segments.slice(0,r.length);return!(!go(n,r)||e.hasChildren()||!Wu(n,r,i))}else if(t.segments.length===r.length){if(!go(t.segments,r)||!Wu(t.segments,r,i))return!1;for(let n in e.children)if(!t.children[n]||!dE(t.children[n],e.children[n],i))return!1;return!0}else{let n=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!go(t.segments,n)||!Wu(t.segments,n,i)||!t.children[Ce]?!1:uE(t.children[Ce],e,o,i)}}function Wu(t,e,r){return e.every((i,n)=>cE[r](t[n].parameters,i.parameters))}var rr=class{constructor(e=new $e([],{}),r={},i=null){this.root=e,this.queryParams=r,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Rs(this.queryParams),this._queryParamMap}toString(){return $j.serialize(this)}},$e=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qu(this)}},mo=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Rs(this.parameters),this._parameterMap}toString(){return fE(this)}};function Uj(t,e){return go(t,e)&&t.every((r,i)=>Nn(r.parameters,e[i].parameters))}function go(t,e){return t.length!==e.length?!1:t.every((r,i)=>r.path===e[i].path)}function Hj(t,e){let r=[];return Object.entries(t.children).forEach(([i,n])=>{i===Ce&&(r=r.concat(e(n,i)))}),Object.entries(t.children).forEach(([i,n])=>{i!==Ce&&(r=r.concat(e(n,i)))}),r}var _c=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>new As,providedIn:"root"});let t=e;return t})(),As=class{parse(e){let r=new Rv(e);return new rr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${oc(e.root,!0)}`,i=qj(e.queryParams),n=typeof e.fragment=="string"?`#${Gj(e.fragment)}`:"";return`${r}${i}${n}`}},$j=new As;function qu(t){return t.segments.map(e=>fE(e)).join("/")}function oc(t,e){if(!t.hasChildren())return qu(t);if(e){let r=t.children[Ce]?oc(t.children[Ce],!1):"",i=[];return Object.entries(t.children).forEach(([n,o])=>{n!==Ce&&i.push(`${n}:${oc(o,!1)}`)}),i.length>0?`${r}(${i.join("//")})`:r}else{let r=Hj(t,(i,n)=>n===Ce?[oc(t.children[Ce],!1)]:[`${n}:${oc(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[Ce]!=null?`${qu(t)}/${r[0]}`:`${qu(t)}/(${r.join("//")})`}}function hE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $u(t){return hE(t).replace(/%3B/gi,";")}function Gj(t){return encodeURI(t)}function Tv(t){return hE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yu(t){return decodeURIComponent(t)}function KC(t){return Yu(t.replace(/\+/g,"%20"))}function fE(t){return`${Tv(t.path)}${Wj(t.parameters)}`}function Wj(t){return Object.entries(t).map(([e,r])=>`;${Tv(e)}=${Tv(r)}`).join("")}function qj(t){let e=Object.entries(t).map(([r,i])=>Array.isArray(i)?i.map(n=>`${$u(r)}=${$u(n)}`).join("&"):`${$u(r)}=${$u(i)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Yj=/^[^\/()?;#]+/;function Cv(t){let e=t.match(Yj);return e?e[0]:""}var Zj=/^[^\/()?;=#]+/;function Qj(t){let e=t.match(Zj);return e?e[0]:""}var Kj=/^[^=?&#]+/;function Xj(t){let e=t.match(Kj);return e?e[0]:""}var Jj=/^[^&#]+/;function e2(t){let e=t.match(Jj);return e?e[0]:""}var Rv=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(i[Ce]=new $e(e,r)),i}parseSegment(){let e=Cv(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new G(4009,!1);return this.capture(e),new mo(Yu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Qj(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let n=Cv(this.remaining);n&&(i=n,this.capture(i))}e[Yu(r)]=Yu(i)}parseQueryParam(e){let r=Xj(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let s=e2(this.remaining);s&&(i=s,this.capture(i))}let n=KC(r),o=KC(i);if(e.hasOwnProperty(n)){let s=e[n];Array.isArray(s)||(s=[s],e[n]=s),s.push(o)}else e[n]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Cv(this.remaining),n=this.remaining[i.length];if(n!=="/"&&n!==")"&&n!==";")throw new G(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Ce);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[Ce]:new $e([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new G(4011,!1)}};function pE(t){return t.segments.length>0?new $e([],{[Ce]:t}):t}function mE(t){let e={};for(let[i,n]of Object.entries(t.children)){let o=mE(n);if(i===Ce&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[i]=o)}let r=new $e(t.segments,e);return t2(r)}function t2(t){if(t.numberOfChildren===1&&t.children[Ce]){let e=t.children[Ce];return new $e(t.segments.concat(e.segments),e.children)}return t}function vo(t){return t instanceof rr}function i2(t,e,r=null,i=null){let n=gE(t);return vE(n,e,r,i)}function gE(t){let e;function r(o){let s={};for(let c of o.children){let l=r(c);s[c.outlet]=l}let a=new $e(o.url,s);return o===t&&(e=a),a}let i=r(t.root),n=pE(i);return e??n}function vE(t,e,r,i){let n=t;for(;n.parent;)n=n.parent;if(e.length===0)return Ev(n,n,n,r,i);let o=n2(e);if(o.toRoot())return Ev(n,n,new $e([],{}),r,i);let s=r2(o,n,t),a=s.processChildren?cc(s.segmentGroup,s.index,o.commands):_E(s.segmentGroup,s.index,o.commands);return Ev(n,s.segmentGroup,a,r,i)}function Zu(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function uc(t){return typeof t=="object"&&t!=null&&t.outlets}function Ev(t,e,r,i,n){let o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;t===e?s=r:s=bE(t,e,r);let a=pE(mE(s));return new rr(a,o,n)}function bE(t,e,r){let i={};return Object.entries(t.children).forEach(([n,o])=>{o===e?i[n]=r:i[n]=bE(o,e,r)}),new $e(t.segments,i)}var Qu=class{constructor(e,r,i){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=i,e&&i.length>0&&Zu(i[0]))throw new G(4003,!1);let n=i.find(uc);if(n&&n!==aE(i))throw new G(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function n2(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Qu(!0,0,t);let e=0,r=!1,i=t.reduce((n,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...n,{outlets:a}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&n.push(a))}),n):[...n,o]},[]);return new Qu(r,e,i)}var Ms=class{constructor(e,r,i){this.segmentGroup=e,this.processChildren=r,this.index=i}};function r2(t,e,r){if(t.isAbsolute)return new Ms(e,!0,0);if(!r)return new Ms(e,!1,NaN);if(r.parent===null)return new Ms(r,!0,0);let i=Zu(t.commands[0])?0:1,n=r.segments.length-1+i;return o2(r,n,t.numberOfDoubleDots)}function o2(t,e,r){let i=t,n=e,o=r;for(;o>n;){if(o-=n,i=i.parent,!i)throw new G(4005,!1);n=i.segments.length}return new Ms(i,!1,n-o)}function s2(t){return uc(t[0])?t[0].outlets:{[Ce]:t}}function _E(t,e,r){if(t??=new $e([],{}),t.segments.length===0&&t.hasChildren())return cc(t,e,r);let i=a2(t,e,r),n=r.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Ce)&&t.children[Ce]&&t.numberOfChildren===1&&t.children[Ce].segments.length===0){let o=cc(t.children[Ce],e,r);return new $e(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(n[o]=_E(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(n[o]=s)}),new $e(t.segments,n)}}function a2(t,e,r){let i=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let s=t.segments[n],a=r[i];if(uc(a))break;let c=`${a}`,l=i0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!JC(c,l,s))return o;i+=2}else{if(!JC(c,{},s))return o;i++}n++}return{match:!0,pathIndex:n,commandIndex:i}}function Av(t,e,r){let i=t.segments.slice(0,e),n=0;for(;n{typeof i=="string"&&(i=[i]),i!==null&&(e[r]=Av(new $e([],{}),0,i))}),e}function XC(t){let e={};return Object.entries(t).forEach(([r,i])=>e[r]=`${i}`),e}function JC(t,e,r){return t==r.path&&Nn(e,r.parameters)}var lc="imperative",Rt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Rt||{}),Li=class{constructor(e,r){this.id=e,this.url=r}},Os=class extends Li{constructor(e,r,i="imperative",n=null){super(e,r),this.type=Rt.NavigationStart,this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},en=class extends Li{constructor(e,r,i){super(e,r),this.urlAfterRedirects=i,this.type=Rt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},bi=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(bi||{}),Ku=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ku||{}),nr=class extends Li{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Rt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Or=class extends Li{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Rt.NavigationSkipped}},hc=class extends Li{constructor(e,r,i,n){super(e,r),this.error=i,this.target=n,this.type=Rt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xu=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ov=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nv=class extends Li{constructor(e,r,i,n,o){super(e,r),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=o,this.type=Rt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Fv=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pv=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lv=class{constructor(e){this.route=e,this.type=Rt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},jv=class{constructor(e){this.route=e,this.type=Rt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vv=class{constructor(e){this.snapshot=e,this.type=Rt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bv=class{constructor(e){this.snapshot=e,this.type=Rt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zv=class{constructor(e){this.snapshot=e,this.type=Rt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uv=class{constructor(e){this.snapshot=e,this.type=Rt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ju=class{constructor(e,r,i){this.routerEvent=e,this.position=r,this.anchor=i,this.type=Rt.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},fc=class{},Ns=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function l2(t,e){return t.providers&&!t._injector&&(t._injector=Kd(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Ji(t){return t.outlet||Ce}function d2(t,e){let r=t.filter(i=>Ji(i)===e);return r.push(...t.filter(i=>Ji(i)!==e)),r}function yc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Hv=class{get injector(){return yc(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new wc(this.rootInjector),this.attachRef=null}},wc=(()=>{let e=class e{constructor(i){this.rootInjector=i,this.contexts=new Map}onChildOutletCreated(i,n){let o=this.getOrCreateContext(i);o.outlet=n,this.contexts.set(i,o)}onChildOutletDestroyed(i){let n=this.getContext(i);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let n=this.getContext(i);return n||(n=new Hv(this.rootInjector),this.contexts.set(i,n)),n}getContext(i){return this.contexts.get(i)||null}};e.\u0275fac=function(n){return new(n||e)(m(_t))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eh=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=$v(e,this._root);return r?r.children.map(i=>i.value):[]}firstChild(e){let r=$v(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Gv(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return Gv(e,this._root).map(r=>r.value)}};function $v(t,e){if(t===e.value)return e;for(let r of e.children){let i=$v(t,r);if(i)return i}return null}function Gv(t,e){if(t===e.value)return[e];for(let r of e.children){let i=Gv(t,r);if(i.length)return i.unshift(e),i}return[]}var vi=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Ss(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var th=class extends eh{constructor(e,r){super(e),this.snapshot=r,eb(this,e)}toString(){return this.snapshot.toString()}};function yE(t){let e=u2(t),r=new Pe([new mo("",{})]),i=new Pe({}),n=new Pe({}),o=new Pe({}),s=new Pe(""),a=new bo(r,i,o,s,n,Ce,t,e.root);return a.snapshot=e.root,new th(new vi(a,[]),e)}function u2(t){let e={},r={},i={},n="",o=new ks([],e,i,n,r,Ce,t,null,{});return new nh("",new vi(o,[]))}var bo=class{constructor(e,r,i,n,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=i,this.fragmentSubject=n,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(P(l=>l[bc]))??V(void 0),this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(P(e=>Rs(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(e=>Rs(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ih(t,e,r="emptyOnly"){let i,{routeConfig:n}=t;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:w(w({},e.params),t.params),data:w(w({},e.data),t.data),resolve:w(w(w(w({},t.data),e.data),n?.data),t._resolvedData)}:i={params:w({},t.params),data:w({},t.data),resolve:w(w({},t.data),t._resolvedData??{})},n&&xE(n)&&(i.resolve[bc]=n.title),i}var ks=class{get title(){return this.data?.[bc]}constructor(e,r,i,n,o,s,a,c,l){this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Rs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Rs(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},nh=class extends eh{constructor(e,r){super(r),this.url=e,eb(this,r)}toString(){return wE(this._root)}};function eb(t,e){e.value._routerState=t,e.children.forEach(r=>eb(t,r))}function wE(t){let e=t.children.length>0?` { ${t.children.map(wE).join(", ")} } `:"";return`${t.value}${e}`}function Iv(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Nn(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Nn(e.params,r.params)||t.paramsSubject.next(r.params),jj(e.url,r.url)||t.urlSubject.next(r.url),Nn(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Wv(t,e){let r=Nn(t.params,e.params)&&Uj(t.url,e.url),i=!t.parent!=!e.parent;return r&&!i&&(!t.parent||Wv(t.parent,e.parent))}function xE(t){return typeof t.title=="string"||t.title===null}var tb=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new B,this.deactivateEvents=new B,this.attachEvents=new B,this.detachEvents=new B,this.parentContexts=b(wc),this.location=b(Ve),this.changeDetector=b(ue),this.inputBinder=b(lh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:n,previousValue:o}=i.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new G(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new G(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new G(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,n){this.activated=i,this._activatedRoute=n,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,n){if(this.isActivated)throw new G(4013,!1);this._activatedRoute=i;let o=this.location,a=i.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new qv(i,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Me]});let t=e;return t})(),qv=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,i){this.route=e,this.childContexts=r,this.parent=i}get(e,r){return e===bo?this.route:e===wc?this.childContexts:this.parent.get(e,r)}},lh=new g(""),eE=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:n}=i,o=qi([n.queryParams,n.params,n.data]).pipe(Oe(([s,a,c],l)=>(c=w(w(w({},s),a),c),l===0?V(c):Promise.resolve(c)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(i);return}let a=_D(n.component);if(!a){this.unsubscribeFromRouteData(i);return}for(let{templateName:c}of a.inputs)i.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(i,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function h2(t,e,r){let i=pc(t,e._root,r?r._root:void 0);return new th(i,e)}function pc(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let i=r.value;i._futureSnapshot=e.value;let n=f2(t,e,r);return new vi(i,n)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>pc(t,a)),s}}let i=p2(e.value),n=e.children.map(o=>pc(t,o));return new vi(i,n)}}function f2(t,e,r){return e.children.map(i=>{for(let n of r.children)if(t.shouldReuseRoute(i.value,n.value.snapshot))return pc(t,i,n);return pc(t,i)})}function p2(t){return new bo(new Pe(t.url),new Pe(t.params),new Pe(t.queryParams),new Pe(t.fragment),new Pe(t.data),t.outlet,t.component,t)}var mc=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},DE="ngNavigationCancelingError";function rh(t,e){let{redirectTo:r,navigationBehaviorOptions:i}=vo(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=CE(!1,bi.Redirect);return n.url=r,n.navigationBehaviorOptions=i,n}function CE(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[DE]=!0,r.cancellationCode=e,r}function m2(t){return EE(t)&&vo(t.url)}function EE(t){return!!t&&t[DE]}var g2=(t,e,r,i)=>P(n=>(new Yv(e,n.targetRouterState,n.currentRouterState,r,i).activate(t),n)),Yv=class{constructor(e,r,i,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=i,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,i,e),Iv(this.futureState.root),this.activateChildRoutes(r,i,e)}deactivateChildRoutes(e,r,i){let n=Ss(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,n[s],i),delete n[s]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,i);else o&&this.deactivateRouteAndItsChildren(r,i)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=Ss(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=Ss(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,r,i){let n=Ss(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],i),this.forwardEvent(new Uv(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Bv(e.value.snapshot))}activateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(Iv(n),n===o)if(n.component){let s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,i);else if(n.component){let s=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Iv(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=n,s.outlet&&s.outlet.activateWith(n,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,i)}},oh=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ts=class{constructor(e,r){this.component=e,this.route=r}};function v2(t,e,r){let i=t._root,n=e?e._root:null;return sc(i,n,r,[i.value])}function b2(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Ps(t,e){let r=Symbol(),i=e.get(t,r);return i===r?typeof t=="function"&&!I0(t)?t:e.get(t):i}function sc(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ss(e);return t.children.forEach(s=>{_2(s,o[s.value.outlet],r,i.concat([s.value]),n),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>dc(a,r.getContext(s),n)),n}function _2(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=y2(s,o,o.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new oh(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?sc(t,e,a?a.children:null,i,n):sc(t,e,r,i,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new Ts(a.outlet.component,s))}else s&&dc(e,a,n),n.canActivateChecks.push(new oh(i)),o.component?sc(t,null,a?a.children:null,i,n):sc(t,null,r,i,n);return n}function y2(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!go(t.url,e.url);case"pathParamsOrQueryParamsChange":return!go(t.url,e.url)||!Nn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wv(t,e)||!Nn(t.queryParams,e.queryParams);case"paramsChange":default:return!Wv(t,e)}}function dc(t,e,r){let i=Ss(t),n=t.value;Object.entries(i).forEach(([o,s])=>{n.component?e?dc(s,e.children.getContext(o),r):dc(s,null,r):dc(s,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Ts(e.outlet.component,n)):r.canDeactivateChecks.push(new Ts(null,n)):r.canDeactivateChecks.push(new Ts(null,n))}function xc(t){return typeof t=="function"}function w2(t){return typeof t=="boolean"}function x2(t){return t&&xc(t.canLoad)}function D2(t){return t&&xc(t.canActivate)}function C2(t){return t&&xc(t.canActivateChild)}function E2(t){return t&&xc(t.canDeactivate)}function I2(t){return t&&xc(t.canMatch)}function IE(t){return t instanceof Wi||t?.name==="EmptyError"}var Gu=Symbol("INITIAL_VALUE");function Fs(){return Oe(t=>qi(t.map(e=>e.pipe(We(1),Qe(Gu)))).pipe(P(e=>{for(let r of e)if(r!==!0){if(r===Gu)return Gu;if(r===!1||S2(r))return r}return!0}),ge(e=>e!==Gu),We(1)))}function S2(t){return vo(t)||t instanceof mc}function M2(t,e){return Fe(r=>{let{targetSnapshot:i,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?V(Q(w({},r),{guardsResult:!0})):k2(s,i,n,t).pipe(Fe(a=>a&&w2(a)?T2(i,o,t,e):V(a)),P(a=>Q(w({},r),{guardsResult:a})))})}function k2(t,e,r,i){return He(t).pipe(Fe(n=>F2(n.component,n.route,r,e,i)),mn(n=>n!==!0,!0))}function T2(t,e,r,i){return He(e).pipe(pn(n=>fn(A2(n.route.parent,i),R2(n.route,i),N2(t,n.path,r),O2(t,n.route,r))),mn(n=>n!==!0,!0))}function R2(t,e){return t!==null&&e&&e(new zv(t)),V(!0)}function A2(t,e){return t!==null&&e&&e(new Vv(t)),V(!0)}function O2(t,e,r){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return V(!0);let n=i.map(o=>Qr(()=>{let s=yc(e)??r,a=Ps(o,s),c=D2(a)?a.canActivate(e,t):pi(s,()=>a(e,t));return Nr(c).pipe(mn())}));return V(n).pipe(Fs())}function N2(t,e,r){let i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>b2(s)).filter(s=>s!==null).map(s=>Qr(()=>{let a=s.guards.map(c=>{let l=yc(s.node)??r,d=Ps(c,l),u=C2(d)?d.canActivateChild(i,t):pi(l,()=>d(i,t));return Nr(u).pipe(mn())});return V(a).pipe(Fs())}));return V(o).pipe(Fs())}function F2(t,e,r,i,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return V(!0);let s=o.map(a=>{let c=yc(e)??n,l=Ps(a,c),d=E2(l)?l.canDeactivate(t,e,r,i):pi(c,()=>l(t,e,r,i));return Nr(d).pipe(mn())});return V(s).pipe(Fs())}function P2(t,e,r,i){let n=e.canLoad;if(n===void 0||n.length===0)return V(!0);let o=n.map(s=>{let a=Ps(s,t),c=x2(a)?a.canLoad(e,r):pi(t,()=>a(e,r));return Nr(c)});return V(o).pipe(Fs(),SE(i))}function SE(t){return Gf(je(e=>{if(typeof e!="boolean")throw rh(t,e)}),P(e=>e===!0))}function L2(t,e,r,i){let n=e.canMatch;if(!n||n.length===0)return V(!0);let o=n.map(s=>{let a=Ps(s,t),c=I2(a)?a.canMatch(e,r):pi(t,()=>a(e,r));return Nr(c)});return V(o).pipe(Fs(),SE(i))}var gc=class{constructor(e){this.segmentGroup=e||null}},vc=class extends Error{constructor(e){super(),this.urlTree=e}};function Is(t){return un(new gc(t))}function j2(t){return un(new G(4e3,!1))}function V2(t){return un(CE(!1,bi.GuardRejected))}var Zv=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let i=[],n=r.root;for(;;){if(i=i.concat(n.segments),n.numberOfChildren===0)return V(i);if(n.numberOfChildren>1||!n.children[Ce])return j2(`${e.redirectTo}`);n=n.children[Ce]}}applyRedirectCommands(e,r,i,n,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,params:p,data:v,title:S}=n,E=pi(o,()=>a({params:p,data:v,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,title:S}));if(E instanceof rr)throw new vc(E);r=E}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,i);if(r[0]==="/")throw new vc(s);return s}applyRedirectCreateUrlTree(e,r,i,n){let o=this.createSegmentGroup(e,r.root,i,n);return new rr(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let i={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[n]=r[a]}else i[n]=o}),i}createSegmentGroup(e,r,i,n){let o=this.createSegments(e,r.segments,i,n),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,i,n)}),new $e(o,s)}createSegments(e,r,i,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,i))}findPosParam(e,r,i){let n=i[r.path.substring(1)];if(!n)throw new G(4001,!1);return n}findOrReturn(e,r){let i=0;for(let n of r){if(n.path===e.path)return r.splice(i),n;i++}return e}},Qv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B2(t,e,r,i,n){let o=ib(t,e,r);return o.matched?(i=l2(e,i),L2(i,e,r,n).pipe(P(s=>s===!0?o:w({},Qv)))):V(o)}function ib(t,e,r){if(e.path==="**")return z2(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?w({},Qv):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||Lj)(r,t,e);if(!n)return w({},Qv);let o={};Object.entries(n.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=n.consumed.length>0?w(w({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:s,positionalParamSegments:n.posParams??{}}}function z2(t){return{matched:!0,parameters:t.length>0?aE(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function tE(t,e,r,i){return r.length>0&&$2(t,r,i)?{segmentGroup:new $e(e,H2(i,new $e(r,t.children))),slicedSegments:[]}:r.length===0&&G2(t,r,i)?{segmentGroup:new $e(t.segments,U2(t,r,i,t.children)),slicedSegments:r}:{segmentGroup:new $e(t.segments,t.children),slicedSegments:r}}function U2(t,e,r,i){let n={};for(let o of r)if(dh(t,e,o)&&!i[Ji(o)]){let s=new $e([],{});n[Ji(o)]=s}return w(w({},i),n)}function H2(t,e){let r={};r[Ce]=e;for(let i of t)if(i.path===""&&Ji(i)!==Ce){let n=new $e([],{});r[Ji(i)]=n}return r}function $2(t,e,r){return r.some(i=>dh(t,e,i)&&Ji(i)!==Ce)}function G2(t,e,r){return r.some(i=>dh(t,e,i))}function dh(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function W2(t,e,r,i){return Ji(t)!==i&&(i===Ce||!dh(e,r,t))?!1:ib(e,t,r).matched}function q2(t,e,r){return e.length===0&&!t.children[r]}var Kv=class{};function Y2(t,e,r,i,n,o,s="emptyOnly"){return new Xv(t,e,r,i,n,s,o).recognize()}var Z2=31,Xv=class{constructor(e,r,i,n,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=i,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Zv(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new G(4002,`'${e.segmentGroup}'`)}recognize(){let e=tE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(P(({children:r,rootSnapshot:i})=>{let n=new vi(i,r),o=new nh("",n),s=i2(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new ks([],Object.freeze({}),Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ce,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Ce,r).pipe(P(i=>({children:i,rootSnapshot:r})),ut(i=>{if(i instanceof vc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof gc?this.noMatchError(i):i}))}processSegmentGroup(e,r,i,n,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,r,i,o):this.processSegment(e,r,i,i.segments,n,!0,o).pipe(P(s=>s instanceof vi?[s]:[]))}processChildren(e,r,i,n){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return He(o).pipe(pn(s=>{let a=i.children[s],c=d2(r,s);return this.processSegmentGroup(e,c,a,s,n)}),va((s,a)=>(s.push(...a),s)),hr(null),ip(),Fe(s=>{if(s===null)return Is(i);let a=ME(s);return Q2(a),V(a)}))}processSegment(e,r,i,n,o,s,a){return He(r).pipe(pn(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,i,n,o,s,a).pipe(ut(l=>{if(l instanceof gc)return V(null);throw l}))),mn(c=>!!c),ut(c=>{if(IE(c))return q2(i,n,o)?V(new Kv):Is(i);throw c}))}processSegmentAgainstRoute(e,r,i,n,o,s,a,c){return W2(i,n,o,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,i,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s,c):Is(n):Is(n)}expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=ib(r,n,o);if(!c)return Is(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Z2&&(this.allowRedirects=!1));let p=new ks(o,l,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,iE(n),Ji(n),n.component??n._loadedComponent??null,n,nE(n)),v=ih(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(v.params),p.data=Object.freeze(v.data);let S=this.applyRedirects.applyRedirectCommands(d,n.redirectTo,u,p,e);return this.applyRedirects.lineralizeSegments(n,S).pipe(Fe(E=>this.processSegment(e,i,r,E.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,i,n,o,s){let a=B2(r,i,n,e,this.urlSerializer);return i.path==="**"&&(r.children={}),a.pipe(Oe(c=>c.matched?(e=i._injector??e,this.getChildConfig(e,i,n).pipe(Oe(({routes:l})=>{let d=i._loadedInjector??e,{parameters:u,consumedSegments:f,remainingSegments:p}=c,v=new ks(f,u,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,iE(i),Ji(i),i.component??i._loadedComponent??null,i,nE(i)),S=ih(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(S.params),v.data=Object.freeze(S.data);let{segmentGroup:E,slicedSegments:R}=tE(r,f,p,l);if(R.length===0&&E.hasChildren())return this.processChildren(d,l,E,v).pipe(P(Ne=>new vi(v,Ne)));if(l.length===0&&R.length===0)return V(new vi(v,[]));let he=Ji(i)===o;return this.processSegment(d,l,E,R,he?Ce:o,!0,v).pipe(P(Ne=>new vi(v,Ne instanceof vi?[Ne]:[])))}))):Is(r)))}getChildConfig(e,r,i){return r.children?V({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?V({routes:r._loadedRoutes,injector:r._loadedInjector}):P2(e,r,i,this.urlSerializer).pipe(Fe(n=>n?this.configLoader.loadChildren(e,r).pipe(je(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):V2(r))):V({routes:[],injector:e})}};function Q2(t){t.sort((e,r)=>e.value.outlet===Ce?-1:r.value.outlet===Ce?1:e.value.outlet.localeCompare(r.value.outlet))}function K2(t){let e=t.value.routeConfig;return e&&e.path===""}function ME(t){let e=[],r=new Set;for(let i of t){if(!K2(i)){e.push(i);continue}let n=e.find(o=>i.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...i.children),r.add(n)):e.push(i)}for(let i of r){let n=ME(i.children);e.push(new vi(i.value,n))}return e.filter(i=>!r.has(i))}function iE(t){return t.data||{}}function nE(t){return t.resolve||{}}function X2(t,e,r,i,n,o){return Fe(s=>Y2(t,e,r,i,s.extractedUrl,n,o).pipe(P(({state:a,tree:c})=>Q(w({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function J2(t,e){return Fe(r=>{let{targetSnapshot:i,guards:{canActivateChecks:n}}=r;if(!n.length)return V(r);let o=new Set(n.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of kE(c))s.add(l);let a=0;return He(s).pipe(pn(c=>o.has(c)?eV(c,i,t,e):(c.data=ih(c,c.parent,t).resolve,V(void 0))),je(()=>a++),Jo(1),Fe(c=>a===s.size?V(r):ct))})}function kE(t){let e=t.children.map(r=>kE(r)).flat();return[t,...e]}function eV(t,e,r,i){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!xE(n)&&(o[bc]=n.title),tV(o,t,e,i).pipe(P(s=>(t._resolvedData=s,t.data=ih(t,t.parent,r).resolve,null)))}function tV(t,e,r,i){let n=kv(t);if(n.length===0)return V({});let o={};return He(n).pipe(Fe(s=>iV(t[s],e,r,i).pipe(mn(),je(a=>{if(a instanceof mc)throw rh(new As,a);o[s]=a}))),Jo(1),ma(o),ut(s=>IE(s)?ct:un(s)))}function iV(t,e,r,i){let n=yc(e)??i,o=Ps(t,n),s=o.resolve?o.resolve(e,r):pi(n,()=>o(e,r));return Nr(s)}function Sv(t){return Oe(e=>{let r=t(e);return r?He(r).pipe(P(()=>e)):V(e)})}var TE=(()=>{let e=class e{buildTitle(i){let n,o=i.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ce);return n}getResolvedTitleForRoute(i){return i.data[bc]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(nV),providedIn:"root"});let t=e;return t})(),nV=(()=>{let e=class e extends TE{constructor(i){super(),this.title=i}updateTitle(i){let n=this.buildTitle(i);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(m(oC))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dc=new g("",{providedIn:"root",factory:()=>({})}),rV=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ng-component"]],standalone:!0,features:[Y],decls:1,vars:0,template:function(n,o){n&1&&k(0,"router-outlet")},dependencies:[tb],encapsulation:2});let t=e;return t})();function nb(t){let e=t.children&&t.children.map(nb),r=e?Q(w({},t),{children:e}):w({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==Ce&&(r.component=rV),r}var sh=new g(""),rb=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(lu)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return V(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let n=Nr(i.loadComponent()).pipe(P(RE),je(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),Si(()=>{this.componentLoaders.delete(i)})),o=new dr(n,()=>new C).pipe(Go());return this.componentLoaders.set(i,o),o}loadChildren(i,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return V({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=oV(n,this.compiler,i,this.onLoadEndListener).pipe(Si(()=>{this.childrenLoaders.delete(n)})),a=new dr(s,()=>new C).pipe(Go());return this.childrenLoaders.set(n,a),a}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oV(t,e,r,i){return Nr(t.loadChildren()).pipe(P(RE),Fe(n=>n instanceof Ma||Array.isArray(n)?V(n):He(e.compileModuleAsync(n))),P(n=>{i&&i(t);let o,s,a=!1;return Array.isArray(n)?(s=n,a=!0):(o=n.create(r).injector,s=o.get(sh,[],{optional:!0,self:!0}).flat()),{routes:s.map(nb),injector:o}}))}function sV(t){return t&&typeof t=="object"&&"default"in t}function RE(t){return sV(t)?t.default:t}var ob=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(aV),providedIn:"root"});let t=e;return t})(),aV=(()=>{let e=class e{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,n){return i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),AE=new g(""),OE=new g("");function cV(t,e,r){let i=t.get(OE),n=t.get(K);return t.get(F).runOutsideAngular(()=>{if(!n.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=n.startViewTransition(()=>(o(),lV(t))),{onViewTransitionCreated:c}=i;return c&&pi(t,()=>c({transition:a,from:e,to:r})),s})}function lV(t){return new Promise(e=>{$t({read:()=>setTimeout(e)},{injector:t})})}var dV=new g(""),sb=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new C,this.transitionAbortSubject=new C,this.configLoader=b(rb),this.environmentInjector=b(_t),this.urlSerializer=b(_c),this.rootContexts=b(wc),this.location=b(Mr),this.inputBindingEnabled=b(lh,{optional:!0})!==null,this.titleStrategy=b(TE),this.options=b(Dc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(ob),this.createViewTransition=b(AE,{optional:!0}),this.navigationErrorHandler=b(dV,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>V(void 0),this.rootComponentType=null;let i=o=>this.events.next(new Lv(o)),n=o=>this.events.next(new jv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let n=++this.navigationId;this.transitions?.next(Q(w(w({},this.transitions.value),i),{id:n}))}setupNavigations(i,n,o){return this.transitions=new Pe({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:lc,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ge(s=>s.id!==0),P(s=>Q(w({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Oe(s=>{let a=!1,c=!1;return V(s).pipe(Oe(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",bi.SupersededByNewNavigation),ct;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Q(w({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!d&&u!=="reload"){let f="";return this.events.next(new Or(l.id,this.urlSerializer.serialize(l.rawUrl),f,Ku.IgnoredSameUrlNavigation)),l.resolve(!1),ct}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return V(l).pipe(Oe(f=>{let p=this.transitions?.getValue();return this.events.next(new Os(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?ct:Promise.resolve(f)}),X2(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),je(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Q(w({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let p=new Xu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:p,source:v,restoredState:S,extras:E}=l,R=new Os(f,this.urlSerializer.serialize(p),v,S);this.events.next(R);let he=yE(this.rootComponentType).snapshot;return this.currentTransition=s=Q(w({},l),{targetSnapshot:he,urlAfterRedirects:p,extras:Q(w({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,V(s)}else{let f="";return this.events.next(new Or(l.id,this.urlSerializer.serialize(l.extractedUrl),f,Ku.IgnoredByUrlHandlingStrategy)),l.resolve(!1),ct}}),je(l=>{let d=new Ov(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),P(l=>(this.currentTransition=s=Q(w({},l),{guards:v2(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),M2(this.environmentInjector,l=>this.events.next(l)),je(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw rh(this.urlSerializer,l.guardsResult);let d=new Nv(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),ge(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",bi.GuardRejected),!1)),Sv(l=>{if(l.guards.canActivateChecks.length)return V(l).pipe(je(d=>{let u=new Fv(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),Oe(d=>{let u=!1;return V(d).pipe(J2(this.paramsInheritanceStrategy,this.environmentInjector),je({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",bi.NoDataFromResolver)}}))}),je(d=>{let u=new Pv(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),Sv(l=>{let d=u=>{let f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(je(p=>{u.component=p}),P(()=>{})));for(let p of u.children)f.push(...d(p));return f};return qi(d(l.targetSnapshot.root)).pipe(hr(null),We(1))}),Sv(()=>this.afterPreactivation()),Oe(()=>{let{currentSnapshot:l,targetSnapshot:d}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return u?He(u).pipe(P(()=>s)):V(s)}),P(l=>{let d=h2(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=Q(w({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),je(()=>{this.events.next(new fc)}),g2(this.rootContexts,i.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),We(1),je({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new en(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),te(this.transitionAbortSubject.pipe(je(l=>{throw l}))),Si(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",bi.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ut(l=>{if(c=!0,EE(l))this.events.next(new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),m2(l)?this.events.next(new Ns(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let d=new hc(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=pi(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(u instanceof mc){let{message:f,cancellationCode:p}=rh(this.urlSerializer,u);this.events.next(new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),f,p)),this.events.next(new Ns(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(d);let f=i.errorHandler(l);s.resolve(!!f)}}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return ct}))}))}cancelNavigationTransition(i,n,o){let s=new nr(i.id,this.urlSerializer.serialize(i.extractedUrl),n,o);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let i=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return i.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function uV(t){return t!==lc}var hV=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(fV),providedIn:"root"});let t=e;return t})(),Jv=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},fV=(()=>{let e=class e extends Jv{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),NE=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(pV),providedIn:"root"});let t=e;return t})(),pV=(()=>{let e=class e extends NE{constructor(){super(...arguments),this.location=b(Mr),this.urlSerializer=b(_c),this.options=b(Dc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(ob),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new rr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yE(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(n=>{n.type==="popstate"&&i(n.url,n.state)})}handleRouterEvent(i,n){if(i instanceof Os)this.stateMemento=this.createStateMemento();else if(i instanceof Or)this.rawUrlTree=n.initialUrl;else if(i instanceof Xu){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??o,n)}}else i instanceof fc?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):i instanceof nr&&(i.code===bi.GuardRejected||i.code===bi.NoDataFromResolver)?this.restoreHistory(n):i instanceof hc?this.restoreHistory(n,!0):i instanceof en&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,n){let o=i instanceof rr?this.urlSerializer.serialize(i):i;if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let s=this.browserPageId,a=w(w({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(o,"",a)}else{let s=w(w({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(i,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,n){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:n}:{navigationId:i}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ac=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ac||{});function FE(t,e){t.events.pipe(ge(r=>r instanceof en||r instanceof nr||r instanceof hc||r instanceof Or),P(r=>r instanceof en||r instanceof Or?ac.COMPLETE:(r instanceof nr?r.code===bi.Redirect||r.code===bi.SupersededByNewNavigation:!1)?ac.REDIRECTING:ac.FAILED),ge(r=>r!==ac.REDIRECTING),We(1)).subscribe(()=>{e()})}function mV(t){throw t}var gV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_i=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=b(ru),this.stateManager=b(NE),this.options=b(Dc,{optional:!0})||{},this.pendingTasks=b(Cn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(sb),this.urlSerializer=b(_c),this.location=b(Mr),this.urlHandlingStrategy=b(ob),this._events=new C,this.errorHandler=this.options.errorHandler||mV,this.navigated=!1,this.routeReuseStrategy=b(hV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(sh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(lh,{optional:!0}),this.eventsSubscription=new ne,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof nr&&n.code!==bi.Redirect&&n.code!==bi.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof en)this.navigated=!0;else if(n instanceof Ns){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=w({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||uV(o.source)},a);this.scheduleNavigation(c,lc,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}_V(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",n)},0)})}navigateToSyncWithBrowser(i,n,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=w({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,n,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(nb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,n={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=n,d=l?this.currentUrlTree.fragment:a,u=null;switch(c){case"merge":u=w(w({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let f;try{let p=o?o.snapshot:this.routerState.snapshot.root;f=gE(p)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),f=this.currentUrlTree.root}return vE(f,i,u,d??null)}navigateByUrl(i,n={skipLocationChange:!1}){let o=vo(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,lc,null,n)}navigate(i,n={skipLocationChange:!1}){return bV(i),this.navigateByUrl(this.createUrlTree(i,n),n)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,n){let o;if(n===!0?o=w({},gV):n===!1?o=w({},vV):o=n,vo(i))return QC(this.currentUrlTree,i,o);let s=this.parseUrl(i);return QC(this.currentUrlTree,s,o)}removeEmptyProps(i){return Object.entries(i).reduce((n,[o,s])=>(s!=null&&(n[o]=s),n),{})}scheduleNavigation(i,n,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((f,p)=>{c=f,l=p});let u=this.pendingTasks.add();return FE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(f=>Promise.reject(f))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bV(t){for(let e=0;e{let e=class e{constructor(i,n,o,s,a,c){this.router=i,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new C,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=i.events.subscribe(d=>{d instanceof en&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(i){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",i)}ngOnChanges(i){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(i){i==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(vo(i)?this.routerLinkInput=i:this.routerLinkInput=Array.isArray(i)?i:[i],this.setTabIndexIfNotOnNativeEl("0"))}onClick(i,n,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(i!==0||n||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let i=this.urlTree;this.href=i!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(i)):null;let n=this.href===null?null:Kw(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(i,n){let o=this.renderer,s=this.el.nativeElement;n!==null?o.setAttribute(s,i,n):o.removeAttribute(s,i)}get urlTree(){return this.routerLinkInput===null?null:vo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(h(_i),h(bo),pt("tabindex"),h(En),h(N),h(er))},e.\u0275dir=I({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&q("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",T],skipLocationChange:[2,"skipLocationChange","skipLocationChange",T],replaceUrl:[2,"replaceUrl","replaceUrl",T],routerLink:"routerLink"},standalone:!0,features:[re,Me]});let t=e;return t})(),PE=(()=>{let e=class e{get isActive(){return this._isActive}constructor(i,n,o,s,a){this.router=i,this.element=n,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new B,this.routerEventsSubscription=i.events.subscribe(c=>{c instanceof en&&this.update()})}ngAfterContentInit(){V(this.links.changes,V(null)).pipe(hn()).subscribe(i=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let i=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=He(i).pipe(hn()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(i){let n=Array.isArray(i)?i:i.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(i){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let i=this.hasActiveLinks();this.classes.forEach(n=>{i?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),i&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==i&&(this._isActive=i,this.cdr.markForCheck(),this.isActiveChange.emit(i))})}isLinkActive(i){let n=yV(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?i.isActive(s,n):!1}}hasActiveLinks(){let i=this.isLinkActive(this.router);return this.link&&i(this.link)||this.links.some(i)}};e.\u0275fac=function(n){return new(n||e)(h(_i),h(N),h(En),h(ue),h(ah,8))},e.\u0275dir=I({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(n&1&&pe(s,ah,5),n&2){let a;L(a=j())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Me]});let t=e;return t})();function yV(t){return!!t.paths}var ch=class{};var wV=(()=>{let e=class e{constructor(i,n,o,s,a){this.router=i,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ge(i=>i instanceof en),pn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,n){let o=[];for(let s of n){s.providers&&!s._injector&&(s._injector=Kd(s.providers,i,`Route: ${s.path}`));let a=s._injector??i,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return He(o).pipe(hn())}preloadConfig(i,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(i,n):o=V(null);let s=o.pipe(Fe(a=>a===null?V(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??i,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return He([s,a]).pipe(hn())}else return s})}};e.\u0275fac=function(n){return new(n||e)(m(_i),m(lu),m(_t),m(ch),m(rb))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),LE=new g(""),xV=(()=>{let e=class e{constructor(i,n,o,s,a={}){this.urlSerializer=i,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=b(_t),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Os?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof en?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof Or&&i.code===Ku.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Ju&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,n){this.zone.runOutsideAngular(()=>Bo(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),$t(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Ju(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){ja()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function DV(t){return t.routerState.root}function Cc(t,e){return{\u0275kind:t,\u0275providers:e}}function CV(){let t=b(Se);return e=>{let r=t.get(mi);if(e!==r.components[0])return;let i=t.get(_i),n=t.get(jE);t.get(ab)===1&&i.initialNavigation(),t.get(VE,null,Ie.Optional)?.setUpPreloading(),t.get(LE,null,Ie.Optional)?.init(),i.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var jE=new g("",{factory:()=>new C}),ab=new g("",{providedIn:"root",factory:()=>1});function EV(){return Cc(2,[{provide:ab,useValue:0},{provide:au,multi:!0,deps:[Se],useFactory:e=>{let r=e.get(kD,Promise.resolve());return()=>r.then(()=>new Promise(i=>{let n=e.get(_i),o=e.get(jE);FE(n,()=>{i(!0)}),e.get(sb).afterPreactivation=()=>(i(!0),o.closed?V(void 0):o),n.initialNavigation()}))}}])}function IV(){return Cc(3,[{provide:au,multi:!0,useFactory:()=>{let e=b(_i);return()=>{e.setUpLocationChangeListener()}}},{provide:ab,useValue:2}])}var VE=new g("");function SV(t){return Cc(0,[{provide:VE,useExisting:wV},{provide:ch,useExisting:t}])}function MV(){return Cc(8,[eE,{provide:lh,useExisting:eE}])}function kV(t){let e=[{provide:AE,useValue:cV},{provide:OE,useValue:w({skipNextTransition:!!t?.skipInitialTransition},t)}];return Cc(9,e)}var rE=new g("ROUTER_FORROOT_GUARD"),TV=[Mr,{provide:_c,useClass:As},_i,wc,{provide:bo,useFactory:DV,deps:[_i]},rb,[]],kQ=(()=>{let e=class e{constructor(i){}static forRoot(i,n){return{ngModule:e,providers:[TV,[],{provide:sh,multi:!0,useValue:i},{provide:rE,useFactory:NV,deps:[[_i,new xn,new Yn]]},{provide:Dc,useValue:n||{}},n?.useHash?AV():OV(),RV(),n?.preloadingStrategy?SV(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?FV(n):[],n?.bindToComponentInputs?MV().\u0275providers:[],n?.enableViewTransitions?kV().\u0275providers:[],PV()]}}static forChild(i){return{ngModule:e,providers:[{provide:sh,multi:!0,useValue:i}]}}};e.\u0275fac=function(n){return new(n||e)(m(rE,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function RV(){return{provide:LE,useFactory:()=>{let t=b(jD),e=b(F),r=b(Dc),i=b(sb),n=b(_c);return r.scrollOffset&&t.setOffset(r.scrollOffset),new xV(n,i,t,e,r)}}}function AV(){return{provide:er,useClass:RD}}function OV(){return{provide:er,useClass:$g}}function NV(t){return"guarded"}function FV(t){return[t.initialNavigation==="disabled"?IV().\u0275providers:[],t.initialNavigation==="enabledBlocking"?EV().\u0275providers:[]]}var oE=new g("");function PV(){return[{provide:oE,useFactory:CV},{provide:cu,multi:!0,useExisting:oE}]}var ni={AUTH:{ROOT:"auth",LOGIN:"login"},MODE_SELECT:{ROOT:"mode-select"},WIZARD:{ROOT:"wizard"},MODEL_COMPRESSION:{ROOT:"project-settings"},MACHINE_UNLEARNING:{ROOT:"machine-unlearning"},RUNNING:{ROOT:"running"},MODEL_TRAINING:{ROOT:"model-training"},ALGORITHM_COMPARISON:{ROOT:"algorithm-comparison"},MODEL_SPECIALIZATION:{ROOT:"model-specialization"},AWQ:{ROOT:"awq"},DEMO:{ROOT:"demo",BUTTONS:"buttons",FORM_FIELDS:"form-fields",TABLE:"table",TYPOGRAPHY:"typography",ICONS:"icons",MENU:"menu",CARDS:"cards",WIZARD:"wizard",CHIPS:"chips",CHECKBOXES:"checkboxes",NOTIFICATIONS:"notifications",DRAWER:"drawer"}};var cb=Cs({source:"[Core -> Configs]",events:{"Set Default Mode":Tt(),"Set Current Mode":Tt()}});var Ls=function(t){return t.GUIDED="guided",t.EXPERT="expert",t}(Ls||{});var or=OC("core");var BE=Rn(or,t=>t.configs.defaultMode),zE=Rn(or,t=>t.configs.currentMode);var UE=(()=>{let e=class e{constructor(i){this.store=i,this.defaultMode$=this.store.select(BE),this.currentMode$=this.store.select(zE)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ii))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var db;try{db=typeof Intl<"u"&&Intl.v8BreakIterator}catch{db=!1}var Ae=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?Wg(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||db)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(n){return new(n||e)(m(Ri))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var js,HE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ub(){if(js)return js;if(typeof document!="object"||!document)return js=new Set(HE),js;let t=document.createElement("input");return js=new Set(HE.filter(e=>(t.setAttribute("type",e),t.type===e))),js}var Ec;function jV(){if(Ec==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ec=!0}))}finally{Ec=Ec||!1}return Ec}function jt(t){return jV()?t:!!t.capture}var _o;function $E(){if(_o==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return _o=!1,_o;if("scrollBehavior"in document.documentElement.style)_o=!0;else{let t=Element.prototype.scrollTo;t?_o=!/\{\s*\[native code\]\s*\}/.test(t.toString()):_o=!1}}return _o}var lb;function VV(){if(lb==null){let t=typeof document<"u"?document.head:null;lb=!!(t&&(t.createShadowRoot||t.attachShadow))}return lb}function Ic(t){if(VV()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function hb(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function At(t){return t.composedPath?t.composedPath()[0]:t.target}function Sc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Vt(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function yi(t){return t!=null&&`${t}`!="false"}function yo(t,e=0){return fb(t)?Number(t):e}function fb(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function wo(t){return Array.isArray(t)?t:[t]}function vt(t){return t==null?"":typeof t=="string"?t:`${t}px`}function ot(t){return t instanceof N?t.nativeElement:t}var BV=(()=>{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[BV]});let t=e;return t})();var GE=new Set,xo,zV=(()=>{let e=class e{constructor(i,n){this._platform=i,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):HV}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&UV(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(Pa,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function UV(t,e){if(!GE.has(t))try{xo||(xo=document.createElement("style"),e&&xo.setAttribute("nonce",e),xo.setAttribute("type","text/css"),document.head.appendChild(xo)),xo.sheet&&(xo.sheet.insertRule(`@media ${t} {body{ }}`,0),GE.add(t))}catch(r){console.error(r)}}function HV(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var fh=(()=>{let e=class e{constructor(i,n){this._mediaMatcher=i,this._zone=n,this._queries=new Map,this._destroySubject=new C}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return WE(wo(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=WE(wo(i)).map(a=>this._registerQuery(a).observable),s=qi(o);return s=fn(s.pipe(We(1)),s.pipe(fr(1),Xo(0))),s.pipe(P(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{c.matches=c.matches||l,c.breakpoints[d]=l}),c}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let n=this._mediaMatcher.matchMedia(i),s={observable:new oe(a=>{let c=l=>this._zone.run(()=>a.next(l));return n.addListener(c),()=>{n.removeListener(c)}}).pipe(Qe(n),P(({matches:a})=>({query:i,matches:a})),te(this._destroySubject)),mql:n};return this._queries.set(i,s),s}};e.\u0275fac=function(n){return new(n||e)(m(zV),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function WE(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var qE={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var KE=" ";function bb(t,e,r){let i=vh(t,e);r=r.trim(),!i.some(n=>n.trim()===r)&&(i.push(r),t.setAttribute(e,i.join(KE)))}function yh(t,e,r){let i=vh(t,e);r=r.trim();let n=i.filter(o=>o!==r);n.length?t.setAttribute(e,n.join(KE)):t.removeAttribute(e)}function vh(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var XE="cdk-describedby-message",ph="cdk-describedby-host",gb=0,wh=(()=>{let e=class e{constructor(i,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${gb++}`,this._document=i,this._id=b(ys)+"-"+gb++}describe(i,n,o){if(!this._canBeDescribed(i,n))return;let s=pb(n,o);typeof n!="string"?(YE(n,this._id),this._messageRegistry.set(s,{messageElement:n,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(n,o),this._isElementDescribedByMessage(i,s)||this._addMessageReference(i,s)}removeDescription(i,n,o){if(!n||!this._isElementNode(i))return;let s=pb(n,o);if(this._isElementDescribedByMessage(i,s)&&this._removeMessageReference(i,s),typeof n=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let i=this._document.querySelectorAll(`[${ph}="${this._id}"]`);for(let n=0;no.indexOf(XE)!=0);i.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(i,n){let o=this._messageRegistry.get(n);bb(i,"aria-describedby",o.messageElement.id),i.setAttribute(ph,this._id),o.referenceCount++}_removeMessageReference(i,n){let o=this._messageRegistry.get(n);o.referenceCount--,yh(i,"aria-describedby",o.messageElement.id),i.removeAttribute(ph)}_isElementDescribedByMessage(i,n){let o=vh(i,"aria-describedby"),s=this._messageRegistry.get(n),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(i,n){if(!this._isElementNode(i))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),s=i.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(i){return i.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pb(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function YE(t,e){t.id||(t.id=`${XE}-${e}-${gb++}`)}var bh=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C,this._typeaheadSubscription=ne.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new C,this.change=new C,e instanceof Pt?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):Qd(e)&&(this._effectRef=uu(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(je(r=>this._pressedLetters.push(r)),Xo(e),ge(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join(""))).subscribe(r=>{let i=this._getItemsArray();for(let n=1;n!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),i=typeof e=="number"?e:r.indexOf(e),n=r[i];this._activeItem=n??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let i=1;i<=r.length;i++){let n=(this._activeItemIndex+e*i+r.length)%r.length,o=r[n];if(!this._skipPredicateFn(o)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=r,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return Qd(this._items)?this._items():this._items instanceof Pt?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},_h=class extends bh{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},Fn=class extends bh{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function Mo(t){return t.buttons===0||t.detail===0}function ko(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var rB=new g("cdk-input-modality-detector-options"),oB={ignoreKeys:[18,17,224,91,16]},JE=650,Vs=jt({passive:!0,capture:!0}),sB=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,n,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new Pe(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=At(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(ko(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=At(a)},this._options=w(w({},oB),s),this.modalityDetected=this._modality.pipe(fr(1)),this.modalityChanged=this.modalityDetected.pipe(Yi()),i.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Vs),o.addEventListener("mousedown",this._onMousedown,Vs),o.addEventListener("touchstart",this._onTouchstart,Vs)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Vs),document.removeEventListener("mousedown",this._onMousedown,Vs),document.removeEventListener("touchstart",this._onTouchstart,Vs))}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F),m(K),m(rB,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),aB=new g("liveAnnouncerElement",{providedIn:"root",factory:cB});function cB(){return null}var lB=new g("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),dB=0,xh=(()=>{let e=class e{constructor(i,n,o,s){this._ngZone=n,this._defaultOptions=s,this._document=o,this._liveElement=i||this._createLiveElement()}announce(i,...n){let o=this._defaultOptions,s,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[s,a]=n,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=i,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let i="cdk-live-announcer-element",n=this._document.getElementsByClassName(i),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(i,n,o,s,a){this._ngZone=i,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new C,this._rootNodeFocusAndBlurListener=c=>{let l=At(c);for(let d=l;d;d=d.parentElement)c.type==="focus"?this._onFocus(c,d):this._onBlur(c,d)},this._document=s,this._detectionMode=a?.detectionMode||gh.IMMEDIATE}monitor(i,n=!1){let o=ot(i);if(!this._platform.isBrowser||o.nodeType!==1)return V();let s=Ic(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let c={checkChildren:n,subject:new C,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(i){let n=ot(i),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(i,n,o){let s=ot(i),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,n,l)):(this._setOrigin(n),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===gh.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,n){i.classList.toggle("cdk-focused",!!n),i.classList.toggle("cdk-touch-focused",n==="touch"),i.classList.toggle("cdk-keyboard-focused",n==="keyboard"),i.classList.toggle("cdk-mouse-focused",n==="mouse"),i.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(i,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&n,this._detectionMode===gh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?JE:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,n){let o=this._elementInfo.get(n),s=At(i);!o||!o.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),o)}_onBlur(i,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&i.relatedTarget instanceof Node&&n.contains(i.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(i,n){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(n))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let n=i.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,mh),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,mh)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(te(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let n=i.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mh),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mh),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,n,o){this._setClasses(i,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(i){let n=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&n.push([s,o])}),n}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let a=0;a{let e=class e{constructor(i,n){this._platform=i,this._document=n,this._breakpointSubscription=b(fh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Do.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Do.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Do.BLACK_ON_WHITE}return Do.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(mb,ZE,QE),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Do.BLACK_ON_WHITE?i.add(mb,ZE):n===Do.WHITE_ON_BLACK&&i.add(mb,QE)}}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eI=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(m(_b))},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[hh]});let t=e;return t})();var hB=new g("cdk-dir-doc",{providedIn:"root",factory:fB});function fB(){return b(K)}var pB=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function mB(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?pB.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var bt=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new B,i){let n=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=mB(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(n){return new(n||e)(m(hB,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Pn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var gB=["*",[["mat-option"],["ng-container"]]],vB=["*","mat-option, ng-container"],bB=["text"],_B=[[["mat-icon"]],"*"],yB=["mat-icon","*"];function wB(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let r=$();M("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function xB(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}function DB(t,e){if(t&1&&(_(0,"span",4),we(1),y()),t&2){let r=$();x(),Lt("(",r.group.label,")")}}var CB=["mat-internal-form-field",""],EB=["*"];var lI=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),dI=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function IB(){return!0}var SB=new g("mat-sanity-checks",{providedIn:"root",factory:IB}),ee=(()=>{let e=class e{constructor(i,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,i._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(i){return Sc()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(n){return new(n||e)(m(_b),m(SB,8),m(K))},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Pn,Pn]});let t=e;return t})();var To=class{constructor(e,r,i,n,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=i,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(n,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var nn=(()=>{let e=class e{isErrorState(i,n){return!!(i&&i.invalid&&(i.touched||n&&n.submitted))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Vi=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Vi||{}),xb=class{constructor(e,r,i,n=!1){this._renderer=e,this.element=r,this.config=i,this._animationForciblyDisabledThroughCss=n,this.state=Vi.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},tI=jt({passive:!0,capture:!0}),Db=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=At(e);r&&this._events.get(e.type)?.forEach((i,n)=>{(n===r||n.contains(r))&&i.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,i,n){let o=this._events.get(r);if(o){let s=o.get(i);s?s.add(n):o.set(i,new Set([n]))}else this._events.set(r,new Map([[i,new Set([n])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,tI)})}removeHandler(e,r,i){let n=this._events.get(e);if(!n)return;let o=n.get(r);o&&(o.delete(i),o.size===0&&n.delete(r),n.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,tI)))}},iI={enterDuration:225,exitDuration:150},MB=800,nI=jt({passive:!0,capture:!0}),rI=["mousedown","touchstart"],oI=["mouseup","mouseleave","touchend","touchcancel"],Mc=class Mc{constructor(e,r,i,n){this._target=e,this._ngZone=r,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=ot(i))}fadeInRipple(e,r,i={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=w(w({},iI),i.animation);i.centered&&(e=n.left+n.width/2,r=n.top+n.height/2);let s=i.radius||kB(e,r,n),a=e-n.left,c=r-n.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${c-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),f=u.transitionProperty,p=u.transitionDuration,v=f==="none"||p==="0s"||p==="0s, 0s"||n.width===0&&n.height===0,S=new xb(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",S.state=Vi.FADING_IN,i.persistent||(this._mostRecentTransientRipple=S);let E=null;return!v&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let R=()=>{E&&(E.fallbackTimer=null),clearTimeout(Ne),this._finishRippleTransition(S)},he=()=>this._destroyRipple(S),Ne=setTimeout(he,l+100);d.addEventListener("transitionend",R),d.addEventListener("transitioncancel",he),E={onTransitionEnd:R,onTransitionCancel:he,fallbackTimer:Ne}}),this._activeRipples.set(S,E),(v||!l)&&this._finishRippleTransition(S),S}fadeOutRipple(e){if(e.state===Vi.FADING_OUT||e.state===Vi.HIDDEN)return;let r=e.element,i=w(w({},iI),e.config.animation);r.style.transitionDuration=`${i.exitDuration}ms`,r.style.opacity="0",e.state=Vi.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=ot(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,rI.forEach(i=>{Mc._eventManager.addHandler(this._ngZone,i,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{oI.forEach(r=>{this._triggerElement.addEventListener(r,this,nI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Vi.FADING_IN?this._startFadeOutTransition(e):e.state===Vi.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=Vi.VISIBLE,!i&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=Vi.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),e.element.remove()}_onMousedown(e){let r=Mo(e),i=this._lastTouchStartEvent&&Date.now(){let r=e.state===Vi.VISIBLE||e.config.terminateOnPointerUp&&e.state===Vi.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(rI.forEach(r=>Mc._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(oI.forEach(r=>e.removeEventListener(r,this,nI)),this._pointerUpEventsRegistered=!1))}};Mc._eventManager=new Db;var Cb=Mc;function kB(t,e,r){let i=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),n=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(i*i+n*n)}var Ch=new g("mat-ripple-global-options"),xi=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){i&&this.fadeOutAllNonPersistent(),this._disabled=i,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(i){this._trigger=i,this._setupTriggerEventsIfEnabled()}constructor(i,n,o,s,a){this._elementRef=i,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Cb(this,n,i,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:w(w(w({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(i,n=0,o){return typeof i=="number"?this._rippleRenderer.fadeInRipple(i,n,w(w({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,w(w({},this.rippleConfig),i))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F),h(Ae),h(Ch,8),h(rt,8))},e.\u0275dir=I({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),rn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})(),Ib=(()=>{let e=class e{constructor(i){this._animationMode=i,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(n){return new(n||e)(h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&H("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),TB=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee]});let t=e;return t})(),Eh=new g("MAT_OPTION_PARENT_COMPONENT"),RB=0,Ih=new g("MatOptgroup"),ZK=(()=>{let e=class e{constructor(i){this.disabled=!1,this._labelId=`mat-optgroup-label-${RB++}`,this._inert=i?.inertGroups??!1}};e.\u0275fac=function(n){return new(n||e)(h(Eh,8))},e.\u0275cmp=z({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(n,o){n&2&&q("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",T]},exportAs:["matOptgroup"],standalone:!0,features:[se([{provide:Ih,useExisting:e}]),re,Y],ngContentSelectors:vB,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(n,o){n&1&&(ye(gB),_(0,"span",0)(1,"span",1),we(2),W(3),y()(),W(4,1)),n&2&&(H("mdc-list-item--disabled",o.disabled),M("id",o._labelId),x(2),Lt("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0});let t=e;return t})(),AB=0,Eb=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},uI=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(i){this._disabled=i}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(i,n,o,s){this._element=i,this._changeDetectorRef=n,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${AB++}`,this.onSelectionChange=new B,this._stateChanges=new C}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(i=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}deselect(i=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}focus(i,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!Vt(i)&&(this._selectViaInteraction(),i.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let i=this.viewValue;i!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=i)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(i=!1){this.onSelectionChange.emit(new Eb(this,i))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(Eh,8),h(Ih,8))},e.\u0275cmp=z({type:e,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&De(bB,7),n&2){let s;L(s=j())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&Z("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(yt("id",o.id),q("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),H("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",T]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[re,Y],ngContentSelectors:yB,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(ye(_B),U(0,wB,1,2,"mat-pseudo-checkbox",1),W(1),_(2,"span",2,0),W(4,1),y(),U(5,xB,1,1,"mat-pseudo-checkbox",3)(6,DB,2,1,"span",4),k(7,"div",5)),n&2&&(le(o.multiple?0:-1),x(5),le(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),x(),le(o.group&&o.group._inert?6:-1),x(),M("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Ib,xi],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function hI(t,e,r){if(r.length){let i=e.toArray(),n=r.toArray(),o=0;for(let s=0;sr+i?Math.max(0,t-i+e):r}var Sb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[rn,ee,TB]});let t=e;return t})(),sI={capture:!0},aI=["focus","mousedown","mouseenter","touchstart"],yb="mat-ripple-loader-uninitialized",wb="mat-ripple-loader-class-name",cI="mat-ripple-loader-centered",Dh="mat-ripple-loader-disabled",Sh=(()=>{let e=class e{constructor(){this._document=b(K,{optional:!0}),this._animationMode=b(rt,{optional:!0}),this._globalRippleOptions=b(Ch,{optional:!0}),this._platform=b(Ae),this._ngZone=b(F),this._hosts=new Map,this._onInteraction=i=>{let n=At(i);if(n instanceof HTMLElement){let o=n.closest(`[${yb}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let i of aI)this._document?.addEventListener(i,this._onInteraction,sI)})}ngOnDestroy(){let i=this._hosts.keys();for(let n of i)this.destroyRipple(n);for(let n of aI)this._document?.removeEventListener(n,this._onInteraction,sI)}configureRipple(i,n){i.setAttribute(yb,this._globalRippleOptions?.namespace??""),(n.className||!i.hasAttribute(wb))&&i.setAttribute(wb,n.className||""),n.centered&&i.setAttribute(cI,""),n.disabled&&i.setAttribute(Dh,"")}getRipple(i){return this._hosts.get(i)||this._createRipple(i)}setDisabled(i,n){let o=this._hosts.get(i);if(o){o.disabled=n;return}n?i.setAttribute(Dh,""):i.removeAttribute(Dh)}_createRipple(i){if(!this._document)return;let n=this._hosts.get(i);if(n)return n;i.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",i.getAttribute(wb)),i.append(o);let s=new xi(new N(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=i,s.centered=i.hasAttribute(cI),s.disabled=i.hasAttribute(Dh),this.attachRipple(i,s),s}attachRipple(i,n){i.removeAttribute(yb),this._hosts.set(i,n)}destroyRipple(i){let n=this._hosts.get(i);n&&(n.ngOnDestroy(),this._hosts.delete(i))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Y],attrs:CB,ngContentSelectors:EB,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},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}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var kh=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(i){this._vertical=yi(i)}get inset(){return this._inset}set inset(i){this._inset=yi(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(q("aria-orientation",o.vertical?"vertical":"horizontal"),H("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),pI=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})();function OB(t,e){t&1&&k(0,"div",8)}function NB(t,e){t&1&&k(0,"div",8)}var gI=(()=>{let e=class e{constructor(){this.styleMode="fullWidth",this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-footer"]],inputs:{styleMode:"styleMode"},decls:14,vars:4,consts:[[1,"footer-wrapper"],[1,"mb-4"],[1,"grid","grid-cols-12"],["class","col-span-1",4,"ngIf"],[1,"footer-content",3,"ngClass"],[1,"left"],[1,"right"],[1,"mr-4"],[1,"col-span-1"]],template:function(n,o){n&1&&(_(0,"div",0)(1,"div",1),k(2,"mat-divider"),y(),_(3,"footer",2),U(4,OB,1,0,"div",3),_(5,"div",4)(6,"div",5),we(7),y(),_(8,"div",6)(9,"a",7),we(10,"Privacy Policy"),y(),_(11,"a"),we(12,"Terms of Service"),y()()(),U(13,NB,1,0,"div",3),y()()),n&2&&(x(4),M("ngIf",o.styleMode!=="mainLayout"),x(),M("ngClass",o.styleMode==="mainLayout"?"col-span-12":"col-span-10"),x(2),Lt("\xA9 ",o.currentYear," Cisco Systems, Inc"),x(6),M("ngIf",o.styleMode!=="mainLayout"))},dependencies:[Ds,kr,kh],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.footer-wrapper[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;display:flex;justify-content:space-between}[styleMode=fullWidth][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{width:100%;position:absolute;bottom:30px}[styleMode=mainLayout][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{position:relative;bottom:0}"]});let t=e;return t})();var CI=(()=>{let e=class e{constructor(i,n){this._renderer=i,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,n){this._renderer.setProperty(this._elementRef.nativeElement,i,n)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(n){return new(n||e)(h(En),h(N))},e.\u0275dir=I({type:e});let t=e;return t})(),PB=(()=>{let e=class e extends CI{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,features:[ae]});let t=e;return t})(),jn=new g("");var LB={provide:jn,useExisting:lt(()=>jh),multi:!0};function jB(){let t=kn()?kn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var VB=new g(""),jh=(()=>{let e=class e extends CI{constructor(i,n,o){super(i,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!jB())}writeValue(i){let n=i??"";this.setProperty("value",n)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(n){return new(n||e)(h(En),h(N),h(VB,8))},e.\u0275dir=I({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&Z("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[se([LB]),ae]});let t=e;return t})();function Fr(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function EI(t){return t!=null&&typeof t.length=="number"}var on=new g(""),Ao=new g(""),BB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Us=class{static min(e){return zB(e)}static max(e){return UB(e)}static required(e){return HB(e)}static requiredTrue(e){return $B(e)}static email(e){return GB(e)}static minLength(e){return WB(e)}static maxLength(e){return qB(e)}static pattern(e){return YB(e)}static nullValidator(e){return II(e)}static compose(e){return AI(e)}static composeAsync(e){return OI(e)}};function zB(t){return e=>{if(Fr(e.value)||Fr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Fr(e.value)||Fr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function HB(t){return Fr(t.value)?{required:!0}:null}function $B(t){return t.value===!0?null:{required:!0}}function GB(t){return Fr(t.value)||BB.test(t.value)?null:{email:!0}}function WB(t){return e=>Fr(e.value)||!EI(e.value)?null:e.value.lengthEI(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function YB(t){if(!t)return II;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),i=>{if(Fr(i.value))return null;let n=i.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function II(t){return null}function SI(t){return t!=null}function MI(t){return Ir(t)?He(t):t}function kI(t){let e={};return t.forEach(r=>{e=r!=null?w(w({},e),r):e}),Object.keys(e).length===0?null:e}function TI(t,e){return e.map(r=>r(t))}function ZB(t){return!t.validate}function RI(t){return t.map(e=>ZB(e)?e:r=>e.validate(r))}function AI(t){if(!t)return null;let e=t.filter(SI);return e.length==0?null:function(r){return kI(TI(r,e))}}function Nb(t){return t!=null?AI(RI(t)):null}function OI(t){if(!t)return null;let e=t.filter(SI);return e.length==0?null:function(r){let i=TI(r,e).map(MI);return fa(i).pipe(P(kI))}}function Fb(t){return t!=null?OI(RI(t)):null}function vI(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function NI(t){return t._rawValidators}function FI(t){return t._rawAsyncValidators}function kb(t){return t?Array.isArray(t)?t:[t]:[]}function Rh(t,e){return Array.isArray(t)?t.includes(e):t===e}function bI(t,e){let r=kb(e);return kb(t).forEach(n=>{Rh(r,n)||r.push(n)}),r}function _I(t,e){return kb(e).filter(r=>!Rh(t,r))}var Ah=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Nb(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Fb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},oi=class extends Ah{get formDirective(){return null}get path(){return null}},Di=class extends Ah{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Oh=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},QB={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},pX=Q(w({},QB),{"[class.ng-submitted]":"isSubmitted"}),PI=(()=>{let e=class e extends Oh{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(h(Di,2))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ae]});let t=e;return t})(),mX=(()=>{let e=class e extends Oh{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(h(oi,10))},e.\u0275dir=I({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ae]});let t=e;return t})();var kc="VALID",Th="INVALID",Bs="PENDING",Tc="DISABLED",Pr=class{},Nh=class extends Pr{constructor(e,r){super(),this.value=e,this.source=r}},Ac=class extends Pr{constructor(e,r){super(),this.pristine=e,this.source=r}},Oc=class extends Pr{constructor(e,r){super(),this.touched=e,this.source=r}},zs=class extends Pr{constructor(e,r){super(),this.status=e,this.source=r}},Tb=class extends Pr{constructor(e){super(),this.source=e}},Rb=class extends Pr{constructor(e){super(),this.source=e}};function Pb(t){return(Vh(t)?t.validators:t)||null}function KB(t){return Array.isArray(t)?Nb(t):t||null}function Lb(t,e){return(Vh(e)?e.asyncValidators:t)||null}function XB(t){return Array.isArray(t)?Fb(t):t||null}function Vh(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function LI(t,e,r){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new G(1e3,"");if(!i[r])throw new G(1001,"")}function jI(t,e,r){t._forEachChild((i,n)=>{if(r[n]===void 0)throw new G(1002,"")})}var Hs=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Mn(()=>this.statusReactive()),this.statusReactive=Ni(void 0),this._pristine=Mn(()=>this.pristineReactive()),this.pristineReactive=Ni(!0),this._touched=Mn(()=>this.touchedReactive()),this.touchedReactive=Ni(!1),this._events=new C,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return ei(this.statusReactive)}set status(e){ei(()=>this.statusReactive.set(e))}get valid(){return this.status===kc}get invalid(){return this.status===Th}get pending(){return this.status==Bs}get disabled(){return this.status===Tc}get enabled(){return this.status!==Tc}get pristine(){return ei(this.pristineReactive)}set pristine(e){ei(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ei(this.touchedReactive)}set touched(e){ei(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(bI(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(bI(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(_I(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(_I(e,this._rawAsyncValidators))}hasValidator(e){return Rh(this._rawValidators,e)}hasAsyncValidator(e){return Rh(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Q(w({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Oc(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),r&&e.emitEvent!==!1&&this._events.next(new Oc(!1,i))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Q(w({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Ac(!1,i))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&e.emitEvent!==!1&&this._events.next(new Ac(!0,i))}markAsPending(e={}){this.status=Bs;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new zs(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Q(w({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Tc,this.errors=null,this._forEachChild(n=>{n.disable(Q(w({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Nh(this.value,i)),this._events.next(new zs(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Q(w({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=kc,this._forEachChild(i=>{i.enable(Q(w({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Q(w({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kc||this.status===Bs)&&this._runAsyncValidator(i,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Nh(this.value,r)),this._events.next(new zs(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Q(w({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tc:kc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Bs,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let i=MI(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((i,n)=>i&&i._find(n),this)}getError(e,r){let i=r?this.get(r):this;return i&&i.errors?i.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new zs(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,i)}_initObservables(){this.valueChanges=new B,this.statusChanges=new B}_calculateStatus(){return this._allControlsDisabled()?Tc:this.errors?Th:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bs)?Bs:this._anyControlsHaveStatus(Th)?Th:kc}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new Ac(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Oc(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Vh(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=KB(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=XB(this._rawAsyncValidators)}},$s=class extends Hs{constructor(e,r,i){super(Pb(r),Lb(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,i={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){jI(this,!0,e),Object.keys(e).forEach(i=>{LI(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(i=>{let n=this.controls[i];n&&n.patchValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((i,n)=>{i.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,i)=>(e[i]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,i)=>i._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let i=this.controls[r];i&&e(i,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,i]of Object.entries(this.controls))if(this.contains(r)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,i,n)=>((i.enabled||this.disabled)&&(r[n]=i.value),r))}_reduceChildren(e,r){let i=e;return this._forEachChild((n,o)=>{i=r(i,n,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ab=class extends $s{};var Gs=new g("CallSetDisabledState",{providedIn:"root",factory:()=>Bh}),Bh="always";function zh(t,e){return[...e.path,t]}function Nc(t,e,r=Bh){jb(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),ez(t,e),iz(t,e),tz(t,e),JB(t,e)}function Fh(t,e,r=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Lh(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ph(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function JB(t,e){if(e.valueAccessor.setDisabledState){let r=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function jb(t,e){let r=NI(t);e.validator!==null?t.setValidators(vI(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let i=FI(t);e.asyncValidator!==null?t.setAsyncValidators(vI(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let n=()=>t.updateValueAndValidity();Ph(e._rawValidators,n),Ph(e._rawAsyncValidators,n)}function Lh(t,e){let r=!1;if(t!==null){if(e.validator!==null){let n=NI(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.validator);o.length!==n.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let n=FI(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.asyncValidator);o.length!==n.length&&(r=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Ph(e._rawValidators,i),Ph(e._rawAsyncValidators,i),r}function ez(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&VI(t,e)})}function tz(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&VI(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function VI(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function iz(t,e){let r=(i,n)=>{e.valueAccessor.writeValue(i),n&&e.viewToModelUpdate(i)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function BI(t,e){t==null,jb(t,e)}function nz(t,e){return Lh(t,e)}function Vb(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function rz(t){return Object.getPrototypeOf(t.constructor)===PB}function zI(t,e){t._syncPendingControls(),e.forEach(r=>{let i=r.control;i.updateOn==="submit"&&i._pendingChange&&(r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Bb(t,e){if(!e)return null;Array.isArray(e);let r,i,n;return e.forEach(o=>{o.constructor===jh?r=o:rz(o)?i=o:n=o}),n||i||r||null}function oz(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var sz={provide:oi,useExisting:lt(()=>Fc)},Rc=Promise.resolve(),Fc=(()=>{let e=class e extends oi{get submitted(){return ei(this.submittedReactive)}constructor(i,n,o){super(),this.callSetDisabledState=o,this._submitted=Mn(()=>this.submittedReactive()),this.submittedReactive=Ni(!1),this._directives=new Set,this.ngSubmit=new B,this.form=new $s({},Nb(i),Fb(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){Rc.then(()=>{let n=this._findContainer(i.path);i.control=n.registerControl(i.name,i.control),Nc(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){Rc.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){Rc.then(()=>{let n=this._findContainer(i.path),o=new $s({});BI(o,i),n.registerControl(i.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){Rc.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,n){Rc.then(()=>{this.form.get(i.path).setValue(n)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submittedReactive.set(!0),zI(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};e.\u0275fac=function(n){return new(n||e)(h(on,10),h(Ao,10),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&Z("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([sz]),ae]});let t=e;return t})();function yI(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function wI(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ro=class extends Hs{constructor(e=null,r,i){super(Pb(r),Lb(i,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vh(r)&&(r.nonNullable||r.initialValueIsDefault)&&(wI(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){yI(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){yI(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){wI(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var az=t=>t instanceof Ro,cz=(()=>{let e=class e extends oi{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zh(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,features:[ae]});let t=e;return t})();var lz={provide:Di,useExisting:lt(()=>dz)},xI=Promise.resolve(),dz=(()=>{let e=class e extends Di{constructor(i,n,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Ro,this._registered=!1,this.name="",this.update=new B,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Bb(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let n=i.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),Vb(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Nc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){xI.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let n=i.isDisabled.currentValue,o=n!==0&&T(n);xI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?zh(i,this._parent):[i]}};e.\u0275fac=function(n){return new(n||e)(h(oi,9),h(on,10),h(Ao,10),h(jn,10),h(ue,8),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[se([lz]),ae,Me]});let t=e;return t})(),vX=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var zb=new g(""),uz={provide:Di,useExisting:lt(()=>Ub)},Ub=(()=>{let e=class e extends Di{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new B,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Bb(this,o)}ngOnChanges(i){if(this._isControlChanged(i)){let n=i.form.previousValue;n&&Fh(n,this,!1),Nc(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Vb(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Fh(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(on,10),h(Ao,10),h(jn,10),h(zb,8),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[se([uz]),ae,Me]});let t=e;return t})(),hz={provide:oi,useExisting:lt(()=>Ws)},Ws=(()=>{let e=class e extends oi{get submitted(){return ei(this._submittedReactive)}set submitted(i){this._submittedReactive.set(i)}constructor(i,n,o){super(),this.callSetDisabledState=o,this._submitted=Mn(()=>this._submittedReactive()),this._submittedReactive=Ni(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new B,this._setValidators(i),this._setAsyncValidators(n)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let n=this.form.get(i.path);return Nc(n,i,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),n}getControl(i){return this.form.get(i.path)}removeControl(i){Fh(i.control||null,i,!1),oz(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,n){this.form.get(i.path).setValue(n)}onSubmit(i){return this._submittedReactive.set(!0),zI(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new Tb(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this._submittedReactive.set(!1),this.form._events.next(new Rb(this.form))}_updateDomValue(){this.directives.forEach(i=>{let n=i.control,o=this.form.get(i.path);n!==o&&(Fh(n||null,i),az(o)&&(Nc(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let n=this.form.get(i.path);BI(n,i),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let n=this.form.get(i.path);n&&nz(n,i)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jb(this.form,this),this._oldForm&&Lh(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(h(on,10),h(Ao,10),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&Z("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([hz]),ae,Me]});let t=e;return t})(),fz={provide:oi,useExisting:lt(()=>UI)},UI=(()=>{let e=class e extends cz{constructor(i,n,o){super(),this.name=null,this._parent=i,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){$I(this._parent)}};e.\u0275fac=function(n){return new(n||e)(h(oi,13),h(on,10),h(Ao,10))},e.\u0275dir=I({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[se([fz]),ae]});let t=e;return t})(),pz={provide:oi,useExisting:lt(()=>HI)},HI=(()=>{let e=class e extends oi{constructor(i,n,o){super(),this.name=null,this._parent=i,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return zh(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){$I(this._parent)}};e.\u0275fac=function(n){return new(n||e)(h(oi,13),h(on,10),h(Ao,10))},e.\u0275dir=I({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[se([pz]),ae]});let t=e;return t})();function $I(t){return!(t instanceof UI)&&!(t instanceof Ws)&&!(t instanceof HI)}var mz={provide:Di,useExisting:lt(()=>gz)},gz=(()=>{let e=class e extends Di{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new B,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Bb(this,s)}ngOnChanges(i){this._added||this._setUpControl(),Vb(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return zh(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(oi,13),h(on,10),h(Ao,10),h(jn,10),h(zb,8))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[se([mz]),ae,Me]});let t=e;return t})();var GI=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Ob=class extends Hs{constructor(e,r,i){super(Pb(r),Lb(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,i={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),r&&(this.controls.splice(n,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){jI(this,!1,e),e.forEach((i,n)=>{LI(this,!1,n),this.at(n).setValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((i,n)=>{this.at(n)&&this.at(n).patchValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,i)=>i._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,i)=>{e(r,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function DI(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var bX=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let i=new e;return i.useNonNullable=!0,i}group(i,n=null){let o=this._reduceControls(i),s={};return DI(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new $s(o,s)}record(i,n=null){let o=this._reduceControls(i);return new Ab(o,n)}control(i,n,o){let s={};return this.useNonNullable?(DI(n)?s=n:(s.validators=n,s.asyncValidators=o),new Ro(i,Q(w({},s),{nonNullable:!0}))):new Ro(i,n,o)}array(i,n,o){let s=i.map(a=>this._createControl(a));return new Ob(s,n,o)}_reduceControls(i){let n={};return Object.keys(i).forEach(o=>{n[o]=this._createControl(i[o])}),n}_createControl(i){if(i instanceof Ro)return i;if(i instanceof Hs)return i;if(Array.isArray(i)){let n=i[0],o=i.length>1?i[1]:null,s=i.length>2?i[2]:null;return this.control(n,o,s)}else return this.control(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _X=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:Gs,useValue:i.callSetDisabledState??Bh}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[GI]});let t=e;return t})(),yX=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:zb,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:Gs,useValue:i.callSetDisabledState??Bh}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[GI]});let t=e;return t})();var WI=["mat-button",""],qI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],YI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],vz='.mdc-touch-target-wrapper{display:inline}.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-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__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:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__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-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',ZI=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var bz=["mat-icon-button",""],_z=["*"];var yz=new g("MAT_BUTTON_CONFIG");var wz=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],$b=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=i,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._updateRippleDisabled()}constructor(i,n,o,s){this._elementRef=i,this._platform=n,this._ngZone=o,this._animationMode=s,this._focusMonitor=b(Et),this._rippleLoader=b(Sh),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=b(yz,{optional:!0}),c=i.nativeElement,l=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:d,mdcClasses:u}of wz)c.hasAttribute(d)&&l.add(...u)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(i="program",n){i?this._focusMonitor.focusVia(this._elementRef.nativeElement,i,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){ja()},e.\u0275dir=I({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",T],disabled:[2,"disabled","disabled",T],ariaDisabled:[2,"aria-disabled","ariaDisabled",T],disabledInteractive:[2,"disabledInteractive","disabledInteractive",T]},features:[re]});let t=e;return t})();var xz=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(n){ja()},e.\u0275dir=I({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)]},features:[re,ae]});let t=e;return t})(),Uh=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ae,Y],attrs:WI,ngContentSelectors:YI,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(ye(qI),k(0,"span",0),W(1),_(2,"span",1),W(3,1),y(),W(4,2),k(5,"span",2)(6,"span",3)),n&2&&H("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.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-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__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:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__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-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),OX=(()=>{let e=class e extends xz{constructor(i,n,o,s){super(i,n,o,s)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ae,Y],attrs:WI,ngContentSelectors:YI,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(ye(qI),k(0,"span",0),W(1),_(2,"span",1),W(3,1),y(),W(4,2),k(5,"span",2)(6,"span",3)),n&2&&H("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[vz,ZI],encapsulation:2,changeDetection:0});let t=e;return t})();var QI=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ae,Y],attrs:bz,ngContentSelectors:_z,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(ye(),k(0,"span",0),W(1),k(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',ZI],encapsulation:2,changeDetection:0});let t=e;return t})();var Hh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,rn,ee]});let t=e;return t})();var Dz=["*"],$h;function Cz(){if($h===void 0&&($h=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&($h=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return $h}function Pc(t){return Cz()?.createHTML(t)||t}function XI(t){return Error(`Unable to find icon with the name "${t}"`)}function Ez(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function JI(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function eS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var sr=class{constructor(e,r,i){this.url=e,this.svgText=r,this.options=i}},Iz=(()=>{let e=class e{constructor(i,n,o,s){this._httpClient=i,this._sanitizer=n,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(i,n,o){return this.addSvgIconInNamespace("",i,n,o)}addSvgIconLiteral(i,n,o){return this.addSvgIconLiteralInNamespace("",i,n,o)}addSvgIconInNamespace(i,n,o,s){return this._addSvgIconConfig(i,n,new sr(o,null,s))}addSvgIconResolver(i){return this._resolvers.push(i),this}addSvgIconLiteralInNamespace(i,n,o,s){let a=this._sanitizer.sanitize(Ht.HTML,o);if(!a)throw eS(o);let c=Pc(a);return this._addSvgIconConfig(i,n,new sr("",c,s))}addSvgIconSet(i,n){return this.addSvgIconSetInNamespace("",i,n)}addSvgIconSetLiteral(i,n){return this.addSvgIconSetLiteralInNamespace("",i,n)}addSvgIconSetInNamespace(i,n,o){return this._addSvgIconSetConfig(i,new sr(n,null,o))}addSvgIconSetLiteralInNamespace(i,n,o){let s=this._sanitizer.sanitize(Ht.HTML,n);if(!s)throw eS(n);let a=Pc(s);return this._addSvgIconSetConfig(i,new sr("",a,o))}registerFontClassAlias(i,n=i){return this._fontCssClassesByAlias.set(i,n),this}classNameForFontAlias(i){return this._fontCssClassesByAlias.get(i)||i}setDefaultFontSetClass(...i){return this._defaultFontSetClass=i,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(i){let n=this._sanitizer.sanitize(Ht.RESOURCE_URL,i);if(!n)throw JI(i);let o=this._cachedIconsByUrl.get(n);return o?V(Gh(o)):this._loadSvgIconFromConfig(new sr(i,null)).pipe(je(s=>this._cachedIconsByUrl.set(n,s)),P(s=>Gh(s)))}getNamedSvgIcon(i,n=""){let o=tS(n,i),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(n,i),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(i,a):un(XI(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(i){return i.svgText?V(Gh(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe(P(n=>Gh(n)))}_getSvgFromIconSetConfigs(i,n){let o=this._extractIconWithNameFromAnySet(i,n);if(o)return V(o);let s=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ut(c=>{let d=`Loading icon set URL: ${this._sanitizer.sanitize(Ht.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(d)),V(null)})));return fa(s).pipe(P(()=>{let a=this._extractIconWithNameFromAnySet(i,n);if(!a)throw XI(i);return a}))}_extractIconWithNameFromAnySet(i,n){for(let o=n.length-1;o>=0;o--){let s=n[o];if(s.svgText&&s.svgText.toString().indexOf(i)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,i,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(i){return this._fetchIcon(i).pipe(je(n=>i.svgText=n),P(()=>this._svgElementFromConfig(i)))}_loadSvgIconSetFromConfig(i){return i.svgText?V(null):this._fetchIcon(i).pipe(je(n=>i.svgText=n))}_extractSvgIconFromSet(i,n,o){let s=i.querySelector(`[id="${n}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(Pc(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(i){let n=this._document.createElement("DIV");n.innerHTML=i;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(i){let n=this._svgElementFromString(Pc("")),o=i.attributes;for(let s=0;sPc(d)),Si(()=>this._inProgressUrlFetches.delete(a)),ba());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(i,n,o){return this._svgIconConfigs.set(tS(i,n),o),this}_addSvgIconSetConfig(i,n){let o=this._iconSetConfigs.get(i);return o?o.push(n):this._iconSetConfigs.set(i,[n]),this}_svgElementFromConfig(i){if(!i.svgElement){let n=this._svgElementFromString(i.svgText);this._setSvgAttributes(n,i.options),i.svgElement=n}return i.svgElement}_getIconConfigFromResolvers(i,n){for(let o=0;oe?e.pathname+e.search:""}}var iS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Rz=iS.map(t=>`[${t}]`).join(", "),Az=/^url\(['"]?#(.*?)['"]?\)$/,Bi=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}get svgIcon(){return this._svgIcon}set svgIcon(i){i!==this._svgIcon&&(i?this._updateSvgIcon(i):this._svgIcon&&this._clearSvgElement(),this._svgIcon=i)}get fontSet(){return this._fontSet}set fontSet(i){let n=this._cleanupFontValue(i);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(i){let n=this._cleanupFontValue(i);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(i,n,o,s,a,c){this._elementRef=i,this._iconRegistry=n,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ne.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||i.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(i){if(!i)return["",""];let n=i.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${i}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let i=this._elementsWithExternalReferences;if(i&&i.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(i){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(i),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(i)}_clearSvgElement(){let i=this._elementRef.nativeElement,n=i.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=i.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let i=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>i.classList.remove(o)),n.forEach(o=>i.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&i.classList.remove(this._previousFontIconClass),this.fontIcon&&i.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(i){return typeof i=="string"?i.trim().split(" ")[0]:i}_prependPathToReferences(i){let n=this._elementsWithExternalReferences;n&&n.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${i}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(i){let n=i.querySelectorAll(Rz),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=n[s],l=c.getAttribute(a),d=l?l.match(Az):null;if(d){let u=o.get(c);u||(u=[],o.set(c,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(i){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),i){let[n,o]=this._splitIconName(i);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(We(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${n}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Iz),pt("aria-hidden"),h(kz),h(Ft),h(Mz,8))},e.\u0275cmp=z({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(q("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),kt(o.color?"mat-"+o.color:""),H("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",T],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[re,Y],ngContentSelectors:Dz,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let t=e;return t})(),Wh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})();var zi=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(zi||{}),qX="*";function st(t,e){return{type:zi.Trigger,name:t,definitions:e,options:{}}}function Ge(t,e=null){return{type:zi.Animate,styles:e,timings:t}}function Gb(t,e=null){return{type:zi.Group,steps:t,options:e}}function YX(t,e=null){return{type:zi.Sequence,steps:t,options:e}}function de(t){return{type:zi.Style,styles:t,offset:null}}function ke(t,e,r){return{type:zi.State,name:t,styles:e,options:r}}function jc(t){return{type:zi.Keyframes,steps:t}}function Le(t,e,r=null){return{type:zi.Transition,expr:t,animation:e,options:r}}function Oo(t=null){return{type:zi.AnimateChild,options:t}}function No(t,e,r=null){return{type:zi.Query,selector:t,animation:e,options:r}}function ZX(t,e){return{type:zi.Stagger,timings:t,animation:e}}var nS=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},rS=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,i=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,r/i.totalTime):1;i.setPosition(n)})}getPosition(){let e=this.players.reduce((r,i)=>r===null||i.totalTime>r.totalTime?i:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},QX="!";var Wb=class{constructor(e){this._box=e,this._destroyed=new C,this._resizeSubject=new C,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new oe(r=>{let i=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(ge(r=>r.some(i=>i.target===e)),Bl({bufferSize:1,refCount:!0}),te(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},oS=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=b(F),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,i]of this._observers)i.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(i,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new Wb(o)),this._observers.get(o).observe(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Oz=["notch"],Nz=["matFormFieldNotchedOutline",""],Fz=["*"],Pz=["textField"],Lz=["iconPrefixContainer"],jz=["textPrefixContainer"],Vz=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Bz=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function zz(t,e){t&1&&k(0,"span",19)}function Uz(t,e){if(t&1&&(_(0,"label",18),W(1,1),U(2,zz,1,0,"span",19),y()),t&2){let r=$(2);M("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),q("for",r._control.disableAutomaticLabeling?null:r._control.id),x(2),le(!r.hideRequiredMarker&&r._control.required?2:-1)}}function Hz(t,e){if(t&1&&U(0,Uz,3,5,"label",18),t&2){let r=$();le(r._hasFloatingLabel()?0:-1)}}function $z(t,e){t&1&&k(0,"div",5)}function Gz(t,e){}function Wz(t,e){if(t&1&&U(0,Gz,0,0,"ng-template",11),t&2){$(2);let r=gt(1);M("ngTemplateOutlet",r)}}function qz(t,e){if(t&1&&(_(0,"div",7),U(1,Wz,1,1,null,11),y()),t&2){let r=$();M("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),x(),le(r._forceDisplayInfixLabel()?-1:1)}}function Yz(t,e){t&1&&(_(0,"div",8,2),W(2,2),y())}function Zz(t,e){t&1&&(_(0,"div",9,3),W(2,3),y())}function Qz(t,e){}function Kz(t,e){if(t&1&&U(0,Qz,0,0,"ng-template",11),t&2){$();let r=gt(1);M("ngTemplateOutlet",r)}}function Xz(t,e){t&1&&(_(0,"div",12),W(1,4),y())}function Jz(t,e){t&1&&(_(0,"div",13),W(1,5),y())}function eU(t,e){t&1&&k(0,"div",14)}function tU(t,e){if(t&1&&(_(0,"div",16),W(1,6),y()),t&2){let r=$();M("@transitionMessages",r._subscriptAnimationState)}}function iU(t,e){if(t&1&&(_(0,"mat-hint",20),we(1),y()),t&2){let r=$(2);M("id",r._hintLabelId),x(),at(r.hintLabel)}}function nU(t,e){if(t&1&&(_(0,"div",17),U(1,iU,2,2,"mat-hint",20),W(2,7),k(3,"div",21),W(4,8),y()),t&2){let r=$();M("@transitionMessages",r._subscriptAnimationState),x(),le(r.hintLabel?1:-1)}}var sS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})(),rU=0,mS=new g("MatError"),CJ=(()=>{let e=class e{constructor(i,n){this.id=`mat-mdc-error-${rU++}`,i||n.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(n){return new(n||e)(pt("aria-live"),h(N))},e.\u0275dir=I({type:e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,o){n&2&&yt("id",o.id)},inputs:{id:"id"},standalone:!0,features:[se([{provide:mS,useExisting:e}])]});let t=e;return t})(),oU=0,aS=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${oU++}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("align",null),H("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),gS=new g("MatPrefix"),vS=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[se([{provide:gS,useExisting:e}])]});let t=e;return t})(),bS=new g("MatSuffix"),EJ=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[se([{provide:bS,useExisting:e}])]});let t=e;return t})(),_S=new g("FloatingLabelParent"),cS=(()=>{let e=class e{get floating(){return this._floating}set floating(i){this._floating=i,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(i){this._monitorResize=i,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(i){this._elementRef=i,this._floating=!1,this._monitorResize=!1,this._resizeObserver=b(oS),this._ngZone=b(F),this._parent=b(_S),this._resizeSubscription=new ne}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return sU(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function sU(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let i=r.scrollWidth;return r.remove(),i}var lS="mdc-line-ripple--active",qh="mdc-line-ripple--deactivating",dS=(()=>{let e=class e{constructor(i,n){this._elementRef=i,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(qh);o.propertyName==="opacity"&&a&&s.remove(lS,qh)},n.runOutsideAngular(()=>{i.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let i=this._elementRef.nativeElement.classList;i.remove(qh),i.add(lS)}deactivate(){this._elementRef.nativeElement.classList.add(qh)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F))},e.\u0275dir=I({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),uS=(()=>{let e=class e{constructor(i,n){this._elementRef=i,this._ngZone=n,this.open=!1}ngAfterViewInit(){let i=this._elementRef.nativeElement.querySelector(".mdc-floating-label");i?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(i){!this.open||!i?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${i}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F))},e.\u0275cmp=z({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&De(Oz,5),n&2){let s;L(s=j())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Y],attrs:Nz,ngContentSelectors:Fz,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(ye(),k(0,"div",1),_(1,"div",2,0),W(3),y(),k(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),aU={transitionMessages:st("transitionMessages",[ke("enter",de({opacity:1,transform:"translateY(0%)"})),Le("void => enter",[de({opacity:0,transform:"translateY(-5px)"}),Ge("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e});let t=e;return t})();var Bc=new g("MatFormField"),qb=new g("MAT_FORM_FIELD_DEFAULT_OPTIONS"),hS=0,fS="fill",cU="auto",pS="fixed",lU="translateY(-50%)",yS=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=yi(i)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||cU}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(i){let n=this._appearance,o=i||this._defaults?.appearance||fS;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||pS}set subscriptSizing(i){this._subscriptSizing=i||this._defaults?.subscriptSizing||pS}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(i){this._explicitFormFieldControl=i}constructor(i,n,o,s,a,c,l,d){this._elementRef=i,this._changeDetectorRef=n,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance=fS,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${hS++}`,this._hintLabelId=`mat-mdc-hint-${hS++}`,this._subscriptAnimationState="",this._destroyed=new C,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=b(Se),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),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(){let i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${i.controlType}`),i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe(te(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(i=>!i._isText),this._hasTextPrefix=!!this._prefixChildren.find(i=>i._isText),this._hasIconSuffix=!!this._suffixChildren.find(i=>!i._isText),this._hasTextSuffix=!!this._suffixChildren.find(i=>i._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ze(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Ua(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(te(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(i){let n=this._control?this._control.ngControl:null;return n&&n[i]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&i.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;n?i.push(n.id):this._hintLabel&&i.push(this._hintLabelId),o&&i.push(o.id)}else this._errorChildren&&i.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(i)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let i=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){i.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=n?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",l=`${s+a}px`,u=`calc(${c} * (${l} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;i.style.transform=`var( --mat-mdc-form-field-label-transform, - ${oU} translateX(${u}) - )`}_isAttachedToDom(){let i=this._elementRef.nativeElement;if(i.getRootNode){let n=i.getRootNode();return n&&n!==i}return document.documentElement.contains(i)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(F),h(bt),h(Ae),h(qb,8),h(rt,8),h(K))},e.\u0275cmp=z({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,oS,5),pe(s,oS,7),pe(s,jc,5),pe(s,mS,5),pe(s,vS,5),pe(s,pS,5),pe(s,sS,5)),n&2){let a;L(a=j())&&(o._labelChildNonStatic=a.first),L(a=j())&&(o._labelChildStatic=a.first),L(a=j())&&(o._formFieldControl=a.first),L(a=j())&&(o._prefixChildren=a),L(a=j())&&(o._suffixChildren=a),L(a=j())&&(o._errorChildren=a),L(a=j())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(De(Az,5),De(Oz,5),De(Nz,5),De(aS,5),De(dS,5),De(lS,5)),n&2){let s;L(s=j())&&(o._textField=s.first),L(s=j())&&(o._iconPrefixContainer=s.first),L(s=j())&&(o._textPrefixContainer=s.first),L(s=j())&&(o._floatingLabel=s.first),L(s=j())&&(o._notchedOutline=s.first),L(s=j())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){n&2&&H("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[se([{provide:Vc,useExisting:e},{provide:bS,useExisting:e}]),Y],ngContentSelectors:Pz,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let s=Ye();ye(Fz),U(0,Vz,1,1,"ng-template",null,0,wr),b(2,"div",4,1),Z("click",function(c){return be(s),_e(o._control.onContainerClick(c))}),U(4,Bz,1,0,"div",5),b(5,"div",6),U(6,Hz,2,2,"div",7)(7,$z,3,0,"div",8)(8,Gz,3,0,"div",9),b(9,"div",10),U(10,qz,1,1,null,11),W(11),y(),U(12,Yz,2,0,"div",12)(13,Zz,2,0,"div",13),y(),U(14,Qz,1,0,"div",14),y(),b(15,"div",15),U(16,Kz,2,1,"div",16)(17,Jz,5,2,"div",17),y()}if(n&2){let s;x(2),H("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),x(2),le(!o._hasOutline()&&!o._control.disabled?4:-1),x(2),le(o._hasOutline()?6:-1),x(),le(o._hasIconPrefix?7:-1),x(),le(o._hasTextPrefix?8:-1),x(2),le(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),x(2),le(o._hasTextSuffix?12:-1),x(),le(o._hasIconSuffix?13:-1),x(),le(o._hasOutline()?-1:14),x(),H("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),x(),le((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[aS,dS,lo,lS,sS],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius: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-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-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{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:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;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:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius: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:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius: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:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;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-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-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{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-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-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{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:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.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%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.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{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}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.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}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[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-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);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-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);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-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.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-outlined-text-field-container-shape))}}[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-outlined-text-field-container-shape))}}.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-outlined-text-field-container-shape) + 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-outlined-text-field-container-shape) + 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:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.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{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.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.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.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;color:var(--mat-form-field-enabled-select-arrow-color)}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.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-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.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-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(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 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(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 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(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 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(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[nU.transitionMessages]},changeDetection:0});let t=e;return t})(),Bc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,Gt,mh,ee]});let t=e;return t})();var yS=jt({passive:!0}),wS=(()=>{let e=class e{constructor(i,n){this._platform=i,this._ngZone=n,this._monitoredElements=new Map}monitor(i){if(!this._platform.isBrowser)return ct;let n=ot(i),o=this._monitoredElements.get(n);if(o)return o.subject;let s=new C,a="cdk-text-field-autofilled",c=l=>{l.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",c,yS),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:s,unlisten:()=>{n.removeEventListener("animationstart",c,yS)}}),s}stopMonitoring(i){let n=ot(i),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((i,n)=>this.stopMonitoring(n))}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var cU=new g("MAT_INPUT_VALUE_ACCESSOR"),lU=["button","checkbox","file","hidden","image","radio","range","reset","submit"],dU=0,DS=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=bi(i),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(i){this._id=i||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Vs.required)??!1}set required(i){this._required=bi(i)}get type(){return this._type}set type(i){this._type=i||"text",this._validateType(),!this._isTextarea&&ub().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get value(){return this._inputValueAccessor.value}set value(i){i!==this.value&&(this._inputValueAccessor.value=i,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(i){this._readonly=bi(i)}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,n,o,s,a,c,l,d,u,f){this._elementRef=i,this._platform=n,this.ngControl=o,this._autofillMonitor=d,this._formField=f,this._uid=`mat-input-${dU++}`,this.focused=!1,this.stateChanges=new C,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(S=>ub().has(S)),this._iOSKeyupListener=S=>{let E=S.target;!E.value&&E.selectionStart===0&&E.selectionEnd===0&&(E.setSelectionRange(1,1),E.setSelectionRange(0,0))};let p=this._elementRef.nativeElement,_=p.nodeName.toLowerCase();this._inputValueAccessor=l||p,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&u.runOutsideAngular(()=>{i.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Eo(c,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=_==="select",this._isTextarea=_==="textarea",this._isInFormField=!!f,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(i=>{this.autofilled=i.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(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(i){this._elementRef.nativeElement.focus(i)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(i){i!==this.focused&&(this.focused=i,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let i=this._elementRef.nativeElement.value;this._previousNativeValue!==i&&(this._previousNativeValue=i,this.stateChanges.next())}_dirtyCheckPlaceholder(){let i=this._getPlaceholder();if(i!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=i,i?n.setAttribute("placeholder",i):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){lU.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let i=this._elementRef.nativeElement.validity;return i&&i.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let i=this._elementRef.nativeElement,n=i.options[0];return this.focused||i.multiple||!this.empty||!!(i.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let i=this._elementRef.nativeElement;return this._isNativeSelect&&(i.multiple||i.size>1)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(wi,10),h(Nc,8),h(Hs,8),h(Ji),h(cU,10),h(wS),h(F),h(Vc,8))},e.\u0275dir=I({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){n&1&&Z("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(yt("id",o.id)("disabled",o.disabled)("required",o.required),q("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),H("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[se([{provide:jc,useExisting:e}]),Me]});let t=e;return t})(),CS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,Bc,Bc,xS,ee]});let t=e;return t})();var qt=ws({source:"[Core -> Auth]",events:{Login:Tt(),"Login Success":Tt(),"Login Failure":Tt(),Logout:Jn(),"Logout Success":Jn(),"Logout Failure":Tt()}});var Kh=new g("CLIENT");var Yb={production:!0,apiUrl:"rest",backendBaseUrl:"http://localhost:3000",websocketUrl:"ws://localhost:3000"};var zc=class{get getMock(){return this.mock}get getMockDelay(){return this.mockDelay}get getMethod(){return this.method}get getUrl(){return this.url}get getParams(){return this.params}get getBody(){return this.body}get getOptions(){return this.options}constructor(e,r,i,n,o){this.mockDelay=0,this.options={},this.method=e,this.params=i,this.options=n||{},o&&(this.mock=o),this.url="",this.mock?this.url=`/mock/${r}`:this.url=`${Yb.backendBaseUrl}/${Yb.apiUrl}/${r}`}},$s=class extends zc{constructor(e,r,i,n=!0){let o=new In;r&&(o=r),super("GET",e,o,i,n)}},Nr=class extends zc{constructor(e,r,i=!0){super("POST",e,void 0,void 0,i),this.body=r}},Xh=class extends zc{constructor(e,r=!0){super("PUT",e,void 0,void 0,r)}};var Jh=class extends Nr{constructor(e){super("login/authenticate",w({},e)),this.mock&&(this.url+="/post-response-body-200.json")}};var ef=class extends Xh{constructor(){super("user/logout"),this.mock&&(this.url+="/put-response-body-200.json")}};var tf=Sn(tr,t=>t.auth.isAuthenticated),ES=Sn(tr,t=>t.auth.user);var lee=(()=>{let e=class e{constructor(i,n,o,s){this.apiClient=i,this.actions$=n,this.store=o,this.router=s,this.login$=Mn(()=>this.actions$.pipe(kn(qt.login),va(this.store.select(tf)),ge(([a,c])=>!c),Fe(([a,c])=>this.apiClient.serviceCall(new Jh({email:a.email,password:a.password})).pipe(P(l=>qt.loginSuccess({user:l})),ut(l=>[qt.loginFailure({error:l})]))))),this.loginRedirect$=Mn(()=>this.actions$.pipe(kn(qt.loginSuccess),je(()=>this.router.navigate([`${ti.MODE_SELECT.ROOT}`]))),{dispatch:!1}),this.logout$=Mn(()=>this.actions$.pipe(kn(qt.logout),Fe(()=>this.apiClient.serviceCall(new ef).pipe(P(()=>qt.logoutSuccess()),ut(a=>[qt.logoutFailure({error:a})]))))),this.logoutRedirect$=Mn(()=>this.actions$.pipe(kn(qt.logoutSuccess),je(()=>this.router.navigate([`${ti.AUTH.ROOT}`]))),{dispatch:!1})}};e.\u0275fac=function(n){return new(n||e)(m(Kh),m(Wu),m(ei),m(vi))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var hU={isAuthenticated:!1,user:{},error:null},fee=Hu(hU,Wt(qt.loginSuccess,(t,{user:e})=>Q(w({},t),{isAuthenticated:!0,user:w({},e),error:null})),Wt(qt.loginFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(qt.logoutSuccess,()=>({isAuthenticated:!1,user:{},token:null,error:null})),Wt(qt.logoutFailure,(t,{error:e})=>Q(w({},t),{error:e})));var IS=(()=>{let e=class e{constructor(i){this.store=i,this.isAuthenticated$=this.store.select(tf),this.user$=this.store.select(ES)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ei))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var Uc=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Fr=class extends Uc{constructor(e,r,i,n,o){super(),this.component=e,this.viewContainerRef=r,this.injector=i,this.componentFactoryResolver=n,this.projectableNodes=o}},xi=class extends Uc{constructor(e,r,i,n){super(),this.templateRef=e,this.viewContainerRef=r,this.context=i,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Zb=class extends Uc{constructor(e){super(),this.element=e instanceof N?e.nativeElement:e}},Gs=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Fr)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof xi)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Zb)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Hc=class extends Gs{constructor(e,r,i,n,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(e){let i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=i.create(e.injector||this._defaultInjector||Se.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let r=e.viewContainerRef,i=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(n=>this.outletElement.appendChild(n)),i.detectChanges(),this.setDisposeFn(()=>{let n=r.indexOf(i);n!==-1&&r.remove(n)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var To=(()=>{let e=class e extends Gs{constructor(i,n,o){super(),this._componentFactoryResolver=i,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new B,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(i){this.hasAttached()&&!i&&!this._isInitialized||(this.hasAttached()&&super.detach(),i&&super.attach(i),this._attachedPortal=i||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(i){i.setAttachedHost(this);let n=i.viewContainerRef!=null?i.viewContainerRef:this._viewContainerRef,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),a=n.createComponent(s,n.length,i.injector||n.injector,i.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=i,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(i){i.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=i,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let i=this._viewContainerRef.element.nativeElement;return i.nodeType===i.ELEMENT_NODE?i:i.parentNode}};e.\u0275fac=function(n){return new(n||e)(h(Yi),h(Ve),h(K))},e.\u0275dir=I({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ae]});let t=e;return t})();var Pr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var nf=class{};function rf(t){return t&&typeof t.connect=="function"&&!(t instanceof sr)}var Ws=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(Ws||{}),$c=new g("_ViewRepeater"),qs=class{applyChanges(e,r,i,n,o){e.forEachOperation((s,a,c)=>{let l,d;if(s.previousIndex==null){let u=i(s,a,c);l=r.createEmbeddedView(u.templateRef,u.context,u.index),d=Ws.INSERTED}else c==null?(r.remove(a),d=Ws.REMOVED):(l=r.get(a),r.move(l,c),d=Ws.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}};var Ys=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,i=!0,n){this._multiple=e,this._emitChanges=i,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new C,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,i=new Set(e);e.forEach(o=>this._markSelected(o)),r.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,r){if(this.compareWith){r=r??this._selection;for(let i of r)if(this.compareWith(e,i))return i;return e}else return e}};var of=(()=>{let e=class e{constructor(){this._listeners=[]}notify(i,n){for(let o of this._listeners)o(i,n)}listen(i){return this._listeners.push(i),()=>{this._listeners=this._listeners.filter(n=>i!==n)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var pU=20,Zs=(()=>{let e=class e{constructor(i,n,o){this._ngZone=i,this._platform=n,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(i){this.scrollContainers.has(i)||this.scrollContainers.set(i,i.elementScrolled().subscribe(()=>this._scrolled.next(i)))}deregister(i){let n=this.scrollContainers.get(i);n&&(n.unsubscribe(),this.scrollContainers.delete(i))}scrolled(i=pU){return this._platform.isBrowser?new oe(n=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(Fl(i)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):V()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((i,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(i,n){let o=this.getAncestorScrollContainers(i);return this.scrolled(n).pipe(ge(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(i){let n=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,i)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(i,n){let o=ot(n),s=i.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let i=this._getWindow();return Go(i.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(m(F),m(Ae),m(K,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var mU=20,Pn=(()=>{let e=class e{constructor(i,n,o){this._platform=i,this._change=new C,this._changeListener=s=>{this._change.next(s)},this._document=o,n.runOutsideAngular(()=>{if(i.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let i=this._getWindow();i.removeEventListener("resize",this._changeListener),i.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let i={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),i}getViewportRect(){let i=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:i.top,left:i.left,bottom:i.top+o,right:i.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let i=this._document,n=this._getWindow(),o=i.documentElement,s=o.getBoundingClientRect(),a=-s.top||i.body.scrollTop||n.scrollY||o.scrollTop||0,c=-s.left||i.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(i=mU){return i>0?this._change.pipe(Fl(i)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let i=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:i.innerWidth,height:i.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F),m(K,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Fn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Gc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[An,Fn,An,Fn]});let t=e;return t})();var MS=HE(),Qb=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=vt(-this._previousScrollPosition.left),e.style.top=vt(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,i=e.style,n=r.style,o=i.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),MS&&(i.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),MS&&(i.scrollBehavior=o,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,i=this._viewportRuler.getViewportSize();return r.scrollHeight>i.height||r.scrollWidth>i.width}};var Kb=class{constructor(e,r,i,n){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(ge(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},af=class{enable(){}disable(){}attach(){}};function Xb(t,e){return e.some(r=>{let i=t.bottomr.bottom,o=t.rightr.right;return i||n||o||s})}function kS(t,e){return e.some(r=>{let i=t.topr.bottom,o=t.leftr.right;return i||n||o||s})}var Jb=class{constructor(e,r,i,n){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();Xb(r,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},gU=(()=>{let e=class e{constructor(i,n,o,s){this._scrollDispatcher=i,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new af,this.close=a=>new Kb(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Qb(this._viewportRuler,this._document),this.reposition=a=>new Jb(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(n){return new(n||e)(m(Zs),m(Pn),m(F),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Lr=class{constructor(e){if(this.scrollStrategy=new af,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let i of r)e[i]!==void 0&&(this[i]=e[i])}}};var e_=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var FS=(()=>{let e=class e{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let n=this._attachedOverlays.indexOf(i);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vU=(()=>{let e=class e extends FS{constructor(i,n){super(i),this._ngZone=n,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(i){super.add(i),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(F,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bU=(()=>{let e=class e extends FS{constructor(i,n,o){super(i),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=At(s)},this._clickListener=s=>{let a=At(s),c=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){let u=l[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(TS(u.overlayElement,a)||TS(u.overlayElement,c))break;let f=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(s)):f.next(s)}}}add(i){if(super.add(i),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ae),m(F,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function TS(t,e){let r=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===t)return!0;i=r&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var PS=(()=>{let e=class e{constructor(i,n){this._platform=n,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||Ic()){let o=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;sthis._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new C,this._outsidePointerEvents=new C,this._renders=new C,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=bs(()=>Ba(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),$t(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=w(w({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Q(w({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=vt(this._config.width),e.height=vt(this._config.height),e.minWidth=vt(this._config.minWidth),e.minHeight=vt(this._config.minHeight),e.maxWidth=vt(this._config.maxWidth),e.maxHeight=vt(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,i){let n=go(r||[]).filter(o=>!!o);n.length&&(i?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(te(Ze(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},RS="cdk-overlay-connected-position-bounding-box",_U=/([A-Za-z%]+)$/,i_=class{get positions(){return this._preferredPositions}constructor(e,r,i,n,o){this._viewportRuler=r,this._document=i,this._platform=n,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C,this._resizeSubscription=ne.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(RS),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,r=this._overlayRect,i=this._viewportRect,n=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,n,a),l=this._getOverlayPoint(c,r,a),d=this._getOverlayFit(l,r,i,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,i)){o.push({position:a,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ro(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(RS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,i){let n;if(i.originX=="center")n=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;n=i.originX=="start"?s:a}r.left<0&&(n-=r.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:n,y:o}}_getOverlayPoint(e,r,i){let n;i.overlayX=="center"?n=-r.width/2:i.overlayX==="start"?n=this._isRtl()?-r.width:0:n=this._isRtl()?0:-r.width;let o;return i.overlayY=="center"?o=-r.height/2:o=i.overlayY=="top"?0:-r.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,r,i,n){let o=OS(r),{x:s,y:a}=e,c=this._getOffset(n,"x"),l=this._getOffset(n,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-i.width,f=0-a,p=a+o.height-i.height,_=this._subtractOverflows(o.width,d,u),S=this._subtractOverflows(o.height,f,p),E=_*S;return{visibleArea:E,isCompletelyWithinViewport:o.width*o.height===E,fitsInViewportVertically:S===o.height,fitsInViewportHorizontally:_==o.width}}_canFitWithFlexibleDimensions(e,r,i){if(this._hasFlexibleDimensions){let n=i.bottom-r.y,o=i.right-r.x,s=AS(this._overlayRef.getConfig().minHeight),a=AS(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||s!=null&&s<=n,l=e.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(e,r,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=OS(r),o=this._viewportRect,s=Math.max(e.x+n.width-o.width,0),a=Math.max(e.y+n.height-o.height,0),c=Math.max(o.top-i.top-e.y,0),l=Math.max(o.left-i.left-e.x,0),d=0,u=0;return n.width<=o.width?d=l||-s:d=e.x_&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-_/2)}let c=r.overlayX==="start"&&!n||r.overlayX==="end"&&n,l=r.overlayX==="end"&&!n||r.overlayX==="start"&&n,d,u,f;if(l)f=i.width-e.x+this._viewportMargin*2,d=e.x-this._viewportMargin;else if(c)u=e.x,d=i.right-e.x;else{let p=Math.min(i.right-e.x+i.left,e.x),_=this._lastBoundingBoxSize.width;d=p*2,u=e.x-p,d>_&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-_/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(e,r){let i=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=vt(i.height),n.top=vt(i.top),n.bottom=vt(i.bottom),n.width=vt(i.width),n.left=vt(i.left),n.right=vt(i.right),r.overlayX==="center"?n.alignItems="center":n.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?n.justifyContent="center":n.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=vt(o)),s&&(n.maxWidth=vt(s))}this._lastBoundingBoxSize=i,Ro(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Ro(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ro(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let i={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){let d=this._viewportRuler.getViewportScrollPosition();Ro(i,this._getExactOverlayY(r,e,d)),Ro(i,this._getExactOverlayX(r,e,d))}else i.position="static";let a="",c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(n?i.maxHeight=vt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=vt(s.maxWidth):o&&(i.maxWidth="")),Ro(this._pane.style,i)}_getExactOverlayY(e,r,i){let n={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;n.bottom=`${s-(o.y+this._overlayRect.height)}px`}else n.top=vt(o.y);return n}_getExactOverlayX(e,r,i){let n={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(o.x+this._overlayRect.width)}px`}else n.left=vt(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:kS(e,i),isOriginOutsideView:Xb(e,i),isOverlayClipped:kS(r,i),isOverlayOutsideView:Xb(r,i)}}_subtractOverflows(e,...r){return r.reduce((i,n)=>i-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&go(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof N)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+r,height:i,width:r}}};function Ro(t,e){for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function AS(t){if(typeof t!="number"&&t!=null){let[e,r]=t.split(_U);return!r||r==="px"?parseFloat(e):null}return t||null}function OS(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function yU(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var NS="cdk-global-overlay-wrapper",n_=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(NS),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:s,maxHeight:a}=i,c=(n==="100%"||n==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",p="",_="",S="";c?S="flex-start":d==="center"?(S="center",f?_=u:p=u):f?d==="left"||d==="end"?(S="flex-end",p=u):(d==="right"||d==="start")&&(S="flex-start",_=u):d==="left"||d==="start"?(S="flex-start",p=u):(d==="right"||d==="end")&&(S="flex-end",_=u),e.position=this._cssPosition,e.marginLeft=c?"0":p,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":_,r.justifyContent=S,r.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,i=r.style;r.classList.remove(NS),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},wU=(()=>{let e=class e{constructor(i,n,o,s){this._viewportRuler=i,this._document=n,this._platform=o,this._overlayContainer=s}global(){return new n_}flexibleConnectedTo(i){return new i_(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(n){return new(n||e)(m(Pn),m(K),m(Ae),m(PS))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xU=0,It=(()=>{let e=class e{constructor(i,n,o,s,a,c,l,d,u,f,p,_){this.scrollStrategies=i,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=d,this._directionality=u,this._location=f,this._outsideClickDispatcher=p,this._animationsModuleType=_}create(i){let n=this._createHostElement(),o=this._createPaneElement(n),s=this._createPortalOutlet(o),a=new Lr(i);return a.direction=a.direction||this._directionality.value,new t_(s,n,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(_t))}position(){return this._positionBuilder}_createPaneElement(i){let n=this._document.createElement("div");return n.id=`cdk-overlay-${xU++}`,n.classList.add("cdk-overlay-pane"),i.appendChild(n),n}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get(fi)),new Hc(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(n){return new(n||e)(m(gU),m(PS),m(Yi),m(wU),m(vU),m(Se),m(F),m(K),m(bt),m(Cr),m(bU),m(rt,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),DU=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],LS=new g("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=v(It);return()=>t.scrollStrategies.reposition()}}),Wc=(()=>{let e=class e{constructor(i){this.elementRef=i}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),r_=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(i){this._offsetX=i,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(i){this._offsetY=i,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(i){this._disposeOnNavigation=i}constructor(i,n,o,s,a){this._overlay=i,this._dir=a,this._backdropSubscription=ne.EMPTY,this._attachSubscription=ne.EMPTY,this._detachSubscription=ne.EMPTY,this._positionSubscription=ne.EMPTY,this._disposeOnNavigation=!1,this._ngZone=v(F),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new B,this.positionChange=new B,this.attach=new B,this.detach=new B,this.overlayKeydown=new B,this.overlayOutsideClick=new B,this._templatePortal=new xi(n,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(i){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),i.origin&&this.open&&this._position.apply()),i.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=DU);let i=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=i.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=i.detachments().subscribe(()=>this.detach.emit()),i.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Vt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),s=At(n);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let i=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Lr({direction:this._dir,positionStrategy:i,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(i){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return i.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let i=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(i),i}_getOrigin(){return this.origin instanceof Wc?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Wc?this.origin.elementRef.nativeElement:this.origin instanceof N?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(i=>{this.backdropClick.emit(i)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(lp(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(It),h(Re),h(Ve),h(LS),h(bt,8))},e.\u0275dir=I({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",T],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",T],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",T],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",T],push:[2,"cdkConnectedOverlayPush","push",T],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",T]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[re,Me]});let t=e;return t})();function CU(t){return()=>t.scrollStrategies.reposition()}var EU={provide:LS,deps:[It],useFactory:CU},jr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[It,EU],imports:[An,Pr,Gc,Gc]});let t=e;return t})();var IU=["mat-menu-item",""],SU=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],MU=["mat-icon, [matMenuItemIcon]","*"];function kU(t,e){t&1&&(li(),b(0,"svg",2),k(1,"polygon",3),y())}var TU=["*"];function RU(t,e){if(t&1){let r=Ye();b(0,"div",0),Z("keydown",function(n){be(r);let o=$();return _e(o._handleKeydown(n))})("click",function(){be(r);let n=$();return _e(n.closed.emit("click"))})("@transformMenu.start",function(n){be(r);let o=$();return _e(o._onAnimationStart(n))})("@transformMenu.done",function(n){be(r);let o=$();return _e(o._onAnimationDone(n))}),b(1,"div",1),W(2),y()()}if(t&2){let r=$();kt(r._classList),M("id",r.panelId)("@transformMenu",r._panelAnimationState),q("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var s_=new g("MAT_MENU_PANEL"),Yc=(()=>{let e=class e{constructor(i,n,o,s,a){this._elementRef=i,this._document=n,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new C,this._focused=new C,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(i,n){this._focusMonitor&&i?this._focusMonitor.focusVia(this._getHostElement(),i,n):this._getHostElement().focus(n),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(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Ge("120ms cubic-bezier(0, 0, 0.2, 1)",de({opacity:1,transform:"scale(1)"}))),Le("* => void",Ge("100ms 25ms linear",de({opacity:0})))]),fadeInItems:st("fadeInItems",[ke("showing",de({opacity:1})),Le("void => *",[de({opacity:0}),Ge("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Rte=cf.fadeInItems,Ate=cf.transformMenu,OU=0,NU=new g("mat-menu-default-options",{providedIn:"root",factory:FU});function FU(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Qs=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(i){this._xPosition=i,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(i){this._yPosition=i,this.setPositionClasses()}set panelClass(i){let n=this._previousPanelClass,o=w({},this._classList);n&&n.length&&n.split(" ").forEach(s=>{o[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(s=>{o[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(i){this.panelClass=i}constructor(i,n,o,s){this._elementRef=i,this._changeDetectorRef=s,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new Pt,this._classList={},this._panelAnimationState="void",this._animationDone=new C,this.closed=new B,this.close=this.closed,this.panelId=`mat-menu-panel-${OU++}`,this._injector=v(Se),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Rn(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),Oe(i=>Ze(...i.map(n=>n._focused)))).subscribe(i=>this._keyManager.updateActiveItem(i)),this._directDescendantItems.changes.subscribe(i=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=i.toArray(),s=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[s]&&!o[s].disabled?n.setActiveItem(s):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),Oe(n=>Ze(...n.map(o=>o._hovered))))}addItem(i){}removeItem(i){}_handleKeydown(i){let n=i.keyCode,o=this._keyManager;switch(n){case 27:Vt(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(i);return}i.stopPropagation()}focusFirstItem(i="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=$t(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(i){if(this._baseElevation===null){let c=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(c)}let n=Math.min(this._baseElevation+i,24),o=`${this._elevationPrefix}${n}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!s||s===this._previousElevation){let a=w({},this._classList);this._previousElevation&&(a[this._previousElevation]=!1),a[o]=!0,this._previousElevation=o,this._classList=a}}setPositionClasses(i=this.xPosition,n=this.yPosition){this._classList=Q(w({},this._classList),{"mat-menu-before":i==="before","mat-menu-after":i==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(i){this._animationDone.next(i),this._isAnimating=!1}_onAnimationStart(i){this._isAnimating=!0,i.toState==="enter"&&this._keyManager.activeItemIndex===0&&(i.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Qe(this._allItems)).subscribe(i=>{this._directDescendantItems.reset(i.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F),h(NU),h(ue))},e.\u0275cmp=z({type:e,selectors:[["mat-menu"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,AU,5),pe(s,Yc,5),pe(s,Yc,4)),n&2){let a;L(a=j())&&(o.lazyContent=a.first),L(a=j())&&(o._allItems=a),L(a=j())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&De(Re,5),n&2){let s;L(s=j())&&(o.templateRef=s.first)}},hostVars:3,hostBindings:function(n,o){n&2&&q("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",T],hasBackdrop:[2,"hasBackdrop","hasBackdrop",i=>i==null?null:T(i)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[se([{provide:s_,useExisting:e}]),re,Y],ngContentSelectors:TU,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(ye(),U(0,RU,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-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}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.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:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform: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:[cf.transformMenu,cf.fadeInItems]},changeDetection:0});let t=e;return t})(),VS=new g("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=v(It);return()=>t.scrollStrategies.reposition()}});function PU(t){return()=>t.scrollStrategies.reposition()}var LU={provide:VS,deps:[It],useFactory:PU},jS=jt({passive:!0});var BS=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(i){this.menu=i}get menu(){return this._menu}set menu(i){i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._parentMaterialMenu,this._menuCloseSubscription=i.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(i,n,o,s,a,c,l,d,u){this._overlay=i,this._element=n,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=l,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ne.EMPTY,this._hoverSubscription=ne.EMPTY,this._menuCloseSubscription=ne.EMPTY,this._changeDetectorRef=v(ue),this._handleTouchStart=f=>{Co(f)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new B,this.onMenuOpen=this.menuOpened,this.menuClosed=new B,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof Qs?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,jS)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,jS),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let i=this.menu;if(this._menuOpen||!i)return;let n=this._createOverlay(i),o=n.getConfig(),s=o.positionStrategy;this._setPosition(i,s),o.hasBackdrop=i.hasBackdrop==null?!this.triggersSubmenu():i.hasBackdrop,n.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(i),i instanceof Qs&&(i._startAnimation(),i._directDescendantItems.changes.pipe(te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(i,n){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(i){if(!this._overlayRef||!this.menuOpen)return;let n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(i==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Qs?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(ge(o=>o.toState==="void"),We(1),te(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(i){i.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,this._setMenuElevation(i),i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(i){if(i.setElevation){let n=0,o=i.parentMenu;for(;o;)n++,o=o.parentMenu;i.setElevation(n)}}_setIsMenuOpen(i){i!==this._menuOpen&&(this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i),this._changeDetectorRef.markForCheck())}_createOverlay(i){if(!this._overlayRef){let n=this._getOverlayConfig(i);this._subscribeToPositions(i,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(i){return new Lr({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:i.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:i.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(i,n){i.setPositionClasses&&n.positionChanges.subscribe(o=>{let s=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>i.setPositionClasses(s,a)):i.setPositionClasses(s,a)})}_setPosition(i,n){let[o,s]=i.xPosition==="before"?["end","start"]:["start","end"],[a,c]=i.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,d]=[a,c],[u,f]=[o,s],p=0;if(this.triggersSubmenu()){if(f=o=i.xPosition==="before"?"start":"end",s=u=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let _=this._parentMaterialMenu.items.first;this._parentInnerPadding=_?_._getHostElement().offsetTop:0}p=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else i.overlapTrigger||(l=a==="top"?"bottom":"top",d=c==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:u,overlayY:a,offsetY:p},{originX:s,originY:l,overlayX:f,overlayY:a,offsetY:p},{originX:o,originY:d,overlayX:u,overlayY:c,offsetY:-p},{originX:s,originY:d,overlayX:f,overlayY:c,offsetY:-p}])}_menuClosingActions(){let i=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:V(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ge(a=>a!==this._menuItemInstance),ge(()=>this._menuOpen)):V();return Ze(i,o,s,n)}_handleMousedown(i){Do(i)||(this._openedBy=i.button===0?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}_handleKeydown(i){let n=i.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ge(i=>i===this._menuItemInstance&&!i.disabled),pa(0,da)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Qs&&this.menu._isAnimating?this.menu._animationDone.pipe(We(1),pa(0,da),te(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(i){return(!this._portal||this._portal.templateRef!==i.templateRef)&&(this._portal=new xi(i.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(n){return new(n||e)(h(It),h(N),h(Ve),h(VS),h(s_,8),h(Yc,10),h(bt,8),h(Et),h(F))},e.\u0275dir=I({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&Z("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&q("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let t=e;return t})(),zS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[LU],imports:[Gt,en,ee,jr,Fn,ee]});let t=e;return t})();function VU(t,e){if(t&1&&(b(0,"div",12)(1,"div",13),we(2),y(),b(3,"div",14),we(4),y()()),t&2){let r=e.ngIf;x(2),at(r.name),x(2),at(r.role)}}var US=(()=>{let e=class e{constructor(i){this.authFacadeService=i,this.RoutesList=ti,this.user$=this.authFacadeService.user$}logout(){this.authFacadeService.dispatch(qt.logout())}};e.\u0275fac=function(n){return new(n||e)(h(IS))},e.\u0275cmp=z({type:e,selectors:[["ms-user-navigation"]],decls:14,vars:6,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["mat-button","",3,"matMenuTriggerFor"],[1,"user-navigation-content-wrapper","flex","items-center","gap-2"],[1,"content-1","flex","items-center"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["class","content-2 right text-left ml-2",4,"ngIf"],[1,"content-3"],["fontSet","ms","fontIcon","icon-CaretDown",1,"mat-white","rotate-icon","text-base"],[1,"ms-mat-menu"],["mat-menu-item","",3,"click"],["fontSet","ms","fontIcon","icon-SignOut"],[1,"content-2","right","text-left","ml-2"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p3-default"]],template:function(n,o){if(n&1){let s=Ye();b(0,"button",2,0)(2,"div",3)(3,"div",4),k(4,"mat-icon",5),y(),U(5,VU,5,2,"div",6),ru(6,"async"),b(7,"div",7),k(8,"mat-icon",8),y()()(),b(9,"mat-menu",9,1)(11,"button",10),Z("click",function(){return be(s),_e(o.logout())}),k(12,"mat-icon",11),we(13," Logout "),y()()}if(n&2){let s=gt(1),a=gt(10);M("matMenuTriggerFor",a),x(5),M("ngIf",ou(6,4,o.user$)),x(3),Xt("transform",s.menuOpen?"rotate(180deg)":"rotate(0)")}},dependencies:[Er,Gh,Li,Qs,Yc,BS,Tu],styles:[".rotate-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.content-2[_ngcontent-%COMP%]{color:var(--backgrounds-50)}"]});let t=e;return t})();var HS=(()=>{let e=class e{constructor(){this.search=new Io}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-header"]],decls:24,vars:1,consts:[[1,"header-wrapper"],[1,"left","flex","justify-center","items-center"],[1,"icon"],["mat-icon-button",""],["fontSet","ms","fontIcon","icon-Nav",1,"mat-white"],[1,"logo","ml-4"],["src","./assets/logo/logo-header.svg","alt",""],[1,"right","flex","justify-center","items-center","gap-1"],[1,"form-field-container","ms-white-form-field"],["subscriptSizing","dynamic","floatLabel","auto"],["matInput","","placeholder","Search",3,"formControl"],["matPrefix","","fontSet","ms","fontIcon","icon-MagnifyingGlass",1,"mat-white"],["fontSet","ms","fontIcon","icon-Question",1,"mat-white"],["fontSet","ms","fontIcon","icon-Bell",1,"mat-white"],[1,"vertical-divider","h-9"],[1,"icon","cursor-pointer"]],template:function(n,o){n&1&&(b(0,"header",0)(1,"div",1)(2,"div",2)(3,"button",3),k(4,"mat-icon",4),y()(),b(5,"div",5),k(6,"img",6),y()(),b(7,"div",7)(8,"div",8)(9,"mat-form-field",9),k(10,"input",10)(11,"mat-icon",11),y()(),b(12,"div")(13,"button",3),k(14,"mat-icon",12),y()(),b(15,"div")(16,"button",3),k(17,"mat-icon",13),y()(),k(18,"div",14),b(19,"div"),k(20,"ms-user-navigation"),y(),b(21,"div",15)(22,"button",3),k(23,"mat-icon",4),y()()()()),n&2&&(x(10),M("formControl",o.search))},dependencies:[ZI,Li,DS,_S,gS,zh,FI,Ub,US],styles:[".header-wrapper[_ngcontent-%COMP%]{height:56px;padding:0 10px;background:linear-gradient(to right,var(--header-left),var(--header-right));display:flex;justify-content:space-between}"]});let t=e;return t})();var UU=Pm;function HU(t){return!!t[UU]}var $U=Symbol("__destroy"),qS=Symbol("__decoratorApplied");function YS(t){return typeof t=="string"?Symbol(`__destroy__${t}`):$U}function GU(t){t.prototype[qS]=!0}function ZS(t,e){t[e]||(t[e]=new C)}function QS(t,e){t[e]&&(t[e].next(),t[e].complete(),t[e]=null)}function KS(t){t instanceof ne&&t.unsubscribe()}function WU(t){Array.isArray(t)&&t.forEach(KS)}function XS(t,e){return function(){if(t&&t.call(this),QS(this,YS()),e.arrayName&&WU(this[e.arrayName]),e.checkProperties)for(let r in this)e.blackList?.includes(r)||KS(this[r])}}function qU(t,e){t.prototype.ngOnDestroy=XS(t.prototype.ngOnDestroy,e)}function YU(t,e){let r=t.\u0275pipe;r.onDestroy=XS(r.onDestroy,e)}function JS(t={}){return e=>{HU(e)?YU(e,t):qU(e,t),GU(e)}}var $S=7,GS=Symbol("CheckerHasBeenSet");function ZU(t,e){t[GS]||QU()||(WS(()=>He(Promise.resolve()).pipe(Fe(()=>{let r;try{r=Ow(t)}catch{r=null}let i=r?.lView;if(i==null)return ct;let n=i[$S]||(i[$S]=[]),o=new C;return n.push(function(){WS(()=>{o.next(),o.complete()})}),o}),Fe(()=>Promise.resolve())).subscribe(()=>{(e.observed??e.observers.length>0)&&console.warn(KU(t))})),t[GS]=!0)}function QU(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"}function WS(t){let e=ht.Zone;return!!e&&typeof e.root?.run=="function"?e.root.run(t):t()}function KU(t){return` + ${lU} translateX(${u}) + )`}_isAttachedToDom(){let i=this._elementRef.nativeElement;if(i.getRootNode){let n=i.getRootNode();return n&&n!==i}return document.documentElement.contains(i)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(F),h(bt),h(Ae),h(qb,8),h(rt,8),h(K))},e.\u0275cmp=z({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,sS,5),pe(s,sS,7),pe(s,Vc,5),pe(s,gS,5),pe(s,bS,5),pe(s,mS,5),pe(s,aS,5)),n&2){let a;L(a=j())&&(o._labelChildNonStatic=a.first),L(a=j())&&(o._labelChildStatic=a.first),L(a=j())&&(o._formFieldControl=a.first),L(a=j())&&(o._prefixChildren=a),L(a=j())&&(o._suffixChildren=a),L(a=j())&&(o._errorChildren=a),L(a=j())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(De(Pz,5),De(Lz,5),De(jz,5),De(cS,5),De(uS,5),De(dS,5)),n&2){let s;L(s=j())&&(o._textField=s.first),L(s=j())&&(o._iconPrefixContainer=s.first),L(s=j())&&(o._textPrefixContainer=s.first),L(s=j())&&(o._floatingLabel=s.first),L(s=j())&&(o._notchedOutline=s.first),L(s=j())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){n&2&&H("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[se([{provide:Bc,useExisting:e},{provide:_S,useExisting:e}]),Y],ngContentSelectors:Bz,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let s=Ye();ye(Vz),U(0,Hz,1,1,"ng-template",null,0,Er),_(2,"div",4,1),Z("click",function(c){return be(s),_e(o._control.onContainerClick(c))}),U(4,$z,1,0,"div",5),_(5,"div",6),U(6,qz,2,2,"div",7)(7,Yz,3,0,"div",8)(8,Zz,3,0,"div",9),_(9,"div",10),U(10,Kz,1,1,null,11),W(11),y(),U(12,Xz,2,0,"div",12)(13,Jz,2,0,"div",13),y(),U(14,eU,1,0,"div",14),y(),_(15,"div",15),U(16,tU,2,1,"div",16)(17,nU,5,2,"div",17),y()}if(n&2){let s;x(2),H("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),x(2),le(!o._hasOutline()&&!o._control.disabled?4:-1),x(2),le(o._hasOutline()?6:-1),x(),le(o._hasIconPrefix?7:-1),x(),le(o._hasTextPrefix?8:-1),x(2),le(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),x(2),le(o._hasTextSuffix?12:-1),x(),le(o._hasIconSuffix?13:-1),x(),le(o._hasOutline()?-1:14),x(),H("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),x(),le((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[cS,uS,po,dS,aS],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius: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-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-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{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:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;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:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius: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:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius: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:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;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-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-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{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-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-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{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:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.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%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.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{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}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.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}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[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-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);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-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);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-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.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-outlined-text-field-container-shape))}}[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-outlined-text-field-container-shape))}}.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-outlined-text-field-container-shape) + 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-outlined-text-field-container-shape) + 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:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.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{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.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.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.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;color:var(--mat-form-field-enabled-select-arrow-color)}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.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-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.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-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(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 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(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 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(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 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(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 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(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 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)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[aU.transitionMessages]},changeDetection:0});let t=e;return t})(),zc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,Gt,hh,ee]});let t=e;return t})();var wS=jt({passive:!0}),xS=(()=>{let e=class e{constructor(i,n){this._platform=i,this._ngZone=n,this._monitoredElements=new Map}monitor(i){if(!this._platform.isBrowser)return ct;let n=ot(i),o=this._monitoredElements.get(n);if(o)return o.subject;let s=new C,a="cdk-text-field-autofilled",c=l=>{l.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",c,wS),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:s,unlisten:()=>{n.removeEventListener("animationstart",c,wS)}}),s}stopMonitoring(i){let n=ot(i),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((i,n)=>this.stopMonitoring(n))}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var DS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var hU=new g("MAT_INPUT_VALUE_ACCESSOR"),fU=["button","checkbox","file","hidden","image","radio","range","reset","submit"],pU=0,CS=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=yi(i),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(i){this._id=i||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Us.required)??!1}set required(i){this._required=yi(i)}get type(){return this._type}set type(i){this._type=i||"text",this._validateType(),!this._isTextarea&&ub().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get value(){return this._inputValueAccessor.value}set value(i){i!==this.value&&(this._inputValueAccessor.value=i,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(i){this._readonly=yi(i)}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,n,o,s,a,c,l,d,u,f){this._elementRef=i,this._platform=n,this.ngControl=o,this._autofillMonitor=d,this._formField=f,this._uid=`mat-input-${pU++}`,this.focused=!1,this.stateChanges=new C,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(S=>ub().has(S)),this._iOSKeyupListener=S=>{let E=S.target;!E.value&&E.selectionStart===0&&E.selectionEnd===0&&(E.setSelectionRange(1,1),E.setSelectionRange(0,0))};let p=this._elementRef.nativeElement,v=p.nodeName.toLowerCase();this._inputValueAccessor=l||p,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&u.runOutsideAngular(()=>{i.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new To(c,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=v==="select",this._isTextarea=v==="textarea",this._isInFormField=!!f,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(i=>{this.autofilled=i.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(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(i){this._elementRef.nativeElement.focus(i)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(i){i!==this.focused&&(this.focused=i,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let i=this._elementRef.nativeElement.value;this._previousNativeValue!==i&&(this._previousNativeValue=i,this.stateChanges.next())}_dirtyCheckPlaceholder(){let i=this._getPlaceholder();if(i!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=i,i?n.setAttribute("placeholder",i):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){fU.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let i=this._elementRef.nativeElement.validity;return i&&i.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let i=this._elementRef.nativeElement,n=i.options[0];return this.focused||i.multiple||!this.empty||!!(i.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let i=this._elementRef.nativeElement;return this._isNativeSelect&&(i.multiple||i.size>1)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(Di,10),h(Fc,8),h(Ws,8),h(nn),h(hU,10),h(xS),h(F),h(Bc,8))},e.\u0275dir=I({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){n&1&&Z("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(yt("id",o.id)("disabled",o.disabled)("required",o.required),q("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),H("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[se([{provide:Vc,useExisting:e}]),Me]});let t=e;return t})(),ES=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,zc,zc,DS,ee]});let t=e;return t})();var qt=Cs({source:"[Core -> Auth]",events:{Login:Tt(),"Login Success":Tt(),"Login Failure":Tt(),Logout:ir(),"Logout Success":ir(),"Logout Failure":Tt()}});var Yh=new g("CLIENT");var Yb={production:!0,apiUrl:"rest",backendBaseUrl:"http://localhost:3000",websocketUrl:"ws://localhost:3000"};var Uc=class{get getMock(){return this.mock}get getMockDelay(){return this.mockDelay}get getMethod(){return this.method}get getUrl(){return this.url}get getParams(){return this.params}get getBody(){return this.body}get getOptions(){return this.options}constructor(e,r,i,n,o){this.mockDelay=0,this.options={},this.method=e,this.params=i,this.options=n||{},o&&(this.mock=o),this.url="",this.mock?this.url=`/mock/${r}`:this.url=`${Yb.backendBaseUrl}/${Yb.apiUrl}/${r}`}},qs=class extends Uc{constructor(e,r,i,n=!0){let o=new Tn;r&&(o=r),super("GET",e,o,i,n)}},Lr=class extends Uc{constructor(e,r,i=!0){super("POST",e,void 0,void 0,i),this.body=r}},Zh=class extends Uc{constructor(e,r=!0){super("PUT",e,void 0,void 0,r)}};var Qh=class extends Lr{constructor(e){super("login/authenticate",w({},e)),this.mock&&(this.url+="/post-response-body-200.json")}};var Kh=class extends Zh{constructor(){super("user/logout"),this.mock&&(this.url+="/put-response-body-200.json")}};var Xh=Rn(or,t=>t.auth.isAuthenticated),IS=Rn(or,t=>t.auth.user);var fee=(()=>{let e=class e{constructor(i,n,o,s){this.apiClient=i,this.actions$=n,this.store=o,this.router=s,this.login$=An(()=>this.actions$.pipe(On(qt.login),_a(this.store.select(Xh)),ge(([a,c])=>!c),Fe(([a,c])=>this.apiClient.serviceCall(new Qh({email:a.email,password:a.password})).pipe(P(l=>qt.loginSuccess({user:l})),ut(l=>[qt.loginFailure({error:l})]))))),this.loginRedirect$=An(()=>this.actions$.pipe(On(qt.loginSuccess),je(()=>this.router.navigate([`${ni.MODE_SELECT.ROOT}`]))),{dispatch:!1}),this.logout$=An(()=>this.actions$.pipe(On(qt.logout),Fe(()=>this.apiClient.serviceCall(new Kh).pipe(P(()=>qt.logoutSuccess()),ut(a=>[qt.logoutFailure({error:a})]))))),this.logoutRedirect$=An(()=>this.actions$.pipe(On(qt.logoutSuccess),je(()=>this.router.navigate([`${ni.AUTH.ROOT}`]))),{dispatch:!1})}};e.\u0275fac=function(n){return new(n||e)(m(Yh),m(Hu),m(ii),m(_i))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var gU={isAuthenticated:!1,user:{},error:null},vee=Bu(gU,Wt(qt.loginSuccess,(t,{user:e})=>Q(w({},t),{isAuthenticated:!0,user:w({},e),error:null})),Wt(qt.loginFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(qt.logoutSuccess,()=>({isAuthenticated:!1,user:{},token:null,error:null})),Wt(qt.logoutFailure,(t,{error:e})=>Q(w({},t),{error:e})));var SS=(()=>{let e=class e{constructor(i){this.store=i,this.isAuthenticated$=this.store.select(Xh),this.user$=this.store.select(IS)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ii))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var Hc=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},jr=class extends Hc{constructor(e,r,i,n,o){super(),this.component=e,this.viewContainerRef=r,this.injector=i,this.componentFactoryResolver=n,this.projectableNodes=o}},Ci=class extends Hc{constructor(e,r,i,n){super(),this.templateRef=e,this.viewContainerRef=r,this.context=i,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Zb=class extends Hc{constructor(e){super(),this.element=e instanceof N?e.nativeElement:e}},Ys=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof jr)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ci)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Zb)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var $c=class extends Ys{constructor(e,r,i,n,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(e){let i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=i.create(e.injector||this._defaultInjector||Se.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let r=e.viewContainerRef,i=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(n=>this.outletElement.appendChild(n)),i.detectChanges(),this.setDisposeFn(()=>{let n=r.indexOf(i);n!==-1&&r.remove(n)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Fo=(()=>{let e=class e extends Ys{constructor(i,n,o){super(),this._componentFactoryResolver=i,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new B,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(i){this.hasAttached()&&!i&&!this._isInitialized||(this.hasAttached()&&super.detach(),i&&super.attach(i),this._attachedPortal=i||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(i){i.setAttachedHost(this);let n=i.viewContainerRef!=null?i.viewContainerRef:this._viewContainerRef,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),a=n.createComponent(s,n.length,i.injector||n.injector,i.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=i,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(i){i.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=i,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let i=this._viewContainerRef.element.nativeElement;return i.nodeType===i.ELEMENT_NODE?i:i.parentNode}};e.\u0275fac=function(n){return new(n||e)(h(Ki),h(Ve),h(K))},e.\u0275dir=I({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ae]});let t=e;return t})();var Vr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var Jh=class{};function ef(t){return t&&typeof t.connect=="function"&&!(t instanceof dr)}var Zs=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(Zs||{}),Gc=new g("_ViewRepeater"),Qs=class{applyChanges(e,r,i,n,o){e.forEachOperation((s,a,c)=>{let l,d;if(s.previousIndex==null){let u=i(s,a,c);l=r.createEmbeddedView(u.templateRef,u.context,u.index),d=Zs.INSERTED}else c==null?(r.remove(a),d=Zs.REMOVED):(l=r.get(a),r.move(l,c),d=Zs.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}};var Ks=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,i=!0,n){this._multiple=e,this._emitChanges=i,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new C,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,i=new Set(e);e.forEach(o=>this._markSelected(o)),r.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,r){if(this.compareWith){r=r??this._selection;for(let i of r)if(this.compareWith(e,i))return i;return e}else return e}};var tf=(()=>{let e=class e{constructor(){this._listeners=[]}notify(i,n){for(let o of this._listeners)o(i,n)}listen(i){return this._listeners.push(i),()=>{this._listeners=this._listeners.filter(n=>i!==n)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bU=20,Xs=(()=>{let e=class e{constructor(i,n,o){this._ngZone=i,this._platform=n,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(i){this.scrollContainers.has(i)||this.scrollContainers.set(i,i.elementScrolled().subscribe(()=>this._scrolled.next(i)))}deregister(i){let n=this.scrollContainers.get(i);n&&(n.unsubscribe(),this.scrollContainers.delete(i))}scrolled(i=bU){return this._platform.isBrowser?new oe(n=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(Pl(i)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):V()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((i,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(i,n){let o=this.getAncestorScrollContainers(i);return this.scrolled(n).pipe(ge(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(i){let n=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,i)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(i,n){let o=ot(n),s=i.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let i=this._getWindow();return Ko(i.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(m(F),m(Ae),m(K,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _U=20,Bn=(()=>{let e=class e{constructor(i,n,o){this._platform=i,this._change=new C,this._changeListener=s=>{this._change.next(s)},this._document=o,n.runOutsideAngular(()=>{if(i.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let i=this._getWindow();i.removeEventListener("resize",this._changeListener),i.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let i={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),i}getViewportRect(){let i=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:i.top,left:i.left,bottom:i.top+o,right:i.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let i=this._document,n=this._getWindow(),o=i.documentElement,s=o.getBoundingClientRect(),a=-s.top||i.body.scrollTop||n.scrollY||o.scrollTop||0,c=-s.left||i.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(i=_U){return i>0?this._change.pipe(Pl(i)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let i=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:i.innerWidth,height:i.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F),m(K,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Vn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Wc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Pn,Vn,Pn,Vn]});let t=e;return t})();var kS=$E(),Qb=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=vt(-this._previousScrollPosition.left),e.style.top=vt(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,i=e.style,n=r.style,o=i.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),kS&&(i.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),kS&&(i.scrollBehavior=o,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,i=this._viewportRuler.getViewportSize();return r.scrollHeight>i.height||r.scrollWidth>i.width}};var Kb=class{constructor(e,r,i,n){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(ge(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},rf=class{enable(){}disable(){}attach(){}};function Xb(t,e){return e.some(r=>{let i=t.bottomr.bottom,o=t.rightr.right;return i||n||o||s})}function TS(t,e){return e.some(r=>{let i=t.topr.bottom,o=t.leftr.right;return i||n||o||s})}var Jb=class{constructor(e,r,i,n){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();Xb(r,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},yU=(()=>{let e=class e{constructor(i,n,o,s){this._scrollDispatcher=i,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new rf,this.close=a=>new Kb(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Qb(this._viewportRuler,this._document),this.reposition=a=>new Jb(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(n){return new(n||e)(m(Xs),m(Bn),m(F),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Br=class{constructor(e){if(this.scrollStrategy=new rf,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let i of r)e[i]!==void 0&&(this[i]=e[i])}}};var e_=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var PS=(()=>{let e=class e{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let n=this._attachedOverlays.indexOf(i);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wU=(()=>{let e=class e extends PS{constructor(i,n){super(i),this._ngZone=n,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(i){super.add(i),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(F,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xU=(()=>{let e=class e extends PS{constructor(i,n,o){super(i),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=At(s)},this._clickListener=s=>{let a=At(s),c=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){let u=l[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(RS(u.overlayElement,a)||RS(u.overlayElement,c))break;let f=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(s)):f.next(s)}}}add(i){if(super.add(i),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ae),m(F,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RS(t,e){let r=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===t)return!0;i=r&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var LS=(()=>{let e=class e{constructor(i,n){this._platform=n,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||Sc()){let o=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;sthis._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new C,this._outsidePointerEvents=new C,this._renders=new C,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=ei(()=>Ua(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),$t(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=w(w({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Q(w({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=vt(this._config.width),e.height=vt(this._config.height),e.minWidth=vt(this._config.minWidth),e.minHeight=vt(this._config.minHeight),e.maxWidth=vt(this._config.maxWidth),e.maxHeight=vt(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,i){let n=wo(r||[]).filter(o=>!!o);n.length&&(i?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(te(Ze(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},AS="cdk-overlay-connected-position-bounding-box",DU=/([A-Za-z%]+)$/,i_=class{get positions(){return this._preferredPositions}constructor(e,r,i,n,o){this._viewportRuler=r,this._document=i,this._platform=n,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C,this._resizeSubscription=ne.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(AS),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,r=this._overlayRect,i=this._viewportRect,n=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,n,a),l=this._getOverlayPoint(c,r,a),d=this._getOverlayFit(l,r,i,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,i)){o.push({position:a,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Po(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(AS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,i){let n;if(i.originX=="center")n=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;n=i.originX=="start"?s:a}r.left<0&&(n-=r.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:n,y:o}}_getOverlayPoint(e,r,i){let n;i.overlayX=="center"?n=-r.width/2:i.overlayX==="start"?n=this._isRtl()?-r.width:0:n=this._isRtl()?0:-r.width;let o;return i.overlayY=="center"?o=-r.height/2:o=i.overlayY=="top"?0:-r.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,r,i,n){let o=NS(r),{x:s,y:a}=e,c=this._getOffset(n,"x"),l=this._getOffset(n,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-i.width,f=0-a,p=a+o.height-i.height,v=this._subtractOverflows(o.width,d,u),S=this._subtractOverflows(o.height,f,p),E=v*S;return{visibleArea:E,isCompletelyWithinViewport:o.width*o.height===E,fitsInViewportVertically:S===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(e,r,i){if(this._hasFlexibleDimensions){let n=i.bottom-r.y,o=i.right-r.x,s=OS(this._overlayRef.getConfig().minHeight),a=OS(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||s!=null&&s<=n,l=e.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(e,r,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=NS(r),o=this._viewportRect,s=Math.max(e.x+n.width-o.width,0),a=Math.max(e.y+n.height-o.height,0),c=Math.max(o.top-i.top-e.y,0),l=Math.max(o.left-i.left-e.x,0),d=0,u=0;return n.width<=o.width?d=l||-s:d=e.xv&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-v/2)}let c=r.overlayX==="start"&&!n||r.overlayX==="end"&&n,l=r.overlayX==="end"&&!n||r.overlayX==="start"&&n,d,u,f;if(l)f=i.width-e.x+this._viewportMargin*2,d=e.x-this._viewportMargin;else if(c)u=e.x,d=i.right-e.x;else{let p=Math.min(i.right-e.x+i.left,e.x),v=this._lastBoundingBoxSize.width;d=p*2,u=e.x-p,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-v/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(e,r){let i=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=vt(i.height),n.top=vt(i.top),n.bottom=vt(i.bottom),n.width=vt(i.width),n.left=vt(i.left),n.right=vt(i.right),r.overlayX==="center"?n.alignItems="center":n.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?n.justifyContent="center":n.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=vt(o)),s&&(n.maxWidth=vt(s))}this._lastBoundingBoxSize=i,Po(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Po(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Po(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let i={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){let d=this._viewportRuler.getViewportScrollPosition();Po(i,this._getExactOverlayY(r,e,d)),Po(i,this._getExactOverlayX(r,e,d))}else i.position="static";let a="",c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(n?i.maxHeight=vt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=vt(s.maxWidth):o&&(i.maxWidth="")),Po(this._pane.style,i)}_getExactOverlayY(e,r,i){let n={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;n.bottom=`${s-(o.y+this._overlayRect.height)}px`}else n.top=vt(o.y);return n}_getExactOverlayX(e,r,i){let n={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(o.x+this._overlayRect.width)}px`}else n.left=vt(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:TS(e,i),isOriginOutsideView:Xb(e,i),isOverlayClipped:TS(r,i),isOverlayOutsideView:Xb(r,i)}}_subtractOverflows(e,...r){return r.reduce((i,n)=>i-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&wo(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof N)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+r,height:i,width:r}}};function Po(t,e){for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function OS(t){if(typeof t!="number"&&t!=null){let[e,r]=t.split(DU);return!r||r==="px"?parseFloat(e):null}return t||null}function NS(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function CU(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var FS="cdk-global-overlay-wrapper",n_=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(FS),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:s,maxHeight:a}=i,c=(n==="100%"||n==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",p="",v="",S="";c?S="flex-start":d==="center"?(S="center",f?v=u:p=u):f?d==="left"||d==="end"?(S="flex-end",p=u):(d==="right"||d==="start")&&(S="flex-start",v=u):d==="left"||d==="start"?(S="flex-start",p=u):(d==="right"||d==="end")&&(S="flex-end",v=u),e.position=this._cssPosition,e.marginLeft=c?"0":p,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":v,r.justifyContent=S,r.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,i=r.style;r.classList.remove(FS),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},EU=(()=>{let e=class e{constructor(i,n,o,s){this._viewportRuler=i,this._document=n,this._platform=o,this._overlayContainer=s}global(){return new n_}flexibleConnectedTo(i){return new i_(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(n){return new(n||e)(m(Bn),m(K),m(Ae),m(LS))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),IU=0,It=(()=>{let e=class e{constructor(i,n,o,s,a,c,l,d,u,f,p,v){this.scrollStrategies=i,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=d,this._directionality=u,this._location=f,this._outsideClickDispatcher=p,this._animationsModuleType=v}create(i){let n=this._createHostElement(),o=this._createPaneElement(n),s=this._createPortalOutlet(o),a=new Br(i);return a.direction=a.direction||this._directionality.value,new t_(s,n,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(_t))}position(){return this._positionBuilder}_createPaneElement(i){let n=this._document.createElement("div");return n.id=`cdk-overlay-${IU++}`,n.classList.add("cdk-overlay-pane"),i.appendChild(n),n}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get(mi)),new $c(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(n){return new(n||e)(m(yU),m(LS),m(Ki),m(EU),m(wU),m(Se),m(F),m(K),m(bt),m(Mr),m(xU),m(rt,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),SU=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],jS=new g("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition()}}),qc=(()=>{let e=class e{constructor(i){this.elementRef=i}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),r_=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(i){this._offsetX=i,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(i){this._offsetY=i,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(i){this._disposeOnNavigation=i}constructor(i,n,o,s,a){this._overlay=i,this._dir=a,this._backdropSubscription=ne.EMPTY,this._attachSubscription=ne.EMPTY,this._detachSubscription=ne.EMPTY,this._positionSubscription=ne.EMPTY,this._disposeOnNavigation=!1,this._ngZone=b(F),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new B,this.positionChange=new B,this.attach=new B,this.detach=new B,this.overlayKeydown=new B,this.overlayOutsideClick=new B,this._templatePortal=new Ci(n,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(i){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),i.origin&&this.open&&this._position.apply()),i.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=SU);let i=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=i.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=i.detachments().subscribe(()=>this.detach.emit()),i.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Vt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),s=At(n);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let i=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Br({direction:this._dir,positionStrategy:i,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(i){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return i.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let i=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(i),i}_getOrigin(){return this.origin instanceof qc?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof qc?this.origin.elementRef.nativeElement:this.origin instanceof N?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(i=>{this.backdropClick.emit(i)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(sp(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(It),h(Re),h(Ve),h(jS),h(bt,8))},e.\u0275dir=I({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",T],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",T],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",T],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",T],push:[2,"cdkConnectedOverlayPush","push",T],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",T]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[re,Me]});let t=e;return t})();function MU(t){return()=>t.scrollStrategies.reposition()}var kU={provide:jS,deps:[It],useFactory:MU},zr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[It,kU],imports:[Pn,Vr,Wc,Wc]});let t=e;return t})();var TU=["mat-menu-item",""],RU=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],AU=["mat-icon, [matMenuItemIcon]","*"];function OU(t,e){t&1&&(di(),_(0,"svg",2),k(1,"polygon",3),y())}var NU=["*"];function FU(t,e){if(t&1){let r=Ye();_(0,"div",0),Z("keydown",function(n){be(r);let o=$();return _e(o._handleKeydown(n))})("click",function(){be(r);let n=$();return _e(n.closed.emit("click"))})("@transformMenu.start",function(n){be(r);let o=$();return _e(o._onAnimationStart(n))})("@transformMenu.done",function(n){be(r);let o=$();return _e(o._onAnimationDone(n))}),_(1,"div",1),W(2),y()()}if(t&2){let r=$();kt(r._classList),M("id",r.panelId)("@transformMenu",r._panelAnimationState),q("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var s_=new g("MAT_MENU_PANEL"),Zc=(()=>{let e=class e{constructor(i,n,o,s,a){this._elementRef=i,this._document=n,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new C,this._focused=new C,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(i,n){this._focusMonitor&&i?this._focusMonitor.focusVia(this._getHostElement(),i,n):this._getHostElement().focus(n),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(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Ge("120ms cubic-bezier(0, 0, 0.2, 1)",de({opacity:1,transform:"scale(1)"}))),Le("* => void",Ge("100ms 25ms linear",de({opacity:0})))]),fadeInItems:st("fadeInItems",[ke("showing",de({opacity:1})),Le("void => *",[de({opacity:0}),Ge("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Fte=of.fadeInItems,Pte=of.transformMenu,LU=0,jU=new g("mat-menu-default-options",{providedIn:"root",factory:VU});function VU(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Js=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(i){this._xPosition=i,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(i){this._yPosition=i,this.setPositionClasses()}set panelClass(i){let n=this._previousPanelClass,o=w({},this._classList);n&&n.length&&n.split(" ").forEach(s=>{o[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(s=>{o[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(i){this.panelClass=i}constructor(i,n,o,s){this._elementRef=i,this._changeDetectorRef=s,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new Pt,this._classList={},this._panelAnimationState="void",this._animationDone=new C,this.closed=new B,this.close=this.closed,this.panelId=`mat-menu-panel-${LU++}`,this._injector=b(Se),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Fn(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),Oe(i=>Ze(...i.map(n=>n._focused)))).subscribe(i=>this._keyManager.updateActiveItem(i)),this._directDescendantItems.changes.subscribe(i=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=i.toArray(),s=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[s]&&!o[s].disabled?n.setActiveItem(s):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),Oe(n=>Ze(...n.map(o=>o._hovered))))}addItem(i){}removeItem(i){}_handleKeydown(i){let n=i.keyCode,o=this._keyManager;switch(n){case 27:Vt(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(i);return}i.stopPropagation()}focusFirstItem(i="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=$t(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(i){if(this._baseElevation===null){let c=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(c)}let n=Math.min(this._baseElevation+i,24),o=`${this._elevationPrefix}${n}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!s||s===this._previousElevation){let a=w({},this._classList);this._previousElevation&&(a[this._previousElevation]=!1),a[o]=!0,this._previousElevation=o,this._classList=a}}setPositionClasses(i=this.xPosition,n=this.yPosition){this._classList=Q(w({},this._classList),{"mat-menu-before":i==="before","mat-menu-after":i==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(i){this._animationDone.next(i),this._isAnimating=!1}_onAnimationStart(i){this._isAnimating=!0,i.toState==="enter"&&this._keyManager.activeItemIndex===0&&(i.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Qe(this._allItems)).subscribe(i=>{this._directDescendantItems.reset(i.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F),h(jU),h(ue))},e.\u0275cmp=z({type:e,selectors:[["mat-menu"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,PU,5),pe(s,Zc,5),pe(s,Zc,4)),n&2){let a;L(a=j())&&(o.lazyContent=a.first),L(a=j())&&(o._allItems=a),L(a=j())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&De(Re,5),n&2){let s;L(s=j())&&(o.templateRef=s.first)}},hostVars:3,hostBindings:function(n,o){n&2&&q("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",T],hasBackdrop:[2,"hasBackdrop","hasBackdrop",i=>i==null?null:T(i)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[se([{provide:s_,useExisting:e}]),re,Y],ngContentSelectors:NU,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(ye(),U(0,FU,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-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}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.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:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform: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:[of.transformMenu,of.fadeInItems]},changeDetection:0});let t=e;return t})(),BS=new g("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition()}});function BU(t){return()=>t.scrollStrategies.reposition()}var zU={provide:BS,deps:[It],useFactory:BU},VS=jt({passive:!0});var zS=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(i){this.menu=i}get menu(){return this._menu}set menu(i){i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._parentMaterialMenu,this._menuCloseSubscription=i.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(i,n,o,s,a,c,l,d,u){this._overlay=i,this._element=n,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=l,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ne.EMPTY,this._hoverSubscription=ne.EMPTY,this._menuCloseSubscription=ne.EMPTY,this._changeDetectorRef=b(ue),this._handleTouchStart=f=>{ko(f)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new B,this.onMenuOpen=this.menuOpened,this.menuClosed=new B,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof Js?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,VS)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,VS),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let i=this.menu;if(this._menuOpen||!i)return;let n=this._createOverlay(i),o=n.getConfig(),s=o.positionStrategy;this._setPosition(i,s),o.hasBackdrop=i.hasBackdrop==null?!this.triggersSubmenu():i.hasBackdrop,n.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(i),i instanceof Js&&(i._startAnimation(),i._directDescendantItems.changes.pipe(te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(i,n){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(i){if(!this._overlayRef||!this.menuOpen)return;let n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(i==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Js?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(ge(o=>o.toState==="void"),We(1),te(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(i){i.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,this._setMenuElevation(i),i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(i){if(i.setElevation){let n=0,o=i.parentMenu;for(;o;)n++,o=o.parentMenu;i.setElevation(n)}}_setIsMenuOpen(i){i!==this._menuOpen&&(this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i),this._changeDetectorRef.markForCheck())}_createOverlay(i){if(!this._overlayRef){let n=this._getOverlayConfig(i);this._subscribeToPositions(i,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(i){return new Br({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:i.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:i.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(i,n){i.setPositionClasses&&n.positionChanges.subscribe(o=>{let s=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>i.setPositionClasses(s,a)):i.setPositionClasses(s,a)})}_setPosition(i,n){let[o,s]=i.xPosition==="before"?["end","start"]:["start","end"],[a,c]=i.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,d]=[a,c],[u,f]=[o,s],p=0;if(this.triggersSubmenu()){if(f=o=i.xPosition==="before"?"start":"end",s=u=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let v=this._parentMaterialMenu.items.first;this._parentInnerPadding=v?v._getHostElement().offsetTop:0}p=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else i.overlapTrigger||(l=a==="top"?"bottom":"top",d=c==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:u,overlayY:a,offsetY:p},{originX:s,originY:l,overlayX:f,overlayY:a,offsetY:p},{originX:o,originY:d,overlayX:u,overlayY:c,offsetY:-p},{originX:s,originY:d,overlayX:f,overlayY:c,offsetY:-p}])}_menuClosingActions(){let i=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:V(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ge(a=>a!==this._menuItemInstance),ge(()=>this._menuOpen)):V();return Ze(i,o,s,n)}_handleMousedown(i){Mo(i)||(this._openedBy=i.button===0?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}_handleKeydown(i){let n=i.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ge(i=>i===this._menuItemInstance&&!i.disabled),ga(0,ha)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Js&&this.menu._isAnimating?this.menu._animationDone.pipe(We(1),ga(0,ha),te(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(i){return(!this._portal||this._portal.templateRef!==i.templateRef)&&(this._portal=new Ci(i.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(n){return new(n||e)(h(It),h(N),h(Ve),h(BS),h(s_,8),h(Zc,10),h(bt,8),h(Et),h(F))},e.\u0275dir=I({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&Z("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&q("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let t=e;return t})(),US=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[zU],imports:[Gt,rn,ee,zr,Vn,ee]});let t=e;return t})();function HU(t,e){if(t&1&&(_(0,"div",12)(1,"div",13),we(2),y(),_(3,"div",14),we(4),y()()),t&2){let r=e.ngIf;x(2),at(r.name),x(2),at(r.role)}}var HS=(()=>{let e=class e{constructor(i){this.authFacadeService=i,this.RoutesList=ni,this.user$=this.authFacadeService.user$}logout(){this.authFacadeService.dispatch(qt.logout())}};e.\u0275fac=function(n){return new(n||e)(h(SS))},e.\u0275cmp=z({type:e,selectors:[["ms-user-navigation"]],decls:14,vars:6,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["mat-button","",3,"matMenuTriggerFor"],[1,"user-navigation-content-wrapper","flex","items-center","gap-2"],[1,"content-1","flex","items-center"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["class","content-2 right text-left ml-2",4,"ngIf"],[1,"content-3"],["fontSet","ms","fontIcon","icon-CaretDown",1,"mat-white","rotate-icon","text-base"],[1,"ms-mat-menu"],["mat-menu-item","",3,"click"],["fontSet","ms","fontIcon","icon-SignOut"],[1,"content-2","right","text-left","ml-2"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p3-default"]],template:function(n,o){if(n&1){let s=Ye();_(0,"button",2,0)(2,"div",3)(3,"div",4),k(4,"mat-icon",5),y(),U(5,HU,5,2,"div",6),iu(6,"async"),_(7,"div",7),k(8,"mat-icon",8),y()()(),_(9,"mat-menu",9,1)(11,"button",10),Z("click",function(){return be(s),_e(o.logout())}),k(12,"mat-icon",11),we(13," Logout "),y()()}if(n&2){let s=gt(1),a=gt(10);M("matMenuTriggerFor",a),x(5),M("ngIf",nu(6,4,o.user$)),x(3),Jt("transform",s.menuOpen?"rotate(180deg)":"rotate(0)")}},dependencies:[kr,Uh,Bi,Js,Zc,zS,Su],styles:[".rotate-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.content-2[_ngcontent-%COMP%]{color:var(--backgrounds-50)}"]});let t=e;return t})();var $S=(()=>{let e=class e{constructor(){this.search=new Ro}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-header"]],decls:24,vars:1,consts:[[1,"header-wrapper"],[1,"left","flex","justify-center","items-center"],[1,"icon"],["mat-icon-button",""],["fontSet","ms","fontIcon","icon-Nav",1,"mat-white"],[1,"logo","ml-4"],["src","./assets/logo/logo-header.svg","alt",""],[1,"right","flex","justify-center","items-center","gap-1"],[1,"form-field-container","ms-white-form-field"],["subscriptSizing","dynamic","floatLabel","auto"],["matInput","","placeholder","Search",3,"formControl"],["matPrefix","","fontSet","ms","fontIcon","icon-MagnifyingGlass",1,"mat-white"],["fontSet","ms","fontIcon","icon-Question",1,"mat-white"],["fontSet","ms","fontIcon","icon-Bell",1,"mat-white"],[1,"vertical-divider","h-9"],[1,"icon","cursor-pointer"]],template:function(n,o){n&1&&(_(0,"header",0)(1,"div",1)(2,"div",2)(3,"button",3),k(4,"mat-icon",4),y()(),_(5,"div",5),k(6,"img",6),y()(),_(7,"div",7)(8,"div",8)(9,"mat-form-field",9),k(10,"input",10)(11,"mat-icon",11),y()(),_(12,"div")(13,"button",3),k(14,"mat-icon",12),y()(),_(15,"div")(16,"button",3),k(17,"mat-icon",13),y()(),k(18,"div",14),_(19,"div"),k(20,"ms-user-navigation"),y(),_(21,"div",15)(22,"button",3),k(23,"mat-icon",4),y()()()()),n&2&&(x(10),M("formControl",o.search))},dependencies:[QI,Bi,CS,yS,vS,jh,PI,Ub,HS],styles:[".header-wrapper[_ngcontent-%COMP%]{height:56px;padding:0 10px;background:linear-gradient(to right,var(--header-left),var(--header-right));display:flex;justify-content:space-between}"]});let t=e;return t})();var WU=Fm;function qU(t){return!!t[WU]}var YU=Symbol("__destroy"),YS=Symbol("__decoratorApplied");function ZS(t){return typeof t=="string"?Symbol(`__destroy__${t}`):YU}function ZU(t){t.prototype[YS]=!0}function QS(t,e){t[e]||(t[e]=new C)}function KS(t,e){t[e]&&(t[e].next(),t[e].complete(),t[e]=null)}function XS(t){t instanceof ne&&t.unsubscribe()}function QU(t){Array.isArray(t)&&t.forEach(XS)}function JS(t,e){return function(){if(t&&t.call(this),KS(this,ZS()),e.arrayName&&QU(this[e.arrayName]),e.checkProperties)for(let r in this)e.blackList?.includes(r)||XS(this[r])}}function KU(t,e){t.prototype.ngOnDestroy=JS(t.prototype.ngOnDestroy,e)}function XU(t,e){let r=t.\u0275pipe;r.onDestroy=JS(r.onDestroy,e)}function eM(t={}){return e=>{qU(e)?XU(e,t):KU(e,t),ZU(e)}}var GS=7,WS=Symbol("CheckerHasBeenSet");function JU(t,e){t[WS]||eH()||(qS(()=>He(Promise.resolve()).pipe(Fe(()=>{let r;try{r=Ow(t)}catch{r=null}let i=r?.lView;if(i==null)return ct;let n=i[GS]||(i[GS]=[]),o=new C;return n.push(function(){qS(()=>{o.next(),o.complete()})}),o}),Fe(()=>Promise.resolve())).subscribe(()=>{(e.observed??e.observers.length>0)&&console.warn(tH(t))})),t[WS]=!0)}function eH(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"}function qS(t){let e=ht.Zone;return!!e&&typeof e.root?.run=="function"?e.root.run(t):t()}function tH(t){return` The ${t.constructor.name} still has subscriptions that haven't been unsubscribed. This may happen if the class extends another class decorated with @UntilDestroy(). The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy(). @@ -48,5 +48,5 @@ ${r.map((i,n)=>`${n+1}) ${i.toString()}`).join(` super.ngOnDestroy(); } } - `}var a_=!1;function XU(t,e,r){let i=t[e];if(a_&&typeof i!="function")throw new Error(`${t.constructor.name} is using untilDestroyed but doesn't implement ${e}`);ZS(t,r),t[e]=function(){i.apply(this,arguments),QS(this,r),t[e]=i}}function eM(t,e){return r=>{let i=YS(e);typeof e=="string"?XU(t,e,i):(a_&&JU(t),ZS(t,i));let n=t[i];return a_&&ZU(t,n),r.pipe(te(n))}}function JU(t){let e=Object.getPrototypeOf(t);if(!(qS in e))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}var ri=function(t){return t.MODEL_COMPRESSION="MODEL_COMPRESSION",t.MACHINE_UNLEARNING="MACHINE_UNLEARNING",t.MODEL_TRAINING="MODEL_TRAINING",t.AWQ="AWQ",t.MODEL_SPECIALIZATION="MODEL_SPECIALIZATION",t.NONE="NONE",t}(ri||{});var Je=ws({source:"[Core -> Script]",events:{"Call Script":Tt(),"Call Script Success":Jn(),"Call Script Failure":Tt(),"Fetch Script Status":Jn(),"Update Script Status":Tt(),"Fetch Script Status Success":Tt(),"Fetch Script Status Failure":Tt(),"Stop Script":Jn(),"Stop Script Success":Jn(),"Stop Script Failure":Tt(),"Get Current or Last Active Script Details":Jn(),"Get Current or Last Active Script Details Success":Tt(),"Get Current or Last Active Script Details Failure":Tt()}});var Ln=function(t){return t.RUNNING="running",t.NOT_RUNNING="not_running",t.STOPPING="stopping",t.ERROR="error",t}(Ln||{});function $te(t){return t?t===Ln.RUNNING||t===Ln.STOPPING:!1}var lf=class extends $s{constructor(){super("current-or-last-active-script-details",void 0,void 0,!1)}};var df=class extends $s{constructor(){super("script-status",void 0,void 0,!1)}};var uf=class extends Nr{constructor(e){super("run-script",e,!1)}};var hf=class extends Nr{constructor(){super("stop-script",{},!1)}};var cie=(()=>{let e=class e{constructor(i,n){this.apiClient=i,this.actions$=n,this.callScript$=Mn(()=>this.actions$.pipe(kn(Je.callScript),Oe(({configs:o})=>this.apiClient.serviceCall(new uf(o)).pipe(Oe(()=>[Je.callScriptSuccess(),Je.fetchScriptStatus()]),ut(s=>V(Je.callScriptFailure({error:s}))))))),this.fetchScriptStatus$=Mn(()=>this.actions$.pipe(kn(Je.fetchScriptStatus),Oe(()=>this.apiClient.serviceCall(new df).pipe(P(o=>{let{status:s}=o;return Je.fetchScriptStatusSuccess({status:s})}),ut(o=>V(Je.fetchScriptStatusFailure({error:o}))))))),this.getCurrentOrLastActiveScriptDetails$=Mn(()=>this.actions$.pipe(kn(Je.getCurrentOrLastActiveScriptDetails),Oe(()=>this.apiClient.serviceCall(new lf).pipe(P(o=>Je.getCurrentOrLastActiveScriptDetailsSuccess({scriptDetails:o})),ut(o=>V(Je.fetchScriptStatusFailure({error:o}))))))),this.stopScript$=Mn(()=>this.actions$.pipe(kn(Je.stopScript),Oe(()=>this.apiClient.serviceCall(new hf).pipe(P(()=>Je.stopScriptSuccess()),ut(o=>V(Je.stopScriptFailure({error:o})))))))}};e.\u0275fac=function(n){return new(n||e)(m(Kh),m(Wu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var eH={scriptStatus:Ln.NOT_RUNNING,scriptDetails:{},error:""},fie=Hu(eH,Wt(Je.callScriptSuccess,t=>Q(w({},t),{error:null})),Wt(Je.callScriptFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.getCurrentOrLastActiveScriptDetailsSuccess,(t,{scriptDetails:e})=>Q(w({},t),{scriptDetails:e,error:null})),Wt(Je.getCurrentOrLastActiveScriptDetailsFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.fetchScriptStatusSuccess,(t,{status:e})=>Q(w({},t),{scriptStatus:e,error:null})),Wt(Je.fetchScriptStatusFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.updateScriptStatus,(t,{status:e})=>Q(w({},t),{scriptStatus:e,error:null})),Wt(Je.stopScript,t=>Q(w({},t),{error:null})),Wt(Je.stopScriptSuccess,t=>Q(w({},t),{error:null})),Wt(Je.stopScriptFailure,(t,{error:e})=>Q(w({},t),{error:e})));var tM=Sn(tr,t=>t.script.scriptStatus),iM=Sn(tr,t=>t.script.scriptDetails);function Eie(t){return(t===void 0||Object.prototype.toString.call(t)==="[object Object]")&&Object.keys(t||{}).length===0}function Iie(t){return t==null}function nM(t){return t==null||t===""}function Sie(t){return Array.isArray(t)&&t.length===0}var rM=t=>t.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");var Ot=function(t){return t.QUANTIZATION="quantization",t.PRUNING="pruning",t.MACHINE_UNLEARNING="machine_unlearning",t.AWQ="awq",t.MULTIFLOW="multiflow",t.TRAIN="train",t}(Ot||{}),Tie=Object.entries(Ot).map(([t,e])=>({key:e,value:rM(t)})),oM=function(t){return t.BPTQ="BPTQ",t.BRECQ="BRECQ",t.MINMAXPTQ="MINMAXPTQ",t}(oM||{}),sM=function(t){return t.MULTIFLOW_PRUNE="MULTIFLOW_PRUNE",t}(sM||{}),aM=function(t){return t.IPG="IPG",t.IPM="IPM",t.IPR="IPR",t.IMP="IMP",t.OMP="OMP",t.IPS="IPS",t.IPSY="IPSY",t.IPMB="IPMB",t}(aM||{}),cM=function(t){return t.MU="MU",t}(cM||{}),lM=function(t){return t.AWQ_QUANTIZATION="AWQ_Q",t}(lM||{}),Zc=function(t){return t.QUANTIZATION_TRAIN="Q_TRAIN",t.PRUNING_TRAIN="P_TRAIN",t.MACHINE_UNLEARNING_TRAIN="MU_TRAIN",t}(Zc||{}),Rie={[Ot.MACHINE_UNLEARNING]:Zc.MACHINE_UNLEARNING_TRAIN,[Ot.PRUNING]:Zc.PRUNING_TRAIN,[Ot.QUANTIZATION]:Zc.QUANTIZATION_TRAIN};function Aie(t){return Object.values(aM).includes(t)?Ot.PRUNING:Object.values(oM).includes(t)?Ot.QUANTIZATION:Object.values(cM).includes(t)?Ot.MACHINE_UNLEARNING:Object.values(lM).includes(t)?Ot.AWQ:Object.values(Zc).includes(t)?Ot.TRAIN:Object.values(sM).includes(t)?Ot.MULTIFLOW:null}var dM=(()=>{let e=class e{constructor(i){this.store=i,this.scriptStatus$=this.store.select(tM),this.scriptDetails$=this.store.select(iM)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ei))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var uM=(()=>{let e=class e{get currentRunningPage$(){return this._currentRunningPage.asObservable()}constructor(i){this.scriptFacadeService=i,this._currentRunningPage=new Pe(ri.NONE)}trackCurrentRunningPage(){this.scriptFacadeService.scriptStatus$.pipe(ge(i=>i===Ln.RUNNING||i===Ln.STOPPING),je(()=>this.scriptFacadeService.dispatch(Je.getCurrentOrLastActiveScriptDetails())),Oe(()=>this.scriptFacadeService.scriptDetails$.pipe(lr(1),We(1),ge(i=>!nM(i?.algKey)))),P(i=>i.type)).subscribe(i=>{switch(i){case Ot.PRUNING:case Ot.QUANTIZATION:this._currentRunningPage.next(ri.MODEL_COMPRESSION);break;case Ot.MACHINE_UNLEARNING:{this._currentRunningPage.next(ri.MACHINE_UNLEARNING);break}case Ot.AWQ:{this._currentRunningPage.next(ri.AWQ);break}case Ot.TRAIN:{this._currentRunningPage.next(ri.MODEL_TRAINING);break}case Ot.MULTIFLOW:{this._currentRunningPage.next(ri.MODEL_SPECIALIZATION);break}default:{this._currentRunningPage.next(ri.NONE);break}}}),this.scriptFacadeService.scriptStatus$.subscribe(i=>{i!==Ln.RUNNING&&i!==Ln.STOPPING&&this._currentRunningPage.next(ri.NONE)})}};e.\u0275fac=function(n){return new(n||e)(m(dM))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var nH=["determinateSpinner"];function rH(t,e){if(t&1&&(li(),b(0,"svg",11),k(1,"circle",12),y()),t&2){let r=$();q("viewBox",r._viewBox()),x(),Xt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeCircumference()/2,"px")("stroke-width",r._circleStrokeWidth(),"%"),q("r",r._circleRadius())}}var oH=new g("mat-progress-spinner-default-options",{providedIn:"root",factory:sH});function sH(){return{diameter:hM}}var hM=100,aH=10,fM=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}constructor(i,n,o){this._elementRef=i,this._defaultColor="primary",this._value=0,this._diameter=hM,this._noopAnimations=n==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=i.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(i){this._value=Math.max(0,Math.min(100,i||0))}get diameter(){return this._diameter}set diameter(i){this._diameter=i||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(i){this._strokeWidth=i||0}_circleRadius(){return(this.diameter-aH)/2}_viewBox(){let i=this._circleRadius()*2+this.strokeWidth;return`0 0 ${i} ${i}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(n){return new(n||e)(h(N),h(rt,8),h(oH))},e.\u0275cmp=z({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&De(nH,5),n&2){let s;L(s=j())&&(o._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(q("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),kt("mat-"+o.color),Xt("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),H("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",dt],diameter:[2,"diameter","diameter",dt],strokeWidth:[2,"strokeWidth","strokeWidth",dt]},exportAs:["matProgressSpinner"],standalone:!0,features:[re,Y],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["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(n,o){if(n&1&&(U(0,rH,2,8,"ng-template",null,0,wr),b(2,"div",2,1),li(),b(4,"svg",3),k(5,"circle",4),y()(),Vd(),b(6,"div",5)(7,"div",6)(8,"div",7),tt(9,8),y(),b(10,"div",9),tt(11,8),y(),b(12,"div",10),tt(13,8),y()()()),n&2){let s=gt(1);x(4),q("viewBox",o._viewBox()),x(),Xt("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),q("r",o._circleRadius()),x(4),M("ngTemplateOutlet",s),x(2),M("ngTemplateOutlet",s),x(2),M("ngTemplateOutlet",s)}},dependencies:[lo],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 .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@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}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@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 .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.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});let t=e;return t})();var ff=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Gt,ee]});let t=e;return t})();var lH=["tooltip"],gM=20;var vM=new g("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=v(It);return()=>t.scrollStrategies.reposition({scrollThrottle:gM})}});function dH(t){return()=>t.scrollStrategies.reposition({scrollThrottle:gM})}var uH={provide:vM,deps:[It],useFactory:dH};function hH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var fH=new g("mat-tooltip-default-options",{providedIn:"root",factory:hH});var pM="tooltip-panel",mM=jt({passive:!0}),pH=8,mH=8,gH=24,vH=200,bM=(()=>{let e=class e{get position(){return this._position}set position(i){i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(i){this._positionAtOrigin=bi(i),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(i){this._disabled=bi(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(i){this._showDelay=mo(i)}get hideDelay(){return this._hideDelay}set hideDelay(i){this._hideDelay=mo(i),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=i!=null?String(i).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(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(i,n,o,s,a,c,l,d,u,f,p,_){this._overlay=i,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=c,this._ariaDescriber=l,this._focusMonitor=d,this._dir=f,this._defaultOptions=p,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=bH,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new C,this._injector=v(Se),this._scrollStrategy=u,this._document=_,p&&(this._showDelay=p.showDelay,this._hideDelay=p.hideDelay,p.position&&(this.position=p.position),p.positionAtOrigin&&(this.positionAtOrigin=p.positionAtOrigin),p.touchGestures&&(this.touchGestures=p.touchGestures)),f.change.pipe(te(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=pH}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(te(this._destroyed)).subscribe(i=>{i?i==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{i.removeEventListener(n,o,mM)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}show(i=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new Fr(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}hide(i=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(i):(n._cancelPendingAnimations(),this._detach()))}toggle(i){this._isTooltipVisible()?this.hide():this.show(void 0,i)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(i){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!i)&&s._origin instanceof N)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?i||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(te(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${pM}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(te(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!Vt(s)&&(s.preventDefault(),s.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(i){let n=i.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();n.withPositions([this._addOffset(w(w({},o.main),s.main)),this._addOffset(w(w({},o.fallback),s.fallback))])}_addOffset(i){let n=mH,o=!this._dir||this._dir.value=="ltr";return i.originY==="top"?i.offsetY=-n:i.originY==="bottom"?i.offsetY=n:i.originX==="start"?i.offsetX=o?-n:n:i.originX==="end"&&(i.offsetX=o?n:-n),i}_getOrigin(){let i=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&i||n=="right"&&!i?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&i||n=="left"&&!i)&&(o={originX:"end",originY:"center"});let{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){let i=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&i||n=="right"&&!i?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&i||n=="left"&&!i)&&(o={overlayX:"start",overlayY:"center"});let{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),$t(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}_invertPosition(i,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):i==="end"?i="start":i==="start"&&(i="end"),{x:i,y:n}}_updateCurrentPositionClass(i){let{overlayY:n,originX:o,originY:s}=i,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&s==="top"?"above":"below",a!==this._currentPosition){let c=this._overlayRef;if(c){let l=`${this._cssClassPrefix}-${pM}-`;c.removePanelClass(l+this._currentPosition),c.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",i=>{this._setupPointerExitEventsIfNeeded();let n;i.x!==void 0&&i.y!==void 0&&(n=i),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",i=>{let n=i.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};i.push(["touchend",n],["touchcancel",n])}this._addListeners(i),this._passiveListeners.push(...i)}_addListeners(i){i.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,mM)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(i){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(i.clientX,i.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let i=this.touchGestures;if(i!=="off"){let n=this._elementRef.nativeElement,o=n.style;(i==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(i==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(n){return new(n||e)(h(It),h(N),h(Zs),h(Ve),h(F),h(Ae),h(Ch),h(Et),h(vM),h(bt),h(fH,8),h(K))},e.\u0275dir=I({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let t=e;return t})(),bH=(()=>{let e=class e{constructor(i,n,o){this._changeDetectorRef=i,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new C,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(i){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},i)}hide(i){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},i)}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:i}){(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let i=this._elementRef.nativeElement.getBoundingClientRect();return i.height>gH&&i.width>=vH}_handleAnimationEnd({animationName:i}){(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(i){i?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(i){let n=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(n.classList.remove(i?s:o),n.classList.add(i?o:s),this._isVisible!==i&&(this._isVisible=i,this._changeDetectorRef.markForCheck()),i&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}i&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(i))}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(N),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&De(lH,7),n&2){let s;L(s=j())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,o){n&1&&Z("mouseleave",function(a){return o._handleMouseLeave(a)}),n&2&&Xt("zoom",o.isVisible()?1:null)},standalone:!0,features:[Y],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let s=Ye();b(0,"div",1,0),Z("animationend",function(c){return be(s),_e(o._handleAnimationEnd(c))}),b(2,"div",2),we(3),y()()}n&2&&(H("mdc-tooltip--multiline",o._isMultiline),M("ngClass",o.tooltipClass),x(3),at(o.message))},dependencies:[ys],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.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});let t=e;return t})();var pf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[uH],imports:[JE,Gt,jr,ee,ee,Fn]});let t=e;return t})();var _M=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-spining-indicator"]],standalone:!0,features:[Y],decls:1,vars:1,consts:[["matTooltip","Task in progress",3,"diameter"]],template:function(n,o){n&1&&k(0,"mat-spinner",0),n&2&&M("diameter",25)},dependencies:[ff,fM,pf,bM]});let t=e;return t})();function wH(t,e){if(t&1&&(b(0,"div")(1,"div",6),we(2),y()()),t&2){let r=$();x(2),Lt(" ",r.item.label," ")}}function xH(t,e){t&1&&(b(0,"div"),k(1,"ms-spining-indicator"),y())}function DH(t,e){if(t&1&&(_r(0),U(1,xH,2,0,"div",4),yr()),t&2){let r=e.ngIf,i=$();x(),M("ngIf",i.isExpanded&&r===(i.item==null?null:i.item.key))}}var yM=(()=>{let e=class e{constructor(i){this.pageRunningScriptSpiningIndicatorService=i,this.itemStyle="accent",this.isExpanded=!0}};e.\u0275fac=function(n){return new(n||e)(h(uM))},e.\u0275cmp=z({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},decls:8,vars:6,consts:[["routerLinkActive","active-route",1,"sidenav-item",3,"routerLink"],[1,"left-side"],[1,"item-icon"],["fontSet","ms",3,"fontIcon"],[4,"ngIf"],[1,"right-side"],[1,"item-label","paragraph-semibold-p3-small-emphasis"]],template:function(n,o){n&1&&(b(0,"div",0)(1,"div",1)(2,"div",2),k(3,"mat-icon",3),y(),U(4,wH,3,1,"div",4),y(),b(5,"div",5),U(6,DH,2,1,"ng-container",4),ru(7,"async"),y()()),n&2&&(M("routerLink",o.item.route),x(3),M("fontIcon",o.item.icon),x(),M("ngIf",o.isExpanded),x(2),M("ngIf",ou(7,4,o.pageRunningScriptSpiningIndicatorService.currentRunningPage$)))},dependencies:[Er,dh,FE,Li,_M,Tu],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.sidenav-item[_ngcontent-%COMP%]{padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.sidenav-item[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%], .sidenav-item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.sidenav-item[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-left:10px;white-space:nowrap}.sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}[itemStyle=grey][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--foregrounds-750)}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%]{background-color:var(--foregrounds-150);border-radius:8px}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{color:var(--foregrounds-800)}[itemStyle=accent][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--accent-400)}"]});let t=e;return t})();var EH=[{route:"admin",label:"Admin",icon:"icon-Admin"}],IH=[{route:ti.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],SH=[{route:ti.MODEL_COMPRESSION.ROOT,label:"Model Compression",icon:"icon-GearSix",key:ri.MODEL_COMPRESSION},{route:ti.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:ri.MACHINE_UNLEARNING},{route:ti.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:ri.AWQ},{route:"multi-modal",label:"Multi-modal",icon:"icon-Environmental"},{route:ti.MODEL_SPECIALIZATION.ROOT,label:"Model Specialization",icon:"icon-MapTrifold",key:ri.MODEL_SPECIALIZATION},{route:ti.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],wM={guided:IH,expert:SH,common:EH};function MH(t,e){if(t&1&&(b(0,"div",15)(1,"div",16),we(2),y(),b(3,"div",17),we(4),k(5,"mat-icon",18),y()()),t&2){let r=$();x(2),Lt(" ",r.currentMode===r.Modes.GUIDED?"Guided mode":"Expert mode"," "),x(2),Lt(" ",r.currentMode===r.Modes.GUIDED?"Switch to expert mode":"Switch to guided mode"," ")}}function kH(t,e){if(t&1&&(b(0,"div",19),k(1,"ms-sidenav-item",20),y()),t&2){let r=e.$implicit,i=$(2);x(),M("item",r)("isExpanded",i.isExpanded)}}function TH(t,e){if(t&1&&(_r(0),U(1,kH,2,2,"div",10),yr()),t&2){let r=$();x(),M("ngForOf",r.SidenavConstants.guided)("ngForTrackBy",r.trackByRoute)}}function RH(t,e){if(t&1&&(b(0,"div",19),k(1,"ms-sidenav-item",20),y()),t&2){let r=e.$implicit,i=$(2);x(),M("item",r)("isExpanded",i.isExpanded)}}function AH(t,e){if(t&1&&U(0,RH,2,2,"div",10),t&2){let r=$();M("ngForOf",r.SidenavConstants.expert)("ngForTrackBy",r.trackByRoute)}}function OH(t,e){if(t&1&&(b(0,"div",19),k(1,"ms-sidenav-item",21),y()),t&2){let r=e.$implicit,i=$();x(),M("item",r)("isExpanded",i.isExpanded)}}function NH(t,e){t&1&&(b(0,"span",22),we(1,"Collapse"),y())}var nr,mf=(nr=class{constructor(e,r){this.router=e,this.configFacadeService=r,this.SidenavConstants=wM,this.Modes=Ns,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(eM(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===Ns.GUIDED?(this.router.navigate([`/${ti.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(cb.setCurrentMode({mode:Ns.EXPERT}))):(this.router.navigate([`/${ti.WIZARD.ROOT}`]),this.configFacadeService.dispatch(cb.setCurrentMode({mode:Ns.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}trackByRoute(e,r){return r.route}},nr.\u0275fac=function(r){return new(r||nr)(h(vi),h(zE))},nr.\u0275cmp=z({type:nr,selectors:[["ms-sidenav"]],decls:21,vars:8,consts:[["expertModeBlock",""],[1,"sidenav-wrapper"],[1,"top-section-items"],[1,"switch",3,"click"],[1,"left"],["fontSet","ms","fontIcon","icon-User"],["class","right",4,"ngIf"],[1,"mt-3"],[4,"ngIf","ngIfElse"],[1,"mt-5"],["class","sidenav-items-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-2","mb-4"],[1,"bottom-section-items"],[1,"sidebar-toggle",3,"click"],["class","paragraph-semibold-p3-small-emphasis",4,"ngIf"],[1,"right"],[1,"paragraph-semibold-p3-default-emphasis","text-container"],[1,"paragraph-regular-p4-small","switch-button","text-container"],["fontSet","ms","fontIcon","icon-ArrowRight",1,"switch-icon"],[1,"sidenav-items-wrapper"],["itemStyle","grey",3,"item","isExpanded"],["itemStyle","accent",3,"item","isExpanded"],[1,"paragraph-semibold-p3-small-emphasis"]],template:function(r,i){if(r&1){let n=Ye();b(0,"div",1)(1,"div",2)(2,"div",3),Z("click",function(){return be(n),_e(i.toggleMode())}),b(3,"div",4),k(4,"mat-icon",5),y(),U(5,MH,6,2,"div",6),y(),b(6,"div",7),k(7,"mat-divider"),y(),U(8,TH,2,2,"ng-container",8)(9,AH,1,2,"ng-template",null,0,wr),b(11,"div",9),k(12,"mat-divider"),y(),U(13,OH,2,2,"div",10),y(),b(14,"div",11),k(15,"mat-divider"),y(),b(16,"div",12)(17,"div",13),Z("click",function(){return be(n),_e(i.toggleSidebar())}),b(18,"mat-icon"),we(19),y(),U(20,NH,2,0,"span",14),y()()()}if(r&2){let n=gt(10);M("@expandCollapse",i.isExpanded?"expanded":"collapsed"),x(5),M("ngIf",i.isExpanded),x(3),M("ngIf",i.currentMode===i.Modes.GUIDED)("ngIfElse",n),x(5),M("ngForOf",i.SidenavConstants.common)("ngForTrackBy",i.trackByRoute),x(6),at(i.isExpanded?"chevron_left":"chevron_right"),x(),M("ngIf",i.isExpanded)}},dependencies:[ND,Er,Ah,Li,yM],styles:["[_nghost-%COMP%]{height:100%}.sidenav-wrapper[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column;justify-content:space-between}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:flex;cursor:pointer;height:38px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-600);margin-left:8px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-left:10px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%] .switch-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:16px;width:16px;height:16px}.sidenav-wrapper[_ngcontent-%COMP%] .sidenav-items-wrapper[_ngcontent-%COMP%]{margin-top:10px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;padding:6px;cursor:pointer;transition:background-color .3s ease;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]:hover{color:var(--foregrounds-800);background-color:var(--foregrounds-150);border-radius:8px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;color:var(--foregrounds-750)}.text-container[_ngcontent-%COMP%]{width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],data:{animation:[st("expandCollapse",[ke("expanded",de({width:"230px"})),ke("collapsed",de({width:"40px"})),Le("expanded <=> collapsed",Ge("300ms ease-in-out"))])]}}),nr);mf=py([JS()],mf);var Ane=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-main-layout"]],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(n,o){n&1&&(b(0,"div",0),k(1,"ms-header"),b(2,"div",1),k(3,"ms-sidenav"),b(4,"div",2)(5,"div",3),k(6,"router-outlet"),y(),b(7,"div",4),k(8,"ms-footer",5),y()()()())},dependencies:[tb,mI,HS,mf],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden;max-width:100vw}.body[_ngcontent-%COMP%]{flex:1;display:flex;margin-top:20px}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;margin:0 10px;overflow-x:hidden}.router-outlet[_ngcontent-%COMP%]{flex:1;padding:0 2px}ms-footer[_ngcontent-%COMP%]{height:60px}ms-header[_ngcontent-%COMP%], ms-sidenav[_ngcontent-%COMP%]{overflow-x:hidden}"]});let t=e;return t})();var c_=function(t){return t.SUCCESS="success",t.ERROR="error",t.INFO="info",t.WARNING="warning",t}(c_||{});function PH(t,e){if(t&1){let r=Ye();b(0,"div",1)(1,"button",2),Z("click",function(){be(r);let n=$();return _e(n.action())}),we(2),y()()}if(t&2){let r=$();x(2),Lt(" ",r.data.action," ")}}var LH=["label"];function jH(t,e){}var VH=Math.pow(2,31)-1,Ao=class{constructor(e,r){this._overlayRef=r,this._afterDismissed=new C,this._afterOpened=new C,this._onAction=new C,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,VH))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},gf=new g("MatSnackBarData"),Ks=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},BH=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let t=e;return t})(),zH=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let t=e;return t})(),UH=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let t=e;return t})(),xM=(()=>{let e=class e{constructor(i,n){this.snackBarRef=i,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(n){return new(n||e)(h(Ao),h(gf))},e.\u0275cmp=z({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[Y],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(b(0,"div",0),we(1),y(),U(2,PH,3,1,"div",1)),n&2&&(x(),Lt(" ",o.data.message,` -`),x(),le(o.hasAction?2:-1))},dependencies:[Gh,BH,zH,UH],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let t=e;return t})(),HH={snackBarState:st("state",[ke("void, hidden",de({transform:"scale(0.8)",opacity:0})),ke("visible",de({transform:"scale(1)",opacity:1})),Le("* => visible",Ge("150ms cubic-bezier(0, 0, 0.2, 1)")),Le("* => void, * => hidden",Ge("75ms cubic-bezier(0.4, 0.0, 1, 1)",de({opacity:0})))])},$H=0,GH=(()=>{let e=class e extends Gs{constructor(i,n,o,s,a){super(),this._ngZone=i,this._elementRef=n,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._document=v(K),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new C,this._onExit=new C,this._onEnter=new C,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${$H++}`,this.attachDomPortal=c=>{this._assertNotAttached();let l=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),l},a.politeness==="assertive"&&!a.announcementMessage?this._live="assertive":a.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(i){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(i);return this._afterPortalAttached(),n}attachTemplatePortal(i){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(i);return this._afterPortalAttached(),n}onAnimationEnd(i){let{fromState:n,toState:o}=i;if((o==="void"&&n!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let i=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>i.classList.add(a)):i.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,s="mdc-snackbar__label";o.classList.toggle(s,!o.querySelector(`.${s}`))}_exposeToModals(){let i=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=i.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?i.setAttribute("aria-owns",o):i.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(i&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),n.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(n){return new(n||e)(h(F),h(N),h(ue),h(Ae),h(Ks))},e.\u0275cmp=z({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(De(To,7),De(LH,7)),n&2){let s;L(s=j())&&(o._portalOutlet=s.first),L(s=j())&&(o._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,o){n&1&&Dg("@state.done",function(a){return o.onAnimationEnd(a)}),n&2&&xg("@state",o._animationState)},standalone:!0,features:[ae,Y],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(b(0,"div",1)(1,"div",2,0)(3,"div",3),U(4,jH,0,0,"ng-template",4),y(),k(5,"div"),y()()),n&2&&(x(5),q("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[To],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[HH.snackBarState]}});let t=e;return t})();function WH(){return new Ks}var qH=new g("mat-snack-bar-default-options",{providedIn:"root",factory:WH}),YH=(()=>{let e=class e{get _openedSnackBarRef(){let i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}constructor(i,n,o,s,a,c){this._overlay=i,this._live=n,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=xM,this.snackBarContainerComponent=GH,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(i,n){return this._attach(i,n)}openFromTemplate(i,n){return this._attach(i,n)}open(i,n="",o){let s=w(w({},this._defaultConfig),o);return s.data={message:i,action:n},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(i,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=Se.create({parent:o||this._injector,providers:[{provide:Ks,useValue:n}]}),a=new Fr(this.snackBarContainerComponent,n.viewContainerRef,s),c=i.attach(a);return c.instance.snackBarConfig=n,c.instance}_attach(i,n){let o=w(w(w({},new Ks),this._defaultConfig),n),s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),c=new Ao(a,s);if(i instanceof Re){let l=new xi(i,null,{$implicit:o.data,snackBarRef:c});c.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,c),d=new Fr(i,void 0,l),u=a.attachComponentPortal(d);c.instance=u.instance}return this._breakpointObserver.observe(WE.HandsetPortrait).pipe(te(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(i,n){i.afterDismissed().subscribe(()=>{this._openedSnackBarRef==i&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),n.duration&&n.duration>0&&i.afterOpened().subscribe(()=>i._dismissAfter(n.duration))}_createOverlay(i){let n=new Lr;n.direction=i.direction;let o=this._overlay.position().global(),s=i.direction==="rtl",a=i.horizontalPosition==="left"||i.horizontalPosition==="start"&&!s||i.horizontalPosition==="end"&&s,c=!a&&i.horizontalPosition!=="center";return a?o.left("0"):c?o.right("0"):o.centerHorizontally(),i.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(i,n){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector;return Se.create({parent:o||this._injector,providers:[{provide:Ao,useValue:n},{provide:gf,useValue:i.data}]})}};e.\u0275fac=function(n){return new(n||e)(m(It),m(Eh),m(Se),m(gh),m(e,12),m(qH))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var DM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[YH],imports:[jr,Pr,Wh,ee,xM,ee]});let t=e;return t})();function QH(t,e){t&1&&k(0,"mat-icon",7)}function KH(t,e){t&1&&k(0,"mat-icon",8)}function XH(t,e){t&1&&(b(0,"mat-icon",9),we(1,"error_outline"),y())}function JH(t,e){t&1&&(b(0,"mat-icon",10),we(1,"warning"),y())}var rre=(()=>{let e=class e{constructor(i,n){this.bannerRef=i,this.data=n,this.NotificationTypes=c_}};e.\u0275fac=function(n){return new(n||e)(h(Ao),h(gf))},e.\u0275cmp=z({type:e,selectors:[["ms-banner"]],decls:13,vars:6,consts:[[1,"banner"],[1,"banner-left-container"],[1,"banner-content",3,"ngSwitch"],[3,"ngSwitchCase"],[1,"banner-middle-container"],[1,"banner-right-container"],[1,"mat-gray",3,"click"],["fontSet","ms","fontIcon","icon-CheckCircle",1,"mat-success"],["fontSet","ms","fontIcon","icon-Info",1,"mat-primary"],[1,"mat-error"],[1,"mat-warn"]],template:function(n,o){n&1&&(b(0,"div",0)(1,"div",1)(2,"div",2),U(3,QH,1,0,"ng-template",3)(4,KH,1,0,"ng-template",3)(5,XH,2,0,"ng-template",3)(6,JH,2,0,"ng-template",3),y()(),b(7,"div",4)(8,"div"),we(9),y()(),b(10,"div",5)(11,"mat-icon",6),Z("click",function(){return o.bannerRef.dismiss()}),we(12,"clear"),y()()()),n&2&&(x(2),M("ngSwitch",o.data.notificationType),x(),M("ngSwitchCase",o.NotificationTypes.SUCCESS),x(),M("ngSwitchCase",o.NotificationTypes.INFO),x(),M("ngSwitchCase",o.NotificationTypes.ERROR),x(),M("ngSwitchCase",o.NotificationTypes.WARNING),x(3),at(o.data.message))},dependencies:[ku,FD,Li],styles:[".banner[_ngcontent-%COMP%]{display:flex;width:100%}.banner[_ngcontent-%COMP%] .banner-left-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-middle-container[_ngcontent-%COMP%]{flex:0 1 90%;margin:2px 10px}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]:hover{cursor:pointer}"]});let t=e;return t})();var e$=["button"],t$=["*"];function i$(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}function n$(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}var CM=new g("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:r$});function r$(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var EM=new g("MatButtonToggleGroup"),o$={provide:Nn,useExisting:lt(()=>s$),multi:!0},IM=0,vf=class{constructor(e,r){this.source=e,this.value=r}},s$=(()=>{let e=class e{get name(){return this._name}set name(i){this._name=i,this._markButtonsForCheck()}get value(){let i=this._selectionModel?this._selectionModel.selected:[];return this.multiple?i.map(n=>n.value):i[0]?i[0].value:void 0}set value(i){this._setSelectionByValue(i),this.valueChange.emit(this.value)}get selected(){let i=this._selectionModel?this._selectionModel.selected:[];return this.multiple?i:i[0]||null}get multiple(){return this._multiple}set multiple(i){this._multiple=i,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(i){this._hideMultipleSelectionIndicator=i,this._markButtonsForCheck()}constructor(i,n,o){this._changeDetector=i,this._dir=o,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${IM++}`,this.valueChange=new B,this.change=new B,this.appearance=n&&n.appearance?n.appearance:"standard",this.hideSingleSelectionIndicator=n?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=n?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Ys(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(i=>i.checked)),this.multiple||this._initializeTabIndex()}writeValue(i){this.value=i,this._changeDetector.markForCheck()}registerOnChange(i){this._controlValueAccessorChangeFn=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}_keydown(i){if(this.multiple||this.disabled)return;let o=i.target.id,s=this._buttonToggles.toArray().findIndex(c=>c.buttonId===o),a=null;switch(i.keyCode){case 32:case 13:a=this._buttonToggles.get(s)||null;break;case 38:a=this._getNextButton(s,-1);break;case 37:a=this._getNextButton(s,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(s,1);break;case 39:a=this._getNextButton(s,this.dir==="ltr"?1:-1);break;default:return}a&&(i.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(i){let n=new vf(i,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(i,n,o=!1,s=!1){!this.multiple&&this.selected&&!i.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(i):this._selectionModel.deselect(i):s=!0,s?Promise.resolve().then(()=>this._updateModelValue(i,o)):this._updateModelValue(i,o)}_isSelected(i){return this._selectionModel&&this._selectionModel.isSelected(i)}_isPrechecked(i){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>i.value!=null&&n===i.value):i.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(i=>{i.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let i=0;ithis._selectValue(n))):(this._clearSelection(),this._selectValue(i)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(i=>{i.checked=!1,this.multiple||(i.tabIndex=-1)})}_selectValue(i){let n=this._buttonToggles.find(o=>o.value!=null&&o.value===i);n&&(n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0))}_updateModelValue(i,n){n&&this._emitChangeEvent(i),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(i=>i._markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(CM,8),h(bt,8))},e.\u0275dir=I({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,s){if(n&1&&pe(s,SM,5),n&2){let a;L(a=j())&&(o._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._keydown(a)}),n&2&&(q("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),H("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",T],value:"value",multiple:[2,"multiple","multiple",T],disabled:[2,"disabled","disabled",T],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",T]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[se([o$,{provide:EM,useExisting:e}]),re]});let t=e;return t})(),SM=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(i){this._tabIndex=i,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(i){this._appearance=i}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(i){i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(i){this._disabled=i}constructor(i,n,o,s,a,c){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=s,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new B;let l=Number(a);this.tabIndex=l||l===0?l:null,this.buttonToggleGroup=i,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){let i=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${IM++}`,i&&(i._isPrechecked(this)?this.checked=!0:i._isSelected(this)!==this._checked&&i._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let i=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),i&&i._isSelected(this)&&i._syncButtonToggle(this,!1,!1,!0)}focus(i){this._buttonElement.nativeElement.focus(i)}_onButtonClick(){let i=this.isSingleSelector()?!0:!this._checked;if(i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new vf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(h(EM,8),h(ue),h(N),h(Et),pt("tabindex"),h(CM,8))},e.\u0275cmp=z({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&De(e$,5),n&2){let s;L(s=j())&&(o._buttonElement=s.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(n,o){n&1&&Z("focus",function(){return o.focus()}),n&2&&(q("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),H("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",T],appearance:"appearance",checked:[2,"checked","checked",T],disabled:[2,"disabled","disabled",T]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[re,Y],ngContentSelectors:t$,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let s=Ye();ye(),b(0,"button",1,0),Z("click",function(){return be(s),_e(o._onButtonClick())}),b(2,"span",2),U(3,i$,1,1,"mat-pseudo-checkbox",3)(4,n$,1,1,"mat-pseudo-checkbox",3),W(5),y()(),k(6,"span",4)(7,"span",5)}if(n&2){let s=gt(1);M("id",o.buttonId)("disabled",o.disabled||null),q("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),x(3),le(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),x(),le(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),x(3),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[yi,Ib],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let t=e;return t})(),MM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,en,SM,ee]});let t=e;return t})();var a$=["*"];var c$=new g("MAT_CARD_CONFIG"),Nre=(()=>{let e=class e{constructor(i){this.appearance=i?.appearance||"raised"}};e.\u0275fac=function(n){return new(n||e)(h(c$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,o){n&2&&H("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[Y],ngContentSelectors:a$,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color);border-color:var(--mdc-elevated-card-container-color);border-radius:var(--mdc-elevated-card-container-shape);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color);border-radius:var(--mdc-outlined-card-container-shape);border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined::after{border:none}.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}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.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});let t=e;return t})();var kM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,Gt,ee]});let t=e;return t})();var d$=["input"],u$=["label"],h$=["*"],f$=new g("mat-checkbox-default-options",{providedIn:"root",factory:RM});function RM(){return{color:"accent",clickAction:"check-indeterminate"}}var Yt=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(Yt||{}),p$={provide:Nn,useExisting:lt(()=>AM),multi:!0},l_=class{},m$=0,TM=RM(),AM=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(i){let n=new l_;return n.source=this,n.checked=i,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,n,o,s,a,c){this._elementRef=i,this._changeDetectorRef=n,this._ngZone=o,this._animationMode=a,this._options=c,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"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new B,this.indeterminateChange=new B,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Yt.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||TM,this.color=this._options.color||TM.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++m$}`}ngOnChanges(i){i.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(i){i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(i){i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(i){let n=i!=this._indeterminate;this._indeterminate=i,n&&(this._indeterminate?this._transitionCheckState(Yt.Indeterminate):this._transitionCheckState(this.checked?Yt.Checked:Yt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(i){this.checked=!!i}registerOnChange(i){this._controlValueAccessorChangeFn=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorChangeFn=i}_transitionCheckState(i){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===i||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,i),this._currentCheckState=i,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},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(){let i=this._options?.clickAction;!this.disabled&&i!=="noop"?(this.indeterminate&&i!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Yt.Checked:Yt.Unchecked),this._emitChangeEvent()):!this.disabled&&i==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(i){i.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(i,n){if(this._animationMode==="NoopAnimations")return"";switch(i){case Yt.Init:if(n===Yt.Checked)return this._animationClasses.uncheckedToChecked;if(n==Yt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Yt.Unchecked:return n===Yt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Yt.Checked:return n===Yt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Yt.Indeterminate:return n===Yt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(i){let n=this._inputElement;n&&(n.nativeElement.indeterminate=i)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(i){i.target&&this._labelElement.nativeElement.contains(i.target)&&i.stopPropagation()}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(F),pt("tabindex"),h(rt,8),h(f$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(De(d$,5),De(u$,5),De(yi,5)),n&2){let s;L(s=j())&&(o._inputElement=s.first),L(s=j())&&(o._labelElement=s.first),L(s=j())&&(o.ripple=s.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("tabindex",null)("aria-label",null)("aria-labelledby",null),kt(o.color?"mat-"+o.color:"mat-accent"),H("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",T],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)],color:"color",checked:[2,"checked","checked",T],disabled:[2,"disabled","disabled",T],indeterminate:[2,"indeterminate","indeterminate",T]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[se([p$,{provide:tn,useExisting:e,multi:!0}]),re,Me,Y],ngContentSelectors:h$,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[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"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let s=Ye();ye(),b(0,"div",3),Z("click",function(c){return be(s),_e(o._preventBubblingFromLabel(c))}),b(1,"div",4,0)(3,"div",5),Z("click",function(){return be(s),_e(o._onTouchTargetClick())}),y(),b(4,"input",6,1),Z("blur",function(){return be(s),_e(o._onBlur())})("click",function(){return be(s),_e(o._onInputClick())})("change",function(c){return be(s),_e(o._onInteractionEvent(c))}),y(),k(6,"div",7),b(7,"div",8),li(),b(8,"svg",9),k(9,"path",10),y(),Vd(),k(10,"div",11),y(),k(11,"div",12),y(),b(12,"label",13,2),W(14),y()()}if(n&2){let s=gt(2);M("labelPosition",o.labelPosition),x(4),H("mdc-checkbox--selected",o.checked),M("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),q("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),x(7),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),x(),M("for",o.inputId)}},dependencies:[yi,Rh],styles:['.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;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)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);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)}.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 cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 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 cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.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;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 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{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 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{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@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:cubic-bezier(0, 0, 0.2, 1);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}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.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-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();var OM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[AM,ee,ee]});let t=e;return t})();var g$=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],v$=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function b$(t,e){t&1&&(b(0,"span",3),W(1,1),y())}function _$(t,e){t&1&&(b(0,"span",6),W(1,2),y())}var y$=["*"];var w$=new g("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),NM=new g("MatChipAvatar"),FM=new g("MatChipTrailingIcon"),PM=new g("MatChipRemove"),jM=new g("MatChip"),LM=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(i){this._disabled=i}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(i,n){this._elementRef=i,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,i.nativeElement.nodeName==="BUTTON"&&i.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(i){!this.disabled&&this.isInteractive&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(h(N),h(jM))},e.\u0275dir=I({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&Z("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(q("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),H("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:dt(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[re]});let t=e;return t})();var x$=0,D$=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}constructor(i,n,o,s,a,c,l,d){this._changeDetectorRef=i,this._elementRef=n,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=l,this._onFocus=new C,this._onBlur=new C,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${x$++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new B,this.destroyed=new B,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=v(Th),this._injector=v(Se),this._document=a,this._animationsDisabled=c==="NoopAnimations",d!=null&&(this.tabIndex=parseInt(d)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let i=this._elementRef.nativeElement;this._isBasicChip=i.hasAttribute(this.basicChipAttrName)||i.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ze(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),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(i){(i.keyCode===8&&!i.repeat||i.keyCode===46)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===i||o.contains(i)})}_getActions(){let i=[];return this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),this.trailingIcon&&i.push(this.trailingIcon),i}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let n=i!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):$t(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(N),h(F),h(Et),h(K),h(rt,8),h(Sh,8),pt("tabindex"))},e.\u0275cmp=z({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,NM,5),pe(s,FM,5),pe(s,PM,5),pe(s,NM,5),pe(s,FM,5),pe(s,PM,5)),n&2){let a;L(a=j())&&(o.leadingIcon=a.first),L(a=j())&&(o.trailingIcon=a.first),L(a=j())&&(o.removeIcon=a.first),L(a=j())&&(o._allLeadingIcons=a),L(a=j())&&(o._allTrailingIcons=a),L(a=j())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&De(LM,5),n&2){let s;L(s=j())&&(o.primaryAction=s.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)}),n&2&&(yt("id",o.id),q("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),kt("mat-"+(o.color||"primary")),H("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",T],highlighted:[2,"highlighted","highlighted",T],disableRipple:[2,"disableRipple","disableRipple",T],disabled:[2,"disabled","disabled",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[se([{provide:jM,useExisting:e}]),re,Y],ngContentSelectors:v$,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(ye(g$),k(0,"span",0),b(1,"span",1)(2,"span",2),U(3,b$,2,0,"span",3),b(4,"span",4),W(5),k(6,"span",5),y()()(),U(7,_$,2,0,"span",6)),n&2&&(x(2),M("isInteractive",!1),x(),le(o.leadingIcon?3:-1),x(4),le(o._hasTrailingIcon()?7:-1))},dependencies:[LM],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__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;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{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.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{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.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{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__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{padding-left:0;padding-right:0}.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{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__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{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{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__action--trailing{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__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{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.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)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.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{padding-left:8px;padding-right:4px}.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}.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{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.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--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.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__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.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 .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 .mat-ripple.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;z-index:0}.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::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;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});let t=e;return t})();var _oe=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(i){this._explicitRole=i}get focused(){return this._hasFocusedChip()}constructor(i,n,o){this._elementRef=i,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new C,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Pt}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(i=>{i.disabled=this._disabled,i._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&i{this.tabIndex=i,this._changeDetectorRef.markForCheck()})}}_getChipStream(i){return this._chips.changes.pipe(Qe(null),Oe(()=>Ze(...this._chips.map(i))))}_originatesFromChip(i){let n=i.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Qe(this._chips)).subscribe(i=>{let n=[];i.forEach(o=>o._getActions().forEach(s=>n.push(s))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Rn(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(te(this._destroyed)).subscribe(({chip:i})=>{let n=i._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(te(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Qe(null),te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(te(this._destroyed)).subscribe(i=>{let o=this._chips.toArray().indexOf(i.chip);this._isValidIndex(o)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[i];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(bt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,s){if(n&1&&pe(s,D$,5),n&2){let a;L(a=j())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)}),n&2&&q("role",o.role)},inputs:{disabled:[2,"disabled","disabled",T],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)]},standalone:!0,features:[re,Y],ngContentSelectors:y$,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(ye(),b(0,"div",0),W(1),y())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var VM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[Ji,{provide:w$,useValue:{separatorKeyCodes:[13]}}],imports:[ee,en,ee]});let t=e;return t})();var C$=0,d_=new g("CdkAccordion"),BM=(()=>{let e=class e{constructor(){this._stateChanges=new C,this._openCloseAllActions=new C,this.id=`cdk-accordion-${C$++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(i){this._stateChanges.next(i)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",T]},exportAs:["cdkAccordion"],standalone:!0,features:[se([{provide:d_,useExisting:e}]),re,Me]});let t=e;return t})(),E$=0,zM=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(i){if(this._expanded!==i){if(this._expanded=i,this.expandedChange.emit(i),i){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(i,n,o){this.accordion=i,this._changeDetectorRef=n,this._expansionDispatcher=o,this._openCloseAllSubscription=ne.EMPTY,this.closed=new B,this.opened=new B,this.destroyed=new B,this.expandedChange=new B,this.id=`cdk-accordion-child-${E$++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}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(i=>{this.disabled||(this.expanded=i)})}};e.\u0275fac=function(n){return new(n||e)(h(d_,12),h(ue),h(of))},e.\u0275dir=I({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",T],disabled:[2,"disabled","disabled",T]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[se([{provide:d_,useValue:void 0}]),re]});let t=e;return t})(),UM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var I$=["body"],S$=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],M$=["mat-expansion-panel-header","*","mat-action-row"];function k$(t,e){}var T$=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],R$=["mat-panel-title","mat-panel-description","*"];function A$(t,e){if(t&1&&(b(0,"span",1),li(),b(1,"svg",2),k(2,"path",3),y()()),t&2){let r=$();M("@indicatorRotate",r._getExpandedState())}}var u_=new g("MAT_ACCORDION"),HM="225ms cubic-bezier(0.4,0.0,0.2,1)",GM={indicatorRotate:st("indicatorRotate",[ke("collapsed, void",de({transform:"rotate(0deg)"})),ke("expanded",de({transform:"rotate(180deg)"})),Le("expanded <=> collapsed, void => collapsed",Ge(HM))]),bodyExpansion:st("bodyExpansion",[ke("collapsed, void",de({height:"0px",visibility:"hidden"})),ke("expanded",de({height:"*",visibility:""})),Le("expanded <=> collapsed, void => collapsed",Ge(HM))])},WM=new g("MAT_EXPANSION_PANEL"),O$=(()=>{let e=class e{constructor(i,n){this._template=i,this._expansionPanel=n}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(WM,8))},e.\u0275dir=I({type:e,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let t=e;return t})(),N$=0,qM=new g("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),F$=(()=>{let e=class e extends zM{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(i){this._hideToggle=i}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(i){this._togglePosition=i}constructor(i,n,o,s,a,c,l){super(i,n,o),this._viewContainerRef=s,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new B,this.afterCollapse=new B,this._inputChanges=new C,this._headerId=`mat-expansion-panel-header-${N$++}`,this.accordion=i,this._document=a,this._animationsDisabled=c==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_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(Qe(null),ge(()=>this.expanded&&!this._portal),We(1)).subscribe(()=>{this._portal=new xi(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(i){this._inputChanges.next(i)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let i=this._document.activeElement,n=this._body.nativeElement;return i===n||n.contains(i)}return!1}_animationStarted(i){!$M(i)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(i){$M(i)||(i.toState==="expanded"?this.afterExpand.emit():i.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};e.\u0275fac=function(n){return new(n||e)(h(u_,12),h(ue),h(of),h(Ve),h(K),h(rt,8),h(qM,8))},e.\u0275cmp=z({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(n,o,s){if(n&1&&pe(s,O$,5),n&2){let a;L(a=j())&&(o._lazyContent=a.first)}},viewQuery:function(n,o){if(n&1&&De(I$,5),n&2){let s;L(s=j())&&(o._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,o){n&2&&H("mat-expanded",o.expanded)("_mat-animation-noopable",o._animationsDisabled)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",T],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[se([{provide:u_,useValue:void 0},{provide:WM,useExisting:e}]),re,ae,Me,Y],ngContentSelectors:M$,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,o){if(n&1){let s=Ye();ye(S$),W(0),b(1,"div",1,0),Z("@bodyExpansion.start",function(c){return be(s),_e(o._animationStarted(c))})("@bodyExpansion.done",function(c){return be(s),_e(o._animationDone(c))}),b(3,"div",2),W(4,1),U(5,k$,0,0,"ng-template",3),y(),W(6,2),y()}n&2&&(x(),M("@bodyExpansion",o._getExpandedState())("id",o.id),q("aria-labelledby",o._headerId),x(4),M("cdkPortalOutlet",o._portal))},dependencies:[To],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;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;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.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;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.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;border-top-color:var(--mat-expansion-actions-divider-color)}.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:[GM.bodyExpansion]},changeDetection:0});let t=e;return t})();function $M(t){return t.fromState==="void"}var P$=(()=>{let e=class e{constructor(i,n,o,s,a,c,l){this.panel=i,this._element=n,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=c,this._parentChangeSubscription=ne.EMPTY,this.tabIndex=0;let d=i.accordion?i.accordion._stateChanges.pipe(ge(u=>!!(u.hideToggle||u.togglePosition))):ct;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Ze(i.opened,i.closed,d,i._inputChanges.pipe(ge(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),i.closed.pipe(ge(()=>i._containsFocus())).subscribe(()=>o.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.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(){let i=this._isExpanded();return i&&this.expandedHeight?this.expandedHeight:!i&&this.collapsedHeight?this.collapsedHeight:null}_keydown(i){switch(i.keyCode){case 32:case 13:Vt(i)||(i.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(i);return}}focus(i,n){i?this._focusMonitor.focusVia(this._element,i,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(i=>{i&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(n){return new(n||e)(h(F$,1),h(N),h(Et),h(ue),h(qM,8),h(rt,8),pt("tabindex"))},e.\u0275cmp=z({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,o){n&1&&Z("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),n&2&&(q("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),Xt("height",o._getHeaderHeight()),H("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before")("_mat-animation-noopable",o._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)]},standalone:!0,features:[re,Y],ngContentSelectors:R$,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,o){n&1&&(ye(T$),b(0,"span",0),W(1),W(2,1),W(3,2),y(),U(4,A$,3,1,"span",1)),n&2&&(H("mat-content-hide-toggle",!o._showToggle()),x(4),le(o._showToggle()?4:-1))},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);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.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.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{color:var(--mat-expansion-header-text-color)}.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[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.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;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.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:[GM.indicatorRotate]},changeDetection:0});let t=e;return t})();var ise=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let t=e;return t})(),nse=(()=>{let e=class e extends BM{constructor(){super(...arguments),this._ownHeaders=new Pt,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(Qe(this._headers)).subscribe(i=>{this._ownHeaders.reset(i.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Rn(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(i){this._keyManager.onKeydown(i)}_handleHeaderFocus(i){this._keyManager.updateActiveItem(i)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-accordion"]],contentQueries:function(n,o,s){if(n&1&&pe(s,P$,5),n&2){let a;L(a=j())&&(o._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-accordion-multi",o.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",T],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[se([{provide:u_,useExisting:e}]),re,ae]});let t=e;return t})(),YM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,UM,Pr]});let t=e;return t})();var L$=["trigger"],j$=["panel"],V$=[[["mat-select-trigger"]],"*"],B$=["mat-select-trigger","*"];function z$(t,e){if(t&1&&(b(0,"span",4),we(1),y()),t&2){let r=$();x(),at(r.placeholder)}}function U$(t,e){t&1&&W(0)}function H$(t,e){if(t&1&&(b(0,"span",11),we(1),y()),t&2){let r=$(2);x(),at(r.triggerValue)}}function $$(t,e){if(t&1&&(b(0,"span",5),U(1,U$,1,0)(2,H$,2,1,"span",11),y()),t&2){let r=$();x(),le(r.customTrigger?1:2)}}function G$(t,e){if(t&1){let r=Ye();b(0,"div",12,1),Z("@transformPanel.done",function(n){be(r);let o=$();return _e(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){be(r);let o=$();return _e(o._handleKeydown(n))}),W(2,1),y()}if(t&2){let r=$();eu("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),M("ngClass",r.panelClass)("@transformPanel","showing"),q("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var W$={transformPanelWrap:st("transformPanelWrap",[Le("* => void",ko("@transformPanel",[Mo()],{optional:!0}))]),transformPanel:st("transformPanel",[ke("void",de({opacity:0,transform:"scale(1, 0.8)"})),Le("void => showing",Ge("120ms cubic-bezier(0, 0, 0.2, 1)",de({opacity:1,transform:"scale(1, 1)"}))),Le("* => void",Ge("100ms linear",de({opacity:0})))])};var ZM=0,QM=new g("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=v(It);return()=>t.scrollStrategies.reposition()}});function q$(t){return()=>t.scrollStrategies.reposition()}var Y$=new g("MAT_SELECT_CONFIG"),Z$={provide:QM,deps:[It],useFactory:q$},Q$=new g("MatSelectTrigger"),h_=class{constructor(e,r){this.source=e,this.value=r}},Ase=(()=>{let e=class e{_scrollOptionIntoView(i){let n=this.options.toArray()[i];if(n){let o=this.panel.nativeElement,s=uI(i,this.options,this.optionGroups),a=n._getHostElement();i===0&&s===1?o.scrollTop=0:o.scrollTop=hI(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(i){return new h_(this,i)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Vs.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._selectionModel,this._multiple=i}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,n,o,s,a,c,l,d,u,f,p,_,S,E){this._viewportRuler=i,this._changeDetectorRef=n,this._elementRef=a,this._dir=c,this._parentFormField=u,this.ngControl=f,this._liveAnnouncer=S,this._defaultOptions=E,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(R,he)=>R===he,this._uid=`mat-select-${ZM++}`,this._triggerAriaLabelledBy=null,this._destroy=new C,this.stateChanges=new C,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${ZM++}`,this._panelDoneAnimatingStream=new C,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new C,this.optionSelectionChanges=qr(()=>{let R=this.options;return R?R.changes.pipe(Qe(R),Oe(()=>Ze(...R.map(he=>he.onSelectionChange)))):this._initialized.pipe(Oe(()=>this.optionSelectionChanges))}),this.openedChange=new B,this._openedStream=this.openedChange.pipe(ge(R=>R),P(()=>{})),this._closedStream=this.openedChange.pipe(ge(R=>!R),P(()=>{})),this.selectionChange=new B,this.valueChange=new B,this._trackedModal=null,this._skipPredicate=R=>this.panelOpen?!1:R.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),E?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=E.typeaheadDebounceInterval),this._errorStateTracker=new Eo(s,f,d,l,this.stateChanges),this._scrollStrategyFactory=_,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ys(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Gi(),te(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(te(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(te(this._destroy)).subscribe(i=>{i.added.forEach(n=>n.select()),i.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Qe(null),te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let i=this._getTriggerAriaLabelledby(),n=this.ngControl;if(i!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(i){(i.disabled||i.userAriaDescribedBy)&&this.stateChanges.next(),i.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let i=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!i)return;let n=`${this.id}-panel`;this._trackedModal&&Dh(this._trackedModal,"aria-owns",n),bb(i,"aria-owns",n),this._trackedModal=i}_clearFromModal(){if(!this._trackedModal)return;let i=`${this.id}-panel`;Dh(this._trackedModal,"aria-owns",i),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,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){let i=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){let n=i.keyCode,o=n===40||n===38||n===37||n===39,s=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&s&&!Vt(i)||(this.multiple||i.altKey)&&o)i.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;a.onKeydown(i);let l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(i){let n=this._keyManager,o=i.keyCode,s=o===40||o===38,a=n.isTyping();if(s&&i.altKey)i.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!Vt(i))i.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&i.ctrlKey){i.preventDefault();let c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{let c=n.activeItemIndex;n.onKeydown(i),this._multiple&&s&&i.shiftKey&&n.activeItem&&n.activeItemIndex!==c&&n.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(We(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(i){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(i);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,i)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(i){return i!==this._value||this._multiple&&Array.isArray(i)?(this.options&&this._setSelectionByValue(i),this._value=i,!0):!1}_getOverlayWidth(i){return this.panelWidth==="auto"?(i instanceof Wc?i.elementRef:i||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new xh(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),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(){let i=Ze(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(te(i)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ze(...this.options.map(n=>n._stateChanges)).pipe(te(i)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(i,n){let o=this._selectionModel.isSelected(i);i.value==null&&!this._multiple?(i.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(i.value)):(o!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),n&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let i=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,i):i.indexOf(n)-i.indexOf(o)),this.stateChanges.next()}}_propagateChanges(i){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:i,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let i=-1;for(let n=0;n0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),n=i?i+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),n=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(n){return new(n||e)(h(Pn),h(ue),h(F),h(Ji),h(N),h(bt,8),h(Nc,8),h(Hs,8),h(Vc,8),h(wi,10),pt("tabindex"),h(QM),h(Eh),h(Y$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-select"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,Q$,5),pe(s,dI,5),pe(s,kh,5)),n&2){let a;L(a=j())&&(o.customTrigger=a.first),L(a=j())&&(o.options=a),L(a=j())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(De(L$,5),De(j$,5),De(r_,5)),n&2){let s;L(s=j())&&(o.trigger=s.first),L(s=j())&&(o.panel=s.first),L(s=j())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(q("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),H("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",T],disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T],placeholder:"placeholder",required:[2,"required","required",T],multiple:[2,"multiple","multiple",T],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",T],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",dt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[se([{provide:jc,useExisting:e},{provide:Mh,useExisting:e}]),re,Me,Y],ngContentSelectors:B$,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let s=Ye();ye(V$),b(0,"div",2,0),Z("click",function(){return be(s),_e(o.open())}),b(3,"div",3),U(4,z$,2,1,"span",4)(5,$$,3,1,"span",5),y(),b(6,"div",6)(7,"div",7),li(),b(8,"svg",8),k(9,"path",9),y()()()(),U(10,G$,3,9,"ng-template",10),Z("backdropClick",function(){return be(s),_e(o.close())})("attach",function(){return be(s),_e(o._onAttached())})("detach",function(){return be(s),_e(o.close())})}if(n&2){let s=gt(1);x(3),q("id",o._valueId),x(),le(o.empty?4:5),x(6),M("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Wc,r_,ys],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.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}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._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:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[W$.transformPanel]},changeDetection:0});let t=e;return t})();var KM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[Z$],imports:[Gt,jr,Sb,ee,Fn,Bc,Sb,ee]});let t=e;return t})();var K$=["switch"],X$=["*"];function J$(t,e){t&1&&(b(0,"div",10),li(),b(1,"svg",12),k(2,"path",13),y(),b(3,"svg",14),k(4,"path",15),y()())}var e5=new g("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),t5={provide:Nn,useExisting:lt(()=>XM),multi:!0},bf=class{constructor(e,r){this.source=e,this.checked=r}},i5=0,XM=(()=>{let e=class e{_createChangeEvent(i){return new bf(this,i)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(i){this._checked=i,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,n,o,s,a,c){this._elementRef=i,this._focusMonitor=n,this._changeDetectorRef=o,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new B,this.toggleChange=new B,this.tabIndex=parseInt(s)||0,this.color=a.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++i5}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{i==="keyboard"||i==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):i||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(i){i.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(i){this.checked=!!i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorOnChange=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new bf(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Et),h(ue),pt("tabindex"),h(e5),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&De(K$,5),n&2){let s;L(s=j())&&(o._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),kt(o.color?"mat-"+o.color:""),H("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",T],color:"color",disabled:[2,"disabled","disabled",T],disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)],checked:[2,"checked","checked",T],hideIcon:[2,"hideIcon","hideIcon",T]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[se([t5,{provide:tn,useExisting:e,multi:!0}]),re,Me,Y],ngContentSelectors:X$,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[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"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",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","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let s=Ye();ye(),b(0,"div",1)(1,"button",2,0),Z("click",function(){return be(s),_e(o._handleClick())}),k(3,"div",3),b(4,"div",4)(5,"div",5)(6,"div",6),k(7,"div",7),y(),b(8,"div",8),k(9,"div",9),y(),U(10,J$,5,0,"div",10),y()()(),b(11,"label",11),Z("click",function(c){return be(s),_e(c.stopPropagation())}),W(12),y()()}if(n&2){let s=gt(2);M("labelPosition",o.labelPosition),x(),H("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),M("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),q("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked),x(8),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),x(),le(o.hideIcon?-1:10),x(),M("for",o.buttonId),q("id",o._labelId)}},dependencies:[yi,Rh],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.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 .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.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)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.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)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.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:75ms opacity 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}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let t=e;return t})();var JM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[XM,ee,ee]});let t=e;return t})();var n5=["mat-sort-header",""],r5=["*"];function o5(t,e){if(t&1){let r=Ye();b(0,"div",2),Z("@arrowPosition.start",function(){be(r);let n=$();return _e(n._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){be(r);let n=$();return _e(n._disableViewStateAnimation=!1)}),k(1,"div",3),b(2,"div",4),k(3,"div",5)(4,"div",6)(5,"div",7),y()()}if(t&2){let r=$();M("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),x(2),M("@indicator",r._getArrowDirectionState()),x(),M("@leftPointer",r._getArrowDirectionState()),x(),M("@rightPointer",r._getArrowDirectionState())}}var ek=new g("MAT_SORT_DEFAULT_OPTIONS"),s5=(()=>{let e=class e{get direction(){return this._direction}set direction(i){this._direction=i}constructor(i){this._defaultOptions=i,this._initializedStream=new Hr(1),this.sortables=new Map,this._stateChanges=new C,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new B,this.initialized=this._initializedStream}register(i){this.sortables.set(i.id,i)}deregister(i){this.sortables.delete(i.id)}sort(i){this.active!=i.id?(this.active=i.id,this.direction=i.start?i.start:this.start):this.direction=this.getNextSortDirection(i),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(i){if(!i)return"";let n=i?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=a5(i.start||this.start,n),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(n){return new(n||e)(h(ek,8))},e.\u0275dir=I({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",T],disabled:[2,"matSortDisabled","disabled",T]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[re,Me]});let t=e;return t})();function a5(t,e){let r=["asc","desc"];return t=="desc"&&r.reverse(),e||r.push(""),r}var Vr=lI.ENTERING+" "+cI.STANDARD_CURVE,Xs={indicator:st("indicator",[ke("active-asc, asc",de({transform:"translateY(0px)"})),ke("active-desc, desc",de({transform:"translateY(10px)"})),Le("active-asc <=> active-desc",Ge(Vr))]),leftPointer:st("leftPointer",[ke("active-asc, asc",de({transform:"rotate(-45deg)"})),ke("active-desc, desc",de({transform:"rotate(45deg)"})),Le("active-asc <=> active-desc",Ge(Vr))]),rightPointer:st("rightPointer",[ke("active-asc, asc",de({transform:"rotate(45deg)"})),ke("active-desc, desc",de({transform:"rotate(-45deg)"})),Le("active-asc <=> active-desc",Ge(Vr))]),arrowOpacity:st("arrowOpacity",[ke("desc-to-active, asc-to-active, active",de({opacity:1})),ke("desc-to-hint, asc-to-hint, hint",de({opacity:.54})),ke("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",de({opacity:0})),Le("* => asc, * => desc, * => active, * => hint, * => void",Ge("0ms")),Le("* <=> *",Ge(Vr))]),arrowPosition:st("arrowPosition",[Le("* => desc-to-hint, * => desc-to-active",Ge(Vr,Lc([de({transform:"translateY(-25%)"}),de({transform:"translateY(0)"})]))),Le("* => hint-to-desc, * => active-to-desc",Ge(Vr,Lc([de({transform:"translateY(0)"}),de({transform:"translateY(25%)"})]))),Le("* => asc-to-hint, * => asc-to-active",Ge(Vr,Lc([de({transform:"translateY(25%)"}),de({transform:"translateY(0)"})]))),Le("* => hint-to-asc, * => active-to-asc",Ge(Vr,Lc([de({transform:"translateY(0)"}),de({transform:"translateY(-25%)"})]))),ke("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",de({transform:"translateY(0)"})),ke("hint-to-desc, active-to-desc, desc",de({transform:"translateY(-25%)"})),ke("hint-to-asc, active-to-asc, asc",de({transform:"translateY(25%)"}))]),allowChildren:st("allowChildren",[Le("* <=> *",[ko("@*",Mo(),{optional:!0})])])},_f=(()=>{let e=class e{constructor(){this.changes=new C}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function c5(t){return t||new _f}var l5={provide:_f,deps:[[new _n,new Gn,_f]],useFactory:c5},cae=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(i){this._updateSortActionDescription(i)}constructor(i,n,o,s,a,c,l,d){this._intl=i,this._changeDetectorRef=n,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=c,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let n=!!i;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(i){this._isDisabled()&&i||(this._showIndicatorHint=i,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(i){this._viewState=i||{},this._disableViewStateAnimation&&(this._viewState={toState:i.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(i){!this._isDisabled()&&(i.keyCode===32||i.keyCode===13)&&(i.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let i=this._viewState.fromState;return(i?`${i}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(i){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,i)),this._sortActionDescription=i}_handleStateChanges(){this._rerenderSubscription=Ze(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(n){return new(n||e)(h(_f),h(ue),h(s5,8),h("MAT_SORT_HEADER_COLUMN_DEF",8),h(Et),h(N),h(Ch,8),h(ek,8))},e.\u0275cmp=z({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&Z("click",function(){return o._handleClick()})("keydown",function(a){return o._handleKeydown(a)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),n&2&&(q("aria-sort",o._getAriaSortAttribute()),H("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",T],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",T]},exportAs:["matSortHeader"],standalone:!0,features:[re,Y],attrs:n5,ngContentSelectors:r5,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(n,o){n&1&&(ye(),b(0,"div",0)(1,"div",1),W(2),y(),U(3,o5,6,6,"div",2),y()),n&2&&(H("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),q("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),x(3),le(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Xs.indicator,Xs.leftPointer,Xs.rightPointer,Xs.arrowOpacity,Xs.arrowPosition,Xs.allowChildren]},changeDetection:0});let t=e;return t})(),tk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[l5],imports:[ee]});let t=e;return t})();var d5=["*"];function u5(t,e){t&1&&W(0)}var f_=(()=>{let e=class e{constructor(i){this._elementRef=i}focus(){this._elementRef.nativeElement.focus()}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let t=e;return t})(),p_=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkStepLabel",""]],standalone:!0});let t=e;return t})(),h5=0;var rr={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Qc=new g("STEPPER_GLOBAL_OPTIONS"),yf=(()=>{let e=class e{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(i){this._completedOverride=i}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(i){this._customError=i}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(i,n){this._stepper=i,this.interacted=!1,this.interactedStream=new B,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=n||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};e.\u0275fac=function(n){return new(n||e)(h(lt(()=>Js)),h(Qc,8))},e.\u0275cmp=z({type:e,selectors:[["cdk-step"]],contentQueries:function(n,o,s){if(n&1&&pe(s,p_,5),n&2){let a;L(a=j())&&(o.stepLabel=a.first)}},viewQuery:function(n,o){if(n&1&&De(Re,7),n&2){let s;L(s=j())&&(o.content=s.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[re,Me,Y],ngContentSelectors:d5,decls:1,vars:0,template:function(n,o){n&1&&(ye(),U(0,u5,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let t=e;return t})(),Js=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(i){this.steps&&this._steps?(this._isValidIndex(i),this.selected?._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(i){this.selectedIndex=i&&this.steps?this.steps.toArray().indexOf(i):-1}get orientation(){return this._orientation}set orientation(i){this._orientation=i,this._keyManager&&this._keyManager.withVerticalOrientation(i==="vertical")}constructor(i,n,o){this._dir=i,this._changeDetectorRef=n,this._elementRef=o,this._destroyed=new C,this.steps=new Pt,this._sortedHeaders=new Pt,this.linear=!1,this._selectedIndex=0,this.selectionChange=new B,this.selectedIndexChange=new B,this._orientation="horizontal",this._groupId=h5++}ngAfterContentInit(){this._steps.changes.pipe(Qe(this._steps),te(this._destroyed)).subscribe(i=>{this.steps.reset(i.filter(n=>n._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Qe(this._stepHeader),te(this._destroyed)).subscribe(i=>{this._sortedHeaders.reset(i.toArray().sort((n,o)=>n._elementRef.nativeElement.compareDocumentPosition(o._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Rn(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:V()).pipe(Qe(this._layoutDirection()),te(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(i=>i.reset()),this._stateChanged()}_getStepLabelId(i){return`cdk-step-label-${this._groupId}-${i}`}_getStepContentId(i){return`cdk-step-content-${this._groupId}-${i}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(i){let n=i-this._selectedIndex;return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(i,n=rr.NUMBER){let o=this.steps.toArray()[i],s=this._isCurrentStep(i);return o._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(o,s):this._getGuidelineLogic(o,s,n)}_getDefaultIndicatorLogic(i,n){return i._showError()&&i.hasError&&!n?rr.ERROR:!i.completed||n?rr.NUMBER:i.editable?rr.EDIT:rr.DONE}_getGuidelineLogic(i,n,o=rr.NUMBER){return i._showError()&&i.hasError&&!n?rr.ERROR:i.completed&&!n?rr.DONE:i.completed&&n?o:i.editable&&n?rr.EDIT:o}_isCurrentStep(i){return this._selectedIndex===i}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(i){let n=this.steps.toArray();this.selectionChange.emit({selectedIndex:i,previouslySelectedIndex:this._selectedIndex,selectedStep:n[i],previouslySelectedStep:n[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItem(i),this._selectedIndex=i,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(i){let n=Vt(i),o=i.keyCode,s=this._keyManager;s.activeItemIndex!=null&&!n&&(o===32||o===13)?(this.selectedIndex=s.activeItemIndex,i.preventDefault()):s.setFocusOrigin("keyboard").onKeydown(i)}_anyControlsInvalidOrPending(i){return this.linear&&i>=0?this.steps.toArray().slice(0,i).some(n=>{let o=n.stepControl;return(o?o.invalid||o.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let i=this._elementRef.nativeElement,n=hb();return i===n||i.contains(n)}_isValidIndex(i){return i>-1&&(!this.steps||i{let e=class e{constructor(i){this._stepper=i,this.type="submit"}};e.\u0275fac=function(n){return new(n||e)(h(Js))},e.\u0275dir=I({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(){return o._stepper.next()}),n&2&&yt("type",o.type)},inputs:{type:"type"},standalone:!0});let t=e;return t})(),nk=(()=>{let e=class e{constructor(i){this._stepper=i,this.type="button"}};e.\u0275fac=function(n){return new(n||e)(h(Js))},e.\u0275dir=I({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(){return o._stepper.previous()}),n&2&&yt("type",o.type)},inputs:{type:"type"},standalone:!0});let t=e;return t})(),rk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[An]});let t=e;return t})();function f5(t,e){if(t&1&&tt(0,2),t&2){let r=$();M("ngTemplateOutlet",r.iconOverrides[r.state])("ngTemplateOutletContext",r._getIconContext())}}function p5(t,e){if(t&1&&(b(0,"span",7),we(1),y()),t&2){let r=$(2);x(),at(r._getDefaultTextForState(r.state))}}function m5(t,e){if(t&1&&(b(0,"span",8),we(1),y()),t&2){let r=$(3);x(),at(r._intl.completedLabel)}}function g5(t,e){if(t&1&&(b(0,"span",8),we(1),y()),t&2){let r=$(3);x(),at(r._intl.editableLabel)}}function v5(t,e){if(t&1&&(U(0,m5,2,1,"span",8)(1,g5,2,1,"span",8),b(2,"mat-icon",7),we(3),y()),t&2){let r=$(2);le(r.state==="done"?0:r.state==="edit"?1:-1),x(3),at(r._getDefaultTextForState(r.state))}}function b5(t,e){if(t&1&&U(0,p5,2,1,"span",7)(1,v5,4,2,"mat-icon",7),t&2){let r,i=$();le((r=i.state)==="number"?0:1)}}function _5(t,e){t&1&&(b(0,"div",4),tt(1,9),y()),t&2&&(x(),M("ngTemplateOutlet",e.template))}function y5(t,e){if(t&1&&(b(0,"div",4),we(1),y()),t&2){let r=$();x(),at(r.label)}}function w5(t,e){if(t&1&&(b(0,"div",5),we(1),y()),t&2){let r=$();x(),at(r._intl.optionalLabel)}}function x5(t,e){if(t&1&&(b(0,"div",6),we(1),y()),t&2){let r=$();x(),at(r.errorMessage)}}var sk=["*"];function D5(t,e){}function C5(t,e){if(t&1&&(W(0),U(1,D5,0,0,"ng-template",0)),t&2){let r=$();x(),M("cdkPortalOutlet",r._portal)}}var ak=(t,e)=>({step:t,i:e}),ck=t=>({animationDuration:t}),lk=(t,e)=>({value:t,params:e});function E5(t,e){t&1&&W(0)}function I5(t,e){t&1&&k(0,"div",6)}function S5(t,e){if(t&1&&(tt(0,5),U(1,I5,1,0,"div",6)),t&2){let r=e.$implicit,i=e.$index,n=e.$count;$(2);let o=gt(4);M("ngTemplateOutlet",o)("ngTemplateOutletContext",za(3,ak,r,i)),x(),le(i!==n-1?1:-1)}}function M5(t,e){if(t&1){let r=Ye();b(0,"div",7),Z("@horizontalStepTransition.done",function(n){be(r);let o=$(2);return _e(o._animationDone.next(n))}),tt(1,8),y()}if(t&2){let r=e.$implicit,i=e.$index,n=$(2);H("mat-horizontal-stepper-content-inactive",n.selectedIndex!==i),M("@horizontalStepTransition",za(8,lk,n._getAnimationDirection(i),Eg(6,ck,n._getAnimationDuration())))("id",n._getStepContentId(i)),q("aria-labelledby",n._getStepLabelId(i)),x(),M("ngTemplateOutlet",r.content)}}function k5(t,e){if(t&1&&(b(0,"div",1)(1,"div",2),iu(2,S5,2,6,null,null,tu),y(),b(4,"div",3),iu(5,M5,2,11,"div",4,tu),y()()),t&2){let r=$();x(2),nu(r.steps),x(3),nu(r.steps)}}function T5(t,e){if(t&1){let r=Ye();b(0,"div",9),tt(1,5),b(2,"div",10)(3,"div",11),Z("@verticalStepTransition.done",function(n){be(r);let o=$(2);return _e(o._animationDone.next(n))}),b(4,"div",12),tt(5,8),y()()()()}if(t&2){let r=e.$implicit,i=e.$index,n=e.$count,o=$(2),s=gt(4);x(),M("ngTemplateOutlet",s)("ngTemplateOutletContext",za(10,ak,r,i)),x(),H("mat-stepper-vertical-line",i!==n-1),x(),H("mat-vertical-stepper-content-inactive",o.selectedIndex!==i),M("@verticalStepTransition",za(15,lk,o._getAnimationDirection(i),Eg(13,ck,o._getAnimationDuration())))("id",o._getStepContentId(i)),q("aria-labelledby",o._getStepLabelId(i)),x(2),M("ngTemplateOutlet",r.content)}}function R5(t,e){if(t&1&&iu(0,T5,6,18,"div",9,tu),t&2){let r=$();nu(r.steps)}}function A5(t,e){if(t&1){let r=Ye();b(0,"mat-step-header",13),Z("click",function(){let n=be(r).step;return _e(n.select())})("keydown",function(n){be(r);let o=$();return _e(o._onKeydown(n))}),y()}if(t&2){let r=e.step,i=e.i,n=$();H("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),M("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,r.state))("label",r.stepLabel||r.label)("selected",n.selectedIndex===i)("active",n._stepIsNavigable(i,r))("optional",r.optional)("errorMessage",r.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(i,r))("color",r.color||n.color),q("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(i,r)?null:!0)}}var m_=(()=>{let e=class e extends p_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matStepLabel",""]],standalone:!0,features:[ae]});let t=e;return t})(),wf=(()=>{let e=class e{constructor(){this.changes=new C,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function O5(t){return t||new wf}var N5={provide:wf,deps:[[new _n,new Gn,wf]],useFactory:O5},g_=(()=>{let e=class e extends f_{constructor(i,n,o,s){super(o),this._intl=i,this._focusMonitor=n,this._intlSubscription=i.changes.subscribe(()=>s.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(i,n){i?this._focusMonitor.focusVia(this._elementRef,i,n):this._elementRef.nativeElement.focus(n)}_stringLabel(){return this.label instanceof m_?null:this.label}_templateLabel(){return this.label instanceof m_?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(i){return i=="number"?`${this.index+1}`:i=="edit"?"create":i=="error"?"warning":i}};e.\u0275fac=function(n){return new(n||e)(h(wf),h(Et),h(N),h(ue))},e.\u0275cmp=z({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(n,o){n&2&&kt("mat-"+(o.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[ae,Y],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(n,o){if(n&1&&(k(0,"div",0),b(1,"div")(2,"div",1),U(3,f5,1,2,"ng-container",2)(4,b5,2,1),y()(),b(5,"div",3),U(6,_5,2,1,"div",4)(7,y5,2,1,"div",4)(8,w5,2,1,"div",5)(9,x5,2,1,"div",6),y()),n&2){let s;M("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),x(),eu("mat-step-icon-state-",o.state," mat-step-icon"),H("mat-step-icon-selected",o.selected),x(2),le(o.iconOverrides&&o.iconOverrides[o.state]?3:4),x(2),H("mat-step-label-active",o.active)("mat-step-label-selected",o.selected)("mat-step-label-error",o.state=="error"),x(),le((s=o._templateLabel())?6:o._stringLabel()?7:-1,s),x(2),le(o.optional&&o.state!="error"?8:-1),x(),le(o.state==="error"?9:-1)}},dependencies:[yi,lo,Li],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let t=e;return t})(),dk="500ms",uk="225ms",ok={horizontalStepTransition:st("horizontalStepTransition",[ke("previous",de({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),ke("current",de({transform:"none",visibility:"inherit"})),ke("next",de({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Le("* => *",Gb([Ge("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),ko("@*",Mo(),{optional:!0})]),{params:{animationDuration:dk}})]),verticalStepTransition:st("verticalStepTransition",[ke("previous",de({height:"0px",visibility:"hidden"})),ke("next",de({height:"0px",visibility:"hidden"})),ke("current",de({height:"*",visibility:"inherit"})),Le("* <=> current",Gb([Ge("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),ko("@*",Mo(),{optional:!0})]),{params:{animationDuration:uk}})])},F5=(()=>{let e=class e{constructor(i){this.templateRef=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let t=e;return t})(),P5=(()=>{let e=class e{constructor(i){this._template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","matStepContent",""]],standalone:!0});let t=e;return t})(),L5=(()=>{let e=class e extends yf{constructor(i,n,o,s){super(i,s),this._errorStateMatcher=n,this._viewContainerRef=o,this._isSelected=ne.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Oe(()=>this._stepper.selectionChange.pipe(P(i=>i.selectedStep===this),Qe(this._stepper.selected===this)))).subscribe(i=>{i&&this._lazyContent&&!this._portal&&(this._portal=new xi(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(i,n){let o=this._errorStateMatcher.isErrorState(i,n),s=!!(i&&i.invalid&&this.interacted);return o||s}};e.\u0275fac=function(n){return new(n||e)(h(lt(()=>hk)),h(Ji,4),h(Ve),h(Qc,8))},e.\u0275cmp=z({type:e,selectors:[["mat-step"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,m_,5),pe(s,P5,5)),n&2){let a;L(a=j())&&(o.stepLabel=a.first),L(a=j())&&(o._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[se([{provide:Ji,useExisting:e},{provide:yf,useExisting:e}]),ae,Y],ngContentSelectors:sk,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(ye(),U(0,C5,2,1,"ng-template"))},dependencies:[To],encapsulation:2,changeDetection:0});let t=e;return t})(),hk=(()=>{let e=class e extends Js{get animationDuration(){return this._animationDuration}set animationDuration(i){this._animationDuration=/^\d+$/.test(i)?i+"ms":i}constructor(i,n,o){super(i,n,o),this._stepHeader=void 0,this._steps=void 0,this.steps=new Pt,this.animationDone=new B,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new C,this._animationDuration="",this._isServer=!v(Ae).isBrowser;let s=o.nativeElement.nodeName.toLowerCase();this.orientation=s==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:i,templateRef:n})=>this._iconOverrides[i]=n),this.steps.changes.pipe(te(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Gi((i,n)=>i.fromState===n.fromState&&i.toState===n.toState),te(this._destroyed)).subscribe(i=>{i.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(i,n){return n.completed||this.selectedIndex===i||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?dk:uk}};e.\u0275fac=function(n){return new(n||e)(h(bt,8),h(ue),h(N))},e.\u0275cmp=z({type:e,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,L5,5),pe(s,F5,5)),n&2){let a;L(a=j())&&(o._steps=a),L(a=j())&&(o._icons=a)}},viewQuery:function(n,o){if(n&1&&De(g_,5),n&2){let s;L(s=j())&&(o._stepHeader=s)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(n,o){n&2&&(q("aria-orientation",o.orientation),H("mat-stepper-horizontal",o.orientation==="horizontal")("mat-stepper-vertical",o.orientation==="vertical")("mat-stepper-label-position-end",o.orientation==="horizontal"&&o.labelPosition=="end")("mat-stepper-label-position-bottom",o.orientation==="horizontal"&&o.labelPosition=="bottom")("mat-stepper-header-position-bottom",o.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[se([{provide:Js,useExisting:e}]),ae,Y],ngContentSelectors:sk,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(n,o){if(n&1&&(ye(),U(0,E5,1,0)(1,k5,7,0,"div",1)(2,R5,2,0)(3,A5,1,23,"ng-template",null,0,wr)),n&2){let s;le(o._isServer?0:-1),x(),le((s=o.orientation)==="horizontal"?1:s==="vertical"?2:-1)}},dependencies:[lo,g_],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[ok.horizontalStepTransition,ok.verticalStepTransition]},changeDetection:0});let t=e;return t})(),Xae=(()=>{let e=class e extends ik{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,o){n&2&&yt("type",o.type)},standalone:!0,features:[ae]});let t=e;return t})(),Jae=(()=>{let e=class e extends nk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,o){n&2&&yt("type",o.type)},standalone:!0,features:[ae]});let t=e;return t})(),fk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[N5,Ji],imports:[ee,Gt,Pr,rk,Zh,en,hk,g_,ee]});let t=e;return t})();var V5=[[["caption"]],[["colgroup"],["col"]],"*"],B5=["caption","colgroup, col","*"];function z5(t,e){t&1&&W(0,2)}function U5(t,e){t&1&&(b(0,"thead",0),tt(1,1),y(),b(2,"tbody",0),tt(3,2)(4,3),y(),b(5,"tfoot",0),tt(6,4),y())}function H5(t,e){t&1&&tt(0,1)(1,2)(2,3)(3,4)}var nn=new g("CDK_TABLE");var Sf=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let t=e;return t})(),Mf=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let t=e;return t})(),gk=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let t=e;return t})(),ea=(()=>{let e=class e{get name(){return this._name}set name(i){this._setNameInput(i)}get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(i){i!==this._stickyEnd&&(this._stickyEnd=i,this._hasStickyChanged=!0)}constructor(i){this._table=i,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(i){i&&(this._name=i,this.cssClassFriendlyName=i.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(n){return new(n||e)(h(nn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,Sf,5),pe(s,Mf,5),pe(s,gk,5)),n&2){let a;L(a=j())&&(o.cell=a.first),L(a=j())&&(o.headerCell=a.first),L(a=j())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",T],stickyEnd:[2,"stickyEnd","stickyEnd",T]},standalone:!0,features:[se([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),re]});let t=e;return t})(),Df=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},vk=(()=>{let e=class e extends Df{constructor(i,n){super(i,n)}};e.\u0275fac=function(n){return new(n||e)(h(ea),h(N))},e.\u0275dir=I({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ae]});let t=e;return t})();var bk=(()=>{let e=class e extends Df{constructor(i,n){super(i,n);let o=i._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(n){return new(n||e)(h(ea),h(N))},e.\u0275dir=I({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ae]});let t=e;return t})(),Cf=class{constructor(){this.tasks=[],this.endTasks=[]}},Ef=new g("_COALESCED_STYLE_SCHEDULER"),b_=(()=>{let e=class e{constructor(i){this._currentSchedule=null,this._ngZone=v(F)}schedule(i){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(i)}scheduleEnd(i){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(i)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Cf,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let i=this._currentSchedule;this._currentSchedule=new Cf;for(let n of i.tasks)n();for(let n of i.endTasks)n()}this._currentSchedule=null})))}};e.\u0275fac=function(n){return new(n||e)(m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var __=(()=>{let e=class e{constructor(i,n){this.template=i,this._differs=n}ngOnChanges(i){if(!this._columnsDiffer){let n=i.columns&&i.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(i){return this instanceof Kc?i.headerCell.template:this instanceof y_?i.footerCell.template:i.cell.template}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Cn))},e.\u0275dir=I({type:e,features:[Me]});let t=e;return t})(),Kc=(()=>{let e=class e extends __{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,n,o){super(i,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Cn),h(nn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",T]},standalone:!0,features:[re,ae,Me]});let t=e;return t})(),y_=(()=>{let e=class e extends __{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,n,o){super(i,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Cn),h(nn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",T]},standalone:!0,features:[re,ae,Me]});let t=e;return t})(),kf=(()=>{let e=class e extends __{constructor(i,n,o){super(i,n),this._table=o}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Cn),h(nn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ae]});let t=e;return t})(),Oo=(()=>{let e=class e{constructor(i){this._viewContainer=i,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(h(Ve))},e.\u0275dir=I({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let t=e;return t})(),w_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[Oo],encapsulation:2});let t=e;return t})();var x_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[Oo],encapsulation:2});let t=e;return t})(),_k=(()=>{let e=class e{constructor(i){this.templateRef=i,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let t=e;return t})(),pk=["top","bottom","left","right"],v_=class{constructor(e,r,i,n,o=!0,s=!0,a){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let i=[];for(let n of e)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let o=0;o{for(let n of i)this._removeStickyStyle(n,r)})}updateStickyColumns(e,r,i,n=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||i.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],s=o.children.length,a=this._getCellWidths(o,n),c=this._getStickyStartColumnPositions(a,r),l=this._getStickyEndColumnPositions(a,i),d=r.lastIndexOf(!0),u=i.indexOf(!0),f=this.direction==="rtl",p=f?"right":"left",_=f?"left":"right";for(let S of e)for(let E=0;Er[E]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:u===-1?[]:a.slice(u).map((S,E)=>i[E+u]?S:null).reverse()}))})}stickRows(e,r,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let n=i==="bottom"?e.slice().reverse():e,o=i==="bottom"?r.slice().reverse():r,s=[],a=[],c=[];for(let d=0,u=0;d{let i=e.querySelector("tfoot");i&&(r.some(n=>!n)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let n of r)e.style[n]="",e.classList.remove(this._borderCellCss[n]);pk.some(n=>r.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,i,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},i=0;for(let n of pk)e.style[n]&&(i+=r[n]);return i?`${i}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],n=e.children;for(let o=0;o0;o--)r[o]&&(i[o]=n,n+=e[o]);return i}};var If=new g("CDK_SPL");var D_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=v(nn);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let t=e;return t})(),C_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=v(nn);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let t=e;return t})(),E_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=v(nn);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let t=e;return t})(),I_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=v(nn);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let t=e;return t})();var S_=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let i=this._elementRef.nativeElement.getAttribute("role"),n=i==="grid"||i==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(i){this._trackByFn=i}get dataSource(){return this._dataSource}set dataSource(i){this._dataSource!==i&&this._switchDataSource(i)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(i){this._multiTemplateDataRows=i,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(i){this._fixedLayout=i,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(i,n,o,s,a,c,l,d,u,f,p,_){this._differs=i,this._changeDetectorRef=n,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=f,this._stickyPositioningListener=p,this._onDestroy=new C,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new B,this.viewChange=new Pe({start:0,end:Number.MAX_VALUE}),this._injector=v(Se),s||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!l.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((i,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(i=>{i?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),rf(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let i=this._dataDiffer.diff(this._renderRows);if(!i){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,n,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Ws.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(o=>{let s=n.get(o.currentIndex);s.context.$implicit=o.item.data}),this._updateNoDataRow(),$t(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(i){this._customColumnDefs.add(i)}removeColumnDef(i){this._customColumnDefs.delete(i)}addRowDef(i){this._customRowDefs.add(i)}removeRowDef(i){this._customRowDefs.delete(i)}addHeaderRowDef(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}removeHeaderRowDef(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}addFooterRowDef(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}removeFooterRowDef(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}setNoDataRow(i){this._customNoDataRow=i}updateStickyHeaderRowStyles(){let i=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=mk(this._headerRowOutlet,"thead");o&&(o.style.display=i.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let i=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=mk(this._footerRowOutlet,"tfoot");o&&(o.style.display=i.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let i=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...i,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{let a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,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()}_getAllRenderRows(){let i=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(a)?o.get(a):[];if(c.length){let l=c.shift();return l.dataIndex=n,l}else return{data:i,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=xf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let i=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&i.length>1,this._defaultRowDef=i[0]}_renderUpdatedColumns(){let i=(a,c)=>a||!!c.getColumnsDiff(),n=this._rowDefs.reduce(i,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(i,!1);o&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(i,!1);return s&&this._forceRenderFooterRows(),n||o||s}_switchDataSource(i){this._data=[],rf(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),i||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=i}_observeRenderChanges(){if(!this.dataSource)return;let i;rf(this.dataSource)?i=this.dataSource.connect(this):Wr(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=V(this.dataSource)),this._renderChangeSubscription=i.pipe(te(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((i,n)=>this._renderRow(this._headerRowOutlet,i,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((i,n)=>this._renderRow(this._footerRowOutlet,i,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(i,n){let o=Array.from(n.columns||[]).map(c=>{let l=this._columnDefsByName.get(c);return l}),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(i,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(i){let n=[];for(let o=0;o!s.when||s.when(n,i));else{let s=this._rowDefs.find(a=>a.when&&a.when(n,i))||this._defaultRowDef;s&&o.push(s)}return o.length,o}_getEmbeddedViewArgs(i,n){let o=i.rowDef,s={$implicit:i.data};return{templateRef:o.template,context:s,index:n}}_renderRow(i,n,o,s={}){let a=i.viewContainer.createEmbeddedView(n.template,s,o);return this._renderCellTemplateForItem(n,s),a}_renderCellTemplateForItem(i,n){for(let o of this._getCellTemplates(i))Oo.mostRecentCellOutlet&&Oo.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let i=this._rowOutlet.viewContainer;for(let n=0,o=i.length;n{let o=this._columnDefsByName.get(n);return i.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let i=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(i,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(i,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(i,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let i=this._dir?this._dir.value:"ltr";this._stickyStyler=new v_(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:V()).pipe(te(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(i){return i.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let i=this._customNoDataRow||this._noDataRow;if(!i)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let s=o.createEmbeddedView(i.templateRef),a=s.rootNodes[0];s.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(i._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)(h(Cn),h(ue),h(N),pt("role"),h(bt,8),h(K),h(Ae),h($c),h(Ef),h(Pn),h(If,12),h(F,8))},e.\u0275cmp=z({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,_k,5),pe(s,ea,5),pe(s,kf,5),pe(s,Kc,5),pe(s,y_,5)),n&2){let a;L(a=j())&&(o._noDataRow=a.first),L(a=j())&&(o._contentColumnDefs=a),L(a=j())&&(o._contentRowDefs=a),L(a=j())&&(o._contentHeaderRowDefs=a),L(a=j())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&H("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",T],fixedLayout:[2,"fixedLayout","fixedLayout",T]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[se([{provide:nn,useExisting:e},{provide:$c,useClass:qs},{provide:Ef,useClass:b_},{provide:If,useValue:null}]),re,Y],ngContentSelectors:B5,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ye(V5),W(0),W(1,1),U(2,z5,1,0)(3,U5,7,0)(4,H5,4,0)),n&2&&(x(2),le(o._isServer?2:-1),x(),le(o._isNativeHtmlTable?3:4))},dependencies:[C_,D_,I_,E_],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let t=e;return t})();function xf(t,e){return t.concat(Array.from(e))}function mk(t,e){let r=e.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let n=i.nodeType===1?i.nodeName:null;if(n===r)return i;if(n==="TABLE")break;i=i.parentNode}return null}var yk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Gc]});let t=e;return t})();var $5=[[["caption"]],[["colgroup"],["col"]],"*"],G5=["caption","colgroup, col","*"];function W5(t,e){t&1&&W(0,2)}function q5(t,e){t&1&&(b(0,"thead",0),tt(1,1),y(),b(2,"tbody",2),tt(3,3)(4,4),y(),b(5,"tfoot",0),tt(6,5),y())}function Y5(t,e){t&1&&tt(0,1)(1,3)(2,4)(3,5)}var Bce=(()=>{let e=class e extends S_{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[se([{provide:S_,useExisting:e},{provide:nn,useExisting:e},{provide:Ef,useClass:b_},{provide:$c,useClass:qs},{provide:If,useValue:null}]),ae,Y],ngContentSelectors:G5,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ye($5),W(0),W(1,1),U(2,W5,1,0)(3,q5,7,0)(4,Y5,4,0)),n&2&&(x(2),le(o._isServer?2:-1),x(),le(o._isNativeHtmlTable?3:4))},dependencies:[C_,D_,I_,E_],styles:[".mat-mdc-table-sticky{position:sticky !important}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{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}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-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});let t=e;return t})(),zce=(()=>{let e=class e extends Sf{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[se([{provide:Sf,useExisting:e}]),ae]});let t=e;return t})(),Uce=(()=>{let e=class e extends Mf{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[se([{provide:Mf,useExisting:e}]),ae]});let t=e;return t})();var Hce=(()=>{let e=class e extends ea{get name(){return this._name}set name(i){this._setNameInput(i)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[se([{provide:ea,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ae]});let t=e;return t})(),$ce=(()=>{let e=class e extends vk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ae]});let t=e;return t})();var Gce=(()=>{let e=class e extends bk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ae]});let t=e;return t})();var Wce=(()=>{let e=class e extends Kc{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",T]},standalone:!0,features:[se([{provide:Kc,useExisting:e}]),re,ae]});let t=e;return t})();var qce=(()=>{let e=class e extends kf{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[se([{provide:kf,useExisting:e}]),ae]});let t=e;return t})(),Yce=(()=>{let e=class e extends w_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[se([{provide:w_,useExisting:e}]),ae,Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[Oo],encapsulation:2});let t=e;return t})();var Zce=(()=>{let e=class e extends x_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[se([{provide:x_,useExisting:e}]),ae,Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[Oo],encapsulation:2});let t=e;return t})();var M_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,yk,ee]});let t=e;return t})(),Z5=9007199254740991,wk=class extends nf{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Pe([]),this._filter=new Pe(""),this._internalPageChanges=new C,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,i)=>{let n=r[i];if(fb(n)){let o=Number(n);return o{let n=i.active,o=i.direction;return!n||o==""?r:r.sort((s,a)=>{let c=this.sortingDataAccessor(s,n),l=this.sortingDataAccessor(a,n),d=typeof c,u=typeof l;d!==u&&(d==="number"&&(c+=""),u==="number"&&(l+=""));let f=0;return c!=null&&l!=null?c>l?f=1:c{let n=Object.keys(r).reduce((s,a)=>s+r[a]+"\u25EC","").toLowerCase(),o=i.trim().toLowerCase();return n.indexOf(o)!=-1},this._data=new Pe(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Ze(this._sort.sortChange,this._sort.initialized):V(null),r=this._paginator?Ze(this._paginator.page,this._internalPageChanges,this._paginator.initialized):V(null),i=this._data,n=$i([i,this._filter]).pipe(P(([a])=>this._filterData(a))),o=$i([n,e]).pipe(P(([a])=>this._orderData(a))),s=$i([o,r]).pipe(P(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let i=Math.ceil(r.length/r.pageSize)-1||0,n=Math.min(r.pageIndex,i);n!==r.pageIndex&&(r.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};function Pk(t){let e=t.cloneNode(!0),r=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let n=0;n=i&&r<=n&&e>=o&&e<=s}function Jc(t,e,r){t.top+=e,t.bottom=t.top+t.height,t.left+=r,t.right=t.left+t.width}function Ek(t,e,r,i){let{top:n,right:o,bottom:s,left:a,width:c,height:l}=t,d=c*e,u=l*e;return i>n-u&&ia-d&&r{this.positions.set(r,{scrollPosition:{top:r.scrollTop,left:r.scrollLeft},clientRect:F_(r)})})}handleScroll(e){let r=At(e),i=this.positions.get(r);if(!i)return null;let n=i.scrollPosition,o,s;if(r===this._document){let l=this.getViewportScrollPosition();o=l.top,s=l.left}else o=r.scrollTop,s=r.scrollLeft;let a=n.top-o,c=n.left-s;return this.positions.forEach((l,d)=>{l.clientRect&&r!==d&&r.contains(d)&&Jc(l.clientRect,a,c)}),n.top=o,n.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function Lk(t,e){let r=t.rootNodes;if(r.length===1&&r[0].nodeType===e.ELEMENT_NODE)return r[0];let i=e.createElement("div");return r.forEach(n=>i.appendChild(n)),i}function P_(t,e,r){for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];n?t.setProperty(i,n,r?.has(i)?"important":""):t.removeProperty(i)}return t}function ta(t,e){let r=e?"":"none";P_(t.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":r,"-ms-user-select":r,"-webkit-user-select":r,"-moz-user-select":r})}function Ik(t,e,r){P_(t.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},r)}function Nf(t,e){return e&&e!="none"?t+" "+e:t}function Sk(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=Ff(e.left,e.top)}function Ff(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Mk(t){let e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function K5(t){let e=getComputedStyle(t),r=k_(e,"transition-property"),i=r.find(a=>a==="transform"||a==="all");if(!i)return 0;let n=r.indexOf(i),o=k_(e,"transition-duration"),s=k_(e,"transition-delay");return Mk(o[n])+Mk(s[n])}function k_(t,e){return t.getPropertyValue(e).split(",").map(i=>i.trim())}var X5=new Set(["position"]),R_=class{constructor(e,r,i,n,o,s,a,c,l){this._document=e,this._rootElement=r,this._direction=i,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=s,this._pickupPositionOnPage=a,this._initialTransform=c,this._zIndex=l}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return K5(this._preview)}addEventListener(e,r){this._preview.addEventListener(e,r)}removeEventListener(e,r){this._preview.removeEventListener(e,r)}_createPreview(){let e=this._previewTemplate,r=this._previewClass,i=e?e.template:null,n;if(i&&e){let o=e.matchSize?this._initialDomRect:null,s=e.viewContainer.createEmbeddedView(i,e.context);s.detectChanges(),n=Lk(s,this._document),this._previewEmbeddedView=s,e.matchSize?Sk(n,o):n.style.transform=Ff(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=Pk(this._rootElement),Sk(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return P_(n.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},X5),ta(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),r&&(Array.isArray(r)?r.forEach(o=>n.classList.add(o)):n.classList.add(r)),n}},kk=jt({passive:!0}),Tf=jt({passive:!1}),Tk=jt({passive:!1,capture:!0}),J5=800,Rk=new Set(["position"]),A_=class{get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(r=>ta(r,e)))}constructor(e,r,i,n,o,s){this._config=r,this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=vs(!1),this._moveEvents=new C,this._pointerMoveSubscription=ne.EMPTY,this._pointerUpSubscription=ne.EMPTY,this._scrollSubscription=ne.EMPTY,this._resizeSubscription=ne.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new C,this.started=new C,this.released=new C,this.ended=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{let c=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging()){let d=Math.abs(c.x-this._pickupPositionOnPage.x),u=Math.abs(c.y-this._pickupPositionOnPage.y);if(d+u>=this._config.dragStartThreshold){let p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),_=this._dropContainer;if(!p){this._endDragSequence(a);return}(!_||!_.isDragging()&&!_.isReceiving())&&(a.cancelable&&a.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(a)))}return}a.cancelable&&a.preventDefault();let l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{let d=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=l.x-d.x+this._passiveTransform.x,u.y=l.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:a,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(e).withParent(r.parentDragRef||null),this._parentPositions=new Of(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>ot(i)),this._handles.forEach(i=>ta(i,this.disabled)),this._toggleNativeDragInteractions();let r=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&r.add(i)}),this._disabledHandles=r,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let r=ot(e);return r!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{r.addEventListener("mousedown",this._pointerDown,Tf),r.addEventListener("touchstart",this._pointerDown,kk),r.addEventListener("dragstart",this._nativeDragStart,Tf)}),this._initialTransform=void 0,this._rootElement=r),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?ot(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),ta(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),ta(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",Ok,Tk)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let r=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(r),dropPoint:r,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){Xc(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let r=this._getShadowRoot(),i=this._dropContainer;if(r&&this._ngZone.runOutsideAngular(()=>{r.addEventListener("selectstart",Ok,Tk)}),i){let n=this._rootElement,o=n.parentNode,s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new R_(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(o,r)),Ik(n,!1,Rk),this._document.body.appendChild(o.replaceChild(s,n)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,r){this._parentDragRef&&r.stopPropagation();let i=this.isDragging(),n=Xc(r),o=!n&&r.button!==0,s=this._rootElement,a=At(r),c=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+J5>Date.now(),l=n?Co(r):Do(r);if(a&&a.draggable&&r.type==="mousedown"&&r.preventDefault(),i||o||c||l)return;if(this._handles.length){let f=s.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=F_(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,r);let u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(r);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,r)}_cleanupDragArtifacts(e){Ik(this._rootElement,!0,Rk),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let r=this._dropContainer,i=r.getItemIndex(this),n=this._getPointerPositionOnPage(e),o=this._getDragDistance(n),s=r._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:r,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:n,event:e}),r.drop(this,i,this._initialIndex,this._initialContainer,s,o,n,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:r},{x:i,y:n}){let o=this._initialContainer._getSiblingContainerFromPosition(this,e,r);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,r)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,e,r,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,e,r,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,r):this._applyPreviewTransform(e-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let r=this._preview.getTransitionDuration();return r===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let n=s=>{(!s||At(s)===this._preview&&s.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",n),i(),clearTimeout(o))},o=setTimeout(n,r*1.5);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,r=e?e.template:null,i;return r?(this._placeholderRef=e.viewContainer.createEmbeddedView(r,e.context),this._placeholderRef.detectChanges(),i=Lk(this._placeholderRef,this._document)):i=Pk(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,r,i){let n=r===this._rootElement?null:r,o=n?n.getBoundingClientRect():e,s=Xc(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),c=s.pageX-o.left-a.left,l=s.pageY-o.top-a.top;return{x:o.left-e.left+c,y:o.top-e.top+l}}_getPointerPositionOnPage(e){let r=this._getViewportScrollPosition(),i=Xc(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-r.left,o=i.pageY-r.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=o,a.matrixTransform(s.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(e){let r=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:n}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||r==="x"?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||r==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=a.top+s,u=a.bottom-(l-s),f=a.left+o,p=a.right-(c-o);i=Ak(i,f,p),n=Ak(n,d,u)}return{x:i,y:n}}_updatePointerDirectionDelta(e){let{x:r,y:i}=e,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(r-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(n.x=r>o.x?1:-1,o.x=r),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>o.y?1:-1,o.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,ta(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,Tf),e.removeEventListener("touchstart",this._pointerDown,kk),e.removeEventListener("dragstart",this._nativeDragStart,Tf)}_applyRootElementTransform(e,r){let i=Ff(e,r),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=Nf(i,this._initialTransform)}_applyPreviewTransform(e,r){let i=this._previewTemplate?.template?void 0:this._initialTransform,n=Ff(e,r);this._preview.setTransform(Nf(n,i))}_getDragDistance(e){let r=this._pickupPositionOnPage;return r?{x:e.x-r.x,y:e.y-r.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:r}=this._passiveTransform;if(e===0&&r===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||i.width===0&&i.height===0)return;let o=n.left-i.left,s=i.right-n.right,a=n.top-i.top,c=i.bottom-n.bottom;n.width>i.width?(o>0&&(e+=o),s>0&&(e-=s)):e=0,n.height>i.height?(a>0&&(r+=a),c>0&&(r-=c)):r=0,(e!==this._passiveTransform.x||r!==this._passiveTransform.y)&&this.setFreeDragPosition({y:r,x:e})}_getDragStartDelay(e){let r=this.dragStartDelay;return typeof r=="number"?r:Xc(e)?r.touch:r?r.mouse:0}_updateOnScroll(e){let r=this._parentPositions.handleScroll(e);if(r){let i=At(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Jc(this._boundaryRect,r.top,r.left),this._pickupPositionOnPage.x+=r.left,this._pickupPositionOnPage.y+=r.top,this._dropContainer||(this._activeTransform.x-=r.left,this._activeTransform.y-=r.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Ec(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,r){let i=this._previewContainer||"global";if(i==="parent")return e;if(i==="global"){let n=this._document;return r||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return ot(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(e){return this._handles.find(r=>e.target&&(e.target===r||r.contains(e.target)))}};function Ak(t,e,r){return Math.max(e,Math.min(r,t))}function Xc(t){return t.type[0]==="t"}function Ok(t){t.preventDefault()}function e3(t,e,r){let i=Nk(e,t.length-1),n=Nk(r,t.length-1);if(i===n)return;let o=t[i],s=n0)return null;let a=this.orientation==="horizontal",c=o.findIndex(E=>E.drag===e),l=o[s],d=o[c].clientRect,u=l.clientRect,f=c>s?1:-1,p=this._getItemOffsetPx(d,u,f),_=this._getSiblingOffsetPx(c,o,f),S=o.slice();return e3(o,c,s),o.forEach((E,R)=>{if(S[R]===E)return;let he=E.drag===e,Ne=he?p:_,Ue=he?e.getPlaceholderElement():E.drag.getRootElement();E.offset+=Ne,a?(Ue.style.transform=Nf(`translate3d(${Math.round(E.offset)}px, 0, 0)`,E.initialTransform),Jc(E.clientRect,0,Ne)):(Ue.style.transform=Nf(`translate3d(0, ${Math.round(E.offset)}px, 0)`,E.initialTransform),Jc(E.clientRect,Ne,0))}),this._previousSwap.overlaps=T_(u,r,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:c,currentIndex:s}}enter(e,r,i,n){let o=n==null||n<0?this._getItemIndexFromPointerPosition(e,r,i):n,s=this._activeDraggables,a=s.indexOf(e),c=e.getPlaceholderElement(),l=s[o];if(l===e&&(l=s[o+1]),!l&&(o==null||o===-1||o-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){let d=l.getRootElement();d.parentElement.insertBefore(c,d),s.splice(o,0,e)}else ot(this._element).appendChild(c),s.push(e);c.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables.forEach(e=>{let r=e.getRootElement();if(r){let i=this._itemPositions.find(n=>n.drag===e)?.initialTransform;r.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,r){this._itemPositions.forEach(({clientRect:i})=>{Jc(i,e,r)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(r=>{let i=r.getVisibleElement();return{drag:r,offset:0,initialTransform:i.style.transform||"",clientRect:F_(i)}}).sort((r,i)=>e?r.clientRect.left-i.clientRect.left:r.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,r,i){let n=this.orientation==="horizontal",o=n?r.left-e.left:r.top-e.top;return i===-1&&(o+=n?r.width-e.width:r.height-e.height),o}_getSiblingOffsetPx(e,r,i){let n=this.orientation==="horizontal",o=r[e].clientRect,s=r[e+i*-1],a=o[n?"width":"height"]*i;if(s){let c=n?"left":"top",l=n?"right":"bottom";i===-1?a-=s.clientRect[c]-o[l]:a+=o[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(e,r){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,n=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let s=i[i.length-1].clientRect;return n?e>=s.right:r>=s.bottom}else{let s=i[0].clientRect;return n?e<=s.left:r<=s.top}}_getItemIndexFromPointerPosition(e,r,i,n){let o=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>{if(a===e)return!1;if(n){let l=o?n.x:n.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return o?r>=Math.floor(c.left)&&r=Math.floor(c.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.sorted=new C,this.receivingStarted=new C,this.receivingStopped=new C,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=ne.EMPTY,this._verticalScrollDirection=Vi.NONE,this._horizontalScrollDirection=oi.NONE,this._stopScrollTimers=new C,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),ip(0,yl).pipe(te(this._stopScrollTimers)).subscribe(()=>{let s=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===Vi.UP?s.scrollBy(0,-a):this._verticalScrollDirection===Vi.DOWN&&s.scrollBy(0,a),this._horizontalScrollDirection===oi.LEFT?s.scrollBy(-a,0):this._horizontalScrollDirection===oi.RIGHT&&s.scrollBy(a,0)})},this.element=ot(e),this._document=i,this.withScrollableParents([this.element]),r.registerDropContainer(this),this._parentPositions=new Of(i),this._sortStrategy=new O_(this.element,r),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,r,i,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(e)),this._sortStrategy.enter(e,r,i,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,r,i,n,o,s,a,c={}){this._reset(),this.dropped.next({item:e,currentIndex:r,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:o,distance:s,dropPoint:a,event:c})}withItems(e){let r=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(r.filter(n=>n.isDragging()).every(n=>e.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._sortStrategy.direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._sortStrategy.orientation=e,this}withScrollableParents(e){let r=ot(this.element);return this._scrollableElements=e.indexOf(r)===-1?[r,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,r,i,n){if(this.sortingDisabled||!this._domRect||!Ek(this._domRect,Fk,r,i))return;let o=this._sortStrategy.sort(e,r,i,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,r){if(this.autoScrollDisabled)return;let i,n=Vi.NONE,o=oi.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||Ek(s.clientRect,Fk,e,r)&&([n,o]=t3(a,s.clientRect,this._sortStrategy.direction,e,r),(n||o)&&(i=a))}),!n&&!o){let{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};n=Vk(c,r),o=Bk(c,e),i=window}i&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=i,(n||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=ot(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){let e=ot(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(e).clientRect}_reset(){this._isDragging=!1;let e=ot(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(r=>r._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,r){return this._domRect!=null&&T_(this._domRect,e,r)}_getSiblingContainerFromPosition(e,r,i){return this._siblings.find(n=>n._canReceive(e,r,i))}_canReceive(e,r,i){if(!this._domRect||!T_(this._domRect,r,i)||!this.enterPredicate(e,this))return!1;let n=this._getShadowRoot().elementFromPoint(r,i);if(!n)return!1;let o=ot(this.element);return n===o||o.contains(n)}_startReceiving(e,r){let i=this._activeSiblings;!i.has(e)&&r.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:r}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let r=this._parentPositions.handleScroll(e);r&&this._sortStrategy.updateOnScroll(r.top,r.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=Ec(ot(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(r=>r.isDragging());this._siblings.forEach(r=>r._startReceiving(this,e))}};function Vk(t,e){let{top:r,bottom:i,height:n}=t,o=n*jk;return e>=r-o&&e<=r+o?Vi.UP:e>=i-o&&e<=i+o?Vi.DOWN:Vi.NONE}function Bk(t,e){let{left:r,right:i,width:n}=t,o=n*jk;return e>=r-o&&e<=r+o?oi.LEFT:e>=i-o&&e<=i+o?oi.RIGHT:oi.NONE}function t3(t,e,r,i,n){let o=Vk(e,n),s=Bk(e,i),a=Vi.NONE,c=oi.NONE;if(o){let l=t.scrollTop;o===Vi.UP?l>0&&(a=Vi.UP):t.scrollHeight-l>t.clientHeight&&(a=Vi.DOWN)}if(s){let l=t.scrollLeft;r==="rtl"?s===oi.RIGHT?l<0&&(c=oi.RIGHT):t.scrollWidth+l>t.clientWidth&&(c=oi.LEFT):s===oi.LEFT?l>0&&(c=oi.LEFT):t.scrollWidth-l>t.clientWidth&&(c=oi.RIGHT)}return[a,c]}var Rf=jt({passive:!1,capture:!0}),Af=new Set,i3=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}"],encapsulation:2,changeDetection:0});let t=e;return t})(),n3=(()=>{let e=class e{constructor(i,n){this._ngZone=i,this._appRef=v(fi),this._environmentInjector=v(_t),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=vs([]),this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new C,this.pointerUp=new C,this.scroll=new C,this._preventDefaultWhileDragging=o=>{this._activeDragInstances().length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=n}registerDropContainer(i){this._dropInstances.has(i)||this._dropInstances.add(i)}registerDragItem(i){this._dragInstances.add(i),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Rf)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Rf)}startDragging(i,n){if(!(this._activeDragInstances().indexOf(i)>-1)&&(this._loadResets(),this._activeDragInstances.update(o=>[...o,i]),this._activeDragInstances().length===1)){let o=n.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:s=>this.pointerUp.next(s),options:!0}).set("scroll",{handler:s=>this.scroll.next(s),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Rf}),o||this._globalListeners.set("mousemove",{handler:s=>this.pointerMove.next(s),options:Rf}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((s,a)=>{this._document.addEventListener(a,s.handler,s.options)})})}}stopDragging(i){this._activeDragInstances.update(n=>{let o=n.indexOf(i);return o>-1?(n.splice(o,1),[...n]):n}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances().indexOf(i)>-1}scrolled(i){let n=[this.scroll];return i&&i!==this._document&&n.push(new oe(o=>this._ngZone.runOutsideAngular(()=>{let a=c=>{this._activeDragInstances().length&&o.next(c)};return i.addEventListener("scroll",a,!0),()=>{i.removeEventListener("scroll",a,!0)}}))),Ze(...n)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,n)=>{this._document.removeEventListener(n,i.handler,i.options)}),this._globalListeners.clear()}_loadResets(){if(!Af.has(this._appRef)){Af.add(this._appRef);let i=vD(i3,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{Af.delete(this._appRef),Af.size===0&&i.destroy()})}}};e.\u0275fac=function(n){return new(n||e)(m(F),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),r3={dragStartThreshold:5,pointerDirectionChangeThreshold:5},o3=(()=>{let e=class e{constructor(i,n,o,s){this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=s}createDrag(i,n=r3){return new A_(i,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(i){return new N_(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(F),m(Pn),m(n3))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var zk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[o3],imports:[Fn]});let t=e;return t})();var Vle=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[{provide:qb,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:Qc,useValue:{displayDefaultIndicatorType:!0,showError:!1}}],imports:[fI,Wh,MM,Zh,M_,kM,CS,KM,fk,VM,OM,zS,DM,pf,M_,tk,JM,zk,ff,YM]});let t=e;return t})();export{w as a,Q as b,Qk as c,s3 as d,a3 as e,ia as f,oe as g,C as h,Pe as i,Hr as j,Jf as k,ct as l,py as m,Gr as n,V as o,cn as p,yT as q,xT as r,P as s,$i as t,Yr as u,Ze as v,ge as w,ut as x,un as y,Wo as z,We as A,pa as B,Gi as C,Ei as D,ma as E,ga as F,lr as G,Qe as H,Oe as I,te as J,je as K,va as L,G as M,lt as N,D as O,A as P,g as Q,m as R,v as S,z as T,O as U,I as V,Od as W,us as X,Me as Y,be as Z,_e as _,li as $,Vd as aa,qe as ba,Se as ca,Ft as da,N as ea,B as fa,rt as ga,RY as ha,AY as ia,x as ja,h as ka,Yi as la,cs as ma,xn as na,F as oa,Ve as pa,U as qa,q as ra,M as sa,Xt as ta,H as ua,PY as va,b as wa,y as xa,k as ya,_r as za,yr as Aa,tt as Ba,Ye as Ca,Z as Da,$ as Ea,ye as Fa,W as Ga,hF as Ha,pe as Ia,De as Ja,L as Ka,j as La,gt as Ma,we as Na,at as Oa,Lt as Pa,mF as Qa,LY as Ra,gF as Sa,se as Ta,Y as Ua,jY as Va,Eg as Wa,za as Xa,ru as Ya,ou as Za,VY as _a,wr as $a,fi as ab,Tg as bb,ue as cb,K as db,ys as eb,ND as fb,Er as gb,ku as hb,FD as ib,rZ as jb,oZ as kb,lo as lb,Tu as mb,sZ as nb,aZ as ob,Gt as pb,Xn as qb,Xg as rb,LP as sb,wZ as tb,xZ as ub,KD as vb,PZ as wb,LZ as xb,cv as yb,Tt as zb,ws as Ab,Jn as Bb,wC as Cb,xs as Db,vv as Eb,Ja as Fb,Vu as Gb,SL as Hb,ec as Ib,zu as Jb,ei as Kb,Sn as Lb,AC as Mb,QZ as Nb,Wt as Ob,Hu as Pb,Mn as Qb,Wu as Rb,kn as Sb,aQ as Tb,Ki as Ub,fo as Vb,tb as Wb,vi as Xb,dh as Yb,EQ as Zb,ti as _b,cb as $b,Ns as ac,tr as bc,zE as cc,GK as dc,dI as ec,Ah as fc,fI as gc,mI as hc,Nn as ic,zh as jc,Vs as kc,ni as lc,wi as mc,FI as nc,uX as oc,zs as pc,Io as qc,sz as rc,fX as sc,Ub as tc,Hs as uc,zI as vc,UI as wc,hz as xc,Ob as yc,pX as zc,mX as Ac,gX as Bc,Gh as Cc,kX as Dc,ZI as Ec,Wh as Fc,xz as Gc,Li as Hc,Zh as Ic,ji as Jc,HX as Kc,st as Lc,Ge as Mc,$X as Nc,de as Oc,Lc as Pc,Le as Qc,ko as Rc,GX as Sc,iS as Tc,nS as Uc,WX as Vc,oS as Wc,yJ as Xc,wJ as Yc,_S as Zc,Bc as _c,DS as $c,CS as ad,qt as bd,Kh as cd,Yb as dd,$s as ed,Nr as fd,lee as gd,fee as hd,IS as id,Fr as jd,Ys as kd,Pn as ld,It as md,Yc as nd,Qs as od,BS as pd,HS as qd,JS as rd,eM as sd,ri as td,Je as ud,cie as vd,$te as wd,fie as xd,Eie as yd,Iie as zd,nM as Ad,Sie as Bd,Ot as Cd,Tie as Dd,oM as Ed,sM as Fd,aM as Gd,cM as Hd,lM as Id,Zc as Jd,Rie as Kd,Aie as Ld,dM as Md,uM as Nd,fM as Od,ff as Pd,bM as Qd,pf as Rd,_M as Sd,Ane as Td,YH as Ud,c_ as Vd,rre as Wd,s$ as Xd,SM as Yd,Nre as Zd,kM as _d,AM as $d,OM as ae,D$ as be,_oe as ce,F$ as de,P$ as ee,ise as fe,nse as ge,Ase as he,KM as ie,XM as je,s5 as ke,cae as le,L5 as me,hk as ne,Xae as oe,Jae as pe,Bce as qe,zce as re,Uce as se,Hce as te,$ce as ue,Gce as ve,Wce as we,qce as xe,Yce as ye,Zce as ze,wk as Ae,Vle as Be}; + `}var a_=!1;function iH(t,e,r){let i=t[e];if(a_&&typeof i!="function")throw new Error(`${t.constructor.name} is using untilDestroyed but doesn't implement ${e}`);QS(t,r),t[e]=function(){i.apply(this,arguments),KS(this,r),t[e]=i}}function tM(t,e){return r=>{let i=ZS(e);typeof e=="string"?iH(t,e,i):(a_&&nH(t),QS(t,i));let n=t[i];return a_&&JU(t,n),r.pipe(te(n))}}function nH(t){let e=Object.getPrototypeOf(t);if(!(YS in e))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}var si=function(t){return t.MODEL_COMPRESSION="MODEL_COMPRESSION",t.MACHINE_UNLEARNING="MACHINE_UNLEARNING",t.MODEL_TRAINING="MODEL_TRAINING",t.AWQ="AWQ",t.MODEL_SPECIALIZATION="MODEL_SPECIALIZATION",t.NONE="NONE",t}(si||{});var Je=Cs({source:"[Core -> Script]",events:{"Call Script":Tt(),"Call Script Success":ir(),"Call Script Failure":Tt(),"Fetch Script Status":ir(),"Update Script Status":Tt(),"Fetch Script Status Success":Tt(),"Fetch Script Status Failure":Tt(),"Stop Script":ir(),"Stop Script Success":ir(),"Stop Script Failure":Tt(),"Get Current or Last Active Script Details":ir(),"Get Current or Last Active Script Details Success":Tt(),"Get Current or Last Active Script Details Failure":Tt()}});var zn=function(t){return t.RUNNING="running",t.NOT_RUNNING="not_running",t.STOPPING="stopping",t.ERROR="error",t}(zn||{});function Yte(t){return t?t===zn.RUNNING||t===zn.STOPPING:!1}var sf=class extends qs{constructor(){super("current-or-last-active-script-details",void 0,void 0,!1)}};var af=class extends qs{constructor(){super("script-status",void 0,void 0,!1)}};var cf=class extends Lr{constructor(e){super("run-script",e,!1)}};var lf=class extends Lr{constructor(){super("stop-script",{},!1)}};var hie=(()=>{let e=class e{constructor(i,n){this.apiClient=i,this.actions$=n,this.callScript$=An(()=>this.actions$.pipe(On(Je.callScript),Oe(({configs:o})=>this.apiClient.serviceCall(new cf(o)).pipe(Oe(()=>[Je.callScriptSuccess(),Je.fetchScriptStatus()]),ut(s=>V(Je.callScriptFailure({error:s}))))))),this.fetchScriptStatus$=An(()=>this.actions$.pipe(On(Je.fetchScriptStatus),Oe(()=>this.apiClient.serviceCall(new af).pipe(P(o=>{let{status:s}=o;return Je.fetchScriptStatusSuccess({status:s})}),ut(o=>V(Je.fetchScriptStatusFailure({error:o}))))))),this.getCurrentOrLastActiveScriptDetails$=An(()=>this.actions$.pipe(On(Je.getCurrentOrLastActiveScriptDetails),Oe(()=>this.apiClient.serviceCall(new sf).pipe(P(o=>Je.getCurrentOrLastActiveScriptDetailsSuccess({scriptDetails:o})),ut(o=>V(Je.fetchScriptStatusFailure({error:o}))))))),this.stopScript$=An(()=>this.actions$.pipe(On(Je.stopScript),Oe(()=>this.apiClient.serviceCall(new lf).pipe(P(()=>Je.stopScriptSuccess()),ut(o=>V(Je.stopScriptFailure({error:o})))))))}};e.\u0275fac=function(n){return new(n||e)(m(Yh),m(Hu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var rH={scriptStatus:zn.NOT_RUNNING,scriptDetails:{},error:""},vie=Bu(rH,Wt(Je.callScriptSuccess,t=>Q(w({},t),{error:null})),Wt(Je.callScriptFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.getCurrentOrLastActiveScriptDetailsSuccess,(t,{scriptDetails:e})=>Q(w({},t),{scriptDetails:e,error:null})),Wt(Je.getCurrentOrLastActiveScriptDetailsFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.fetchScriptStatusSuccess,(t,{status:e})=>Q(w({},t),{scriptStatus:e,error:null})),Wt(Je.fetchScriptStatusFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.updateScriptStatus,(t,{status:e})=>Q(w({},t),{scriptStatus:e,error:null})),Wt(Je.stopScript,t=>Q(w({},t),{error:null})),Wt(Je.stopScriptSuccess,t=>Q(w({},t),{error:null})),Wt(Je.stopScriptFailure,(t,{error:e})=>Q(w({},t),{error:e})));var iM=Rn(or,t=>t.script.scriptStatus),nM=Rn(or,t=>t.script.scriptDetails);function kie(t){return(t===void 0||Object.prototype.toString.call(t)==="[object Object]")&&Object.keys(t||{}).length===0}function Tie(t){return t==null}function rM(t){return t==null||t===""}function Rie(t){return Array.isArray(t)&&t.length===0}var oM=t=>t.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");var Ot=function(t){return t.QUANTIZATION="quantization",t.PRUNING="pruning",t.MACHINE_UNLEARNING="machine_unlearning",t.AWQ="awq",t.MULTIFLOW="multiflow",t.TRAIN="train",t}(Ot||{}),Nie=Object.entries(Ot).map(([t,e])=>({key:e,value:oM(t)})),sM=function(t){return t.BPTQ="BPTQ",t.BRECQ="BRECQ",t.MINMAXPTQ="MINMAXPTQ",t}(sM||{}),aM=function(t){return t.MULTIFLOW_PRUNE="MULTIFLOW_PRUNE",t}(aM||{}),cM=function(t){return t.IPG="IPG",t.IPM="IPM",t.IPR="IPR",t.IMP="IMP",t.OMP="OMP",t.IPS="IPS",t.IPSY="IPSY",t.IPMB="IPMB",t}(cM||{}),lM=function(t){return t.MU="MU",t}(lM||{}),dM=function(t){return t.AWQ_QUANTIZATION="AWQ_Q",t}(dM||{}),Qc=function(t){return t.QUANTIZATION_TRAIN="Q_TRAIN",t.PRUNING_TRAIN="P_TRAIN",t.MACHINE_UNLEARNING_TRAIN="MU_TRAIN",t}(Qc||{}),Fie={[Ot.MACHINE_UNLEARNING]:Qc.MACHINE_UNLEARNING_TRAIN,[Ot.PRUNING]:Qc.PRUNING_TRAIN,[Ot.QUANTIZATION]:Qc.QUANTIZATION_TRAIN};function Pie(t){return Object.values(cM).includes(t)?Ot.PRUNING:Object.values(sM).includes(t)?Ot.QUANTIZATION:Object.values(lM).includes(t)?Ot.MACHINE_UNLEARNING:Object.values(dM).includes(t)?Ot.AWQ:Object.values(Qc).includes(t)?Ot.TRAIN:Object.values(aM).includes(t)?Ot.MULTIFLOW:null}var uM=(()=>{let e=class e{constructor(i){this.store=i,this.scriptStatus$=this.store.select(iM),this.scriptDetails$=this.store.select(nM)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ii))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var hM=(()=>{let e=class e{get currentRunningPage$(){return this._currentRunningPage.asObservable()}constructor(i){this.scriptFacadeService=i,this._currentRunningPage=new Pe(si.NONE)}trackCurrentRunningPage(){this.scriptFacadeService.scriptStatus$.pipe(ge(i=>i===zn.RUNNING||i===zn.STOPPING),je(()=>this.scriptFacadeService.dispatch(Je.getCurrentOrLastActiveScriptDetails())),Oe(()=>this.scriptFacadeService.scriptDetails$.pipe(fr(1),We(1),ge(i=>!rM(i?.algKey)))),P(i=>i.type)).subscribe(i=>{switch(i){case Ot.PRUNING:case Ot.QUANTIZATION:this._currentRunningPage.next(si.MODEL_COMPRESSION);break;case Ot.MACHINE_UNLEARNING:{this._currentRunningPage.next(si.MACHINE_UNLEARNING);break}case Ot.AWQ:{this._currentRunningPage.next(si.AWQ);break}case Ot.TRAIN:{this._currentRunningPage.next(si.MODEL_TRAINING);break}case Ot.MULTIFLOW:{this._currentRunningPage.next(si.MODEL_SPECIALIZATION);break}default:{this._currentRunningPage.next(si.NONE);break}}}),this.scriptFacadeService.scriptStatus$.subscribe(i=>{i!==zn.RUNNING&&i!==zn.STOPPING&&this._currentRunningPage.next(si.NONE)})}};e.\u0275fac=function(n){return new(n||e)(m(uM))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var aH=["determinateSpinner"];function cH(t,e){if(t&1&&(di(),_(0,"svg",11),k(1,"circle",12),y()),t&2){let r=$();q("viewBox",r._viewBox()),x(),Jt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeCircumference()/2,"px")("stroke-width",r._circleStrokeWidth(),"%"),q("r",r._circleRadius())}}var lH=new g("mat-progress-spinner-default-options",{providedIn:"root",factory:dH});function dH(){return{diameter:fM}}var fM=100,uH=10,pM=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}constructor(i,n,o){this._elementRef=i,this._defaultColor="primary",this._value=0,this._diameter=fM,this._noopAnimations=n==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=i.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(i){this._value=Math.max(0,Math.min(100,i||0))}get diameter(){return this._diameter}set diameter(i){this._diameter=i||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(i){this._strokeWidth=i||0}_circleRadius(){return(this.diameter-uH)/2}_viewBox(){let i=this._circleRadius()*2+this.strokeWidth;return`0 0 ${i} ${i}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(n){return new(n||e)(h(N),h(rt,8),h(lH))},e.\u0275cmp=z({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&De(aH,5),n&2){let s;L(s=j())&&(o._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(q("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),kt("mat-"+o.color),Jt("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),H("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",dt],diameter:[2,"diameter","diameter",dt],strokeWidth:[2,"strokeWidth","strokeWidth",dt]},exportAs:["matProgressSpinner"],standalone:!0,features:[re,Y],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["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(n,o){if(n&1&&(U(0,cH,2,8,"ng-template",null,0,Er),_(2,"div",2,1),di(),_(4,"svg",3),k(5,"circle",4),y()(),jd(),_(6,"div",5)(7,"div",6)(8,"div",7),tt(9,8),y(),_(10,"div",9),tt(11,8),y(),_(12,"div",10),tt(13,8),y()()()),n&2){let s=gt(1);x(4),q("viewBox",o._viewBox()),x(),Jt("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),q("r",o._circleRadius()),x(4),M("ngTemplateOutlet",s),x(2),M("ngTemplateOutlet",s),x(2),M("ngTemplateOutlet",s)}},dependencies:[po],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 .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@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}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@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 .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.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});let t=e;return t})();var df=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Gt,ee]});let t=e;return t})();var fH=["tooltip"],vM=20;var bM=new g("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition({scrollThrottle:vM})}});function pH(t){return()=>t.scrollStrategies.reposition({scrollThrottle:vM})}var mH={provide:bM,deps:[It],useFactory:pH};function gH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var vH=new g("mat-tooltip-default-options",{providedIn:"root",factory:gH});var mM="tooltip-panel",gM=jt({passive:!0}),bH=8,_H=8,yH=24,wH=200,_M=(()=>{let e=class e{get position(){return this._position}set position(i){i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(i){this._positionAtOrigin=yi(i),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(i){this._disabled=yi(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(i){this._showDelay=yo(i)}get hideDelay(){return this._hideDelay}set hideDelay(i){this._hideDelay=yo(i),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=i!=null?String(i).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(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(i,n,o,s,a,c,l,d,u,f,p,v){this._overlay=i,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=c,this._ariaDescriber=l,this._focusMonitor=d,this._dir=f,this._defaultOptions=p,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=xH,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new C,this._injector=b(Se),this._scrollStrategy=u,this._document=v,p&&(this._showDelay=p.showDelay,this._hideDelay=p.hideDelay,p.position&&(this.position=p.position),p.positionAtOrigin&&(this.positionAtOrigin=p.positionAtOrigin),p.touchGestures&&(this.touchGestures=p.touchGestures)),f.change.pipe(te(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=bH}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(te(this._destroyed)).subscribe(i=>{i?i==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{i.removeEventListener(n,o,gM)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}show(i=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new jr(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}hide(i=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(i):(n._cancelPendingAnimations(),this._detach()))}toggle(i){this._isTooltipVisible()?this.hide():this.show(void 0,i)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(i){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!i)&&s._origin instanceof N)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?i||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(te(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${mM}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(te(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!Vt(s)&&(s.preventDefault(),s.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(i){let n=i.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();n.withPositions([this._addOffset(w(w({},o.main),s.main)),this._addOffset(w(w({},o.fallback),s.fallback))])}_addOffset(i){let n=_H,o=!this._dir||this._dir.value=="ltr";return i.originY==="top"?i.offsetY=-n:i.originY==="bottom"?i.offsetY=n:i.originX==="start"?i.offsetX=o?-n:n:i.originX==="end"&&(i.offsetX=o?n:-n),i}_getOrigin(){let i=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&i||n=="right"&&!i?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&i||n=="left"&&!i)&&(o={originX:"end",originY:"center"});let{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){let i=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&i||n=="right"&&!i?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&i||n=="left"&&!i)&&(o={overlayX:"start",overlayY:"center"});let{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),$t(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}_invertPosition(i,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):i==="end"?i="start":i==="start"&&(i="end"),{x:i,y:n}}_updateCurrentPositionClass(i){let{overlayY:n,originX:o,originY:s}=i,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&s==="top"?"above":"below",a!==this._currentPosition){let c=this._overlayRef;if(c){let l=`${this._cssClassPrefix}-${mM}-`;c.removePanelClass(l+this._currentPosition),c.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",i=>{this._setupPointerExitEventsIfNeeded();let n;i.x!==void 0&&i.y!==void 0&&(n=i),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",i=>{let n=i.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};i.push(["touchend",n],["touchcancel",n])}this._addListeners(i),this._passiveListeners.push(...i)}_addListeners(i){i.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,gM)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(i){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(i.clientX,i.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let i=this.touchGestures;if(i!=="off"){let n=this._elementRef.nativeElement,o=n.style;(i==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(i==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(n){return new(n||e)(h(It),h(N),h(Xs),h(Ve),h(F),h(Ae),h(wh),h(Et),h(bM),h(bt),h(vH,8),h(K))},e.\u0275dir=I({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let t=e;return t})(),xH=(()=>{let e=class e{constructor(i,n,o){this._changeDetectorRef=i,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new C,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(i){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},i)}hide(i){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},i)}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:i}){(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let i=this._elementRef.nativeElement.getBoundingClientRect();return i.height>yH&&i.width>=wH}_handleAnimationEnd({animationName:i}){(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(i){i?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(i){let n=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(n.classList.remove(i?s:o),n.classList.add(i?o:s),this._isVisible!==i&&(this._isVisible=i,this._changeDetectorRef.markForCheck()),i&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}i&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(i))}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(N),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&De(fH,7),n&2){let s;L(s=j())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,o){n&1&&Z("mouseleave",function(a){return o._handleMouseLeave(a)}),n&2&&Jt("zoom",o.isVisible()?1:null)},standalone:!0,features:[Y],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let s=Ye();_(0,"div",1,0),Z("animationend",function(c){return be(s),_e(o._handleAnimationEnd(c))}),_(2,"div",2),we(3),y()()}n&2&&(H("mdc-tooltip--multiline",o._isMultiline),M("ngClass",o.tooltipClass),x(3),at(o.message))},dependencies:[Ds],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.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});let t=e;return t})();var uf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[mH],imports:[eI,Gt,zr,ee,ee,Vn]});let t=e;return t})();var yM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-spining-indicator"]],standalone:!0,features:[Y],decls:1,vars:1,consts:[["matTooltip","Task in progress",3,"diameter"]],template:function(n,o){n&1&&k(0,"mat-spinner",0),n&2&&M("diameter",25)},dependencies:[df,pM,uf,_M]});let t=e;return t})();function EH(t,e){if(t&1&&(_(0,"div")(1,"div",6),we(2),y()()),t&2){let r=$();x(2),Lt(" ",r.item.label," ")}}function IH(t,e){t&1&&(_(0,"div"),k(1,"ms-spining-indicator"),y())}function SH(t,e){if(t&1&&(Dr(0),U(1,IH,2,0,"div",4),Cr()),t&2){let r=e.ngIf,i=$();x(),M("ngIf",i.isExpanded&&r===(i.item==null?null:i.item.key))}}var wM=(()=>{let e=class e{constructor(i){this.pageRunningScriptSpiningIndicatorService=i,this.itemStyle="accent",this.isExpanded=!0}};e.\u0275fac=function(n){return new(n||e)(h(hM))},e.\u0275cmp=z({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},decls:8,vars:6,consts:[["routerLinkActive","active-route",1,"sidenav-item",3,"routerLink"],[1,"left-side"],[1,"item-icon"],["fontSet","ms",3,"fontIcon"],[4,"ngIf"],[1,"right-side"],[1,"item-label","paragraph-semibold-p3-small-emphasis"]],template:function(n,o){n&1&&(_(0,"div",0)(1,"div",1)(2,"div",2),k(3,"mat-icon",3),y(),U(4,EH,3,1,"div",4),y(),_(5,"div",5),U(6,SH,2,1,"ng-container",4),iu(7,"async"),y()()),n&2&&(M("routerLink",o.item.route),x(3),M("fontIcon",o.item.icon),x(),M("ngIf",o.isExpanded),x(2),M("ngIf",nu(7,4,o.pageRunningScriptSpiningIndicatorService.currentRunningPage$)))},dependencies:[kr,ah,PE,Bi,yM,Su],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.sidenav-item[_ngcontent-%COMP%]{padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.sidenav-item[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%], .sidenav-item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.sidenav-item[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-left:10px;white-space:nowrap}.sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}[itemStyle=grey][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--foregrounds-750)}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%]{background-color:var(--foregrounds-150);border-radius:8px}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{color:var(--foregrounds-800)}[itemStyle=accent][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--accent-400)}"]});let t=e;return t})();var kH=[{route:"admin",label:"Admin",icon:"icon-Admin"}],TH=[{route:ni.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],RH=[{route:ni.MODEL_COMPRESSION.ROOT,label:"Model Compression",icon:"icon-GearSix",key:si.MODEL_COMPRESSION},{route:ni.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:si.MACHINE_UNLEARNING},{route:ni.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:si.AWQ},{route:"multi-modal",label:"Multi-modal",icon:"icon-Environmental"},{route:ni.MODEL_SPECIALIZATION.ROOT,label:"Model Specialization",icon:"icon-MapTrifold",key:si.MODEL_SPECIALIZATION},{route:ni.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],xM={guided:TH,expert:RH,common:kH};function AH(t,e){if(t&1&&(_(0,"div",15)(1,"div",16),we(2),y(),_(3,"div",17),we(4),k(5,"mat-icon",18),y()()),t&2){let r=$();x(2),Lt(" ",r.currentMode===r.Modes.GUIDED?"Guided mode":"Expert mode"," "),x(2),Lt(" ",r.currentMode===r.Modes.GUIDED?"Switch to expert mode":"Switch to guided mode"," ")}}function OH(t,e){if(t&1&&(_(0,"div",19),k(1,"ms-sidenav-item",20),y()),t&2){let r=e.$implicit,i=$(2);x(),M("item",r)("isExpanded",i.isExpanded)}}function NH(t,e){if(t&1&&(Dr(0),U(1,OH,2,2,"div",10),Cr()),t&2){let r=$();x(),M("ngForOf",r.SidenavConstants.guided)("ngForTrackBy",r.trackByRoute)}}function FH(t,e){if(t&1&&(_(0,"div",19),k(1,"ms-sidenav-item",20),y()),t&2){let r=e.$implicit,i=$(2);x(),M("item",r)("isExpanded",i.isExpanded)}}function PH(t,e){if(t&1&&U(0,FH,2,2,"div",10),t&2){let r=$();M("ngForOf",r.SidenavConstants.expert)("ngForTrackBy",r.trackByRoute)}}function LH(t,e){if(t&1&&(_(0,"div",19),k(1,"ms-sidenav-item",21),y()),t&2){let r=e.$implicit,i=$();x(),M("item",r)("isExpanded",i.isExpanded)}}function jH(t,e){t&1&&(_(0,"span",22),we(1,"Collapse"),y())}var ar,hf=(ar=class{constructor(e,r){this.router=e,this.configFacadeService=r,this.SidenavConstants=xM,this.Modes=Ls,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(tM(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===Ls.GUIDED?(this.router.navigate([`/${ni.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(cb.setCurrentMode({mode:Ls.EXPERT}))):(this.router.navigate([`/${ni.WIZARD.ROOT}`]),this.configFacadeService.dispatch(cb.setCurrentMode({mode:Ls.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}trackByRoute(e,r){return r.route}},ar.\u0275fac=function(r){return new(r||ar)(h(_i),h(UE))},ar.\u0275cmp=z({type:ar,selectors:[["ms-sidenav"]],decls:21,vars:8,consts:[["expertModeBlock",""],[1,"sidenav-wrapper"],[1,"top-section-items"],[1,"switch",3,"click"],[1,"left"],["fontSet","ms","fontIcon","icon-User"],["class","right",4,"ngIf"],[1,"mt-3"],[4,"ngIf","ngIfElse"],[1,"mt-5"],["class","sidenav-items-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-2","mb-4"],[1,"bottom-section-items"],[1,"sidebar-toggle",3,"click"],["class","paragraph-semibold-p3-small-emphasis",4,"ngIf"],[1,"right"],[1,"paragraph-semibold-p3-default-emphasis","text-container"],[1,"paragraph-regular-p4-small","switch-button","text-container"],["fontSet","ms","fontIcon","icon-ArrowRight",1,"switch-icon"],[1,"sidenav-items-wrapper"],["itemStyle","grey",3,"item","isExpanded"],["itemStyle","accent",3,"item","isExpanded"],[1,"paragraph-semibold-p3-small-emphasis"]],template:function(r,i){if(r&1){let n=Ye();_(0,"div",1)(1,"div",2)(2,"div",3),Z("click",function(){return be(n),_e(i.toggleMode())}),_(3,"div",4),k(4,"mat-icon",5),y(),U(5,AH,6,2,"div",6),y(),_(6,"div",7),k(7,"mat-divider"),y(),U(8,NH,2,2,"ng-container",8)(9,PH,1,2,"ng-template",null,0,Er),_(11,"div",9),k(12,"mat-divider"),y(),U(13,LH,2,2,"div",10),y(),_(14,"div",11),k(15,"mat-divider"),y(),_(16,"div",12)(17,"div",13),Z("click",function(){return be(n),_e(i.toggleSidebar())}),_(18,"mat-icon"),we(19),y(),U(20,jH,2,0,"span",14),y()()()}if(r&2){let n=gt(10);M("@expandCollapse",i.isExpanded?"expanded":"collapsed"),x(5),M("ngIf",i.isExpanded),x(3),M("ngIf",i.currentMode===i.Modes.GUIDED)("ngIfElse",n),x(5),M("ngForOf",i.SidenavConstants.common)("ngForTrackBy",i.trackByRoute),x(6),at(i.isExpanded?"chevron_left":"chevron_right"),x(),M("ngIf",i.isExpanded)}},dependencies:[FD,kr,kh,Bi,wM],styles:["[_nghost-%COMP%]{height:100%}.sidenav-wrapper[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column;justify-content:space-between}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:flex;cursor:pointer;height:38px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-600);margin-left:8px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-left:10px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%] .switch-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:16px;width:16px;height:16px}.sidenav-wrapper[_ngcontent-%COMP%] .sidenav-items-wrapper[_ngcontent-%COMP%]{margin-top:10px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;padding:6px;cursor:pointer;transition:background-color .3s ease;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]:hover{color:var(--foregrounds-800);background-color:var(--foregrounds-150);border-radius:8px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;color:var(--foregrounds-750)}.text-container[_ngcontent-%COMP%]{width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],data:{animation:[st("expandCollapse",[ke("expanded",de({width:"230px"})),ke("collapsed",de({width:"40px"})),Le("expanded <=> collapsed",Ge("300ms ease-in-out"))])]}}),ar);hf=py([eM()],hf);var Pne=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-main-layout"]],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(n,o){n&1&&(_(0,"div",0),k(1,"ms-header"),_(2,"div",1),k(3,"ms-sidenav"),_(4,"div",2)(5,"div",3),k(6,"router-outlet"),y(),_(7,"div",4),k(8,"ms-footer",5),y()()()())},dependencies:[tb,gI,$S,hf],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden;max-width:100vw}.body[_ngcontent-%COMP%]{flex:1;display:flex;margin-top:20px}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;margin:0 10px;overflow-x:hidden}.router-outlet[_ngcontent-%COMP%]{flex:1;padding:0 2px}ms-footer[_ngcontent-%COMP%]{height:60px}ms-header[_ngcontent-%COMP%], ms-sidenav[_ngcontent-%COMP%]{overflow-x:hidden}"]});let t=e;return t})();var c_=function(t){return t.SUCCESS="success",t.ERROR="error",t.INFO="info",t.WARNING="warning",t}(c_||{});function BH(t,e){if(t&1){let r=Ye();_(0,"div",1)(1,"button",2),Z("click",function(){be(r);let n=$();return _e(n.action())}),we(2),y()()}if(t&2){let r=$();x(2),Lt(" ",r.data.action," ")}}var zH=["label"];function UH(t,e){}var HH=Math.pow(2,31)-1,Lo=class{constructor(e,r){this._overlayRef=r,this._afterDismissed=new C,this._afterOpened=new C,this._onAction=new C,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,HH))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},ff=new g("MatSnackBarData"),ea=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},$H=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let t=e;return t})(),GH=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let t=e;return t})(),WH=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let t=e;return t})(),DM=(()=>{let e=class e{constructor(i,n){this.snackBarRef=i,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(n){return new(n||e)(h(Lo),h(ff))},e.\u0275cmp=z({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[Y],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(_(0,"div",0),we(1),y(),U(2,BH,3,1,"div",1)),n&2&&(x(),Lt(" ",o.data.message,` +`),x(),le(o.hasAction?2:-1))},dependencies:[Uh,$H,GH,WH],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let t=e;return t})(),qH={snackBarState:st("state",[ke("void, hidden",de({transform:"scale(0.8)",opacity:0})),ke("visible",de({transform:"scale(1)",opacity:1})),Le("* => visible",Ge("150ms cubic-bezier(0, 0, 0.2, 1)")),Le("* => void, * => hidden",Ge("75ms cubic-bezier(0.4, 0.0, 1, 1)",de({opacity:0})))])},YH=0,ZH=(()=>{let e=class e extends Ys{constructor(i,n,o,s,a){super(),this._ngZone=i,this._elementRef=n,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._document=b(K),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new C,this._onExit=new C,this._onEnter=new C,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${YH++}`,this.attachDomPortal=c=>{this._assertNotAttached();let l=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),l},a.politeness==="assertive"&&!a.announcementMessage?this._live="assertive":a.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(i){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(i);return this._afterPortalAttached(),n}attachTemplatePortal(i){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(i);return this._afterPortalAttached(),n}onAnimationEnd(i){let{fromState:n,toState:o}=i;if((o==="void"&&n!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let i=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>i.classList.add(a)):i.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,s="mdc-snackbar__label";o.classList.toggle(s,!o.querySelector(`.${s}`))}_exposeToModals(){let i=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=i.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?i.setAttribute("aria-owns",o):i.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(i&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),n.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(n){return new(n||e)(h(F),h(N),h(ue),h(Ae),h(ea))},e.\u0275cmp=z({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(De(Fo,7),De(zH,7)),n&2){let s;L(s=j())&&(o._portalOutlet=s.first),L(s=j())&&(o._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,o){n&1&&Dg("@state.done",function(a){return o.onAnimationEnd(a)}),n&2&&xg("@state",o._animationState)},standalone:!0,features:[ae,Y],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(_(0,"div",1)(1,"div",2,0)(3,"div",3),U(4,UH,0,0,"ng-template",4),y(),k(5,"div"),y()()),n&2&&(x(5),q("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Fo],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[qH.snackBarState]}});let t=e;return t})();function QH(){return new ea}var KH=new g("mat-snack-bar-default-options",{providedIn:"root",factory:QH}),XH=(()=>{let e=class e{get _openedSnackBarRef(){let i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}constructor(i,n,o,s,a,c){this._overlay=i,this._live=n,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=DM,this.snackBarContainerComponent=ZH,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(i,n){return this._attach(i,n)}openFromTemplate(i,n){return this._attach(i,n)}open(i,n="",o){let s=w(w({},this._defaultConfig),o);return s.data={message:i,action:n},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(i,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=Se.create({parent:o||this._injector,providers:[{provide:ea,useValue:n}]}),a=new jr(this.snackBarContainerComponent,n.viewContainerRef,s),c=i.attach(a);return c.instance.snackBarConfig=n,c.instance}_attach(i,n){let o=w(w(w({},new ea),this._defaultConfig),n),s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),c=new Lo(a,s);if(i instanceof Re){let l=new Ci(i,null,{$implicit:o.data,snackBarRef:c});c.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,c),d=new jr(i,void 0,l),u=a.attachComponentPortal(d);c.instance=u.instance}return this._breakpointObserver.observe(qE.HandsetPortrait).pipe(te(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(i,n){i.afterDismissed().subscribe(()=>{this._openedSnackBarRef==i&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),n.duration&&n.duration>0&&i.afterOpened().subscribe(()=>i._dismissAfter(n.duration))}_createOverlay(i){let n=new Br;n.direction=i.direction;let o=this._overlay.position().global(),s=i.direction==="rtl",a=i.horizontalPosition==="left"||i.horizontalPosition==="start"&&!s||i.horizontalPosition==="end"&&s,c=!a&&i.horizontalPosition!=="center";return a?o.left("0"):c?o.right("0"):o.centerHorizontally(),i.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(i,n){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector;return Se.create({parent:o||this._injector,providers:[{provide:Lo,useValue:n},{provide:ff,useValue:i.data}]})}};e.\u0275fac=function(n){return new(n||e)(m(It),m(xh),m(Se),m(fh),m(e,12),m(KH))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var CM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[XH],imports:[zr,Vr,Hh,ee,DM,ee]});let t=e;return t})();function e$(t,e){t&1&&k(0,"mat-icon",7)}function t$(t,e){t&1&&k(0,"mat-icon",8)}function i$(t,e){t&1&&(_(0,"mat-icon",9),we(1,"error_outline"),y())}function n$(t,e){t&1&&(_(0,"mat-icon",10),we(1,"warning"),y())}var cre=(()=>{let e=class e{constructor(i,n){this.bannerRef=i,this.data=n,this.NotificationTypes=c_}};e.\u0275fac=function(n){return new(n||e)(h(Lo),h(ff))},e.\u0275cmp=z({type:e,selectors:[["ms-banner"]],decls:13,vars:6,consts:[[1,"banner"],[1,"banner-left-container"],[1,"banner-content",3,"ngSwitch"],[3,"ngSwitchCase"],[1,"banner-middle-container"],[1,"banner-right-container"],[1,"mat-gray",3,"click"],["fontSet","ms","fontIcon","icon-CheckCircle",1,"mat-success"],["fontSet","ms","fontIcon","icon-Info",1,"mat-primary"],[1,"mat-error"],[1,"mat-warn"]],template:function(n,o){n&1&&(_(0,"div",0)(1,"div",1)(2,"div",2),U(3,e$,1,0,"ng-template",3)(4,t$,1,0,"ng-template",3)(5,i$,2,0,"ng-template",3)(6,n$,2,0,"ng-template",3),y()(),_(7,"div",4)(8,"div"),we(9),y()(),_(10,"div",5)(11,"mat-icon",6),Z("click",function(){return o.bannerRef.dismiss()}),we(12,"clear"),y()()()),n&2&&(x(2),M("ngSwitch",o.data.notificationType),x(),M("ngSwitchCase",o.NotificationTypes.SUCCESS),x(),M("ngSwitchCase",o.NotificationTypes.INFO),x(),M("ngSwitchCase",o.NotificationTypes.ERROR),x(),M("ngSwitchCase",o.NotificationTypes.WARNING),x(3),at(o.data.message))},dependencies:[Iu,PD,Bi],styles:[".banner[_ngcontent-%COMP%]{display:flex;width:100%}.banner[_ngcontent-%COMP%] .banner-left-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-middle-container[_ngcontent-%COMP%]{flex:0 1 90%;margin:2px 10px}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]:hover{cursor:pointer}"]});let t=e;return t})();var r$=["button"],o$=["*"];function s$(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}function a$(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}var EM=new g("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:c$});function c$(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var IM=new g("MatButtonToggleGroup"),l$={provide:jn,useExisting:lt(()=>d$),multi:!0},SM=0,pf=class{constructor(e,r){this.source=e,this.value=r}},d$=(()=>{let e=class e{get name(){return this._name}set name(i){this._name=i,this._markButtonsForCheck()}get value(){let i=this._selectionModel?this._selectionModel.selected:[];return this.multiple?i.map(n=>n.value):i[0]?i[0].value:void 0}set value(i){this._setSelectionByValue(i),this.valueChange.emit(this.value)}get selected(){let i=this._selectionModel?this._selectionModel.selected:[];return this.multiple?i:i[0]||null}get multiple(){return this._multiple}set multiple(i){this._multiple=i,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(i){this._hideMultipleSelectionIndicator=i,this._markButtonsForCheck()}constructor(i,n,o){this._changeDetector=i,this._dir=o,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${SM++}`,this.valueChange=new B,this.change=new B,this.appearance=n&&n.appearance?n.appearance:"standard",this.hideSingleSelectionIndicator=n?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=n?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Ks(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(i=>i.checked)),this.multiple||this._initializeTabIndex()}writeValue(i){this.value=i,this._changeDetector.markForCheck()}registerOnChange(i){this._controlValueAccessorChangeFn=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}_keydown(i){if(this.multiple||this.disabled)return;let o=i.target.id,s=this._buttonToggles.toArray().findIndex(c=>c.buttonId===o),a=null;switch(i.keyCode){case 32:case 13:a=this._buttonToggles.get(s)||null;break;case 38:a=this._getNextButton(s,-1);break;case 37:a=this._getNextButton(s,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(s,1);break;case 39:a=this._getNextButton(s,this.dir==="ltr"?1:-1);break;default:return}a&&(i.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(i){let n=new pf(i,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(i,n,o=!1,s=!1){!this.multiple&&this.selected&&!i.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(i):this._selectionModel.deselect(i):s=!0,s?Promise.resolve().then(()=>this._updateModelValue(i,o)):this._updateModelValue(i,o)}_isSelected(i){return this._selectionModel&&this._selectionModel.isSelected(i)}_isPrechecked(i){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>i.value!=null&&n===i.value):i.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(i=>{i.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let i=0;ithis._selectValue(n))):(this._clearSelection(),this._selectValue(i)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(i=>{i.checked=!1,this.multiple||(i.tabIndex=-1)})}_selectValue(i){let n=this._buttonToggles.find(o=>o.value!=null&&o.value===i);n&&(n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0))}_updateModelValue(i,n){n&&this._emitChangeEvent(i),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(i=>i._markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(EM,8),h(bt,8))},e.\u0275dir=I({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,s){if(n&1&&pe(s,MM,5),n&2){let a;L(a=j())&&(o._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._keydown(a)}),n&2&&(q("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),H("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",T],value:"value",multiple:[2,"multiple","multiple",T],disabled:[2,"disabled","disabled",T],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",T]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[se([l$,{provide:IM,useExisting:e}]),re]});let t=e;return t})(),MM=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(i){this._tabIndex=i,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(i){this._appearance=i}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(i){i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(i){this._disabled=i}constructor(i,n,o,s,a,c){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=s,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new B;let l=Number(a);this.tabIndex=l||l===0?l:null,this.buttonToggleGroup=i,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){let i=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${SM++}`,i&&(i._isPrechecked(this)?this.checked=!0:i._isSelected(this)!==this._checked&&i._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let i=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),i&&i._isSelected(this)&&i._syncButtonToggle(this,!1,!1,!0)}focus(i){this._buttonElement.nativeElement.focus(i)}_onButtonClick(){let i=this.isSingleSelector()?!0:!this._checked;if(i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new pf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(h(IM,8),h(ue),h(N),h(Et),pt("tabindex"),h(EM,8))},e.\u0275cmp=z({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&De(r$,5),n&2){let s;L(s=j())&&(o._buttonElement=s.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(n,o){n&1&&Z("focus",function(){return o.focus()}),n&2&&(q("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),H("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",T],appearance:"appearance",checked:[2,"checked","checked",T],disabled:[2,"disabled","disabled",T]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[re,Y],ngContentSelectors:o$,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let s=Ye();ye(),_(0,"button",1,0),Z("click",function(){return be(s),_e(o._onButtonClick())}),_(2,"span",2),U(3,s$,1,1,"mat-pseudo-checkbox",3)(4,a$,1,1,"mat-pseudo-checkbox",3),W(5),y()(),k(6,"span",4)(7,"span",5)}if(n&2){let s=gt(1);M("id",o.buttonId)("disabled",o.disabled||null),q("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),x(3),le(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),x(),le(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),x(3),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[xi,Ib],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let t=e;return t})(),kM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,rn,MM,ee]});let t=e;return t})();var u$=["*"];var h$=new g("MAT_CARD_CONFIG"),jre=(()=>{let e=class e{constructor(i){this.appearance=i?.appearance||"raised"}};e.\u0275fac=function(n){return new(n||e)(h(h$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,o){n&2&&H("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[Y],ngContentSelectors:u$,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color);border-color:var(--mdc-elevated-card-container-color);border-radius:var(--mdc-elevated-card-container-shape);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color);border-radius:var(--mdc-outlined-card-container-shape);border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined::after{border:none}.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}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.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});let t=e;return t})();var TM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,Gt,ee]});let t=e;return t})();var p$=["input"],m$=["label"],g$=["*"],v$=new g("mat-checkbox-default-options",{providedIn:"root",factory:AM});function AM(){return{color:"accent",clickAction:"check-indeterminate"}}var Yt=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(Yt||{}),b$={provide:jn,useExisting:lt(()=>OM),multi:!0},l_=class{},_$=0,RM=AM(),OM=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(i){let n=new l_;return n.source=this,n.checked=i,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,n,o,s,a,c){this._elementRef=i,this._changeDetectorRef=n,this._ngZone=o,this._animationMode=a,this._options=c,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"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new B,this.indeterminateChange=new B,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Yt.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||RM,this.color=this._options.color||RM.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++_$}`}ngOnChanges(i){i.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(i){i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(i){i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(i){let n=i!=this._indeterminate;this._indeterminate=i,n&&(this._indeterminate?this._transitionCheckState(Yt.Indeterminate):this._transitionCheckState(this.checked?Yt.Checked:Yt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(i){this.checked=!!i}registerOnChange(i){this._controlValueAccessorChangeFn=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorChangeFn=i}_transitionCheckState(i){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===i||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,i),this._currentCheckState=i,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},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(){let i=this._options?.clickAction;!this.disabled&&i!=="noop"?(this.indeterminate&&i!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Yt.Checked:Yt.Unchecked),this._emitChangeEvent()):!this.disabled&&i==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(i){i.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(i,n){if(this._animationMode==="NoopAnimations")return"";switch(i){case Yt.Init:if(n===Yt.Checked)return this._animationClasses.uncheckedToChecked;if(n==Yt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Yt.Unchecked:return n===Yt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Yt.Checked:return n===Yt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Yt.Indeterminate:return n===Yt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(i){let n=this._inputElement;n&&(n.nativeElement.indeterminate=i)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(i){i.target&&this._labelElement.nativeElement.contains(i.target)&&i.stopPropagation()}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(F),pt("tabindex"),h(rt,8),h(v$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(De(p$,5),De(m$,5),De(xi,5)),n&2){let s;L(s=j())&&(o._inputElement=s.first),L(s=j())&&(o._labelElement=s.first),L(s=j())&&(o.ripple=s.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("tabindex",null)("aria-label",null)("aria-labelledby",null),kt(o.color?"mat-"+o.color:"mat-accent"),H("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",T],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)],color:"color",checked:[2,"checked","checked",T],disabled:[2,"disabled","disabled",T],indeterminate:[2,"indeterminate","indeterminate",T]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[se([b$,{provide:on,useExisting:e,multi:!0}]),re,Me,Y],ngContentSelectors:g$,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[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"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let s=Ye();ye(),_(0,"div",3),Z("click",function(c){return be(s),_e(o._preventBubblingFromLabel(c))}),_(1,"div",4,0)(3,"div",5),Z("click",function(){return be(s),_e(o._onTouchTargetClick())}),y(),_(4,"input",6,1),Z("blur",function(){return be(s),_e(o._onBlur())})("click",function(){return be(s),_e(o._onInputClick())})("change",function(c){return be(s),_e(o._onInteractionEvent(c))}),y(),k(6,"div",7),_(7,"div",8),di(),_(8,"svg",9),k(9,"path",10),y(),jd(),k(10,"div",11),y(),k(11,"div",12),y(),_(12,"label",13,2),W(14),y()()}if(n&2){let s=gt(2);M("labelPosition",o.labelPosition),x(4),H("mdc-checkbox--selected",o.checked),M("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),q("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),x(7),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),x(),M("for",o.inputId)}},dependencies:[xi,Mh],styles:['.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;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)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);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)}.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 cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 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 cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.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;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 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{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 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{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@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:cubic-bezier(0, 0, 0.2, 1);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}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.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-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();var NM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[OM,ee,ee]});let t=e;return t})();var y$=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],w$=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function x$(t,e){t&1&&(_(0,"span",3),W(1,1),y())}function D$(t,e){t&1&&(_(0,"span",6),W(1,2),y())}var C$=["*"];var E$=new g("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),FM=new g("MatChipAvatar"),PM=new g("MatChipTrailingIcon"),LM=new g("MatChipRemove"),VM=new g("MatChip"),jM=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(i){this._disabled=i}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(i,n){this._elementRef=i,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,i.nativeElement.nodeName==="BUTTON"&&i.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(i){!this.disabled&&this.isInteractive&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(h(N),h(VM))},e.\u0275dir=I({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&Z("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(q("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),H("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:dt(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[re]});let t=e;return t})();var I$=0,S$=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}constructor(i,n,o,s,a,c,l,d){this._changeDetectorRef=i,this._elementRef=n,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=l,this._onFocus=new C,this._onBlur=new C,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${I$++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new B,this.destroyed=new B,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=b(Sh),this._injector=b(Se),this._document=a,this._animationsDisabled=c==="NoopAnimations",d!=null&&(this.tabIndex=parseInt(d)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let i=this._elementRef.nativeElement;this._isBasicChip=i.hasAttribute(this.basicChipAttrName)||i.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ze(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),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(i){(i.keyCode===8&&!i.repeat||i.keyCode===46)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===i||o.contains(i)})}_getActions(){let i=[];return this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),this.trailingIcon&&i.push(this.trailingIcon),i}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let n=i!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):$t(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(N),h(F),h(Et),h(K),h(rt,8),h(Ch,8),pt("tabindex"))},e.\u0275cmp=z({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,FM,5),pe(s,PM,5),pe(s,LM,5),pe(s,FM,5),pe(s,PM,5),pe(s,LM,5)),n&2){let a;L(a=j())&&(o.leadingIcon=a.first),L(a=j())&&(o.trailingIcon=a.first),L(a=j())&&(o.removeIcon=a.first),L(a=j())&&(o._allLeadingIcons=a),L(a=j())&&(o._allTrailingIcons=a),L(a=j())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&De(jM,5),n&2){let s;L(s=j())&&(o.primaryAction=s.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)}),n&2&&(yt("id",o.id),q("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),kt("mat-"+(o.color||"primary")),H("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",T],highlighted:[2,"highlighted","highlighted",T],disableRipple:[2,"disableRipple","disableRipple",T],disabled:[2,"disabled","disabled",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[se([{provide:VM,useExisting:e}]),re,Y],ngContentSelectors:w$,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(ye(y$),k(0,"span",0),_(1,"span",1)(2,"span",2),U(3,x$,2,0,"span",3),_(4,"span",4),W(5),k(6,"span",5),y()()(),U(7,D$,2,0,"span",6)),n&2&&(x(2),M("isInteractive",!1),x(),le(o.leadingIcon?3:-1),x(4),le(o._hasTrailingIcon()?7:-1))},dependencies:[jM],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__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;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{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.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{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.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{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__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{padding-left:0;padding-right:0}.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{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__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{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{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__action--trailing{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__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{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.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)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.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{padding-left:8px;padding-right:4px}.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}.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{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.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--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.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__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.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 .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 .mat-ripple.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;z-index:0}.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::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;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});let t=e;return t})();var Doe=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(i){this._explicitRole=i}get focused(){return this._hasFocusedChip()}constructor(i,n,o){this._elementRef=i,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new C,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Pt}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(i=>{i.disabled=this._disabled,i._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&i{this.tabIndex=i,this._changeDetectorRef.markForCheck()})}}_getChipStream(i){return this._chips.changes.pipe(Qe(null),Oe(()=>Ze(...this._chips.map(i))))}_originatesFromChip(i){let n=i.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Qe(this._chips)).subscribe(i=>{let n=[];i.forEach(o=>o._getActions().forEach(s=>n.push(s))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Fn(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(te(this._destroyed)).subscribe(({chip:i})=>{let n=i._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(te(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Qe(null),te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(te(this._destroyed)).subscribe(i=>{let o=this._chips.toArray().indexOf(i.chip);this._isValidIndex(o)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[i];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(bt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,s){if(n&1&&pe(s,S$,5),n&2){let a;L(a=j())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)}),n&2&&q("role",o.role)},inputs:{disabled:[2,"disabled","disabled",T],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)]},standalone:!0,features:[re,Y],ngContentSelectors:C$,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(ye(),_(0,"div",0),W(1),y())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var BM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[nn,{provide:E$,useValue:{separatorKeyCodes:[13]}}],imports:[ee,rn,ee]});let t=e;return t})();var M$=0,d_=new g("CdkAccordion"),zM=(()=>{let e=class e{constructor(){this._stateChanges=new C,this._openCloseAllActions=new C,this.id=`cdk-accordion-${M$++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(i){this._stateChanges.next(i)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",T]},exportAs:["cdkAccordion"],standalone:!0,features:[se([{provide:d_,useExisting:e}]),re,Me]});let t=e;return t})(),k$=0,UM=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(i){if(this._expanded!==i){if(this._expanded=i,this.expandedChange.emit(i),i){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(i,n,o){this.accordion=i,this._changeDetectorRef=n,this._expansionDispatcher=o,this._openCloseAllSubscription=ne.EMPTY,this.closed=new B,this.opened=new B,this.destroyed=new B,this.expandedChange=new B,this.id=`cdk-accordion-child-${k$++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}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(i=>{this.disabled||(this.expanded=i)})}};e.\u0275fac=function(n){return new(n||e)(h(d_,12),h(ue),h(tf))},e.\u0275dir=I({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",T],disabled:[2,"disabled","disabled",T]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[se([{provide:d_,useValue:void 0}]),re]});let t=e;return t})(),HM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var T$=["body"],R$=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],A$=["mat-expansion-panel-header","*","mat-action-row"];function O$(t,e){}var N$=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],F$=["mat-panel-title","mat-panel-description","*"];function P$(t,e){if(t&1&&(_(0,"span",1),di(),_(1,"svg",2),k(2,"path",3),y()()),t&2){let r=$();M("@indicatorRotate",r._getExpandedState())}}var u_=new g("MAT_ACCORDION"),$M="225ms cubic-bezier(0.4,0.0,0.2,1)",WM={indicatorRotate:st("indicatorRotate",[ke("collapsed, void",de({transform:"rotate(0deg)"})),ke("expanded",de({transform:"rotate(180deg)"})),Le("expanded <=> collapsed, void => collapsed",Ge($M))]),bodyExpansion:st("bodyExpansion",[ke("collapsed, void",de({height:"0px",visibility:"hidden"})),ke("expanded",de({height:"*",visibility:""})),Le("expanded <=> collapsed, void => collapsed",Ge($M))])},qM=new g("MAT_EXPANSION_PANEL"),L$=(()=>{let e=class e{constructor(i,n){this._template=i,this._expansionPanel=n}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(qM,8))},e.\u0275dir=I({type:e,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let t=e;return t})(),j$=0,YM=new g("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),V$=(()=>{let e=class e extends UM{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(i){this._hideToggle=i}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(i){this._togglePosition=i}constructor(i,n,o,s,a,c,l){super(i,n,o),this._viewContainerRef=s,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new B,this.afterCollapse=new B,this._inputChanges=new C,this._headerId=`mat-expansion-panel-header-${j$++}`,this.accordion=i,this._document=a,this._animationsDisabled=c==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_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(Qe(null),ge(()=>this.expanded&&!this._portal),We(1)).subscribe(()=>{this._portal=new Ci(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(i){this._inputChanges.next(i)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let i=this._document.activeElement,n=this._body.nativeElement;return i===n||n.contains(i)}return!1}_animationStarted(i){!GM(i)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(i){GM(i)||(i.toState==="expanded"?this.afterExpand.emit():i.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};e.\u0275fac=function(n){return new(n||e)(h(u_,12),h(ue),h(tf),h(Ve),h(K),h(rt,8),h(YM,8))},e.\u0275cmp=z({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(n,o,s){if(n&1&&pe(s,L$,5),n&2){let a;L(a=j())&&(o._lazyContent=a.first)}},viewQuery:function(n,o){if(n&1&&De(T$,5),n&2){let s;L(s=j())&&(o._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,o){n&2&&H("mat-expanded",o.expanded)("_mat-animation-noopable",o._animationsDisabled)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",T],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[se([{provide:u_,useValue:void 0},{provide:qM,useExisting:e}]),re,ae,Me,Y],ngContentSelectors:A$,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,o){if(n&1){let s=Ye();ye(R$),W(0),_(1,"div",1,0),Z("@bodyExpansion.start",function(c){return be(s),_e(o._animationStarted(c))})("@bodyExpansion.done",function(c){return be(s),_e(o._animationDone(c))}),_(3,"div",2),W(4,1),U(5,O$,0,0,"ng-template",3),y(),W(6,2),y()}n&2&&(x(),M("@bodyExpansion",o._getExpandedState())("id",o.id),q("aria-labelledby",o._headerId),x(4),M("cdkPortalOutlet",o._portal))},dependencies:[Fo],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;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;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.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;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.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;border-top-color:var(--mat-expansion-actions-divider-color)}.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:[WM.bodyExpansion]},changeDetection:0});let t=e;return t})();function GM(t){return t.fromState==="void"}var B$=(()=>{let e=class e{constructor(i,n,o,s,a,c,l){this.panel=i,this._element=n,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=c,this._parentChangeSubscription=ne.EMPTY,this.tabIndex=0;let d=i.accordion?i.accordion._stateChanges.pipe(ge(u=>!!(u.hideToggle||u.togglePosition))):ct;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Ze(i.opened,i.closed,d,i._inputChanges.pipe(ge(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),i.closed.pipe(ge(()=>i._containsFocus())).subscribe(()=>o.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.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(){let i=this._isExpanded();return i&&this.expandedHeight?this.expandedHeight:!i&&this.collapsedHeight?this.collapsedHeight:null}_keydown(i){switch(i.keyCode){case 32:case 13:Vt(i)||(i.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(i);return}}focus(i,n){i?this._focusMonitor.focusVia(this._element,i,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(i=>{i&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(n){return new(n||e)(h(V$,1),h(N),h(Et),h(ue),h(YM,8),h(rt,8),pt("tabindex"))},e.\u0275cmp=z({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,o){n&1&&Z("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),n&2&&(q("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),Jt("height",o._getHeaderHeight()),H("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before")("_mat-animation-noopable",o._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)]},standalone:!0,features:[re,Y],ngContentSelectors:F$,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,o){n&1&&(ye(N$),_(0,"span",0),W(1),W(2,1),W(3,2),y(),U(4,P$,3,1,"span",1)),n&2&&(H("mat-content-hide-toggle",!o._showToggle()),x(4),le(o._showToggle()?4:-1))},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);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.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.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{color:var(--mat-expansion-header-text-color)}.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[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.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;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.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:[WM.indicatorRotate]},changeDetection:0});let t=e;return t})();var sse=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let t=e;return t})(),ase=(()=>{let e=class e extends zM{constructor(){super(...arguments),this._ownHeaders=new Pt,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(Qe(this._headers)).subscribe(i=>{this._ownHeaders.reset(i.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Fn(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(i){this._keyManager.onKeydown(i)}_handleHeaderFocus(i){this._keyManager.updateActiveItem(i)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-accordion"]],contentQueries:function(n,o,s){if(n&1&&pe(s,B$,5),n&2){let a;L(a=j())&&(o._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-accordion-multi",o.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",T],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[se([{provide:u_,useExisting:e}]),re,ae]});let t=e;return t})(),ZM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,HM,Vr]});let t=e;return t})();var z$=["trigger"],U$=["panel"],H$=[[["mat-select-trigger"]],"*"],$$=["mat-select-trigger","*"];function G$(t,e){if(t&1&&(_(0,"span",4),we(1),y()),t&2){let r=$();x(),at(r.placeholder)}}function W$(t,e){t&1&&W(0)}function q$(t,e){if(t&1&&(_(0,"span",11),we(1),y()),t&2){let r=$(2);x(),at(r.triggerValue)}}function Y$(t,e){if(t&1&&(_(0,"span",5),U(1,W$,1,0)(2,q$,2,1,"span",11),y()),t&2){let r=$();x(),le(r.customTrigger?1:2)}}function Z$(t,e){if(t&1){let r=Ye();_(0,"div",12,1),Z("@transformPanel.done",function(n){be(r);let o=$();return _e(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){be(r);let o=$();return _e(o._handleKeydown(n))}),W(2,1),y()}if(t&2){let r=$();Xd("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),M("ngClass",r.panelClass)("@transformPanel","showing"),q("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var Q$={transformPanelWrap:st("transformPanelWrap",[Le("* => void",No("@transformPanel",[Oo()],{optional:!0}))]),transformPanel:st("transformPanel",[ke("void",de({opacity:0,transform:"scale(1, 0.8)"})),Le("void => showing",Ge("120ms cubic-bezier(0, 0, 0.2, 1)",de({opacity:1,transform:"scale(1, 1)"}))),Le("* => void",Ge("100ms linear",de({opacity:0})))])};var QM=0,KM=new g("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition()}});function K$(t){return()=>t.scrollStrategies.reposition()}var X$=new g("MAT_SELECT_CONFIG"),J$={provide:KM,deps:[It],useFactory:K$},e5=new g("MatSelectTrigger"),h_=class{constructor(e,r){this.source=e,this.value=r}},Pse=(()=>{let e=class e{_scrollOptionIntoView(i){let n=this.options.toArray()[i];if(n){let o=this.panel.nativeElement,s=hI(i,this.options,this.optionGroups),a=n._getHostElement();i===0&&s===1?o.scrollTop=0:o.scrollTop=fI(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(i){return new h_(this,i)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Us.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._selectionModel,this._multiple=i}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,n,o,s,a,c,l,d,u,f,p,v,S,E){this._viewportRuler=i,this._changeDetectorRef=n,this._elementRef=a,this._dir=c,this._parentFormField=u,this.ngControl=f,this._liveAnnouncer=S,this._defaultOptions=E,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(R,he)=>R===he,this._uid=`mat-select-${QM++}`,this._triggerAriaLabelledBy=null,this._destroy=new C,this.stateChanges=new C,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${QM++}`,this._panelDoneAnimatingStream=new C,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new C,this.optionSelectionChanges=Qr(()=>{let R=this.options;return R?R.changes.pipe(Qe(R),Oe(()=>Ze(...R.map(he=>he.onSelectionChange)))):this._initialized.pipe(Oe(()=>this.optionSelectionChanges))}),this.openedChange=new B,this._openedStream=this.openedChange.pipe(ge(R=>R),P(()=>{})),this._closedStream=this.openedChange.pipe(ge(R=>!R),P(()=>{})),this.selectionChange=new B,this.valueChange=new B,this._trackedModal=null,this._skipPredicate=R=>this.panelOpen?!1:R.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),E?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=E.typeaheadDebounceInterval),this._errorStateTracker=new To(s,f,d,l,this.stateChanges),this._scrollStrategyFactory=v,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ks(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Yi(),te(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(te(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(te(this._destroy)).subscribe(i=>{i.added.forEach(n=>n.select()),i.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Qe(null),te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let i=this._getTriggerAriaLabelledby(),n=this.ngControl;if(i!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(i){(i.disabled||i.userAriaDescribedBy)&&this.stateChanges.next(),i.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let i=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!i)return;let n=`${this.id}-panel`;this._trackedModal&&yh(this._trackedModal,"aria-owns",n),bb(i,"aria-owns",n),this._trackedModal=i}_clearFromModal(){if(!this._trackedModal)return;let i=`${this.id}-panel`;yh(this._trackedModal,"aria-owns",i),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,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){let i=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){let n=i.keyCode,o=n===40||n===38||n===37||n===39,s=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&s&&!Vt(i)||(this.multiple||i.altKey)&&o)i.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;a.onKeydown(i);let l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(i){let n=this._keyManager,o=i.keyCode,s=o===40||o===38,a=n.isTyping();if(s&&i.altKey)i.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!Vt(i))i.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&i.ctrlKey){i.preventDefault();let c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{let c=n.activeItemIndex;n.onKeydown(i),this._multiple&&s&&i.shiftKey&&n.activeItem&&n.activeItemIndex!==c&&n.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(We(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(i){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(i);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,i)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(i){return i!==this._value||this._multiple&&Array.isArray(i)?(this.options&&this._setSelectionByValue(i),this._value=i,!0):!1}_getOverlayWidth(i){return this.panelWidth==="auto"?(i instanceof qc?i.elementRef:i||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new _h(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),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(){let i=Ze(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(te(i)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ze(...this.options.map(n=>n._stateChanges)).pipe(te(i)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(i,n){let o=this._selectionModel.isSelected(i);i.value==null&&!this._multiple?(i.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(i.value)):(o!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),n&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let i=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,i):i.indexOf(n)-i.indexOf(o)),this.stateChanges.next()}}_propagateChanges(i){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:i,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let i=-1;for(let n=0;n0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),n=i?i+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),n=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(n){return new(n||e)(h(Bn),h(ue),h(F),h(nn),h(N),h(bt,8),h(Fc,8),h(Ws,8),h(Bc,8),h(Di,10),pt("tabindex"),h(KM),h(xh),h(X$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-select"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,e5,5),pe(s,uI,5),pe(s,Ih,5)),n&2){let a;L(a=j())&&(o.customTrigger=a.first),L(a=j())&&(o.options=a),L(a=j())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(De(z$,5),De(U$,5),De(r_,5)),n&2){let s;L(s=j())&&(o.trigger=s.first),L(s=j())&&(o.panel=s.first),L(s=j())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(q("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),H("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",T],disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T],placeholder:"placeholder",required:[2,"required","required",T],multiple:[2,"multiple","multiple",T],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",T],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",dt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[se([{provide:Vc,useExisting:e},{provide:Eh,useExisting:e}]),re,Me,Y],ngContentSelectors:$$,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let s=Ye();ye(H$),_(0,"div",2,0),Z("click",function(){return be(s),_e(o.open())}),_(3,"div",3),U(4,G$,2,1,"span",4)(5,Y$,3,1,"span",5),y(),_(6,"div",6)(7,"div",7),di(),_(8,"svg",8),k(9,"path",9),y()()()(),U(10,Z$,3,9,"ng-template",10),Z("backdropClick",function(){return be(s),_e(o.close())})("attach",function(){return be(s),_e(o._onAttached())})("detach",function(){return be(s),_e(o.close())})}if(n&2){let s=gt(1);x(3),q("id",o._valueId),x(),le(o.empty?4:5),x(6),M("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[qc,r_,Ds],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.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}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._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:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Q$.transformPanel]},changeDetection:0});let t=e;return t})();var XM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[J$],imports:[Gt,zr,Sb,ee,Vn,zc,Sb,ee]});let t=e;return t})();var t5=["switch"],i5=["*"];function n5(t,e){t&1&&(_(0,"div",10),di(),_(1,"svg",12),k(2,"path",13),y(),_(3,"svg",14),k(4,"path",15),y()())}var r5=new g("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),o5={provide:jn,useExisting:lt(()=>JM),multi:!0},mf=class{constructor(e,r){this.source=e,this.checked=r}},s5=0,JM=(()=>{let e=class e{_createChangeEvent(i){return new mf(this,i)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(i){this._checked=i,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,n,o,s,a,c){this._elementRef=i,this._focusMonitor=n,this._changeDetectorRef=o,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new B,this.toggleChange=new B,this.tabIndex=parseInt(s)||0,this.color=a.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++s5}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{i==="keyboard"||i==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):i||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(i){i.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(i){this.checked=!!i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorOnChange=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new mf(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Et),h(ue),pt("tabindex"),h(r5),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&De(t5,5),n&2){let s;L(s=j())&&(o._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),kt(o.color?"mat-"+o.color:""),H("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",T],color:"color",disabled:[2,"disabled","disabled",T],disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)],checked:[2,"checked","checked",T],hideIcon:[2,"hideIcon","hideIcon",T]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[se([o5,{provide:on,useExisting:e,multi:!0}]),re,Me,Y],ngContentSelectors:i5,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[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"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",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","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let s=Ye();ye(),_(0,"div",1)(1,"button",2,0),Z("click",function(){return be(s),_e(o._handleClick())}),k(3,"div",3),_(4,"div",4)(5,"div",5)(6,"div",6),k(7,"div",7),y(),_(8,"div",8),k(9,"div",9),y(),U(10,n5,5,0,"div",10),y()()(),_(11,"label",11),Z("click",function(c){return be(s),_e(c.stopPropagation())}),W(12),y()()}if(n&2){let s=gt(2);M("labelPosition",o.labelPosition),x(),H("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),M("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),q("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked),x(8),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),x(),le(o.hideIcon?-1:10),x(),M("for",o.buttonId),q("id",o._labelId)}},dependencies:[xi,Mh],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.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 .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.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)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.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)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.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)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.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:75ms opacity 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}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let t=e;return t})();var ek=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[JM,ee,ee]});let t=e;return t})();var a5=["mat-sort-header",""],c5=["*"];function l5(t,e){if(t&1){let r=Ye();_(0,"div",2),Z("@arrowPosition.start",function(){be(r);let n=$();return _e(n._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){be(r);let n=$();return _e(n._disableViewStateAnimation=!1)}),k(1,"div",3),_(2,"div",4),k(3,"div",5)(4,"div",6)(5,"div",7),y()()}if(t&2){let r=$();M("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),x(2),M("@indicator",r._getArrowDirectionState()),x(),M("@leftPointer",r._getArrowDirectionState()),x(),M("@rightPointer",r._getArrowDirectionState())}}var tk=new g("MAT_SORT_DEFAULT_OPTIONS"),d5=(()=>{let e=class e{get direction(){return this._direction}set direction(i){this._direction=i}constructor(i){this._defaultOptions=i,this._initializedStream=new Wr(1),this.sortables=new Map,this._stateChanges=new C,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new B,this.initialized=this._initializedStream}register(i){this.sortables.set(i.id,i)}deregister(i){this.sortables.delete(i.id)}sort(i){this.active!=i.id?(this.active=i.id,this.direction=i.start?i.start:this.start):this.direction=this.getNextSortDirection(i),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(i){if(!i)return"";let n=i?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=u5(i.start||this.start,n),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(n){return new(n||e)(h(tk,8))},e.\u0275dir=I({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",T],disabled:[2,"matSortDisabled","disabled",T]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[re,Me]});let t=e;return t})();function u5(t,e){let r=["asc","desc"];return t=="desc"&&r.reverse(),e||r.push(""),r}var Ur=dI.ENTERING+" "+lI.STANDARD_CURVE,ta={indicator:st("indicator",[ke("active-asc, asc",de({transform:"translateY(0px)"})),ke("active-desc, desc",de({transform:"translateY(10px)"})),Le("active-asc <=> active-desc",Ge(Ur))]),leftPointer:st("leftPointer",[ke("active-asc, asc",de({transform:"rotate(-45deg)"})),ke("active-desc, desc",de({transform:"rotate(45deg)"})),Le("active-asc <=> active-desc",Ge(Ur))]),rightPointer:st("rightPointer",[ke("active-asc, asc",de({transform:"rotate(45deg)"})),ke("active-desc, desc",de({transform:"rotate(-45deg)"})),Le("active-asc <=> active-desc",Ge(Ur))]),arrowOpacity:st("arrowOpacity",[ke("desc-to-active, asc-to-active, active",de({opacity:1})),ke("desc-to-hint, asc-to-hint, hint",de({opacity:.54})),ke("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",de({opacity:0})),Le("* => asc, * => desc, * => active, * => hint, * => void",Ge("0ms")),Le("* <=> *",Ge(Ur))]),arrowPosition:st("arrowPosition",[Le("* => desc-to-hint, * => desc-to-active",Ge(Ur,jc([de({transform:"translateY(-25%)"}),de({transform:"translateY(0)"})]))),Le("* => hint-to-desc, * => active-to-desc",Ge(Ur,jc([de({transform:"translateY(0)"}),de({transform:"translateY(25%)"})]))),Le("* => asc-to-hint, * => asc-to-active",Ge(Ur,jc([de({transform:"translateY(25%)"}),de({transform:"translateY(0)"})]))),Le("* => hint-to-asc, * => active-to-asc",Ge(Ur,jc([de({transform:"translateY(0)"}),de({transform:"translateY(-25%)"})]))),ke("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",de({transform:"translateY(0)"})),ke("hint-to-desc, active-to-desc, desc",de({transform:"translateY(-25%)"})),ke("hint-to-asc, active-to-asc, asc",de({transform:"translateY(25%)"}))]),allowChildren:st("allowChildren",[Le("* <=> *",[No("@*",Oo(),{optional:!0})])])},gf=(()=>{let e=class e{constructor(){this.changes=new C}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function h5(t){return t||new gf}var f5={provide:gf,deps:[[new xn,new Yn,gf]],useFactory:h5},hae=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(i){this._updateSortActionDescription(i)}constructor(i,n,o,s,a,c,l,d){this._intl=i,this._changeDetectorRef=n,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=c,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let n=!!i;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(i){this._isDisabled()&&i||(this._showIndicatorHint=i,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(i){this._viewState=i||{},this._disableViewStateAnimation&&(this._viewState={toState:i.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(i){!this._isDisabled()&&(i.keyCode===32||i.keyCode===13)&&(i.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let i=this._viewState.fromState;return(i?`${i}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(i){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,i)),this._sortActionDescription=i}_handleStateChanges(){this._rerenderSubscription=Ze(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(n){return new(n||e)(h(gf),h(ue),h(d5,8),h("MAT_SORT_HEADER_COLUMN_DEF",8),h(Et),h(N),h(wh,8),h(tk,8))},e.\u0275cmp=z({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&Z("click",function(){return o._handleClick()})("keydown",function(a){return o._handleKeydown(a)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),n&2&&(q("aria-sort",o._getAriaSortAttribute()),H("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",T],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",T]},exportAs:["matSortHeader"],standalone:!0,features:[re,Y],attrs:a5,ngContentSelectors:c5,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(n,o){n&1&&(ye(),_(0,"div",0)(1,"div",1),W(2),y(),U(3,l5,6,6,"div",2),y()),n&2&&(H("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),q("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),x(3),le(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[ta.indicator,ta.leftPointer,ta.rightPointer,ta.arrowOpacity,ta.arrowPosition,ta.allowChildren]},changeDetection:0});let t=e;return t})(),ik=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[f5],imports:[ee]});let t=e;return t})();var p5=["*"];function m5(t,e){t&1&&W(0)}var f_=(()=>{let e=class e{constructor(i){this._elementRef=i}focus(){this._elementRef.nativeElement.focus()}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let t=e;return t})(),p_=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkStepLabel",""]],standalone:!0});let t=e;return t})(),g5=0;var cr={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Kc=new g("STEPPER_GLOBAL_OPTIONS"),vf=(()=>{let e=class e{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(i){this._completedOverride=i}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(i){this._customError=i}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(i,n){this._stepper=i,this.interacted=!1,this.interactedStream=new B,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=n||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};e.\u0275fac=function(n){return new(n||e)(h(lt(()=>ia)),h(Kc,8))},e.\u0275cmp=z({type:e,selectors:[["cdk-step"]],contentQueries:function(n,o,s){if(n&1&&pe(s,p_,5),n&2){let a;L(a=j())&&(o.stepLabel=a.first)}},viewQuery:function(n,o){if(n&1&&De(Re,7),n&2){let s;L(s=j())&&(o.content=s.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[re,Me,Y],ngContentSelectors:p5,decls:1,vars:0,template:function(n,o){n&1&&(ye(),U(0,m5,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let t=e;return t})(),ia=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(i){this.steps&&this._steps?(this._isValidIndex(i),this.selected?._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(i){this.selectedIndex=i&&this.steps?this.steps.toArray().indexOf(i):-1}get orientation(){return this._orientation}set orientation(i){this._orientation=i,this._keyManager&&this._keyManager.withVerticalOrientation(i==="vertical")}constructor(i,n,o){this._dir=i,this._changeDetectorRef=n,this._elementRef=o,this._destroyed=new C,this.steps=new Pt,this._sortedHeaders=new Pt,this.linear=!1,this._selectedIndex=0,this.selectionChange=new B,this.selectedIndexChange=new B,this._orientation="horizontal",this._groupId=g5++}ngAfterContentInit(){this._steps.changes.pipe(Qe(this._steps),te(this._destroyed)).subscribe(i=>{this.steps.reset(i.filter(n=>n._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Qe(this._stepHeader),te(this._destroyed)).subscribe(i=>{this._sortedHeaders.reset(i.toArray().sort((n,o)=>n._elementRef.nativeElement.compareDocumentPosition(o._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Fn(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:V()).pipe(Qe(this._layoutDirection()),te(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(i=>i.reset()),this._stateChanged()}_getStepLabelId(i){return`cdk-step-label-${this._groupId}-${i}`}_getStepContentId(i){return`cdk-step-content-${this._groupId}-${i}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(i){let n=i-this._selectedIndex;return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(i,n=cr.NUMBER){let o=this.steps.toArray()[i],s=this._isCurrentStep(i);return o._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(o,s):this._getGuidelineLogic(o,s,n)}_getDefaultIndicatorLogic(i,n){return i._showError()&&i.hasError&&!n?cr.ERROR:!i.completed||n?cr.NUMBER:i.editable?cr.EDIT:cr.DONE}_getGuidelineLogic(i,n,o=cr.NUMBER){return i._showError()&&i.hasError&&!n?cr.ERROR:i.completed&&!n?cr.DONE:i.completed&&n?o:i.editable&&n?cr.EDIT:o}_isCurrentStep(i){return this._selectedIndex===i}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(i){let n=this.steps.toArray();this.selectionChange.emit({selectedIndex:i,previouslySelectedIndex:this._selectedIndex,selectedStep:n[i],previouslySelectedStep:n[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItem(i),this._selectedIndex=i,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(i){let n=Vt(i),o=i.keyCode,s=this._keyManager;s.activeItemIndex!=null&&!n&&(o===32||o===13)?(this.selectedIndex=s.activeItemIndex,i.preventDefault()):s.setFocusOrigin("keyboard").onKeydown(i)}_anyControlsInvalidOrPending(i){return this.linear&&i>=0?this.steps.toArray().slice(0,i).some(n=>{let o=n.stepControl;return(o?o.invalid||o.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let i=this._elementRef.nativeElement,n=hb();return i===n||i.contains(n)}_isValidIndex(i){return i>-1&&(!this.steps||i{let e=class e{constructor(i){this._stepper=i,this.type="submit"}};e.\u0275fac=function(n){return new(n||e)(h(ia))},e.\u0275dir=I({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(){return o._stepper.next()}),n&2&&yt("type",o.type)},inputs:{type:"type"},standalone:!0});let t=e;return t})(),rk=(()=>{let e=class e{constructor(i){this._stepper=i,this.type="button"}};e.\u0275fac=function(n){return new(n||e)(h(ia))},e.\u0275dir=I({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(){return o._stepper.previous()}),n&2&&yt("type",o.type)},inputs:{type:"type"},standalone:!0});let t=e;return t})(),ok=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Pn]});let t=e;return t})();function v5(t,e){if(t&1&&tt(0,2),t&2){let r=$();M("ngTemplateOutlet",r.iconOverrides[r.state])("ngTemplateOutletContext",r._getIconContext())}}function b5(t,e){if(t&1&&(_(0,"span",7),we(1),y()),t&2){let r=$(2);x(),at(r._getDefaultTextForState(r.state))}}function _5(t,e){if(t&1&&(_(0,"span",8),we(1),y()),t&2){let r=$(3);x(),at(r._intl.completedLabel)}}function y5(t,e){if(t&1&&(_(0,"span",8),we(1),y()),t&2){let r=$(3);x(),at(r._intl.editableLabel)}}function w5(t,e){if(t&1&&(U(0,_5,2,1,"span",8)(1,y5,2,1,"span",8),_(2,"mat-icon",7),we(3),y()),t&2){let r=$(2);le(r.state==="done"?0:r.state==="edit"?1:-1),x(3),at(r._getDefaultTextForState(r.state))}}function x5(t,e){if(t&1&&U(0,b5,2,1,"span",7)(1,w5,4,2,"mat-icon",7),t&2){let r,i=$();le((r=i.state)==="number"?0:1)}}function D5(t,e){t&1&&(_(0,"div",4),tt(1,9),y()),t&2&&(x(),M("ngTemplateOutlet",e.template))}function C5(t,e){if(t&1&&(_(0,"div",4),we(1),y()),t&2){let r=$();x(),at(r.label)}}function E5(t,e){if(t&1&&(_(0,"div",5),we(1),y()),t&2){let r=$();x(),at(r._intl.optionalLabel)}}function I5(t,e){if(t&1&&(_(0,"div",6),we(1),y()),t&2){let r=$();x(),at(r.errorMessage)}}var ak=["*"];function S5(t,e){}function M5(t,e){if(t&1&&(W(0),U(1,S5,0,0,"ng-template",0)),t&2){let r=$();x(),M("cdkPortalOutlet",r._portal)}}var ck=(t,e)=>({step:t,i:e}),lk=t=>({animationDuration:t}),dk=(t,e)=>({value:t,params:e});function k5(t,e){t&1&&W(0)}function T5(t,e){t&1&&k(0,"div",6)}function R5(t,e){if(t&1&&(tt(0,5),U(1,T5,1,0,"div",6)),t&2){let r=e.$implicit,i=e.$index,n=e.$count;$(2);let o=gt(4);M("ngTemplateOutlet",o)("ngTemplateOutletContext",Ha(3,ck,r,i)),x(),le(i!==n-1?1:-1)}}function A5(t,e){if(t&1){let r=Ye();_(0,"div",7),Z("@horizontalStepTransition.done",function(n){be(r);let o=$(2);return _e(o._animationDone.next(n))}),tt(1,8),y()}if(t&2){let r=e.$implicit,i=e.$index,n=$(2);H("mat-horizontal-stepper-content-inactive",n.selectedIndex!==i),M("@horizontalStepTransition",Ha(8,dk,n._getAnimationDirection(i),Eg(6,lk,n._getAnimationDuration())))("id",n._getStepContentId(i)),q("aria-labelledby",n._getStepLabelId(i)),x(),M("ngTemplateOutlet",r.content)}}function O5(t,e){if(t&1&&(_(0,"div",1)(1,"div",2),eu(2,R5,2,6,null,null,Jd),y(),_(4,"div",3),eu(5,A5,2,11,"div",4,Jd),y()()),t&2){let r=$();x(2),tu(r.steps),x(3),tu(r.steps)}}function N5(t,e){if(t&1){let r=Ye();_(0,"div",9),tt(1,5),_(2,"div",10)(3,"div",11),Z("@verticalStepTransition.done",function(n){be(r);let o=$(2);return _e(o._animationDone.next(n))}),_(4,"div",12),tt(5,8),y()()()()}if(t&2){let r=e.$implicit,i=e.$index,n=e.$count,o=$(2),s=gt(4);x(),M("ngTemplateOutlet",s)("ngTemplateOutletContext",Ha(10,ck,r,i)),x(),H("mat-stepper-vertical-line",i!==n-1),x(),H("mat-vertical-stepper-content-inactive",o.selectedIndex!==i),M("@verticalStepTransition",Ha(15,dk,o._getAnimationDirection(i),Eg(13,lk,o._getAnimationDuration())))("id",o._getStepContentId(i)),q("aria-labelledby",o._getStepLabelId(i)),x(2),M("ngTemplateOutlet",r.content)}}function F5(t,e){if(t&1&&eu(0,N5,6,18,"div",9,Jd),t&2){let r=$();tu(r.steps)}}function P5(t,e){if(t&1){let r=Ye();_(0,"mat-step-header",13),Z("click",function(){let n=be(r).step;return _e(n.select())})("keydown",function(n){be(r);let o=$();return _e(o._onKeydown(n))}),y()}if(t&2){let r=e.step,i=e.i,n=$();H("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),M("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,r.state))("label",r.stepLabel||r.label)("selected",n.selectedIndex===i)("active",n._stepIsNavigable(i,r))("optional",r.optional)("errorMessage",r.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(i,r))("color",r.color||n.color),q("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(i,r)?null:!0)}}var m_=(()=>{let e=class e extends p_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matStepLabel",""]],standalone:!0,features:[ae]});let t=e;return t})(),bf=(()=>{let e=class e{constructor(){this.changes=new C,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function L5(t){return t||new bf}var j5={provide:bf,deps:[[new xn,new Yn,bf]],useFactory:L5},g_=(()=>{let e=class e extends f_{constructor(i,n,o,s){super(o),this._intl=i,this._focusMonitor=n,this._intlSubscription=i.changes.subscribe(()=>s.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(i,n){i?this._focusMonitor.focusVia(this._elementRef,i,n):this._elementRef.nativeElement.focus(n)}_stringLabel(){return this.label instanceof m_?null:this.label}_templateLabel(){return this.label instanceof m_?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(i){return i=="number"?`${this.index+1}`:i=="edit"?"create":i=="error"?"warning":i}};e.\u0275fac=function(n){return new(n||e)(h(bf),h(Et),h(N),h(ue))},e.\u0275cmp=z({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(n,o){n&2&&kt("mat-"+(o.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[ae,Y],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(n,o){if(n&1&&(k(0,"div",0),_(1,"div")(2,"div",1),U(3,v5,1,2,"ng-container",2)(4,x5,2,1),y()(),_(5,"div",3),U(6,D5,2,1,"div",4)(7,C5,2,1,"div",4)(8,E5,2,1,"div",5)(9,I5,2,1,"div",6),y()),n&2){let s;M("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),x(),Xd("mat-step-icon-state-",o.state," mat-step-icon"),H("mat-step-icon-selected",o.selected),x(2),le(o.iconOverrides&&o.iconOverrides[o.state]?3:4),x(2),H("mat-step-label-active",o.active)("mat-step-label-selected",o.selected)("mat-step-label-error",o.state=="error"),x(),le((s=o._templateLabel())?6:o._stringLabel()?7:-1,s),x(2),le(o.optional&&o.state!="error"?8:-1),x(),le(o.state==="error"?9:-1)}},dependencies:[xi,po,Bi],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let t=e;return t})(),uk="500ms",hk="225ms",sk={horizontalStepTransition:st("horizontalStepTransition",[ke("previous",de({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),ke("current",de({transform:"none",visibility:"inherit"})),ke("next",de({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Le("* => *",Gb([Ge("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),No("@*",Oo(),{optional:!0})]),{params:{animationDuration:uk}})]),verticalStepTransition:st("verticalStepTransition",[ke("previous",de({height:"0px",visibility:"hidden"})),ke("next",de({height:"0px",visibility:"hidden"})),ke("current",de({height:"*",visibility:"inherit"})),Le("* <=> current",Gb([Ge("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),No("@*",Oo(),{optional:!0})]),{params:{animationDuration:hk}})])},V5=(()=>{let e=class e{constructor(i){this.templateRef=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let t=e;return t})(),B5=(()=>{let e=class e{constructor(i){this._template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","matStepContent",""]],standalone:!0});let t=e;return t})(),z5=(()=>{let e=class e extends vf{constructor(i,n,o,s){super(i,s),this._errorStateMatcher=n,this._viewContainerRef=o,this._isSelected=ne.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Oe(()=>this._stepper.selectionChange.pipe(P(i=>i.selectedStep===this),Qe(this._stepper.selected===this)))).subscribe(i=>{i&&this._lazyContent&&!this._portal&&(this._portal=new Ci(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(i,n){let o=this._errorStateMatcher.isErrorState(i,n),s=!!(i&&i.invalid&&this.interacted);return o||s}};e.\u0275fac=function(n){return new(n||e)(h(lt(()=>fk)),h(nn,4),h(Ve),h(Kc,8))},e.\u0275cmp=z({type:e,selectors:[["mat-step"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,m_,5),pe(s,B5,5)),n&2){let a;L(a=j())&&(o.stepLabel=a.first),L(a=j())&&(o._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[se([{provide:nn,useExisting:e},{provide:vf,useExisting:e}]),ae,Y],ngContentSelectors:ak,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(ye(),U(0,M5,2,1,"ng-template"))},dependencies:[Fo],encapsulation:2,changeDetection:0});let t=e;return t})(),fk=(()=>{let e=class e extends ia{get animationDuration(){return this._animationDuration}set animationDuration(i){this._animationDuration=/^\d+$/.test(i)?i+"ms":i}constructor(i,n,o){super(i,n,o),this._stepHeader=void 0,this._steps=void 0,this.steps=new Pt,this.animationDone=new B,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new C,this._animationDuration="",this._isServer=!b(Ae).isBrowser;let s=o.nativeElement.nodeName.toLowerCase();this.orientation=s==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:i,templateRef:n})=>this._iconOverrides[i]=n),this.steps.changes.pipe(te(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Yi((i,n)=>i.fromState===n.fromState&&i.toState===n.toState),te(this._destroyed)).subscribe(i=>{i.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(i,n){return n.completed||this.selectedIndex===i||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?uk:hk}};e.\u0275fac=function(n){return new(n||e)(h(bt,8),h(ue),h(N))},e.\u0275cmp=z({type:e,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,z5,5),pe(s,V5,5)),n&2){let a;L(a=j())&&(o._steps=a),L(a=j())&&(o._icons=a)}},viewQuery:function(n,o){if(n&1&&De(g_,5),n&2){let s;L(s=j())&&(o._stepHeader=s)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(n,o){n&2&&(q("aria-orientation",o.orientation),H("mat-stepper-horizontal",o.orientation==="horizontal")("mat-stepper-vertical",o.orientation==="vertical")("mat-stepper-label-position-end",o.orientation==="horizontal"&&o.labelPosition=="end")("mat-stepper-label-position-bottom",o.orientation==="horizontal"&&o.labelPosition=="bottom")("mat-stepper-header-position-bottom",o.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[se([{provide:ia,useExisting:e}]),ae,Y],ngContentSelectors:ak,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(n,o){if(n&1&&(ye(),U(0,k5,1,0)(1,O5,7,0,"div",1)(2,F5,2,0)(3,P5,1,23,"ng-template",null,0,Er)),n&2){let s;le(o._isServer?0:-1),x(),le((s=o.orientation)==="horizontal"?1:s==="vertical"?2:-1)}},dependencies:[po,g_],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[sk.horizontalStepTransition,sk.verticalStepTransition]},changeDetection:0});let t=e;return t})(),ice=(()=>{let e=class e extends nk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,o){n&2&&yt("type",o.type)},standalone:!0,features:[ae]});let t=e;return t})(),nce=(()=>{let e=class e extends rk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,o){n&2&&yt("type",o.type)},standalone:!0,features:[ae]});let t=e;return t})(),pk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[j5,nn],imports:[ee,Gt,Vr,ok,Wh,rn,fk,g_,ee]});let t=e;return t})();var H5=[[["caption"]],[["colgroup"],["col"]],"*"],$5=["caption","colgroup, col","*"];function G5(t,e){t&1&&W(0,2)}function W5(t,e){t&1&&(_(0,"thead",0),tt(1,1),y(),_(2,"tbody",0),tt(3,2)(4,3),y(),_(5,"tfoot",0),tt(6,4),y())}function q5(t,e){t&1&&tt(0,1)(1,2)(2,3)(3,4)}var sn=new g("CDK_TABLE");var Cf=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let t=e;return t})(),Ef=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let t=e;return t})(),vk=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let t=e;return t})(),na=(()=>{let e=class e{get name(){return this._name}set name(i){this._setNameInput(i)}get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(i){i!==this._stickyEnd&&(this._stickyEnd=i,this._hasStickyChanged=!0)}constructor(i){this._table=i,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(i){i&&(this._name=i,this.cssClassFriendlyName=i.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(n){return new(n||e)(h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,Cf,5),pe(s,Ef,5),pe(s,vk,5)),n&2){let a;L(a=j())&&(o.cell=a.first),L(a=j())&&(o.headerCell=a.first),L(a=j())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",T],stickyEnd:[2,"stickyEnd","stickyEnd",T]},standalone:!0,features:[se([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),re]});let t=e;return t})(),yf=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},bk=(()=>{let e=class e extends yf{constructor(i,n){super(i,n)}};e.\u0275fac=function(n){return new(n||e)(h(na),h(N))},e.\u0275dir=I({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ae]});let t=e;return t})();var _k=(()=>{let e=class e extends yf{constructor(i,n){super(i,n);let o=i._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(n){return new(n||e)(h(na),h(N))},e.\u0275dir=I({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ae]});let t=e;return t})(),wf=class{constructor(){this.tasks=[],this.endTasks=[]}},xf=new g("_COALESCED_STYLE_SCHEDULER"),b_=(()=>{let e=class e{constructor(i){this._currentSchedule=null,this._ngZone=b(F)}schedule(i){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(i)}scheduleEnd(i){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(i)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new wf,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let i=this._currentSchedule;this._currentSchedule=new wf;for(let n of i.tasks)n();for(let n of i.endTasks)n()}this._currentSchedule=null})))}};e.\u0275fac=function(n){return new(n||e)(m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var __=(()=>{let e=class e{constructor(i,n){this.template=i,this._differs=n}ngOnChanges(i){if(!this._columnsDiffer){let n=i.columns&&i.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(i){return this instanceof Xc?i.headerCell.template:this instanceof y_?i.footerCell.template:i.cell.template}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn))},e.\u0275dir=I({type:e,features:[Me]});let t=e;return t})(),Xc=(()=>{let e=class e extends __{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,n,o){super(i,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn),h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",T]},standalone:!0,features:[re,ae,Me]});let t=e;return t})(),y_=(()=>{let e=class e extends __{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,n,o){super(i,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn),h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",T]},standalone:!0,features:[re,ae,Me]});let t=e;return t})(),If=(()=>{let e=class e extends __{constructor(i,n,o){super(i,n),this._table=o}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn),h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ae]});let t=e;return t})(),jo=(()=>{let e=class e{constructor(i){this._viewContainer=i,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(h(Ve))},e.\u0275dir=I({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let t=e;return t})(),w_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})();var x_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})(),yk=(()=>{let e=class e{constructor(i){this.templateRef=i,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let t=e;return t})(),mk=["top","bottom","left","right"],v_=class{constructor(e,r,i,n,o=!0,s=!0,a){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let i=[];for(let n of e)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let o=0;o{for(let n of i)this._removeStickyStyle(n,r)})}updateStickyColumns(e,r,i,n=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||i.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],s=o.children.length,a=this._getCellWidths(o,n),c=this._getStickyStartColumnPositions(a,r),l=this._getStickyEndColumnPositions(a,i),d=r.lastIndexOf(!0),u=i.indexOf(!0),f=this.direction==="rtl",p=f?"right":"left",v=f?"left":"right";for(let S of e)for(let E=0;Er[E]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:u===-1?[]:a.slice(u).map((S,E)=>i[E+u]?S:null).reverse()}))})}stickRows(e,r,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let n=i==="bottom"?e.slice().reverse():e,o=i==="bottom"?r.slice().reverse():r,s=[],a=[],c=[];for(let d=0,u=0;d{let i=e.querySelector("tfoot");i&&(r.some(n=>!n)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let n of r)e.style[n]="",e.classList.remove(this._borderCellCss[n]);mk.some(n=>r.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,i,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},i=0;for(let n of mk)e.style[n]&&(i+=r[n]);return i?`${i}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],n=e.children;for(let o=0;o0;o--)r[o]&&(i[o]=n,n+=e[o]);return i}};var Df=new g("CDK_SPL");var D_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let t=e;return t})(),C_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let t=e;return t})(),E_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let t=e;return t})(),I_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let t=e;return t})();var S_=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let i=this._elementRef.nativeElement.getAttribute("role"),n=i==="grid"||i==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(i){this._trackByFn=i}get dataSource(){return this._dataSource}set dataSource(i){this._dataSource!==i&&this._switchDataSource(i)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(i){this._multiTemplateDataRows=i,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(i){this._fixedLayout=i,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(i,n,o,s,a,c,l,d,u,f,p,v){this._differs=i,this._changeDetectorRef=n,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=f,this._stickyPositioningListener=p,this._onDestroy=new C,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new B,this.viewChange=new Pe({start:0,end:Number.MAX_VALUE}),this._injector=b(Se),s||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!l.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((i,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(i=>{i?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),ef(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let i=this._dataDiffer.diff(this._renderRows);if(!i){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,n,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Zs.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(o=>{let s=n.get(o.currentIndex);s.context.$implicit=o.item.data}),this._updateNoDataRow(),$t(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(i){this._customColumnDefs.add(i)}removeColumnDef(i){this._customColumnDefs.delete(i)}addRowDef(i){this._customRowDefs.add(i)}removeRowDef(i){this._customRowDefs.delete(i)}addHeaderRowDef(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}removeHeaderRowDef(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}addFooterRowDef(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}removeFooterRowDef(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}setNoDataRow(i){this._customNoDataRow=i}updateStickyHeaderRowStyles(){let i=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=gk(this._headerRowOutlet,"thead");o&&(o.style.display=i.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let i=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=gk(this._footerRowOutlet,"tfoot");o&&(o.style.display=i.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let i=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...i,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{let a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,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()}_getAllRenderRows(){let i=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(a)?o.get(a):[];if(c.length){let l=c.shift();return l.dataIndex=n,l}else return{data:i,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_f(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=_f(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_f(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_f(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let i=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&i.length>1,this._defaultRowDef=i[0]}_renderUpdatedColumns(){let i=(a,c)=>a||!!c.getColumnsDiff(),n=this._rowDefs.reduce(i,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(i,!1);o&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(i,!1);return s&&this._forceRenderFooterRows(),n||o||s}_switchDataSource(i){this._data=[],ef(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),i||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=i}_observeRenderChanges(){if(!this.dataSource)return;let i;ef(this.dataSource)?i=this.dataSource.connect(this):Zr(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=V(this.dataSource)),this._renderChangeSubscription=i.pipe(te(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((i,n)=>this._renderRow(this._headerRowOutlet,i,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((i,n)=>this._renderRow(this._footerRowOutlet,i,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(i,n){let o=Array.from(n.columns||[]).map(c=>{let l=this._columnDefsByName.get(c);return l}),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(i,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(i){let n=[];for(let o=0;o!s.when||s.when(n,i));else{let s=this._rowDefs.find(a=>a.when&&a.when(n,i))||this._defaultRowDef;s&&o.push(s)}return o.length,o}_getEmbeddedViewArgs(i,n){let o=i.rowDef,s={$implicit:i.data};return{templateRef:o.template,context:s,index:n}}_renderRow(i,n,o,s={}){let a=i.viewContainer.createEmbeddedView(n.template,s,o);return this._renderCellTemplateForItem(n,s),a}_renderCellTemplateForItem(i,n){for(let o of this._getCellTemplates(i))jo.mostRecentCellOutlet&&jo.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let i=this._rowOutlet.viewContainer;for(let n=0,o=i.length;n{let o=this._columnDefsByName.get(n);return i.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let i=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(i,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(i,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(i,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let i=this._dir?this._dir.value:"ltr";this._stickyStyler=new v_(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:V()).pipe(te(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(i){return i.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let i=this._customNoDataRow||this._noDataRow;if(!i)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let s=o.createEmbeddedView(i.templateRef),a=s.rootNodes[0];s.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(i._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)(h(Sn),h(ue),h(N),pt("role"),h(bt,8),h(K),h(Ae),h(Gc),h(xf),h(Bn),h(Df,12),h(F,8))},e.\u0275cmp=z({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,yk,5),pe(s,na,5),pe(s,If,5),pe(s,Xc,5),pe(s,y_,5)),n&2){let a;L(a=j())&&(o._noDataRow=a.first),L(a=j())&&(o._contentColumnDefs=a),L(a=j())&&(o._contentRowDefs=a),L(a=j())&&(o._contentHeaderRowDefs=a),L(a=j())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&H("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",T],fixedLayout:[2,"fixedLayout","fixedLayout",T]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[se([{provide:sn,useExisting:e},{provide:Gc,useClass:Qs},{provide:xf,useClass:b_},{provide:Df,useValue:null}]),re,Y],ngContentSelectors:$5,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ye(H5),W(0),W(1,1),U(2,G5,1,0)(3,W5,7,0)(4,q5,4,0)),n&2&&(x(2),le(o._isServer?2:-1),x(),le(o._isNativeHtmlTable?3:4))},dependencies:[C_,D_,I_,E_],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let t=e;return t})();function _f(t,e){return t.concat(Array.from(e))}function gk(t,e){let r=e.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let n=i.nodeType===1?i.nodeName:null;if(n===r)return i;if(n==="TABLE")break;i=i.parentNode}return null}var wk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Wc]});let t=e;return t})();var Y5=[[["caption"]],[["colgroup"],["col"]],"*"],Z5=["caption","colgroup, col","*"];function Q5(t,e){t&1&&W(0,2)}function K5(t,e){t&1&&(_(0,"thead",0),tt(1,1),y(),_(2,"tbody",2),tt(3,3)(4,4),y(),_(5,"tfoot",0),tt(6,5),y())}function X5(t,e){t&1&&tt(0,1)(1,3)(2,4)(3,5)}var $ce=(()=>{let e=class e extends S_{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[se([{provide:S_,useExisting:e},{provide:sn,useExisting:e},{provide:xf,useClass:b_},{provide:Gc,useClass:Qs},{provide:Df,useValue:null}]),ae,Y],ngContentSelectors:Z5,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ye(Y5),W(0),W(1,1),U(2,Q5,1,0)(3,K5,7,0)(4,X5,4,0)),n&2&&(x(2),le(o._isServer?2:-1),x(),le(o._isNativeHtmlTable?3:4))},dependencies:[C_,D_,I_,E_],styles:[".mat-mdc-table-sticky{position:sticky !important}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{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}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-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});let t=e;return t})(),Gce=(()=>{let e=class e extends Cf{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[se([{provide:Cf,useExisting:e}]),ae]});let t=e;return t})(),Wce=(()=>{let e=class e extends Ef{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[se([{provide:Ef,useExisting:e}]),ae]});let t=e;return t})();var qce=(()=>{let e=class e extends na{get name(){return this._name}set name(i){this._setNameInput(i)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[se([{provide:na,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ae]});let t=e;return t})(),Yce=(()=>{let e=class e extends bk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ae]});let t=e;return t})();var Zce=(()=>{let e=class e extends _k{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ae]});let t=e;return t})();var Qce=(()=>{let e=class e extends Xc{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",T]},standalone:!0,features:[se([{provide:Xc,useExisting:e}]),re,ae]});let t=e;return t})();var Kce=(()=>{let e=class e extends If{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[se([{provide:If,useExisting:e}]),ae]});let t=e;return t})(),Xce=(()=>{let e=class e extends w_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[se([{provide:w_,useExisting:e}]),ae,Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})();var Jce=(()=>{let e=class e extends x_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[se([{provide:x_,useExisting:e}]),ae,Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})();var M_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,wk,ee]});let t=e;return t})(),J5=9007199254740991,xk=class extends Jh{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Pe([]),this._filter=new Pe(""),this._internalPageChanges=new C,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,i)=>{let n=r[i];if(fb(n)){let o=Number(n);return o{let n=i.active,o=i.direction;return!n||o==""?r:r.sort((s,a)=>{let c=this.sortingDataAccessor(s,n),l=this.sortingDataAccessor(a,n),d=typeof c,u=typeof l;d!==u&&(d==="number"&&(c+=""),u==="number"&&(l+=""));let f=0;return c!=null&&l!=null?c>l?f=1:c{let n=Object.keys(r).reduce((s,a)=>s+r[a]+"\u25EC","").toLowerCase(),o=i.trim().toLowerCase();return n.indexOf(o)!=-1},this._data=new Pe(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Ze(this._sort.sortChange,this._sort.initialized):V(null),r=this._paginator?Ze(this._paginator.page,this._internalPageChanges,this._paginator.initialized):V(null),i=this._data,n=qi([i,this._filter]).pipe(P(([a])=>this._filterData(a))),o=qi([n,e]).pipe(P(([a])=>this._orderData(a))),s=qi([o,r]).pipe(P(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let i=Math.ceil(r.length/r.pageSize)-1||0,n=Math.min(r.pageIndex,i);n!==r.pageIndex&&(r.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};function Lk(t){let e=t.cloneNode(!0),r=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let n=0;n=i&&r<=n&&e>=o&&e<=s}function el(t,e,r){t.top+=e,t.bottom=t.top+t.height,t.left+=r,t.right=t.left+t.width}function Ik(t,e,r,i){let{top:n,right:o,bottom:s,left:a,width:c,height:l}=t,d=c*e,u=l*e;return i>n-u&&ia-d&&r{this.positions.set(r,{scrollPosition:{top:r.scrollTop,left:r.scrollLeft},clientRect:F_(r)})})}handleScroll(e){let r=At(e),i=this.positions.get(r);if(!i)return null;let n=i.scrollPosition,o,s;if(r===this._document){let l=this.getViewportScrollPosition();o=l.top,s=l.left}else o=r.scrollTop,s=r.scrollLeft;let a=n.top-o,c=n.left-s;return this.positions.forEach((l,d)=>{l.clientRect&&r!==d&&r.contains(d)&&el(l.clientRect,a,c)}),n.top=o,n.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function jk(t,e){let r=t.rootNodes;if(r.length===1&&r[0].nodeType===e.ELEMENT_NODE)return r[0];let i=e.createElement("div");return r.forEach(n=>i.appendChild(n)),i}function P_(t,e,r){for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];n?t.setProperty(i,n,r?.has(i)?"important":""):t.removeProperty(i)}return t}function ra(t,e){let r=e?"":"none";P_(t.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":r,"-ms-user-select":r,"-webkit-user-select":r,"-moz-user-select":r})}function Sk(t,e,r){P_(t.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},r)}function Rf(t,e){return e&&e!="none"?t+" "+e:t}function Mk(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=Af(e.left,e.top)}function Af(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function kk(t){let e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function t3(t){let e=getComputedStyle(t),r=k_(e,"transition-property"),i=r.find(a=>a==="transform"||a==="all");if(!i)return 0;let n=r.indexOf(i),o=k_(e,"transition-duration"),s=k_(e,"transition-delay");return kk(o[n])+kk(s[n])}function k_(t,e){return t.getPropertyValue(e).split(",").map(i=>i.trim())}var i3=new Set(["position"]),R_=class{constructor(e,r,i,n,o,s,a,c,l){this._document=e,this._rootElement=r,this._direction=i,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=s,this._pickupPositionOnPage=a,this._initialTransform=c,this._zIndex=l}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return t3(this._preview)}addEventListener(e,r){this._preview.addEventListener(e,r)}removeEventListener(e,r){this._preview.removeEventListener(e,r)}_createPreview(){let e=this._previewTemplate,r=this._previewClass,i=e?e.template:null,n;if(i&&e){let o=e.matchSize?this._initialDomRect:null,s=e.viewContainer.createEmbeddedView(i,e.context);s.detectChanges(),n=jk(s,this._document),this._previewEmbeddedView=s,e.matchSize?Mk(n,o):n.style.transform=Af(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=Lk(this._rootElement),Mk(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return P_(n.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},i3),ra(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),r&&(Array.isArray(r)?r.forEach(o=>n.classList.add(o)):n.classList.add(r)),n}},Tk=jt({passive:!0}),Sf=jt({passive:!1}),Rk=jt({passive:!1,capture:!0}),n3=800,Ak=new Set(["position"]),A_=class{get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(r=>ra(r,e)))}constructor(e,r,i,n,o,s){this._config=r,this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=Ni(!1),this._moveEvents=new C,this._pointerMoveSubscription=ne.EMPTY,this._pointerUpSubscription=ne.EMPTY,this._scrollSubscription=ne.EMPTY,this._resizeSubscription=ne.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new C,this.started=new C,this.released=new C,this.ended=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{let c=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging()){let d=Math.abs(c.x-this._pickupPositionOnPage.x),u=Math.abs(c.y-this._pickupPositionOnPage.y);if(d+u>=this._config.dragStartThreshold){let p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),v=this._dropContainer;if(!p){this._endDragSequence(a);return}(!v||!v.isDragging()&&!v.isReceiving())&&(a.cancelable&&a.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(a)))}return}a.cancelable&&a.preventDefault();let l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{let d=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=l.x-d.x+this._passiveTransform.x,u.y=l.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:a,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(e).withParent(r.parentDragRef||null),this._parentPositions=new Tf(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>ot(i)),this._handles.forEach(i=>ra(i,this.disabled)),this._toggleNativeDragInteractions();let r=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&r.add(i)}),this._disabledHandles=r,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let r=ot(e);return r!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{r.addEventListener("mousedown",this._pointerDown,Sf),r.addEventListener("touchstart",this._pointerDown,Tk),r.addEventListener("dragstart",this._nativeDragStart,Sf)}),this._initialTransform=void 0,this._rootElement=r),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?ot(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),ra(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),ra(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",Nk,Rk)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let r=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(r),dropPoint:r,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){Jc(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let r=this._getShadowRoot(),i=this._dropContainer;if(r&&this._ngZone.runOutsideAngular(()=>{r.addEventListener("selectstart",Nk,Rk)}),i){let n=this._rootElement,o=n.parentNode,s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new R_(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(o,r)),Sk(n,!1,Ak),this._document.body.appendChild(o.replaceChild(s,n)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,r){this._parentDragRef&&r.stopPropagation();let i=this.isDragging(),n=Jc(r),o=!n&&r.button!==0,s=this._rootElement,a=At(r),c=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+n3>Date.now(),l=n?ko(r):Mo(r);if(a&&a.draggable&&r.type==="mousedown"&&r.preventDefault(),i||o||c||l)return;if(this._handles.length){let f=s.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=F_(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,r);let u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(r);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,r)}_cleanupDragArtifacts(e){Sk(this._rootElement,!0,Ak),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let r=this._dropContainer,i=r.getItemIndex(this),n=this._getPointerPositionOnPage(e),o=this._getDragDistance(n),s=r._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:r,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:n,event:e}),r.drop(this,i,this._initialIndex,this._initialContainer,s,o,n,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:r},{x:i,y:n}){let o=this._initialContainer._getSiblingContainerFromPosition(this,e,r);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,r)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,e,r,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,e,r,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,r):this._applyPreviewTransform(e-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let r=this._preview.getTransitionDuration();return r===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let n=s=>{(!s||At(s)===this._preview&&s.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",n),i(),clearTimeout(o))},o=setTimeout(n,r*1.5);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,r=e?e.template:null,i;return r?(this._placeholderRef=e.viewContainer.createEmbeddedView(r,e.context),this._placeholderRef.detectChanges(),i=jk(this._placeholderRef,this._document)):i=Lk(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,r,i){let n=r===this._rootElement?null:r,o=n?n.getBoundingClientRect():e,s=Jc(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),c=s.pageX-o.left-a.left,l=s.pageY-o.top-a.top;return{x:o.left-e.left+c,y:o.top-e.top+l}}_getPointerPositionOnPage(e){let r=this._getViewportScrollPosition(),i=Jc(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-r.left,o=i.pageY-r.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=o,a.matrixTransform(s.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(e){let r=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:n}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||r==="x"?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||r==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=a.top+s,u=a.bottom-(l-s),f=a.left+o,p=a.right-(c-o);i=Ok(i,f,p),n=Ok(n,d,u)}return{x:i,y:n}}_updatePointerDirectionDelta(e){let{x:r,y:i}=e,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(r-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(n.x=r>o.x?1:-1,o.x=r),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>o.y?1:-1,o.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,ra(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,Sf),e.removeEventListener("touchstart",this._pointerDown,Tk),e.removeEventListener("dragstart",this._nativeDragStart,Sf)}_applyRootElementTransform(e,r){let i=Af(e,r),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=Rf(i,this._initialTransform)}_applyPreviewTransform(e,r){let i=this._previewTemplate?.template?void 0:this._initialTransform,n=Af(e,r);this._preview.setTransform(Rf(n,i))}_getDragDistance(e){let r=this._pickupPositionOnPage;return r?{x:e.x-r.x,y:e.y-r.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:r}=this._passiveTransform;if(e===0&&r===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||i.width===0&&i.height===0)return;let o=n.left-i.left,s=i.right-n.right,a=n.top-i.top,c=i.bottom-n.bottom;n.width>i.width?(o>0&&(e+=o),s>0&&(e-=s)):e=0,n.height>i.height?(a>0&&(r+=a),c>0&&(r-=c)):r=0,(e!==this._passiveTransform.x||r!==this._passiveTransform.y)&&this.setFreeDragPosition({y:r,x:e})}_getDragStartDelay(e){let r=this.dragStartDelay;return typeof r=="number"?r:Jc(e)?r.touch:r?r.mouse:0}_updateOnScroll(e){let r=this._parentPositions.handleScroll(e);if(r){let i=At(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&el(this._boundaryRect,r.top,r.left),this._pickupPositionOnPage.x+=r.left,this._pickupPositionOnPage.y+=r.top,this._dropContainer||(this._activeTransform.x-=r.left,this._activeTransform.y-=r.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Ic(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,r){let i=this._previewContainer||"global";if(i==="parent")return e;if(i==="global"){let n=this._document;return r||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return ot(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(e){return this._handles.find(r=>e.target&&(e.target===r||r.contains(e.target)))}};function Ok(t,e,r){return Math.max(e,Math.min(r,t))}function Jc(t){return t.type[0]==="t"}function Nk(t){t.preventDefault()}function r3(t,e,r){let i=Fk(e,t.length-1),n=Fk(r,t.length-1);if(i===n)return;let o=t[i],s=n0)return null;let a=this.orientation==="horizontal",c=o.findIndex(E=>E.drag===e),l=o[s],d=o[c].clientRect,u=l.clientRect,f=c>s?1:-1,p=this._getItemOffsetPx(d,u,f),v=this._getSiblingOffsetPx(c,o,f),S=o.slice();return r3(o,c,s),o.forEach((E,R)=>{if(S[R]===E)return;let he=E.drag===e,Ne=he?p:v,Ue=he?e.getPlaceholderElement():E.drag.getRootElement();E.offset+=Ne,a?(Ue.style.transform=Rf(`translate3d(${Math.round(E.offset)}px, 0, 0)`,E.initialTransform),el(E.clientRect,0,Ne)):(Ue.style.transform=Rf(`translate3d(0, ${Math.round(E.offset)}px, 0)`,E.initialTransform),el(E.clientRect,Ne,0))}),this._previousSwap.overlaps=T_(u,r,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:c,currentIndex:s}}enter(e,r,i,n){let o=n==null||n<0?this._getItemIndexFromPointerPosition(e,r,i):n,s=this._activeDraggables,a=s.indexOf(e),c=e.getPlaceholderElement(),l=s[o];if(l===e&&(l=s[o+1]),!l&&(o==null||o===-1||o-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){let d=l.getRootElement();d.parentElement.insertBefore(c,d),s.splice(o,0,e)}else ot(this._element).appendChild(c),s.push(e);c.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables.forEach(e=>{let r=e.getRootElement();if(r){let i=this._itemPositions.find(n=>n.drag===e)?.initialTransform;r.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,r){this._itemPositions.forEach(({clientRect:i})=>{el(i,e,r)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(r=>{let i=r.getVisibleElement();return{drag:r,offset:0,initialTransform:i.style.transform||"",clientRect:F_(i)}}).sort((r,i)=>e?r.clientRect.left-i.clientRect.left:r.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,r,i){let n=this.orientation==="horizontal",o=n?r.left-e.left:r.top-e.top;return i===-1&&(o+=n?r.width-e.width:r.height-e.height),o}_getSiblingOffsetPx(e,r,i){let n=this.orientation==="horizontal",o=r[e].clientRect,s=r[e+i*-1],a=o[n?"width":"height"]*i;if(s){let c=n?"left":"top",l=n?"right":"bottom";i===-1?a-=s.clientRect[c]-o[l]:a+=o[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(e,r){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,n=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let s=i[i.length-1].clientRect;return n?e>=s.right:r>=s.bottom}else{let s=i[0].clientRect;return n?e<=s.left:r<=s.top}}_getItemIndexFromPointerPosition(e,r,i,n){let o=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>{if(a===e)return!1;if(n){let l=o?n.x:n.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return o?r>=Math.floor(c.left)&&r=Math.floor(c.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.sorted=new C,this.receivingStarted=new C,this.receivingStopped=new C,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=ne.EMPTY,this._verticalScrollDirection=Ui.NONE,this._horizontalScrollDirection=ai.NONE,this._stopScrollTimers=new C,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),Jf(0,wl).pipe(te(this._stopScrollTimers)).subscribe(()=>{let s=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===Ui.UP?s.scrollBy(0,-a):this._verticalScrollDirection===Ui.DOWN&&s.scrollBy(0,a),this._horizontalScrollDirection===ai.LEFT?s.scrollBy(-a,0):this._horizontalScrollDirection===ai.RIGHT&&s.scrollBy(a,0)})},this.element=ot(e),this._document=i,this.withScrollableParents([this.element]),r.registerDropContainer(this),this._parentPositions=new Tf(i),this._sortStrategy=new O_(this.element,r),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,r,i,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(e)),this._sortStrategy.enter(e,r,i,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,r,i,n,o,s,a,c={}){this._reset(),this.dropped.next({item:e,currentIndex:r,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:o,distance:s,dropPoint:a,event:c})}withItems(e){let r=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(r.filter(n=>n.isDragging()).every(n=>e.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._sortStrategy.direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._sortStrategy.orientation=e,this}withScrollableParents(e){let r=ot(this.element);return this._scrollableElements=e.indexOf(r)===-1?[r,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,r,i,n){if(this.sortingDisabled||!this._domRect||!Ik(this._domRect,Pk,r,i))return;let o=this._sortStrategy.sort(e,r,i,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,r){if(this.autoScrollDisabled)return;let i,n=Ui.NONE,o=ai.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||Ik(s.clientRect,Pk,e,r)&&([n,o]=o3(a,s.clientRect,this._sortStrategy.direction,e,r),(n||o)&&(i=a))}),!n&&!o){let{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};n=Bk(c,r),o=zk(c,e),i=window}i&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=i,(n||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=ot(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){let e=ot(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(e).clientRect}_reset(){this._isDragging=!1;let e=ot(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(r=>r._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,r){return this._domRect!=null&&T_(this._domRect,e,r)}_getSiblingContainerFromPosition(e,r,i){return this._siblings.find(n=>n._canReceive(e,r,i))}_canReceive(e,r,i){if(!this._domRect||!T_(this._domRect,r,i)||!this.enterPredicate(e,this))return!1;let n=this._getShadowRoot().elementFromPoint(r,i);if(!n)return!1;let o=ot(this.element);return n===o||o.contains(n)}_startReceiving(e,r){let i=this._activeSiblings;!i.has(e)&&r.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:r}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let r=this._parentPositions.handleScroll(e);r&&this._sortStrategy.updateOnScroll(r.top,r.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=Ic(ot(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(r=>r.isDragging());this._siblings.forEach(r=>r._startReceiving(this,e))}};function Bk(t,e){let{top:r,bottom:i,height:n}=t,o=n*Vk;return e>=r-o&&e<=r+o?Ui.UP:e>=i-o&&e<=i+o?Ui.DOWN:Ui.NONE}function zk(t,e){let{left:r,right:i,width:n}=t,o=n*Vk;return e>=r-o&&e<=r+o?ai.LEFT:e>=i-o&&e<=i+o?ai.RIGHT:ai.NONE}function o3(t,e,r,i,n){let o=Bk(e,n),s=zk(e,i),a=Ui.NONE,c=ai.NONE;if(o){let l=t.scrollTop;o===Ui.UP?l>0&&(a=Ui.UP):t.scrollHeight-l>t.clientHeight&&(a=Ui.DOWN)}if(s){let l=t.scrollLeft;r==="rtl"?s===ai.RIGHT?l<0&&(c=ai.RIGHT):t.scrollWidth+l>t.clientWidth&&(c=ai.LEFT):s===ai.LEFT?l>0&&(c=ai.LEFT):t.scrollWidth-l>t.clientWidth&&(c=ai.RIGHT)}return[a,c]}var Mf=jt({passive:!1,capture:!0}),kf=new Set,s3=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}"],encapsulation:2,changeDetection:0});let t=e;return t})(),a3=(()=>{let e=class e{constructor(i,n){this._ngZone=i,this._appRef=b(mi),this._environmentInjector=b(_t),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=Ni([]),this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new C,this.pointerUp=new C,this.scroll=new C,this._preventDefaultWhileDragging=o=>{this._activeDragInstances().length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=n}registerDropContainer(i){this._dropInstances.has(i)||this._dropInstances.add(i)}registerDragItem(i){this._dragInstances.add(i),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Mf)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Mf)}startDragging(i,n){if(!(this._activeDragInstances().indexOf(i)>-1)&&(this._loadResets(),this._activeDragInstances.update(o=>[...o,i]),this._activeDragInstances().length===1)){let o=n.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:s=>this.pointerUp.next(s),options:!0}).set("scroll",{handler:s=>this.scroll.next(s),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Mf}),o||this._globalListeners.set("mousemove",{handler:s=>this.pointerMove.next(s),options:Mf}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((s,a)=>{this._document.addEventListener(a,s.handler,s.options)})})}}stopDragging(i){this._activeDragInstances.update(n=>{let o=n.indexOf(i);return o>-1?(n.splice(o,1),[...n]):n}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances().indexOf(i)>-1}scrolled(i){let n=[this.scroll];return i&&i!==this._document&&n.push(new oe(o=>this._ngZone.runOutsideAngular(()=>{let a=c=>{this._activeDragInstances().length&&o.next(c)};return i.addEventListener("scroll",a,!0),()=>{i.removeEventListener("scroll",a,!0)}}))),Ze(...n)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,n)=>{this._document.removeEventListener(n,i.handler,i.options)}),this._globalListeners.clear()}_loadResets(){if(!kf.has(this._appRef)){kf.add(this._appRef);let i=bD(s3,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{kf.delete(this._appRef),kf.size===0&&i.destroy()})}}};e.\u0275fac=function(n){return new(n||e)(m(F),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),c3={dragStartThreshold:5,pointerDirectionChangeThreshold:5},l3=(()=>{let e=class e{constructor(i,n,o,s){this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=s}createDrag(i,n=c3){return new A_(i,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(i){return new N_(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(F),m(Bn),m(a3))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Uk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[l3],imports:[Vn]});let t=e;return t})();var Hle=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[{provide:qb,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:Kc,useValue:{displayDefaultIndicatorType:!0,showError:!1}}],imports:[pI,Hh,kM,Wh,M_,TM,ES,XM,pk,BM,NM,US,CM,uf,M_,ik,ek,Uk,df,ZM]});let t=e;return t})();export{w as a,Q as b,Kk as c,d3 as d,u3 as e,Bo as f,oe as g,C as h,Pe as i,Wr as j,Qf as k,ct as l,py as m,Yr as n,V as o,un as p,wT as q,DT as r,P as s,qi as t,Kr as u,Ze as v,ge as w,ut as x,pn as y,Xo as z,We as A,ga as B,Yi as C,Si as D,va as E,ba as F,fr as G,Qe as H,Oe as I,te as J,je as K,_a as L,G as M,lt as N,D as O,A as P,g as Q,m as R,b as S,z as T,O as U,I as V,Ad as W,gs as X,Me as Y,be as Z,_e as _,di as $,jd as aa,qe as ba,Se as ca,Ft as da,N as ea,B as fa,rt as ga,FY as ha,PY as ia,x as ja,h as ka,Ki as la,fs as ma,En as na,F as oa,Ve as pa,U as qa,q as ra,M as sa,Jt as ta,H as ua,BY as va,_ as wa,y as xa,k as ya,Dr as za,Cr as Aa,tt as Ba,Ye as Ca,Z as Da,$ as Ea,ye as Fa,W as Ga,pF as Ha,pe as Ia,De as Ja,L as Ka,j as La,gt as Ma,we as Na,at as Oa,Lt as Pa,vF as Qa,zY as Ra,bF as Sa,se as Ta,Y as Ua,UY as Va,Eg as Wa,Ha as Xa,iu as Ya,nu as Za,HY as _a,Er as $a,mi as ab,Tg as bb,ue as cb,K as db,Ds as eb,FD as fb,kr as gb,Iu as hb,PD as ib,lZ as jb,dZ as kb,po as lb,Su as mb,uZ as nb,hZ as ob,Gt as pb,tr as qb,Xg as rb,BP as sb,EZ as tb,IZ as ub,XD as vb,BZ as wb,zZ as xb,cv as yb,Tt as zb,Cs as Ab,ir as Bb,xC as Cb,Es as Db,vv as Eb,tc as Fb,Pu as Gb,RL as Hb,ic as Ib,ju as Jb,ii as Kb,Rn as Lb,OC as Mb,eQ as Nb,Wt as Ob,Bu as Pb,An as Qb,Hu as Rb,On as Sb,uQ as Tb,en as Ub,bo as Vb,tb as Wb,_i as Xb,ah as Yb,kQ as Zb,ni as _b,cb as $b,Ls as ac,or as bc,UE as cc,ZK as dc,uI as ec,kh as fc,pI as gc,gI as hc,jn as ic,jh as jc,Us as kc,oi as lc,Di as mc,PI as nc,mX as oc,$s as pc,Ro as qc,dz as rc,vX as sc,Ub as tc,Ws as uc,UI as vc,HI as wc,gz as xc,Ob as yc,bX as zc,_X as Ac,yX as Bc,Uh as Cc,OX as Dc,QI as Ec,Hh as Fc,Iz as Gc,Bi as Hc,Wh as Ic,zi as Jc,qX as Kc,st as Lc,Ge as Mc,YX as Nc,de as Oc,jc as Pc,Le as Qc,No as Rc,ZX as Sc,nS as Tc,rS as Uc,QX as Vc,sS as Wc,CJ as Xc,EJ as Yc,yS as Zc,zc as _c,CS as $c,ES as ad,qt as bd,Yh as cd,Yb as dd,qs as ed,Lr as fd,fee as gd,vee as hd,SS as id,jr as jd,Ks as kd,Bn as ld,It as md,Zc as nd,Js as od,zS as pd,$S as qd,eM as rd,tM as sd,si as td,Je as ud,hie as vd,Yte as wd,vie as xd,kie as yd,Tie as zd,rM as Ad,Rie as Bd,Ot as Cd,Nie as Dd,sM as Ed,aM as Fd,cM as Gd,lM as Hd,dM as Id,Qc as Jd,Fie as Kd,Pie as Ld,uM as Md,hM as Nd,pM as Od,df as Pd,_M as Qd,uf as Rd,yM as Sd,Pne as Td,XH as Ud,c_ as Vd,cre as Wd,d$ as Xd,MM as Yd,jre as Zd,TM as _d,OM as $d,NM as ae,S$ as be,Doe as ce,V$ as de,B$ as ee,sse as fe,ase as ge,Pse as he,XM as ie,JM as je,d5 as ke,hae as le,z5 as me,fk as ne,ice as oe,nce as pe,$ce as qe,Gce as re,Wce as se,qce as te,Yce as ue,Zce as ve,Qce as we,Kce as xe,Xce as ye,Jce as ze,xk as Ae,Hle as Be}; diff --git a/frontend/server/modelsmith-build/browser/chunk-KTZW7IEN.js b/frontend/server/modelsmith-build/browser/chunk-JCSCXYKY.js similarity index 95% rename from frontend/server/modelsmith-build/browser/chunk-KTZW7IEN.js rename to frontend/server/modelsmith-build/browser/chunk-JCSCXYKY.js index b0002fa0..73a29c72 100644 --- a/frontend/server/modelsmith-build/browser/chunk-KTZW7IEN.js +++ b/frontend/server/modelsmith-build/browser/chunk-JCSCXYKY.js @@ -1 +1 @@ -import{Ca as v,Da as g,Ea as d,Na as h,Oa as x,T as l,Ua as y,Z as p,Zd as k,_ as m,_d as F,fa as u,fb as O,ja as a,qa as f,sa as C,ua as _,wa as c,xa as s}from"./chunk-XZNUB5IR.js";function M(n,t){if(n&1){let r=v();c(0,"mat-card",2),g("click",function(){let i=p(r).$implicit,o=d();return m(o.selectCard(i))}),c(1,"span",3),h(2),s()()}if(n&2){let r=t.$implicit,e=d();_("selected",e.activeCard===r),a(2),x(r)}}var P=(()=>{let t=class t{constructor(){this.options=[],this.selectedOption=new u,this.activeCard=null}selectCard(e){this.activeCard=this.activeCard===e?null:e,this.selectedOption.emit(this.activeCard)}trackByOption(e,i){return i}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=l({type:t,selectors:[["ms-card-selector"]],inputs:{options:"options"},outputs:{selectedOption:"selectedOption"},standalone:!0,features:[y],decls:2,vars:2,consts:[[1,"cards-section"],["class","ms-card action-card",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ms-card","action-card",3,"click"],[1,"heading-sub-section-title"]],template:function(i,o){i&1&&(c(0,"div",0),f(1,M,3,3,"mat-card",1),s()),i&2&&(a(),C("ngForOf",o.options)("ngForTrackBy",o.trackByOption))},dependencies:[O,F,k],styles:[".cards-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]});let n=t;return n})();export{P as a}; +import{Ca as v,Da as g,Ea as d,Na as h,Oa as x,T as l,Ua as y,Z as p,Zd as k,_ as m,_d as F,fa as u,fb as O,ja as a,qa as f,sa as C,ua as _,wa as c,xa as s}from"./chunk-JA5VSLUI.js";function M(n,t){if(n&1){let r=v();c(0,"mat-card",2),g("click",function(){let i=p(r).$implicit,o=d();return m(o.selectCard(i))}),c(1,"span",3),h(2),s()()}if(n&2){let r=t.$implicit,e=d();_("selected",e.activeCard===r),a(2),x(r)}}var P=(()=>{let t=class t{constructor(){this.options=[],this.selectedOption=new u,this.activeCard=null}selectCard(e){this.activeCard=this.activeCard===e?null:e,this.selectedOption.emit(this.activeCard)}trackByOption(e,i){return i}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=l({type:t,selectors:[["ms-card-selector"]],inputs:{options:"options"},outputs:{selectedOption:"selectedOption"},standalone:!0,features:[y],decls:2,vars:2,consts:[[1,"cards-section"],["class","ms-card action-card",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ms-card","action-card",3,"click"],[1,"heading-sub-section-title"]],template:function(i,o){i&1&&(c(0,"div",0),f(1,M,3,3,"mat-card",1),s()),i&2&&(a(),C("ngForOf",o.options)("ngForTrackBy",o.trackByOption))},dependencies:[O,F,k],styles:[".cards-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]});let n=t;return n})();export{P as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-HANPZG6C.js b/frontend/server/modelsmith-build/browser/chunk-K5OOOOE7.js similarity index 98% rename from frontend/server/modelsmith-build/browser/chunk-HANPZG6C.js rename to frontend/server/modelsmith-build/browser/chunk-K5OOOOE7.js index 69d35150..c7bc063e 100644 --- a/frontend/server/modelsmith-build/browser/chunk-HANPZG6C.js +++ b/frontend/server/modelsmith-build/browser/chunk-K5OOOOE7.js @@ -1,4 +1,4 @@ -import{a as _}from"./chunk-KTZW7IEN.js";import{a as G,e as I,f as ee}from"./chunk-4KDFY6RG.js";import"./chunk-U7NPFWER.js";import"./chunk-VMZY47C3.js";import{b as J}from"./chunk-ZPFJPO4G.js";import{Cc as v,Da as c,Ed as z,Gd as N,Hc as C,Md as K,Na as r,O as F,P as j,R as H,T as h,U as q,Va as y,Vb as S,Wb as Y,Xb as g,Zb as x,_b as O,be as E,ce as P,ja as d,ka as p,m as Q,pb as W,rd as V,sa as u,sd as Z,ud as $,wa as i,wd as X,xa as o,ya as f}from"./chunk-XZNUB5IR.js";var s={PRETRAINED_MODEL:"pretrained-model",PRUNING_TIME:"pruning-time",PTQ_TIME:"ptq-time",SIMILAR_ACCURACY:"similar-accuracy",HIGHER_ACCURACY:"higher-accuracy",RECOMMENDED_BASIC_PTQ:"recommended-basic-ptq",RECOMMENDED_BRECQ:"recommended-brecq",RECOMMENDED_GRASP:"recommended-grasp",RECOMMENDED_ITERATIVE:"recommended-iterative",RECOMMENDED_ITERATIVE_ONE_SHOT:"recommended-iterative-one-shot",RECOMMENDED_MINMAX:"recommended-minmax"};var he=()=>["Yes","No"],te=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_BASIC_PTQ],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_BRECQ],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-higher-accuracy"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you need relatively higher accuracy?"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Short PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,he)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var _e=()=>["Yes","No"],ie=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pretrained-model"]],decls:6,vars:3,consts:[[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you have a pre-trained model?"),o(),i(2,"ms-card-selector",1),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",y(2,_e)),d(2),u("disabled",!t.selectedOption))},dependencies:[v,_]});let l=e;return l})();var fe=()=>["Yes","No"],oe=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.wizardSteps=s,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pruning-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long pruning time?"),o(),i(2,"p",1),r(3,` The model pruning phase may require a similar or even longer duration compared to the model training period. +import{a as _}from"./chunk-JCSCXYKY.js";import{a as G,e as I,f as ee}from"./chunk-4LH6YZUP.js";import"./chunk-VBDJDMQD.js";import"./chunk-3ZHMSG5W.js";import{b as J}from"./chunk-KK5JZLDV.js";import{Cc as v,Da as c,Ed as z,Gd as N,Hc as C,Md as K,Na as r,O as F,P as j,R as H,T as h,U as q,Va as y,Vb as S,Wb as Y,Xb as g,Zb as x,_b as O,be as E,ce as P,ja as d,ka as p,m as Q,pb as W,rd as V,sa as u,sd as Z,ud as $,wa as i,wd as X,xa as o,ya as f}from"./chunk-JA5VSLUI.js";var s={PRETRAINED_MODEL:"pretrained-model",PRUNING_TIME:"pruning-time",PTQ_TIME:"ptq-time",SIMILAR_ACCURACY:"similar-accuracy",HIGHER_ACCURACY:"higher-accuracy",RECOMMENDED_BASIC_PTQ:"recommended-basic-ptq",RECOMMENDED_BRECQ:"recommended-brecq",RECOMMENDED_GRASP:"recommended-grasp",RECOMMENDED_ITERATIVE:"recommended-iterative",RECOMMENDED_ITERATIVE_ONE_SHOT:"recommended-iterative-one-shot",RECOMMENDED_MINMAX:"recommended-minmax"};var he=()=>["Yes","No"],te=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_BASIC_PTQ],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_BRECQ],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-higher-accuracy"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you need relatively higher accuracy?"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Short PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,he)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var _e=()=>["Yes","No"],ie=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pretrained-model"]],decls:6,vars:3,consts:[[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you have a pre-trained model?"),o(),i(2,"ms-card-selector",1),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",y(2,_e)),d(2),u("disabled",!t.selectedOption))},dependencies:[v,_]});let l=e;return l})();var fe=()=>["Yes","No"],oe=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.wizardSteps=s,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pruning-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long pruning time?"),o(),i(2,"p",1),r(3,` The model pruning phase may require a similar or even longer duration compared to the model training period. `),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Pruning "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,fe)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var Se=()=>["Yes","No"],ne=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_MINMAX],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-ptq-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long PTQ time?"),o(),i(2,"p",1),r(3,` Our system supports processing times ranging from minutes (short) to several hours (long), ensuring consistent efficiency and reliability for tasks of any duration. `),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Post-training quantization "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,Se)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var D,R=(D=class{constructor(e){this.scriptFacadeService=e,this.isScriptActive=!1,this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Z(this)).subscribe(e=>{this.isScriptActive=X(e)})}ctaCallScript(e){if(!e)return;let L=ee(e);L&&this.scriptFacadeService.dispatch($.callScript({configs:{alg:L}}))}},D.\u0275fac=function(L){return new(L||D)(H(K))},D.\u0275prov=F({token:D,factory:D.\u0275fac}),D);R=Q([V()],R);var re=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-basic-ptq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," High Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var ce=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BRECQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-brecq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Low Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var ae=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IPG,N.IPR,N.IPM])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-grasp"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Short pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Init pruning "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var me=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP,N.OMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative-one-shot"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Long pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Higher accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var se=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long pruning time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var le=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.MINMAXPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-minmax"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var ge=()=>["Yes","No"],pe=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE_ONE_SHOT],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_GRASP],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-similar-accuracy"]],decls:16,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you want to have a similar or higher accuracy?\xA0"),o(),i(2,"p",1),r(3,` Expectations for compressed model performance: Anticipate achieving comparable or enhanced accuracy relative to the original model. `),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPretrainedPage()}),r(6," Pruning "),o(),i(7,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(8," Short pruning time "),o()(),i(9,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",5)(11,"button",6),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",7),r(13," Previous "),o(),i(14,"button",8),c("click",function(){return t.handleSelection()}),r(15,"Next"),o()()),n&2&&(d(9),u("options",y(2,ge)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var de=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=h({type:e,selectors:[["ms-wizard"]],decls:5,vars:0,consts:[[1,"wizard-layout"],[1,"left"],[1,"right"]],template:function(n,t){n&1&&(i(0,"div",0)(1,"div",1),f(2,"router-outlet"),o(),i(3,"div",2),f(4,"ms-terminal"),o()())},dependencies:[Y,G],styles:[".wizard-layout[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:20px;height:100%}.wizard-layout[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:45%;gap:20px}.wizard-layout[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:55%}"]});let l=e;return l})();var ve=[{path:"",component:de,children:[{path:"",redirectTo:s.PRETRAINED_MODEL,pathMatch:"full"},{path:s.PRETRAINED_MODEL,component:ie},{path:s.PRUNING_TIME,component:oe},{path:s.PTQ_TIME,component:ne},{path:s.SIMILAR_ACCURACY,component:pe},{path:s.HIGHER_ACCURACY,component:te},{path:s.RECOMMENDED_BASIC_PTQ,component:re},{path:s.RECOMMENDED_BRECQ,component:ce},{path:s.RECOMMENDED_GRASP,component:ae},{path:s.RECOMMENDED_ITERATIVE,component:se},{path:s.RECOMMENDED_MINMAX,component:le},{path:s.RECOMMENDED_ITERATIVE_ONE_SHOT,component:me}]}],ue=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({imports:[x.forChild(ve),x]});let l=e;return l})();var ci=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({providers:[R],imports:[W,J,ue,G,_]});let l=e;return l})();export{ci as WizardModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ZPFJPO4G.js b/frontend/server/modelsmith-build/browser/chunk-KK5JZLDV.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-ZPFJPO4G.js rename to frontend/server/modelsmith-build/browser/chunk-KK5JZLDV.js index 385e3cae..7feb453e 100644 --- a/frontend/server/modelsmith-build/browser/chunk-ZPFJPO4G.js +++ b/frontend/server/modelsmith-build/browser/chunk-KK5JZLDV.js @@ -1,2 +1,2 @@ -import{Ac as m,Bc as c,Be as l,Da as x,Ea as D,J as u,Na as O,P as n,Pa as b,Sd as T,T as h,U as i,V as g,Xc as j,Zb as R,_c as w,h as d,ja as y,ka as a,mc as F,pa as C,pb as N,qa as M,sa as v,wa as E,xa as I}from"./chunk-XZNUB5IR.js";function S(e,t){if(e&1&&(E(0,"mat-error",1),O(1),I()),e&2){let V=D();y(),b(" ",V.text,` +import{Ac as m,Bc as c,Be as l,Da as x,Ea as D,J as u,Na as O,P as n,Pa as b,Sd as T,T as h,U as i,V as g,Xc as j,Zb as R,_c as w,h as d,ja as y,ka as a,mc as F,pa as C,pb as N,qa as M,sa as v,wa as E,xa as I}from"./chunk-JA5VSLUI.js";function S(e,t){if(e&1&&(E(0,"mat-error",1),O(1),I()),e&2){let V=D();y(),b(" ",V.text,` `)}}var _=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=h({type:t,selectors:[["ms-error-message"]],inputs:{text:"text"},decls:1,vars:1,consts:[["class","error-message",4,"ngIf"],[1,"error-message"]],template:function(r,s){r&1&&M(0,S,2,1,"mat-error",0),r&2&&v("ngIf",s.text)},dependencies:[j],styles:[".error-message[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-in-translate .3s}@keyframes _ngcontent-%COMP%_fade-in-translate{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}"],changeDetection:0});let e=t;return e})();var A="onlyDigits";function B(e){if(!e)return;let t=Object.keys(e)[0];switch(t){case"required":return"Field required";case"email":return"Email required";case A:return"Only numeric characters allowed";default:return t}}var J=(()=>{let t=class t{constructor(o,r){this.control=o,this.vcr=r,this._destroyed$=new d}onBlur(){this.control.invalid&&!this.control.disabled&&this.insertErrorComponent()}ngOnInit(){this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),this.control?.statusChanges?.pipe(u(this._destroyed$)).subscribe(()=>{this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),(this.control.valid||this.control.disabled)&&this.destroyErrorComponent()})}insertErrorComponent(){if(!this.componentRef){this.componentRef=this.vcr.createComponent(_);let o=this.componentRef.location.nativeElement;o.parentElement?.parentElement?.parentElement?.parentElement?.getElementsByClassName("mat-mdc-form-field-subscript-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-spacer")[0].appendChild(o)}this.componentRef.instance&&(this.componentRef.instance.text=B(this.control.errors))}destroyErrorComponent(){this.componentRef&&(this.vcr.remove(),this.componentRef.destroy(),this.componentRef=void 0)}ngOnDestroy(){this.destroyErrorComponent(),this._destroyed$.next(),this._destroyed$.complete()}};t.\u0275fac=function(r){return new(r||t)(a(F),a(C))},t.\u0275dir=g({type:t,selectors:[["","msErrorDisplay",""]],hostBindings:function(r,s){r&1&&x("blur",function(){return s.onBlur()})}});let e=t;return e})();var f=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=i({type:t}),t.\u0275inj=n({imports:[w]});let e=t;return e})();var It=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=i({type:t}),t.\u0275inj=n({imports:[N,R,l,m,c,f,T,l,m,c,f]});let e=t;return e})();export{J as a,It as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OZEKUFJS.js b/frontend/server/modelsmith-build/browser/chunk-M5CIZNTW.js similarity index 96% rename from frontend/server/modelsmith-build/browser/chunk-OZEKUFJS.js rename to frontend/server/modelsmith-build/browser/chunk-M5CIZNTW.js index 5e3cd2f9..37e9df94 100644 --- a/frontend/server/modelsmith-build/browser/chunk-OZEKUFJS.js +++ b/frontend/server/modelsmith-build/browser/chunk-M5CIZNTW.js @@ -1 +1 @@ -import{b as fe,c as ge}from"./chunk-7XUVQUZC.js";import{a as F,c as ue}from"./chunk-U7NPFWER.js";import{Aa as g,Ad as oe,Bc as H,Bd as ne,Ea as M,H as I,Hc as J,Ic as Q,Md as re,Na as c,Nd as ae,Pa as x,Pd as se,S as O,Sd as le,T as P,Ta as E,Ua as L,Wa as R,Y as N,Ya as S,Yb as w,Za as y,Zc as Y,Zd as me,_b as A,_c as Z,_d as pe,dc as B,ec as k,fb as G,gb as V,he as ce,ie as de,ja as n,ka as p,kc as j,lc as d,m as T,mb as D,nc as $,oc as z,pb as K,pc as X,qa as l,qc as v,rd as ee,s as _,sa as r,sd as h,tc as q,td as te,vc as U,w as b,wa as m,wd as ie,xa as a,xc as W,ya as u,za as f}from"./chunk-XZNUB5IR.js";var Ce=o=>[o];function _e(o,e){o&1&&(f(0),u(1,"ms-spining-indicator",12),g())}function Se(o,e){if(o&1&&(f(0),l(1,_e,2,0,"ng-container",9),g()),o&2){let t=e.ngIf,i=M(2);n(),r("ngIf",t===i.PageKey.MODEL_TRAINING)}}function ye(o,e){if(o&1&&(m(0,"div",10)(1,"a",11),c(2,"Train models"),a(),l(3,Se,2,1,"ng-container",9),S(4,"async"),a()),o&2){let t=M();n(),r("routerLink",R(4,Ce,"/"+t.RoutesList.MODEL_TRAINING.ROOT)),n(2),r("ngIf",y(4,2,t.pageRunningScriptSpiningIndicatorService.currentRunningPage$))}}function ve(o,e){o&1&&u(0,"mat-icon",17)}function Fe(o,e){if(o&1&&(m(0,"mat-option",15),c(1),l(2,ve,1,0,"mat-icon",16),a()),o&2){let t=e.$implicit;r("value",t.name)("disabled",!t.isTrained),n(),x(" ",t.name," "),n(),r("ngIf",!t.isTrained)}}function Te(o,e){o&1&&(m(0,"mat-option",18),c(1,"No results found"),a())}function be(o,e){if(o&1&&(f(0),l(1,Fe,3,4,"mat-option",13)(2,Te,2,0,"mat-option",14),g()),o&2){let t=e.ngIf,i=M();n(),r("ngForOf",t)("ngForTrackBy",i.trackByModel),n(),r("ngIf",t.length===0)}}var s,Me=(s=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,C){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=C,this.controlKey="",this.isTrainModelsPageRouteVisible=!0,this.PageKey=te,this.RoutesList=A,this.searchModel=new v,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){e&&(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(F.getModelsList({algorithmType:e})),this.modelsFacadeService.dispatch(F.getCurrentOrPreviousSelectedModel({algorithmType:e})))}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(h(this)).subscribe(e=>{if(oe(e))return;let t=this.models.find(i=>i.name===e);t&&t.isTrained&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!ne(i)),_(i=>[...i].sort((C,he)=>Number(he.isTrained)-Number(C.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new X({[this.MODEL_CONTROL_NAME]:new v("",j.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(h(this)).subscribe(e=>{ie(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(h(this),I(""),_(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},s.\u0275fac=function(t){return new(t||s)(p(d),p(ue),p(re),p(ae))},s.\u0275cmp=P({type:s,selectors:[["ms-panel-model"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType",isTrainModelsPageRouteVisible:"isTrainModelsPageRouteVisible"},standalone:!0,features:[E([],[{provide:d,useFactory:()=>O(d,{skipSelf:!0})}]),N,L],decls:13,vars:6,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],["class","train-models",4,"ngIf"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[1,"train-models"],[3,"routerLink"],[1,"ml-2"],[3,"value","disabled",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value","disabled"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),c(3,"Model"),a(),l(4,ye,5,6,"div",3),a(),m(5,"div",4)(6,"mat-form-field",5)(7,"mat-select",6)(8,"mat-optgroup",7)(9,"mat-option"),u(10,"ngx-mat-select-search",8),a(),l(11,be,3,3,"ng-container",9),S(12,"async"),a()()()()()),t&2&&(n(4),r("ngIf",i.isTrainModelsPageRouteVisible),n(),r("formGroupName",i.controlKey),n(5),r("formControl",i.searchModel),n(),r("ngIf",y(12,4,i.filteredModels)))},dependencies:[H,$,z,q,W,U,pe,me,Z,Y,de,ce,k,B,Q,J,K,G,V,D,ge,fe,w,se,le],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),s);Me=T([ee()],Me);export{Me as a}; +import{b as fe,c as ge}from"./chunk-FQJTC3NS.js";import{a as F,c as ue}from"./chunk-VBDJDMQD.js";import{Aa as g,Ad as oe,Bc as H,Bd as ne,Ea as M,H as I,Hc as J,Ic as Q,Md as re,Na as c,Nd as ae,Pa as x,Pd as se,S as O,Sd as le,T as P,Ta as E,Ua as L,Wa as R,Y as N,Ya as S,Yb as w,Za as y,Zc as Y,Zd as me,_b as A,_c as Z,_d as pe,dc as B,ec as k,fb as G,gb as V,he as ce,ie as de,ja as n,ka as p,kc as j,lc as d,m as T,mb as D,nc as $,oc as z,pb as K,pc as X,qa as l,qc as v,rd as ee,s as _,sa as r,sd as h,tc as q,td as te,vc as U,w as b,wa as m,wd as ie,xa as a,xc as W,ya as u,za as f}from"./chunk-JA5VSLUI.js";var Ce=o=>[o];function _e(o,e){o&1&&(f(0),u(1,"ms-spining-indicator",12),g())}function Se(o,e){if(o&1&&(f(0),l(1,_e,2,0,"ng-container",9),g()),o&2){let t=e.ngIf,i=M(2);n(),r("ngIf",t===i.PageKey.MODEL_TRAINING)}}function ye(o,e){if(o&1&&(m(0,"div",10)(1,"a",11),c(2,"Train models"),a(),l(3,Se,2,1,"ng-container",9),S(4,"async"),a()),o&2){let t=M();n(),r("routerLink",R(4,Ce,"/"+t.RoutesList.MODEL_TRAINING.ROOT)),n(2),r("ngIf",y(4,2,t.pageRunningScriptSpiningIndicatorService.currentRunningPage$))}}function ve(o,e){o&1&&u(0,"mat-icon",17)}function Fe(o,e){if(o&1&&(m(0,"mat-option",15),c(1),l(2,ve,1,0,"mat-icon",16),a()),o&2){let t=e.$implicit;r("value",t.name)("disabled",!t.isTrained),n(),x(" ",t.name," "),n(),r("ngIf",!t.isTrained)}}function Te(o,e){o&1&&(m(0,"mat-option",18),c(1,"No results found"),a())}function be(o,e){if(o&1&&(f(0),l(1,Fe,3,4,"mat-option",13)(2,Te,2,0,"mat-option",14),g()),o&2){let t=e.ngIf,i=M();n(),r("ngForOf",t)("ngForTrackBy",i.trackByModel),n(),r("ngIf",t.length===0)}}var s,Me=(s=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,C){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=C,this.controlKey="",this.isTrainModelsPageRouteVisible=!0,this.PageKey=te,this.RoutesList=A,this.searchModel=new v,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){e&&(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(F.getModelsList({algorithmType:e})),this.modelsFacadeService.dispatch(F.getCurrentOrPreviousSelectedModel({algorithmType:e})))}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(h(this)).subscribe(e=>{if(oe(e))return;let t=this.models.find(i=>i.name===e);t&&t.isTrained&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!ne(i)),_(i=>[...i].sort((C,he)=>Number(he.isTrained)-Number(C.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new X({[this.MODEL_CONTROL_NAME]:new v("",j.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(h(this)).subscribe(e=>{ie(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(h(this),I(""),_(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},s.\u0275fac=function(t){return new(t||s)(p(d),p(ue),p(re),p(ae))},s.\u0275cmp=P({type:s,selectors:[["ms-panel-model"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType",isTrainModelsPageRouteVisible:"isTrainModelsPageRouteVisible"},standalone:!0,features:[E([],[{provide:d,useFactory:()=>O(d,{skipSelf:!0})}]),N,L],decls:13,vars:6,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],["class","train-models",4,"ngIf"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[1,"train-models"],[3,"routerLink"],[1,"ml-2"],[3,"value","disabled",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value","disabled"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),c(3,"Model"),a(),l(4,ye,5,6,"div",3),a(),m(5,"div",4)(6,"mat-form-field",5)(7,"mat-select",6)(8,"mat-optgroup",7)(9,"mat-option"),u(10,"ngx-mat-select-search",8),a(),l(11,be,3,3,"ng-container",9),S(12,"async"),a()()()()()),t&2&&(n(4),r("ngIf",i.isTrainModelsPageRouteVisible),n(),r("formGroupName",i.controlKey),n(5),r("formControl",i.searchModel),n(),r("ngIf",y(12,4,i.filteredModels)))},dependencies:[H,$,z,q,W,U,pe,me,Z,Y,de,ce,k,B,Q,J,K,G,V,D,ge,fe,w,se,le],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),s);Me=T([ee()],Me);export{Me as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-HEQJYFWP.js b/frontend/server/modelsmith-build/browser/chunk-Q4QNYVBE.js similarity index 96% rename from frontend/server/modelsmith-build/browser/chunk-HEQJYFWP.js rename to frontend/server/modelsmith-build/browser/chunk-Q4QNYVBE.js index ecc1f5c8..41e38340 100644 --- a/frontend/server/modelsmith-build/browser/chunk-HEQJYFWP.js +++ b/frontend/server/modelsmith-build/browser/chunk-Q4QNYVBE.js @@ -1 +1 @@ -import{a as lt,b as st,c as pt}from"./chunk-WROZFHBO.js";import{a as mt}from"./chunk-7TE64OY5.js";import{a as le}from"./chunk-PEPQONB2.js";import{b as nt,c as at}from"./chunk-7XUVQUZC.js";import"./chunk-MM4TEEVS.js";import{a as me}from"./chunk-4KDFY6RG.js";import{a as w,c as V}from"./chunk-U7NPFWER.js";import{a as ot,i as rt}from"./chunk-VMZY47C3.js";import{b as it}from"./chunk-ZPFJPO4G.js";import{$a as Oe,A as _e,Aa as u,Ad as G,Bc as Be,Bd as Ze,C as ge,Ca as Fe,Cc as $e,Cd as c,Da as ve,Dd as qe,Ea as C,G as Q,H as Te,Hc as oe,Ic as Qe,Ja as Ne,Jd as y,Ka as Ie,Kd as Je,La as Ae,Ma as Pe,Md as D,Na as l,Nd as We,Oa as j,P as z,Pa as x,Pd as Xe,S as H,T as I,Ta as Z,U as Y,Ua as be,Y as Se,Ya as A,Z as he,Za as E,Zb as ye,Zc as re,Zd as K,_ as ue,_a as Ee,_b as De,_c as ze,_d as et,a as Ce,b as Me,dc as Ke,ec as W,fb as R,fc as Ve,gb as q,hb as Ge,he as ae,ib as we,ie as tt,ja as r,jb as xe,ka as p,kc as X,lc as v,m as F,mb as Re,nb as ke,nc as ee,ob as Le,oc as k,pb as J,pc as L,qa as d,qc as B,rd as P,s as N,sa as n,sd as f,tc as Ue,td as He,uc as je,ud as ne,vc as te,w as b,wa as m,wd as O,xa as a,xc as ie,ya as g,z as fe,za as h,zd as Ye}from"./chunk-XZNUB5IR.js";function Mt(o,e){o&1&&g(0,"mat-icon",13)}function _t(o,e){if(o&1&&(m(0,"mat-option",11),l(1),d(2,Mt,1,0,"mat-icon",12),a()),o&2){let t=e.$implicit;n("value",t.name),r(),x(" ",t.name," "),r(),n("ngIf",!t.isTrained)}}function Tt(o,e){o&1&&(m(0,"mat-option",14),l(1,"No results found"),a())}function St(o,e){if(o&1&&(h(0),d(1,_t,3,3,"mat-option",9)(2,Tt,2,0,"mat-option",10),u()),o&2){let t=e.ngIf,i=C();r(),n("ngForOf",t)("ngForTrackBy",i.trackByModel),r(),n("ngIf",t.length===0)}}var M,U=(M=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,s){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=s,this.controlKey="",this.PageKey=He,this.RoutesList=De,this.searchModel=new B,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){if(e)switch(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(w.getModelsList({algorithmType:e})),e){case c.PRUNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.PRUNING_TRAIN}));break}case c.QUANTIZATION:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.QUANTIZATION_TRAIN}));break}case c.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(f(this)).subscribe(e=>{if(G(e))return;this.models.find(i=>i.name===e)&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!Ze(i)),N(i=>[...i].sort((s,de)=>Number(de.isTrained)-Number(s.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.MODEL_CONTROL_NAME]:new B("",X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(f(this),Te(""),N(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},M.\u0275fac=function(t){return new(t||M)(p(v),p(V),p(D),p(We))},M.\u0275cmp=I({type:M,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}]),Se,be],decls:12,vars:5,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),l(3,"Model"),a()(),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5)(7,"mat-optgroup",6)(8,"mat-option"),g(9,"ngx-mat-select-search",7),a(),d(10,St,3,3,"ng-container",8),A(11,"async"),a()()()()()),t&2&&(r(4),n("formGroupName",i.controlKey),r(5),n("formControl",i.searchModel),r(),n("ngIf",E(11,3,i.filteredModels)))},dependencies:[Be,ee,k,Ue,ie,te,et,K,ze,re,tt,ae,W,Ke,Qe,oe,J,R,q,Re,at,nt,Xe],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),M);U=F([P()],U);function It(o,e){if(o&1&&(m(0,"mat-option",7),l(1),a()),o&2){let t=e.$implicit;n("value",t.key),r(),x(" ",t.value," ")}}var _,se=(_=class{get parentFormGroup(){return this.controlContainer.control}get algorithmTypeFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmTypeFormControl(){return this.algorithmTypeFormGroup.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(e,t){this.controlContainer=e,this.scriptFacadeService=t,this.controlKey="",this.algorithmTypesOptions=qe.filter(i=>i.key!==c.TRAIN&&i.key!==c.AWQ),this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),_e(1),b(e=>!G(e?.algKey)),N(e=>e.algKey)).subscribe(e=>{switch(e){case y.PRUNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.PRUNING);break}case y.MACHINE_UNLEARNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.MACHINE_UNLEARNING);break}case y.QUANTIZATION_TRAIN:{this.algorithmTypeFormControl.patchValue(c.QUANTIZATION);break}default:this.algorithmTypeFormControl.patchValue(c.PRUNING)}}),this.scriptFacadeService.dispatch(ne.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.ALGORITHM_TYPE_CONTROL_NAME]:new B(c.PRUNING,X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.algorithmTypeFormGroup.disable():this.algorithmTypeFormGroup.enable()})}trackByAlgorithmType(e,t){return t.key}},_.\u0275fac=function(t){return new(t||_)(p(v),p(D))},_.\u0275cmp=I({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}])],decls:8,vars:4,consts:[[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],[3,"formGroupName"],[1,"form-field-container"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Algorithm Type"),a(),h(3,2),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),d(7,It,2,2,"mat-option",6),a()()(),u(),a()),t&2&&(r(3),n("formGroupName",i.controlKey),r(3),n("formControlName",i.ALGORITHM_TYPE_CONTROL_NAME),r(),n("ngForOf",i.algorithmTypesOptions)("ngForTrackBy",i.trackByAlgorithmType))},dependencies:[R,K,re,ae,W,ee,k,ie,te]}),_);se=F([P()],se);function Pt(o,e){if(o&1&&(h(0),l(1),A(2,"adaptiveFileSize"),u()),o&2){let t=C().$implicit;r(),j(E(2,1,t.value))}}function bt(o,e){if(o&1&&(h(0),l(1),A(2,"date"),u()),o&2){let t=C().$implicit;r(),j(Ee(2,1,t.value,"medium"))}}function Et(o,e){if(o&1&&(h(0),l(1),A(2,"readableDuration"),u()),o&2){let t=C().$implicit;r(),j(E(2,1,t.value))}}function Ot(o,e){if(o&1&&(h(0),l(1),u()),o&2){let t=C().$implicit;r(),j(t.value)}}function Gt(o,e){o&1&&(m(0,"div",15),g(1,"mat-divider"),a())}function wt(o,e){if(o&1&&(m(0,"div")(1,"div",8)(2,"div",9),l(3),A(4,"parametersLabel"),a(),m(5,"div",10),h(6,11),d(7,Pt,3,3,"ng-container",12)(8,bt,3,4,"ng-container",12)(9,Et,3,3,"ng-container",12)(10,Ot,2,1,"ng-container",13),u(),a()(),d(11,Gt,2,0,"div",14),a()),o&2){let t=e.$implicit,i=e.last;r(3),x("",E(4,6,t.key),":"),r(3),n("ngSwitch",t.key),r(),n("ngSwitchCase","file_size_bytes"),r(),n("ngSwitchCase","creation_date"),r(),n("ngSwitchCase","training_duration_seconds"),r(2),n("ngIf",!i)}}function xt(o,e){if(o&1&&(m(0,"div",6),d(1,wt,12,8,"div",7),a()),o&2){let t=C().$implicit;r(),n("ngForOf",t)}}function Rt(o,e){if(o&1&&(m(0,"div",4),d(1,xt,2,1,"div",5),a()),o&2){let t=e.$implicit;C();let i=Pe(6);r(),n("ngIf",t.length>0)("ngIfElse",i)}}function kt(o,e){o&1&&g(0,"ms-empty-state",16)}var T,pe=(T=class{constructor(e){this.modelsFacadeService=e,this.metadata={}}ngOnInit(){this.modelsFacadeService.modelMetadata$.pipe(Q(1),f(this)).subscribe(e=>{this.metadata=e})}},T.\u0275fac=function(t){return new(t||T)(p(V))},T.\u0275cmp=I({type:T,selectors:[["ms-panel-model-metadata"]],decls:7,vars:3,consts:[["noMetadata",""],[1,"ms-card","metadata-card"],[1,"heading-sub-section-title"],["class","metadata-wrapper",4,"ngIf"],[1,"metadata-wrapper"],["class","key-value-container single",4,"ngIf","ngIfElse"],[1,"key-value-container","single"],[4,"ngFor","ngForOf"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],["title","No metadata available"]],template:function(t,i){t&1&&(m(0,"mat-card",1)(1,"p",2),l(2,"Model Training Information"),a(),d(3,Rt,2,2,"div",3),A(4,"keyvalue"),d(5,kt,1,0,"ng-template",null,0,Oe),a()),t&2&&(r(3),n("ngIf",E(4,1,i.metadata)))},dependencies:[R,q,Ge,we,xe,Ve,K,mt,ke,Le,lt,pt,st],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),T);pe=F([P()],pe);var Dt=["panelParameters"],S,ce=(S=class{constructor(e,t,i,s){this.navigationService=e,this.scriptFacadeService=t,this.snackbarService=i,this.modelsFacadeService=s,this.form=new L({}),this.isScriptActive=!1,this.selectedAlgorithmType=c.PRUNING,this.selectedAlgorithmKey=y.PRUNING_TRAIN}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges(),this.listenToFormChangesToLoadModelMetadata()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(fe(50),N(()=>{let e=this.form.getRawValue();return e.algorithmTypeGroup&&e.algorithmTypeGroup.algorithmType}),ge(),b(e=>!!e),f(this)).subscribe(e=>{this.selectedAlgorithmType=e,this.selectedAlgorithmKey=Je[e]})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{this.isScriptActive=O(e),O(e)?this.form.disable():this.form.enable()})}listenToFormChangesToLoadModelMetadata(){this.form.valueChanges.pipe(fe(50),N(e=>{let t=e.algorithmTypeGroup?.algorithmType,i=e.model?.model;return{algorithmType:t,model:i}}),ge((e,t)=>JSON.stringify(e)===JSON.stringify(t)),b(({algorithmType:e,model:t})=>!G(e)&&!G(t)),f(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(w.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Ye(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,i={alg:this.selectedAlgorithmKey,params:Me(Ce({},this.panelParametersComponent.parametersFormatted),{arch:t})};this.scriptFacadeService.dispatch(ne.callScript({configs:i}))}},S.\u0275fac=function(t){return new(t||S)(p(rt),p(D),p(ot),p(V))},S.\u0275cmp=I({type:S,selectors:[["ms-model-training"]],viewQuery:function(t,i){if(t&1&&Ne(Dt,5),t&2){let s;Ie(s=Ae())&&(i.panelParametersComponent=s.first)}},decls:17,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper"],[1,"left",3,"formGroup"],["controlKey","algorithmTypeGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-stroked-button","","color","primary",1,"ml-2",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[1,"right"]],template:function(t,i){if(t&1){let s=Fe();m(0,"p",1),l(1,"Model Training"),a(),m(2,"div",2)(3,"div",3),g(4,"ms-panel-algorithm-type-for-training",4)(5,"ms-panel-model-training",5)(6,"ms-panel-model-metadata")(7,"ms-panel-parameters",6,0),m(9,"div")(10,"button",7),ve("click",function(){return he(s),ue(i.submit())}),l(11," Run "),a(),m(12,"button",8),ve("click",function(){return he(s),ue(i.navigationService.goToPreviousPage())}),g(13,"mat-icon",9),l(14," Go back "),a()()(),m(15,"div",10),g(16,"ms-terminal"),a()()}t&2&&(r(3),n("formGroup",i.form),r(2),n("algorithmType",i.selectedAlgorithmType),r(2),n("algorithm",i.selectedAlgorithmKey),r(3),n("disabled",i.isScriptActive||i.form.invalid))},dependencies:[$e,oe,k,je,me,U,le,se,pe],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),S);ce=F([P()],ce);var Kt=[{path:"",component:ce}],ht=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[ye.forChild(Kt),ye]});let o=e;return o})();var go=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[J,it,ht,me,U,le]});let o=e;return o})();export{go as ModelTrainingModule}; +import{a as lt,b as st,c as pt}from"./chunk-H4YXRKOV.js";import{a as mt}from"./chunk-DMXFRYPI.js";import{a as le}from"./chunk-C4BAO3YM.js";import{b as nt,c as at}from"./chunk-FQJTC3NS.js";import"./chunk-WL3ZZTTC.js";import{a as me}from"./chunk-4LH6YZUP.js";import{a as w,c as V}from"./chunk-VBDJDMQD.js";import{a as ot,i as rt}from"./chunk-3ZHMSG5W.js";import{b as it}from"./chunk-KK5JZLDV.js";import{$a as Oe,A as _e,Aa as u,Ad as G,Bc as Be,Bd as Ze,C as ge,Ca as Fe,Cc as $e,Cd as c,Da as ve,Dd as qe,Ea as C,G as Q,H as Te,Hc as oe,Ic as Qe,Ja as Ne,Jd as y,Ka as Ie,Kd as Je,La as Ae,Ma as Pe,Md as D,Na as l,Nd as We,Oa as j,P as z,Pa as x,Pd as Xe,S as H,T as I,Ta as Z,U as Y,Ua as be,Y as Se,Ya as A,Z as he,Za as E,Zb as ye,Zc as re,Zd as K,_ as ue,_a as Ee,_b as De,_c as ze,_d as et,a as Ce,b as Me,dc as Ke,ec as W,fb as R,fc as Ve,gb as q,hb as Ge,he as ae,ib as we,ie as tt,ja as r,jb as xe,ka as p,kc as X,lc as v,m as F,mb as Re,nb as ke,nc as ee,ob as Le,oc as k,pb as J,pc as L,qa as d,qc as B,rd as P,s as N,sa as n,sd as f,tc as Ue,td as He,uc as je,ud as ne,vc as te,w as b,wa as m,wd as O,xa as a,xc as ie,ya as g,z as fe,za as h,zd as Ye}from"./chunk-JA5VSLUI.js";function Mt(o,e){o&1&&g(0,"mat-icon",13)}function _t(o,e){if(o&1&&(m(0,"mat-option",11),l(1),d(2,Mt,1,0,"mat-icon",12),a()),o&2){let t=e.$implicit;n("value",t.name),r(),x(" ",t.name," "),r(),n("ngIf",!t.isTrained)}}function Tt(o,e){o&1&&(m(0,"mat-option",14),l(1,"No results found"),a())}function St(o,e){if(o&1&&(h(0),d(1,_t,3,3,"mat-option",9)(2,Tt,2,0,"mat-option",10),u()),o&2){let t=e.ngIf,i=C();r(),n("ngForOf",t)("ngForTrackBy",i.trackByModel),r(),n("ngIf",t.length===0)}}var M,U=(M=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,s){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=s,this.controlKey="",this.PageKey=He,this.RoutesList=De,this.searchModel=new B,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){if(e)switch(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(w.getModelsList({algorithmType:e})),e){case c.PRUNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.PRUNING_TRAIN}));break}case c.QUANTIZATION:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.QUANTIZATION_TRAIN}));break}case c.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(f(this)).subscribe(e=>{if(G(e))return;this.models.find(i=>i.name===e)&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!Ze(i)),N(i=>[...i].sort((s,de)=>Number(de.isTrained)-Number(s.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.MODEL_CONTROL_NAME]:new B("",X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(f(this),Te(""),N(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},M.\u0275fac=function(t){return new(t||M)(p(v),p(V),p(D),p(We))},M.\u0275cmp=I({type:M,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}]),Se,be],decls:12,vars:5,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),l(3,"Model"),a()(),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5)(7,"mat-optgroup",6)(8,"mat-option"),g(9,"ngx-mat-select-search",7),a(),d(10,St,3,3,"ng-container",8),A(11,"async"),a()()()()()),t&2&&(r(4),n("formGroupName",i.controlKey),r(5),n("formControl",i.searchModel),r(),n("ngIf",E(11,3,i.filteredModels)))},dependencies:[Be,ee,k,Ue,ie,te,et,K,ze,re,tt,ae,W,Ke,Qe,oe,J,R,q,Re,at,nt,Xe],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),M);U=F([P()],U);function It(o,e){if(o&1&&(m(0,"mat-option",7),l(1),a()),o&2){let t=e.$implicit;n("value",t.key),r(),x(" ",t.value," ")}}var _,se=(_=class{get parentFormGroup(){return this.controlContainer.control}get algorithmTypeFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmTypeFormControl(){return this.algorithmTypeFormGroup.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(e,t){this.controlContainer=e,this.scriptFacadeService=t,this.controlKey="",this.algorithmTypesOptions=qe.filter(i=>i.key!==c.TRAIN&&i.key!==c.AWQ),this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),_e(1),b(e=>!G(e?.algKey)),N(e=>e.algKey)).subscribe(e=>{switch(e){case y.PRUNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.PRUNING);break}case y.MACHINE_UNLEARNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.MACHINE_UNLEARNING);break}case y.QUANTIZATION_TRAIN:{this.algorithmTypeFormControl.patchValue(c.QUANTIZATION);break}default:this.algorithmTypeFormControl.patchValue(c.PRUNING)}}),this.scriptFacadeService.dispatch(ne.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.ALGORITHM_TYPE_CONTROL_NAME]:new B(c.PRUNING,X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.algorithmTypeFormGroup.disable():this.algorithmTypeFormGroup.enable()})}trackByAlgorithmType(e,t){return t.key}},_.\u0275fac=function(t){return new(t||_)(p(v),p(D))},_.\u0275cmp=I({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}])],decls:8,vars:4,consts:[[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],[3,"formGroupName"],[1,"form-field-container"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Algorithm Type"),a(),h(3,2),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),d(7,It,2,2,"mat-option",6),a()()(),u(),a()),t&2&&(r(3),n("formGroupName",i.controlKey),r(3),n("formControlName",i.ALGORITHM_TYPE_CONTROL_NAME),r(),n("ngForOf",i.algorithmTypesOptions)("ngForTrackBy",i.trackByAlgorithmType))},dependencies:[R,K,re,ae,W,ee,k,ie,te]}),_);se=F([P()],se);function Pt(o,e){if(o&1&&(h(0),l(1),A(2,"adaptiveFileSize"),u()),o&2){let t=C().$implicit;r(),j(E(2,1,t.value))}}function bt(o,e){if(o&1&&(h(0),l(1),A(2,"date"),u()),o&2){let t=C().$implicit;r(),j(Ee(2,1,t.value,"medium"))}}function Et(o,e){if(o&1&&(h(0),l(1),A(2,"readableDuration"),u()),o&2){let t=C().$implicit;r(),j(E(2,1,t.value))}}function Ot(o,e){if(o&1&&(h(0),l(1),u()),o&2){let t=C().$implicit;r(),j(t.value)}}function Gt(o,e){o&1&&(m(0,"div",15),g(1,"mat-divider"),a())}function wt(o,e){if(o&1&&(m(0,"div")(1,"div",8)(2,"div",9),l(3),A(4,"parametersLabel"),a(),m(5,"div",10),h(6,11),d(7,Pt,3,3,"ng-container",12)(8,bt,3,4,"ng-container",12)(9,Et,3,3,"ng-container",12)(10,Ot,2,1,"ng-container",13),u(),a()(),d(11,Gt,2,0,"div",14),a()),o&2){let t=e.$implicit,i=e.last;r(3),x("",E(4,6,t.key),":"),r(3),n("ngSwitch",t.key),r(),n("ngSwitchCase","file_size_bytes"),r(),n("ngSwitchCase","creation_date"),r(),n("ngSwitchCase","training_duration_seconds"),r(2),n("ngIf",!i)}}function xt(o,e){if(o&1&&(m(0,"div",6),d(1,wt,12,8,"div",7),a()),o&2){let t=C().$implicit;r(),n("ngForOf",t)}}function Rt(o,e){if(o&1&&(m(0,"div",4),d(1,xt,2,1,"div",5),a()),o&2){let t=e.$implicit;C();let i=Pe(6);r(),n("ngIf",t.length>0)("ngIfElse",i)}}function kt(o,e){o&1&&g(0,"ms-empty-state",16)}var T,pe=(T=class{constructor(e){this.modelsFacadeService=e,this.metadata={}}ngOnInit(){this.modelsFacadeService.modelMetadata$.pipe(Q(1),f(this)).subscribe(e=>{this.metadata=e})}},T.\u0275fac=function(t){return new(t||T)(p(V))},T.\u0275cmp=I({type:T,selectors:[["ms-panel-model-metadata"]],decls:7,vars:3,consts:[["noMetadata",""],[1,"ms-card","metadata-card"],[1,"heading-sub-section-title"],["class","metadata-wrapper",4,"ngIf"],[1,"metadata-wrapper"],["class","key-value-container single",4,"ngIf","ngIfElse"],[1,"key-value-container","single"],[4,"ngFor","ngForOf"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],["title","No metadata available"]],template:function(t,i){t&1&&(m(0,"mat-card",1)(1,"p",2),l(2,"Model Training Information"),a(),d(3,Rt,2,2,"div",3),A(4,"keyvalue"),d(5,kt,1,0,"ng-template",null,0,Oe),a()),t&2&&(r(3),n("ngIf",E(4,1,i.metadata)))},dependencies:[R,q,Ge,we,xe,Ve,K,mt,ke,Le,lt,pt,st],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),T);pe=F([P()],pe);var Dt=["panelParameters"],S,ce=(S=class{constructor(e,t,i,s){this.navigationService=e,this.scriptFacadeService=t,this.snackbarService=i,this.modelsFacadeService=s,this.form=new L({}),this.isScriptActive=!1,this.selectedAlgorithmType=c.PRUNING,this.selectedAlgorithmKey=y.PRUNING_TRAIN}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges(),this.listenToFormChangesToLoadModelMetadata()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(fe(50),N(()=>{let e=this.form.getRawValue();return e.algorithmTypeGroup&&e.algorithmTypeGroup.algorithmType}),ge(),b(e=>!!e),f(this)).subscribe(e=>{this.selectedAlgorithmType=e,this.selectedAlgorithmKey=Je[e]})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{this.isScriptActive=O(e),O(e)?this.form.disable():this.form.enable()})}listenToFormChangesToLoadModelMetadata(){this.form.valueChanges.pipe(fe(50),N(e=>{let t=e.algorithmTypeGroup?.algorithmType,i=e.model?.model;return{algorithmType:t,model:i}}),ge((e,t)=>JSON.stringify(e)===JSON.stringify(t)),b(({algorithmType:e,model:t})=>!G(e)&&!G(t)),f(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(w.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Ye(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,i={alg:this.selectedAlgorithmKey,params:Me(Ce({},this.panelParametersComponent.parametersFormatted),{arch:t})};this.scriptFacadeService.dispatch(ne.callScript({configs:i}))}},S.\u0275fac=function(t){return new(t||S)(p(rt),p(D),p(ot),p(V))},S.\u0275cmp=I({type:S,selectors:[["ms-model-training"]],viewQuery:function(t,i){if(t&1&&Ne(Dt,5),t&2){let s;Ie(s=Ae())&&(i.panelParametersComponent=s.first)}},decls:17,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper"],[1,"left",3,"formGroup"],["controlKey","algorithmTypeGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-stroked-button","","color","primary",1,"ml-2",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[1,"right"]],template:function(t,i){if(t&1){let s=Fe();m(0,"p",1),l(1,"Model Training"),a(),m(2,"div",2)(3,"div",3),g(4,"ms-panel-algorithm-type-for-training",4)(5,"ms-panel-model-training",5)(6,"ms-panel-model-metadata")(7,"ms-panel-parameters",6,0),m(9,"div")(10,"button",7),ve("click",function(){return he(s),ue(i.submit())}),l(11," Run "),a(),m(12,"button",8),ve("click",function(){return he(s),ue(i.navigationService.goToPreviousPage())}),g(13,"mat-icon",9),l(14," Go back "),a()()(),m(15,"div",10),g(16,"ms-terminal"),a()()}t&2&&(r(3),n("formGroup",i.form),r(2),n("algorithmType",i.selectedAlgorithmType),r(2),n("algorithm",i.selectedAlgorithmKey),r(3),n("disabled",i.isScriptActive||i.form.invalid))},dependencies:[$e,oe,k,je,me,U,le,se,pe],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),S);ce=F([P()],ce);var Kt=[{path:"",component:ce}],ht=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[ye.forChild(Kt),ye]});let o=e;return o})();var go=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[J,it,ht,me,U,le]});let o=e;return o})();export{go as ModelTrainingModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-U7NPFWER.js b/frontend/server/modelsmith-build/browser/chunk-VBDJDMQD.js similarity index 95% rename from frontend/server/modelsmith-build/browser/chunk-U7NPFWER.js rename to frontend/server/modelsmith-build/browser/chunk-VBDJDMQD.js index dcb33ad8..7d88b472 100644 --- a/frontend/server/modelsmith-build/browser/chunk-U7NPFWER.js +++ b/frontend/server/modelsmith-build/browser/chunk-VBDJDMQD.js @@ -1 +1 @@ -import{Ab as l,Bb as a,Cd as o,Kb as u,Lb as c,O as n,R as d,bc as i,zb as e}from"./chunk-XZNUB5IR.js";var h=l({source:"[Models]",events:{"Get Models List":e(),"Get Models List Success":e(),"Get Models List Failure":e(),"Get Current Or Previous Selected Model":e(),"Get Current Or Previous Selected Model Success":e(),"Get Current Or Previous Selected Model Failure":e(),"Get Model Metadata":e(),"Get Model Metadata Success":e(),"Get Model Metadata Failure":e()}});var A=l({source:"[Core -> Terminal]",events:{"Get Latest Messages":a(),"Get Latest Messages Success":e(),"Get Latest Messages Failure":e(),"Post Clear History":a(),"Post Clear History Success":a(),"Post Clear History Failure":e()}});var M=s=>c(i,t=>{switch(s){case o.QUANTIZATION:return t.models.quantizationModels;case o.PRUNING:return t.models.pruningModels;case o.MACHINE_UNLEARNING:return t.models.machineUnlearningModels;case o.AWQ:return t.models.awqModels;default:return}}),m=c(i,s=>s.models.currentModel),p=c(i,s=>s.models.modelMetadata);var v=(()=>{let t=class t{constructor(r){this.store=r,this.currentModel$=this.store.select(m),this.modelMetadata$=this.store.select(p)}getModelsByType(r){return this.store.select(M(r))}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(f){return new(f||t)(d(u))},t.\u0275prov=n({token:t,factory:t.\u0275fac});let s=t;return s})();export{h as a,A as b,v as c}; +import{Ab as l,Bb as a,Cd as o,Kb as u,Lb as c,O as n,R as d,bc as i,zb as e}from"./chunk-JA5VSLUI.js";var h=l({source:"[Models]",events:{"Get Models List":e(),"Get Models List Success":e(),"Get Models List Failure":e(),"Get Current Or Previous Selected Model":e(),"Get Current Or Previous Selected Model Success":e(),"Get Current Or Previous Selected Model Failure":e(),"Get Model Metadata":e(),"Get Model Metadata Success":e(),"Get Model Metadata Failure":e()}});var A=l({source:"[Core -> Terminal]",events:{"Get Latest Messages":a(),"Get Latest Messages Success":e(),"Get Latest Messages Failure":e(),"Post Clear History":a(),"Post Clear History Success":a(),"Post Clear History Failure":e()}});var M=s=>c(i,t=>{switch(s){case o.QUANTIZATION:return t.models.quantizationModels;case o.PRUNING:return t.models.pruningModels;case o.MACHINE_UNLEARNING:return t.models.machineUnlearningModels;case o.AWQ:return t.models.awqModels;default:return}}),m=c(i,s=>s.models.currentModel),p=c(i,s=>s.models.modelMetadata);var v=(()=>{let t=class t{constructor(r){this.store=r,this.currentModel$=this.store.select(m),this.modelMetadata$=this.store.select(p)}getModelsByType(r){return this.store.select(M(r))}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(f){return new(f||t)(d(u))},t.\u0275prov=n({token:t,factory:t.\u0275fac});let s=t;return s})();export{h as a,A as b,v as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MZAOZ4KT.js b/frontend/server/modelsmith-build/browser/chunk-VUGEUSN6.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-MZAOZ4KT.js rename to frontend/server/modelsmith-build/browser/chunk-VUGEUSN6.js index 19dec233..2dcc179a 100644 --- a/frontend/server/modelsmith-build/browser/chunk-MZAOZ4KT.js +++ b/frontend/server/modelsmith-build/browser/chunk-VUGEUSN6.js @@ -1,4 +1,4 @@ -import{a as C,b as et,c as w,d as E,e as le}from"./chunk-DZI3JCLT.js";import{a as z}from"./chunk-KTZW7IEN.js";import{a as tt}from"./chunk-VMZY47C3.js";import{a as Ze,b as Je}from"./chunk-ZPFJPO4G.js";import{$a as Q,$c as me,$d as Te,A,Aa as K,Ae as Qe,Ca as N,Cc as h,Da as p,Dc as we,Ea as L,Ec as re,Hc as T,Ma as b,Na as i,Oa as pe,P as $,Pa as I,Qa as ue,Ra as fe,Sa as ve,T as c,U as Y,Va as j,Wa as D,Wb as Ee,Wc as oe,Xc as De,Xd as Pe,Yb as be,Yd as ke,Z as M,Zb as X,Zc as ae,Zd as U,_,_b as x,be as Ae,ce as qe,ec as xe,fb as ge,fc as g,he as Ne,ja as s,jc as Z,je as Le,ka as u,kc as R,kd as Me,m as ce,me as Re,nc as H,nd as _e,ne as Fe,oc as J,od as Oe,oe as We,pb as Se,pc as he,pd as ye,pe as Be,qa as y,qe as Ve,rc as Ce,rd as Ie,re as je,sa as d,sc as ee,se as He,te as Ue,uc as te,ue as ze,ve as Ge,wa as t,we as Ke,xa as e,xc as ie,xe as Xe,ya as n,ye as $e,za as G,zc as ne,ze as Ye}from"./chunk-XZNUB5IR.js";var it=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-buttons-demo"]],decls:220,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-6"],["mat-button",""],["mat-button","","color","primary"],["mat-button","","color","accent"],["mat-button","","color","warn"],["mat-button","","disabled",""],["mat-button","","href","https://www.google.com/","target","_blank"],["mat-raised-button",""],["mat-raised-button","","color","primary"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","warn"],["mat-raised-button","","disabled","","color","accent"],["mat-raised-button","","href","https://www.google.com/","target","_blank"],[1,"parent","items-per-row-7"],["mat-stroked-button",""],["mat-stroked-button","",1,"ms-white-stroked-button"],["mat-stroked-button","","color","primary"],["mat-stroked-button","","color","accent"],["mat-stroked-button","","color","warn"],["mat-stroked-button","","disabled","","color","accent"],["mat-stroked-button","","href","https://www.google.com/","target","_blank"],["mat-flat-button",""],["mat-flat-button","","color","primary"],["mat-flat-button","","color","accent"],["mat-flat-button","","color","warn"],["mat-flat-button","","disabled","","color","primary"],["mat-flat-button","","href","https://www.google.com/","target","_blank"],[2,"grid-column","span 2"],["mat-icon-button",""],["mat-icon-button","","color","primary"],["mat-icon-button","","color","accent"],["mat-icon-button","","color","warn"],["mat-icon-button","","disabled","","color","accent"],[1,"parent","items-per-row-5"],["checked",""],["color","primary","checked",""],["color","accent","checked",""],["color","warn","checked",""],["disabled",""]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Buttons"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Default"),e(),t(7,"div",2)(8,"div"),i(9,"Basic"),e(),t(10,"div"),i(11,"Primary"),e(),t(12,"div"),i(13,"Accent"),e(),t(14,"div"),i(15,"Warn"),e(),t(16,"div"),i(17,"Disabled"),e(),t(18,"div"),i(19,"Link"),e(),t(20,"div")(21,"button",3),i(22,"Lorem Ipsum"),e()(),t(23,"div")(24,"button",4),i(25,"Lorem Ipsum"),e()(),t(26,"div")(27,"button",5),i(28,"Lorem Ipsum"),e()(),t(29,"div")(30,"button",6),i(31,"Lorem Ipsum"),e()(),t(32,"div")(33,"button",7),i(34,"Lorem Ipsum"),e()(),t(35,"div")(36,"a",8),i(37,"Link"),e()()(),t(38,"div",0),n(39,"mat-divider"),e()(),t(40,"div",1)(41,"h2"),i(42,"Raised buttons"),e(),t(43,"div",2)(44,"div"),i(45,"Basic"),e(),t(46,"div"),i(47,"Primary"),e(),t(48,"div"),i(49,"Accent"),e(),t(50,"div"),i(51,"Warn"),e(),t(52,"div"),i(53,"Disabled"),e(),t(54,"div"),i(55,"Link"),e(),t(56,"div")(57,"button",9),i(58,"Lorem Ipsum"),e()(),t(59,"div")(60,"button",10),i(61,"Lorem Ipsum"),e()(),t(62,"div")(63,"button",11),i(64,"Lorem Ipsum"),e()(),t(65,"div")(66,"button",12),i(67,"Lorem Ipsum"),e()(),t(68,"div")(69,"button",13),i(70,"Lorem Ipsum"),e()(),t(71,"div")(72,"a",14),i(73,"Link"),e()()(),t(74,"div",0),n(75,"mat-divider"),e()(),t(76,"div",1)(77,"h2"),i(78,"Stroked buttons"),e(),t(79,"div",15)(80,"div"),i(81,"Basic"),e(),t(82,"div"),i(83,"Basic White"),e(),t(84,"div"),i(85,"Primary"),e(),t(86,"div"),i(87,"Accent"),e(),t(88,"div"),i(89,"Warn"),e(),t(90,"div"),i(91,"Disabled"),e(),t(92,"div"),i(93,"Link"),e(),t(94,"div")(95,"button",16),i(96,"Lorem Ipsum"),e()(),t(97,"div")(98,"button",17),i(99,"Lorem Ipsum"),e()(),t(100,"div")(101,"button",18),i(102,"Lorem Ipsum"),e()(),t(103,"div")(104,"button",19),i(105,"Lorem Ipsum"),e()(),t(106,"div")(107,"button",20),i(108,"Lorem Ipsum"),e()(),t(109,"div")(110,"button",21),i(111,"Lorem Ipsum"),e()(),t(112,"div")(113,"a",22),i(114,"Link"),e()()(),t(115,"div",0),n(116,"mat-divider"),e()(),t(117,"div",1)(118,"h2"),i(119,"Flat buttons"),e(),t(120,"div",2)(121,"div"),i(122,"Basic"),e(),t(123,"div"),i(124,"Primary"),e(),t(125,"div"),i(126,"Accent"),e(),t(127,"div"),i(128,"Warn"),e(),t(129,"div"),i(130,"Disabled"),e(),t(131,"div"),i(132,"Link"),e(),t(133,"div")(134,"button",23),i(135,"Lorem Ipsum"),e()(),t(136,"div")(137,"button",24),i(138,"Lorem Ipsum"),e()(),t(139,"div")(140,"button",25),i(141,"Lorem Ipsum"),e()(),t(142,"div")(143,"button",26),i(144,"Lorem Ipsum"),e()(),t(145,"div")(146,"button",27),i(147,"Lorem Ipsum"),e()(),t(148,"div")(149,"a",28),i(150,"Link"),e()()(),t(151,"div",0),n(152,"mat-divider"),e()(),t(153,"div",1)(154,"h2"),i(155,"Icon buttons"),e(),t(156,"div",2)(157,"div"),i(158,"Basic"),e(),t(159,"div"),i(160,"Primary"),e(),t(161,"div"),i(162,"Accent"),e(),t(163,"div"),i(164,"Warn"),e(),t(165,"div",29),i(166,"Disabled"),e(),t(167,"div")(168,"button",30)(169,"mat-icon"),i(170,"more_vert"),e()()(),t(171,"div")(172,"button",31)(173,"mat-icon"),i(174,"home"),e()()(),t(175,"div")(176,"button",32)(177,"mat-icon"),i(178,"menu"),e()()(),t(179,"div")(180,"button",33)(181,"mat-icon"),i(182,"favorite"),e()()(),t(183,"div",29)(184,"button",34)(185,"mat-icon"),i(186,"open_in_new"),e()()()(),t(187,"div",0),n(188,"mat-divider"),e()(),t(189,"div",1)(190,"h2"),i(191,"Slide toggle buttons"),e(),t(192,"div",35)(193,"div"),i(194,"Basic"),e(),t(195,"div"),i(196,"Primary"),e(),t(197,"div"),i(198,"Accent"),e(),t(199,"div"),i(200,"Warn"),e(),t(201,"div"),i(202,"Disabled"),e(),t(203,"div")(204,"mat-slide-toggle",36),i(205,"Slide me!"),e()(),t(206,"div")(207,"mat-slide-toggle",37),i(208,"Slide me!"),e()(),t(209,"div")(210,"mat-slide-toggle",38),i(211,"Slide me!"),e()(),t(212,"div")(213,"mat-slide-toggle",39),i(214,"Slide me!"),e()(),t(215,"div")(216,"mat-slide-toggle",40),i(217,"Slide me!"),e()()()(),t(218,"div",0),n(219,"mat-divider"),e())},dependencies:[g,we,h,re,T,Le],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var Nt=()=>["Option 1","Option 2","Option 3"],rt=(()=>{let r=class r{constructor(){}ngOnInit(){}handleSelected(m){console.log("Selected option:",m)}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ag-cards-demo"]],decls:39,vars:2,consts:[[1,"line"],[1,"section"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key","paragraph-semibold-p4-xSmall-emphasis"],[1,"key-value-value","paragraph-regular-p4-xSmall"],[3,"selectedOption","options"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Cards"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"h2"),i(5,"Basic cards"),e(),t(6,"div",1)(7,"mat-card",2)(8,"p",3),i(9,"Card with text"),e(),t(10,"p"),i(11," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et cursus eros, a ultricies massa. Morbi commodo sapien magna, vitae facilisis erat blandit ac. Praesent vulputate nulla quis nibh consectetur euismod. Nulla justo dolor, molestie vitae ultricies id, malesuada id tortor. Ut rutrum nisi enim. Pellentesque sed blandit tortor, id fringilla turpis. In vel arcu nec urna dictum mollis ac sed sem. Integer orci eros, hendrerit a dui nec, auctor mattis mi. Curabitur quis tempor ex. "),e()()(),n(12,"br"),t(13,"div",1)(14,"mat-card",2)(15,"p",3),i(16,"Key Value Card"),e(),t(17,"div",4)(18,"div",5)(19,"div",6),i(20,"Key 1"),e(),t(21,"div",7),i(22,"Value 1"),e()(),n(23,"mat-divider"),t(24,"div",5)(25,"div",6),i(26,"Key 2"),e(),t(27,"div",7),i(28,"Value 2"),e()(),n(29,"mat-divider"),t(30,"div",5)(31,"div",6),i(32,"Key 1"),e(),t(33,"div",7),i(34,"Value 1"),e()()()()(),n(35,"br"),t(36,"h2"),i(37,"Option Card Selector"),e(),t(38,"ms-card-selector",8),p("selectedOption",function(k){return l.handleSelected(k)}),e()),o&2&&(s(38),d("options",j(1,Nt)))},dependencies:[g,U,z],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();function Lt(a,r){if(a&1){let f=N();t(0,"li")(1,"mat-checkbox",6),ve("ngModelChange",function(o){let l=M(f).$implicit;return fe(l.completed,o)||(l.completed=o),_(o)}),p("ngModelChange",function(){M(f);let o=L();return _(o.updateAllComplete())}),i(2),e()()}if(a&2){let f=r.$implicit;s(),ue("ngModel",f.completed),d("color",f.color),s(),I(" ",f.name," ")}}var at=(()=>{let r=class r{updateAllComplete(){this.allComplete=this.task.subtasks!=null&&this.task.subtasks.every(m=>m.completed)}someComplete(){return this.task.subtasks==null?!1:this.task.subtasks.filter(m=>m.completed).length>0&&!this.allComplete}setAll(m){this.allComplete=m,this.task.subtasks!=null&&this.task.subtasks.forEach(o=>o.completed=m)}constructor(){this.task={name:"Indeterminate",completed:!1,color:"primary",subtasks:[{name:"Primary",completed:!1,color:"primary"},{name:"Accent",completed:!1,color:"accent"},{name:"Warn",completed:!1,color:"warn"}]},this.allComplete=!1}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-checkboxes-demo"]],decls:17,vars:6,consts:[[1,"line"],[1,"ms-card"],[3,"disabled"],[3,"change","checked","color","indeterminate"],[1,"list-none"],[4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel","color"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Checkboxes"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"section")(6,"mat-checkbox"),i(7,"Check me!"),e(),t(8,"mat-checkbox",2),i(9,"Disabled"),e()(),t(10,"section")(11,"span")(12,"mat-checkbox",3),p("change",function(k){return l.setAll(k.checked)}),i(13),e()(),t(14,"span")(15,"ul",4),y(16,Lt,3,3,"li",5),e()()()()),o&2&&(s(8),d("disabled",!0),s(4),d("checked",l.allComplete)("color",l.task.color)("indeterminate",l.someComplete()),s(),I(" ",l.task.name," "),s(3),d("ngForOf",l.task.subtasks))},dependencies:[ge,g,U,Te,H,Ce],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();var mt=(()=>{let r=class r{constructor(){}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-chips-demo"]],decls:17,vars:0,consts:[[1,"line"],[1,"section"],[1,"ms-chip"],["color","primary",1,"ms-chip"],["color","accent",1,"ms-chip"],["color","warn",1,"ms-chip"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Chips"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Basic Chips"),e(),t(7,"div")(8,"mat-chip-set")(9,"mat-chip",2),i(10," Default "),e(),t(11,"mat-chip",3),i(12," Primary "),e(),t(13,"mat-chip",4),i(14," Accent "),e(),t(15,"mat-chip",5),i(16," Warn "),e()()()())},dependencies:[g,Ae,qe],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}.mat-standard-chip[_ngcontent-%COMP%]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px} .mat-chip-list-wrapper .mat-chip.mat-standard-chip{margin:4px}.example-box.cdk-drag-animating[_ngcontent-%COMP%], .example-chip[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-chip-list[_ngcontent-%COMP%]{width:100%}mat-chip[_ngcontent-%COMP%]{max-width:200px}"]});let a=r;return a})();var O=a=>[a],lt=(()=>{let r=class r{constructor(){this.RoutesList=x}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-demo"]],decls:31,vars:39,consts:[[1,"main-container"],[1,"content","routes"],["vertical","true"],[3,"routerLink"],["mat-raised-button","","color","primary",1,"mt-2",3,"routerLink"],[1,"content"]],template:function(o,l){o&1&&(t(0,"div",0)(1,"div",1)(2,"mat-button-toggle-group",2)(3,"mat-button-toggle",3),i(4," Buttons "),e(),t(5,"mat-button-toggle",3),i(6," Typograpghy "),e(),t(7,"mat-button-toggle",3),i(8," Form Fields "),e(),t(9,"mat-button-toggle",3),i(10," Checkboxes "),e(),t(11,"mat-button-toggle",3),i(12," Menu "),e(),t(13,"mat-button-toggle",3),i(14," Tables "),e(),t(15,"mat-button-toggle",3),i(16," Icons "),e(),t(17,"mat-button-toggle",3),i(18," Cards "),e(),t(19,"mat-button-toggle",3),i(20," Chips "),e(),t(21,"mat-button-toggle",3),i(22," Notifications "),e(),t(23,"mat-button-toggle",3),i(24," Wizard "),e(),t(25,"mat-button-toggle",3),i(26," Drawer "),e()(),t(27,"button",4),i(28," Back to login "),e()(),t(29,"div",5),n(30,"router-outlet"),e()()),o&2&&(s(3),d("routerLink",D(13,O,l.RoutesList.DEMO)),s(2),d("routerLink",D(15,O,l.RoutesList.DEMO.TYPOGRAPHY)),s(2),d("routerLink",D(17,O,l.RoutesList.DEMO.FORM_FIELDS)),s(2),d("routerLink",D(19,O,l.RoutesList.DEMO.CHECKBOXES)),s(2),d("routerLink",D(21,O,l.RoutesList.DEMO.MENU)),s(2),d("routerLink",D(23,O,l.RoutesList.DEMO.TABLE)),s(2),d("routerLink",D(25,O,l.RoutesList.DEMO.ICONS)),s(2),d("routerLink",D(27,O,l.RoutesList.DEMO.CARDS)),s(2),d("routerLink",D(29,O,l.RoutesList.DEMO.CHIPS)),s(2),d("routerLink",D(31,O,l.RoutesList.DEMO.NOTIFICATIONS)),s(2),d("routerLink",D(33,O,l.RoutesList.DEMO.WIZARD)),s(2),d("routerLink",D(35,O,l.RoutesList.DEMO.DRAWER)),s(2),d("routerLink",D(37,O,"/"+l.RoutesList.AUTH.ROOT)))},dependencies:[Ee,be,h,Pe,ke],styles:[".main-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr)}.main-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;align-self:flex-start;grid-column:span 11;padding:14px 20px 0;width:90%}.main-container[_ngcontent-%COMP%] .routes[_ngcontent-%COMP%]{grid-column:span 1}.mat-button-toggle[_ngcontent-%COMP%]{display:flex;height:40px}"],changeDetection:0});let a=r;return a})();var st=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}close(){this.drawerRef.close()}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-run-drawer-actions"]],decls:2,vars:0,template:function(o,l){o&1&&(t(0,"ms-drawer"),i(1,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque. +import{a as C,b as et,c as w,d as E,e as le}from"./chunk-73XHKPJW.js";import{a as z}from"./chunk-JCSCXYKY.js";import{a as tt}from"./chunk-3ZHMSG5W.js";import{a as Ze,b as Je}from"./chunk-KK5JZLDV.js";import{$a as Q,$c as me,$d as Te,A,Aa as K,Ae as Qe,Ca as N,Cc as h,Da as p,Dc as we,Ea as L,Ec as re,Hc as T,Ma as b,Na as i,Oa as pe,P as $,Pa as I,Qa as ue,Ra as fe,Sa as ve,T as c,U as Y,Va as j,Wa as D,Wb as Ee,Wc as oe,Xc as De,Xd as Pe,Yb as be,Yd as ke,Z as M,Zb as X,Zc as ae,Zd as U,_,_b as x,be as Ae,ce as qe,ec as xe,fb as ge,fc as g,he as Ne,ja as s,jc as Z,je as Le,ka as u,kc as R,kd as Me,m as ce,me as Re,nc as H,nd as _e,ne as Fe,oc as J,od as Oe,oe as We,pb as Se,pc as he,pd as ye,pe as Be,qa as y,qe as Ve,rc as Ce,rd as Ie,re as je,sa as d,sc as ee,se as He,te as Ue,uc as te,ue as ze,ve as Ge,wa as t,we as Ke,xa as e,xc as ie,xe as Xe,ya as n,ye as $e,za as G,zc as ne,ze as Ye}from"./chunk-JA5VSLUI.js";var it=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-buttons-demo"]],decls:220,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-6"],["mat-button",""],["mat-button","","color","primary"],["mat-button","","color","accent"],["mat-button","","color","warn"],["mat-button","","disabled",""],["mat-button","","href","https://www.google.com/","target","_blank"],["mat-raised-button",""],["mat-raised-button","","color","primary"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","warn"],["mat-raised-button","","disabled","","color","accent"],["mat-raised-button","","href","https://www.google.com/","target","_blank"],[1,"parent","items-per-row-7"],["mat-stroked-button",""],["mat-stroked-button","",1,"ms-white-stroked-button"],["mat-stroked-button","","color","primary"],["mat-stroked-button","","color","accent"],["mat-stroked-button","","color","warn"],["mat-stroked-button","","disabled","","color","accent"],["mat-stroked-button","","href","https://www.google.com/","target","_blank"],["mat-flat-button",""],["mat-flat-button","","color","primary"],["mat-flat-button","","color","accent"],["mat-flat-button","","color","warn"],["mat-flat-button","","disabled","","color","primary"],["mat-flat-button","","href","https://www.google.com/","target","_blank"],[2,"grid-column","span 2"],["mat-icon-button",""],["mat-icon-button","","color","primary"],["mat-icon-button","","color","accent"],["mat-icon-button","","color","warn"],["mat-icon-button","","disabled","","color","accent"],[1,"parent","items-per-row-5"],["checked",""],["color","primary","checked",""],["color","accent","checked",""],["color","warn","checked",""],["disabled",""]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Buttons"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Default"),e(),t(7,"div",2)(8,"div"),i(9,"Basic"),e(),t(10,"div"),i(11,"Primary"),e(),t(12,"div"),i(13,"Accent"),e(),t(14,"div"),i(15,"Warn"),e(),t(16,"div"),i(17,"Disabled"),e(),t(18,"div"),i(19,"Link"),e(),t(20,"div")(21,"button",3),i(22,"Lorem Ipsum"),e()(),t(23,"div")(24,"button",4),i(25,"Lorem Ipsum"),e()(),t(26,"div")(27,"button",5),i(28,"Lorem Ipsum"),e()(),t(29,"div")(30,"button",6),i(31,"Lorem Ipsum"),e()(),t(32,"div")(33,"button",7),i(34,"Lorem Ipsum"),e()(),t(35,"div")(36,"a",8),i(37,"Link"),e()()(),t(38,"div",0),n(39,"mat-divider"),e()(),t(40,"div",1)(41,"h2"),i(42,"Raised buttons"),e(),t(43,"div",2)(44,"div"),i(45,"Basic"),e(),t(46,"div"),i(47,"Primary"),e(),t(48,"div"),i(49,"Accent"),e(),t(50,"div"),i(51,"Warn"),e(),t(52,"div"),i(53,"Disabled"),e(),t(54,"div"),i(55,"Link"),e(),t(56,"div")(57,"button",9),i(58,"Lorem Ipsum"),e()(),t(59,"div")(60,"button",10),i(61,"Lorem Ipsum"),e()(),t(62,"div")(63,"button",11),i(64,"Lorem Ipsum"),e()(),t(65,"div")(66,"button",12),i(67,"Lorem Ipsum"),e()(),t(68,"div")(69,"button",13),i(70,"Lorem Ipsum"),e()(),t(71,"div")(72,"a",14),i(73,"Link"),e()()(),t(74,"div",0),n(75,"mat-divider"),e()(),t(76,"div",1)(77,"h2"),i(78,"Stroked buttons"),e(),t(79,"div",15)(80,"div"),i(81,"Basic"),e(),t(82,"div"),i(83,"Basic White"),e(),t(84,"div"),i(85,"Primary"),e(),t(86,"div"),i(87,"Accent"),e(),t(88,"div"),i(89,"Warn"),e(),t(90,"div"),i(91,"Disabled"),e(),t(92,"div"),i(93,"Link"),e(),t(94,"div")(95,"button",16),i(96,"Lorem Ipsum"),e()(),t(97,"div")(98,"button",17),i(99,"Lorem Ipsum"),e()(),t(100,"div")(101,"button",18),i(102,"Lorem Ipsum"),e()(),t(103,"div")(104,"button",19),i(105,"Lorem Ipsum"),e()(),t(106,"div")(107,"button",20),i(108,"Lorem Ipsum"),e()(),t(109,"div")(110,"button",21),i(111,"Lorem Ipsum"),e()(),t(112,"div")(113,"a",22),i(114,"Link"),e()()(),t(115,"div",0),n(116,"mat-divider"),e()(),t(117,"div",1)(118,"h2"),i(119,"Flat buttons"),e(),t(120,"div",2)(121,"div"),i(122,"Basic"),e(),t(123,"div"),i(124,"Primary"),e(),t(125,"div"),i(126,"Accent"),e(),t(127,"div"),i(128,"Warn"),e(),t(129,"div"),i(130,"Disabled"),e(),t(131,"div"),i(132,"Link"),e(),t(133,"div")(134,"button",23),i(135,"Lorem Ipsum"),e()(),t(136,"div")(137,"button",24),i(138,"Lorem Ipsum"),e()(),t(139,"div")(140,"button",25),i(141,"Lorem Ipsum"),e()(),t(142,"div")(143,"button",26),i(144,"Lorem Ipsum"),e()(),t(145,"div")(146,"button",27),i(147,"Lorem Ipsum"),e()(),t(148,"div")(149,"a",28),i(150,"Link"),e()()(),t(151,"div",0),n(152,"mat-divider"),e()(),t(153,"div",1)(154,"h2"),i(155,"Icon buttons"),e(),t(156,"div",2)(157,"div"),i(158,"Basic"),e(),t(159,"div"),i(160,"Primary"),e(),t(161,"div"),i(162,"Accent"),e(),t(163,"div"),i(164,"Warn"),e(),t(165,"div",29),i(166,"Disabled"),e(),t(167,"div")(168,"button",30)(169,"mat-icon"),i(170,"more_vert"),e()()(),t(171,"div")(172,"button",31)(173,"mat-icon"),i(174,"home"),e()()(),t(175,"div")(176,"button",32)(177,"mat-icon"),i(178,"menu"),e()()(),t(179,"div")(180,"button",33)(181,"mat-icon"),i(182,"favorite"),e()()(),t(183,"div",29)(184,"button",34)(185,"mat-icon"),i(186,"open_in_new"),e()()()(),t(187,"div",0),n(188,"mat-divider"),e()(),t(189,"div",1)(190,"h2"),i(191,"Slide toggle buttons"),e(),t(192,"div",35)(193,"div"),i(194,"Basic"),e(),t(195,"div"),i(196,"Primary"),e(),t(197,"div"),i(198,"Accent"),e(),t(199,"div"),i(200,"Warn"),e(),t(201,"div"),i(202,"Disabled"),e(),t(203,"div")(204,"mat-slide-toggle",36),i(205,"Slide me!"),e()(),t(206,"div")(207,"mat-slide-toggle",37),i(208,"Slide me!"),e()(),t(209,"div")(210,"mat-slide-toggle",38),i(211,"Slide me!"),e()(),t(212,"div")(213,"mat-slide-toggle",39),i(214,"Slide me!"),e()(),t(215,"div")(216,"mat-slide-toggle",40),i(217,"Slide me!"),e()()()(),t(218,"div",0),n(219,"mat-divider"),e())},dependencies:[g,we,h,re,T,Le],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var Nt=()=>["Option 1","Option 2","Option 3"],rt=(()=>{let r=class r{constructor(){}ngOnInit(){}handleSelected(m){console.log("Selected option:",m)}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ag-cards-demo"]],decls:39,vars:2,consts:[[1,"line"],[1,"section"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key","paragraph-semibold-p4-xSmall-emphasis"],[1,"key-value-value","paragraph-regular-p4-xSmall"],[3,"selectedOption","options"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Cards"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"h2"),i(5,"Basic cards"),e(),t(6,"div",1)(7,"mat-card",2)(8,"p",3),i(9,"Card with text"),e(),t(10,"p"),i(11," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et cursus eros, a ultricies massa. Morbi commodo sapien magna, vitae facilisis erat blandit ac. Praesent vulputate nulla quis nibh consectetur euismod. Nulla justo dolor, molestie vitae ultricies id, malesuada id tortor. Ut rutrum nisi enim. Pellentesque sed blandit tortor, id fringilla turpis. In vel arcu nec urna dictum mollis ac sed sem. Integer orci eros, hendrerit a dui nec, auctor mattis mi. Curabitur quis tempor ex. "),e()()(),n(12,"br"),t(13,"div",1)(14,"mat-card",2)(15,"p",3),i(16,"Key Value Card"),e(),t(17,"div",4)(18,"div",5)(19,"div",6),i(20,"Key 1"),e(),t(21,"div",7),i(22,"Value 1"),e()(),n(23,"mat-divider"),t(24,"div",5)(25,"div",6),i(26,"Key 2"),e(),t(27,"div",7),i(28,"Value 2"),e()(),n(29,"mat-divider"),t(30,"div",5)(31,"div",6),i(32,"Key 1"),e(),t(33,"div",7),i(34,"Value 1"),e()()()()(),n(35,"br"),t(36,"h2"),i(37,"Option Card Selector"),e(),t(38,"ms-card-selector",8),p("selectedOption",function(k){return l.handleSelected(k)}),e()),o&2&&(s(38),d("options",j(1,Nt)))},dependencies:[g,U,z],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();function Lt(a,r){if(a&1){let f=N();t(0,"li")(1,"mat-checkbox",6),ve("ngModelChange",function(o){let l=M(f).$implicit;return fe(l.completed,o)||(l.completed=o),_(o)}),p("ngModelChange",function(){M(f);let o=L();return _(o.updateAllComplete())}),i(2),e()()}if(a&2){let f=r.$implicit;s(),ue("ngModel",f.completed),d("color",f.color),s(),I(" ",f.name," ")}}var at=(()=>{let r=class r{updateAllComplete(){this.allComplete=this.task.subtasks!=null&&this.task.subtasks.every(m=>m.completed)}someComplete(){return this.task.subtasks==null?!1:this.task.subtasks.filter(m=>m.completed).length>0&&!this.allComplete}setAll(m){this.allComplete=m,this.task.subtasks!=null&&this.task.subtasks.forEach(o=>o.completed=m)}constructor(){this.task={name:"Indeterminate",completed:!1,color:"primary",subtasks:[{name:"Primary",completed:!1,color:"primary"},{name:"Accent",completed:!1,color:"accent"},{name:"Warn",completed:!1,color:"warn"}]},this.allComplete=!1}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-checkboxes-demo"]],decls:17,vars:6,consts:[[1,"line"],[1,"ms-card"],[3,"disabled"],[3,"change","checked","color","indeterminate"],[1,"list-none"],[4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel","color"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Checkboxes"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"section")(6,"mat-checkbox"),i(7,"Check me!"),e(),t(8,"mat-checkbox",2),i(9,"Disabled"),e()(),t(10,"section")(11,"span")(12,"mat-checkbox",3),p("change",function(k){return l.setAll(k.checked)}),i(13),e()(),t(14,"span")(15,"ul",4),y(16,Lt,3,3,"li",5),e()()()()),o&2&&(s(8),d("disabled",!0),s(4),d("checked",l.allComplete)("color",l.task.color)("indeterminate",l.someComplete()),s(),I(" ",l.task.name," "),s(3),d("ngForOf",l.task.subtasks))},dependencies:[ge,g,U,Te,H,Ce],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();var mt=(()=>{let r=class r{constructor(){}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-chips-demo"]],decls:17,vars:0,consts:[[1,"line"],[1,"section"],[1,"ms-chip"],["color","primary",1,"ms-chip"],["color","accent",1,"ms-chip"],["color","warn",1,"ms-chip"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Chips"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Basic Chips"),e(),t(7,"div")(8,"mat-chip-set")(9,"mat-chip",2),i(10," Default "),e(),t(11,"mat-chip",3),i(12," Primary "),e(),t(13,"mat-chip",4),i(14," Accent "),e(),t(15,"mat-chip",5),i(16," Warn "),e()()()())},dependencies:[g,Ae,qe],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}.mat-standard-chip[_ngcontent-%COMP%]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px} .mat-chip-list-wrapper .mat-chip.mat-standard-chip{margin:4px}.example-box.cdk-drag-animating[_ngcontent-%COMP%], .example-chip[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-chip-list[_ngcontent-%COMP%]{width:100%}mat-chip[_ngcontent-%COMP%]{max-width:200px}"]});let a=r;return a})();var O=a=>[a],lt=(()=>{let r=class r{constructor(){this.RoutesList=x}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-demo"]],decls:31,vars:39,consts:[[1,"main-container"],[1,"content","routes"],["vertical","true"],[3,"routerLink"],["mat-raised-button","","color","primary",1,"mt-2",3,"routerLink"],[1,"content"]],template:function(o,l){o&1&&(t(0,"div",0)(1,"div",1)(2,"mat-button-toggle-group",2)(3,"mat-button-toggle",3),i(4," Buttons "),e(),t(5,"mat-button-toggle",3),i(6," Typograpghy "),e(),t(7,"mat-button-toggle",3),i(8," Form Fields "),e(),t(9,"mat-button-toggle",3),i(10," Checkboxes "),e(),t(11,"mat-button-toggle",3),i(12," Menu "),e(),t(13,"mat-button-toggle",3),i(14," Tables "),e(),t(15,"mat-button-toggle",3),i(16," Icons "),e(),t(17,"mat-button-toggle",3),i(18," Cards "),e(),t(19,"mat-button-toggle",3),i(20," Chips "),e(),t(21,"mat-button-toggle",3),i(22," Notifications "),e(),t(23,"mat-button-toggle",3),i(24," Wizard "),e(),t(25,"mat-button-toggle",3),i(26," Drawer "),e()(),t(27,"button",4),i(28," Back to login "),e()(),t(29,"div",5),n(30,"router-outlet"),e()()),o&2&&(s(3),d("routerLink",D(13,O,l.RoutesList.DEMO)),s(2),d("routerLink",D(15,O,l.RoutesList.DEMO.TYPOGRAPHY)),s(2),d("routerLink",D(17,O,l.RoutesList.DEMO.FORM_FIELDS)),s(2),d("routerLink",D(19,O,l.RoutesList.DEMO.CHECKBOXES)),s(2),d("routerLink",D(21,O,l.RoutesList.DEMO.MENU)),s(2),d("routerLink",D(23,O,l.RoutesList.DEMO.TABLE)),s(2),d("routerLink",D(25,O,l.RoutesList.DEMO.ICONS)),s(2),d("routerLink",D(27,O,l.RoutesList.DEMO.CARDS)),s(2),d("routerLink",D(29,O,l.RoutesList.DEMO.CHIPS)),s(2),d("routerLink",D(31,O,l.RoutesList.DEMO.NOTIFICATIONS)),s(2),d("routerLink",D(33,O,l.RoutesList.DEMO.WIZARD)),s(2),d("routerLink",D(35,O,l.RoutesList.DEMO.DRAWER)),s(2),d("routerLink",D(37,O,"/"+l.RoutesList.AUTH.ROOT)))},dependencies:[Ee,be,h,Pe,ke],styles:[".main-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr)}.main-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;align-self:flex-start;grid-column:span 11;padding:14px 20px 0;width:90%}.main-container[_ngcontent-%COMP%] .routes[_ngcontent-%COMP%]{grid-column:span 1}.mat-button-toggle[_ngcontent-%COMP%]{display:flex;height:40px}"],changeDetection:0});let a=r;return a})();var st=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}close(){this.drawerRef.close()}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-run-drawer-actions"]],decls:2,vars:0,template:function(o,l){o&1&&(t(0,"ms-drawer"),i(1,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque. `),e())},dependencies:[E],changeDetection:0});let a=r;return a})();function Rt(a,r){if(a&1){let f=N();t(0,"div",2)(1,"button",3),p("click",function(){M(f);let o=L();return _(o.onDismiss())}),i(2,"Button 1"),e(),t(3,"button",4),p("click",function(){M(f);let o=L();return _(o.onDismiss())}),i(4,"Button 2"),e(),t(5,"button",5),p("click",function(){M(f);let o=L();return _(o.onDismiss())}),i(6,"Button 3"),e()()}}var dt=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}onDismiss(){this.drawerRef.close()}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-alternative-actions-template"]],decls:4,vars:1,consts:[["alternativeActions",""],[3,"actionsTemplate"],[1,"buttons-wrapper"],["mat-raised-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(o,l){if(o&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. `),e(),y(2,Rt,7,0,"ng-template",null,0,Q)),o&2){let v=b(3);d("actionsTemplate",v)}},dependencies:[h,E],styles:[".buttons-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-child){margin-left:20px}"]});let a=r;return a})();function Ft(a,r){if(a&1){let f=N();t(0,"div",2)(1,"div",3)(2,"button",4),p("click",function(){M(f);let o=L();return _(o.close())}),n(3,"mat-icon",5),e()(),t(4,"h3",6),i(5,"Different Header Style"),e()()}}var ct=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}close(){this.drawerRef.close()}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-alternative-header-template"]],decls:4,vars:1,consts:[["alternativeHeader",""],[3,"headerTemplate"],[1,"header-wrapper"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontIcon","icon-close-one"],[2,"color","red"]],template:function(o,l){if(o&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. `),e(),y(2,Ft,6,0,"ng-template",null,0,Q)),o&2){let v=b(3);d("headerTemplate",v)}},dependencies:[re,T,E],styles:[".header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}"],changeDetection:0});let a=r;return a})();var pt=(()=>{let r=class r{constructor(m,o,l){this.drawerRef=m,this.drawerConfig=o,this.fb=l}ngOnInit(){this.form=this.fb.group({name:["",[R.required]],address:["",[R.required]]})}save(m){m===et.SAVE&&this.drawerRef.close({result:this.form.getRawValue(),status:m})}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C),u(ne))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-buttons-actions"]],decls:12,vars:2,consts:[[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["agErrorDisplay","","matInput","","placeholder","Name","formControlName","name"],["agErrorDisplay","","matInput","","placeholder","Address","formControlName","address"]],template:function(o,l){o&1&&(t(0,"ms-drawer",0),p("actionEvent",function(k){return l.save(k)}),t(1,"form",1)(2,"div",2)(3,"mat-label"),i(4,"Name"),e(),t(5,"mat-form-field",3),n(6,"input",4),e()(),t(7,"div",2)(8,"mat-label"),i(9,"Address"),e(),t(10,"mat-form-field",3),n(11,"input",5),e()()()()),o&2&&(d("isSaveDisabled",l.form.invalid),s(),d("formGroup",l.form))},dependencies:[me,ae,oe,ee,Z,H,J,te,ie,E]});let a=r;return a})();var ut=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-customizable-width"]],decls:1,vars:0,template:function(o,l){o&1&&n(0,"ms-drawer")},dependencies:[E]});let a=r;return a})();var ft=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o,this.isSaveDisabled=!0}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-disabled-buttons-actions"]],decls:3,vars:2,consts:[[3,"isSaveDisabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,l){o&1&&(t(0,"ms-drawer",0)(1,"button",1),p("click",function(){return l.isSaveDisabled=!l.isSaveDisabled}),i(2),e()()),o&2&&(d("isSaveDisabled",l.isSaveDisabled),s(2),I(" Click here to ",l.isSaveDisabled?"enable":"disable"," button "))},dependencies:[h,E]});let a=r;return a})();var vt=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerData=o}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-injected-data"]],decls:5,vars:2,template:function(o,l){o&1&&(t(0,"ms-drawer")(1,"p"),i(2),e(),t(3,"p"),i(4),e()()),o&2&&(s(2),I("Field 1: ",l.drawerData.data.field1,""),s(2),I("Field 2: ",l.drawerData.data.field2,""))},dependencies:[E],changeDetection:0});let a=r;return a})();var gt=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerData=o}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-only-one-button"]],decls:1,vars:0,template:function(o,l){o&1&&n(0,"ms-drawer")},dependencies:[E],changeDetection:0});let a=r;return a})();var St=(()=>{let r=class r{constructor(m){this.drawerService=m}ngOnInit(){}openDrawer(){this.drawerService.open(st,{title:"Lorem Ipsum"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithInjectedData(){let m={field1:"value1",field2:"value2"};this.drawerService.open(vt,{title:"Drawer with injected data",data:m}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeHeader(){this.drawerService.open(ct).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithOnlyOneButton(){this.drawerService.open(gt,{title:"Only one button",showSaveButton:!1,closeButtonLabel:"Close"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeActions(){this.drawerService.open(dt,{title:"Alternative Footer"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithDisabledButtons(){this.drawerService.open(ft,{title:"Disabled buttons"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithButtonsActions(){this.drawerService.open(pt,{title:"Buttons Actions"}).afterClosed().pipe(A(1)).subscribe(o=>{alert(`Clicked on ${o.status}, name = ${o.result.name}, address = ${o.result.address}`)})}openDrawerWithCustomizableWidth(){this.drawerService.open(ut,{title:"Drawer With Customizable Width",width:500}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}};r.\u0275fac=function(o){return new(o||r)(u(le))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-demo"]],decls:112,vars:0,consts:[[1,"section"],[1,"parent","items-per-row-5"],["mat-raised-button","",3,"click"],[1,"line"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Drawer"),e(),t(2,"div",0)(3,"h2"),i(4,"Description:"),e(),t(5,"p"),i(6,"Drawer Dialog it's opened using the drawer service. (ex. this.drawerService.open(COMPONENT, customData)"),e(),t(7,"p"),i(8," Those are the custom data available for "),t(9,"b"),i(10,"drawer config:"),e(),n(11,"br"),t(12,"b"),i(13,"data?: any;"),e(),i(14," | Custom data that you would need to add from outside inside the dialog. "),n(15,"br"),t(16,"b"),i(17,"title?: string;"),e(),i(18," | Dialog title "),n(19,"br"),t(20,"b"),i(21,"showSaveButton?: boolean;"),e(),i(22," | Option to configure the show/hide of the save button. "),n(23,"br"),t(24,"b"),i(25,"showDismissButton?: boolean;"),e(),i(26," | Option to configure the show/hide of the dismiss button. "),n(27,"br"),t(28,"b"),i(29,"saveButtonLabel?: string;"),e(),i(30," | Option to configure the save button label."),n(31,"br"),t(32,"b"),i(33,"dismissButtonLabel?: string;"),e(),i(34," | Option to configure the dismiss button label."),n(35,"br"),e(),t(36,"p"),i(37," On each drawer action an event it's emitted: If you click on the X icon, the event emitted it's DrawerStatus.CLOSE, if you click on save the event emitted is DrawerStatus.SAVE, if you click on dismiss the event it's DrawerStatus.DISMISS. By using this action on the actionEvent output event emitter, you can bind your function and listen to events for your custom functionality. "),e(),t(38,"p"),i(39,' Additionaly, you can change the templates of the header and footer and provide a totally custom implementation as you would need it. Check the "alternative templates" examples '),e()(),t(40,"div",0)(41,"h2"),i(42,"Basic Drawers"),e(),t(43,"div",1)(44,"div"),i(45,"Open simple drawer"),e(),t(46,"div"),i(47,"Open Drawer with Injected Data"),e(),t(48,"div"),i(49,"Open Drawer with Only One Button"),e(),t(50,"div"),i(51,"Open Drawer with Disabled Buttons"),e(),t(52,"div"),i(53,"Open Drawer with Customizable Width"),e(),t(54,"div")(55,"button",2),p("click",function(){return l.openDrawer()}),i(56,"Open Drawer"),e()(),t(57,"div")(58,"button",2),p("click",function(){return l.openDrawerWithInjectedData()}),i(59,"Open Drawer"),e()(),t(60,"div")(61,"button",2),p("click",function(){return l.openDrawerWithOnlyOneButton()}),i(62,"Open Drawer"),e()(),t(63,"div")(64,"button",2),p("click",function(){return l.openDrawerWithDisabledButtons()}),i(65,"Open Drawer"),e()(),t(66,"div")(67,"button",2),p("click",function(){return l.openDrawerWithCustomizableWidth()}),i(68,"Open Drawer"),e()()(),t(69,"div",3),n(70,"mat-divider"),e()(),t(71,"div",0)(72,"h2"),i(73,"Alternative templates examples"),e(),t(74,"div",1)(75,"div"),i(76,"Open Drawer with Alternative Header Template"),e(),t(77,"div"),i(78,"Open Drawer with Alternative Actions Template"),e(),n(79,"div")(80,"div")(81,"div"),t(82,"div")(83,"button",2),p("click",function(){return l.openDrawerWithAlternativeHeader()}),i(84,"Open Drawer"),e()(),t(85,"div")(86,"button",2),p("click",function(){return l.openDrawerWithAlternativeActions()}),i(87,"Open Drawer"),e()(),n(88,"div")(89,"div")(90,"div"),e(),t(91,"div",3),n(92,"mat-divider"),e()(),t(93,"div",0)(94,"h2"),i(95,"Drawers With Buttons Actions Check"),e(),t(96,"div",1)(97,"div"),i(98,"Open Drawer with Buttons Actions"),e(),n(99,"div")(100,"div")(101,"div")(102,"div"),t(103,"div")(104,"button",2),p("click",function(){return l.openDrawerWithButtonsActions()}),i(105,"Open Drawer"),e()(),n(106,"div")(107,"div")(108,"div")(109,"div"),e(),t(110,"div",3),n(111,"mat-divider"),e()())},dependencies:[g,h],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var q,de=(q=class{constructor(r){this.fb=r,this.form=new he({})}ngOnInit(){this.form=this.fb.group({default:[null],searchBar:[null],prefilled:["Lorem Ipsum"],disabled:[{value:null,disabled:!0}],prefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],error:[null,[R.required]],icon:[null],iconPrefilled:["Lorem Ipsum"],iconDisabled:[{value:null,disabled:!0}],iconPrefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],iconError:[null,[R.required]],required:[null,[R.required]],textarea:[null],textareaPrefilled:["Lorem Ipsum"],textareaDisabled:[{value:null,disabled:!0}],textareaPrefilledAndDisabled:[{value:"Lorem Ipsum",disabled:!0}],textareaError:[null,[R.required]],dropdown:[null],dropdownPreselected:["option1"],dropdownDisabled:[{value:null,disabled:!0}],dropdownPreselectedAndDisabled:[{value:"option1",disabled:!0}]})}},q.\u0275fac=function(f){return new(f||q)(u(ne))},q.\u0275cmp=c({type:q,selectors:[["ms-form-fields-demo"]],decls:255,vars:1,consts:[[1,"line"],[3,"formGroup"],[1,"section"],[1,"parent","items-per-row-5"],[1,"form-field-container"],["msErrorDisplay","","matInput","","formControlName","default"],[1,"form-field-container","ms-white-form-field"],["msErrorDisplay","","matInput","","formControlName","prefilled"],["msErrorDisplay","","matInput","","formControlName","disabled"],["msErrorDisplay","","matInput","","formControlName","prefilledDisabled"],["msErrorDisplay","","matInput","","formControlName","error"],["appearance","outline"],["matInput","","msErrorDisplay","","placeholder","Default","formControlName","default"],["matInput","","msErrorDisplay","","placeholder","Prefilled","formControlName","prefilled"],["matInput","","msErrorDisplay","","placeholder","Disabled","formControlName","disabled"],["matInput","","msErrorDisplay","","placeholder","Prefilled and Disabled","formControlName","prefilledDisabled"],["matInput","","placeholder","Error","formControlName","error"],["appearance","fill","floatLabel","always"],["appearance","outline","floatLabel","auto"],["floatLabel","always"],["msErrorDisplay","","matInput","","formControlName","required"],["rows","4","matInput","","formControlName","textarea","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilledAndDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaError","msErrorDisplay",""],["formControlName","dropdown","placeholder","Select a value"],["value","option1"],["value","option2"],["value","option3"],["value","option4"],["value","option5"],["formControlName","dropdownPreselected","placeholder","Select a value"],["formControlName","dropdownDisabled","placeholder","Select a value"],["formControlName","dropdownPreselectedAndDisabled"],[1,"parent","items-per-row-6"],["matInput","","msPasswordToggle","","msErrorDisplay","","placeholder","Default","formControlName","default"]],template:function(f,m){f&1&&(t(0,"h1"),i(1,"Form Fields"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"form",1)(5,"div",2)(6,"div",2)(7,"h2"),i(8,"Default"),e(),t(9,"div",3)(10,"div",4)(11,"mat-label"),i(12," Default "),e(),t(13,"mat-form-field"),n(14,"input",5),e()(),t(15,"div",6)(16,"mat-label"),i(17," Default White "),e(),t(18,"mat-form-field"),n(19,"input",5),e()(),t(20,"div",4)(21,"mat-label"),i(22," Prefilled "),e(),t(23,"mat-form-field"),n(24,"input",7),e()(),t(25,"div",4)(26,"mat-label"),i(27," Disabled "),e(),t(28,"mat-form-field"),n(29,"input",8),e()(),t(30,"div",4)(31,"mat-label"),i(32," Prefilled & disabled "),e(),t(33,"mat-form-field"),n(34,"input",9),e()(),t(35,"div",4)(36,"mat-label"),i(37," Error "),e(),t(38,"mat-form-field"),n(39,"input",10),e()()(),t(40,"div",0),n(41,"mat-divider"),e()(),t(42,"h2"),i(43,"Appearance Outline"),e(),t(44,"div",3)(45,"div",4)(46,"mat-form-field",11)(47,"mat-label"),i(48,"Default"),e(),n(49,"input",12),e()(),t(50,"div",4)(51,"mat-form-field",11)(52,"mat-label"),i(53," Prefilled "),e(),n(54,"input",13),e()(),t(55,"div",4)(56,"mat-form-field",11)(57,"mat-label"),i(58," Disabled "),e(),n(59,"input",14),e()(),t(60,"div",4)(61,"mat-form-field",11)(62,"mat-label"),i(63," Prefilled & disabled "),e(),n(64,"input",15),e()(),t(65,"div",4)(66,"mat-form-field",11)(67,"mat-label"),i(68," Error "),e(),n(69,"input",16),t(70,"mat-error"),i(71,"Test"),e()()()(),t(72,"div",0),n(73,"mat-divider"),e()(),t(74,"div",2)(75,"h2"),i(76,"Appearance Fill & Float Label"),e(),t(77,"div",3)(78,"div",4)(79,"mat-form-field",17)(80,"mat-label"),i(81," Default "),e(),n(82,"input",5),e()(),t(83,"div")(84,"mat-form-field",17)(85,"mat-label"),i(86," Prefilled "),e(),n(87,"input",7),e()(),t(88,"div",4)(89,"mat-form-field",17)(90,"mat-label"),i(91," Disabled "),e(),n(92,"input",8),e()(),t(93,"div",4)(94,"mat-form-field",17)(95,"mat-label"),i(96," Prefilled & disabled "),e(),n(97,"input",9),e()(),t(98,"div",4)(99,"mat-form-field",17)(100,"mat-label"),i(101," Error "),e(),n(102,"input",10),e()()(),t(103,"div",0),n(104,"mat-divider"),e()(),t(105,"div",2)(106,"h2"),i(107,"Appearance Outline & Label Auto"),e(),t(108,"div",3)(109,"div",4)(110,"mat-form-field",18)(111,"mat-label"),i(112," Default "),e(),n(113,"input",5),e()(),t(114,"div",4)(115,"mat-form-field",18)(116,"mat-label"),i(117," Prefilled "),e(),n(118,"input",7),e()(),t(119,"div",4)(120,"mat-form-field",18)(121,"mat-label"),i(122," Disabled "),e(),n(123,"input",8),e()(),t(124,"div",4)(125,"mat-form-field",18)(126,"mat-label"),i(127," Prefilled & disabled "),e(),n(128,"input",9),e()(),t(129,"div",4)(130,"mat-form-field",18)(131,"mat-label"),i(132," Error "),e(),n(133,"input",10),e()()(),t(134,"div",0),n(135,"mat-divider"),e()(),t(136,"div",2)(137,"h2"),i(138,"Inputs with Validators"),e(),t(139,"div",3)(140,"div",4)(141,"mat-form-field",19)(142,"mat-label"),i(143,"Required "),e(),n(144,"input",20),e()(),n(145,"div")(146,"div"),e(),t(147,"div",0),n(148,"mat-divider"),e()(),t(149,"div",2)(150,"h2"),i(151,"Textarea"),e(),t(152,"div",3)(153,"div",4)(154,"mat-form-field",19)(155,"mat-label"),i(156,"Default prefilled"),e(),n(157,"textarea",21),e()(),t(158,"div",4)(159,"mat-form-field",19)(160,"mat-label"),i(161,"Prefilled"),e(),n(162,"textarea",22),e()(),t(163,"div",4)(164,"mat-form-field",19)(165,"mat-label"),i(166,"Disabled"),e(),n(167,"textarea",23),e()(),t(168,"div",4)(169,"mat-form-field",19)(170,"mat-label"),i(171,"Prefilled and disabled"),e(),n(172,"textarea",24),e()(),t(173,"div",4)(174,"mat-form-field",19)(175,"mat-label"),i(176,"Error"),e(),n(177,"textarea",25),e()()(),t(178,"div",0),n(179,"mat-divider"),e()(),t(180,"div",2)(181,"h2"),i(182,"Dropdowns"),e(),t(183,"div",3)(184,"div",4)(185,"mat-label"),i(186," Default"),e(),t(187,"mat-form-field",11)(188,"mat-select",26)(189,"mat-option",27),i(190,"Option 1"),e(),t(191,"mat-option",28),i(192,"Option 2"),e(),t(193,"mat-option",29),i(194,"Option 3"),e(),t(195,"mat-option",30),i(196,"Option 4"),e(),t(197,"mat-option",31),i(198,"Option 5"),e()()()(),t(199,"div",4)(200,"mat-label"),i(201," Preselected "),e(),t(202,"mat-form-field",11)(203,"mat-select",32)(204,"mat-option",27),i(205,"Option 1"),e(),t(206,"mat-option",28),i(207,"Option 2"),e(),t(208,"mat-option",29),i(209,"Option 3"),e(),t(210,"mat-option",30),i(211,"Option 4"),e(),t(212,"mat-option",31),i(213,"Option 5"),e()()()(),t(214,"div",4)(215,"mat-label"),i(216," Disabled "),e(),t(217,"mat-form-field",11)(218,"mat-select",33)(219,"mat-option",27),i(220,"Option 1"),e(),t(221,"mat-option",28),i(222,"Option 2"),e(),t(223,"mat-option",29),i(224,"Option 3"),e(),t(225,"mat-option",30),i(226,"Option 4"),e(),t(227,"mat-option",31),i(228,"Option 5"),e()()()(),t(229,"div",4)(230,"mat-label"),i(231," Preselected and disabled "),e(),t(232,"mat-form-field",11)(233,"mat-select",34)(234,"mat-option",27),i(235,"Option 1"),e(),t(236,"mat-option",28),i(237,"Option 2"),e(),t(238,"mat-option",29),i(239,"Option 3"),e(),t(240,"mat-option",30),i(241,"Option 4"),e(),t(242,"mat-option",31),i(243,"Option 5"),e()()()()(),t(244,"div",0),n(245,"mat-divider"),e()(),t(246,"div",2)(247,"div",35)(248,"div",4)(249,"mat-label"),i(250,"Password toggle"),e(),t(251,"mat-form-field",11),n(252,"input",36),e()()(),t(253,"div",0),n(254,"mat-divider"),e()()()),f&2&&(s(4),d("formGroup",m.form))},dependencies:[g,me,ae,oe,De,Ne,xe,ee,Z,H,J,te,ie,Ze],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0}),q);de=ce([Ie()],de);var Et=(()=>{let r=class r{constructor(){}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-icons-demo"]],decls:381,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-3"],["fontSet","ms","fontIcon","icon-Check"],[1,"parent","items-per-row-8"],["fontSet","ms","fontIcon","icon-User",1,"mat-primary"],["fontSet","ms","fontIcon","icon-User",1,"mat-complementary"],["fontSet","ms","fontIcon","icon-User",1,"mat-gray"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["fontSet","ms","fontIcon","icon-User",1,"mat-accent"],["fontSet","ms","fontIcon","icon-User",1,"mat-success"],["fontSet","ms","fontIcon","icon-User",1,"mat-warn"],["fontSet","ms","fontIcon","icon-User",1,"mat-error"],[1,"parent","ten-items-per-row"],["fontSet","ms","fontIcon","icon-Alerts-Info"],["fontSet","ms","fontIcon","icon-Alerts-Negative"],["fontSet","ms","fontIcon","icon-Alerts-Positive"],["fontSet","ms","fontIcon","icon-Alerts-Warning"],["fontSet","ms","fontIcon","icon-ArrowDown"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["fontSet","ms","fontIcon","icon-ArrowRight"],["fontSet","ms","fontIcon","icon-ArrowSquareOut"],["fontSet","ms","fontIcon","icon-ArrowUp"],["fontSet","ms","fontIcon","icon-Bell"],["fontSet","ms","fontIcon","icon-CalendarBlank"],["fontSet","ms","fontIcon","icon-CaretDoubleLeft"],["fontSet","ms","fontIcon","icon-CaretDoubleRight"],["fontSet","ms","fontIcon","icon-CaretDown"],["fontSet","ms","fontIcon","icon-CaretLeft"],["fontSet","ms","fontIcon","icon-CaretRight"],["fontSet","ms","fontIcon","icon-CaretUp"],["fontSet","ms","fontIcon","icon-CheckCircle"],["fontSet","ms","fontIcon","icon-Clock"],["fontSet","ms","fontIcon","icon-Copy"],["fontSet","ms","fontIcon","icon-Crosshair"],["fontSet","ms","fontIcon","icon-DotsSix"],["fontSet","ms","fontIcon","icon-DotsThree"],["fontSet","ms","fontIcon","icon-DotsThreeVertical"],["fontSet","ms","fontIcon","icon-DownloadSimple"],["fontSet","ms","fontIcon","icon-DropdownCaretDown"],["fontSet","ms","fontIcon","icon-DropdownCaretRight"],["fontSet","ms","fontIcon","icon-DropdownCaretUp"],["fontSet","ms","fontIcon","icon-EnvelopeSimple"],["fontSet","ms","fontIcon","icon-Eye"],["fontSet","ms","fontIcon","icon-EyeSlash"],["fontSet","ms","fontIcon","icon-FunnelSimple"],["fontSet","ms","fontIcon","icon-GearSix"],["fontSet","ms","fontIcon","icon-Info"],["fontSet","ms","fontIcon","icon-Lightning"],["fontSet","ms","fontIcon","icon-ListBullets"],["fontSet","ms","fontIcon","icon-Loader"],["fontSet","ms","fontIcon","icon-Lock"],["fontSet","ms","fontIcon","icon-Magnet"],["fontSet","ms","fontIcon","icon-MagnifyingGlass"],["fontSet","ms","fontIcon","icon-MapTrifold"],["fontSet","ms","fontIcon","icon-Minus"],["fontSet","ms","fontIcon","icon-Nav"],["fontSet","ms","fontIcon","icon-Paperclip"],["fontSet","ms","fontIcon","icon-Passthrough"],["fontSet","ms","fontIcon","icon-PencilSimple"],["fontSet","ms","fontIcon","icon-Placeholder"],["fontSet","ms","fontIcon","icon-Plus"],["fontSet","ms","fontIcon","icon-Printer"],["fontSet","ms","fontIcon","icon-Prohibit"],["fontSet","ms","fontIcon","icon-Question"],["fontSet","ms","fontIcon","icon-Refresh"],["fontSet","ms","fontIcon","icon-Rocket"],["fontSet","ms","fontIcon","icon-SignOut"],["fontSet","ms","fontIcon","icon-Sort"],["fontSet","ms","fontIcon","icon-SortDown"],["fontSet","ms","fontIcon","icon-SortUp"],["fontSet","ms","fontIcon","icon-Stack"],["fontSet","ms","fontIcon","icon-StackPort"],["fontSet","ms","fontIcon","icon-TrashSimple"],["fontSet","ms","fontIcon","icon-TrendDown"],["fontSet","ms","fontIcon","icon-TrendUp"],["fontSet","ms","fontIcon","icon-UploadSimple"],["fontSet","ms","fontIcon","icon-User"],["fontSet","ms","fontIcon","icon-Users"],["fontSet","ms","fontIcon","icon-WifiHigh"],["fontSet","ms","fontIcon","icon-WifiLightning"],["fontSet","ms","fontIcon","icon-WifiLow"],["fontSet","ms","fontIcon","icon-WifiMedium"],["fontSet","ms","fontIcon","icon-WifiNone"],["fontSet","ms","fontIcon","icon-WifiSlash"],["fontSet","ms","fontIcon","icon-WifiX"],["fontSet","ms","fontIcon","icon-X"],["fontSet","ms","fontIcon","icon-XCircle"],["fontSet","ms","fontIcon","icon-Admin"],["fontSet","ms","fontIcon","icon-Environmental"],["fontSet","ms","fontIcon","icon-Inventory"],["fontSet","ms","fontIcon","icon-Systems-Manager"],[2,"grid-column","span 10"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Icons"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Types"),e(),t(7,"div",2)(8,"div"),i(9,"Icon from Custom Font Set"),e(),t(10,"div"),i(11,"Material Default Icons"),e(),n(12,"div"),t(13,"div"),n(14,"mat-icon",3),e(),t(15,"div")(16,"mat-icon"),i(17,"delete"),e()(),n(18,"div"),e(),t(19,"div",0),n(20,"mat-divider"),e()(),t(21,"div",1)(22,"h2"),i(23,"Custom styles"),e(),t(24,"div",4)(25,"div"),i(26,"Primary"),e(),t(27,"div"),i(28,"Complementary"),e(),t(29,"div"),i(30,"Gray"),e(),t(31,"div"),i(32,"White"),e(),t(33,"div"),i(34,"Accent"),e(),t(35,"div"),i(36,"Succes"),e(),t(37,"div"),i(38,"Warn"),e(),t(39,"div"),i(40,"Error"),e(),t(41,"div"),n(42,"mat-icon",5),e(),t(43,"div"),n(44,"mat-icon",6),e(),t(45,"div"),n(46,"mat-icon",7),e(),t(47,"div"),n(48,"mat-icon",8),e(),t(49,"div"),n(50,"mat-icon",9),e(),t(51,"div"),n(52,"mat-icon",10),e(),t(53,"div"),n(54,"mat-icon",11),e(),t(55,"div"),n(56,"mat-icon",12),e()(),t(57,"div",0),n(58,"mat-divider"),e()(),t(59,"div",1)(60,"h2"),i(61,"Custom Icons"),e(),t(62,"div",13)(63,"div"),i(64,"icon-Alerts-Info"),e(),t(65,"div"),i(66,"icon-Alerts-Negative"),e(),t(67,"div"),i(68,"icon-Alerts-Positive"),e(),t(69,"div"),i(70,"icon-Alerts-Warning"),e(),t(71,"div"),i(72,"icon-ArrowDown"),e(),t(73,"div"),i(74,"icon-ArrowLeft"),e(),t(75,"div"),i(76,"icon-ArrowRight"),e(),t(77,"div"),i(78,"icon-ArrowSquareOut"),e(),t(79,"div"),i(80,"icon-ArrowUp"),e(),t(81,"div"),i(82,"icon-Bell"),e(),t(83,"div"),n(84,"mat-icon",14),e(),t(85,"div"),n(86,"mat-icon",15),e(),t(87,"div"),n(88,"mat-icon",16),e(),t(89,"div"),n(90,"mat-icon",17),e(),t(91,"div"),n(92,"mat-icon",18),e(),t(93,"div"),n(94,"mat-icon",19),e(),t(95,"div"),n(96,"mat-icon",20),e(),t(97,"div"),n(98,"mat-icon",21),e(),t(99,"div"),n(100,"mat-icon",22),e(),t(101,"div"),n(102,"mat-icon",23),e(),t(103,"div"),i(104,"icon-CalendarBlank"),e(),t(105,"div"),i(106,"icon-CaretDoubleLeft"),e(),t(107,"div"),i(108,"icon-CaretDoubleRight"),e(),t(109,"div"),i(110,"icon-CaretDown"),e(),t(111,"div"),i(112,"icon-CaretLeft"),e(),t(113,"div"),i(114,"icon-CaretRight"),e(),t(115,"div"),i(116,"icon-CaretUp"),e(),t(117,"div"),i(118,"icon-CheckCircle"),e(),t(119,"div"),i(120,"icon-Clock"),e(),t(121,"div"),i(122,"icon-Copy"),e(),t(123,"div"),n(124,"mat-icon",24),e(),t(125,"div"),n(126,"mat-icon",25),e(),t(127,"div"),n(128,"mat-icon",26),e(),t(129,"div"),n(130,"mat-icon",27),e(),t(131,"div"),n(132,"mat-icon",28),e(),t(133,"div"),n(134,"mat-icon",29),e(),t(135,"div"),n(136,"mat-icon",30),e(),t(137,"div"),n(138,"mat-icon",31),e(),t(139,"div"),n(140,"mat-icon",32),e(),t(141,"div"),n(142,"mat-icon",33),e(),t(143,"div"),i(144,"icon-Crosshair"),e(),t(145,"div"),i(146,"icon-DotsSix"),e(),t(147,"div"),i(148,"icon-DotsThree"),e(),t(149,"div"),i(150,"icon-DotsThreeVertical"),e(),t(151,"div"),i(152,"icon-DownloadSimple"),e(),t(153,"div"),i(154,"icon-DropdownCaretDown"),e(),t(155,"div"),i(156,"icon-DropdownCaretRight"),e(),t(157,"div"),i(158,"icon-DropdownCaretUp"),e(),t(159,"div"),i(160,"icon-EnvelopeSimple"),e(),t(161,"div"),i(162,"icon-Eye"),e(),t(163,"div"),n(164,"mat-icon",34),e(),t(165,"div"),n(166,"mat-icon",35),e(),t(167,"div"),n(168,"mat-icon",36),e(),t(169,"div"),n(170,"mat-icon",37),e(),t(171,"div"),n(172,"mat-icon",38),e(),t(173,"div"),n(174,"mat-icon",39),e(),t(175,"div"),n(176,"mat-icon",40),e(),t(177,"div"),n(178,"mat-icon",41),e(),t(179,"div"),n(180,"mat-icon",42),e(),t(181,"div"),n(182,"mat-icon",43),e(),t(183,"div"),i(184,"icon-EyeSlash"),e(),t(185,"div"),i(186,"icon-FunnelSimple"),e(),t(187,"div"),i(188,"icon-GearSix"),e(),t(189,"div"),i(190,"icon-Info"),e(),t(191,"div"),i(192,"icon-Lightning"),e(),t(193,"div"),i(194,"icon-ListBullets"),e(),t(195,"div"),i(196,"icon-Loader"),e(),t(197,"div"),i(198,"icon-Lock"),e(),t(199,"div"),i(200,"icon-Magnet"),e(),t(201,"div"),i(202,"icon-MagnifyingGlass"),e(),t(203,"div"),n(204,"mat-icon",44),e(),t(205,"div"),n(206,"mat-icon",45),e(),t(207,"div"),n(208,"mat-icon",46),e(),t(209,"div"),n(210,"mat-icon",47),e(),t(211,"div"),n(212,"mat-icon",48),e(),t(213,"div"),n(214,"mat-icon",49),e(),t(215,"div"),n(216,"mat-icon",50),e(),t(217,"div"),n(218,"mat-icon",51),e(),t(219,"div"),n(220,"mat-icon",52),e(),t(221,"div"),n(222,"mat-icon",53),e(),t(223,"div"),i(224,"icon-MapTrifold"),e(),t(225,"div"),i(226,"icon-Minus"),e(),t(227,"div"),i(228,"icon-Nav"),e(),t(229,"div"),i(230,"icon-Paperclip"),e(),t(231,"div"),i(232,"icon-Passthrough"),e(),t(233,"div"),i(234,"icon-PencilSimple"),e(),t(235,"div"),i(236,"icon-Placeholder"),e(),t(237,"div"),i(238,"icon-Plus"),e(),t(239,"div"),i(240,"icon-Printer"),e(),t(241,"div"),i(242,"icon-Prohibit"),e(),t(243,"div"),n(244,"mat-icon",54),e(),t(245,"div"),n(246,"mat-icon",55),e(),t(247,"div"),n(248,"mat-icon",56),e(),t(249,"div"),n(250,"mat-icon",57),e(),t(251,"div"),n(252,"mat-icon",58),e(),t(253,"div"),n(254,"mat-icon",59),e(),t(255,"div"),n(256,"mat-icon",60),e(),t(257,"div"),n(258,"mat-icon",61),e(),t(259,"div"),n(260,"mat-icon",62),e(),t(261,"div"),n(262,"mat-icon",63),e(),t(263,"div"),i(264,"icon-Question"),e(),t(265,"div"),i(266,"icon-Refresh"),e(),t(267,"div"),i(268,"icon-Rocket"),e(),t(269,"div"),i(270,"icon-SignOut"),e(),t(271,"div"),i(272,"icon-Sort"),e(),t(273,"div"),i(274,"icon-SortDown"),e(),t(275,"div"),i(276,"icon-SortUp"),e(),t(277,"div"),i(278,"icon-Stack"),e(),t(279,"div"),i(280,"icon-StackPort"),e(),t(281,"div"),i(282,"icon-TrashSimple"),e(),t(283,"div"),n(284,"mat-icon",64),e(),t(285,"div"),n(286,"mat-icon",65),e(),t(287,"div"),n(288,"mat-icon",66),e(),t(289,"div"),n(290,"mat-icon",67),e(),t(291,"div"),n(292,"mat-icon",68),e(),t(293,"div"),n(294,"mat-icon",69),e(),t(295,"div"),n(296,"mat-icon",70),e(),t(297,"div"),n(298,"mat-icon",71),e(),t(299,"div"),n(300,"mat-icon",72),e(),t(301,"div"),n(302,"mat-icon",73),e(),t(303,"div"),i(304,"icon-TrendDown"),e(),t(305,"div"),i(306,"icon-TrendUp"),e(),t(307,"div"),i(308,"icon-UploadSimple"),e(),t(309,"div"),i(310,"icon-User"),e(),t(311,"div"),i(312,"icon-Users"),e(),t(313,"div"),i(314,"icon-WifiHigh"),e(),t(315,"div"),i(316,"icon-WifiLightning"),e(),t(317,"div"),i(318,"icon-WifiLow"),e(),t(319,"div"),i(320,"icon-WifiMedium"),e(),t(321,"div"),i(322,"icon-WifiNone"),e(),t(323,"div"),n(324,"mat-icon",74),e(),t(325,"div"),n(326,"mat-icon",75),e(),t(327,"div"),n(328,"mat-icon",76),e(),t(329,"div"),n(330,"mat-icon",77),e(),t(331,"div"),n(332,"mat-icon",78),e(),t(333,"div"),n(334,"mat-icon",79),e(),t(335,"div"),n(336,"mat-icon",80),e(),t(337,"div"),n(338,"mat-icon",81),e(),t(339,"div"),n(340,"mat-icon",82),e(),t(341,"div"),n(342,"mat-icon",83),e(),t(343,"div"),i(344,"icon-WifiSlash"),e(),t(345,"div"),i(346,"icon-WifiX"),e(),t(347,"div"),i(348,"icon-X"),e(),t(349,"div"),i(350,"icon-XCircle"),e(),t(351,"div"),i(352,"icon-Admin"),e(),t(353,"div"),i(354,"icon-Environmental"),e(),t(355,"div"),i(356,"icon-Inventory"),e(),t(357,"div"),i(358,"icon-Systems-Manager"),e(),n(359,"div")(360,"div"),t(361,"div"),n(362,"mat-icon",84),e(),t(363,"div"),n(364,"mat-icon",85),e(),t(365,"div"),n(366,"mat-icon",86),e(),t(367,"div"),n(368,"mat-icon",87),e(),t(369,"div"),n(370,"mat-icon",88),e(),t(371,"div"),n(372,"mat-icon",89),e(),t(373,"div"),n(374,"mat-icon",90),e(),t(375,"div"),n(376,"mat-icon",91),e(),n(377,"div")(378,"div"),t(379,"div",92),n(380,"mat-divider"),e()()())},dependencies:[g,T],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var bt=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-menu-demo"]],decls:155,vars:11,consts:[["animals","matMenu"],["vertebrates","matMenu"],["invertebrates","matMenu"],["fish","matMenu"],["amphibians","matMenu"],["reptiles","matMenu"],["menu","matMenu"],["aboveMenu","matMenu"],["belowMenu","matMenu"],["beforeMenu","matMenu"],["afterMenu","matMenu"],[1,"section"],[1,"parent","items-per-row-2"],["mat-button","",3,"matMenuTriggerFor"],[1,"ms-mat-menu"],["mat-menu-item","",3,"matMenuTriggerFor"],["fontSet","ms","fontIcon","icon-User"],["mat-menu-item",""],["mat-menu-item","","disabled",""],[1,"line"],[1,"section","parent","items-per-row-4"],["yPosition","above","xPosition","after",1,"ms-mat-menu"],["yPosition","below",1,"ms-mat-menu"],["xPosition","before",1,"ms-mat-menu"],["xPosition","after",1,"ms-mat-menu"]],template:function(o,l){if(o&1&&(t(0,"div",11)(1,"h2"),i(2,"Menu"),e(),t(3,"div",12)(4,"div")(5,"button",13),i(6,"Animal index"),e(),t(7,"mat-menu",14,0)(9,"button",15),n(10,"mat-icon",16),i(11,"Vertebrates "),e(),t(12,"button",15),n(13,"mat-icon",16),i(14,"Invertebrates "),e()(),t(15,"mat-menu",14,1)(17,"button",15),n(18,"mat-icon",16),i(19,"Fishes "),e(),t(20,"button",15),n(21,"mat-icon",16),i(22,"Amphibians "),e(),t(23,"button",15),n(24,"mat-icon",16),i(25,"Reptiles "),e(),t(26,"button",17),n(27,"mat-icon",16),i(28,"Birds"),e(),t(29,"button",17),n(30,"mat-icon",16),i(31,"Mammals"),e()(),t(32,"mat-menu",14,2)(34,"button",17),n(35,"mat-icon",16),i(36,"Insects"),e(),t(37,"button",17),n(38,"mat-icon",16),i(39,"Molluscs"),e(),t(40,"button",17),n(41,"mat-icon",16),i(42,"Crustaceans"),e(),t(43,"button",17),n(44,"mat-icon",16),i(45,"Corals"),e(),t(46,"button",17),n(47,"mat-icon",16),i(48,"Arachnids"),e(),t(49,"button",17),n(50,"mat-icon",16),i(51,"Velvet worms"),e(),t(52,"button",17),n(53,"mat-icon",16),i(54,"Horseshoe crabs"),e()(),t(55,"mat-menu",14,3)(57,"button",17),n(58,"mat-icon",16),i(59,"Baikal oilfish"),e(),t(60,"button",17),n(61,"mat-icon",16),i(62,"Bala shark"),e(),t(63,"button",17),n(64,"mat-icon",16),i(65,"Ballan wrasse"),e(),t(66,"button",17),n(67,"mat-icon",16),i(68,"Bamboo shark"),e(),t(69,"button",17),n(70,"mat-icon",16),i(71,"Banded killifish"),e()(),t(72,"mat-menu",14,4)(74,"button",17),n(75,"mat-icon",16),i(76,"Sonoran desert toad"),e(),t(77,"button",17),n(78,"mat-icon",16),i(79,"Western toad"),e(),t(80,"button",17),n(81,"mat-icon",16),i(82,"Arroyo toad"),e(),t(83,"button",17),n(84,"mat-icon",16),i(85,"Yosemite toad"),e()(),t(86,"mat-menu",14,5)(88,"button",17),n(89,"mat-icon",16),i(90,"Banded Day Gecko"),e(),t(91,"button",17),n(92,"mat-icon",16),i(93,"Banded Gila Monster"),e(),t(94,"button",17),n(95,"mat-icon",16),i(96,"Black Tree Monitor"),e(),t(97,"button",17),n(98,"mat-icon",16),i(99,"Blue Spiny Lizard"),e(),t(100,"button",18),n(101,"mat-icon",16),i(102,"Velociraptor"),e()()(),t(103,"div")(104,"button",13),i(105,"Menu"),e(),t(106,"mat-menu",14,6)(108,"button",17),n(109,"mat-icon",16),i(110,"Item 1"),e(),t(111,"button",17),n(112,"mat-icon",16),i(113,"Item 2"),e()()()(),t(114,"div",19),n(115,"mat-divider"),e()(),t(116,"div",20)(117,"div")(118,"button",13),i(119,"Above"),e(),t(120,"mat-menu",21,7)(122,"button",17),i(123,"Item 1"),e(),t(124,"button",17),i(125,"Item 2"),e()()(),t(126,"div")(127,"button",13),i(128,"Below"),e(),t(129,"mat-menu",22,8)(131,"button",17),i(132,"Item 1"),e(),t(133,"button",17),i(134,"Item 2"),e()()(),t(135,"div")(136,"button",13),i(137,"Before"),e(),t(138,"mat-menu",23,9)(140,"button",17),i(141,"Item 1"),e(),t(142,"button",17),i(143,"Item 2"),e()()(),t(144,"div")(145,"button",13),i(146,"After"),e(),t(147,"mat-menu",24,10)(149,"button",17),i(150,"Item 1"),e(),t(151,"button",17),i(152,"Item 2"),e()()()(),t(153,"div",19),n(154,"mat-divider"),e()),o&2){let v=b(8),k=b(16),B=b(33),_t=b(56),Ot=b(73),yt=b(87),It=b(107),Pt=b(121),kt=b(130),Tt=b(139),At=b(148);s(5),d("matMenuTriggerFor",v),s(4),d("matMenuTriggerFor",k),s(3),d("matMenuTriggerFor",B),s(5),d("matMenuTriggerFor",_t),s(3),d("matMenuTriggerFor",Ot),s(3),d("matMenuTriggerFor",yt),s(81),d("matMenuTriggerFor",It),s(14),d("matMenuTriggerFor",Pt),s(9),d("matMenuTriggerFor",kt),s(9),d("matMenuTriggerFor",Tt),s(9),d("matMenuTriggerFor",At)}},dependencies:[g,h,T,Oe,_e,ye],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var xt=(()=>{let r=class r{constructor(m){this.snackbarService=m}};r.\u0275fac=function(o){return new(o||r)(u(tt))},r.\u0275cmp=c({type:r,selectors:[["ms-notifications-demo"]],decls:20,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-8"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Notifications"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Banners"),e(),t(7,"div",2)(8,"div")(9,"button",3),p("click",function(){return l.snackbarService.showSuccess("Example Success")}),i(10," Open Success "),e()(),t(11,"div")(12,"button",3),p("click",function(){return l.snackbarService.showError("Example Error")}),i(13,"Open Error"),e()(),t(14,"div")(15,"button",3),p("click",function(){return l.snackbarService.showInfo("Example Info")}),i(16,"Open Info"),e()(),t(17,"div")(18,"button",3),p("click",function(){return l.snackbarService.showWarning("Example Warning")}),i(19," Open Warning "),e()()()())},dependencies:[g,h],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();function Vt(a,r){a&1&&(t(0,"mat-header-cell"),i(1," No. "),e())}function jt(a,r){if(a&1&&(t(0,"mat-cell")(1,"b"),i(2),e()()),a&2){let f=r.$implicit;s(2),pe(f.position)}}function Ht(a,r){a&1&&(t(0,"mat-header-cell"),i(1," Name "),e())}function Ut(a,r){if(a&1&&(t(0,"mat-cell"),i(1),e()),a&2){let f=r.$implicit;s(),I(" ",f.name," ")}}function zt(a,r){a&1&&(t(0,"mat-header-cell"),i(1," Weight "),e())}function Gt(a,r){if(a&1&&(t(0,"mat-cell"),i(1),e()),a&2){let f=r.$implicit;s(),I(" ",f.weight," ")}}function Kt(a,r){a&1&&(t(0,"mat-header-cell"),i(1," Symbol "),e())}function Xt(a,r){if(a&1&&(t(0,"mat-cell"),i(1),e()),a&2){let f=r.$implicit;s(),I(" ",f.symbol," ")}}function $t(a,r){a&1&&n(0,"mat-header-row")}function Yt(a,r){a&1&&n(0,"mat-row")}var ht=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"}],Ct=(()=>{let r=class r{constructor(){this.displayedColumnsSimple=["position","name","weight","symbol"],this.dataSourceSimple=ht,this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=new Qe(ht),this.selection=new Me(!0,[])}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-tables-demo"]],decls:22,vars:3,consts:[[1,"line"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"ms-table",3,"dataSource"],["matColumnDef","position"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Tables"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"p",2),i(6,"History"),e(),t(7,"mat-table",3),G(8,4),y(9,Vt,2,0,"mat-header-cell",5)(10,jt,3,1,"mat-cell",6),K(),G(11,7),y(12,Ht,2,0,"mat-header-cell",5)(13,Ut,2,1,"mat-cell",6),K(),G(14,8),y(15,zt,2,0,"mat-header-cell",5)(16,Gt,2,1,"mat-cell",6),K(),G(17,9),y(18,Kt,2,0,"mat-header-cell",5)(19,Xt,2,1,"mat-cell",6),K(),y(20,$t,1,0,"mat-header-row",10)(21,Yt,1,0,"mat-row",11),e()()),o&2&&(s(7),d("dataSource",l.dataSourceSimple),s(13),d("matHeaderRowDef",l.displayedColumnsSimple),s(),d("matRowDefColumns",l.displayedColumnsSimple))},dependencies:[g,Ve,He,Ke,Ue,je,Xe,ze,Ge,$e,Ye,U],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var wt=(()=>{let r=class r{constructor(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-typography-demo"]],decls:76,vars:0,consts:[[1,"line"],[1,"heading-primary-title"],[1,"heading-section-title"],[1,"heading-sub-section-title"],[1,"paragraph-regular-p3-default"],[1,"paragraph-bold-p3-small-bold"],[1,"paragraph-semibold-p3-small-emphasis"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p4-small"],[1,"paragraph-semibold-p4-xSmall"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],[1,"mat-headline-1"],[1,"mat-headline-2"],[1,"mat-headline-3"],[1,"mat-headline-4"],[1,"subtitle-1"],[1,"subtitle-2"],[1,"mat-body-1"],[1,"mat-body-2"],[1,"mat-caption"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Typograpghy"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"h1"),i(5,"Custom Typography (Figma)"),e(),t(6,"p",1),i(7,"heading-primary-title"),e(),t(8,"p",2),i(9,"heading-section-title"),e(),t(10,"p",3),i(11,"heading-sub-section-title"),e(),t(12,"p",4),i(13,"paragraph-regular-p3-default"),e(),t(14,"p",5),i(15,"paragraph-bold-p3-small-bold"),e(),t(16,"p",6),i(17,"paragraph-semibold-p3-small-emphasis"),e(),t(18,"p",7),i(19,"paragraph-semibold-p3-default-emphasis"),e(),t(20,"p",8),i(21,"paragraph-regular-p4-small"),e(),t(22,"p",9),i(23,"paragraph-semibold-p4-xSmall"),e(),n(24,"mat-divider")(25,"br"),t(26,"h1"),i(27,"Key Value Pair"),e(),t(28,"div",10)(29,"div",11)(30,"div",12),i(31,"Key 1:"),e(),t(32,"div",13),i(33,"Value 1"),e()(),t(34,"div",11)(35,"div",12),i(36,"Key 2:"),e(),t(37,"div",13),i(38,"Value 2"),e()()(),n(39,"mat-divider")(40,"br"),t(41,"h1"),i(42,"Angular Material Custom Typograpgy"),e(),t(43,"p",14),i(44,"mat-headline-1"),e(),t(45,"p",15),i(46,"mat-headline-2"),e(),t(47,"p",16),i(48,"mat-headline-3"),e(),t(49,"p",17),i(50,"mat-headline-4"),e(),t(51,"h1"),i(52,"Heading 1"),e(),t(53,"h2"),i(54,"Heading 2"),e(),t(55,"h3"),i(56,"Heading 3"),e(),t(57,"h4"),i(58,"Heading 4"),e(),t(59,"h5"),i(60,"Heading 5"),e(),t(61,"h6"),i(62,"Heading 6"),e(),n(63,"br"),t(64,"p",18),i(65,"subtitle-1"),e(),t(66,"p",19),i(67,"subtitle-2"),e(),n(68,"br"),t(69,"p",20),i(70,"mat-body-1"),e(),t(71,"p",21),i(72,"mat-body-2"),e(),n(73,"br"),t(74,"p",22),i(75,"mat-caption"),e())},dependencies:[g],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var Qt=()=>["Iterative Magnitude Pruning","One-shot Magnitude Pruning"],Zt=()=>["Yes","No"],Jt=()=>["Option 1","Option 2","Option 3","Option 4"],Dt=(()=>{let r=class r{constructor(){}handleSelected(m){console.log("Selected option:",m)}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ag-wizard-demo"]],decls:33,vars:6,consts:[["stepper",""],[1,"line"],[1,"section"],[1,"ms-wizard"],[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary","matStepperNext",""],["mat-button","","matStepperPrevious","",1,"mr-3"],["fontSet","ms","fontIcon","icon-ArrowLeft"]],template:function(o,l){if(o&1){let v=N();t(0,"h1"),i(1,"Wizard"),e(),t(2,"div",1),n(3,"mat-divider"),e(),n(4,"br"),t(5,"div",2)(6,"mat-stepper",3,0)(8,"mat-step")(9,"p",4),i(10,"Recommended Algorithm:"),e(),t(11,"ms-card-selector",5),p("selectedOption",function(B){return M(v),_(l.handleSelected(B))}),e(),t(12,"div",6)(13,"button",7),i(14,"Next"),e()()(),t(15,"mat-step")(16,"p",4),i(17,"Do you want to have a similar or higher accuracy?"),e(),t(18,"ms-card-selector",5),p("selectedOption",function(B){return M(v),_(l.handleSelected(B))}),e(),t(19,"div",6)(20,"button",8),n(21,"mat-icon",9),i(22," Previous "),e(),t(23,"button",7),i(24,"Next"),e()()(),t(25,"mat-step")(26,"p",4),i(27,"Example question?"),e(),t(28,"ms-card-selector",5),p("selectedOption",function(B){return M(v),_(l.handleSelected(B))}),e(),t(29,"div",6)(30,"button",8),n(31,"mat-icon",9),i(32," Previous "),e()()()()()}o&2&&(s(11),d("options",j(3,Qt)),s(7),d("options",j(4,Zt)),s(10),d("options",j(5,Jt)))},dependencies:[g,h,T,Re,Fe,We,Be,z]});let a=r;return a})();var ei=[{path:"",component:lt,children:[{path:"",redirectTo:x.DEMO.BUTTONS,pathMatch:"full"},{path:x.DEMO.BUTTONS,component:it},{path:x.DEMO.FORM_FIELDS,component:de},{path:x.DEMO.CHECKBOXES,component:at},{path:x.DEMO.TYPOGRAPHY,component:wt},{path:x.DEMO.TABLE,component:Ct},{path:x.DEMO.ICONS,component:Et},{path:x.DEMO.MENU,component:bt},{path:x.DEMO.CARDS,component:rt},{path:x.DEMO.CHIPS,component:mt},{path:x.DEMO.NOTIFICATIONS,component:xt},{path:x.DEMO.WIZARD,component:Dt},{path:x.DEMO.DRAWER,component:St}]}],Mt=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275mod=Y({type:r}),r.\u0275inj=$({imports:[X.forChild(ei),X]});let a=r;return a})();var gr=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275mod=Y({type:r}),r.\u0275inj=$({providers:[le],imports:[X,Se,Je,Mt,z,E]});let a=r;return a})();export{gr as DemoModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-J5WMTUHK.js b/frontend/server/modelsmith-build/browser/chunk-WAWPN2GA.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-J5WMTUHK.js rename to frontend/server/modelsmith-build/browser/chunk-WAWPN2GA.js index e914d214..c1c2f852 100644 --- a/frontend/server/modelsmith-build/browser/chunk-J5WMTUHK.js +++ b/frontend/server/modelsmith-build/browser/chunk-WAWPN2GA.js @@ -1 +1 @@ -import{a as X}from"./chunk-IUBE55F7.js";import{a as B,b as q}from"./chunk-ZPFJPO4G.js";import{$c as U,Cc as T,Da as b,Hc as j,Na as s,P as d,T as I,U as h,V as S,Wc as H,Zb as M,Zc as G,_b as O,bd as V,ea as w,hc as N,id as k,ja as g,jc as x,ka as m,kc as u,m as v,na as P,nc as L,oc as A,pa as _,pb as E,rd as W,sa as c,sc as z,uc as R,wa as o,xa as r,xc as F,ya as p,zc as D}from"./chunk-XZNUB5IR.js";var J=(()=>{let t=class t{constructor(e,i,f){this.el=e,this.renderer=i,this.viewContainer=f,this.isHidden=!0}ngOnInit(){let e=this.el.nativeElement,i=this.createIcon();this.setupIconInContainer(e,i),i.location.nativeElement.addEventListener("click",()=>{this.toggleVisibility(e,i.instance)})}createIcon(){let e=this.viewContainer.createComponent(j);return e.instance.fontIcon=this.isHidden?"visibility_off":"visibility",e}setupIconInContainer(e,i){let f=this.renderer.createElement("div");this.renderer.addClass(f,t.CLASS_ICON_SUFFIX),this.renderer.setStyle(i.location.nativeElement,"padding","0"),this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),this.renderer.appendChild(f,i.location.nativeElement),this.renderer.appendChild(e?.parentElement?.parentElement,f)}toggleVisibility(e,i){this.isHidden=!this.isHidden,this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),i.fontIcon=this.isHidden?"visibility_off":"visibility"}};t.CLASS_ICON_SUFFIX="mat-mdc-form-field-icon-suffix",t.\u0275fac=function(i){return new(i||t)(m(w),m(P),m(_))},t.\u0275dir=S({type:t,selectors:[["","msPasswordToggle",""]],standalone:!0});let n=t;return n})();var a,C=(a=class{constructor(t,l){this.fb=t,this.authFacadeService=l,this.CONTROL_NAMES={EMAIL:"email",PASSWORD:"password"}}ngOnInit(){this.initForm()}initForm(){this.form=this.fb.group({[this.CONTROL_NAMES.EMAIL]:["alexander@cisco.com",[u.email,u.required]],[this.CONTROL_NAMES.PASSWORD]:["GUfCRHz7VD9R",[u.required]]})}get emailControl(){return this.form.get(this.CONTROL_NAMES.EMAIL)}get passwordControl(){return this.form.get(this.CONTROL_NAMES.PASSWORD)}login(){let t=this.form.getRawValue();this.authFacadeService.dispatch(V.login(t))}},a.\u0275fac=function(l){return new(l||a)(m(D),m(k))},a.\u0275cmp=I({type:a,selectors:[["ms-login"]],decls:24,vars:4,consts:[[1,"login-container"],[1,"logo-section"],["src","/assets/logo/login-logo.svg","alt","ModelSmith Logo"],[1,"login-title"],[1,"login-subtitle"],[1,"login-section"],[3,"submit","formGroup"],[1,"form-field-container","ms-white-form-field"],["matInput","","msErrorDisplay","","autocomplete","current-password",3,"formControlName"],["msPasswordToggle","","msErrorDisplay","","matInput","","autocomplete","current-password",3,"formControlName"],[1,"mt-[2px]"],["type","submit","mat-raised-button","","color","primary",1,"w-full",3,"disabled"],["styleMode","fullWidth"]],template:function(l,e){l&1&&(o(0,"ms-background-gradient")(1,"div",0)(2,"div",1),p(3,"img",2),o(4,"div",3),s(5,"ModelSmith"),r(),o(6,"div",4),s(7,"A super cool compression tool"),r()(),o(8,"div",5)(9,"form",6),b("submit",function(){return e.login()}),o(10,"div",7)(11,"mat-label"),s(12," Email "),r(),o(13,"mat-form-field"),p(14,"input",8),r()(),o(15,"div",7)(16,"mat-label"),s(17," Password "),r(),o(18,"mat-form-field"),p(19,"input",9),r()(),o(20,"div",10)(21,"button",11),s(22," Login "),r()()()()(),p(23,"ms-footer",12),r()),l&2&&(g(9),c("formGroup",e.form),g(5),c("formControlName",e.CONTROL_NAMES.EMAIL),g(5),c("formControlName",e.CONTROL_NAMES.PASSWORD),g(2),c("disabled",e.form.invalid))},dependencies:[N,T,U,G,H,z,x,L,A,R,F,B,J,X],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:95%;background:linear-gradient(to left,transparent,var(--backgrounds-50),transparent);padding:60px 30px;text-align:center}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;margin-bottom:10px}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-size:2.5rem;line-height:3.359rem;font-weight:400;color:var(--login-title)}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-subtitle[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem;color:var(--foregrounds-550)}.login-container[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%]{margin-top:20px;width:100%;max-width:400px}"]}),a);C=v([W()],C);var Y=[{path:"",pathMatch:"full",redirectTo:O.AUTH.LOGIN},{path:O.AUTH.LOGIN,component:C}],K=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[M.forChild(Y),M]});let n=t;return n})();var Pt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[E,K,q]});let n=t;return n})();export{Pt as AuthModule}; +import{a as X}from"./chunk-HCG7N3XK.js";import{a as B,b as q}from"./chunk-KK5JZLDV.js";import{$c as U,Cc as T,Da as b,Hc as j,Na as s,P as d,T as I,U as h,V as S,Wc as H,Zb as M,Zc as G,_b as O,bd as V,ea as w,hc as N,id as k,ja as g,jc as x,ka as m,kc as u,m as v,na as P,nc as L,oc as A,pa as _,pb as E,rd as W,sa as c,sc as z,uc as R,wa as o,xa as r,xc as F,ya as p,zc as D}from"./chunk-JA5VSLUI.js";var J=(()=>{let t=class t{constructor(e,i,f){this.el=e,this.renderer=i,this.viewContainer=f,this.isHidden=!0}ngOnInit(){let e=this.el.nativeElement,i=this.createIcon();this.setupIconInContainer(e,i),i.location.nativeElement.addEventListener("click",()=>{this.toggleVisibility(e,i.instance)})}createIcon(){let e=this.viewContainer.createComponent(j);return e.instance.fontIcon=this.isHidden?"visibility_off":"visibility",e}setupIconInContainer(e,i){let f=this.renderer.createElement("div");this.renderer.addClass(f,t.CLASS_ICON_SUFFIX),this.renderer.setStyle(i.location.nativeElement,"padding","0"),this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),this.renderer.appendChild(f,i.location.nativeElement),this.renderer.appendChild(e?.parentElement?.parentElement,f)}toggleVisibility(e,i){this.isHidden=!this.isHidden,this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),i.fontIcon=this.isHidden?"visibility_off":"visibility"}};t.CLASS_ICON_SUFFIX="mat-mdc-form-field-icon-suffix",t.\u0275fac=function(i){return new(i||t)(m(w),m(P),m(_))},t.\u0275dir=S({type:t,selectors:[["","msPasswordToggle",""]],standalone:!0});let n=t;return n})();var a,C=(a=class{constructor(t,l){this.fb=t,this.authFacadeService=l,this.CONTROL_NAMES={EMAIL:"email",PASSWORD:"password"}}ngOnInit(){this.initForm()}initForm(){this.form=this.fb.group({[this.CONTROL_NAMES.EMAIL]:["alexander@cisco.com",[u.email,u.required]],[this.CONTROL_NAMES.PASSWORD]:["GUfCRHz7VD9R",[u.required]]})}get emailControl(){return this.form.get(this.CONTROL_NAMES.EMAIL)}get passwordControl(){return this.form.get(this.CONTROL_NAMES.PASSWORD)}login(){let t=this.form.getRawValue();this.authFacadeService.dispatch(V.login(t))}},a.\u0275fac=function(l){return new(l||a)(m(D),m(k))},a.\u0275cmp=I({type:a,selectors:[["ms-login"]],decls:24,vars:4,consts:[[1,"login-container"],[1,"logo-section"],["src","/assets/logo/login-logo.svg","alt","ModelSmith Logo"],[1,"login-title"],[1,"login-subtitle"],[1,"login-section"],[3,"submit","formGroup"],[1,"form-field-container","ms-white-form-field"],["matInput","","msErrorDisplay","","autocomplete","current-password",3,"formControlName"],["msPasswordToggle","","msErrorDisplay","","matInput","","autocomplete","current-password",3,"formControlName"],[1,"mt-[2px]"],["type","submit","mat-raised-button","","color","primary",1,"w-full",3,"disabled"],["styleMode","fullWidth"]],template:function(l,e){l&1&&(o(0,"ms-background-gradient")(1,"div",0)(2,"div",1),p(3,"img",2),o(4,"div",3),s(5,"ModelSmith"),r(),o(6,"div",4),s(7,"A super cool compression tool"),r()(),o(8,"div",5)(9,"form",6),b("submit",function(){return e.login()}),o(10,"div",7)(11,"mat-label"),s(12," Email "),r(),o(13,"mat-form-field"),p(14,"input",8),r()(),o(15,"div",7)(16,"mat-label"),s(17," Password "),r(),o(18,"mat-form-field"),p(19,"input",9),r()(),o(20,"div",10)(21,"button",11),s(22," Login "),r()()()()(),p(23,"ms-footer",12),r()),l&2&&(g(9),c("formGroup",e.form),g(5),c("formControlName",e.CONTROL_NAMES.EMAIL),g(5),c("formControlName",e.CONTROL_NAMES.PASSWORD),g(2),c("disabled",e.form.invalid))},dependencies:[N,T,U,G,H,z,x,L,A,R,F,B,J,X],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:95%;background:linear-gradient(to left,transparent,var(--backgrounds-50),transparent);padding:60px 30px;text-align:center}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;margin-bottom:10px}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-size:2.5rem;line-height:3.359rem;font-weight:400;color:var(--login-title)}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-subtitle[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem;color:var(--foregrounds-550)}.login-container[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%]{margin-top:20px;width:100%;max-width:400px}"]}),a);C=v([W()],C);var Y=[{path:"",pathMatch:"full",redirectTo:O.AUTH.LOGIN},{path:O.AUTH.LOGIN,component:C}],K=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[M.forChild(Y),M]});let n=t;return n})();var Pt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[E,K,q]});let n=t;return n})();export{Pt as AuthModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-DBMLRUGV.js b/frontend/server/modelsmith-build/browser/chunk-WB7K3GO6.js similarity index 93% rename from frontend/server/modelsmith-build/browser/chunk-DBMLRUGV.js rename to frontend/server/modelsmith-build/browser/chunk-WB7K3GO6.js index 369323b4..d256ce83 100644 --- a/frontend/server/modelsmith-build/browser/chunk-DBMLRUGV.js +++ b/frontend/server/modelsmith-build/browser/chunk-WB7K3GO6.js @@ -1,3 +1,3 @@ -import{a as B,b as Wt,c as cn,d as Fe,e as H,f as U,h as De,i as Ct}from"./chunk-XSYDPZOE.js";import{a as xe}from"./chunk-7TE64OY5.js";import{b as yt,e as Ut,i as va,k as _a,m as ya}from"./chunk-VMZY47C3.js";import{b as fa}from"./chunk-ZPFJPO4G.js";import{$a as Le,A as Q,Aa as At,Ad as Pe,Ca as _e,Cc as Me,Cd as te,Da as Rt,Ea as ht,G as Z,Hc as be,Ja as ea,Ka as na,La as aa,Ma as ye,Md as $t,Na as A,Oa as ia,P as pe,Pa as Ce,Qa as an,Qd as pa,Ra as rn,Sa as on,T as G,U as ge,W as Zn,Wa as ra,Ya as we,Z as fe,Za as Se,Zb as sn,Zd as Ee,_ as ve,a as x,b as T,ea as Jn,f as M,fb as oa,gb as Ot,hb as sa,ib as ca,ja as S,je as ga,ka as W,m as lt,mb as la,na as ta,nc as ua,ob as ha,pb as da,qa as J,rc as ma,rd as _t,sa as L,sd as kt,ud as Jt,w as ot,wa as w,wd as Ae,xa as v,ya as P,yd as Ie,za as bt}from"./chunk-XZNUB5IR.js";var Mi=Object.defineProperty,bi=(s,n,a)=>n in s?Mi(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a,F=(s,n,a)=>bi(s,typeof n!="symbol"?n+"":n,a),Ai=class{requestAnimationFrame(s){return requestAnimationFrame(s)}cancelAnimationFrame(s){cancelAnimationFrame(s)}},Ii=class{constructor(){F(this,"_lastHandleId",0),F(this,"_lastImmediate",null)}requestAnimationFrame(s){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{s(Date.now())}),this._lastHandleId}cancelAnimationFrame(s){this._lastImmediate&&clearImmediate(this._lastImmediate)}},Pi=class{constructor(){F(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new Ai:new Ii}requestAnimationFrame(s){return this._strategy.requestAnimationFrame(s)}cancelAnimationFrame(s){this._strategy.cancelAnimationFrame(s)}},Pt=typeof window<"u"&&typeof window.document<"u",Te={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},Ei=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,c,p,_=new Promise((t,e)=>{c=t,p=e}),q=Object.assign({},a),rt="./this.program",V="";typeof document<"u"&&document.currentScript&&(V=document.currentScript.src),s&&(V=s),V.startsWith("blob:")?V="":V=V.substr(0,V.replace(/[?#].*/,"").lastIndexOf("/")+1);var Et=a.print||console.log.bind(console),xt=a.printErr||console.error.bind(console);Object.assign(a,q),q=null,a.thisProgram&&(rt=a.thisProgram);var jt;a.wasmBinary&&(jt=a.wasmBinary);var ae,vn=!1,wt,O,Ft,zt,z,D,_n,yn;function Cn(){var t=ae.buffer;a.HEAP8=wt=new Int8Array(t),a.HEAP16=Ft=new Int16Array(t),a.HEAPU8=O=new Uint8Array(t),a.HEAPU16=zt=new Uint16Array(t),a.HEAP32=z=new Int32Array(t),a.HEAPU32=D=new Uint32Array(t),a.HEAPF32=_n=new Float32Array(t),a.HEAPF64=yn=new Float64Array(t)}var wn=[],Sn=[],Ln=[];function $a(){var t=a.preRun.shift();wn.unshift(t)}var St=0,Bt=null;function ie(t){throw a.onAbort?.(t),t="Aborted("+t+")",xt(t),vn=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),p(t),t}var Mn=t=>t.startsWith("data:application/octet-stream;base64,"),Dt;if(Dt="DotLottiePlayer.wasm",!Mn(Dt)){var bn=Dt;Dt=a.locateFile?a.locateFile(bn,V):V+bn}function An(t){if(t==Dt&&jt)return new Uint8Array(jt);throw"both async and sync fetching of the wasm failed"}function Ua(t){return jt||typeof fetch!="function"?Promise.resolve().then(()=>An(t)):fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>An(t))}function In(t,e,i){return Ua(t).then(r=>WebAssembly.instantiate(r,e)).then(i,r=>{xt(`failed to asynchronously prepare wasm: ${r}`),ie(r)})}function Wa(t,e){var i=Dt;return jt||typeof WebAssembly.instantiateStreaming!="function"||Mn(i)||typeof fetch!="function"?In(i,t,e):fetch(i,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(e,function(o){return xt(`wasm streaming compile failed: ${o}`),xt("falling back to ArrayBuffer instantiation"),In(i,t,e)}))}var Ue=t=>{for(;0{var r=e+i;for(i=e;t[i]&&!(i>=r);)++i;if(16o?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else r+=String.fromCharCode(o)}return r};class Na{constructor(e){this.ya=e-24}}var En=0,xn=t=>{for(var e=0,i=0;i=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++i):e+=3}return e},Fn=(t,e,i,r)=>{if(0=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(127>=l){if(i>=r)break;e[i++]=l}else{if(2047>=l){if(i+1>=r)break;e[i++]=192|l>>6}else{if(65535>=l){if(i+2>=r)break;e[i++]=224|l>>12}else{if(i+3>=r)break;e[i++]=240|l>>18,e[i++]=128|l>>12&63}e[i++]=128|l>>6&63}e[i++]=128|l&63}}e[i]=0}},re={},We=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Ht(t){return this.fromWireType(D[t>>2])}var Tt={},Mt={},oe={},Yt,ft=(t,e,i)=>{function r(d){if(d=i(d),d.length!==t.length)throw new Yt("Mismatched type converter count");for(var g=0;g{Mt.hasOwnProperty(d)?o[g]=Mt[d]:(l.push(d),Tt.hasOwnProperty(d)||(Tt[d]=[]),Tt[d].push(()=>{o[g]=Mt[d],++u,u===l.length&&r(o)}))}),l.length===0&&r(o)},Dn,N=t=>{for(var e="";O[t];)e+=Dn[O[t++]];return e},b;function ja(t,e,i={}){var r=e.name;if(!t)throw new b(`type "${r}" must have a positive integer typeid pointer`);if(Mt.hasOwnProperty(t)){if(i.ib)return;throw new b(`Cannot register type '${r}' twice`)}Mt[t]=e,delete oe[t],Tt.hasOwnProperty(t)&&(e=Tt[t],delete Tt[t],e.forEach(o=>o()))}function tt(t,e,i={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ja(t,e,i)}var Ne=t=>{throw new b(t.ma.za.xa.name+" instance already deleted")},je=!1,Tn=()=>{},Rn=(t,e,i)=>e===i?t:i.Ca===void 0?null:(t=Rn(t,e,i.Ca),t===null?null:i.ab(t)),On={},Vt=[],ze=()=>{for(;Vt.length;){var t=Vt.pop();t.ma.Ka=!1,t.delete()}},Gt,Xt={},za=(t,e)=>{if(e===void 0)throw new b("ptr should not be undefined");for(;t.Ca;)e=t.Na(e),t=t.Ca;return Xt[e]},se=(t,e)=>{if(!e.za||!e.ya)throw new Yt("makeClassHandle requires ptr and ptrType");if(!!e.Da!=!!e.Aa)throw new Yt("Both smartPtrType and smartPtr must be specified");return e.count={value:1},qt(Object.create(t,{ma:{value:e,writable:!0}}))},qt=t=>typeof FinalizationRegistry>"u"?(qt=e=>e,t):(je=new FinalizationRegistry(e=>{e=e.ma,--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya))}),qt=e=>{var i=e.ma;return i.Aa&&je.register(e,{ma:i},e),e},Tn=e=>{je.unregister(e)},qt(t));function ce(){}var Kt=(t,e)=>Object.defineProperty(e,"name",{value:t}),kn=(t,e,i)=>{if(t[e].Ba===void 0){var r=t[e];t[e]=function(...o){if(!t[e].Ba.hasOwnProperty(o.length))throw new b(`Function '${i}' called with an invalid number of arguments (${o.length}) - expects one of (${t[e].Ba})!`);return t[e].Ba[o.length].apply(this,o)},t[e].Ba=[],t[e].Ba[r.Oa]=r}},Be=(t,e,i)=>{if(a.hasOwnProperty(t)){if(i===void 0||a[t].Ba!==void 0&&a[t].Ba[i]!==void 0)throw new b(`Cannot register public name '${t}' twice`);if(kn(a,t,t),a.hasOwnProperty(i))throw new b(`Cannot register multiple overloads of a function with the same number of arguments (${i})!`);a[t].Ba[i]=e}else a[t]=e,i!==void 0&&(a[t].vb=i)},Ba=t=>{if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t};function Ha(t,e,i,r,o,l,u,d){this.name=t,this.constructor=e,this.La=i,this.Fa=r,this.Ca=o,this.cb=l,this.Na=u,this.ab=d,this.kb=[]}var He=(t,e,i)=>{for(;e!==i;){if(!e.Na)throw new b(`Expected null or instance of ${i.name}, got an instance of ${e.name}`);t=e.Na(t),e=e.Ca}return t};function Ya(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Va(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);if(this.Qa){var i=this.Ua();return t!==null&&t.push(this.Fa,i),i}return 0}if(!e||!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);if(i=He(e.ma.ya,e.ma.za.xa,this.xa),this.Qa){if(e.ma.Aa===void 0)throw new b("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(e.ma.Da===this)i=e.ma.Aa;else throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);break;case 1:i=e.ma.Aa;break;case 2:if(e.ma.Da===this)i=e.ma.Aa;else{var r=e.clone();i=this.lb(i,he(()=>r.delete())),t!==null&&t.push(this.Fa,i)}break;default:throw new b("Unsupporting sharing policy")}}return i}function Ga(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.za.name} to parameter type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Qt(t,e,i,r,o,l,u,d,g,m,f){this.name=t,this.xa=e,this.Ta=i,this.Pa=r,this.Qa=o,this.jb=l,this.pb=u,this.Za=d,this.Ua=g,this.lb=m,this.Fa=f,o||e.Ca!==void 0?this.toWireType=Va:(this.toWireType=r?Ya:Ga,this.Ea=null)}var $n=(t,e,i)=>{if(!a.hasOwnProperty(t))throw new Yt("Replacing nonexistent public symbol");a[t].Ba!==void 0&&i!==void 0?a[t].Ba[i]=e:(a[t]=e,a[t].Oa=i)},K,Xa=(t,e,i=[])=>(t.includes("j")?(t=t.replace(/p/g,"i"),e=(0,a["dynCall_"+t])(e,...i)):e=K.get(e)(...i),e),qa=(t,e)=>(...i)=>Xa(t,e,i),Y=(t,e)=>{t=N(t);var i=t.includes("j")?qa(t,e):K.get(e);if(typeof i!="function")throw new b(`unknown function pointer with signature ${t}: ${e}`);return i},Un,Wn=t=>{t=Xn(t);var e=N(t);return ct(t),e},le=(t,e)=>{function i(l){o[l]||Mt[l]||(oe[l]?oe[l].forEach(i):(r.push(l),o[l]=!0))}var r=[],o={};throw e.forEach(i),new Un(`${t}: `+r.map(Wn).join([", "]))},Ye=(t,e)=>{for(var i=[],r=0;r>2]);return i};function Ka(t){for(var e=1;el)throw new b("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=e[1]!==null&&i!==null,d=Ka(e),g=e[0].name!=="void",m=l-2,f=Array(m),I=[],E=[];return Kt(t,function(...h){if(h.length!==m)throw new b(`function ${t} called with ${h.length} arguments, expected ${m}`);if(E.length=0,I.length=u?2:1,I[0]=o,u){var y=e[1].toWireType(E,this);I[1]=y}for(var C=0;C{t=t.trim();let e=t.indexOf("(");return e!==-1?t.substr(0,e):t},Ge=[],st=[],Xe=t=>{9{if(!t)throw new b("Cannot use deleted val. handle = "+t);return st[t]},he=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let e=Ge.pop()||st.length;return st[e]=t,st[e+1]=1,e}},jn={name:"emscripten::val",fromWireType:t=>{var e=qe(t);return Xe(t),e},toWireType:(t,e)=>he(e),argPackAdvance:8,readValueFromPointer:Ht,Ea:null},Qa=(t,e,i)=>{switch(e){case 1:return i?function(r){return this.fromWireType(wt[r])}:function(r){return this.fromWireType(O[r])};case 2:return i?function(r){return this.fromWireType(Ft[r>>1])}:function(r){return this.fromWireType(zt[r>>1])};case 4:return i?function(r){return this.fromWireType(z[r>>2])}:function(r){return this.fromWireType(D[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Ke=(t,e)=>{var i=Mt[t];if(i===void 0)throw t=`${e} has unknown type ${Wn(t)}`,new b(t);return i},Qe=t=>{if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t},Za=(t,e)=>{switch(e){case 4:return function(i){return this.fromWireType(_n[i>>2])};case 8:return function(i){return this.fromWireType(yn[i>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Ja=(t,e,i)=>{switch(e){case 1:return i?r=>wt[r]:r=>O[r];case 2:return i?r=>Ft[r>>1]:r=>zt[r>>1];case 4:return i?r=>z[r>>2]:r=>D[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},zn=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,ti=(t,e)=>{for(var i=t>>1,r=i+e/2;!(i>=r)&&zt[i];)++i;if(i<<=1,32=e/2);++r){var o=Ft[t+2*r>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},ei=(t,e,i)=>{if(i??(i=2147483647),2>i)return 0;i-=2;var r=e;i=i<2*t.length?i/2:t.length;for(var o=0;o>1]=t.charCodeAt(o),e+=2;return Ft[e>>1]=0,e-r},ni=t=>2*t.length,ai=(t,e)=>{for(var i=0,r="";!(i>=e/4);){var o=z[t+4*i>>2];if(o==0)break;++i,65536<=o?(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023)):r+=String.fromCharCode(o)}return r},ii=(t,e,i)=>{if(i??(i=2147483647),4>i)return 0;var r=e;i=r+i-4;for(var o=0;o=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(z[e>>2]=l,e+=4,e+4>i)break}return z[e>>2]=0,e-r},ri=t=>{for(var e=0,i=0;i=r&&++i,e+=4}return e},Ze=[],oi=t=>{var e=Ze.length;return Ze.push(t),e},si=(t,e)=>{for(var i=Array(t),r=0;r>2],"parameter "+r);return i},ci=Reflect.construct,Je={},Bn=()=>{if(!tn){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:rt||"./this.program"},e;for(e in Je)Je[e]===void 0?delete t[e]:t[e]=Je[e];var i=[];for(e in t)i.push(`${e}=${t[e]}`);tn=i}return tn},tn,li=[null,[],[]],hi=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);ie("initRandomDevice")},Hn=t=>(Hn=hi())(t),de=t=>t%4===0&&(t%100!==0||t%400===0),Yn=[31,29,31,30,31,30,31,31,30,31,30,31],Vn=[31,28,31,30,31,30,31,31,30,31,30,31];function di(t){var e=Array(xn(t)+1);return Fn(t,e,0,e.length),e}var ui=(t,e,i,r)=>{function o(h,y,C){for(h=typeof h=="number"?h.toString():h||"";h.lengthvt?-1:0$-h.getDate())y-=$-h.getDate()+1,h.setDate(1),11>C?h.setMonth(C+1):(h.setMonth(0),h.setFullYear(h.getFullYear()+1));else{h.setDate(h.getDate()+y);break}}return C=new Date(h.getFullYear()+1,0,4),y=d(new Date(h.getFullYear(),0,4)),C=d(C),0>=u(y,h)?0>=u(C,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var m=D[r+40>>2];r={sb:z[r>>2],rb:z[r+4>>2],Ra:z[r+8>>2],Va:z[r+12>>2],Sa:z[r+16>>2],Ja:z[r+20>>2],Ga:z[r+24>>2],Ia:z[r+28>>2],wb:z[r+32>>2],qb:z[r+36>>2],tb:m&&m?Lt(O,m):""},i=i?Lt(O,i):"",m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in m)i=i.replace(new RegExp(f,"g"),m[f]);var I="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),E="January February March April May June July August September October November December".split(" ");m={"%a":h=>I[h.Ga].substring(0,3),"%A":h=>I[h.Ga],"%b":h=>E[h.Sa].substring(0,3),"%B":h=>E[h.Sa],"%C":h=>l((h.Ja+1900)/100|0,2),"%d":h=>l(h.Va,2),"%e":h=>o(h.Va,2," "),"%g":h=>g(h).toString().substring(2),"%G":g,"%H":h=>l(h.Ra,2),"%I":h=>(h=h.Ra,h==0?h=12:12{for(var y=0,C=0;C<=h.Sa-1;y+=(de(h.Ja+1900)?Yn:Vn)[C++]);return l(h.Va+y,3)},"%m":h=>l(h.Sa+1,2),"%M":h=>l(h.rb,2),"%n":()=>` -`,"%p":h=>0<=h.Ra&&12>h.Ra?"AM":"PM","%S":h=>l(h.sb,2),"%t":()=>" ","%u":h=>h.Ga||7,"%U":h=>l(Math.floor((h.Ia+7-h.Ga)/7),2),"%V":h=>{var y=Math.floor((h.Ia+7-(h.Ga+6)%7)/7);if(2>=(h.Ga+371-h.Ia-2)%7&&y++,y)y==53&&(C=(h.Ga+371-h.Ia)%7,C==4||C==3&&de(h.Ja)||(y=1));else{y=52;var C=(h.Ga+7-h.Ia-1)%7;(C==4||C==5&&de(h.Ja%400-1))&&y++}return l(y,2)},"%w":h=>h.Ga,"%W":h=>l(Math.floor((h.Ia+7-(h.Ga+6)%7)/7),2),"%y":h=>(h.Ja+1900).toString().substring(2),"%Y":h=>h.Ja+1900,"%z":h=>{h=h.qb;var y=0<=h;return h=Math.abs(h)/60,(y?"+":"-")+("0000"+(h/60*100+h%60)).slice(-4)},"%Z":h=>h.tb,"%%":()=>"%"},i=i.replace(/%%/g,"\0\0");for(f in m)i.includes(f)&&(i=i.replace(new RegExp(f,"g"),m[f](r)));return i=i.replace(/\0\0/g,"%"),f=di(i),f.length>e?0:(wt.set(f,t),f.length-1)};Yt=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}};for(var Gn=Array(256),ue=0;256>ue;++ue)Gn[ue]=String.fromCharCode(ue);Dn=Gn,b=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Object.assign(ce.prototype,{isAliasOf:function(t){if(!(this instanceof ce&&t instanceof ce))return!1;var e=this.ma.za.xa,i=this.ma.ya;t.ma=t.ma;var r=t.ma.za.xa;for(t=t.ma.ya;e.Ca;)i=e.Na(i),e=e.Ca;for(;r.Ca;)t=r.Na(t),r=r.Ca;return e===r&&i===t},clone:function(){if(this.ma.ya||Ne(this),this.ma.Ma)return this.ma.count.value+=1,this;var t=qt,e=Object,i=e.create,r=Object.getPrototypeOf(this),o=this.ma;return t=t(i.call(e,r,{ma:{value:{count:o.count,Ka:o.Ka,Ma:o.Ma,ya:o.ya,za:o.za,Aa:o.Aa,Da:o.Da}}})),t.ma.count.value+=1,t.ma.Ka=!1,t},delete(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");Tn(this);var t=this.ma;--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0)},isDeleted:function(){return!this.ma.ya},deleteLater:function(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");return Vt.push(this),Vt.length===1&&Gt&&Gt(ze),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(Xt).length,a.getLiveInheritedInstances=()=>{var t=[],e;for(e in Xt)Xt.hasOwnProperty(e)&&t.push(Xt[e]);return t},a.flushPendingDeletes=ze,a.setDelayFunction=t=>{Gt=t,Vt.length&&Gt&&Gt(ze)},Object.assign(Qt.prototype,{eb(t){return this.Za&&(t=this.Za(t)),t},Xa(t){this.Fa?.(t)},argPackAdvance:8,readValueFromPointer:Ht,fromWireType:function(t){function e(){return this.Qa?se(this.xa.La,{za:this.jb,ya:i,Da:this,Aa:t}):se(this.xa.La,{za:this,ya:t})}var i=this.eb(t);if(!i)return this.Xa(t),null;var r=za(this.xa,i);if(r!==void 0)return r.ma.count.value===0?(r.ma.ya=i,r.ma.Aa=t,r.clone()):(r=r.clone(),this.Xa(t),r);if(r=this.xa.cb(i),r=On[r],!r)return e.call(this);r=this.Pa?r.$a:r.pointerType;var o=Rn(i,this.xa,r.xa);return o===null?e.call(this):this.Qa?se(r.xa.La,{za:r,ya:o,Da:this,Aa:t}):se(r.xa.La,{za:r,ya:o})}}),Un=a.UnboundTypeError=((t,e)=>{var i=Kt(e,function(r){this.name=e,this.message=r,r=Error(r).stack,r!==void 0&&(this.stack=this.toString()+` -`+r.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},i})(Error,"UnboundTypeError"),st.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>st.length/2-5-Ge.length;var mi={c:(t,e,i,r)=>{ie(`Assertion failed: ${t?Lt(O,t):""}, at: `+[e?e?Lt(O,e):"":"unknown filename",i,r?r?Lt(O,r):"":"unknown function"])},m:(t,e,i)=>{var r=new Na(t);throw D[r.ya+16>>2]=0,D[r.ya+4>>2]=e,D[r.ya+8>>2]=i,En=t,En},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:t=>{var e=re[t];delete re[t];var i=e.Ua,r=e.Fa,o=e.Ya,l=o.map(u=>u.hb).concat(o.map(u=>u.nb));ft([t],l,u=>{var d={};return o.forEach((g,m)=>{var f=u[m],I=g.fb,E=g.gb,h=u[m+o.length],y=g.mb,C=g.ob;d[g.bb]={read:$=>f.fromWireType(I(E,$)),write:($,vt)=>{var X=[];y(C,$,h.toWireType(X,vt)),We(X)}}}),[{name:e.name,fromWireType:g=>{var m={},f;for(f in d)m[f]=d[f].read(g);return r(g),m},toWireType:(g,m)=>{for(var f in d)if(!(f in m))throw new TypeError(`Missing field: "${f}"`);var I=i();for(f in d)d[f].write(I,m[f]);return g!==null&&g.push(r,I),I},argPackAdvance:8,readValueFromPointer:Ht,Ea:r}]})},I:()=>{},Y:(t,e,i,r)=>{e=N(e),tt(t,{name:e,fromWireType:function(o){return!!o},toWireType:function(o,l){return l?i:r},argPackAdvance:8,readValueFromPointer:function(o){return this.fromWireType(O[o])},Ea:null})},r:(t,e,i,r,o,l,u,d,g,m,f,I,E)=>{f=N(f),l=Y(o,l),d&&(d=Y(u,d)),m&&(m=Y(g,m)),E=Y(I,E);var h=Ba(f);Be(h,function(){le(`Cannot construct ${f} due to unbound types`,[r])}),ft([t,e,i],r?[r]:[],y=>{if(y=y[0],r)var C=y.xa,$=C.La;else $=ce.prototype;y=Kt(f,function(...nn){if(Object.getPrototypeOf(this)!==vt)throw new b("Use 'new' to construct "+f);if(X.Ha===void 0)throw new b(f+" has no accessible constructor");var Qn=X.Ha[nn.length];if(Qn===void 0)throw new b(`Tried to invoke ctor of ${f} with invalid number of parameters (${nn.length}) - expected (${Object.keys(X.Ha).toString()}) parameters instead!`);return Qn.apply(this,nn)});var vt=Object.create($,{constructor:{value:y}});y.prototype=vt;var X=new Ha(f,y,vt,E,C,l,d,m);if(X.Ca){var Zt;(Zt=X.Ca).Wa??(Zt.Wa=[]),X.Ca.Wa.push(X)}return C=new Qt(f,X,!0,!1,!1),Zt=new Qt(f+"*",X,!1,!1,!1),$=new Qt(f+" const*",X,!1,!0,!1),On[t]={pointerType:Zt,$a:$},$n(h,y),[C,Zt,$]})},q:(t,e,i,r,o,l)=>{var u=Ye(e,i);o=Y(r,o),ft([],[t],d=>{d=d[0];var g=`constructor ${d.name}`;if(d.xa.Ha===void 0&&(d.xa.Ha=[]),d.xa.Ha[e-1]!==void 0)throw new b(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${d.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return d.xa.Ha[e-1]=()=>{le(`Cannot construct ${d.name} due to unbound types`,u)},ft([],u,m=>(m.splice(1,0,null),d.xa.Ha[e-1]=Ve(g,m,null,o,l),[])),[]})},f:(t,e,i,r,o,l,u,d)=>{var g=Ye(i,r);e=N(e),e=Nn(e),l=Y(o,l),ft([],[t],m=>{function f(){le(`Cannot call ${I} due to unbound types`,g)}m=m[0];var I=`${m.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),d&&m.xa.kb.push(e);var E=m.xa.La,h=E[e];return h===void 0||h.Ba===void 0&&h.className!==m.name&&h.Oa===i-2?(f.Oa=i-2,f.className=m.name,E[e]=f):(kn(E,e,I),E[e].Ba[i-2]=f),ft([],g,y=>(y=Ve(I,y,m,l,u),E[e].Ba===void 0?(y.Oa=i-2,E[e]=y):E[e].Ba[i-2]=y,[])),[]})},X:t=>tt(t,jn),x:(t,e,i,r)=>{function o(){}e=N(e),o.values={},tt(t,{name:e,constructor:o,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,u)=>u.value,argPackAdvance:8,readValueFromPointer:Qa(e,i,r),Ea:null}),Be(e,o)},k:(t,e,i)=>{var r=Ke(t,"enum");e=N(e),t=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:i},constructor:{value:Kt(`${r.name}_${e}`,function(){})}}),t.values[i]=r,t[e]=r},C:(t,e,i)=>{e=N(e),tt(t,{name:e,fromWireType:r=>r,toWireType:(r,o)=>o,argPackAdvance:8,readValueFromPointer:Za(e,i),Ea:null})},E:(t,e,i,r,o,l)=>{var u=Ye(e,i);t=N(t),t=Nn(t),o=Y(r,o),Be(t,function(){le(`Cannot call ${t} due to unbound types`,u)},e-1),ft([],u,d=>($n(t,Ve(t,[d[0],null].concat(d.slice(1)),null,o,l),e-1),[]))},l:(t,e,i,r,o)=>{if(e=N(e),o===-1&&(o=4294967295),o=d=>d,r===0){var l=32-8*i;o=d=>d<>>l}var u=e.includes("unsigned")?function(d,g){return g>>>0}:function(d,g){return g};tt(t,{name:e,fromWireType:o,toWireType:u,argPackAdvance:8,readValueFromPointer:Ja(e,i,r!==0),Ea:null})},g:(t,e,i)=>{function r(l){return new o(wt.buffer,D[l+4>>2],D[l>>2])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];i=N(i),tt(t,{name:i,fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ib:!0})},w:t=>{tt(t,jn)},ca:(t,e,i,r,o,l,u,d,g,m,f,I)=>{i=N(i),l=Y(o,l),d=Y(u,d),m=Y(g,m),I=Y(f,I),ft([t],[e],E=>(E=E[0],[new Qt(i,E.xa,!1,!1,!0,E,r,l,d,m,I)]))},D:(t,e)=>{e=N(e);var i=e==="std::string";tt(t,{name:e,fromWireType:function(r){var o=D[r>>2],l=r+4;if(i)for(var u=l,d=0;d<=o;++d){var g=l+d;if(d==o||O[g]==0){if(u=u?Lt(O,u,g-u):"",m===void 0)var m=u;else m+="\0",m+=u;u=g+1}}else{for(m=Array(o),d=0;d>2]=u,i&&l)Fn(o,O,g,u+1);else if(l)for(l=0;l{if(i=N(i),e===2)var r=ti,o=ei,l=ni,u=d=>zt[d>>1];else e===4&&(r=ai,o=ii,l=ri,u=d=>D[d>>2]);tt(t,{name:i,fromWireType:d=>{for(var g=D[d>>2],m,f=d+4,I=0;I<=g;++I){var E=d+4+I*e;(I==g||u(E)==0)&&(f=r(f,E-f),m===void 0?m=f:(m+="\0",m+=f),f=E+e)}return ct(d),m},toWireType:(d,g)=>{if(typeof g!="string")throw new b(`Cannot pass non-string to C++ string type ${i}`);var m=l(g),f=en(4+m+e);return D[f>>2]=m/e,o(g,f+4,m+e),d!==null&&d.push(ct,f),f},argPackAdvance:8,readValueFromPointer:Ht,Ea(d){ct(d)}})},s:(t,e,i,r,o,l)=>{re[t]={name:N(e),Ua:Y(i,r),Fa:Y(o,l),Ya:[]}},j:(t,e,i,r,o,l,u,d,g,m)=>{re[t].Ya.push({bb:N(e),hb:i,fb:Y(r,o),gb:l,nb:u,mb:Y(d,g),ob:m})},Z:(t,e)=>{e=N(e),tt(t,{ub:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{throw 1/0},aa:(t,e,i,r)=>(t=Ze[t],e=qe(e),t(null,e,i,r)),F:Xe,$:(t,e,i)=>{var r=si(t,e),o=r.shift();t--;var l=Array(t);return e=`methodCaller<(${r.map(u=>u.name).join(", ")}) => ${o.name}>`,oi(Kt(e,(u,d,g,m)=>{for(var f=0,I=0;I>2]=he(u)),d}))},ba:t=>{9{var e=qe(t);We(e),Xe(t)},o:(t,e)=>(t=Ke(t,"_emval_take_value"),t=t.readValueFromPointer(e),he(t)),W:()=>{ie("")},V:()=>performance.now(),L:t=>{var e=O.length;if(t>>>=0,2147483648=i;i*=2){var r=e*(1+.2/i);r=Math.min(r,t+100663296);var o=Math;r=Math.max(t,r);t:{o=(o.min.call(o,2147483648,r+(65536-r%65536)%65536)-ae.buffer.byteLength+65535)/65536;try{ae.grow(o),Cn();var l=1;break t}catch{}l=void 0}if(l)return!0}return!1},S:(t,e)=>{var i=0;return Bn().forEach((r,o)=>{var l=e+i;for(o=D[t+4*o>>2]=l,l=0;l{var i=Bn();D[t>>2]=i.length;var r=0;return i.forEach(o=>r+=o.length+1),D[e>>2]=r,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(t,e,i,r)=>{for(var o=0,l=0;l>2],d=D[e+4>>2];e+=8;for(var g=0;g>2]=o,0},U:(t,e)=>(Hn(O.subarray(t,t+e)),0),i:_i,d:vi,e:fi,p:yi,y:Si,b:pi,a:gi,h:wi,n:Ci,G:Li,K:(t,e,i,r)=>ui(t,e,i,r)},k=function(){function t(i){return k=i.exports,ae=k.da,Cn(),K=k.ha,Sn.unshift(k.ea),St--,a.monitorRunDependencies?.(St),St==0&&Bt&&(i=Bt,Bt=null,i()),k}var e={a:mi};if(St++,a.monitorRunDependencies?.(St),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(i){xt(`Module.instantiateWasm callback failed with error: ${i}`),p(i)}return Wa(e,function(i){t(i.instance)}).catch(p),{}}(),en=t=>(en=k.fa)(t),Xn=t=>(Xn=k.ga)(t),ct=t=>(ct=k.ia)(t),et=(t,e)=>(et=k.ja)(t,e),nt=t=>(nt=k.ka)(t),at=()=>(at=k.la)();a.dynCall_iijj=(t,e,i,r,o,l)=>(a.dynCall_iijj=k.na)(t,e,i,r,o,l),a.dynCall_vijj=(t,e,i,r,o,l)=>(a.dynCall_vijj=k.oa)(t,e,i,r,o,l),a.dynCall_jiii=(t,e,i,r)=>(a.dynCall_jiii=k.pa)(t,e,i,r),a.dynCall_jii=(t,e,i)=>(a.dynCall_jii=k.qa)(t,e,i);var qn=a.dynCall_viiij=(t,e,i,r,o,l)=>(qn=a.dynCall_viiij=k.ra)(t,e,i,r,o,l);a.dynCall_jiji=(t,e,i,r,o)=>(a.dynCall_jiji=k.sa)(t,e,i,r,o),a.dynCall_viijii=(t,e,i,r,o,l,u)=>(a.dynCall_viijii=k.ta)(t,e,i,r,o,l,u),a.dynCall_iiiiij=(t,e,i,r,o,l,u)=>(a.dynCall_iiiiij=k.ua)(t,e,i,r,o,l,u),a.dynCall_iiiiijj=(t,e,i,r,o,l,u,d,g)=>(a.dynCall_iiiiijj=k.va)(t,e,i,r,o,l,u,d,g),a.dynCall_iiiiiijj=(t,e,i,r,o,l,u,d,g,m)=>(a.dynCall_iiiiiijj=k.wa)(t,e,i,r,o,l,u,d,g,m);function pi(t,e){var i=at();try{K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function gi(t,e,i){var r=at();try{K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function fi(t,e,i,r){var o=at();try{return K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function vi(t,e,i){var r=at();try{return K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function _i(t,e){var i=at();try{return K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function yi(t,e,i,r,o,l){var u=at();try{return K.get(t)(e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}function Ci(t,e,i,r,o){var l=at();try{K.get(t)(e,i,r,o)}catch(u){if(nt(l),u!==u+0)throw u;et(1,0)}}function wi(t,e,i,r){var o=at();try{K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function Si(t){var e=at();try{K.get(t)()}catch(i){if(nt(e),i!==i+0)throw i;et(1,0)}}function Li(t,e,i,r,o,l){var u=at();try{qn(t,e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}var me;Bt=function t(){me||Kn(),me||(Bt=t)};function Kn(){function t(){if(!me&&(me=!0,a.calledRun=!0,!vn)){if(Ue(Sn),c(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var e=a.postRun.shift();Ln.unshift(e)}Ue(Ln)}}if(!(0s})})}static _loadWithBackup(){return M(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(s=>M(this,null,function*(){let n=`https://unpkg.com/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${s.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{return yield this._tryLoad(n)}catch(a){throw console.error(`Primary WASM URL failed: ${s.message}`),console.error(`Backup WASM URL failed: ${a.message}`),new Error("WASM loading failed from all sources.")}}))),this._ModulePromise})}static load(){return M(this,null,function*(){return this._loadWithBackup()})}static setWasmUrl(s){this._wasmURL=s,this._ModulePromise=null}};F(Re,"_ModulePromise",null),F(Re,"_wasmURL",`https://cdn.jsdelivr.net/npm/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`);var La=class{constructor(){F(this,"_eventListeners",new Map)}addEventListener(s,n){let a=this._eventListeners.get(s);a||(a=new Set,this._eventListeners.set(s,a)),a.add(n)}removeEventListener(s,n){let a=this._eventListeners.get(s);a&&(n?(a.delete(n),a.size===0&&this._eventListeners.delete(s)):this._eventListeners.delete(s))}dispatch(s){this._eventListeners.get(s.type)?.forEach(n=>n(s))}removeAllEventListeners(){this._eventListeners.clear()}};function Fi(s){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(s)}function Di(s){if(!Fi(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var ln=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,hn=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,dn=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},un=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},Ma=class R{constructor(n){F(this,"_canvas"),F(this,"_context",null),F(this,"_eventManager"),F(this,"_animationFrameId",null),F(this,"_frameManager"),F(this,"_dotLottieCore",null),F(this,"_renderConfig",{}),F(this,"_isFrozen",!1),F(this,"_backgroundColor",null),this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new La,this._frameManager=new Pi,this._renderConfig=n.renderConfig??{},Re.load().then(a=>{R._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",a),segment:un(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,a),fit:hn(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor)}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)})})}_loadFromSrc(n){function a(){return M(this,null,function*(){let c=yield fetch(n);if(!c.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${c.status}: ${c.statusText}`);let p=(c.headers.get("content-type")??"").trim(),_;return["application/json","text/plain"].some(q=>p.startsWith(q))?_=yield c.text():_=yield c.arrayBuffer(),_})}a().then(c=>{this._loadFromData(c)}).catch(c=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${c}`)})})}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,c=this._canvas.height,p=!1;if(typeof n=="string")p=this._dotLottieCore.loadAnimationData(n,a,c);else if(n instanceof ArrayBuffer)p=this._dotLottieCore.loadDotLottieData(n,a,c);else if(typeof n=="object")p=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,c);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}p?(this._eventManager.dispatch({type:"load"}),Pt&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return{align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case R._wasmModule?.Fit.Contain:return"contain";case R._wasmModule?.Fit.Cover:return"cover";case R._wasmModule?.Fit.Fill:return"fill";case R._wasmModule?.Fit.FitHeight:return"fit-height";case R._wasmModule?.Fit.FitWidth:return"fit-width";case R._wasmModule?.Fit.None:return"none";default:return"contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return[n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===R._wasmModule?.Mode.Reverse?"reverse":n===R._wasmModule?.Mode.Bounce?"bounce":n===R._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||R._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",R._wasmModule),segment:un(n.segment??[],R._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,R._wasmModule),fit:hn(n.layout.fit,R._wasmModule)}:R._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let n=this._dotLottieCore.buffer(),a=new Uint8ClampedArray(n,0,this._canvas.width*this._canvas.height*4),c=null;return typeof ImageData>"u"?(c=this._context.createImageData(this._canvas.width,this._canvas.height),c.data.set(a)):c=new ImageData(a,this._canvas.width,this._canvas.height),this._context.putImageData(c,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(n){this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{speed:n}))}setBackgroundColor(n){this._dotLottieCore!==null&&(Pt&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{backgroundColor:Di(n)})),this._backgroundColor=n)}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{loopAnimation:n}))}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{useFrameInterpolation:n}))}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){if(Pt&&this._canvas instanceof HTMLCanvasElement){let n=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:a,width:c}=this._canvas.getBoundingClientRect();this._canvas.width=c*n,this._canvas.height=a*n}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(n,a){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{segment:un([n,a],R._wasmModule)}))}setMode(n){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{mode:ln(n,R._wasmModule)}))}setRenderConfig(n){this._renderConfig=n}loadAnimation(n){this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n||(this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)}))}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{marker:n}))}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let c=0;cn in s?Pn(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a;var I=(s,n,a)=>An(s,typeof n!="symbol"?n+"":n,a);var Ke=class{requestAnimationFrame(n){return requestAnimationFrame(n)}cancelAnimationFrame(n){cancelAnimationFrame(n);}},Xe=class{constructor(){I(this,"_lastHandleId",0);I(this,"_lastImmediate",null);}requestAnimationFrame(n){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{n(Date.now());}),this._lastHandleId}cancelAnimationFrame(n){this._lastImmediate&&clearImmediate(this._lastImmediate);}},Ie=class{constructor(){I(this,"_strategy");this._strategy=typeof requestAnimationFrame=="function"?new Ke:new Xe;}requestAnimationFrame(n){return this._strategy.requestAnimationFrame(n)}cancelAnimationFrame(n){this._strategy.cancelAnimationFrame(n);}};var te=typeof window<"u"&&typeof window.document<"u";var me={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}};var Sn=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,d,w,T=new Promise((e,t)=>{d=e,w=t;}),W=Object.assign({},a),Y="./this.program",j="";typeof document<"u"&&document.currentScript&&(j=document.currentScript.src),s&&(j=s),j.startsWith("blob:")?j="":j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1);var Wt=a.print||console.log.bind(console),Q=a.printErr||console.error.bind(console);Object.assign(a,W),W=null,a.thisProgram&&(Y=a.thisProgram);var ne;a.wasmBinary&&(ne=a.wasmBinary);var ve,tt=!1,G,L,Z,re,A,b,nt,rt;function at(){var e=ve.buffer;a.HEAP8=G=new Int8Array(e),a.HEAP16=Z=new Int16Array(e),a.HEAPU8=L=new Uint8Array(e),a.HEAPU16=re=new Uint16Array(e),a.HEAP32=A=new Int32Array(e),a.HEAPU32=b=new Uint32Array(e),a.HEAPF32=nt=new Float32Array(e),a.HEAPF64=rt=new Float64Array(e);}var ot=[],it=[],st=[];function jt(){var e=a.preRun.shift();ot.unshift(e);}var N=0,ae=null;function ye(e){throw a.onAbort?.(e),e="Aborted("+e+")",Q(e),tt=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),w(e),e}var lt=e=>e.startsWith("data:application/octet-stream;base64,"),q;if(q="DotLottiePlayer.wasm",!lt(q)){var dt=q;q=a.locateFile?a.locateFile(dt,j):j+dt;}function ut(e){if(e==q&&ne)return new Uint8Array(ne);throw "both async and sync fetching of the wasm failed"}function Bt(e){return ne||typeof fetch!="function"?Promise.resolve().then(()=>ut(e)):fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw `failed to load wasm binary file at \'${e}\'`;return t.arrayBuffer()}).catch(()=>ut(e))}function ct(e,t,r){return Bt(e).then(o=>WebAssembly.instantiate(o,t)).then(r,o=>{Q(`failed to asynchronously prepare wasm: ${o}`),ye(o);})}function Ut(e,t){var r=q;return ne||typeof WebAssembly.instantiateStreaming!="function"||lt(r)||typeof fetch!="function"?ct(r,e,t):fetch(r,{credentials:"same-origin"}).then(o=>WebAssembly.instantiateStreaming(o,e).then(t,function(i){return Q(`wasm streaming compile failed: ${i}`),Q("falling back to ArrayBuffer instantiation"),ct(r,e,t)}))}var Ae=e=>{for(;0{var o=t+r;for(r=t;e[r]&&!(r>=o);)++r;if(16i?o+=String.fromCharCode(i):(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023));}}else o+=String.fromCharCode(i);}return o};class Ht{constructor(t){this.ya=t-24;}}var pt=0,mt=e=>{for(var t=0,r=0;r=o?t++:2047>=o?t+=2:55296<=o&&57343>=o?(t+=4,++r):t+=3;}return t},ft=(e,t,r,o)=>{if(0=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(127>=l){if(r>=o)break;t[r++]=l;}else {if(2047>=l){if(r+1>=o)break;t[r++]=192|l>>6;}else {if(65535>=l){if(r+2>=o)break;t[r++]=224|l>>12;}else {if(r+3>=o)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63;}t[r++]=128|l>>6&63;}t[r++]=128|l&63;}}t[r]=0;}},ge={},Te=e=>{for(;e.length;){var t=e.pop();e.pop()(t);}};function oe(e){return this.fromWireType(b[e>>2])}var ee={},K={},we={},ie,H=(e,t,r)=>{function o(c){if(c=r(c),c.length!==e.length)throw new ie("Mismatched type converter count");for(var m=0;m{K.hasOwnProperty(c)?i[m]=K[c]:(l.push(c),ee.hasOwnProperty(c)||(ee[c]=[]),ee[c].push(()=>{i[m]=K[c],++h,h===l.length&&o(i);}));}),l.length===0&&o(i);},vt,P=e=>{for(var t="";L[e];)t+=vt[L[e++]];return t},g;function Yt(e,t,r={}){var o=t.name;if(!e)throw new g(`type "${o}" must have a positive integer typeid pointer`);if(K.hasOwnProperty(e)){if(r.ib)return;throw new g(`Cannot register type \'${o}\' twice`)}K[e]=t,delete we[e],ee.hasOwnProperty(e)&&(t=ee[e],delete ee[e],t.forEach(i=>i()));}function k(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Yt(e,t,r)}var Se=e=>{throw new g(e.ma.za.xa.name+" instance already deleted")},Re=!1,yt=()=>{},gt=(e,t,r)=>t===r?e:r.Ca===void 0?null:(e=gt(e,t,r.Ca),e===null?null:r.ab(e)),wt={},se=[],$e=()=>{for(;se.length;){var e=se.pop();e.ma.Ka=!1,e.delete();}},le,de={},Gt=(e,t)=>{if(t===void 0)throw new g("ptr should not be undefined");for(;e.Ca;)t=e.Na(t),e=e.Ca;return de[t]},_e=(e,t)=>{if(!t.za||!t.ya)throw new ie("makeClassHandle requires ptr and ptrType");if(!!t.Da!=!!t.Aa)throw new ie("Both smartPtrType and smartPtr must be specified");return t.count={value:1},ue(Object.create(e,{ma:{value:t,writable:!0}}))},ue=e=>typeof FinalizationRegistry>"u"?(ue=t=>t,e):(Re=new FinalizationRegistry(t=>{t=t.ma,--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya));}),ue=t=>{var r=t.ma;return r.Aa&&Re.register(t,{ma:r},t),t},yt=t=>{Re.unregister(t);},ue(e));function Ee(){}var ce=(e,t)=>Object.defineProperty(t,"name",{value:e}),_t=(e,t,r)=>{if(e[t].Ba===void 0){var o=e[t];e[t]=function(...i){if(!e[t].Ba.hasOwnProperty(i.length))throw new g(`Function \'${r}\' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].Ba})!`);return e[t].Ba[i.length].apply(this,i)},e[t].Ba=[],e[t].Ba[o.Oa]=o;}},ke=(e,t,r)=>{if(a.hasOwnProperty(e)){if(r===void 0||a[e].Ba!==void 0&&a[e].Ba[r]!==void 0)throw new g(`Cannot register public name \'${e}\' twice`);if(_t(a,e,e),a.hasOwnProperty(r))throw new g(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);a[e].Ba[r]=t;}else a[e]=t,r!==void 0&&(a[e].vb=r);},Nt=e=>{if(e===void 0)return "_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e};function Jt(e,t,r,o,i,l,h,c){this.name=e,this.constructor=t,this.La=r,this.Fa=o,this.Ca=i,this.cb=l,this.Na=h,this.ab=c,this.kb=[];}var De=(e,t,r)=>{for(;t!==r;){if(!t.Na)throw new g(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.Na(e),t=t.Ca;}return e};function Kt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function Xt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);if(this.Qa){var r=this.Ua();return e!==null&&e.push(this.Fa,r),r}return 0}if(!t||!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);if(r=De(t.ma.ya,t.ma.za.xa,this.xa),this.Qa){if(t.ma.Aa===void 0)throw new g("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(t.ma.Da===this)r=t.ma.Aa;else throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);break;case 1:r=t.ma.Aa;break;case 2:if(t.ma.Da===this)r=t.ma.Aa;else {var o=t.clone();r=this.lb(r,Me(()=>o.delete())),e!==null&&e.push(this.Fa,r);}break;default:throw new g("Unsupporting sharing policy")}}return r}function Qt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.za.name} to parameter type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function he(e,t,r,o,i,l,h,c,m,p,f){this.name=e,this.xa=t,this.Ta=r,this.Pa=o,this.Qa=i,this.jb=l,this.pb=h,this.Za=c,this.Ua=m,this.lb=p,this.Fa=f,i||t.Ca!==void 0?this.toWireType=Xt:(this.toWireType=o?Kt:Qt,this.Ea=null);}var Et=(e,t,r)=>{if(!a.hasOwnProperty(e))throw new ie("Replacing nonexistent public symbol");a[e].Ba!==void 0&&r!==void 0?a[e].Ba[r]=t:(a[e]=t,a[e].Oa=r);},$,Zt=(e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0, a["dynCall_"+e])(t,...r)):t=$.get(t)(...r),t),qt=(e,t)=>(...r)=>Zt(e,t,r),S=(e,t)=>{e=P(e);var r=e.includes("j")?qt(e,t):$.get(t);if(typeof r!="function")throw new g(`unknown function pointer with signature ${e}: ${t}`);return r},Ct,Mt=e=>{e=St(e);var t=P(e);return U(e),t},Ce=(e,t)=>{function r(l){i[l]||K[l]||(we[l]?we[l].forEach(r):(o.push(l),i[l]=!0));}var o=[],i={};throw t.forEach(r),new Ct(`${e}: `+o.map(Mt).join([", "]))},ze=(e,t)=>{for(var r=[],o=0;o>2]);return r};function en(e){for(var t=1;tl)throw new g("argTypes array size mismatch! Must at least get return value and \'this\' types!");var h=t[1]!==null&&r!==null,c=en(t),m=t[0].name!=="void",p=l-2,f=Array(p),_=[],C=[];return ce(e,function(...u){if(u.length!==p)throw new g(`function ${e} called with ${u.length} arguments, expected ${p}`);if(C.length=0,_.length=h?2:1,_[0]=i,h){var v=t[1].toWireType(C,this);_[1]=v;}for(var y=0;y{e=e.trim();let t=e.indexOf("(");return t!==-1?e.substr(0,t):e},We=[],B=[],je=e=>{9{if(!e)throw new g("Cannot use deleted val. handle = "+e);return B[e]},Me=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let t=We.pop()||B.length;return B[t]=e,B[t+1]=1,t}},Lt={name:"emscripten::val",fromWireType:e=>{var t=Be(e);return je(e),t},toWireType:(e,t)=>Me(t),argPackAdvance:8,readValueFromPointer:oe,Ea:null},tn=(e,t,r)=>{switch(t){case 1:return r?function(o){return this.fromWireType(G[o])}:function(o){return this.fromWireType(L[o])};case 2:return r?function(o){return this.fromWireType(Z[o>>1])}:function(o){return this.fromWireType(re[o>>1])};case 4:return r?function(o){return this.fromWireType(A[o>>2])}:function(o){return this.fromWireType(b[o>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ue=(e,t)=>{var r=K[e];if(r===void 0)throw e=`${t} has unknown type ${Mt(e)}`,new g(e);return r},He=e=>{if(e===null)return "null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e},nn=(e,t)=>{switch(t){case 4:return function(r){return this.fromWireType(nt[r>>2])};case 8:return function(r){return this.fromWireType(rt[r>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},rn=(e,t,r)=>{switch(t){case 1:return r?o=>G[o]:o=>L[o];case 2:return r?o=>Z[o>>1]:o=>re[o>>1];case 4:return r?o=>A[o>>2]:o=>b[o>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ft=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,an=(e,t)=>{for(var r=e>>1,o=r+t/2;!(r>=o)&&re[r];)++r;if(r<<=1,32=t/2);++o){var i=Z[e+2*o>>1];if(i==0)break;r+=String.fromCharCode(i);}return r},on=(e,t,r)=>{if(r??(r=2147483647),2>r)return 0;r-=2;var o=t;r=r<2*e.length?r/2:e.length;for(var i=0;i>1]=e.charCodeAt(i),t+=2;return Z[t>>1]=0,t-o},sn=e=>2*e.length,ln=(e,t)=>{for(var r=0,o="";!(r>=t/4);){var i=A[e+4*r>>2];if(i==0)break;++r,65536<=i?(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023)):o+=String.fromCharCode(i);}return o},dn=(e,t,r)=>{if(r??(r=2147483647),4>r)return 0;var o=t;r=o+r-4;for(var i=0;i=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(A[t>>2]=l,t+=4,t+4>r)break}return A[t>>2]=0,t-o},un=e=>{for(var t=0,r=0;r=o&&++r,t+=4;}return t},Ve=[],cn=e=>{var t=Ve.length;return Ve.push(e),t},hn=(e,t)=>{for(var r=Array(e),o=0;o>2],"parameter "+o);return r},pn=Reflect.construct,Ye={},It=()=>{if(!Ge){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Y||"./this.program"},t;for(t in Ye)Ye[t]===void 0?delete e[t]:e[t]=Ye[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);Ge=r;}return Ge},Ge,mn=[null,[],[]],fn=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);ye("initRandomDevice");},xt=e=>(xt=fn())(e),be=e=>e%4===0&&(e%100!==0||e%400===0),Pt=[31,29,31,30,31,30,31,31,30,31,30,31],At=[31,28,31,30,31,30,31,31,30,31,30,31];function vn(e){var t=Array(mt(e)+1);return ft(e,t,0,t.length),t}var yn=(e,t,r,o)=>{function i(u,v,y){for(u=typeof u=="number"?u.toString():u||"";u.lengthV?-1:0x-u.getDate())v-=x-u.getDate()+1,u.setDate(1),11>y?u.setMonth(y+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else {u.setDate(u.getDate()+v);break}}return y=new Date(u.getFullYear()+1,0,4),v=c(new Date(u.getFullYear(),0,4)),y=c(y),0>=h(v,u)?0>=h(y,u)?u.getFullYear()+1:u.getFullYear():u.getFullYear()-1}var p=b[o+40>>2];o={sb:A[o>>2],rb:A[o+4>>2],Ra:A[o+8>>2],Va:A[o+12>>2],Sa:A[o+16>>2],Ja:A[o+20>>2],Ga:A[o+24>>2],Ia:A[o+28>>2],wb:A[o+32>>2],qb:A[o+36>>2],tb:p&&p?J(L,p):""},r=r?J(L,r):"",p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in p)r=r.replace(new RegExp(f,"g"),p[f]);var _="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),C="January February March April May June July August September October November December".split(" ");p={"%a":u=>_[u.Ga].substring(0,3),"%A":u=>_[u.Ga],"%b":u=>C[u.Sa].substring(0,3),"%B":u=>C[u.Sa],"%C":u=>l((u.Ja+1900)/100|0,2),"%d":u=>l(u.Va,2),"%e":u=>i(u.Va,2," "),"%g":u=>m(u).toString().substring(2),"%G":m,"%H":u=>l(u.Ra,2),"%I":u=>(u=u.Ra,u==0?u=12:12{for(var v=0,y=0;y<=u.Sa-1;v+=(be(u.Ja+1900)?Pt:At)[y++]);return l(u.Va+v,3)},"%m":u=>l(u.Sa+1,2),"%M":u=>l(u.rb,2),"%n":()=>`\n`,"%p":u=>0<=u.Ra&&12>u.Ra?"AM":"PM","%S":u=>l(u.sb,2),"%t":()=>" ","%u":u=>u.Ga||7,"%U":u=>l(Math.floor((u.Ia+7-u.Ga)/7),2),"%V":u=>{var v=Math.floor((u.Ia+7-(u.Ga+6)%7)/7);if(2>=(u.Ga+371-u.Ia-2)%7&&v++,v)v==53&&(y=(u.Ga+371-u.Ia)%7,y==4||y==3&&be(u.Ja)||(v=1));else {v=52;var y=(u.Ga+7-u.Ia-1)%7;(y==4||y==5&&be(u.Ja%400-1))&&v++;}return l(v,2)},"%w":u=>u.Ga,"%W":u=>l(Math.floor((u.Ia+7-(u.Ga+6)%7)/7),2),"%y":u=>(u.Ja+1900).toString().substring(2),"%Y":u=>u.Ja+1900,"%z":u=>{u=u.qb;var v=0<=u;return u=Math.abs(u)/60,(v?"+":"-")+("0000"+(u/60*100+u%60)).slice(-4)},"%Z":u=>u.tb,"%%":()=>"%"},r=r.replace(/%%/g,"\\0\\0");for(f in p)r.includes(f)&&(r=r.replace(new RegExp(f,"g"),p[f](o)));return r=r.replace(/\\0\\0/g,"%"),f=vn(r),f.length>t?0:(G.set(f,e),f.length-1)};ie=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError";}};for(var Tt=Array(256),Le=0;256>Le;++Le)Tt[Le]=String.fromCharCode(Le);vt=Tt,g=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError";}},Object.assign(Ee.prototype,{isAliasOf:function(e){if(!(this instanceof Ee&&e instanceof Ee))return !1;var t=this.ma.za.xa,r=this.ma.ya;e.ma=e.ma;var o=e.ma.za.xa;for(e=e.ma.ya;t.Ca;)r=t.Na(r),t=t.Ca;for(;o.Ca;)e=o.Na(e),o=o.Ca;return t===o&&r===e},clone:function(){if(this.ma.ya||Se(this),this.ma.Ma)return this.ma.count.value+=1,this;var e=ue,t=Object,r=t.create,o=Object.getPrototypeOf(this),i=this.ma;return e=e(r.call(t,o,{ma:{value:{count:i.count,Ka:i.Ka,Ma:i.Ma,ya:i.ya,za:i.za,Aa:i.Aa,Da:i.Da}}})),e.ma.count.value+=1,e.ma.Ka=!1,e},delete(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");yt(this);var e=this.ma;--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0);},isDeleted:function(){return !this.ma.ya},deleteLater:function(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");return se.push(this),se.length===1&&le&&le($e),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(de).length,a.getLiveInheritedInstances=()=>{var e=[],t;for(t in de)de.hasOwnProperty(t)&&e.push(de[t]);return e},a.flushPendingDeletes=$e,a.setDelayFunction=e=>{le=e,se.length&&le&&le($e);},Object.assign(he.prototype,{eb(e){return this.Za&&(e=this.Za(e)),e},Xa(e){this.Fa?.(e);},argPackAdvance:8,readValueFromPointer:oe,fromWireType:function(e){function t(){return this.Qa?_e(this.xa.La,{za:this.jb,ya:r,Da:this,Aa:e}):_e(this.xa.La,{za:this,ya:e})}var r=this.eb(e);if(!r)return this.Xa(e),null;var o=Gt(this.xa,r);if(o!==void 0)return o.ma.count.value===0?(o.ma.ya=r,o.ma.Aa=e,o.clone()):(o=o.clone(),this.Xa(e),o);if(o=this.xa.cb(r),o=wt[o],!o)return t.call(this);o=this.Pa?o.$a:o.pointerType;var i=gt(r,this.xa,o.xa);return i===null?t.call(this):this.Qa?_e(o.xa.La,{za:o,ya:i,Da:this,Aa:e}):_e(o.xa.La,{za:o,ya:i})}}),Ct=a.UnboundTypeError=((e,t)=>{var r=ce(t,function(o){this.name=t,this.message=o,o=Error(o).stack,o!==void 0&&(this.stack=this.toString()+`\n`+o.replace(/^Error(:[^\\n]*)?\\n/,""));});return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),B.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>B.length/2-5-We.length;var gn={c:(e,t,r,o)=>{ye(`Assertion failed: ${e?J(L,e):""}, at: `+[t?t?J(L,t):"":"unknown filename",r,o?o?J(L,o):"":"unknown function"]);},m:(e,t,r)=>{var o=new Ht(e);throw b[o.ya+16>>2]=0,b[o.ya+4>>2]=t,b[o.ya+8>>2]=r,pt=e,pt},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:e=>{var t=ge[e];delete ge[e];var r=t.Ua,o=t.Fa,i=t.Ya,l=i.map(h=>h.hb).concat(i.map(h=>h.nb));H([e],l,h=>{var c={};return i.forEach((m,p)=>{var f=h[p],_=m.fb,C=m.gb,u=h[p+i.length],v=m.mb,y=m.ob;c[m.bb]={read:x=>f.fromWireType(_(C,x)),write:(x,V)=>{var R=[];v(y,x,u.toWireType(R,V)),Te(R);}};}),[{name:t.name,fromWireType:m=>{var p={},f;for(f in c)p[f]=c[f].read(m);return o(m),p},toWireType:(m,p)=>{for(var f in c)if(!(f in p))throw new TypeError(`Missing field: "${f}"`);var _=r();for(f in c)c[f].write(_,p[f]);return m!==null&&m.push(o,_),_},argPackAdvance:8,readValueFromPointer:oe,Ea:o}]});},I:()=>{},Y:(e,t,r,o)=>{t=P(t),k(e,{name:t,fromWireType:function(i){return !!i},toWireType:function(i,l){return l?r:o},argPackAdvance:8,readValueFromPointer:function(i){return this.fromWireType(L[i])},Ea:null});},r:(e,t,r,o,i,l,h,c,m,p,f,_,C)=>{f=P(f),l=S(i,l),c&&(c=S(h,c)),p&&(p=S(m,p)),C=S(_,C);var u=Nt(f);ke(u,function(){Ce(`Cannot construct ${f} due to unbound types`,[o]);}),H([e,t,r],o?[o]:[],v=>{if(v=v[0],o)var y=v.xa,x=y.La;else x=Ee.prototype;v=ce(f,function(...Je){if(Object.getPrototypeOf(this)!==V)throw new g("Use \'new\' to construct "+f);if(R.Ha===void 0)throw new g(f+" has no accessible constructor");var kt=R.Ha[Je.length];if(kt===void 0)throw new g(`Tried to invoke ctor of ${f} with invalid number of parameters (${Je.length}) - expected (${Object.keys(R.Ha).toString()}) parameters instead!`);return kt.apply(this,Je)});var V=Object.create(x,{constructor:{value:v}});v.prototype=V;var R=new Jt(f,v,V,C,y,l,c,p);if(R.Ca){var pe;(pe=R.Ca).Wa??(pe.Wa=[]),R.Ca.Wa.push(R);}return y=new he(f,R,!0,!1,!1),pe=new he(f+"*",R,!1,!1,!1),x=new he(f+" const*",R,!1,!0,!1),wt[e]={pointerType:pe,$a:x},Et(u,v),[y,pe,x]});},q:(e,t,r,o,i,l)=>{var h=ze(t,r);i=S(o,i),H([],[e],c=>{c=c[0];var m=`constructor ${c.name}`;if(c.xa.Ha===void 0&&(c.xa.Ha=[]),c.xa.Ha[t-1]!==void 0)throw new g(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class \'${c.name}\'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return c.xa.Ha[t-1]=()=>{Ce(`Cannot construct ${c.name} due to unbound types`,h);},H([],h,p=>(p.splice(1,0,null),c.xa.Ha[t-1]=Oe(m,p,null,i,l),[])),[]});},f:(e,t,r,o,i,l,h,c)=>{var m=ze(r,o);t=P(t),t=bt(t),l=S(i,l),H([],[e],p=>{function f(){Ce(`Cannot call ${_} due to unbound types`,m);}p=p[0];var _=`${p.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),c&&p.xa.kb.push(t);var C=p.xa.La,u=C[t];return u===void 0||u.Ba===void 0&&u.className!==p.name&&u.Oa===r-2?(f.Oa=r-2,f.className=p.name,C[t]=f):(_t(C,t,_),C[t].Ba[r-2]=f),H([],m,v=>(v=Oe(_,v,p,l,h),C[t].Ba===void 0?(v.Oa=r-2,C[t]=v):C[t].Ba[r-2]=v,[])),[]});},X:e=>k(e,Lt),x:(e,t,r,o)=>{function i(){}t=P(t),i.values={},k(e,{name:t,constructor:i,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,h)=>h.value,argPackAdvance:8,readValueFromPointer:tn(t,r,o),Ea:null}),ke(t,i);},k:(e,t,r)=>{var o=Ue(e,"enum");t=P(t),e=o.constructor,o=Object.create(o.constructor.prototype,{value:{value:r},constructor:{value:ce(`${o.name}_${t}`,function(){})}}),e.values[r]=o,e[t]=o;},C:(e,t,r)=>{t=P(t),k(e,{name:t,fromWireType:o=>o,toWireType:(o,i)=>i,argPackAdvance:8,readValueFromPointer:nn(t,r),Ea:null});},E:(e,t,r,o,i,l)=>{var h=ze(t,r);e=P(e),e=bt(e),i=S(o,i),ke(e,function(){Ce(`Cannot call ${e} due to unbound types`,h);},t-1),H([],h,c=>(Et(e,Oe(e,[c[0],null].concat(c.slice(1)),null,i,l),t-1),[]));},l:(e,t,r,o,i)=>{if(t=P(t),i===-1&&(i=4294967295),i=c=>c,o===0){var l=32-8*r;i=c=>c<>>l;}var h=t.includes("unsigned")?function(c,m){return m>>>0}:function(c,m){return m};k(e,{name:t,fromWireType:i,toWireType:h,argPackAdvance:8,readValueFromPointer:rn(t,r,o!==0),Ea:null});},g:(e,t,r)=>{function o(l){return new i(G.buffer,b[l+4>>2],b[l>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];r=P(r),k(e,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ib:!0});},w:e=>{k(e,Lt);},ca:(e,t,r,o,i,l,h,c,m,p,f,_)=>{r=P(r),l=S(i,l),c=S(h,c),p=S(m,p),_=S(f,_),H([e],[t],C=>(C=C[0],[new he(r,C.xa,!1,!1,!0,C,o,l,c,p,_)]));},D:(e,t)=>{t=P(t);var r=t==="std::string";k(e,{name:t,fromWireType:function(o){var i=b[o>>2],l=o+4;if(r)for(var h=l,c=0;c<=i;++c){var m=l+c;if(c==i||L[m]==0){if(h=h?J(L,h,m-h):"",p===void 0)var p=h;else p+="\\0",p+=h;h=m+1;}}else {for(p=Array(i),c=0;c>2]=h,r&&l)ft(i,L,m,h+1);else if(l)for(l=0;l{if(r=P(r),t===2)var o=an,i=on,l=sn,h=c=>re[c>>1];else t===4&&(o=ln,i=dn,l=un,h=c=>b[c>>2]);k(e,{name:r,fromWireType:c=>{for(var m=b[c>>2],p,f=c+4,_=0;_<=m;++_){var C=c+4+_*t;(_==m||h(C)==0)&&(f=o(f,C-f),p===void 0?p=f:(p+="\\0",p+=f),f=C+t);}return U(c),p},toWireType:(c,m)=>{if(typeof m!="string")throw new g(`Cannot pass non-string to C++ string type ${r}`);var p=l(m),f=Ne(4+p+t);return b[f>>2]=p/t,i(m,f+4,p+t),c!==null&&c.push(U,f),f},argPackAdvance:8,readValueFromPointer:oe,Ea(c){U(c);}});},s:(e,t,r,o,i,l)=>{ge[e]={name:P(t),Ua:S(r,o),Fa:S(i,l),Ya:[]};},j:(e,t,r,o,i,l,h,c,m,p)=>{ge[e].Ya.push({bb:P(t),hb:r,fb:S(o,i),gb:l,nb:h,mb:S(c,m),ob:p});},Z:(e,t)=>{t=P(t),k(e,{ub:!0,name:t,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}});},J:()=>{throw 1/0},aa:(e,t,r,o)=>(e=Ve[e],t=Be(t),e(null,t,r,o)),F:je,$:(e,t,r)=>{var o=hn(e,t),i=o.shift();e--;var l=Array(e);return t=`methodCaller<(${o.map(h=>h.name).join(", ")}) => ${i.name}>`,cn(ce(t,(h,c,m,p)=>{for(var f=0,_=0;_>2]=Me(h)),c}))},ba:e=>{9{var t=Be(e);Te(t),je(e);},o:(e,t)=>(e=Ue(e,"_emval_take_value"),e=e.readValueFromPointer(t),Me(e)),W:()=>{ye("");},V:()=>performance.now(),L:e=>{var t=L.length;if(e>>>=0,2147483648=r;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var i=Math;o=Math.max(e,o);e:{i=(i.min.call(i,2147483648,o+(65536-o%65536)%65536)-ve.buffer.byteLength+65535)/65536;try{ve.grow(i),at();var l=1;break e}catch{}l=void 0;}if(l)return !0}return !1},S:(e,t)=>{var r=0;return It().forEach((o,i)=>{var l=t+r;for(i=b[e+4*i>>2]=l,l=0;l{var r=It();b[e>>2]=r.length;var o=0;return r.forEach(i=>o+=i.length+1),b[t>>2]=o,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(e,t,r,o)=>{for(var i=0,l=0;l>2],c=b[t+4>>2];t+=8;for(var m=0;m>2]=i,0},U:(e,t)=>(xt(L.subarray(e,e+t)),0),i:Mn,d:Cn,e:En,p:bn,y:In,b:wn,a:_n,h:Fn,n:Ln,G:xn,K:(e,t,r,o)=>yn(e,t,r,o)},F=function(){function e(r){return F=r.exports,ve=F.da,at(),$=F.ha,it.unshift(F.ea),N--,a.monitorRunDependencies?.(N),N==0&&(ae&&(r=ae,ae=null,r())),F}var t={a:gn};if(N++,a.monitorRunDependencies?.(N),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(r){Q(`Module.instantiateWasm callback failed with error: ${r}`),w(r);}return Ut(t,function(r){e(r.instance);}).catch(w),{}}(),Ne=e=>(Ne=F.fa)(e),St=e=>(St=F.ga)(e),U=e=>(U=F.ia)(e),D=(e,t)=>(D=F.ja)(e,t),z=e=>(z=F.ka)(e),O=()=>(O=F.la)();a.dynCall_iijj=(e,t,r,o,i,l)=>(a.dynCall_iijj=F.na)(e,t,r,o,i,l),a.dynCall_vijj=(e,t,r,o,i,l)=>(a.dynCall_vijj=F.oa)(e,t,r,o,i,l),a.dynCall_jiii=(e,t,r,o)=>(a.dynCall_jiii=F.pa)(e,t,r,o),a.dynCall_jii=(e,t,r)=>(a.dynCall_jii=F.qa)(e,t,r);var Rt=a.dynCall_viiij=(e,t,r,o,i,l)=>(Rt=a.dynCall_viiij=F.ra)(e,t,r,o,i,l);a.dynCall_jiji=(e,t,r,o,i)=>(a.dynCall_jiji=F.sa)(e,t,r,o,i),a.dynCall_viijii=(e,t,r,o,i,l,h)=>(a.dynCall_viijii=F.ta)(e,t,r,o,i,l,h),a.dynCall_iiiiij=(e,t,r,o,i,l,h)=>(a.dynCall_iiiiij=F.ua)(e,t,r,o,i,l,h),a.dynCall_iiiiijj=(e,t,r,o,i,l,h,c,m)=>(a.dynCall_iiiiijj=F.va)(e,t,r,o,i,l,h,c,m),a.dynCall_iiiiiijj=(e,t,r,o,i,l,h,c,m,p)=>(a.dynCall_iiiiiijj=F.wa)(e,t,r,o,i,l,h,c,m,p);function wn(e,t){var r=O();try{$.get(e)(t);}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function _n(e,t,r){var o=O();try{$.get(e)(t,r);}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function En(e,t,r,o){var i=O();try{return $.get(e)(t,r,o)}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function Cn(e,t,r){var o=O();try{return $.get(e)(t,r)}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function Mn(e,t){var r=O();try{return $.get(e)(t)}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function bn(e,t,r,o,i,l){var h=O();try{return $.get(e)(t,r,o,i,l)}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}function Ln(e,t,r,o,i){var l=O();try{$.get(e)(t,r,o,i);}catch(h){if(z(l),h!==h+0)throw h;D(1,0);}}function Fn(e,t,r,o){var i=O();try{$.get(e)(t,r,o);}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function In(e){var t=O();try{$.get(e)();}catch(r){if(z(t),r!==r+0)throw r;D(1,0);}}function xn(e,t,r,o,i,l){var h=O();try{Rt(e,t,r,o,i,l);}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}var Fe;ae=function e(){Fe||$t(),Fe||(ae=e);};function $t(){function e(){if(!Fe&&(Fe=!0,a.calledRun=!0,!tt)){if(Ae(it),d(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var t=a.postRun.shift();st.unshift(t);}Ae(st);}}if(!(0n})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async n=>{let a=`https://unpkg.com/${me.name}@${me.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${n.message}`),console.warn(`Attempting to load WASM from backup URL: ${a}`);try{return await this._tryLoad(a)}catch(d){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${d.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(n){this._wasmURL=n,this._ModulePromise=null;}};I(X,"_ModulePromise",null),I(X,"_wasmURL",`https://cdn.jsdelivr.net/npm/${me.name}@${me.version}/dist/dotlottie-player.wasm`);var xe=class{constructor(){I(this,"_eventListeners",new Map);}addEventListener(n,a){let d=this._eventListeners.get(n);d||(d=new Set,this._eventListeners.set(n,d)),d.add(a);}removeEventListener(n,a){let d=this._eventListeners.get(n);d&&(a?(d.delete(a),d.size===0&&this._eventListeners.delete(n)):this._eventListeners.delete(n));}dispatch(n){this._eventListeners.get(n.type)?.forEach(d=>d(n));}removeAllEventListeners(){this._eventListeners.clear();}};function Rn(s){return /^#([\\da-f]{6}|[\\da-f]{8})$/iu.test(s)}function zt(s){if(!Rn(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var Qe=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,Ze=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,qe=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},et=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},M=class M{constructor(n){I(this,"_canvas");I(this,"_context",null);I(this,"_eventManager");I(this,"_animationFrameId",null);I(this,"_frameManager");I(this,"_dotLottieCore",null);I(this,"_renderConfig",{});I(this,"_isFrozen",!1);I(this,"_backgroundColor",null);this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new xe,this._frameManager=new Ie,this._renderConfig=n.renderConfig??{},X.load().then(a=>{M._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",a),segment:et(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,a),fit:Ze(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor);}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)});});}_loadFromSrc(n){async function a(){let d=await fetch(n);if(!d.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${d.status}: ${d.statusText}`);let w=(d.headers.get("content-type")??"").trim(),T;return ["application/json","text/plain"].some(W=>w.startsWith(W))?T=await d.text():T=await d.arrayBuffer(),T}a().then(d=>{this._loadFromData(d);}).catch(d=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${d}`)});});}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,d=this._canvas.height,w=!1;if(typeof n=="string")w=this._dotLottieCore.loadAnimationData(n,a,d);else if(n instanceof ArrayBuffer)w=this._dotLottieCore.loadDotLottieData(n,a,d);else if(typeof n=="object")w=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,d);else {this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}w?(this._eventManager.dispatch({type:"load"}),te&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")});}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return {align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case M._wasmModule?.Fit.Contain:return "contain";case M._wasmModule?.Fit.Cover:return "cover";case M._wasmModule?.Fit.Fill:return "fill";case M._wasmModule?.Fit.FitHeight:return "fit-height";case M._wasmModule?.Fit.FitWidth:return "fit-width";case M._wasmModule?.Fit.None:return "none";default:return "contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return [n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===M._wasmModule?.Mode.Reverse?"reverse":n===M._wasmModule?.Mode.Bounce?"bounce":n===M._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||M._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",M._wasmModule),segment:et(n.segment??[],M._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,M._wasmModule),fit:Ze(n.layout.fit,M._wasmModule)}:M._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""));}_render(){if(this._dotLottieCore===null||this._context===null)return !1;if(this._dotLottieCore.render()){let a=this._dotLottieCore.buffer(),d=new Uint8ClampedArray(a,0,this._canvas.width*this._canvas.height*4),w=null;return typeof ImageData>"u"?(w=this._context.createImageData(this._canvas.width,this._canvas.height),w.data.set(d)):w=new ImageData(d,this._canvas.width,this._canvas.height),this._context.putImageData(w,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return !1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this));}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)));}pause(){if(this._dotLottieCore===null)return;this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"});}stop(){if(this._dotLottieCore===null)return;this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}));}setFrame(n){if(this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames())return;this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render());}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:n});}setBackgroundColor(n){this._dotLottieCore!==null&&(te&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig({...this._dotLottieCore.config(),backgroundColor:zt(n)}),this._backgroundColor=n);}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:n});}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:n});}addEventListener(n,a){this._eventManager.addEventListener(n,a);}removeEventListener(n,a){this._eventManager.removeEventListener(n,a);}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners();}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}));}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}));}resize(){if(te&&this._canvas instanceof HTMLCanvasElement){let a=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:d,width:w}=this._canvas.getBoundingClientRect();this._canvas.width=w*a,this._canvas.height=d*a;}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render();}setSegment(n,a){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:et([n,a],M._wasmModule)});}setMode(n){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:Qe(n,M._wasmModule)});}setRenderConfig(n){this._renderConfig=n;}loadAnimation(n){if(this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n)return;this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)});}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:n});}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let d=0;dn=>{let a={id:"",method:"onReady",result:{instanceId:s,event:n}};self.postMessage(a);},complete:s=>n=>{let a={id:"",method:"onComplete",result:{instanceId:s,event:n}};self.postMessage(a);},load:s=>n=>{let d={id:"",method:"onLoad",result:{instanceId:s,event:n}};self.postMessage(d);},loadError:s=>n=>{let d={id:"",method:"onLoadError",result:{instanceId:s,event:n}};self.postMessage(d);},loop:s=>n=>{let d={id:"",method:"onLoop",result:{instanceId:s,event:n}};self.postMessage(d);},play:s=>n=>{let d={id:"",method:"onPlay",result:{instanceId:s,event:n}};self.postMessage(d);},pause:s=>n=>{let d={id:"",method:"onPause",result:{instanceId:s,event:n}};self.postMessage(d);},stop:s=>n=>{let d={id:"",method:"onStop",result:{instanceId:s,event:n}};self.postMessage(d);},frame:s=>n=>{let d={id:"",method:"onFrame",result:{instanceId:s,event:n}};self.postMessage(d);},render:s=>n=>{let d={id:"",method:"onRender",result:{instanceId:s,event:n}};self.postMessage(d);},freeze:s=>n=>{let d={id:"",method:"onFreeze",result:{instanceId:s,event:n}};self.postMessage(d);},unfreeze:s=>n=>{let d={id:"",method:"onUnfreeze",result:{instanceId:s,event:n}};self.postMessage(d);},destroy:s=>n=>{let d={id:"",method:"onDestroy",result:{instanceId:s,event:n}};self.postMessage(d);}},Ot={getDotLottieInstanceState(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return {state:{isLoaded:a.isLoaded,isPaused:a.isPaused,isPlaying:a.isPlaying,isStopped:a.isStopped,isFrozen:a.isFrozen,loop:a.loop,mode:a.mode,speed:a.speed,currentFrame:a.currentFrame,totalFrames:a.totalFrames,duration:a.duration,useFrameInterpolation:a.useFrameInterpolation,renderConfig:a.renderConfig,marker:a.marker,backgroundColor:a.backgroundColor,markers:a.markers(),activeAnimationId:a.activeAnimationId,activeThemeId:a.activeThemeId,autoplay:a.autoplay,segment:a.segment,layout:a.layout,segmentDuration:a.segmentDuration,isReady:a.isReady,manifest:a.manifest}}},setLayout(s){let n=s.params.instanceId,a=s.params.layout,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLayout(a),{success:!0}},getStateMachineListeners(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.getStateMachineListeners()},postStateMachineEvent(s){let n=s.params.instanceId,a=s.params.event,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.postStateMachineEvent(a)},startStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.startStateMachine()},stopStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.stopStateMachine()},loadStateMachine(s){let n=s.params.instanceId,a=s.params.stateMachineId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadStateMachine(a)},create:s=>{let n=s.params.instanceId,a=s.params.config,d=s.params.width,w=s.params.height;if(E.has(n))throw new Error(`Instance with id ${n} already exists.`);let T=new fe(a);return T.canvas.height=w,T.canvas.width=d,E.set(n,T),["complete","frame","load","loadError","loop","pause","play","stop","destroy","freeze","unfreeze","render","ready"].forEach(Y=>{T.addEventListener(Y,$n[Y](n));}),{instanceId:n}},destroy:s=>{let n=s.params.instanceId,a=E.get(n);a&&(a.destroy(),E.delete(n));},freeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.freeze();},load:s=>{let n=s.params.instanceId,a=s.params.config,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.load(a);},loadAnimation:s=>{let n=s.params.instanceId,a=s.params.animationId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.loadAnimation(a);},loadTheme:s=>{let n=s.params.instanceId,a=s.params.themeId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadTheme(a)},loadThemeData:s=>{let n=s.params.instanceId,a=s.params.themeData,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadThemeData(a)},pause:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.pause()},play:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.play()},resize:s=>{let n=s.params.instanceId,a=s.params.width,d=s.params.height,w=E.get(n);if(!w)throw new Error(`Instance with id ${n} does not exist.`);return w.canvas.height=d,w.canvas.width=a,w.resize(),{success:!0}},setBackgroundColor:s=>{let n=s.params.instanceId,a=s.params.backgroundColor,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setBackgroundColor(a);},setFrame:s=>{let n=s.params.instanceId,a=s.params.frame,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setFrame(a);},setMode:s=>{let n=s.params.instanceId,a=s.params.mode,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setMode(a);},setRenderConfig:s=>{let n=s.params.instanceId,a=s.params.renderConfig,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setRenderConfig(a);},setSegment:s=>{let n=s.params.instanceId,a=s.params.segment,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSegment(a[0],a[1]);},setSpeed:s=>{let n=s.params.instanceId,a=s.params.speed,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSpeed(a);},setUseFrameInterpolation:s=>{let n=s.params.instanceId,a=s.params.useFrameInterpolation,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setUseFrameInterpolation(a);},setWasmUrl:s=>{fe.setWasmUrl(s.params.url);},stop:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.stop();},unfreeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.unfreeze();},setViewport(s){let n=s.params.instanceId,a=s.params.x,d=s.params.y,w=s.params.width,T=s.params.height,W=E.get(n);if(!W)throw new Error(`Instance with id ${n} does not exist.`);return W.setViewport(a,d,w,T)},setMarker(s){let n=s.params.instanceId,a=s.params.marker,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setMarker(a),{success:!0}},setLoop(s){let n=s.params.instanceId,a=s.params.loop,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLoop(a),{success:!0}}};function kn(s){let n=s.method;if(typeof Ot[n]=="function")return Ot[n](s);throw new Error(`Method ${n} is not implemented in commands.`)}self.onmessage=s=>{try{let n=kn(s.data),a={id:s.data.id,method:s.data.method,result:n};self.postMessage(a);}catch(n){let a={id:s.data.id,method:s.data.method,error:n.message};self.postMessage(a);}};var Dn="",lr=Dn;\n\nexport { lr as default };\n',Ri=class{constructor(){F(this,"_workers",new Map),F(this,"_animationWorkerMap",new Map)}_createWorker(s){let n=new Blob([Ti],{type:"application/javascript"});return new Worker(URL.createObjectURL(n),{type:"module",name:s})}getWorker(s){return this._workers.has(s)||this._workers.set(s,this._createWorker(s)),this._workers.get(s)}assignAnimationToWorker(s,n){this._animationWorkerMap.set(s,n)}unassignAnimationFromWorker(s){this._animationWorkerMap.delete(s)}sendMessage(s,n,a){this.getWorker(s).postMessage(n,a||[])}terminateWorker(s){let n=this._workers.get(s);n&&(n.terminate(),this._workers.delete(s))}};function Ca(s){if(s instanceof OffscreenCanvas)return{width:s.width,height:s.height};let{height:n,width:a}=s.getBoundingClientRect();return{width:a*window.devicePixelRatio,height:n*window.devicePixelRatio}}function wa(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var Sa=class It{constructor(n){F(this,"_eventManager",new La),F(this,"_id"),F(this,"_worker"),F(this,"_canvas"),F(this,"_dotLottieInstanceState",{markers:[],autoplay:!1,backgroundColor:"",currentFrame:0,duration:0,loop:!1,mode:"forward",segment:[0,0],segmentDuration:0,speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:window.devicePixelRatio},activeAnimationId:"",activeThemeId:"",layout:void 0,marker:void 0,isReady:!1,manifest:null}),F(this,"_created",!1),this._canvas=n.canvas,this._id=`dotlottie-${wa()}`;let a=n.workerId||"defaultWorker";this._worker=It._workerManager.getWorker(a),It._workerManager.assignAnimationToWorker(this._id,a),It._wasmUrl&&this._sendMessage("setWasmUrl",{url:It._wasmUrl}),this._create(n),this._worker.addEventListener("message",this._handleWorkerEvent.bind(this))}_handleWorkerEvent(n){return M(this,null,function*(){let a=n.data;a.id||(a.method==="onLoad"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onComplete"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onDestroy"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onUnfreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(a.result.event)),a.method==="onFrame"&&a.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=a.result.event.currentFrame,this._eventManager.dispatch(a.result.event)),a.method==="onRender"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onFreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPause"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPlay"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onStop"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onLoadError"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onReady"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)))})}_create(n){return M(this,null,function*(){let a;this._canvas instanceof HTMLCanvasElement?a=this._canvas.transferControlToOffscreen():a=this._canvas;let{instanceId:c}=yield this._sendMessage("create",x({instanceId:this._id,config:T(x({},n),{canvas:a})},Ca(this._canvas)),[a]);if(c!==this._id)throw new Error("Instance ID mismatch");this._created=!0,yield this._updateDotLottieInstanceState()})}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get segmentDuration(){return this._dotLottieInstanceState.segmentDuration}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}play(){return M(this,null,function*(){this._created&&(yield this._sendMessage("play",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}pause(){return M(this,null,function*(){this._created&&(yield this._sendMessage("pause",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}stop(){return M(this,null,function*(){this._created&&(yield this._sendMessage("stop",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSpeed(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setSpeed",{instanceId:this._id,speed:n}),yield this._updateDotLottieInstanceState())})}setMode(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setMode",{instanceId:this._id,mode:n}),yield this._updateDotLottieInstanceState())})}setFrame(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setFrame",{frame:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSegment(n,a){return M(this,null,function*(){this._created&&(yield this._sendMessage("setSegment",{instanceId:this._id,segment:[n,a]}),yield this._updateDotLottieInstanceState())})}setRenderConfig(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:n}),yield this._updateDotLottieInstanceState())})}setUseFrameInterpolation(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:n}),yield this._updateDotLottieInstanceState())})}loadTheme(n){return M(this,null,function*(){if(!this._created)return!1;let a=this._sendMessage("loadTheme",{instanceId:this._id,themeId:n});return yield this._updateDotLottieInstanceState(),a})}load(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("load",{config:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLoop(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setLoop",{instanceId:this._id,loop:n}),yield this._updateDotLottieInstanceState())})}resize(){return M(this,null,function*(){if(!this._created)return;let{height:n,width:a}=Ca(this._canvas);this._canvas.width=a,this._canvas.height=n,yield this._sendMessage("resize",{height:n,instanceId:this._id,width:a}),yield this._updateDotLottieInstanceState()})}destroy(){return M(this,null,function*(){this._created&&(this._created=!1,yield this._sendMessage("destroy",{instanceId:this._id}),this._cleanupStateMachineListeners(),It._workerManager.unassignAnimationFromWorker(this._id),this._eventManager.removeAllEventListeners())})}freeze(){return M(this,null,function*(){this._created&&(yield this._sendMessage("freeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}unfreeze(){return M(this,null,function*(){this._created&&(yield this._sendMessage("unfreeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setBackgroundColor(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:n}),yield this._updateDotLottieInstanceState())})}loadAnimation(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("loadAnimation",{animationId:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLayout(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setLayout",{instanceId:this._id,layout:n}),yield this._updateDotLottieInstanceState())})}_updateDotLottieInstanceState(){return M(this,null,function*(){if(!this._created)return;let n=yield this._sendMessage("getDotLottieInstanceState",{instanceId:this._id});this._dotLottieInstanceState=n.state})}markers(){return this._dotLottieInstanceState.markers}setMarker(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setMarker",{instanceId:this._id,marker:n}),yield this._updateDotLottieInstanceState())})}loadThemeData(n){return M(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadThemeData",{instanceId:this._id,themeData:n});return yield this._updateDotLottieInstanceState(),a})}setViewport(n,a,c,p){return M(this,null,function*(){return this._created?this._sendMessage("setViewport",{x:n,y:a,width:c,height:p,instanceId:this._id}):!1})}_sendMessage(n,a,c){return M(this,null,function*(){let p={id:`dotlottie-request-${wa()}`,method:n,params:a};return this._worker.postMessage(p,c||[]),new Promise((_,q)=>{let rt=V=>{let Et=V.data;Et.id===p.id&&(this._worker.removeEventListener("message",rt),Et.error?q(new Error(`Failed to execute method ${n}: ${Et.error}`)):_(Et.result))};this._worker.addEventListener("message",rt)})})}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}static setWasmUrl(n){It._wasmUrl=n}loadStateMachine(n){return M(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadStateMachine",{instanceId:this._id,stateMachineId:n});return yield this._updateDotLottieInstanceState(),a})}startStateMachine(){return M(this,null,function*(){if(!this._created)return!1;this._setupStateMachineListeners();let n=yield this._sendMessage("startStateMachine",{instanceId:this._id});return yield this._updateDotLottieInstanceState(),n})}stopStateMachine(){return M(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}postStateMachineEvent(n){return M(this,null,function*(){return this._created?this._sendMessage("postStateMachineEvent",{event:n,instanceId:this._id}):!1})}getStateMachineListeners(){return M(this,null,function*(){return this._created?this._sendMessage("getStateMachineListeners",{instanceId:this._id}):[]})}_getPointerPosition(n){let a=this._canvas.getBoundingClientRect(),c=this._canvas.width/a.width,p=this._canvas.height/a.height,_=this._dotLottieInstanceState.renderConfig.devicePixelRatio||window.devicePixelRatio||1,q=(n.clientX-a.left)*c/_,rt=(n.clientY-a.top)*p/_;return{x:q,y:rt}}_onPointerUp(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerUp: ${a} ${c}`)}_onPointerDown(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerDown: ${a} ${c}`)}_onPointerMove(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerMove: ${a} ${c}`)}_onPointerEnter(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerEnter: ${a} ${c}`)}_onPointerLeave(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerExit: ${a} ${c}`)}_onComplete(){this.postStateMachineEvent("OnComplete")}_setupStateMachineListeners(){return M(this,null,function*(){if(Pt&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let n=yield this._sendMessage("getStateMachineListeners",{instanceId:this._id});n.includes("PointerUp")&&this._canvas.addEventListener("pointerup",this._onPointerUp.bind(this)),n.includes("PointerDown")&&this._canvas.addEventListener("pointerdown",this._onPointerDown.bind(this)),n.includes("PointerMove")&&this._canvas.addEventListener("pointermove",this._onPointerMove.bind(this)),n.includes("PointerEnter")&&this._canvas.addEventListener("pointerenter",this._onPointerEnter.bind(this)),n.includes("PointerExit")&&this._canvas.addEventListener("pointerleave",this._onPointerLeave.bind(this)),n.includes("Complete")&&this.addEventListener("complete",this._onComplete.bind(this))}})}_cleanupStateMachineListeners(){Pt&&this._canvas instanceof HTMLCanvasElement&&(this._canvas.removeEventListener("pointerup",this._onPointerUp.bind(this)),this._canvas.removeEventListener("pointerdown",this._onPointerDown.bind(this)),this._canvas.removeEventListener("pointermove",this._onPointerMove.bind(this)),this._canvas.removeEventListener("pointerenter",this._onPointerEnter.bind(this)),this._canvas.removeEventListener("pointerleave",this._onPointerLeave.bind(this)),this.removeEventListener("complete",this._onComplete.bind(this)))}};F(Sa,"_workerManager",new Ri),F(Sa,"_wasmUrl","");function Aa(s,n){let a=s.ngOnInit;s.ngOnInit=function(){if(this[n]===void 0||this[n]===null)throw new Error(`Required input '${n}' was not provided in ${s.constructor.name}.`);if(a)return a.apply(this)}}var Nt=function(s){return s.QUANTIZATION="quant",s.PRUNING="pruning",s}(Nt||{});var Ia={[Nt.PRUNING]:{path:"assets/animations/pruning.lottie",speed:.15,className:"pruning"},[Nt.QUANTIZATION]:{path:"assets/animations/quantization.lottie",speed:.07,className:"quant"}};var ki=["dotlottieCanvas"],dt,ee=(dt=class{constructor(n,a,c){this.scriptFacadeService=n,this.el=a,this.renderer=c}ngOnInit(){let n=Ia[this.animationType];if(!n)throw new Error(`Unknown animation type: ${this.animationType}`);this.initializeAnimation(n)}initializeAnimation(n){this.dotLottie=new ba({autoplay:!1,loop:!0,canvas:this.dotlottieCanvas.nativeElement,src:n.path,speed:n.speed||1}),this.dotLottie.addEventListener("load",()=>{this.listenToScriptStateChanges()}),this.renderer.addClass(this.el.nativeElement,n.className)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(kt(this)).subscribe(n=>{Ae(n)?this.playAnimation():this.stopAnimation()})}playAnimation(){this.dotLottie?.play()}stopAnimation(){this.dotLottie?.stop()}},dt.\u0275fac=function(a){return new(a||dt)(W($t),W(Jn),W(ta))},dt.\u0275cmp=G({type:dt,selectors:[["ms-running-animation"]],viewQuery:function(a,c){if(a&1&&ea(ki,7),a&2){let p;na(p=aa())&&(c.dotlottieCanvas=p.first)}},inputs:{animationType:"animationType"},decls:3,vars:0,consts:[["dotlottieCanvas",""],[1,"parent-container"],["id","dotlottie-canvas"]],template:function(a,c){a&1&&(w(0,"div",1),P(1,"canvas",2,0),v())},styles:[".parent-container[_ngcontent-%COMP%]{overflow:hidden;height:300px;border-radius:10px;margin-bottom:10px;position:relative;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}canvas[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:cover;position:absolute;top:50%;left:0;transform:translateY(-50%)}.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#b2ddff}@media (max-width: 1000px){.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1200px){.pruning[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#1649a8}@media (max-width: 1000px){.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1100px){.quant[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}"],changeDetection:0}),dt);lt([Aa],ee.prototype,"animationType",void 0);ee=lt([_t()],ee);var j=function(s){return s.ACCURACY="accuracy",s.LOSS="loss",s}(j||{}),Ui=100,ne=(s,n,a=!1)=>s.map(c=>({datasetIndex:c.datasetIndex,values:(a?c.testing:c.steps).map(p=>p[n])||[]})),Pa=s=>{let n=s.flatMap(a=>a.sparsity).filter(a=>a!=null);return[{datasetIndex:0,values:[Ui,...n]}]},mn=(s,n)=>[{datasetIndex:0,values:s.steps.map(a=>a[n]).filter(a=>a!=null)}],pn=(s,n)=>n===j.LOSS?s.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p?.loss).filter(p=>p!=null)})):[{datasetIndex:0,values:s.map(a=>a.accuracy).filter(a=>a!=null)}],gn=(s,n)=>s.epochs.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])})),fn=(s,n)=>s.tests.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])}));var Fa=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialAccuracyChartData=[],this.accuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisDynamic:!0,datasetLabelPrefix:"Epoch:",xAxisLabelPrefix:"Step",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY},this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY},this.initialLossChartData=[],this.lossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Epoch:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:1,dynamicYAxisGrowthRoundFactor:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.dispatch(yt.getCurrentMachineUnlearningChartData())}loadLatestChartsData(){this.chartsFacadeService.machineUnlearningProgress$.pipe(Z(1),ot(c=>!Ie(c)),Q(1)).subscribe(c=>{this.initialAccuracyChartData=gn(c,j.ACCURACY),this.initialLossChartData=gn(c,j.LOSS),this.initialAccuracyTestingChartData=fn(c,j.ACCURACY),this.initialLossTestingChartData=fn(c,j.LOSS)})}};n.\u0275fac=function(p){return new(p||n)(W(Ut))},n.\u0275cmp=G({type:n,selectors:[["ms-running-machine-unlearning-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),L("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),L("data",_.initialAccuracyTestingChartData)("settings",_.testingAccuracyChartDisplaySettings),S(5),L("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),L("data",_.initialLossTestingChartData)("settings",_.testingLossChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var it=function(s){return s.SPARSITY_PRUNING="sparsityPruning",s.ACCURACY_PRUNING="accuracyPruning",s.ACCURACY_QUANTIZATION="accuracyQuantization",s.ACCURACY_MACHINE_UNLEARNING="accuracyMachineUnlearning",s.LOSS_QUANTIZATION="lossQuantization",s.LOSS_PRUNING="lossPruning",s.LOSS_MACHINE_UNLEARNING="lossMachineUnlearning",s.TESTING_ACCURACY_CHART="testing_accuracyChart",s.TESTING_LOSS_CHART="testing_lossChart",s}(it||{});var mt,Oe=(mt=class{constructor(n){this.chartsFacadeService=n,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.lossPruningChartSettings={},this.lossChartDisplaySettings=T(x({},Wt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS}),this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings=T(x({},Wt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}),this.initialAccuracyChartData=[],this.accuracyPruningChartSettings={},this.accuracyChartDisplaySettings=T(x({},Wt),{chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY}),this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings=T(x({},Wt),{yAxisTickInterval:20,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}),this.initialSparsityChartData=[],this.sparsityPruningChartSettings={},this.sparsityChartDisplaySettings=T(x({},Wt),{xAxisLabelPrefix:"Pruning",isDatasetLabelVisible:!1,yAxisTickInterval:100,chartDataStructure:H.SINGLE_PHASE_X_AXIS_SKIP_ONE,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.BLUE,useSteppedLines:!0,realtimeUpdateMetric:U.SPARSITY})}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(n=>{n&&(this.accuracyPruningChartSettings=n[it.ACCURACY_PRUNING]||{},this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.testingAccuracyChartDisplaySettings=T(x({},this.testingAccuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.lossPruningChartSettings=T(x({},n[it.LOSS_PRUNING]||{}),{testingSteps:Fe}),this.lossChartDisplaySettings=T(x({},this.lossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.testingLossChartDisplaySettings=T(x({},this.testingLossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.sparsityPruningChartSettings=x({},n[it.SPARSITY_PRUNING]||{}),this.sparsityChartDisplaySettings=T(x({},this.sparsityChartDisplaySettings),{xAxisDataPointsCount:this.sparsityPruningChartSettings.pruningTimes+1}),this.chartsFacadeService.dispatch(yt.getCurrentPruningChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_PRUNING,it.LOSS_PRUNING,it.SPARSITY_PRUNING]}))}loadLatestChartsData(){this.chartsFacadeService.pruningProgress.pipe(Z(1),ot(n=>!!n&&n.length>0),Q(1)).subscribe(n=>{this.initialLossChartData=ne(n,j.LOSS),this.initialLossTestingChartData=ne(n,j.LOSS,!0),this.initialAccuracyChartData=ne(n,j.ACCURACY),this.initialAccuracyTestingChartData=ne(n,j.ACCURACY,!0),this.initialSparsityChartData=Pa(n)})}},mt.\u0275fac=function(a){return new(a||mt)(W(Ut))},mt.\u0275cmp=G({type:mt,selectors:[["ms-running-pruning-charts"]],decls:23,vars:10,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"],[1,"ms-chart-display","sparsity-chart"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()(),w(19,"div",7)(20,"p",3),A(21,"Sparsity Training"),v(),P(22,"ms-line-chart",4),v()()),a&2&&(S(5),L("data",c.initialAccuracyChartData)("settings",c.accuracyChartDisplaySettings),S(4),L("data",c.initialAccuracyTestingChartData)("settings",c.testingAccuracyChartDisplaySettings),S(5),L("data",c.initialLossChartData)("settings",c.lossChartDisplaySettings),S(4),L("data",c.initialLossTestingChartData)("settings",c.testingLossChartDisplaySettings),S(4),L("data",c.initialSparsityChartData)("settings",c.sparsityChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%]{flex-direction:column}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;flex:0 0 30%}"]}),mt);Oe=lt([_t()],Oe);var Da=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.initialLossTestingChartData=[],this.initialAccuracyChartData=[],this.initialAccuracyTestingChartData=[],this.lossChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:40,datasetLabelPrefix:"Reconstruction:",xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:50,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.lossTestingChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,datasetColorSettingsKey:B.YELLOW,dynamicYAxisGrowthRoundFactor:2,realtimeUpdateMetric:U.TESTING_LOSS},this.accuracyChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisLabelPrefix:"Recon.",isDatasetLabelVisible:!1,isXAxisVisible:!0,xAxisInitialLabelValue:0,chartDataStructure:H.SINGLE_PHASE_X_AXIS,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,isXAxisDynamic:!0,realtimeUpdateMetric:U.ACCURACY,enhanceSinglePhaseXAxisWebsocketEvent:!0},this.accuracyTestingChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(c=>{c&&(this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisDataPointsCount:c[it.ACCURACY_QUANTIZATION]?.reconstructions}),this.chartsFacadeService.dispatch(yt.getCurrentQuantizationChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_QUANTIZATION]}))}loadLatestChartsData(){this.chartsFacadeService.quantizationProgress$.pipe(Z(1),ot(c=>!!c),Q(1)).subscribe(c=>this.processChartData(c))}processChartData(c){this.initialLossChartData=pn(c.reconstructions,j.LOSS),this.initialAccuracyChartData=pn(c.reconstructions,j.ACCURACY),this.initialLossTestingChartData=mn(c.testing,j.LOSS),this.initialAccuracyTestingChartData=mn(c.testing,j.ACCURACY)}};n.\u0275fac=function(p){return new(p||n)(W(Ut))},n.\u0275cmp=G({type:n,selectors:[["ms-running-quantization-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"reconstructions"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),L("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),L("data",_.initialAccuracyTestingChartData)("settings",_.accuracyTestingChartDisplaySettings),S(5),L("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),L("data",_.initialLossTestingChartData)("settings",_.lossTestingChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .reconstructions[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var Ta=(()=>{let n=class n{constructor(){this.keyMap={forget_acc:"Forget Accuracy",retain_acc:"Retain Accuracy",test_acc:"Test Accuracy",val_acc:"Validation Accuracy"}}transform(c){if(!c)return c;let p=c.split("_");if(p.length<3)return c;let _=p.slice(0,-2).join("_"),q=p[p.length-1];return`${this.keyMap[_]||_.split("_").map(V=>V.charAt(0).toUpperCase()+V.slice(1)).join(" ")} (Test #${q})`}};n.\u0275fac=function(p){return new(p||n)},n.\u0275pipe=Zn({name:"readableStatisticsLabel",type:n,pure:!0});let s=n;return s})();var Vi=s=>({stats:s});function Gi(s,n){if(s&1&&(w(0,"div",7)(1,"span",8),A(2),we(3,"readableStatisticsLabel"),v(),w(4,"span",9),A(5),v()()),s&2){let a=n.$implicit;S(2),Ce("",Se(3,2,a.key),":"),S(3),ia(a.value)}}function Xi(s,n){if(s&1&&(bt(0),w(1,"div",5),J(2,Gi,6,4,"div",6),v(),At()),s&2){let a=ht().ngIf;S(2),L("ngForOf",a.stats)}}function qi(s,n){s&1&&P(0,"ms-empty-state",10)}function Ki(s,n){if(s&1&&(bt(0),J(1,Xi,3,1,"ng-container",4)(2,qi,1,0,"ng-template",null,0,Le),At()),s&2){let a=n.ngIf,c=ye(3);S(),L("ngIf",a.stats==null?null:a.stats.length)("ngIfElse",c)}}var Oa=(()=>{let n=class n{constructor(c){this.statisticsFacadeService=c,this.statistics$=this.statisticsFacadeService.statistics$}ngOnInit(){this.statisticsFacadeService.dispatch(ya.getStatistics())}};n.\u0275fac=function(p){return new(p||n)(W(_a))},n.\u0275cmp=G({type:n,selectors:[["ms-running-statistics"]],decls:6,vars:7,consts:[["noStatistics",""],[1,"ms-card"],[1,"heading-section-title"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"key-value-container","dense"],["class","key-value-pair",4,"ngFor","ngForOf"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],["title","No statistics available."]],template:function(p,_){p&1&&(w(0,"mat-card",1)(1,"p",2),A(2,"Statistics"),v(),J(3,Ki,4,2,"ng-container",3),we(4,"async"),we(5,"keyvalue"),v()),p&2&&(S(3),L("ngIf",ra(5,Vi,Se(5,3,Se(4,1,_.statistics$)))))},dependencies:[oa,Ot,Ee,xe,la,ha,Ta]});let s=n;return s})();function tr(s,n){if(s&1){let a=_e();w(0,"div",18)(1,"button",19),Rt("click",function(){fe(a);let p=ht();return ve(p.runStopScript())}),A(2," Stop "),v()()}}function er(s,n){s&1&&(w(0,"div",20)(1,"div",13),A(2,"\u2014"),v(),w(3,"div",14),A(4,"Sparsity"),v()())}var pt,ke=(pt=class{constructor(n,a){this.scriptFacadeService=n,this.chartToolsGlobalSignalsService=a,this.isScriptActive=!1,this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToScriptStateChanges(),this.subscribeToChartToolsSignals()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(Jt.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n}),this.scriptFacadeService.scriptStatus$.pipe(kt(this)).subscribe(n=>{this.isScriptActive=Ae(n)})}toggleTooltip(n){this.chartToolsGlobalSignalsService.toggleTooltips=n.checked}toggleZoom(n){this.chartToolsGlobalSignalsService.toggleZoom=n.checked}get isSparsityVisible(){return this.scriptDetails?.type===te.PRUNING}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(kt(this)).subscribe(n=>{this.enableTooltips=n}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(kt(this)).subscribe(n=>{this.enableZoom=n})}runStopScript(){this.scriptFacadeService.dispatch(Jt.stopScript())}},pt.\u0275fac=function(a){return new(a||pt)(W($t),W(De))},pt.\u0275cmp=G({type:pt,selectors:[["ms-running-status-bar"]],decls:33,vars:7,consts:[[1,"training-status","mb-2"],[1,"status-bar"],[1,"runnning-title-container"],[1,"model-name","heading-sub-section-title"],["class","ml-2",4,"ngIf"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel","disabled"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel","disabled"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[1,"metrics"],[1,"metric","accuracy"],[1,"metric-value"],[1,"metric-name","paragraph-semibold-p2-large-emphasis"],[1,"metric","loss"],["class","metric sparsity",4,"ngIf"],[1,"metric","testing"],[1,"ml-2"],["mat-raised-button","","color","warn","matTooltip","Stop current process.",3,"click"],[1,"metric","sparsity"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3),A(5),v(),J(6,tr,3,0,"div",4),v(),w(7,"div",5)(8,"div")(9,"mat-slide-toggle",6),on("ngModelChange",function(_){return rn(c.enableTooltips,_)||(c.enableTooltips=_),_}),Rt("change",function(_){return c.toggleTooltip(_)}),A(10," Enable tooltips "),v()(),w(11,"div",7)(12,"mat-slide-toggle",8),on("ngModelChange",function(_){return rn(c.enableZoom,_)||(c.enableZoom=_),_}),Rt("change",function(_){return c.toggleZoom(_)}),A(13," Enable zoom "),v(),w(14,"div",9),P(15,"mat-icon",10),v()()()()(),w(16,"div",11)(17,"div",12)(18,"div",13),A(19,"\u2014"),v(),w(20,"div",14),A(21,"Accuracy"),v()(),w(22,"div",15)(23,"div",13),A(24,"\u2014"),v(),w(25,"div",14),A(26,"Loss"),v()(),J(27,er,5,0,"div",16),w(28,"div",17)(29,"div",13),A(30,"\u2014"),v(),w(31,"div",14),A(32,"Test"),v()()()()),a&2&&(S(5),Ce("Algorithm: ",(c.scriptDetails==null?null:c.scriptDetails.algKey)||"None",""),S(),L("ngIf",c.isScriptActive),S(3),an("ngModel",c.enableTooltips),L("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(3),an("ngModel",c.enableZoom),L("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(15),L("ngIf",c.isSparsityVisible))},dependencies:[Ot,Me,be,pa,ga,ua,ma],styles:[".training-status[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.training-status[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.training-status[_ngcontent-%COMP%] .runnning-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%], .training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%]{display:flex;gap:10px}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:1.25rem}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.sparsity[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-sparsity)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.accuracy[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-accuracy)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.loss[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-loss)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.testing[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-testing)}"]}),pt);ke=lt([_t()],ke);function ar(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.QUANTIZATION)}}function ir(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.PRUNING)}}function rr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.PRUNING)}}function or(s,n){s&1&&P(0,"ms-running-quantization-charts")}function sr(s,n){s&1&&P(0,"ms-running-pruning-charts")}function cr(s,n){s&1&&P(0,"ms-running-machine-unlearning-charts")}function lr(s,n){if(s&1&&(bt(0)(1,2),J(2,or,1,0,"ms-running-quantization-charts",11)(3,sr,1,0,"ms-running-pruning-charts",11)(4,cr,1,0,"ms-running-machine-unlearning-charts",11),At()()),s&2){let a=ht();S(),L("ngSwitch",a.scriptDetails==null?null:a.scriptDetails.type),S(),L("ngSwitchCase",a.AlgorithmType.QUANTIZATION),S(),L("ngSwitchCase",a.AlgorithmType.PRUNING),S(),L("ngSwitchCase",a.AlgorithmType.MACHINE_UNLEARNING)}}function hr(s,n){s&1&&P(0,"ms-empty-state",12)}function dr(s,n){s&1&&(bt(0),w(1,"div",13),P(2,"ms-running-statistics"),v(),At())}var gt,$e=(gt=class{constructor(n,a){this.navigationService=n,this.scriptFacadeService=a,this.AlgorithmType=te,this.AnimationType=Nt}ngOnInit(){this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(Jt.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n})}get isChartVisible(){return!Ie(this.scriptDetails?.algKey)&&this.scriptDetails?.type!==te.TRAIN}},gt.\u0275fac=function(a){return new(a||gt)(W(va),W($t))},gt.\u0275cmp=G({type:gt,selectors:[["ms-running"]],decls:16,vars:7,consts:[["noChartData",""],[1,"heading-primary-title","title"],[3,"ngSwitch"],[3,"animationType",4,"ngSwitchCase"],[1,"ms-card","running-prunning"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"mt-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[3,"animationType"],[4,"ngSwitchCase"],["title","No Chart Data Available","message","Please run the appropriate script to generate chart data."],[1,"mt-2"]],template:function(a,c){if(a&1){let p=_e();w(0,"p",1),A(1,"Running"),v(),bt(2,2),J(3,ar,1,1,"ms-running-animation",3)(4,ir,1,1,"ms-running-animation",3)(5,rr,1,1,"ms-running-animation",3),At(),w(6,"mat-card",4),P(7,"ms-running-status-bar"),J(8,lr,5,4,"ng-container",5)(9,hr,1,0,"ng-template",null,0,Le),v(),J(11,dr,3,0,"ng-container",6),w(12,"div",7)(13,"button",8),Rt("click",function(){return fe(p),ve(c.navigationService.goToPreviousPage())}),P(14,"mat-icon",9),A(15," Go back "),v()()}if(a&2){let p=ye(10);S(2),L("ngSwitch",c.scriptDetails==null?null:c.scriptDetails.type),S(),L("ngSwitchCase",c.AlgorithmType.QUANTIZATION),S(),L("ngSwitchCase",c.AlgorithmType.PRUNING),S(),L("ngSwitchCase",c.AlgorithmType.MACHINE_UNLEARNING),S(3),L("ngIf",c.isChartVisible)("ngIfElse",p),S(3),L("ngIf",(c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.MACHINE_UNLEARNING)}},dependencies:[Ot,sa,ca,Me,be,Ee,xe,Oe,Da,Fa,ee,Oa,ke]}),gt);$e=lt([_t()],$e);var ur=[{path:"",component:$e}],ka=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({imports:[sn.forChild(ur),sn]});let s=n;return s})();var es=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({providers:[De],imports:[ka,da,fa,Ct]});let s=n;return s})();export{es as RunningModule}; +import{a as B,b as Nt,c as cn,d as Fe,e as H,f as U,h as De,i as Ct}from"./chunk-6GVGRTBF.js";import{a as xe}from"./chunk-DMXFRYPI.js";import{b as yt,e as Wt,i as va,k as _a,m as ya}from"./chunk-3ZHMSG5W.js";import{b as fa}from"./chunk-KK5JZLDV.js";import{$a as Le,A as Q,Aa as At,Ad as Pe,Ca as _e,Cc as Me,Cd as It,Da as Ot,Ea as ht,G as Z,Hc as be,Ja as ea,Ka as na,La as aa,Ma as ye,Md as Ut,Na as A,Oa as ia,P as pe,Pa as Ce,Qa as an,Qd as pa,Ra as rn,Sa as on,T as G,U as ge,W as Zn,Wa as ra,Ya as we,Z as fe,Za as Se,Zb as sn,Zd as Ee,_ as ve,a as x,b as T,ea as Jn,f as M,fb as oa,gb as kt,hb as sa,ib as ca,ja as S,je as ga,ka as W,m as lt,mb as la,na as ta,nc as ua,ob as ha,pb as da,qa as J,rc as ma,rd as _t,sa as L,sd as $t,ud as te,w as ot,wa as w,wd as Ae,xa as v,ya as P,yd as Ie,za as bt}from"./chunk-JA5VSLUI.js";var Mi=Object.defineProperty,bi=(s,n,a)=>n in s?Mi(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a,F=(s,n,a)=>bi(s,typeof n!="symbol"?n+"":n,a),Ai=class{requestAnimationFrame(s){return requestAnimationFrame(s)}cancelAnimationFrame(s){cancelAnimationFrame(s)}},Ii=class{constructor(){F(this,"_lastHandleId",0),F(this,"_lastImmediate",null)}requestAnimationFrame(s){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{s(Date.now())}),this._lastHandleId}cancelAnimationFrame(s){this._lastImmediate&&clearImmediate(this._lastImmediate)}},Pi=class{constructor(){F(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new Ai:new Ii}requestAnimationFrame(s){return this._strategy.requestAnimationFrame(s)}cancelAnimationFrame(s){this._strategy.cancelAnimationFrame(s)}},Et=typeof window<"u"&&typeof window.document<"u",Te={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},Ei=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,c,p,_=new Promise((t,e)=>{c=t,p=e}),q=Object.assign({},a),rt="./this.program",V="";typeof document<"u"&&document.currentScript&&(V=document.currentScript.src),s&&(V=s),V.startsWith("blob:")?V="":V=V.substr(0,V.replace(/[?#].*/,"").lastIndexOf("/")+1);var xt=a.print||console.log.bind(console),Ft=a.printErr||console.error.bind(console);Object.assign(a,q),q=null,a.thisProgram&&(rt=a.thisProgram);var zt;a.wasmBinary&&(zt=a.wasmBinary);var ae,vn=!1,wt,O,Dt,Bt,z,D,_n,yn;function Cn(){var t=ae.buffer;a.HEAP8=wt=new Int8Array(t),a.HEAP16=Dt=new Int16Array(t),a.HEAPU8=O=new Uint8Array(t),a.HEAPU16=Bt=new Uint16Array(t),a.HEAP32=z=new Int32Array(t),a.HEAPU32=D=new Uint32Array(t),a.HEAPF32=_n=new Float32Array(t),a.HEAPF64=yn=new Float64Array(t)}var wn=[],Sn=[],Ln=[];function $a(){var t=a.preRun.shift();wn.unshift(t)}var St=0,Ht=null;function ie(t){throw a.onAbort?.(t),t="Aborted("+t+")",Ft(t),vn=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),p(t),t}var Mn=t=>t.startsWith("data:application/octet-stream;base64,"),Tt;if(Tt="DotLottiePlayer.wasm",!Mn(Tt)){var bn=Tt;Tt=a.locateFile?a.locateFile(bn,V):V+bn}function An(t){if(t==Tt&&zt)return new Uint8Array(zt);throw"both async and sync fetching of the wasm failed"}function Ua(t){return zt||typeof fetch!="function"?Promise.resolve().then(()=>An(t)):fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>An(t))}function In(t,e,i){return Ua(t).then(r=>WebAssembly.instantiate(r,e)).then(i,r=>{Ft(`failed to asynchronously prepare wasm: ${r}`),ie(r)})}function Wa(t,e){var i=Tt;return zt||typeof WebAssembly.instantiateStreaming!="function"||Mn(i)||typeof fetch!="function"?In(i,t,e):fetch(i,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(e,function(o){return Ft(`wasm streaming compile failed: ${o}`),Ft("falling back to ArrayBuffer instantiation"),In(i,t,e)}))}var Ue=t=>{for(;0{var r=e+i;for(i=e;t[i]&&!(i>=r);)++i;if(16o?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else r+=String.fromCharCode(o)}return r};class Na{constructor(e){this.ya=e-24}}var En=0,xn=t=>{for(var e=0,i=0;i=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++i):e+=3}return e},Fn=(t,e,i,r)=>{if(0=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(127>=l){if(i>=r)break;e[i++]=l}else{if(2047>=l){if(i+1>=r)break;e[i++]=192|l>>6}else{if(65535>=l){if(i+2>=r)break;e[i++]=224|l>>12}else{if(i+3>=r)break;e[i++]=240|l>>18,e[i++]=128|l>>12&63}e[i++]=128|l>>6&63}e[i++]=128|l&63}}e[i]=0}},re={},We=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Yt(t){return this.fromWireType(D[t>>2])}var Rt={},Mt={},oe={},Vt,ft=(t,e,i)=>{function r(d){if(d=i(d),d.length!==t.length)throw new Vt("Mismatched type converter count");for(var g=0;g{Mt.hasOwnProperty(d)?o[g]=Mt[d]:(l.push(d),Rt.hasOwnProperty(d)||(Rt[d]=[]),Rt[d].push(()=>{o[g]=Mt[d],++u,u===l.length&&r(o)}))}),l.length===0&&r(o)},Dn,N=t=>{for(var e="";O[t];)e+=Dn[O[t++]];return e},b;function ja(t,e,i={}){var r=e.name;if(!t)throw new b(`type "${r}" must have a positive integer typeid pointer`);if(Mt.hasOwnProperty(t)){if(i.ib)return;throw new b(`Cannot register type '${r}' twice`)}Mt[t]=e,delete oe[t],Rt.hasOwnProperty(t)&&(e=Rt[t],delete Rt[t],e.forEach(o=>o()))}function tt(t,e,i={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ja(t,e,i)}var Ne=t=>{throw new b(t.ma.za.xa.name+" instance already deleted")},je=!1,Tn=()=>{},Rn=(t,e,i)=>e===i?t:i.Ca===void 0?null:(t=Rn(t,e,i.Ca),t===null?null:i.ab(t)),On={},Gt=[],ze=()=>{for(;Gt.length;){var t=Gt.pop();t.ma.Ka=!1,t.delete()}},Xt,qt={},za=(t,e)=>{if(e===void 0)throw new b("ptr should not be undefined");for(;t.Ca;)e=t.Na(e),t=t.Ca;return qt[e]},se=(t,e)=>{if(!e.za||!e.ya)throw new Vt("makeClassHandle requires ptr and ptrType");if(!!e.Da!=!!e.Aa)throw new Vt("Both smartPtrType and smartPtr must be specified");return e.count={value:1},Kt(Object.create(t,{ma:{value:e,writable:!0}}))},Kt=t=>typeof FinalizationRegistry>"u"?(Kt=e=>e,t):(je=new FinalizationRegistry(e=>{e=e.ma,--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya))}),Kt=e=>{var i=e.ma;return i.Aa&&je.register(e,{ma:i},e),e},Tn=e=>{je.unregister(e)},Kt(t));function ce(){}var Qt=(t,e)=>Object.defineProperty(e,"name",{value:t}),kn=(t,e,i)=>{if(t[e].Ba===void 0){var r=t[e];t[e]=function(...o){if(!t[e].Ba.hasOwnProperty(o.length))throw new b(`Function '${i}' called with an invalid number of arguments (${o.length}) - expects one of (${t[e].Ba})!`);return t[e].Ba[o.length].apply(this,o)},t[e].Ba=[],t[e].Ba[r.Oa]=r}},Be=(t,e,i)=>{if(a.hasOwnProperty(t)){if(i===void 0||a[t].Ba!==void 0&&a[t].Ba[i]!==void 0)throw new b(`Cannot register public name '${t}' twice`);if(kn(a,t,t),a.hasOwnProperty(i))throw new b(`Cannot register multiple overloads of a function with the same number of arguments (${i})!`);a[t].Ba[i]=e}else a[t]=e,i!==void 0&&(a[t].vb=i)},Ba=t=>{if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t};function Ha(t,e,i,r,o,l,u,d){this.name=t,this.constructor=e,this.La=i,this.Fa=r,this.Ca=o,this.cb=l,this.Na=u,this.ab=d,this.kb=[]}var He=(t,e,i)=>{for(;e!==i;){if(!e.Na)throw new b(`Expected null or instance of ${i.name}, got an instance of ${e.name}`);t=e.Na(t),e=e.Ca}return t};function Ya(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Va(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);if(this.Qa){var i=this.Ua();return t!==null&&t.push(this.Fa,i),i}return 0}if(!e||!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);if(i=He(e.ma.ya,e.ma.za.xa,this.xa),this.Qa){if(e.ma.Aa===void 0)throw new b("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(e.ma.Da===this)i=e.ma.Aa;else throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);break;case 1:i=e.ma.Aa;break;case 2:if(e.ma.Da===this)i=e.ma.Aa;else{var r=e.clone();i=this.lb(i,he(()=>r.delete())),t!==null&&t.push(this.Fa,i)}break;default:throw new b("Unsupporting sharing policy")}}return i}function Ga(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.za.name} to parameter type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Zt(t,e,i,r,o,l,u,d,g,m,f){this.name=t,this.xa=e,this.Ta=i,this.Pa=r,this.Qa=o,this.jb=l,this.pb=u,this.Za=d,this.Ua=g,this.lb=m,this.Fa=f,o||e.Ca!==void 0?this.toWireType=Va:(this.toWireType=r?Ya:Ga,this.Ea=null)}var $n=(t,e,i)=>{if(!a.hasOwnProperty(t))throw new Vt("Replacing nonexistent public symbol");a[t].Ba!==void 0&&i!==void 0?a[t].Ba[i]=e:(a[t]=e,a[t].Oa=i)},K,Xa=(t,e,i=[])=>(t.includes("j")?(t=t.replace(/p/g,"i"),e=(0,a["dynCall_"+t])(e,...i)):e=K.get(e)(...i),e),qa=(t,e)=>(...i)=>Xa(t,e,i),Y=(t,e)=>{t=N(t);var i=t.includes("j")?qa(t,e):K.get(e);if(typeof i!="function")throw new b(`unknown function pointer with signature ${t}: ${e}`);return i},Un,Wn=t=>{t=Xn(t);var e=N(t);return ct(t),e},le=(t,e)=>{function i(l){o[l]||Mt[l]||(oe[l]?oe[l].forEach(i):(r.push(l),o[l]=!0))}var r=[],o={};throw e.forEach(i),new Un(`${t}: `+r.map(Wn).join([", "]))},Ye=(t,e)=>{for(var i=[],r=0;r>2]);return i};function Ka(t){for(var e=1;el)throw new b("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=e[1]!==null&&i!==null,d=Ka(e),g=e[0].name!=="void",m=l-2,f=Array(m),I=[],E=[];return Qt(t,function(...h){if(h.length!==m)throw new b(`function ${t} called with ${h.length} arguments, expected ${m}`);if(E.length=0,I.length=u?2:1,I[0]=o,u){var y=e[1].toWireType(E,this);I[1]=y}for(var C=0;C{t=t.trim();let e=t.indexOf("(");return e!==-1?t.substr(0,e):t},Ge=[],st=[],Xe=t=>{9{if(!t)throw new b("Cannot use deleted val. handle = "+t);return st[t]},he=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let e=Ge.pop()||st.length;return st[e]=t,st[e+1]=1,e}},jn={name:"emscripten::val",fromWireType:t=>{var e=qe(t);return Xe(t),e},toWireType:(t,e)=>he(e),argPackAdvance:8,readValueFromPointer:Yt,Ea:null},Qa=(t,e,i)=>{switch(e){case 1:return i?function(r){return this.fromWireType(wt[r])}:function(r){return this.fromWireType(O[r])};case 2:return i?function(r){return this.fromWireType(Dt[r>>1])}:function(r){return this.fromWireType(Bt[r>>1])};case 4:return i?function(r){return this.fromWireType(z[r>>2])}:function(r){return this.fromWireType(D[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Ke=(t,e)=>{var i=Mt[t];if(i===void 0)throw t=`${e} has unknown type ${Wn(t)}`,new b(t);return i},Qe=t=>{if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t},Za=(t,e)=>{switch(e){case 4:return function(i){return this.fromWireType(_n[i>>2])};case 8:return function(i){return this.fromWireType(yn[i>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Ja=(t,e,i)=>{switch(e){case 1:return i?r=>wt[r]:r=>O[r];case 2:return i?r=>Dt[r>>1]:r=>Bt[r>>1];case 4:return i?r=>z[r>>2]:r=>D[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},zn=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,ti=(t,e)=>{for(var i=t>>1,r=i+e/2;!(i>=r)&&Bt[i];)++i;if(i<<=1,32=e/2);++r){var o=Dt[t+2*r>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},ei=(t,e,i)=>{if(i??(i=2147483647),2>i)return 0;i-=2;var r=e;i=i<2*t.length?i/2:t.length;for(var o=0;o>1]=t.charCodeAt(o),e+=2;return Dt[e>>1]=0,e-r},ni=t=>2*t.length,ai=(t,e)=>{for(var i=0,r="";!(i>=e/4);){var o=z[t+4*i>>2];if(o==0)break;++i,65536<=o?(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023)):r+=String.fromCharCode(o)}return r},ii=(t,e,i)=>{if(i??(i=2147483647),4>i)return 0;var r=e;i=r+i-4;for(var o=0;o=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(z[e>>2]=l,e+=4,e+4>i)break}return z[e>>2]=0,e-r},ri=t=>{for(var e=0,i=0;i=r&&++i,e+=4}return e},Ze=[],oi=t=>{var e=Ze.length;return Ze.push(t),e},si=(t,e)=>{for(var i=Array(t),r=0;r>2],"parameter "+r);return i},ci=Reflect.construct,Je={},Bn=()=>{if(!tn){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:rt||"./this.program"},e;for(e in Je)Je[e]===void 0?delete t[e]:t[e]=Je[e];var i=[];for(e in t)i.push(`${e}=${t[e]}`);tn=i}return tn},tn,li=[null,[],[]],hi=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);ie("initRandomDevice")},Hn=t=>(Hn=hi())(t),de=t=>t%4===0&&(t%100!==0||t%400===0),Yn=[31,29,31,30,31,30,31,31,30,31,30,31],Vn=[31,28,31,30,31,30,31,31,30,31,30,31];function di(t){var e=Array(xn(t)+1);return Fn(t,e,0,e.length),e}var ui=(t,e,i,r)=>{function o(h,y,C){for(h=typeof h=="number"?h.toString():h||"";h.lengthvt?-1:0$-h.getDate())y-=$-h.getDate()+1,h.setDate(1),11>C?h.setMonth(C+1):(h.setMonth(0),h.setFullYear(h.getFullYear()+1));else{h.setDate(h.getDate()+y);break}}return C=new Date(h.getFullYear()+1,0,4),y=d(new Date(h.getFullYear(),0,4)),C=d(C),0>=u(y,h)?0>=u(C,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var m=D[r+40>>2];r={sb:z[r>>2],rb:z[r+4>>2],Ra:z[r+8>>2],Va:z[r+12>>2],Sa:z[r+16>>2],Ja:z[r+20>>2],Ga:z[r+24>>2],Ia:z[r+28>>2],wb:z[r+32>>2],qb:z[r+36>>2],tb:m&&m?Lt(O,m):""},i=i?Lt(O,i):"",m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in m)i=i.replace(new RegExp(f,"g"),m[f]);var I="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),E="January February March April May June July August September October November December".split(" ");m={"%a":h=>I[h.Ga].substring(0,3),"%A":h=>I[h.Ga],"%b":h=>E[h.Sa].substring(0,3),"%B":h=>E[h.Sa],"%C":h=>l((h.Ja+1900)/100|0,2),"%d":h=>l(h.Va,2),"%e":h=>o(h.Va,2," "),"%g":h=>g(h).toString().substring(2),"%G":g,"%H":h=>l(h.Ra,2),"%I":h=>(h=h.Ra,h==0?h=12:12{for(var y=0,C=0;C<=h.Sa-1;y+=(de(h.Ja+1900)?Yn:Vn)[C++]);return l(h.Va+y,3)},"%m":h=>l(h.Sa+1,2),"%M":h=>l(h.rb,2),"%n":()=>` +`,"%p":h=>0<=h.Ra&&12>h.Ra?"AM":"PM","%S":h=>l(h.sb,2),"%t":()=>" ","%u":h=>h.Ga||7,"%U":h=>l(Math.floor((h.Ia+7-h.Ga)/7),2),"%V":h=>{var y=Math.floor((h.Ia+7-(h.Ga+6)%7)/7);if(2>=(h.Ga+371-h.Ia-2)%7&&y++,y)y==53&&(C=(h.Ga+371-h.Ia)%7,C==4||C==3&&de(h.Ja)||(y=1));else{y=52;var C=(h.Ga+7-h.Ia-1)%7;(C==4||C==5&&de(h.Ja%400-1))&&y++}return l(y,2)},"%w":h=>h.Ga,"%W":h=>l(Math.floor((h.Ia+7-(h.Ga+6)%7)/7),2),"%y":h=>(h.Ja+1900).toString().substring(2),"%Y":h=>h.Ja+1900,"%z":h=>{h=h.qb;var y=0<=h;return h=Math.abs(h)/60,(y?"+":"-")+("0000"+(h/60*100+h%60)).slice(-4)},"%Z":h=>h.tb,"%%":()=>"%"},i=i.replace(/%%/g,"\0\0");for(f in m)i.includes(f)&&(i=i.replace(new RegExp(f,"g"),m[f](r)));return i=i.replace(/\0\0/g,"%"),f=di(i),f.length>e?0:(wt.set(f,t),f.length-1)};Vt=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}};for(var Gn=Array(256),ue=0;256>ue;++ue)Gn[ue]=String.fromCharCode(ue);Dn=Gn,b=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Object.assign(ce.prototype,{isAliasOf:function(t){if(!(this instanceof ce&&t instanceof ce))return!1;var e=this.ma.za.xa,i=this.ma.ya;t.ma=t.ma;var r=t.ma.za.xa;for(t=t.ma.ya;e.Ca;)i=e.Na(i),e=e.Ca;for(;r.Ca;)t=r.Na(t),r=r.Ca;return e===r&&i===t},clone:function(){if(this.ma.ya||Ne(this),this.ma.Ma)return this.ma.count.value+=1,this;var t=Kt,e=Object,i=e.create,r=Object.getPrototypeOf(this),o=this.ma;return t=t(i.call(e,r,{ma:{value:{count:o.count,Ka:o.Ka,Ma:o.Ma,ya:o.ya,za:o.za,Aa:o.Aa,Da:o.Da}}})),t.ma.count.value+=1,t.ma.Ka=!1,t},delete(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");Tn(this);var t=this.ma;--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0)},isDeleted:function(){return!this.ma.ya},deleteLater:function(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");return Gt.push(this),Gt.length===1&&Xt&&Xt(ze),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(qt).length,a.getLiveInheritedInstances=()=>{var t=[],e;for(e in qt)qt.hasOwnProperty(e)&&t.push(qt[e]);return t},a.flushPendingDeletes=ze,a.setDelayFunction=t=>{Xt=t,Gt.length&&Xt&&Xt(ze)},Object.assign(Zt.prototype,{eb(t){return this.Za&&(t=this.Za(t)),t},Xa(t){this.Fa?.(t)},argPackAdvance:8,readValueFromPointer:Yt,fromWireType:function(t){function e(){return this.Qa?se(this.xa.La,{za:this.jb,ya:i,Da:this,Aa:t}):se(this.xa.La,{za:this,ya:t})}var i=this.eb(t);if(!i)return this.Xa(t),null;var r=za(this.xa,i);if(r!==void 0)return r.ma.count.value===0?(r.ma.ya=i,r.ma.Aa=t,r.clone()):(r=r.clone(),this.Xa(t),r);if(r=this.xa.cb(i),r=On[r],!r)return e.call(this);r=this.Pa?r.$a:r.pointerType;var o=Rn(i,this.xa,r.xa);return o===null?e.call(this):this.Qa?se(r.xa.La,{za:r,ya:o,Da:this,Aa:t}):se(r.xa.La,{za:r,ya:o})}}),Un=a.UnboundTypeError=((t,e)=>{var i=Qt(e,function(r){this.name=e,this.message=r,r=Error(r).stack,r!==void 0&&(this.stack=this.toString()+` +`+r.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},i})(Error,"UnboundTypeError"),st.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>st.length/2-5-Ge.length;var mi={c:(t,e,i,r)=>{ie(`Assertion failed: ${t?Lt(O,t):""}, at: `+[e?e?Lt(O,e):"":"unknown filename",i,r?r?Lt(O,r):"":"unknown function"])},m:(t,e,i)=>{var r=new Na(t);throw D[r.ya+16>>2]=0,D[r.ya+4>>2]=e,D[r.ya+8>>2]=i,En=t,En},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:t=>{var e=re[t];delete re[t];var i=e.Ua,r=e.Fa,o=e.Ya,l=o.map(u=>u.hb).concat(o.map(u=>u.nb));ft([t],l,u=>{var d={};return o.forEach((g,m)=>{var f=u[m],I=g.fb,E=g.gb,h=u[m+o.length],y=g.mb,C=g.ob;d[g.bb]={read:$=>f.fromWireType(I(E,$)),write:($,vt)=>{var X=[];y(C,$,h.toWireType(X,vt)),We(X)}}}),[{name:e.name,fromWireType:g=>{var m={},f;for(f in d)m[f]=d[f].read(g);return r(g),m},toWireType:(g,m)=>{for(var f in d)if(!(f in m))throw new TypeError(`Missing field: "${f}"`);var I=i();for(f in d)d[f].write(I,m[f]);return g!==null&&g.push(r,I),I},argPackAdvance:8,readValueFromPointer:Yt,Ea:r}]})},I:()=>{},Y:(t,e,i,r)=>{e=N(e),tt(t,{name:e,fromWireType:function(o){return!!o},toWireType:function(o,l){return l?i:r},argPackAdvance:8,readValueFromPointer:function(o){return this.fromWireType(O[o])},Ea:null})},r:(t,e,i,r,o,l,u,d,g,m,f,I,E)=>{f=N(f),l=Y(o,l),d&&(d=Y(u,d)),m&&(m=Y(g,m)),E=Y(I,E);var h=Ba(f);Be(h,function(){le(`Cannot construct ${f} due to unbound types`,[r])}),ft([t,e,i],r?[r]:[],y=>{if(y=y[0],r)var C=y.xa,$=C.La;else $=ce.prototype;y=Qt(f,function(...nn){if(Object.getPrototypeOf(this)!==vt)throw new b("Use 'new' to construct "+f);if(X.Ha===void 0)throw new b(f+" has no accessible constructor");var Qn=X.Ha[nn.length];if(Qn===void 0)throw new b(`Tried to invoke ctor of ${f} with invalid number of parameters (${nn.length}) - expected (${Object.keys(X.Ha).toString()}) parameters instead!`);return Qn.apply(this,nn)});var vt=Object.create($,{constructor:{value:y}});y.prototype=vt;var X=new Ha(f,y,vt,E,C,l,d,m);if(X.Ca){var Jt;(Jt=X.Ca).Wa??(Jt.Wa=[]),X.Ca.Wa.push(X)}return C=new Zt(f,X,!0,!1,!1),Jt=new Zt(f+"*",X,!1,!1,!1),$=new Zt(f+" const*",X,!1,!0,!1),On[t]={pointerType:Jt,$a:$},$n(h,y),[C,Jt,$]})},q:(t,e,i,r,o,l)=>{var u=Ye(e,i);o=Y(r,o),ft([],[t],d=>{d=d[0];var g=`constructor ${d.name}`;if(d.xa.Ha===void 0&&(d.xa.Ha=[]),d.xa.Ha[e-1]!==void 0)throw new b(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${d.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return d.xa.Ha[e-1]=()=>{le(`Cannot construct ${d.name} due to unbound types`,u)},ft([],u,m=>(m.splice(1,0,null),d.xa.Ha[e-1]=Ve(g,m,null,o,l),[])),[]})},f:(t,e,i,r,o,l,u,d)=>{var g=Ye(i,r);e=N(e),e=Nn(e),l=Y(o,l),ft([],[t],m=>{function f(){le(`Cannot call ${I} due to unbound types`,g)}m=m[0];var I=`${m.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),d&&m.xa.kb.push(e);var E=m.xa.La,h=E[e];return h===void 0||h.Ba===void 0&&h.className!==m.name&&h.Oa===i-2?(f.Oa=i-2,f.className=m.name,E[e]=f):(kn(E,e,I),E[e].Ba[i-2]=f),ft([],g,y=>(y=Ve(I,y,m,l,u),E[e].Ba===void 0?(y.Oa=i-2,E[e]=y):E[e].Ba[i-2]=y,[])),[]})},X:t=>tt(t,jn),x:(t,e,i,r)=>{function o(){}e=N(e),o.values={},tt(t,{name:e,constructor:o,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,u)=>u.value,argPackAdvance:8,readValueFromPointer:Qa(e,i,r),Ea:null}),Be(e,o)},k:(t,e,i)=>{var r=Ke(t,"enum");e=N(e),t=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:i},constructor:{value:Qt(`${r.name}_${e}`,function(){})}}),t.values[i]=r,t[e]=r},C:(t,e,i)=>{e=N(e),tt(t,{name:e,fromWireType:r=>r,toWireType:(r,o)=>o,argPackAdvance:8,readValueFromPointer:Za(e,i),Ea:null})},E:(t,e,i,r,o,l)=>{var u=Ye(e,i);t=N(t),t=Nn(t),o=Y(r,o),Be(t,function(){le(`Cannot call ${t} due to unbound types`,u)},e-1),ft([],u,d=>($n(t,Ve(t,[d[0],null].concat(d.slice(1)),null,o,l),e-1),[]))},l:(t,e,i,r,o)=>{if(e=N(e),o===-1&&(o=4294967295),o=d=>d,r===0){var l=32-8*i;o=d=>d<>>l}var u=e.includes("unsigned")?function(d,g){return g>>>0}:function(d,g){return g};tt(t,{name:e,fromWireType:o,toWireType:u,argPackAdvance:8,readValueFromPointer:Ja(e,i,r!==0),Ea:null})},g:(t,e,i)=>{function r(l){return new o(wt.buffer,D[l+4>>2],D[l>>2])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];i=N(i),tt(t,{name:i,fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ib:!0})},w:t=>{tt(t,jn)},ca:(t,e,i,r,o,l,u,d,g,m,f,I)=>{i=N(i),l=Y(o,l),d=Y(u,d),m=Y(g,m),I=Y(f,I),ft([t],[e],E=>(E=E[0],[new Zt(i,E.xa,!1,!1,!0,E,r,l,d,m,I)]))},D:(t,e)=>{e=N(e);var i=e==="std::string";tt(t,{name:e,fromWireType:function(r){var o=D[r>>2],l=r+4;if(i)for(var u=l,d=0;d<=o;++d){var g=l+d;if(d==o||O[g]==0){if(u=u?Lt(O,u,g-u):"",m===void 0)var m=u;else m+="\0",m+=u;u=g+1}}else{for(m=Array(o),d=0;d>2]=u,i&&l)Fn(o,O,g,u+1);else if(l)for(l=0;l{if(i=N(i),e===2)var r=ti,o=ei,l=ni,u=d=>Bt[d>>1];else e===4&&(r=ai,o=ii,l=ri,u=d=>D[d>>2]);tt(t,{name:i,fromWireType:d=>{for(var g=D[d>>2],m,f=d+4,I=0;I<=g;++I){var E=d+4+I*e;(I==g||u(E)==0)&&(f=r(f,E-f),m===void 0?m=f:(m+="\0",m+=f),f=E+e)}return ct(d),m},toWireType:(d,g)=>{if(typeof g!="string")throw new b(`Cannot pass non-string to C++ string type ${i}`);var m=l(g),f=en(4+m+e);return D[f>>2]=m/e,o(g,f+4,m+e),d!==null&&d.push(ct,f),f},argPackAdvance:8,readValueFromPointer:Yt,Ea(d){ct(d)}})},s:(t,e,i,r,o,l)=>{re[t]={name:N(e),Ua:Y(i,r),Fa:Y(o,l),Ya:[]}},j:(t,e,i,r,o,l,u,d,g,m)=>{re[t].Ya.push({bb:N(e),hb:i,fb:Y(r,o),gb:l,nb:u,mb:Y(d,g),ob:m})},Z:(t,e)=>{e=N(e),tt(t,{ub:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{throw 1/0},aa:(t,e,i,r)=>(t=Ze[t],e=qe(e),t(null,e,i,r)),F:Xe,$:(t,e,i)=>{var r=si(t,e),o=r.shift();t--;var l=Array(t);return e=`methodCaller<(${r.map(u=>u.name).join(", ")}) => ${o.name}>`,oi(Qt(e,(u,d,g,m)=>{for(var f=0,I=0;I>2]=he(u)),d}))},ba:t=>{9{var e=qe(t);We(e),Xe(t)},o:(t,e)=>(t=Ke(t,"_emval_take_value"),t=t.readValueFromPointer(e),he(t)),W:()=>{ie("")},V:()=>performance.now(),L:t=>{var e=O.length;if(t>>>=0,2147483648=i;i*=2){var r=e*(1+.2/i);r=Math.min(r,t+100663296);var o=Math;r=Math.max(t,r);t:{o=(o.min.call(o,2147483648,r+(65536-r%65536)%65536)-ae.buffer.byteLength+65535)/65536;try{ae.grow(o),Cn();var l=1;break t}catch{}l=void 0}if(l)return!0}return!1},S:(t,e)=>{var i=0;return Bn().forEach((r,o)=>{var l=e+i;for(o=D[t+4*o>>2]=l,l=0;l{var i=Bn();D[t>>2]=i.length;var r=0;return i.forEach(o=>r+=o.length+1),D[e>>2]=r,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(t,e,i,r)=>{for(var o=0,l=0;l>2],d=D[e+4>>2];e+=8;for(var g=0;g>2]=o,0},U:(t,e)=>(Hn(O.subarray(t,t+e)),0),i:_i,d:vi,e:fi,p:yi,y:Si,b:pi,a:gi,h:wi,n:Ci,G:Li,K:(t,e,i,r)=>ui(t,e,i,r)},k=function(){function t(i){return k=i.exports,ae=k.da,Cn(),K=k.ha,Sn.unshift(k.ea),St--,a.monitorRunDependencies?.(St),St==0&&Ht&&(i=Ht,Ht=null,i()),k}var e={a:mi};if(St++,a.monitorRunDependencies?.(St),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(i){Ft(`Module.instantiateWasm callback failed with error: ${i}`),p(i)}return Wa(e,function(i){t(i.instance)}).catch(p),{}}(),en=t=>(en=k.fa)(t),Xn=t=>(Xn=k.ga)(t),ct=t=>(ct=k.ia)(t),et=(t,e)=>(et=k.ja)(t,e),nt=t=>(nt=k.ka)(t),at=()=>(at=k.la)();a.dynCall_iijj=(t,e,i,r,o,l)=>(a.dynCall_iijj=k.na)(t,e,i,r,o,l),a.dynCall_vijj=(t,e,i,r,o,l)=>(a.dynCall_vijj=k.oa)(t,e,i,r,o,l),a.dynCall_jiii=(t,e,i,r)=>(a.dynCall_jiii=k.pa)(t,e,i,r),a.dynCall_jii=(t,e,i)=>(a.dynCall_jii=k.qa)(t,e,i);var qn=a.dynCall_viiij=(t,e,i,r,o,l)=>(qn=a.dynCall_viiij=k.ra)(t,e,i,r,o,l);a.dynCall_jiji=(t,e,i,r,o)=>(a.dynCall_jiji=k.sa)(t,e,i,r,o),a.dynCall_viijii=(t,e,i,r,o,l,u)=>(a.dynCall_viijii=k.ta)(t,e,i,r,o,l,u),a.dynCall_iiiiij=(t,e,i,r,o,l,u)=>(a.dynCall_iiiiij=k.ua)(t,e,i,r,o,l,u),a.dynCall_iiiiijj=(t,e,i,r,o,l,u,d,g)=>(a.dynCall_iiiiijj=k.va)(t,e,i,r,o,l,u,d,g),a.dynCall_iiiiiijj=(t,e,i,r,o,l,u,d,g,m)=>(a.dynCall_iiiiiijj=k.wa)(t,e,i,r,o,l,u,d,g,m);function pi(t,e){var i=at();try{K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function gi(t,e,i){var r=at();try{K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function fi(t,e,i,r){var o=at();try{return K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function vi(t,e,i){var r=at();try{return K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function _i(t,e){var i=at();try{return K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function yi(t,e,i,r,o,l){var u=at();try{return K.get(t)(e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}function Ci(t,e,i,r,o){var l=at();try{K.get(t)(e,i,r,o)}catch(u){if(nt(l),u!==u+0)throw u;et(1,0)}}function wi(t,e,i,r){var o=at();try{K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function Si(t){var e=at();try{K.get(t)()}catch(i){if(nt(e),i!==i+0)throw i;et(1,0)}}function Li(t,e,i,r,o,l){var u=at();try{qn(t,e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}var me;Ht=function t(){me||Kn(),me||(Ht=t)};function Kn(){function t(){if(!me&&(me=!0,a.calledRun=!0,!vn)){if(Ue(Sn),c(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var e=a.postRun.shift();Ln.unshift(e)}Ue(Ln)}}if(!(0s})})}static _loadWithBackup(){return M(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(s=>M(this,null,function*(){let n=`https://unpkg.com/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${s.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{return yield this._tryLoad(n)}catch(a){throw console.error(`Primary WASM URL failed: ${s.message}`),console.error(`Backup WASM URL failed: ${a.message}`),new Error("WASM loading failed from all sources.")}}))),this._ModulePromise})}static load(){return M(this,null,function*(){return this._loadWithBackup()})}static setWasmUrl(s){this._wasmURL=s,this._ModulePromise=null}};F(Re,"_ModulePromise",null),F(Re,"_wasmURL",`https://cdn.jsdelivr.net/npm/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`);var La=class{constructor(){F(this,"_eventListeners",new Map)}addEventListener(s,n){let a=this._eventListeners.get(s);a||(a=new Set,this._eventListeners.set(s,a)),a.add(n)}removeEventListener(s,n){let a=this._eventListeners.get(s);a&&(n?(a.delete(n),a.size===0&&this._eventListeners.delete(s)):this._eventListeners.delete(s))}dispatch(s){this._eventListeners.get(s.type)?.forEach(n=>n(s))}removeAllEventListeners(){this._eventListeners.clear()}};function Fi(s){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(s)}function Di(s){if(!Fi(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var ln=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,hn=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,dn=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},un=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},Ma=class R{constructor(n){F(this,"_canvas"),F(this,"_context",null),F(this,"_eventManager"),F(this,"_animationFrameId",null),F(this,"_frameManager"),F(this,"_dotLottieCore",null),F(this,"_renderConfig",{}),F(this,"_isFrozen",!1),F(this,"_backgroundColor",null),this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new La,this._frameManager=new Pi,this._renderConfig=n.renderConfig??{},Re.load().then(a=>{R._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",a),segment:un(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,a),fit:hn(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor)}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)})})}_loadFromSrc(n){function a(){return M(this,null,function*(){let c=yield fetch(n);if(!c.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${c.status}: ${c.statusText}`);let p=(c.headers.get("content-type")??"").trim(),_;return["application/json","text/plain"].some(q=>p.startsWith(q))?_=yield c.text():_=yield c.arrayBuffer(),_})}a().then(c=>{this._loadFromData(c)}).catch(c=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${c}`)})})}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,c=this._canvas.height,p=!1;if(typeof n=="string")p=this._dotLottieCore.loadAnimationData(n,a,c);else if(n instanceof ArrayBuffer)p=this._dotLottieCore.loadDotLottieData(n,a,c);else if(typeof n=="object")p=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,c);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}p?(this._eventManager.dispatch({type:"load"}),Et&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return{align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case R._wasmModule?.Fit.Contain:return"contain";case R._wasmModule?.Fit.Cover:return"cover";case R._wasmModule?.Fit.Fill:return"fill";case R._wasmModule?.Fit.FitHeight:return"fit-height";case R._wasmModule?.Fit.FitWidth:return"fit-width";case R._wasmModule?.Fit.None:return"none";default:return"contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return[n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===R._wasmModule?.Mode.Reverse?"reverse":n===R._wasmModule?.Mode.Bounce?"bounce":n===R._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||R._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",R._wasmModule),segment:un(n.segment??[],R._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,R._wasmModule),fit:hn(n.layout.fit,R._wasmModule)}:R._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let n=this._dotLottieCore.buffer(),a=new Uint8ClampedArray(n,0,this._canvas.width*this._canvas.height*4),c=null;return typeof ImageData>"u"?(c=this._context.createImageData(this._canvas.width,this._canvas.height),c.data.set(a)):c=new ImageData(a,this._canvas.width,this._canvas.height),this._context.putImageData(c,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(n){this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{speed:n}))}setBackgroundColor(n){this._dotLottieCore!==null&&(Et&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{backgroundColor:Di(n)})),this._backgroundColor=n)}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{loopAnimation:n}))}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{useFrameInterpolation:n}))}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){if(Et&&this._canvas instanceof HTMLCanvasElement){let n=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:a,width:c}=this._canvas.getBoundingClientRect();this._canvas.width=c*n,this._canvas.height=a*n}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(n,a){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{segment:un([n,a],R._wasmModule)}))}setMode(n){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{mode:ln(n,R._wasmModule)}))}setRenderConfig(n){this._renderConfig=n}loadAnimation(n){this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n||(this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)}))}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{marker:n}))}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let c=0;cn in s?Pn(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a;var I=(s,n,a)=>An(s,typeof n!="symbol"?n+"":n,a);var Ke=class{requestAnimationFrame(n){return requestAnimationFrame(n)}cancelAnimationFrame(n){cancelAnimationFrame(n);}},Xe=class{constructor(){I(this,"_lastHandleId",0);I(this,"_lastImmediate",null);}requestAnimationFrame(n){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{n(Date.now());}),this._lastHandleId}cancelAnimationFrame(n){this._lastImmediate&&clearImmediate(this._lastImmediate);}},Ie=class{constructor(){I(this,"_strategy");this._strategy=typeof requestAnimationFrame=="function"?new Ke:new Xe;}requestAnimationFrame(n){return this._strategy.requestAnimationFrame(n)}cancelAnimationFrame(n){this._strategy.cancelAnimationFrame(n);}};var te=typeof window<"u"&&typeof window.document<"u";var me={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}};var Sn=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,d,w,T=new Promise((e,t)=>{d=e,w=t;}),W=Object.assign({},a),Y="./this.program",j="";typeof document<"u"&&document.currentScript&&(j=document.currentScript.src),s&&(j=s),j.startsWith("blob:")?j="":j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1);var Wt=a.print||console.log.bind(console),Q=a.printErr||console.error.bind(console);Object.assign(a,W),W=null,a.thisProgram&&(Y=a.thisProgram);var ne;a.wasmBinary&&(ne=a.wasmBinary);var ve,tt=!1,G,L,Z,re,A,b,nt,rt;function at(){var e=ve.buffer;a.HEAP8=G=new Int8Array(e),a.HEAP16=Z=new Int16Array(e),a.HEAPU8=L=new Uint8Array(e),a.HEAPU16=re=new Uint16Array(e),a.HEAP32=A=new Int32Array(e),a.HEAPU32=b=new Uint32Array(e),a.HEAPF32=nt=new Float32Array(e),a.HEAPF64=rt=new Float64Array(e);}var ot=[],it=[],st=[];function jt(){var e=a.preRun.shift();ot.unshift(e);}var N=0,ae=null;function ye(e){throw a.onAbort?.(e),e="Aborted("+e+")",Q(e),tt=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),w(e),e}var lt=e=>e.startsWith("data:application/octet-stream;base64,"),q;if(q="DotLottiePlayer.wasm",!lt(q)){var dt=q;q=a.locateFile?a.locateFile(dt,j):j+dt;}function ut(e){if(e==q&&ne)return new Uint8Array(ne);throw "both async and sync fetching of the wasm failed"}function Bt(e){return ne||typeof fetch!="function"?Promise.resolve().then(()=>ut(e)):fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw `failed to load wasm binary file at \'${e}\'`;return t.arrayBuffer()}).catch(()=>ut(e))}function ct(e,t,r){return Bt(e).then(o=>WebAssembly.instantiate(o,t)).then(r,o=>{Q(`failed to asynchronously prepare wasm: ${o}`),ye(o);})}function Ut(e,t){var r=q;return ne||typeof WebAssembly.instantiateStreaming!="function"||lt(r)||typeof fetch!="function"?ct(r,e,t):fetch(r,{credentials:"same-origin"}).then(o=>WebAssembly.instantiateStreaming(o,e).then(t,function(i){return Q(`wasm streaming compile failed: ${i}`),Q("falling back to ArrayBuffer instantiation"),ct(r,e,t)}))}var Ae=e=>{for(;0{var o=t+r;for(r=t;e[r]&&!(r>=o);)++r;if(16i?o+=String.fromCharCode(i):(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023));}}else o+=String.fromCharCode(i);}return o};class Ht{constructor(t){this.ya=t-24;}}var pt=0,mt=e=>{for(var t=0,r=0;r=o?t++:2047>=o?t+=2:55296<=o&&57343>=o?(t+=4,++r):t+=3;}return t},ft=(e,t,r,o)=>{if(0=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(127>=l){if(r>=o)break;t[r++]=l;}else {if(2047>=l){if(r+1>=o)break;t[r++]=192|l>>6;}else {if(65535>=l){if(r+2>=o)break;t[r++]=224|l>>12;}else {if(r+3>=o)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63;}t[r++]=128|l>>6&63;}t[r++]=128|l&63;}}t[r]=0;}},ge={},Te=e=>{for(;e.length;){var t=e.pop();e.pop()(t);}};function oe(e){return this.fromWireType(b[e>>2])}var ee={},K={},we={},ie,H=(e,t,r)=>{function o(c){if(c=r(c),c.length!==e.length)throw new ie("Mismatched type converter count");for(var m=0;m{K.hasOwnProperty(c)?i[m]=K[c]:(l.push(c),ee.hasOwnProperty(c)||(ee[c]=[]),ee[c].push(()=>{i[m]=K[c],++h,h===l.length&&o(i);}));}),l.length===0&&o(i);},vt,P=e=>{for(var t="";L[e];)t+=vt[L[e++]];return t},g;function Yt(e,t,r={}){var o=t.name;if(!e)throw new g(`type "${o}" must have a positive integer typeid pointer`);if(K.hasOwnProperty(e)){if(r.ib)return;throw new g(`Cannot register type \'${o}\' twice`)}K[e]=t,delete we[e],ee.hasOwnProperty(e)&&(t=ee[e],delete ee[e],t.forEach(i=>i()));}function k(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Yt(e,t,r)}var Se=e=>{throw new g(e.ma.za.xa.name+" instance already deleted")},Re=!1,yt=()=>{},gt=(e,t,r)=>t===r?e:r.Ca===void 0?null:(e=gt(e,t,r.Ca),e===null?null:r.ab(e)),wt={},se=[],$e=()=>{for(;se.length;){var e=se.pop();e.ma.Ka=!1,e.delete();}},le,de={},Gt=(e,t)=>{if(t===void 0)throw new g("ptr should not be undefined");for(;e.Ca;)t=e.Na(t),e=e.Ca;return de[t]},_e=(e,t)=>{if(!t.za||!t.ya)throw new ie("makeClassHandle requires ptr and ptrType");if(!!t.Da!=!!t.Aa)throw new ie("Both smartPtrType and smartPtr must be specified");return t.count={value:1},ue(Object.create(e,{ma:{value:t,writable:!0}}))},ue=e=>typeof FinalizationRegistry>"u"?(ue=t=>t,e):(Re=new FinalizationRegistry(t=>{t=t.ma,--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya));}),ue=t=>{var r=t.ma;return r.Aa&&Re.register(t,{ma:r},t),t},yt=t=>{Re.unregister(t);},ue(e));function Ee(){}var ce=(e,t)=>Object.defineProperty(t,"name",{value:e}),_t=(e,t,r)=>{if(e[t].Ba===void 0){var o=e[t];e[t]=function(...i){if(!e[t].Ba.hasOwnProperty(i.length))throw new g(`Function \'${r}\' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].Ba})!`);return e[t].Ba[i.length].apply(this,i)},e[t].Ba=[],e[t].Ba[o.Oa]=o;}},ke=(e,t,r)=>{if(a.hasOwnProperty(e)){if(r===void 0||a[e].Ba!==void 0&&a[e].Ba[r]!==void 0)throw new g(`Cannot register public name \'${e}\' twice`);if(_t(a,e,e),a.hasOwnProperty(r))throw new g(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);a[e].Ba[r]=t;}else a[e]=t,r!==void 0&&(a[e].vb=r);},Nt=e=>{if(e===void 0)return "_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e};function Jt(e,t,r,o,i,l,h,c){this.name=e,this.constructor=t,this.La=r,this.Fa=o,this.Ca=i,this.cb=l,this.Na=h,this.ab=c,this.kb=[];}var De=(e,t,r)=>{for(;t!==r;){if(!t.Na)throw new g(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.Na(e),t=t.Ca;}return e};function Kt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function Xt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);if(this.Qa){var r=this.Ua();return e!==null&&e.push(this.Fa,r),r}return 0}if(!t||!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);if(r=De(t.ma.ya,t.ma.za.xa,this.xa),this.Qa){if(t.ma.Aa===void 0)throw new g("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(t.ma.Da===this)r=t.ma.Aa;else throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);break;case 1:r=t.ma.Aa;break;case 2:if(t.ma.Da===this)r=t.ma.Aa;else {var o=t.clone();r=this.lb(r,Me(()=>o.delete())),e!==null&&e.push(this.Fa,r);}break;default:throw new g("Unsupporting sharing policy")}}return r}function Qt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.za.name} to parameter type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function he(e,t,r,o,i,l,h,c,m,p,f){this.name=e,this.xa=t,this.Ta=r,this.Pa=o,this.Qa=i,this.jb=l,this.pb=h,this.Za=c,this.Ua=m,this.lb=p,this.Fa=f,i||t.Ca!==void 0?this.toWireType=Xt:(this.toWireType=o?Kt:Qt,this.Ea=null);}var Et=(e,t,r)=>{if(!a.hasOwnProperty(e))throw new ie("Replacing nonexistent public symbol");a[e].Ba!==void 0&&r!==void 0?a[e].Ba[r]=t:(a[e]=t,a[e].Oa=r);},$,Zt=(e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0, a["dynCall_"+e])(t,...r)):t=$.get(t)(...r),t),qt=(e,t)=>(...r)=>Zt(e,t,r),S=(e,t)=>{e=P(e);var r=e.includes("j")?qt(e,t):$.get(t);if(typeof r!="function")throw new g(`unknown function pointer with signature ${e}: ${t}`);return r},Ct,Mt=e=>{e=St(e);var t=P(e);return U(e),t},Ce=(e,t)=>{function r(l){i[l]||K[l]||(we[l]?we[l].forEach(r):(o.push(l),i[l]=!0));}var o=[],i={};throw t.forEach(r),new Ct(`${e}: `+o.map(Mt).join([", "]))},ze=(e,t)=>{for(var r=[],o=0;o>2]);return r};function en(e){for(var t=1;tl)throw new g("argTypes array size mismatch! Must at least get return value and \'this\' types!");var h=t[1]!==null&&r!==null,c=en(t),m=t[0].name!=="void",p=l-2,f=Array(p),_=[],C=[];return ce(e,function(...u){if(u.length!==p)throw new g(`function ${e} called with ${u.length} arguments, expected ${p}`);if(C.length=0,_.length=h?2:1,_[0]=i,h){var v=t[1].toWireType(C,this);_[1]=v;}for(var y=0;y{e=e.trim();let t=e.indexOf("(");return t!==-1?e.substr(0,t):e},We=[],B=[],je=e=>{9{if(!e)throw new g("Cannot use deleted val. handle = "+e);return B[e]},Me=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let t=We.pop()||B.length;return B[t]=e,B[t+1]=1,t}},Lt={name:"emscripten::val",fromWireType:e=>{var t=Be(e);return je(e),t},toWireType:(e,t)=>Me(t),argPackAdvance:8,readValueFromPointer:oe,Ea:null},tn=(e,t,r)=>{switch(t){case 1:return r?function(o){return this.fromWireType(G[o])}:function(o){return this.fromWireType(L[o])};case 2:return r?function(o){return this.fromWireType(Z[o>>1])}:function(o){return this.fromWireType(re[o>>1])};case 4:return r?function(o){return this.fromWireType(A[o>>2])}:function(o){return this.fromWireType(b[o>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ue=(e,t)=>{var r=K[e];if(r===void 0)throw e=`${t} has unknown type ${Mt(e)}`,new g(e);return r},He=e=>{if(e===null)return "null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e},nn=(e,t)=>{switch(t){case 4:return function(r){return this.fromWireType(nt[r>>2])};case 8:return function(r){return this.fromWireType(rt[r>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},rn=(e,t,r)=>{switch(t){case 1:return r?o=>G[o]:o=>L[o];case 2:return r?o=>Z[o>>1]:o=>re[o>>1];case 4:return r?o=>A[o>>2]:o=>b[o>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ft=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,an=(e,t)=>{for(var r=e>>1,o=r+t/2;!(r>=o)&&re[r];)++r;if(r<<=1,32=t/2);++o){var i=Z[e+2*o>>1];if(i==0)break;r+=String.fromCharCode(i);}return r},on=(e,t,r)=>{if(r??(r=2147483647),2>r)return 0;r-=2;var o=t;r=r<2*e.length?r/2:e.length;for(var i=0;i>1]=e.charCodeAt(i),t+=2;return Z[t>>1]=0,t-o},sn=e=>2*e.length,ln=(e,t)=>{for(var r=0,o="";!(r>=t/4);){var i=A[e+4*r>>2];if(i==0)break;++r,65536<=i?(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023)):o+=String.fromCharCode(i);}return o},dn=(e,t,r)=>{if(r??(r=2147483647),4>r)return 0;var o=t;r=o+r-4;for(var i=0;i=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(A[t>>2]=l,t+=4,t+4>r)break}return A[t>>2]=0,t-o},un=e=>{for(var t=0,r=0;r=o&&++r,t+=4;}return t},Ve=[],cn=e=>{var t=Ve.length;return Ve.push(e),t},hn=(e,t)=>{for(var r=Array(e),o=0;o>2],"parameter "+o);return r},pn=Reflect.construct,Ye={},It=()=>{if(!Ge){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Y||"./this.program"},t;for(t in Ye)Ye[t]===void 0?delete e[t]:e[t]=Ye[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);Ge=r;}return Ge},Ge,mn=[null,[],[]],fn=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);ye("initRandomDevice");},xt=e=>(xt=fn())(e),be=e=>e%4===0&&(e%100!==0||e%400===0),Pt=[31,29,31,30,31,30,31,31,30,31,30,31],At=[31,28,31,30,31,30,31,31,30,31,30,31];function vn(e){var t=Array(mt(e)+1);return ft(e,t,0,t.length),t}var yn=(e,t,r,o)=>{function i(u,v,y){for(u=typeof u=="number"?u.toString():u||"";u.lengthV?-1:0x-u.getDate())v-=x-u.getDate()+1,u.setDate(1),11>y?u.setMonth(y+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else {u.setDate(u.getDate()+v);break}}return y=new Date(u.getFullYear()+1,0,4),v=c(new Date(u.getFullYear(),0,4)),y=c(y),0>=h(v,u)?0>=h(y,u)?u.getFullYear()+1:u.getFullYear():u.getFullYear()-1}var p=b[o+40>>2];o={sb:A[o>>2],rb:A[o+4>>2],Ra:A[o+8>>2],Va:A[o+12>>2],Sa:A[o+16>>2],Ja:A[o+20>>2],Ga:A[o+24>>2],Ia:A[o+28>>2],wb:A[o+32>>2],qb:A[o+36>>2],tb:p&&p?J(L,p):""},r=r?J(L,r):"",p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in p)r=r.replace(new RegExp(f,"g"),p[f]);var _="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),C="January February March April May June July August September October November December".split(" ");p={"%a":u=>_[u.Ga].substring(0,3),"%A":u=>_[u.Ga],"%b":u=>C[u.Sa].substring(0,3),"%B":u=>C[u.Sa],"%C":u=>l((u.Ja+1900)/100|0,2),"%d":u=>l(u.Va,2),"%e":u=>i(u.Va,2," "),"%g":u=>m(u).toString().substring(2),"%G":m,"%H":u=>l(u.Ra,2),"%I":u=>(u=u.Ra,u==0?u=12:12{for(var v=0,y=0;y<=u.Sa-1;v+=(be(u.Ja+1900)?Pt:At)[y++]);return l(u.Va+v,3)},"%m":u=>l(u.Sa+1,2),"%M":u=>l(u.rb,2),"%n":()=>`\n`,"%p":u=>0<=u.Ra&&12>u.Ra?"AM":"PM","%S":u=>l(u.sb,2),"%t":()=>" ","%u":u=>u.Ga||7,"%U":u=>l(Math.floor((u.Ia+7-u.Ga)/7),2),"%V":u=>{var v=Math.floor((u.Ia+7-(u.Ga+6)%7)/7);if(2>=(u.Ga+371-u.Ia-2)%7&&v++,v)v==53&&(y=(u.Ga+371-u.Ia)%7,y==4||y==3&&be(u.Ja)||(v=1));else {v=52;var y=(u.Ga+7-u.Ia-1)%7;(y==4||y==5&&be(u.Ja%400-1))&&v++;}return l(v,2)},"%w":u=>u.Ga,"%W":u=>l(Math.floor((u.Ia+7-(u.Ga+6)%7)/7),2),"%y":u=>(u.Ja+1900).toString().substring(2),"%Y":u=>u.Ja+1900,"%z":u=>{u=u.qb;var v=0<=u;return u=Math.abs(u)/60,(v?"+":"-")+("0000"+(u/60*100+u%60)).slice(-4)},"%Z":u=>u.tb,"%%":()=>"%"},r=r.replace(/%%/g,"\\0\\0");for(f in p)r.includes(f)&&(r=r.replace(new RegExp(f,"g"),p[f](o)));return r=r.replace(/\\0\\0/g,"%"),f=vn(r),f.length>t?0:(G.set(f,e),f.length-1)};ie=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError";}};for(var Tt=Array(256),Le=0;256>Le;++Le)Tt[Le]=String.fromCharCode(Le);vt=Tt,g=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError";}},Object.assign(Ee.prototype,{isAliasOf:function(e){if(!(this instanceof Ee&&e instanceof Ee))return !1;var t=this.ma.za.xa,r=this.ma.ya;e.ma=e.ma;var o=e.ma.za.xa;for(e=e.ma.ya;t.Ca;)r=t.Na(r),t=t.Ca;for(;o.Ca;)e=o.Na(e),o=o.Ca;return t===o&&r===e},clone:function(){if(this.ma.ya||Se(this),this.ma.Ma)return this.ma.count.value+=1,this;var e=ue,t=Object,r=t.create,o=Object.getPrototypeOf(this),i=this.ma;return e=e(r.call(t,o,{ma:{value:{count:i.count,Ka:i.Ka,Ma:i.Ma,ya:i.ya,za:i.za,Aa:i.Aa,Da:i.Da}}})),e.ma.count.value+=1,e.ma.Ka=!1,e},delete(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");yt(this);var e=this.ma;--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0);},isDeleted:function(){return !this.ma.ya},deleteLater:function(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");return se.push(this),se.length===1&&le&&le($e),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(de).length,a.getLiveInheritedInstances=()=>{var e=[],t;for(t in de)de.hasOwnProperty(t)&&e.push(de[t]);return e},a.flushPendingDeletes=$e,a.setDelayFunction=e=>{le=e,se.length&&le&&le($e);},Object.assign(he.prototype,{eb(e){return this.Za&&(e=this.Za(e)),e},Xa(e){this.Fa?.(e);},argPackAdvance:8,readValueFromPointer:oe,fromWireType:function(e){function t(){return this.Qa?_e(this.xa.La,{za:this.jb,ya:r,Da:this,Aa:e}):_e(this.xa.La,{za:this,ya:e})}var r=this.eb(e);if(!r)return this.Xa(e),null;var o=Gt(this.xa,r);if(o!==void 0)return o.ma.count.value===0?(o.ma.ya=r,o.ma.Aa=e,o.clone()):(o=o.clone(),this.Xa(e),o);if(o=this.xa.cb(r),o=wt[o],!o)return t.call(this);o=this.Pa?o.$a:o.pointerType;var i=gt(r,this.xa,o.xa);return i===null?t.call(this):this.Qa?_e(o.xa.La,{za:o,ya:i,Da:this,Aa:e}):_e(o.xa.La,{za:o,ya:i})}}),Ct=a.UnboundTypeError=((e,t)=>{var r=ce(t,function(o){this.name=t,this.message=o,o=Error(o).stack,o!==void 0&&(this.stack=this.toString()+`\n`+o.replace(/^Error(:[^\\n]*)?\\n/,""));});return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),B.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>B.length/2-5-We.length;var gn={c:(e,t,r,o)=>{ye(`Assertion failed: ${e?J(L,e):""}, at: `+[t?t?J(L,t):"":"unknown filename",r,o?o?J(L,o):"":"unknown function"]);},m:(e,t,r)=>{var o=new Ht(e);throw b[o.ya+16>>2]=0,b[o.ya+4>>2]=t,b[o.ya+8>>2]=r,pt=e,pt},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:e=>{var t=ge[e];delete ge[e];var r=t.Ua,o=t.Fa,i=t.Ya,l=i.map(h=>h.hb).concat(i.map(h=>h.nb));H([e],l,h=>{var c={};return i.forEach((m,p)=>{var f=h[p],_=m.fb,C=m.gb,u=h[p+i.length],v=m.mb,y=m.ob;c[m.bb]={read:x=>f.fromWireType(_(C,x)),write:(x,V)=>{var R=[];v(y,x,u.toWireType(R,V)),Te(R);}};}),[{name:t.name,fromWireType:m=>{var p={},f;for(f in c)p[f]=c[f].read(m);return o(m),p},toWireType:(m,p)=>{for(var f in c)if(!(f in p))throw new TypeError(`Missing field: "${f}"`);var _=r();for(f in c)c[f].write(_,p[f]);return m!==null&&m.push(o,_),_},argPackAdvance:8,readValueFromPointer:oe,Ea:o}]});},I:()=>{},Y:(e,t,r,o)=>{t=P(t),k(e,{name:t,fromWireType:function(i){return !!i},toWireType:function(i,l){return l?r:o},argPackAdvance:8,readValueFromPointer:function(i){return this.fromWireType(L[i])},Ea:null});},r:(e,t,r,o,i,l,h,c,m,p,f,_,C)=>{f=P(f),l=S(i,l),c&&(c=S(h,c)),p&&(p=S(m,p)),C=S(_,C);var u=Nt(f);ke(u,function(){Ce(`Cannot construct ${f} due to unbound types`,[o]);}),H([e,t,r],o?[o]:[],v=>{if(v=v[0],o)var y=v.xa,x=y.La;else x=Ee.prototype;v=ce(f,function(...Je){if(Object.getPrototypeOf(this)!==V)throw new g("Use \'new\' to construct "+f);if(R.Ha===void 0)throw new g(f+" has no accessible constructor");var kt=R.Ha[Je.length];if(kt===void 0)throw new g(`Tried to invoke ctor of ${f} with invalid number of parameters (${Je.length}) - expected (${Object.keys(R.Ha).toString()}) parameters instead!`);return kt.apply(this,Je)});var V=Object.create(x,{constructor:{value:v}});v.prototype=V;var R=new Jt(f,v,V,C,y,l,c,p);if(R.Ca){var pe;(pe=R.Ca).Wa??(pe.Wa=[]),R.Ca.Wa.push(R);}return y=new he(f,R,!0,!1,!1),pe=new he(f+"*",R,!1,!1,!1),x=new he(f+" const*",R,!1,!0,!1),wt[e]={pointerType:pe,$a:x},Et(u,v),[y,pe,x]});},q:(e,t,r,o,i,l)=>{var h=ze(t,r);i=S(o,i),H([],[e],c=>{c=c[0];var m=`constructor ${c.name}`;if(c.xa.Ha===void 0&&(c.xa.Ha=[]),c.xa.Ha[t-1]!==void 0)throw new g(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class \'${c.name}\'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return c.xa.Ha[t-1]=()=>{Ce(`Cannot construct ${c.name} due to unbound types`,h);},H([],h,p=>(p.splice(1,0,null),c.xa.Ha[t-1]=Oe(m,p,null,i,l),[])),[]});},f:(e,t,r,o,i,l,h,c)=>{var m=ze(r,o);t=P(t),t=bt(t),l=S(i,l),H([],[e],p=>{function f(){Ce(`Cannot call ${_} due to unbound types`,m);}p=p[0];var _=`${p.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),c&&p.xa.kb.push(t);var C=p.xa.La,u=C[t];return u===void 0||u.Ba===void 0&&u.className!==p.name&&u.Oa===r-2?(f.Oa=r-2,f.className=p.name,C[t]=f):(_t(C,t,_),C[t].Ba[r-2]=f),H([],m,v=>(v=Oe(_,v,p,l,h),C[t].Ba===void 0?(v.Oa=r-2,C[t]=v):C[t].Ba[r-2]=v,[])),[]});},X:e=>k(e,Lt),x:(e,t,r,o)=>{function i(){}t=P(t),i.values={},k(e,{name:t,constructor:i,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,h)=>h.value,argPackAdvance:8,readValueFromPointer:tn(t,r,o),Ea:null}),ke(t,i);},k:(e,t,r)=>{var o=Ue(e,"enum");t=P(t),e=o.constructor,o=Object.create(o.constructor.prototype,{value:{value:r},constructor:{value:ce(`${o.name}_${t}`,function(){})}}),e.values[r]=o,e[t]=o;},C:(e,t,r)=>{t=P(t),k(e,{name:t,fromWireType:o=>o,toWireType:(o,i)=>i,argPackAdvance:8,readValueFromPointer:nn(t,r),Ea:null});},E:(e,t,r,o,i,l)=>{var h=ze(t,r);e=P(e),e=bt(e),i=S(o,i),ke(e,function(){Ce(`Cannot call ${e} due to unbound types`,h);},t-1),H([],h,c=>(Et(e,Oe(e,[c[0],null].concat(c.slice(1)),null,i,l),t-1),[]));},l:(e,t,r,o,i)=>{if(t=P(t),i===-1&&(i=4294967295),i=c=>c,o===0){var l=32-8*r;i=c=>c<>>l;}var h=t.includes("unsigned")?function(c,m){return m>>>0}:function(c,m){return m};k(e,{name:t,fromWireType:i,toWireType:h,argPackAdvance:8,readValueFromPointer:rn(t,r,o!==0),Ea:null});},g:(e,t,r)=>{function o(l){return new i(G.buffer,b[l+4>>2],b[l>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];r=P(r),k(e,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ib:!0});},w:e=>{k(e,Lt);},ca:(e,t,r,o,i,l,h,c,m,p,f,_)=>{r=P(r),l=S(i,l),c=S(h,c),p=S(m,p),_=S(f,_),H([e],[t],C=>(C=C[0],[new he(r,C.xa,!1,!1,!0,C,o,l,c,p,_)]));},D:(e,t)=>{t=P(t);var r=t==="std::string";k(e,{name:t,fromWireType:function(o){var i=b[o>>2],l=o+4;if(r)for(var h=l,c=0;c<=i;++c){var m=l+c;if(c==i||L[m]==0){if(h=h?J(L,h,m-h):"",p===void 0)var p=h;else p+="\\0",p+=h;h=m+1;}}else {for(p=Array(i),c=0;c>2]=h,r&&l)ft(i,L,m,h+1);else if(l)for(l=0;l{if(r=P(r),t===2)var o=an,i=on,l=sn,h=c=>re[c>>1];else t===4&&(o=ln,i=dn,l=un,h=c=>b[c>>2]);k(e,{name:r,fromWireType:c=>{for(var m=b[c>>2],p,f=c+4,_=0;_<=m;++_){var C=c+4+_*t;(_==m||h(C)==0)&&(f=o(f,C-f),p===void 0?p=f:(p+="\\0",p+=f),f=C+t);}return U(c),p},toWireType:(c,m)=>{if(typeof m!="string")throw new g(`Cannot pass non-string to C++ string type ${r}`);var p=l(m),f=Ne(4+p+t);return b[f>>2]=p/t,i(m,f+4,p+t),c!==null&&c.push(U,f),f},argPackAdvance:8,readValueFromPointer:oe,Ea(c){U(c);}});},s:(e,t,r,o,i,l)=>{ge[e]={name:P(t),Ua:S(r,o),Fa:S(i,l),Ya:[]};},j:(e,t,r,o,i,l,h,c,m,p)=>{ge[e].Ya.push({bb:P(t),hb:r,fb:S(o,i),gb:l,nb:h,mb:S(c,m),ob:p});},Z:(e,t)=>{t=P(t),k(e,{ub:!0,name:t,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}});},J:()=>{throw 1/0},aa:(e,t,r,o)=>(e=Ve[e],t=Be(t),e(null,t,r,o)),F:je,$:(e,t,r)=>{var o=hn(e,t),i=o.shift();e--;var l=Array(e);return t=`methodCaller<(${o.map(h=>h.name).join(", ")}) => ${i.name}>`,cn(ce(t,(h,c,m,p)=>{for(var f=0,_=0;_>2]=Me(h)),c}))},ba:e=>{9{var t=Be(e);Te(t),je(e);},o:(e,t)=>(e=Ue(e,"_emval_take_value"),e=e.readValueFromPointer(t),Me(e)),W:()=>{ye("");},V:()=>performance.now(),L:e=>{var t=L.length;if(e>>>=0,2147483648=r;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var i=Math;o=Math.max(e,o);e:{i=(i.min.call(i,2147483648,o+(65536-o%65536)%65536)-ve.buffer.byteLength+65535)/65536;try{ve.grow(i),at();var l=1;break e}catch{}l=void 0;}if(l)return !0}return !1},S:(e,t)=>{var r=0;return It().forEach((o,i)=>{var l=t+r;for(i=b[e+4*i>>2]=l,l=0;l{var r=It();b[e>>2]=r.length;var o=0;return r.forEach(i=>o+=i.length+1),b[t>>2]=o,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(e,t,r,o)=>{for(var i=0,l=0;l>2],c=b[t+4>>2];t+=8;for(var m=0;m>2]=i,0},U:(e,t)=>(xt(L.subarray(e,e+t)),0),i:Mn,d:Cn,e:En,p:bn,y:In,b:wn,a:_n,h:Fn,n:Ln,G:xn,K:(e,t,r,o)=>yn(e,t,r,o)},F=function(){function e(r){return F=r.exports,ve=F.da,at(),$=F.ha,it.unshift(F.ea),N--,a.monitorRunDependencies?.(N),N==0&&(ae&&(r=ae,ae=null,r())),F}var t={a:gn};if(N++,a.monitorRunDependencies?.(N),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(r){Q(`Module.instantiateWasm callback failed with error: ${r}`),w(r);}return Ut(t,function(r){e(r.instance);}).catch(w),{}}(),Ne=e=>(Ne=F.fa)(e),St=e=>(St=F.ga)(e),U=e=>(U=F.ia)(e),D=(e,t)=>(D=F.ja)(e,t),z=e=>(z=F.ka)(e),O=()=>(O=F.la)();a.dynCall_iijj=(e,t,r,o,i,l)=>(a.dynCall_iijj=F.na)(e,t,r,o,i,l),a.dynCall_vijj=(e,t,r,o,i,l)=>(a.dynCall_vijj=F.oa)(e,t,r,o,i,l),a.dynCall_jiii=(e,t,r,o)=>(a.dynCall_jiii=F.pa)(e,t,r,o),a.dynCall_jii=(e,t,r)=>(a.dynCall_jii=F.qa)(e,t,r);var Rt=a.dynCall_viiij=(e,t,r,o,i,l)=>(Rt=a.dynCall_viiij=F.ra)(e,t,r,o,i,l);a.dynCall_jiji=(e,t,r,o,i)=>(a.dynCall_jiji=F.sa)(e,t,r,o,i),a.dynCall_viijii=(e,t,r,o,i,l,h)=>(a.dynCall_viijii=F.ta)(e,t,r,o,i,l,h),a.dynCall_iiiiij=(e,t,r,o,i,l,h)=>(a.dynCall_iiiiij=F.ua)(e,t,r,o,i,l,h),a.dynCall_iiiiijj=(e,t,r,o,i,l,h,c,m)=>(a.dynCall_iiiiijj=F.va)(e,t,r,o,i,l,h,c,m),a.dynCall_iiiiiijj=(e,t,r,o,i,l,h,c,m,p)=>(a.dynCall_iiiiiijj=F.wa)(e,t,r,o,i,l,h,c,m,p);function wn(e,t){var r=O();try{$.get(e)(t);}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function _n(e,t,r){var o=O();try{$.get(e)(t,r);}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function En(e,t,r,o){var i=O();try{return $.get(e)(t,r,o)}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function Cn(e,t,r){var o=O();try{return $.get(e)(t,r)}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function Mn(e,t){var r=O();try{return $.get(e)(t)}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function bn(e,t,r,o,i,l){var h=O();try{return $.get(e)(t,r,o,i,l)}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}function Ln(e,t,r,o,i){var l=O();try{$.get(e)(t,r,o,i);}catch(h){if(z(l),h!==h+0)throw h;D(1,0);}}function Fn(e,t,r,o){var i=O();try{$.get(e)(t,r,o);}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function In(e){var t=O();try{$.get(e)();}catch(r){if(z(t),r!==r+0)throw r;D(1,0);}}function xn(e,t,r,o,i,l){var h=O();try{Rt(e,t,r,o,i,l);}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}var Fe;ae=function e(){Fe||$t(),Fe||(ae=e);};function $t(){function e(){if(!Fe&&(Fe=!0,a.calledRun=!0,!tt)){if(Ae(it),d(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var t=a.postRun.shift();st.unshift(t);}Ae(st);}}if(!(0n})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async n=>{let a=`https://unpkg.com/${me.name}@${me.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${n.message}`),console.warn(`Attempting to load WASM from backup URL: ${a}`);try{return await this._tryLoad(a)}catch(d){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${d.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(n){this._wasmURL=n,this._ModulePromise=null;}};I(X,"_ModulePromise",null),I(X,"_wasmURL",`https://cdn.jsdelivr.net/npm/${me.name}@${me.version}/dist/dotlottie-player.wasm`);var xe=class{constructor(){I(this,"_eventListeners",new Map);}addEventListener(n,a){let d=this._eventListeners.get(n);d||(d=new Set,this._eventListeners.set(n,d)),d.add(a);}removeEventListener(n,a){let d=this._eventListeners.get(n);d&&(a?(d.delete(a),d.size===0&&this._eventListeners.delete(n)):this._eventListeners.delete(n));}dispatch(n){this._eventListeners.get(n.type)?.forEach(d=>d(n));}removeAllEventListeners(){this._eventListeners.clear();}};function Rn(s){return /^#([\\da-f]{6}|[\\da-f]{8})$/iu.test(s)}function zt(s){if(!Rn(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var Qe=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,Ze=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,qe=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},et=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},M=class M{constructor(n){I(this,"_canvas");I(this,"_context",null);I(this,"_eventManager");I(this,"_animationFrameId",null);I(this,"_frameManager");I(this,"_dotLottieCore",null);I(this,"_renderConfig",{});I(this,"_isFrozen",!1);I(this,"_backgroundColor",null);this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new xe,this._frameManager=new Ie,this._renderConfig=n.renderConfig??{},X.load().then(a=>{M._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",a),segment:et(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,a),fit:Ze(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor);}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)});});}_loadFromSrc(n){async function a(){let d=await fetch(n);if(!d.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${d.status}: ${d.statusText}`);let w=(d.headers.get("content-type")??"").trim(),T;return ["application/json","text/plain"].some(W=>w.startsWith(W))?T=await d.text():T=await d.arrayBuffer(),T}a().then(d=>{this._loadFromData(d);}).catch(d=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${d}`)});});}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,d=this._canvas.height,w=!1;if(typeof n=="string")w=this._dotLottieCore.loadAnimationData(n,a,d);else if(n instanceof ArrayBuffer)w=this._dotLottieCore.loadDotLottieData(n,a,d);else if(typeof n=="object")w=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,d);else {this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}w?(this._eventManager.dispatch({type:"load"}),te&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")});}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return {align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case M._wasmModule?.Fit.Contain:return "contain";case M._wasmModule?.Fit.Cover:return "cover";case M._wasmModule?.Fit.Fill:return "fill";case M._wasmModule?.Fit.FitHeight:return "fit-height";case M._wasmModule?.Fit.FitWidth:return "fit-width";case M._wasmModule?.Fit.None:return "none";default:return "contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return [n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===M._wasmModule?.Mode.Reverse?"reverse":n===M._wasmModule?.Mode.Bounce?"bounce":n===M._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||M._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",M._wasmModule),segment:et(n.segment??[],M._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,M._wasmModule),fit:Ze(n.layout.fit,M._wasmModule)}:M._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""));}_render(){if(this._dotLottieCore===null||this._context===null)return !1;if(this._dotLottieCore.render()){let a=this._dotLottieCore.buffer(),d=new Uint8ClampedArray(a,0,this._canvas.width*this._canvas.height*4),w=null;return typeof ImageData>"u"?(w=this._context.createImageData(this._canvas.width,this._canvas.height),w.data.set(d)):w=new ImageData(d,this._canvas.width,this._canvas.height),this._context.putImageData(w,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return !1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this));}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)));}pause(){if(this._dotLottieCore===null)return;this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"});}stop(){if(this._dotLottieCore===null)return;this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}));}setFrame(n){if(this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames())return;this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render());}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:n});}setBackgroundColor(n){this._dotLottieCore!==null&&(te&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig({...this._dotLottieCore.config(),backgroundColor:zt(n)}),this._backgroundColor=n);}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:n});}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:n});}addEventListener(n,a){this._eventManager.addEventListener(n,a);}removeEventListener(n,a){this._eventManager.removeEventListener(n,a);}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners();}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}));}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}));}resize(){if(te&&this._canvas instanceof HTMLCanvasElement){let a=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:d,width:w}=this._canvas.getBoundingClientRect();this._canvas.width=w*a,this._canvas.height=d*a;}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render();}setSegment(n,a){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:et([n,a],M._wasmModule)});}setMode(n){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:Qe(n,M._wasmModule)});}setRenderConfig(n){this._renderConfig=n;}loadAnimation(n){if(this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n)return;this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)});}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:n});}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let d=0;dn=>{let a={id:"",method:"onReady",result:{instanceId:s,event:n}};self.postMessage(a);},complete:s=>n=>{let a={id:"",method:"onComplete",result:{instanceId:s,event:n}};self.postMessage(a);},load:s=>n=>{let d={id:"",method:"onLoad",result:{instanceId:s,event:n}};self.postMessage(d);},loadError:s=>n=>{let d={id:"",method:"onLoadError",result:{instanceId:s,event:n}};self.postMessage(d);},loop:s=>n=>{let d={id:"",method:"onLoop",result:{instanceId:s,event:n}};self.postMessage(d);},play:s=>n=>{let d={id:"",method:"onPlay",result:{instanceId:s,event:n}};self.postMessage(d);},pause:s=>n=>{let d={id:"",method:"onPause",result:{instanceId:s,event:n}};self.postMessage(d);},stop:s=>n=>{let d={id:"",method:"onStop",result:{instanceId:s,event:n}};self.postMessage(d);},frame:s=>n=>{let d={id:"",method:"onFrame",result:{instanceId:s,event:n}};self.postMessage(d);},render:s=>n=>{let d={id:"",method:"onRender",result:{instanceId:s,event:n}};self.postMessage(d);},freeze:s=>n=>{let d={id:"",method:"onFreeze",result:{instanceId:s,event:n}};self.postMessage(d);},unfreeze:s=>n=>{let d={id:"",method:"onUnfreeze",result:{instanceId:s,event:n}};self.postMessage(d);},destroy:s=>n=>{let d={id:"",method:"onDestroy",result:{instanceId:s,event:n}};self.postMessage(d);}},Ot={getDotLottieInstanceState(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return {state:{isLoaded:a.isLoaded,isPaused:a.isPaused,isPlaying:a.isPlaying,isStopped:a.isStopped,isFrozen:a.isFrozen,loop:a.loop,mode:a.mode,speed:a.speed,currentFrame:a.currentFrame,totalFrames:a.totalFrames,duration:a.duration,useFrameInterpolation:a.useFrameInterpolation,renderConfig:a.renderConfig,marker:a.marker,backgroundColor:a.backgroundColor,markers:a.markers(),activeAnimationId:a.activeAnimationId,activeThemeId:a.activeThemeId,autoplay:a.autoplay,segment:a.segment,layout:a.layout,segmentDuration:a.segmentDuration,isReady:a.isReady,manifest:a.manifest}}},setLayout(s){let n=s.params.instanceId,a=s.params.layout,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLayout(a),{success:!0}},getStateMachineListeners(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.getStateMachineListeners()},postStateMachineEvent(s){let n=s.params.instanceId,a=s.params.event,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.postStateMachineEvent(a)},startStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.startStateMachine()},stopStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.stopStateMachine()},loadStateMachine(s){let n=s.params.instanceId,a=s.params.stateMachineId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadStateMachine(a)},create:s=>{let n=s.params.instanceId,a=s.params.config,d=s.params.width,w=s.params.height;if(E.has(n))throw new Error(`Instance with id ${n} already exists.`);let T=new fe(a);return T.canvas.height=w,T.canvas.width=d,E.set(n,T),["complete","frame","load","loadError","loop","pause","play","stop","destroy","freeze","unfreeze","render","ready"].forEach(Y=>{T.addEventListener(Y,$n[Y](n));}),{instanceId:n}},destroy:s=>{let n=s.params.instanceId,a=E.get(n);a&&(a.destroy(),E.delete(n));},freeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.freeze();},load:s=>{let n=s.params.instanceId,a=s.params.config,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.load(a);},loadAnimation:s=>{let n=s.params.instanceId,a=s.params.animationId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.loadAnimation(a);},loadTheme:s=>{let n=s.params.instanceId,a=s.params.themeId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadTheme(a)},loadThemeData:s=>{let n=s.params.instanceId,a=s.params.themeData,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadThemeData(a)},pause:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.pause()},play:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.play()},resize:s=>{let n=s.params.instanceId,a=s.params.width,d=s.params.height,w=E.get(n);if(!w)throw new Error(`Instance with id ${n} does not exist.`);return w.canvas.height=d,w.canvas.width=a,w.resize(),{success:!0}},setBackgroundColor:s=>{let n=s.params.instanceId,a=s.params.backgroundColor,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setBackgroundColor(a);},setFrame:s=>{let n=s.params.instanceId,a=s.params.frame,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setFrame(a);},setMode:s=>{let n=s.params.instanceId,a=s.params.mode,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setMode(a);},setRenderConfig:s=>{let n=s.params.instanceId,a=s.params.renderConfig,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setRenderConfig(a);},setSegment:s=>{let n=s.params.instanceId,a=s.params.segment,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSegment(a[0],a[1]);},setSpeed:s=>{let n=s.params.instanceId,a=s.params.speed,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSpeed(a);},setUseFrameInterpolation:s=>{let n=s.params.instanceId,a=s.params.useFrameInterpolation,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setUseFrameInterpolation(a);},setWasmUrl:s=>{fe.setWasmUrl(s.params.url);},stop:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.stop();},unfreeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.unfreeze();},setViewport(s){let n=s.params.instanceId,a=s.params.x,d=s.params.y,w=s.params.width,T=s.params.height,W=E.get(n);if(!W)throw new Error(`Instance with id ${n} does not exist.`);return W.setViewport(a,d,w,T)},setMarker(s){let n=s.params.instanceId,a=s.params.marker,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setMarker(a),{success:!0}},setLoop(s){let n=s.params.instanceId,a=s.params.loop,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLoop(a),{success:!0}}};function kn(s){let n=s.method;if(typeof Ot[n]=="function")return Ot[n](s);throw new Error(`Method ${n} is not implemented in commands.`)}self.onmessage=s=>{try{let n=kn(s.data),a={id:s.data.id,method:s.data.method,result:n};self.postMessage(a);}catch(n){let a={id:s.data.id,method:s.data.method,error:n.message};self.postMessage(a);}};var Dn="",lr=Dn;\n\nexport { lr as default };\n',Ri=class{constructor(){F(this,"_workers",new Map),F(this,"_animationWorkerMap",new Map)}_createWorker(s){let n=new Blob([Ti],{type:"application/javascript"});return new Worker(URL.createObjectURL(n),{type:"module",name:s})}getWorker(s){return this._workers.has(s)||this._workers.set(s,this._createWorker(s)),this._workers.get(s)}assignAnimationToWorker(s,n){this._animationWorkerMap.set(s,n)}unassignAnimationFromWorker(s){this._animationWorkerMap.delete(s)}sendMessage(s,n,a){this.getWorker(s).postMessage(n,a||[])}terminateWorker(s){let n=this._workers.get(s);n&&(n.terminate(),this._workers.delete(s))}};function Ca(s){if(s instanceof OffscreenCanvas)return{width:s.width,height:s.height};let{height:n,width:a}=s.getBoundingClientRect();return{width:a*window.devicePixelRatio,height:n*window.devicePixelRatio}}function wa(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var Sa=class Pt{constructor(n){F(this,"_eventManager",new La),F(this,"_id"),F(this,"_worker"),F(this,"_canvas"),F(this,"_dotLottieInstanceState",{markers:[],autoplay:!1,backgroundColor:"",currentFrame:0,duration:0,loop:!1,mode:"forward",segment:[0,0],segmentDuration:0,speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:window.devicePixelRatio},activeAnimationId:"",activeThemeId:"",layout:void 0,marker:void 0,isReady:!1,manifest:null}),F(this,"_created",!1),this._canvas=n.canvas,this._id=`dotlottie-${wa()}`;let a=n.workerId||"defaultWorker";this._worker=Pt._workerManager.getWorker(a),Pt._workerManager.assignAnimationToWorker(this._id,a),Pt._wasmUrl&&this._sendMessage("setWasmUrl",{url:Pt._wasmUrl}),this._create(n),this._worker.addEventListener("message",this._handleWorkerEvent.bind(this))}_handleWorkerEvent(n){return M(this,null,function*(){let a=n.data;a.id||(a.method==="onLoad"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onComplete"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onDestroy"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onUnfreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(a.result.event)),a.method==="onFrame"&&a.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=a.result.event.currentFrame,this._eventManager.dispatch(a.result.event)),a.method==="onRender"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onFreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPause"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPlay"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onStop"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onLoadError"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onReady"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)))})}_create(n){return M(this,null,function*(){let a;this._canvas instanceof HTMLCanvasElement?a=this._canvas.transferControlToOffscreen():a=this._canvas;let{instanceId:c}=yield this._sendMessage("create",x({instanceId:this._id,config:T(x({},n),{canvas:a})},Ca(this._canvas)),[a]);if(c!==this._id)throw new Error("Instance ID mismatch");this._created=!0,yield this._updateDotLottieInstanceState()})}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get segmentDuration(){return this._dotLottieInstanceState.segmentDuration}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}play(){return M(this,null,function*(){this._created&&(yield this._sendMessage("play",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}pause(){return M(this,null,function*(){this._created&&(yield this._sendMessage("pause",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}stop(){return M(this,null,function*(){this._created&&(yield this._sendMessage("stop",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSpeed(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setSpeed",{instanceId:this._id,speed:n}),yield this._updateDotLottieInstanceState())})}setMode(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setMode",{instanceId:this._id,mode:n}),yield this._updateDotLottieInstanceState())})}setFrame(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setFrame",{frame:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSegment(n,a){return M(this,null,function*(){this._created&&(yield this._sendMessage("setSegment",{instanceId:this._id,segment:[n,a]}),yield this._updateDotLottieInstanceState())})}setRenderConfig(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:n}),yield this._updateDotLottieInstanceState())})}setUseFrameInterpolation(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:n}),yield this._updateDotLottieInstanceState())})}loadTheme(n){return M(this,null,function*(){if(!this._created)return!1;let a=this._sendMessage("loadTheme",{instanceId:this._id,themeId:n});return yield this._updateDotLottieInstanceState(),a})}load(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("load",{config:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLoop(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setLoop",{instanceId:this._id,loop:n}),yield this._updateDotLottieInstanceState())})}resize(){return M(this,null,function*(){if(!this._created)return;let{height:n,width:a}=Ca(this._canvas);this._canvas.width=a,this._canvas.height=n,yield this._sendMessage("resize",{height:n,instanceId:this._id,width:a}),yield this._updateDotLottieInstanceState()})}destroy(){return M(this,null,function*(){this._created&&(this._created=!1,yield this._sendMessage("destroy",{instanceId:this._id}),this._cleanupStateMachineListeners(),Pt._workerManager.unassignAnimationFromWorker(this._id),this._eventManager.removeAllEventListeners())})}freeze(){return M(this,null,function*(){this._created&&(yield this._sendMessage("freeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}unfreeze(){return M(this,null,function*(){this._created&&(yield this._sendMessage("unfreeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setBackgroundColor(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:n}),yield this._updateDotLottieInstanceState())})}loadAnimation(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("loadAnimation",{animationId:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLayout(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setLayout",{instanceId:this._id,layout:n}),yield this._updateDotLottieInstanceState())})}_updateDotLottieInstanceState(){return M(this,null,function*(){if(!this._created)return;let n=yield this._sendMessage("getDotLottieInstanceState",{instanceId:this._id});this._dotLottieInstanceState=n.state})}markers(){return this._dotLottieInstanceState.markers}setMarker(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setMarker",{instanceId:this._id,marker:n}),yield this._updateDotLottieInstanceState())})}loadThemeData(n){return M(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadThemeData",{instanceId:this._id,themeData:n});return yield this._updateDotLottieInstanceState(),a})}setViewport(n,a,c,p){return M(this,null,function*(){return this._created?this._sendMessage("setViewport",{x:n,y:a,width:c,height:p,instanceId:this._id}):!1})}_sendMessage(n,a,c){return M(this,null,function*(){let p={id:`dotlottie-request-${wa()}`,method:n,params:a};return this._worker.postMessage(p,c||[]),new Promise((_,q)=>{let rt=V=>{let xt=V.data;xt.id===p.id&&(this._worker.removeEventListener("message",rt),xt.error?q(new Error(`Failed to execute method ${n}: ${xt.error}`)):_(xt.result))};this._worker.addEventListener("message",rt)})})}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}static setWasmUrl(n){Pt._wasmUrl=n}loadStateMachine(n){return M(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadStateMachine",{instanceId:this._id,stateMachineId:n});return yield this._updateDotLottieInstanceState(),a})}startStateMachine(){return M(this,null,function*(){if(!this._created)return!1;this._setupStateMachineListeners();let n=yield this._sendMessage("startStateMachine",{instanceId:this._id});return yield this._updateDotLottieInstanceState(),n})}stopStateMachine(){return M(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}postStateMachineEvent(n){return M(this,null,function*(){return this._created?this._sendMessage("postStateMachineEvent",{event:n,instanceId:this._id}):!1})}getStateMachineListeners(){return M(this,null,function*(){return this._created?this._sendMessage("getStateMachineListeners",{instanceId:this._id}):[]})}_getPointerPosition(n){let a=this._canvas.getBoundingClientRect(),c=this._canvas.width/a.width,p=this._canvas.height/a.height,_=this._dotLottieInstanceState.renderConfig.devicePixelRatio||window.devicePixelRatio||1,q=(n.clientX-a.left)*c/_,rt=(n.clientY-a.top)*p/_;return{x:q,y:rt}}_onPointerUp(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerUp: ${a} ${c}`)}_onPointerDown(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerDown: ${a} ${c}`)}_onPointerMove(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerMove: ${a} ${c}`)}_onPointerEnter(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerEnter: ${a} ${c}`)}_onPointerLeave(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerExit: ${a} ${c}`)}_onComplete(){this.postStateMachineEvent("OnComplete")}_setupStateMachineListeners(){return M(this,null,function*(){if(Et&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let n=yield this._sendMessage("getStateMachineListeners",{instanceId:this._id});n.includes("PointerUp")&&this._canvas.addEventListener("pointerup",this._onPointerUp.bind(this)),n.includes("PointerDown")&&this._canvas.addEventListener("pointerdown",this._onPointerDown.bind(this)),n.includes("PointerMove")&&this._canvas.addEventListener("pointermove",this._onPointerMove.bind(this)),n.includes("PointerEnter")&&this._canvas.addEventListener("pointerenter",this._onPointerEnter.bind(this)),n.includes("PointerExit")&&this._canvas.addEventListener("pointerleave",this._onPointerLeave.bind(this)),n.includes("Complete")&&this.addEventListener("complete",this._onComplete.bind(this))}})}_cleanupStateMachineListeners(){Et&&this._canvas instanceof HTMLCanvasElement&&(this._canvas.removeEventListener("pointerup",this._onPointerUp.bind(this)),this._canvas.removeEventListener("pointerdown",this._onPointerDown.bind(this)),this._canvas.removeEventListener("pointermove",this._onPointerMove.bind(this)),this._canvas.removeEventListener("pointerenter",this._onPointerEnter.bind(this)),this._canvas.removeEventListener("pointerleave",this._onPointerLeave.bind(this)),this.removeEventListener("complete",this._onComplete.bind(this)))}};F(Sa,"_workerManager",new Ri),F(Sa,"_wasmUrl","");function Aa(s,n){let a=s.ngOnInit;s.ngOnInit=function(){if(this[n]===void 0||this[n]===null)throw new Error(`Required input '${n}' was not provided in ${s.constructor.name}.`);if(a)return a.apply(this)}}var jt=function(s){return s.QUANTIZATION="quant",s.PRUNING="pruning",s}(jt||{});var Ia={[jt.PRUNING]:{path:"assets/animations/pruning.lottie",speed:.15,className:"pruning"},[jt.QUANTIZATION]:{path:"assets/animations/quantization.lottie",speed:.07,className:"quant"}};var ki=["dotlottieCanvas"],dt,ee=(dt=class{constructor(n,a,c){this.scriptFacadeService=n,this.el=a,this.renderer=c}ngOnInit(){let n=Ia[this.animationType];if(!n)throw new Error(`Unknown animation type: ${this.animationType}`);this.initializeAnimation(n)}initializeAnimation(n){this.dotLottie=new ba({autoplay:!1,loop:!0,canvas:this.dotlottieCanvas.nativeElement,src:n.path,speed:n.speed||1}),this.dotLottie.addEventListener("load",()=>{this.listenToScriptStateChanges()}),this.renderer.addClass(this.el.nativeElement,n.className)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe($t(this)).subscribe(n=>{Ae(n)?this.playAnimation():this.stopAnimation()})}playAnimation(){this.dotLottie?.play()}stopAnimation(){this.dotLottie?.stop()}},dt.\u0275fac=function(a){return new(a||dt)(W(Ut),W(Jn),W(ta))},dt.\u0275cmp=G({type:dt,selectors:[["ms-running-animation"]],viewQuery:function(a,c){if(a&1&&ea(ki,7),a&2){let p;na(p=aa())&&(c.dotlottieCanvas=p.first)}},inputs:{animationType:"animationType"},decls:3,vars:0,consts:[["dotlottieCanvas",""],[1,"parent-container"],["id","dotlottie-canvas"]],template:function(a,c){a&1&&(w(0,"div",1),P(1,"canvas",2,0),v())},styles:[".parent-container[_ngcontent-%COMP%]{overflow:hidden;height:300px;border-radius:10px;margin-bottom:10px;position:relative;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}canvas[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:cover;position:absolute;top:50%;left:0;transform:translateY(-50%)}.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#b2ddff}@media (max-width: 1000px){.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1200px){.pruning[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#1649a8}@media (max-width: 1000px){.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1100px){.quant[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}"],changeDetection:0}),dt);lt([Aa],ee.prototype,"animationType",void 0);ee=lt([_t()],ee);var j=function(s){return s.ACCURACY="accuracy",s.LOSS="loss",s}(j||{}),Ui=100,ne=(s,n,a=!1)=>s.map(c=>({datasetIndex:c.datasetIndex,values:(a?c.testing:c.steps).map(p=>p[n])||[]})),Pa=s=>{let n=s.flatMap(a=>a.sparsity).filter(a=>a!=null);return[{datasetIndex:0,values:[Ui,...n]}]},mn=(s,n)=>[{datasetIndex:0,values:s.steps.map(a=>a[n]).filter(a=>a!=null)}],pn=(s,n)=>n===j.LOSS?s.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p?.loss).filter(p=>p!=null)})):[{datasetIndex:0,values:s.map(a=>a.accuracy).filter(a=>a!=null)}],gn=(s,n)=>s.epochs.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])})),fn=(s,n)=>s.tests.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])}));var Fa=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialAccuracyChartData=[],this.accuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisDynamic:!0,datasetLabelPrefix:"Epoch:",xAxisLabelPrefix:"Step",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY},this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY},this.initialLossChartData=[],this.lossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Epoch:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:1,dynamicYAxisGrowthRoundFactor:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.dispatch(yt.getCurrentMachineUnlearningChartData())}loadLatestChartsData(){this.chartsFacadeService.machineUnlearningProgress$.pipe(Z(1),ot(c=>!Ie(c)),Q(1)).subscribe(c=>{this.initialAccuracyChartData=gn(c,j.ACCURACY),this.initialLossChartData=gn(c,j.LOSS),this.initialAccuracyTestingChartData=fn(c,j.ACCURACY),this.initialLossTestingChartData=fn(c,j.LOSS)})}};n.\u0275fac=function(p){return new(p||n)(W(Wt))},n.\u0275cmp=G({type:n,selectors:[["ms-running-machine-unlearning-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),L("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),L("data",_.initialAccuracyTestingChartData)("settings",_.testingAccuracyChartDisplaySettings),S(5),L("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),L("data",_.initialLossTestingChartData)("settings",_.testingLossChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var it=function(s){return s.SPARSITY_PRUNING="sparsityPruning",s.ACCURACY_PRUNING="accuracyPruning",s.ACCURACY_QUANTIZATION="accuracyQuantization",s.ACCURACY_MACHINE_UNLEARNING="accuracyMachineUnlearning",s.LOSS_QUANTIZATION="lossQuantization",s.LOSS_PRUNING="lossPruning",s.LOSS_MACHINE_UNLEARNING="lossMachineUnlearning",s.TESTING_ACCURACY_CHART="testing_accuracyChart",s.TESTING_LOSS_CHART="testing_lossChart",s}(it||{});var mt,Oe=(mt=class{constructor(n){this.chartsFacadeService=n,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.lossPruningChartSettings={},this.lossChartDisplaySettings=T(x({},Nt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS}),this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings=T(x({},Nt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}),this.initialAccuracyChartData=[],this.accuracyPruningChartSettings={},this.accuracyChartDisplaySettings=T(x({},Nt),{chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY}),this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings=T(x({},Nt),{yAxisTickInterval:20,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}),this.initialSparsityChartData=[],this.sparsityPruningChartSettings={},this.sparsityChartDisplaySettings=T(x({},Nt),{xAxisLabelPrefix:"Pruning",isDatasetLabelVisible:!1,yAxisTickInterval:100,chartDataStructure:H.SINGLE_PHASE_X_AXIS_SKIP_ONE,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.BLUE,useSteppedLines:!0,realtimeUpdateMetric:U.SPARSITY})}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(n=>{n&&(this.accuracyPruningChartSettings=n[it.ACCURACY_PRUNING]||{},this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.testingAccuracyChartDisplaySettings=T(x({},this.testingAccuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.lossPruningChartSettings=T(x({},n[it.LOSS_PRUNING]||{}),{testingSteps:Fe}),this.lossChartDisplaySettings=T(x({},this.lossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.testingLossChartDisplaySettings=T(x({},this.testingLossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.sparsityPruningChartSettings=x({},n[it.SPARSITY_PRUNING]||{}),this.sparsityChartDisplaySettings=T(x({},this.sparsityChartDisplaySettings),{xAxisDataPointsCount:this.sparsityPruningChartSettings.pruningTimes+1}),this.chartsFacadeService.dispatch(yt.getCurrentPruningChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_PRUNING,it.LOSS_PRUNING,it.SPARSITY_PRUNING]}))}loadLatestChartsData(){this.chartsFacadeService.pruningProgress.pipe(Z(1),ot(n=>!!n&&n.length>0),Q(1)).subscribe(n=>{this.initialLossChartData=ne(n,j.LOSS),this.initialLossTestingChartData=ne(n,j.LOSS,!0),this.initialAccuracyChartData=ne(n,j.ACCURACY),this.initialAccuracyTestingChartData=ne(n,j.ACCURACY,!0),this.initialSparsityChartData=Pa(n)})}},mt.\u0275fac=function(a){return new(a||mt)(W(Wt))},mt.\u0275cmp=G({type:mt,selectors:[["ms-running-pruning-charts"]],decls:23,vars:10,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"],[1,"ms-chart-display","sparsity-chart"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()(),w(19,"div",7)(20,"p",3),A(21,"Sparsity Training"),v(),P(22,"ms-line-chart",4),v()()),a&2&&(S(5),L("data",c.initialAccuracyChartData)("settings",c.accuracyChartDisplaySettings),S(4),L("data",c.initialAccuracyTestingChartData)("settings",c.testingAccuracyChartDisplaySettings),S(5),L("data",c.initialLossChartData)("settings",c.lossChartDisplaySettings),S(4),L("data",c.initialLossTestingChartData)("settings",c.testingLossChartDisplaySettings),S(4),L("data",c.initialSparsityChartData)("settings",c.sparsityChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%]{flex-direction:column}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;flex:0 0 30%}"]}),mt);Oe=lt([_t()],Oe);var Da=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.initialLossTestingChartData=[],this.initialAccuracyChartData=[],this.initialAccuracyTestingChartData=[],this.lossChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:40,datasetLabelPrefix:"Reconstruction:",xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:50,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.lossTestingChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,datasetColorSettingsKey:B.YELLOW,dynamicYAxisGrowthRoundFactor:2,realtimeUpdateMetric:U.TESTING_LOSS},this.accuracyChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisLabelPrefix:"Recon.",isDatasetLabelVisible:!1,isXAxisVisible:!0,xAxisInitialLabelValue:0,chartDataStructure:H.SINGLE_PHASE_X_AXIS,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,isXAxisDynamic:!0,realtimeUpdateMetric:U.ACCURACY,enhanceSinglePhaseXAxisWebsocketEvent:!0},this.accuracyTestingChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(c=>{c&&(this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisDataPointsCount:c[it.ACCURACY_QUANTIZATION]?.reconstructions}),this.chartsFacadeService.dispatch(yt.getCurrentQuantizationChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_QUANTIZATION]}))}loadLatestChartsData(){this.chartsFacadeService.quantizationProgress$.pipe(Z(1),ot(c=>!!c),Q(1)).subscribe(c=>this.processChartData(c))}processChartData(c){this.initialLossChartData=pn(c.reconstructions,j.LOSS),this.initialAccuracyChartData=pn(c.reconstructions,j.ACCURACY),this.initialLossTestingChartData=mn(c.testing,j.LOSS),this.initialAccuracyTestingChartData=mn(c.testing,j.ACCURACY)}};n.\u0275fac=function(p){return new(p||n)(W(Wt))},n.\u0275cmp=G({type:n,selectors:[["ms-running-quantization-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"reconstructions"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),L("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),L("data",_.initialAccuracyTestingChartData)("settings",_.accuracyTestingChartDisplaySettings),S(5),L("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),L("data",_.initialLossTestingChartData)("settings",_.lossTestingChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .reconstructions[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var Ta=(()=>{let n=class n{constructor(){this.keyMap={forget_acc:"Forget Accuracy",retain_acc:"Retain Accuracy",test_acc:"Test Accuracy",val_acc:"Validation Accuracy"}}transform(c){if(!c)return c;let p=c.split("_");if(p.length<3)return c;let _=p.slice(0,-2).join("_"),q=p[p.length-1];return`${this.keyMap[_]||_.split("_").map(V=>V.charAt(0).toUpperCase()+V.slice(1)).join(" ")} (Test #${q})`}};n.\u0275fac=function(p){return new(p||n)},n.\u0275pipe=Zn({name:"readableStatisticsLabel",type:n,pure:!0});let s=n;return s})();var Vi=s=>({stats:s});function Gi(s,n){if(s&1&&(w(0,"div",7)(1,"span",8),A(2),we(3,"readableStatisticsLabel"),v(),w(4,"span",9),A(5),v()()),s&2){let a=n.$implicit;S(2),Ce("",Se(3,2,a.key),":"),S(3),ia(a.value)}}function Xi(s,n){if(s&1&&(bt(0),w(1,"div",5),J(2,Gi,6,4,"div",6),v(),At()),s&2){let a=ht().ngIf;S(2),L("ngForOf",a.stats)}}function qi(s,n){s&1&&P(0,"ms-empty-state",10)}function Ki(s,n){if(s&1&&(bt(0),J(1,Xi,3,1,"ng-container",4)(2,qi,1,0,"ng-template",null,0,Le),At()),s&2){let a=n.ngIf,c=ye(3);S(),L("ngIf",a.stats==null?null:a.stats.length)("ngIfElse",c)}}var Oa=(()=>{let n=class n{constructor(c){this.statisticsFacadeService=c,this.statistics$=this.statisticsFacadeService.statistics$}ngOnInit(){this.statisticsFacadeService.dispatch(ya.getStatistics())}};n.\u0275fac=function(p){return new(p||n)(W(_a))},n.\u0275cmp=G({type:n,selectors:[["ms-running-statistics"]],decls:6,vars:7,consts:[["noStatistics",""],[1,"ms-card"],[1,"heading-section-title"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"key-value-container","dense"],["class","key-value-pair",4,"ngFor","ngForOf"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],["title","No statistics available."]],template:function(p,_){p&1&&(w(0,"mat-card",1)(1,"p",2),A(2,"Statistics"),v(),J(3,Ki,4,2,"ng-container",3),we(4,"async"),we(5,"keyvalue"),v()),p&2&&(S(3),L("ngIf",ra(5,Vi,Se(5,3,Se(4,1,_.statistics$)))))},dependencies:[oa,kt,Ee,xe,la,ha,Ta]});let s=n;return s})();function tr(s,n){if(s&1){let a=_e();w(0,"div",18)(1,"button",19),Ot("click",function(){fe(a);let p=ht();return ve(p.runStopScript())}),A(2," Stop "),v()()}}function er(s,n){s&1&&(w(0,"div",20)(1,"div",13),A(2,"\u2014"),v(),w(3,"div",14),A(4,"Sparsity"),v()())}var pt,ke=(pt=class{constructor(n,a){this.scriptFacadeService=n,this.chartToolsGlobalSignalsService=a,this.isScriptActive=!1,this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToScriptStateChanges(),this.subscribeToChartToolsSignals()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(te.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n}),this.scriptFacadeService.scriptStatus$.pipe($t(this)).subscribe(n=>{this.isScriptActive=Ae(n)})}toggleTooltip(n){this.chartToolsGlobalSignalsService.toggleTooltips=n.checked}toggleZoom(n){this.chartToolsGlobalSignalsService.toggleZoom=n.checked}get isSparsityVisible(){return this.scriptDetails?.type===It.PRUNING}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe($t(this)).subscribe(n=>{this.enableTooltips=n}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe($t(this)).subscribe(n=>{this.enableZoom=n})}runStopScript(){this.scriptFacadeService.dispatch(te.stopScript())}},pt.\u0275fac=function(a){return new(a||pt)(W(Ut),W(De))},pt.\u0275cmp=G({type:pt,selectors:[["ms-running-status-bar"]],decls:33,vars:7,consts:[[1,"training-status","mb-2"],[1,"status-bar"],[1,"runnning-title-container"],[1,"model-name","heading-sub-section-title"],["class","ml-2",4,"ngIf"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel","disabled"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel","disabled"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[1,"metrics"],[1,"metric","accuracy"],[1,"metric-value"],[1,"metric-name","paragraph-semibold-p2-large-emphasis"],[1,"metric","loss"],["class","metric sparsity",4,"ngIf"],[1,"metric","testing"],[1,"ml-2"],["mat-raised-button","","color","warn","matTooltip","Stop current process.",3,"click"],[1,"metric","sparsity"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3),A(5),v(),J(6,tr,3,0,"div",4),v(),w(7,"div",5)(8,"div")(9,"mat-slide-toggle",6),on("ngModelChange",function(_){return rn(c.enableTooltips,_)||(c.enableTooltips=_),_}),Ot("change",function(_){return c.toggleTooltip(_)}),A(10," Enable tooltips "),v()(),w(11,"div",7)(12,"mat-slide-toggle",8),on("ngModelChange",function(_){return rn(c.enableZoom,_)||(c.enableZoom=_),_}),Ot("change",function(_){return c.toggleZoom(_)}),A(13," Enable zoom "),v(),w(14,"div",9),P(15,"mat-icon",10),v()()()()(),w(16,"div",11)(17,"div",12)(18,"div",13),A(19,"\u2014"),v(),w(20,"div",14),A(21,"Accuracy"),v()(),w(22,"div",15)(23,"div",13),A(24,"\u2014"),v(),w(25,"div",14),A(26,"Loss"),v()(),J(27,er,5,0,"div",16),w(28,"div",17)(29,"div",13),A(30,"\u2014"),v(),w(31,"div",14),A(32,"Test"),v()()()()),a&2&&(S(5),Ce("Algorithm: ",(c.scriptDetails==null?null:c.scriptDetails.algKey)||"None",""),S(),L("ngIf",c.isScriptActive),S(3),an("ngModel",c.enableTooltips),L("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(3),an("ngModel",c.enableZoom),L("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(15),L("ngIf",c.isSparsityVisible))},dependencies:[kt,Me,be,pa,ga,ua,ma],styles:[".training-status[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.training-status[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.training-status[_ngcontent-%COMP%] .runnning-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%], .training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%]{display:flex;gap:10px}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:1.25rem}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.sparsity[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-sparsity)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.accuracy[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-accuracy)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.loss[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-loss)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.testing[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-testing)}"]}),pt);ke=lt([_t()],ke);function ar(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.QUANTIZATION)}}function ir(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.PRUNING)}}function rr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.PRUNING)}}function or(s,n){s&1&&P(0,"ms-running-quantization-charts")}function sr(s,n){s&1&&P(0,"ms-running-pruning-charts")}function cr(s,n){s&1&&P(0,"ms-running-machine-unlearning-charts")}function lr(s,n){if(s&1&&(bt(0)(1,2),J(2,or,1,0,"ms-running-quantization-charts",11)(3,sr,1,0,"ms-running-pruning-charts",11)(4,cr,1,0,"ms-running-machine-unlearning-charts",11),At()()),s&2){let a=ht();S(),L("ngSwitch",a.scriptDetails==null?null:a.scriptDetails.type),S(),L("ngSwitchCase",a.AlgorithmType.QUANTIZATION),S(),L("ngSwitchCase",a.AlgorithmType.PRUNING),S(),L("ngSwitchCase",a.AlgorithmType.MACHINE_UNLEARNING)}}function hr(s,n){s&1&&P(0,"ms-empty-state",12)}function dr(s,n){s&1&&(bt(0),w(1,"div",13),P(2,"ms-running-statistics"),v(),At())}var gt,$e=(gt=class{constructor(n,a){this.navigationService=n,this.scriptFacadeService=a,this.AlgorithmType=It,this.AnimationType=jt}ngOnInit(){this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(te.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n})}get isChartVisible(){return!Ie(this.scriptDetails?.algKey)&&this.scriptDetails?.type!==It.TRAIN&&this.scriptDetails?.type!==It.AWQ&&this.scriptDetails?.type!==It.MULTIFLOW}},gt.\u0275fac=function(a){return new(a||gt)(W(va),W(Ut))},gt.\u0275cmp=G({type:gt,selectors:[["ms-running"]],decls:16,vars:7,consts:[["noChartData",""],[1,"heading-primary-title","title"],[3,"ngSwitch"],[3,"animationType",4,"ngSwitchCase"],[1,"ms-card","running-prunning"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"mt-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[3,"animationType"],[4,"ngSwitchCase"],["title","No Chart Data Available","message","Please run the appropriate script to generate chart data."],[1,"mt-2"]],template:function(a,c){if(a&1){let p=_e();w(0,"p",1),A(1,"Running"),v(),bt(2,2),J(3,ar,1,1,"ms-running-animation",3)(4,ir,1,1,"ms-running-animation",3)(5,rr,1,1,"ms-running-animation",3),At(),w(6,"mat-card",4),P(7,"ms-running-status-bar"),J(8,lr,5,4,"ng-container",5)(9,hr,1,0,"ng-template",null,0,Le),v(),J(11,dr,3,0,"ng-container",6),w(12,"div",7)(13,"button",8),Ot("click",function(){return fe(p),ve(c.navigationService.goToPreviousPage())}),P(14,"mat-icon",9),A(15," Go back "),v()()}if(a&2){let p=ye(10);S(2),L("ngSwitch",c.scriptDetails==null?null:c.scriptDetails.type),S(),L("ngSwitchCase",c.AlgorithmType.QUANTIZATION),S(),L("ngSwitchCase",c.AlgorithmType.PRUNING),S(),L("ngSwitchCase",c.AlgorithmType.MACHINE_UNLEARNING),S(3),L("ngIf",c.isChartVisible)("ngIfElse",p),S(3),L("ngIf",(c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.MACHINE_UNLEARNING)}},dependencies:[kt,sa,ca,Me,be,Ee,xe,Oe,Da,Fa,ee,Oa,ke]}),gt);$e=lt([_t()],$e);var ur=[{path:"",component:$e}],ka=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({imports:[sn.forChild(ur),sn]});let s=n;return s})();var es=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({providers:[De],imports:[ka,da,fa,Ct]});let s=n;return s})();export{es as RunningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MM4TEEVS.js b/frontend/server/modelsmith-build/browser/chunk-WL3ZZTTC.js similarity index 67% rename from frontend/server/modelsmith-build/browser/chunk-MM4TEEVS.js rename to frontend/server/modelsmith-build/browser/chunk-WL3ZZTTC.js index bf84ef1a..20df1d67 100644 --- a/frontend/server/modelsmith-build/browser/chunk-MM4TEEVS.js +++ b/frontend/server/modelsmith-build/browser/chunk-WL3ZZTTC.js @@ -1 +1 @@ -import{Ab as r,zb as e}from"./chunk-XZNUB5IR.js";var o=r({source:"[Core -> Parameter]",events:{"Load Parameters":e(),"Load Parameters Success":e(),"Load Parameters Failure":e()}});export{o as a}; +import{Ab as r,zb as e}from"./chunk-JA5VSLUI.js";var o=r({source:"[Core -> Parameter]",events:{"Load Parameters":e(),"Load Parameters Success":e(),"Load Parameters Failure":e()}});export{o as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-WJXIN2IO.js b/frontend/server/modelsmith-build/browser/chunk-WP2WLVOC.js similarity index 94% rename from frontend/server/modelsmith-build/browser/chunk-WJXIN2IO.js rename to frontend/server/modelsmith-build/browser/chunk-WP2WLVOC.js index 6ce9dba8..b0c5ca4f 100644 --- a/frontend/server/modelsmith-build/browser/chunk-WJXIN2IO.js +++ b/frontend/server/modelsmith-build/browser/chunk-WP2WLVOC.js @@ -1 +1 @@ -import{D as o,O as s,R as c,i as n}from"./chunk-XZNUB5IR.js";var l=function(i){return i.RUN_RECORDS_SUMMARIZED_DATA="runRecordsSummarizedData",i}(l||{}),u=[{key:l.RUN_RECORDS_SUMMARIZED_DATA,urlPattern:"/rest/run-records-summarized-data/[^/]+/[^/]+",track:!0,useRegex:!0}],d=(()=>{let t=class t{constructor(){this.loadingMap=new Map}setLoading(r,e){this.loadingMap.has(e)||this.loadingMap.set(e,new n(!1)),this.loadingMap.get(e).next(r)}getLoadingObservableForKey(r){if(this.loadingMap.has(r))return this.loadingMap.get(r).asObservable();{let e=new n(!1);return this.loadingMap.set(r,e),e.asObservable()}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),h=(()=>{let t=class t{constructor(r){this.loadingService=r}intercept(r,e){let a=this.getMatchingConfig(r);return a&&a.track&&this.loadingService.setLoading(!0,a.key),e.handle(r).pipe(o(()=>{a&&a.track&&this.loadingService.setLoading(!1,a.key)}))}getMatchingConfig(r){let e=r.url.split("?")[0];return u.find(a=>a.track&&(a.useRegex?new RegExp(a.urlPattern).test(e):a.urlPattern===e))}};t.\u0275fac=function(e){return new(e||t)(c(d))},t.\u0275prov=s({token:t,factory:t.\u0275fac});let i=t;return i})();export{l as a,d as b,h as c}; +import{D as o,O as s,R as c,i as n}from"./chunk-JA5VSLUI.js";var l=function(i){return i.RUN_RECORDS_SUMMARIZED_DATA="runRecordsSummarizedData",i}(l||{}),u=[{key:l.RUN_RECORDS_SUMMARIZED_DATA,urlPattern:"/rest/run-records-summarized-data/[^/]+/[^/]+",track:!0,useRegex:!0}],d=(()=>{let t=class t{constructor(){this.loadingMap=new Map}setLoading(r,e){this.loadingMap.has(e)||this.loadingMap.set(e,new n(!1)),this.loadingMap.get(e).next(r)}getLoadingObservableForKey(r){if(this.loadingMap.has(r))return this.loadingMap.get(r).asObservable();{let e=new n(!1);return this.loadingMap.set(r,e),e.asObservable()}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),h=(()=>{let t=class t{constructor(r){this.loadingService=r}intercept(r,e){let a=this.getMatchingConfig(r);return a&&a.track&&this.loadingService.setLoading(!0,a.key),e.handle(r).pipe(o(()=>{a&&a.track&&this.loadingService.setLoading(!1,a.key)}))}getMatchingConfig(r){let e=r.url.split("?")[0];return u.find(a=>a.track&&(a.useRegex?new RegExp(a.urlPattern).test(e):a.urlPattern===e))}};t.\u0275fac=function(e){return new(e||t)(c(d))},t.\u0275prov=s({token:t,factory:t.\u0275fac});let i=t;return i})();export{l as a,d as b,h as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-M7GSOCTW.js b/frontend/server/modelsmith-build/browser/chunk-WVPOWI4W.js similarity index 93% rename from frontend/server/modelsmith-build/browser/chunk-M7GSOCTW.js rename to frontend/server/modelsmith-build/browser/chunk-WVPOWI4W.js index 023a5e05..626c5058 100644 --- a/frontend/server/modelsmith-build/browser/chunk-M7GSOCTW.js +++ b/frontend/server/modelsmith-build/browser/chunk-WVPOWI4W.js @@ -1 +1 @@ -import{a as V}from"./chunk-IUBE55F7.js";import{b as G}from"./chunk-ZPFJPO4G.js";import{$b as v,$d as j,Ca as S,Cc as I,Da as h,Ja as b,Ka as y,La as E,Na as s,P as d,Pa as k,T as w,U as p,Xb as F,Ya as O,Z as u,Za as _,Zb as M,_ as f,_b as g,ac as C,cc as D,hc as R,id as A,ja as x,ka as l,mb as P,pb as T,qd as N,wa as r,xa as m,ya as a}from"./chunk-XZNUB5IR.js";var H=["configureDefaultMode"],Q=(()=>{let e=class e{constructor(o,t,c){this.authFacadeService=o,this.configFacadeService=t,this.router=c}setModeAndNavigate(o){let t=this.defaultModeCheckbox.checked?o:void 0;this.configFacadeService.dispatch(v.setDefaultMode({mode:t})),this.configFacadeService.dispatch(v.setCurrentMode({mode:t}))}goToExpertMode(){this.setModeAndNavigate(C.EXPERT),this.router.navigate([g.MODEL_COMPRESSION.ROOT])}goToGuidedMode(){this.setModeAndNavigate(C.GUIDED),this.router.navigate([g.WIZARD.ROOT])}};e.\u0275fac=function(t){return new(t||e)(l(A),l(D),l(F))},e.\u0275cmp=w({type:e,selectors:[["ms-mode-select"]],viewQuery:function(t,c){if(t&1&&b(H,5),t&2){let n;y(n=E())&&(c.defaultModeCheckbox=n.first)}},decls:24,vars:3,consts:[["configureDefaultMode",""],[1,"mode-select-wrapper"],[1,"mode-select-warpper-content"],[1,"text"],[1,"paragraph-semibold-p1-xlarge-emphasis","block","text-white"],[1,"mode-select-buttons","mt-20"],[1,"nav-type-button"],["mat-stroked-button","",1,"ms-white-stroked-button",3,"click"],[1,"nav-type-button","mt-10"],[1,"mt-3","ml-[-8px]"],["color","primary","checked","",1,"ms-checkbox-white"],["styleMode","fullWidth"]],template:function(t,c){if(t&1){let n=S();r(0,"ms-background-gradient"),a(1,"ms-header"),r(2,"div",1),a(3,"div"),r(4,"div",2)(5,"div",3)(6,"span",4),s(7),O(8,"async"),m(),r(9,"span",4),s(10,"Welcome to ModelSmith. Please select a mode to start:"),m(),r(11,"div",5)(12,"div",6)(13,"button",7),h("click",function(){return u(n),f(c.goToExpertMode())}),s(14,"Expert Mode"),m()(),r(15,"div",8)(16,"button",7),h("click",function(){return u(n),f(c.goToGuidedMode())}),s(17,"Guided Mode"),m()(),r(18,"div",9)(19,"mat-checkbox",10,0),s(21,"Remember my choice for the future "),m()()()()(),a(22,"div"),m(),a(23,"ms-footer",11),m()}if(t&2){let n;x(7),k("Hello ",(n=_(8,1,c.authFacadeService.user$))==null?null:n.name,"")}},dependencies:[R,N,I,j,V,P],styles:[".mode-select-wrapper[_ngcontent-%COMP%]{margin-left:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%]{margin-top:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%] .mode-select-buttons[_ngcontent-%COMP%] .nav-type-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:400px}"]});let i=e;return i})();var U=[{path:"",component:Q}],L=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[M.forChild(U),M]});let i=e;return i})();var he=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[L,G,T]});let i=e;return i})();export{he as ModeSelectModule}; +import{a as V}from"./chunk-HCG7N3XK.js";import{b as G}from"./chunk-KK5JZLDV.js";import{$b as v,$d as j,Ca as S,Cc as I,Da as h,Ja as b,Ka as y,La as E,Na as s,P as d,Pa as k,T as w,U as p,Xb as F,Ya as O,Z as u,Za as _,Zb as M,_ as f,_b as g,ac as C,cc as D,hc as R,id as A,ja as x,ka as l,mb as P,pb as T,qd as N,wa as r,xa as m,ya as a}from"./chunk-JA5VSLUI.js";var H=["configureDefaultMode"],Q=(()=>{let e=class e{constructor(o,t,c){this.authFacadeService=o,this.configFacadeService=t,this.router=c}setModeAndNavigate(o){let t=this.defaultModeCheckbox.checked?o:void 0;this.configFacadeService.dispatch(v.setDefaultMode({mode:t})),this.configFacadeService.dispatch(v.setCurrentMode({mode:t}))}goToExpertMode(){this.setModeAndNavigate(C.EXPERT),this.router.navigate([g.MODEL_COMPRESSION.ROOT])}goToGuidedMode(){this.setModeAndNavigate(C.GUIDED),this.router.navigate([g.WIZARD.ROOT])}};e.\u0275fac=function(t){return new(t||e)(l(A),l(D),l(F))},e.\u0275cmp=w({type:e,selectors:[["ms-mode-select"]],viewQuery:function(t,c){if(t&1&&b(H,5),t&2){let n;y(n=E())&&(c.defaultModeCheckbox=n.first)}},decls:24,vars:3,consts:[["configureDefaultMode",""],[1,"mode-select-wrapper"],[1,"mode-select-warpper-content"],[1,"text"],[1,"paragraph-semibold-p1-xlarge-emphasis","block","text-white"],[1,"mode-select-buttons","mt-20"],[1,"nav-type-button"],["mat-stroked-button","",1,"ms-white-stroked-button",3,"click"],[1,"nav-type-button","mt-10"],[1,"mt-3","ml-[-8px]"],["color","primary","checked","",1,"ms-checkbox-white"],["styleMode","fullWidth"]],template:function(t,c){if(t&1){let n=S();r(0,"ms-background-gradient"),a(1,"ms-header"),r(2,"div",1),a(3,"div"),r(4,"div",2)(5,"div",3)(6,"span",4),s(7),O(8,"async"),m(),r(9,"span",4),s(10,"Welcome to ModelSmith. Please select a mode to start:"),m(),r(11,"div",5)(12,"div",6)(13,"button",7),h("click",function(){return u(n),f(c.goToExpertMode())}),s(14,"Expert Mode"),m()(),r(15,"div",8)(16,"button",7),h("click",function(){return u(n),f(c.goToGuidedMode())}),s(17,"Guided Mode"),m()(),r(18,"div",9)(19,"mat-checkbox",10,0),s(21,"Remember my choice for the future "),m()()()()(),a(22,"div"),m(),a(23,"ms-footer",11),m()}if(t&2){let n;x(7),k("Hello ",(n=_(8,1,c.authFacadeService.user$))==null?null:n.name,"")}},dependencies:[R,N,I,j,V,P],styles:[".mode-select-wrapper[_ngcontent-%COMP%]{margin-left:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%]{margin-top:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%] .mode-select-buttons[_ngcontent-%COMP%] .nav-type-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:400px}"]});let i=e;return i})();var U=[{path:"",component:Q}],L=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[M.forChild(U),M]});let i=e;return i})();var he=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[L,G,T]});let i=e;return i})();export{he as ModeSelectModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-YYZOFFYE.js b/frontend/server/modelsmith-build/browser/chunk-XBRAELGQ.js similarity index 87% rename from frontend/server/modelsmith-build/browser/chunk-YYZOFFYE.js rename to frontend/server/modelsmith-build/browser/chunk-XBRAELGQ.js index ef1a2a6c..0515a4d3 100644 --- a/frontend/server/modelsmith-build/browser/chunk-YYZOFFYE.js +++ b/frontend/server/modelsmith-build/browser/chunk-XBRAELGQ.js @@ -1 +1 @@ -import{a as u}from"./chunk-OZEKUFJS.js";import{a as g}from"./chunk-PEPQONB2.js";import"./chunk-7XUVQUZC.js";import"./chunk-MM4TEEVS.js";import{a as d}from"./chunk-4KDFY6RG.js";import"./chunk-U7NPFWER.js";import"./chunk-VMZY47C3.js";import{b as x}from"./chunk-ZPFJPO4G.js";import{Aa as F,Ca as I,Cc as L,Cd as q,Da as T,Hd as U,Ja as R,Ka as _,La as G,Md as $,Na as h,P as l,T as P,U as c,Xb as j,Z as M,Zb as A,_ as S,_b as k,a as v,b as y,ja as m,ka as f,m as w,oc as D,pb as V,rd as B,sa as a,sd as H,uc as O,ud as K,wa as s,wd as N,xa as p,ya as b,za as E,zc as Q}from"./chunk-XZNUB5IR.js";var X=["panelParameters"],o,C=(o=class{constructor(e,i,t){this.fb=e,this.scriptFacadeService=i,this.router=t,this.AlgorithmType=q,this.MachineUnlearningAlgorithmsEnum=U,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(H(this)).subscribe(e=>{this.isScriptActive=N(e),N(e)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(U.MU)},0)}submit(){if(this.isScriptActive)return;let{algorithm:e,model:i}=this.form.getRawValue(),{model:t}=i,r=y(v({},e),{params:y(v({},this.panelParametersComponent.parametersFormatted),{arch:t})});this.scriptFacadeService.dispatch(K.callScript({configs:r}))}goToChartPage(){this.router.navigate([k.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(Q),f($),f(j))},o.\u0275cmp=P({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,t){if(i&1&&R(X,5),i&2){let r;_(r=G())&&(t.panelParametersComponent=r.first)}},decls:15,vars:5,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(i,t){if(i&1){let r=I();s(0,"p",1),h(1,"Machine Unlearning"),p(),s(2,"div",2)(3,"div",3),E(4,4),b(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),F(),s(8,"div")(9,"button",7),T("click",function(){return M(r),S(t.submit())}),h(10," Run "),p(),s(11,"button",8),T("click",function(){return M(r),S(t.goToChartPage())}),h(12,"View Chart"),p()()(),s(13,"div",9),b(14,"ms-terminal"),p()()}i&2&&(m(2),a("formGroup",t.form),m(2),a("formGroup",t.form),m(),a("algorithmType",t.AlgorithmType.MACHINE_UNLEARNING),m(),a("algorithm",t.MachineUnlearningAlgorithmsEnum.MU),m(3),a("disabled",t.isScriptActive||t.form.invalid))},dependencies:[L,D,O,d,g,u],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=w([B()],C);var Y=[{path:"",component:C}],J=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[A.forChild(Y),A]});let n=e;return n})();var Ne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[V,x,J,d,g,u]});let n=e;return n})();export{Ne as MachineUnlearningModule}; +import{a as u}from"./chunk-M5CIZNTW.js";import{a as g}from"./chunk-C4BAO3YM.js";import"./chunk-FQJTC3NS.js";import"./chunk-WL3ZZTTC.js";import{a as d}from"./chunk-4LH6YZUP.js";import"./chunk-VBDJDMQD.js";import"./chunk-3ZHMSG5W.js";import{b as x}from"./chunk-KK5JZLDV.js";import{Aa as F,Ca as I,Cc as L,Cd as q,Da as T,Hd as U,Ja as R,Ka as _,La as G,Md as $,Na as h,P as l,T as P,U as c,Xb as j,Z as M,Zb as A,_ as S,_b as k,a as v,b as y,ja as m,ka as f,m as w,oc as D,pb as V,rd as B,sa as a,sd as H,uc as O,ud as K,wa as s,wd as N,xa as p,ya as b,za as E,zc as Q}from"./chunk-JA5VSLUI.js";var X=["panelParameters"],o,C=(o=class{constructor(e,i,t){this.fb=e,this.scriptFacadeService=i,this.router=t,this.AlgorithmType=q,this.MachineUnlearningAlgorithmsEnum=U,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(H(this)).subscribe(e=>{this.isScriptActive=N(e),N(e)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(U.MU)},0)}submit(){if(this.isScriptActive)return;let{algorithm:e,model:i}=this.form.getRawValue(),{model:t}=i,r=y(v({},e),{params:y(v({},this.panelParametersComponent.parametersFormatted),{arch:t})});this.scriptFacadeService.dispatch(K.callScript({configs:r}))}goToChartPage(){this.router.navigate([k.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(Q),f($),f(j))},o.\u0275cmp=P({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,t){if(i&1&&R(X,5),i&2){let r;_(r=G())&&(t.panelParametersComponent=r.first)}},decls:15,vars:5,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(i,t){if(i&1){let r=I();s(0,"p",1),h(1,"Machine Unlearning"),p(),s(2,"div",2)(3,"div",3),E(4,4),b(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),F(),s(8,"div")(9,"button",7),T("click",function(){return M(r),S(t.submit())}),h(10," Run "),p(),s(11,"button",8),T("click",function(){return M(r),S(t.goToChartPage())}),h(12,"View Chart"),p()()(),s(13,"div",9),b(14,"ms-terminal"),p()()}i&2&&(m(2),a("formGroup",t.form),m(2),a("formGroup",t.form),m(),a("algorithmType",t.AlgorithmType.MACHINE_UNLEARNING),m(),a("algorithm",t.MachineUnlearningAlgorithmsEnum.MU),m(3),a("disabled",t.isScriptActive||t.form.invalid))},dependencies:[L,D,O,d,g,u],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=w([B()],C);var Y=[{path:"",component:C}],J=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[A.forChild(Y),A]});let n=e;return n})();var Ne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[V,x,J,d,g,u]});let n=e;return n})();export{Ne as MachineUnlearningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ZRPP46UQ.js b/frontend/server/modelsmith-build/browser/chunk-ZRPP46UQ.js deleted file mode 100644 index b31640c6..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-ZRPP46UQ.js +++ /dev/null @@ -1,11 +0,0 @@ -import{a as lt,e as ct,g as Hi,h as Oe,i as Ie}from"./chunk-XSYDPZOE.js";import{a as Gi,b as pt,c as ji}from"./chunk-WROZFHBO.js";import{a as st}from"./chunk-7TE64OY5.js";import{a as Xi,b as Yi}from"./chunk-WJXIN2IO.js";import{a as Li,b as de,c as zi,d as at,e as Pe}from"./chunk-DZI3JCLT.js";import"./chunk-VMZY47C3.js";import{b as Vi}from"./chunk-ZPFJPO4G.js";import{$ as Ge,$a as Q,$c as xi,A as xe,Aa as w,Ab as ai,Ad as nt,Ae as Ni,Bd as It,Ca as S,Cc as _i,Cd as O,Da as _,Ea as m,Ec as Ci,G as St,Hc as Te,I as Et,Ja as ne,Ka as re,Kb as si,La as oe,Lb as $e,Lc as vi,Ma as G,Mb as li,Mc as Rt,N as Xt,Na as d,Nb as ci,O as U,Oa as A,Ob as Ee,Oc as q,Od as yi,P as we,Pa as F,Pb as pi,Pc as kt,Qa as ae,Qb as Tt,Qc as Pt,Qd as Ae,R as H,Ra as se,Rb as mi,Rc as ze,S as Yt,Sa as le,Sb as Mt,Sc as Ot,T,Ta as be,Tb as di,U as ye,V as Ne,W as Wt,Wa as Ft,Wc as et,Y as $t,Ya as b,Z as C,Za as E,Zb as At,Zc as tt,Zd as bi,_ as v,_a as Jt,a as P,aa as Ut,ab as ei,b as z,ca as Qt,cb as Xe,cd as wi,de as me,ea as Ve,ec as Ue,ed as it,ee as Re,fa as B,fb as Y,fc as Qe,fe as ke,gb as K,ge as Si,ha as Kt,hb as ti,he as rt,i as xt,ia as Dt,ib as ii,ic as hi,ja as s,jb as ni,jc as ui,je as Ei,ka as f,kb as Ye,kc as fe,ke as ot,la as qt,lc as Le,le as Di,m as ie,mb as Se,nb as ri,nc as ce,o as wt,ob as oi,oc as De,pb as We,pc as Ke,qa as u,qe as Fi,rc as gi,rd as pe,re as Ti,s as yt,sa as p,sc as qe,sd as N,se as Mi,ta as X,te as Ai,ua as je,uc as Ze,ue as Ri,va as Zt,vc as fi,ve as ki,w as Gt,wa as l,we as Pi,x as bt,xa as c,xc as Fe,xe as Oi,ya as g,yd as Me,ye as Ii,z as jt,za as x,zb as ge,zc as Je,ze as Bi}from"./chunk-XZNUB5IR.js";var fn=["hueSlider"],_n=["alphaSlider"];function Cn(n,i){if(n&1){let e=S();l(0,"div",10),_("newValue",function(r){C(e);let o=m();return v(o.onSliderChange("saturation-lightness",r))}),l(1,"div",11),g(2,"div"),c()()}if(n&2){let e=m();X("background-color",e.hueSliderColor),p("rgX",1)("rgY",1),s(),X("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function vn(n,i){if(n&1&&(l(0,"div",12),g(1,"div",13)(2,"div",14),c()),n&2){let e=m();s(2),X("background-color",e.selectedColor)}}function xn(n,i){if(n&1){let e=S();l(0,"div",15,1),_("newValue",function(r){C(e);let o=m();return v(o.onSliderChange("hue",r))}),l(2,"div",16)(3,"div"),g(4,"div"),c()()()}if(n&2){let e=m();p("rgX",1),s(2),X("left",e.slider==null?null:e.slider.h,"px")}}function wn(n,i){if(n&1){let e=S();l(0,"div",17,2),_("newValue",function(r){C(e);let o=m();return v(o.onSliderChange("alpha",r))}),g(2,"div",18),l(3,"div",16)(4,"div"),g(5,"div"),c()()()}if(n&2){let e=m();p("rgX",1),s(2),p("ngStyle",e.getBackgroundColor(e.alphaSliderColor)),s(),X("left",e.slider==null?null:e.slider.a,"px")}}var yn=["dialog"],Ui=n=>({background:n});function bn(n,i){n&1&&g(0,"div",12)}function Sn(n,i){if(n&1){let e=S();x(0),l(1,"div",9)(2,"div",10),_("click",function(){let r=C(e).$implicit,o=m(2);return v(o.onColorClick(r))}),u(3,bn,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=i.index,r=m(2);s(2),je("colornull",!e),p("ngStyle",r.getBackgroundColor(e)),s(),p("ngIf",t==r.indexSeleccionado)}}function En(n,i){if(n&1&&g(0,"div",18),n&2){let e=m(3);p("ngStyle",e.getBackgroundColor(e.color))}}function Dn(n,i){if(n&1){let e=S();l(0,"div",13),_("click",function(){C(e);let r=m(2);return v(r.addColor())}),u(1,En,1,1,"div",14),Ge(),l(2,"svg",15),g(3,"path",16)(4,"path",17),c()()}if(n&2){let e=m(2);s(),p("ngIf",e.indexSeleccionado===void 0)}}function Fn(n,i){if(n&1){let e=S();l(0,"color-picker",19),_("colorChange",function(r){C(e);let o=m(2);return v(o.onChangeColorPicker(r))})("onAlphaChange",function(r){C(e);let o=m(2);return v(o.onAlphaChange(r))}),c()}if(n&2){let e=m(2);p("controls",e.colorPickerControls)("color",e.hsva)}}function Tn(n,i){if(n&1&&(x(0),l(1,"div",5),u(2,Sn,4,4,"ng-container",6)(3,Dn,5,1,"div",7)(4,Fn,1,2,"color-picker",8),c(),w()),n&2){let e=m();s(),p("@colorsAnimation",e.colorsAnimationEffect),s(),p("ngForOf",e.palette),s(),p("ngIf",!e.hideColorPicker&&e.colorPickerControls!="only-alpha"),s(),p("ngIf",!e.hideColorPicker&&e.colorPickerControls=="only-alpha")}}function Mn(n,i){n&1&&g(0,"div",12)}function An(n,i){if(n&1){let e=S();x(0),l(1,"div",9)(2,"div",25),_("click",function(){let r=C(e).$implicit,o=m(2);return v(o.changeColor(r))}),u(3,Mn,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=m(2);s(2),je("colornull",!e),p("ngStyle",Ft(4,Ui,e)),s(),p("ngIf",t.isSelected(e))}}function Rn(n,i){if(n&1){let e=S();x(0),l(1,"div",5)(2,"div",20)(3,"div",21),_("click",function(){C(e);let r=m();return v(r.onClickBack())}),Ge(),l(4,"svg",22),g(5,"path",23)(6,"path",24),c()()(),u(7,An,4,6,"ng-container",6),c(),w()}if(n&2){let e=m();s(),p("@colorsAnimation",e.colorsAnimationEffect),s(6),p("ngForOf",e.variants)}}function kn(n,i){if(n&1){let e=S();x(0),l(1,"div",26)(2,"div",27),_("click",function(){C(e);let r=m();return v(r.onClickBack())}),Ge(),l(3,"svg",22),g(4,"path",23)(5,"path",24),c()(),Ut(),l(6,"button",28),_("click",function(){C(e);let r=m();return v(r.emitClose("cancel"))}),d(7),c(),l(8,"button",28),_("click",function(){C(e);let r=m();return v(r.emitClose("accept"))}),d(9),c()(),l(10,"div",29)(11,"color-picker",30),_("sliderChange",function(r){C(e);let o=m();return v(o.onChangeColorPicker(r))}),c()(),w()}if(n&2){let e=m();s(7),F(" ",e.cancelLabel," "),s(2),F(" ",e.acceptLabel," "),s(2),p("controls",e.colorPickerControls)("color",e.hsva)}}function Pn(n,i){if(n&1){let e=S();l(0,"div",31)(1,"p",32),_("click",function(){C(e);let r=m();return v(r.nextFormat())}),d(2),c(),l(3,"div",33)(4,"input",34,1),_("keyup",function(){C(e);let r=G(5),o=m();return v(o.changeColorManual(r.value))})("keydown.enter",function(){C(e);let r=m();return v(r.emitClose("accept"))}),c()()()}if(n&2){let e=m();s(2),A(e.colorFormats[e.format]),s(2),X("font-size",e.color&&e.color.length>23?9:10,"px")("letter-spacing",e.color&&e.color.length>16?0:1.5,"px"),p("placeholder",e.placeholder)("value",e.color)}}var Bt=["hex","rgba","hsla","cmyk"],R=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(R||{}),Wi=[{color:"rojo",preview:"#E57373",variants:["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828"]},{color:"rosa",preview:"#F06292",variants:["#FCE4EC","#F8BBD0","#F48FB1","#F06292","#EC407A","#E91E63","#D81B60","#C2185B","#AD1457"]},{color:"purpura",preview:"#BA68C8",variants:["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A"]},{color:"purpura oscuro",preview:"#9575CD",variants:["#EDE7F6","#D1C4E9","#B39DDB","#9575CD","#7E57C2","#673AB7","#5E35B1","#512DA8","#4527A0"]},{color:"indigo",preview:"#7986CB",variants:["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593"]},{color:"azul",preview:"#64B5F6",variants:["#E3F2FD","#BBDEFB","#90CAF9","#64B5F6","#42A5F5","#2196F3","#1E88E5","#1976D2","#1565C0"]},{color:"celeste",preview:"#4FC3F7",variants:["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD"]},{color:"cyan",preview:"#4DD0E1",variants:["#E0F7FA","#B2EBF2","#80DEEA","#4DD0E1","#26C6DA","#00BCD4","#00ACC1","#0097A7","#00838F"]},{color:"color",preview:"#4DB6AC",variants:["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C"]},{color:"verde",preview:"#81C784",variants:["#E8F5E9","#C8E6C9","#A5D6A7","#81C784","#66BB6A","#4CAF50","#43A047","#388E3C","#2E7D32"]},{color:"verde claro",preview:"#AED581",variants:["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F"]},{color:"lima",preview:"#DCE775",variants:["#F9FBE7","#F0F4C3","#E6EE9C","#DCE775","#D4E157","#CDDC39","#C0CA33","#AFB42B","#9E9D24"]},{color:"amarillo",preview:"#FFF176",variants:["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825"]},{color:"ambar",preview:"#FFD54F",variants:["#FFF8E1","#FFECB3","#FFE082","#FFD54F","#FFCA28","#FFC107","#FFB300","#FFA000","#FF8F00"]},{color:"naranja",preview:"#FFB74D",variants:["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00"]},{color:"naranja oscuro",preview:"#FF8A65",variants:["#FBE9E7","#FFCCBC","#FFAB91","#FF8A65","#FF7043","#FF5722","#F4511E","#E64A19","#D84315"]},{color:"marron",preview:"#A1887F",variants:["#EFEBE9","#D7CCC8","#BCAAA4","#A1887F","#8D6E63","#795548","#6D4C41","#5D4037","#4E342E"]},{color:"escala de grises",preview:"#E0E0E0",variants:["#FFFFFF","#FAFAFA","#F5F5F5","#EEEEEE","#E0E0E0","#BDBDBD","#9E9E9E","#757575","#616161","#424242","#000000"]},{color:"azul gris",preview:"#90A4AE",variants:["#ECEFF1","#CFD8DC","#B0BEC5","#90A4AE","#78909C","#607D8B","#546E7A","#455A64","#37474F"]}],W=class{constructor(i,e,t,r){this.r=i,this.g=e,this.b=t,this.a=r}denormalize(){return this.r=Math.round(this.r*255),this.g=Math.round(this.g*255),this.b=Math.round(this.b*255),this}toString(){return this.denormalize(),"rgb"+(this.a!=1?"a(":"(")+this.r+", "+this.g+", "+this.b+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},j=class{constructor(i,e,t,r){this.h=i,this.s=e,this.v=t,this.a=r,this.onChange=new B(!0)}onColorChange(i){this.s=i.s/i.rgX,this.v=i.v/i.rgY}onHueChange(i){this.h=i.v/i.rgX}onValueChange(i){this.v=i.v/i.rgX}onAlphaChange(i){this.a=i.v/i.rgX}},_e=class{constructor(i,e,t,r){this.h=i,this.s=e,this.l=t,this.a=r}denormalize(){return this.h=Math.round(this.h*360),this.s=Math.round(this.s*100),this.l=Math.round(this.l*100),this}toString(){return"hsl"+(this.a!=1?"a(":"(")+this.h+", "+this.s+"%, "+this.l+"%"+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},he=class{constructor(i,e,t,r,o=1){this.c=i,this.m=e,this.y=t,this.k=r,this.a=o}denormalize(){return this.c=Math.round(this.c*100),this.m=Math.round(this.m*100),this.y=Math.round(this.y*100),this.k=Math.round(this.k*100),this}toString(){return this.denormalize(),"cmyk("+this.c+", "+this.m+", "+this.y+", "+this.k+")"}},Nt=class{constructor(i){i&&(this.preview=i.preview,this.variants=i.variants)}},ht=(()=>{class n{constructor(){}toFormat(e,t){var r="";if(e)switch(t){case R.HEX:var a=this.hsvaToRgba(e);a.denormalize();var r=this.rgbaToHex(a,!0);break;case R.HSLA:var o=this.hsva2hsla(e);o.denormalize();var r=o.toString();break;case R.RGBA:var a=this.hsvaToRgba(e),r=a.toString();break;case R.CMYK:var h=this.hsvaToCmyk(e),r=h.toString();break}return r}stringToFormat(e,t){var r=this.stringToHsva(e,!0);return this.toFormat(r,t)}hsva2hsla(e){let t=e.h,r=e.s,o=e.v,a=e.a;if(o===0)return new _e(t,0,0,a);if(r===0&&o===1)return new _e(t,1,1,a);{let h=o*(2-r)/2;return new _e(t,o*r/(1-Math.abs(2*h-1)),h,a)}}hsla2hsva(e){let t=Math.min(e.h,1),r=Math.min(e.s,1),o=Math.min(e.l,1),a=Math.min(e.a,1);if(o===0)return new j(t,0,0,a);{let h=o+r*(1-Math.abs(2*o-1))/2;return new j(t,2*(h-o)/h,h,a)}}hsvaToRgba(e){let t,r,o,a=e.h,h=e.s,y=e.v,D=e.a,$=Math.floor(a*6),ve=a*6-$,k=y*(1-h),Be=y*(1-ve*h),ue=y*(1-(1-ve)*h);switch($%6){case 0:t=y,r=ue,o=k;break;case 1:t=Be,r=y,o=k;break;case 2:t=k,r=y,o=ue;break;case 3:t=k,r=Be,o=y;break;case 4:t=ue,r=k,o=y;break;case 5:t=y,r=k,o=Be;break;default:t=0,r=0,o=0}return new W(t,r,o,D)}cmykToRgb(e){let t=(1-e.c)*(1-e.k),r=(1-e.m)*(1-e.k),o=(1-e.y)*(1-e.k);return new W(t,r,o,e.a)}rgbaToCmyk(e){let t=1-Math.max(e.r,e.g,e.b);if(t===1)return new he(0,0,0,1,e.a);{let r=(1-e.r-t)/(1-t),o=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new he(r,o,a,t,e.a)}}hsvaToCmyk(e){let t=this.hsvaToRgba(e);return this.rgbaToCmyk(t)}rgbaToHsva(e){let t,r,o=Math.min(e.r,1),a=Math.min(e.g,1),h=Math.min(e.b,1),y=Math.min(e.a,1),D=Math.max(o,a,h),$=Math.min(o,a,h),ve=D,k=D-$;if(r=D===0?0:k/D,D===$)t=0;else{switch(D){case o:t=(a-h)/k+(a{class n{mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.dragEnd=new B,this.dragStart=new B,this.newValue=new B,this.listenerMove=t=>this.move(t),this.listenerStop=()=>this.stop()}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-t.left-window.pageXOffset}getY(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-t.top-window.pageYOffset}setCursor(e){let t=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),r));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:o/t,v:1-a/r,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:a/r,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:o/t,rgX:this.rgX})}}return n.\u0275fac=function(e){return new(e||n)(f(Ve))},n.\u0275dir=Ne({type:n,selectors:[["","slider",""]],hostBindings:function(e,t){e&1&&_("mousedown",function(o){return t.mouseDown(o)})("touchstart",function(o){return t.touchStart(o)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),n})(),In=(()=>{class n{constructor(e,t){this.service=e,this.cdr=t,this.color=new j(0,1,1,1),this.controls="default",this.sliderChange=new B(!1),this.onAlphaChange=new B(!1),this.hsva=new j(0,1,1,1),this.selectedColor="#000000",this.fallbackColor="#000000"}ngOnInit(){this.color||(this.color=new j(0,1,1,1)),this.slider=new mt(0,0,0,0),this.update()}ngOnDestroy(){}ngOnChanges(e){e.color&&this.color&&this.update()}ngAfterViewInit(){let e=this.hueSlider?.nativeElement.offsetWidth||140,t=this.alphaSlider?.nativeElement.offsetWidth||140;this.sliderDimMax=new Vt(e,220,130,t),this.update()}onSliderChange(e,t){switch(e){case"saturation-lightness":this.hsva.onColorChange(t);break;case"hue":this.hsva.onHueChange(t);break;case"alpha":this.hsva.onAlphaChange(t),this.onAlphaChange.emit(t);break;case"value":this.hsva.onValueChange(t);break}this.update(),this.setColor(this.outputColor)}setColor(e){this.color=e,this.sliderChange.emit(this.color)}getBackgroundColor(e){return{background:"linear-gradient(90deg, rgba(36,0,0,0) 0%, "+e+" 100%)"}}update(){if(this.hsva=this.color,this.sliderDimMax){let e=this.service.hsvaToRgba(this.hsva).denormalize(),t=this.service.hsvaToRgba(new j(this.hsva.h,1,1,1)).denormalize();this.hueSliderColor="rgb("+t.r+","+t.g+","+t.b+")",this.alphaSliderColor="rgb("+e.r+","+e.g+","+e.b+")",this.outputColor=this.hsva,this.selectedColor=this.service.hsvaToRgba(this.hsva).toString(),this.slider=new mt(this.hsva.h*this.sliderDimMax.h-5,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-5),this.cdr.detectChanges()}}}return n.\u0275fac=function(e){return new(e||n)(f(ht),f(Xe))},n.\u0275cmp=T({type:n,selectors:[["color-picker"]],viewQuery:function(e,t){if(e&1&&(ne(fn,5),ne(_n,5)),e&2){let r;re(r=oe())&&(t.hueSlider=r.first),re(r=oe())&&(t.alphaSlider=r.first)}},inputs:{color:"color",controls:"controls"},outputs:{sliderChange:"sliderChange",onAlphaChange:"onAlphaChange"},features:[$t],decls:8,vars:4,consts:[["dialogPopup",""],["hueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue",4,"ngIf"],[1,"hue-alpha","box"],["class","left",4,"ngIf"],[1,"right"],["class","hue",3,"slider","rgX","newValue",4,"ngIf"],["class","alpha",3,"slider","rgX","newValue",4,"ngIf"],[1,"saturation-lightness",3,"newValue","slider","rgX","rgY"],[1,"cursor"],[1,"left"],[1,"selected-color-background"],[1,"selected-color"],[1,"hue",3,"newValue","slider","rgX"],[1,"sliderCursor"],[1,"alpha",3,"newValue","slider","rgX"],[1,"alpha-gradient",3,"ngStyle"]],template:function(e,t){if(e&1){let r=S();l(0,"div",3,0),_("click",function(a){return C(r),v(a.stopPropagation())}),u(2,Cn,3,8,"div",4),l(3,"div",5),u(4,vn,3,2,"div",6),l(5,"div",7),u(6,xn,5,3,"div",8)(7,wn,6,4,"div",9),c()()()}e&2&&(s(2),p("ngIf",t.controls!="only-alpha"),s(2),p("ngIf",t.controls!="only-alpha"),s(2),p("ngIf",t.controls!="only-alpha"),s(),p("ngIf",t.controls!="no-alpha"))},dependencies:[K,Ye,On],styles:[`.color-picker{position:relative;z-index:1000;width:220px;height:auto;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .sliderCursor{width:10px;border-radius:5px;position:absolute;margin-top:-3px;border:1px solid black}.color-picker .sliderCursor>div{border:2px solid white;border-radius:5px}.color-picker .sliderCursor>div>div{border-radius:5px;border:1px solid black;height:24px}.color-picker .cursor{position:absolute;width:21px;border:3px solid black;border-radius:100%;margin:-2px 0 0 -2px}.color-picker .cursor>div{height:15px;border:3px solid white;border-radius:100%}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;padding:12px 8px}.color-picker .hue-alpha{display:flex;align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:24px;border:none;border-radius:5px;position:relative;cursor:pointer;background-size:100% 100%;background:linear-gradient(to right,red 0%,#ff0 17%,lime 33%,cyan 50%,blue 66%,#f0f 83%,red 100%)}.color-picker .alpha{direction:ltr;position:relative;width:100%;height:24px;border:none;border-radius:5px;cursor:pointer;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .alpha-gradient{width:100%;height:100%;border-radius:5px;position:absolute}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;box-shadow:0 1px 1px 1px #00000026;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .saturation-lightness{direction:ltr;cursor:crosshair;width:100%;position:relative;height:130px;border:none;touch-action:manipulation;background-image:linear-gradient(to top,#000 0%,transparent 100%),linear-gradient(to right,#fff 0%,transparent 100%)} -`],encapsulation:2}),n})(),Bn=(()=>{class n{click(e){this.isOutside(e)&&this.emitClose("cancel")}onScroll(){this.onScreenMovement()}onResize(){this.onScreenMovement()}constructor(e,t){this.service=e,this.cdr=t,this.color="#000000",this.previewColor="#000000",this.hsva=new j(0,1,1,1),this.colorsAnimationEffect="slide-in",this.palette=Wi,this.variants=[],this.userFormats=[],this.colorFormats=Bt,this.format=R.HEX,this.formatMap={hex:R.HEX,rgba:R.RGBA,hsla:R.HSLA,cmyk:R.CMYK},this.canChangeFormat=!0,this.menu=1,this.hideColorPicker=!1,this.hideTextInput=!1,this.colorPickerControls="default",this.placeholder="#FFFFFF"}ngOnInit(){this.setPosition(),this.hsva=this.service.stringToHsva(this.color),this.indexSeleccionado=this.findIndexSelectedColor(this.palette)}ngAfterViewInit(){this.setPositionY()}onScreenMovement(){this.setPosition(),this.setPositionY(),this.panelRef.nativeElement.style.transition||(this.panelRef.nativeElement.style.transition="transform 0.5s ease-out")}findIndexSelectedColor(e){let t;if(this.color)for(let r=0;rBt.includes(gn))&&(this.colorFormats=ue),h?this.colorFormats.includes(h)?(this.format=this.colorFormats.indexOf(h.toLowerCase()),this.canChangeFormat=!1,this.service.getFormatByString(this.color)!=h.toLowerCase()&&this.setColor(this.service.stringToHsva(this.color))):(console.error("Format provided is invalid, using HEX"),this.format=R.HEX):(this.format=this.colorFormats.indexOf(this.service.getFormatByString(this.color)),this.format<0&&(this.format=0)),this.previewColor=this.color,this.palette=o??Wi,this.colorsAnimationEffect=a,Be=="top"){let Ht=this.TriggerBBox.nativeElement.getBoundingClientRect();this.positionString="transform: translateY(calc( -100% - "+Ht.height+"px ))"}}setPosition(){if(this.TriggerBBox){let t=this.TriggerBBox.nativeElement.getBoundingClientRect();this.top=t.top+t.height,t.left+250>window.innerWidth?this.left=t.right<250?window.innerWidth/2-250/2:t.right-250:this.left=t.left}}setPositionY(){let e=this.TriggerBBox.nativeElement.getBoundingClientRect(),t=this.panelRef.nativeElement.getBoundingClientRect(),r=t.height;e.bottom+r>window.innerHeight?this.positionString=e.topt.toUpperCase()==this.previewColor.toUpperCase()):!1}isSelected(e){return this.previewColor?typeof e=="string"&&e.toUpperCase()==this.previewColor.toUpperCase():!1}getBackgroundColor(e){return typeof e=="string"?{background:e}:{background:e?.preview}}onAlphaChange(e){this.palette=this.ChangeAlphaOnPalette(e,this.palette)}ChangeAlphaOnPalette(e,t){var r=[];for(let o=0;o slide-in",[ze(":enter",q({opacity:0}),{optional:!0}),ze(":enter",Ot("10ms",[Rt(".3s ease-in",kt([q({opacity:0,transform:"translatex(-50%)",offset:0}),q({opacity:.5,transform:"translatex(-10px) scale(1.1)",offset:.3}),q({opacity:1,transform:"translatex(0)",offset:1})]))]),{optional:!0})]),Pt("void => popup",[ze(":enter",q({opacity:0,transform:"scale(0)"}),{optional:!0}),ze(":enter",Ot("10ms",[Rt("500ms ease-out",kt([q({opacity:.5,transform:"scale(.5)",offset:.3}),q({opacity:1,transform:"scale(1.1)",offset:.8}),q({opacity:1,transform:"scale(1)",offset:1})]))]),{optional:!0})])])]}}),n})(),$i={position:"fixed",height:"100%",width:"100%","z-index":2e3,top:0,left:0},Qi=(()=>{class n{constructor(e,t,r){this.resolver=e,this.applicationRef=t,this.injector=r}createPanel(e,t){this.componentRef!=null&&this.removePanel();let r=this.resolver.resolveComponentFactory(Bn);this.componentRef=r.create(this.injector),this.applicationRef.attachView(this.componentRef.hostView);let o=this.componentRef.hostView.rootNodes[0];return this.overlay=document.createElement("div"),this.overlay.id="ngx-colors-overlay",this.overlay.classList.add("ngx-colors-overlay"),this.overlay.classList.add(t),Object.keys($i).forEach(a=>{this.overlay.style[a]=$i[a]}),e?document.getElementById(e).appendChild(this.overlay):document.body.appendChild(this.overlay),this.overlay.appendChild(o),this.componentRef}removePanel(){this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.overlay.remove()}}return n.\u0275fac=function(e){return new(e||n)(H(qt),H(ei),H(Qt))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})(),Lt=(()=>{class n{onClick(){this.openPanel()}constructor(e,t,r){this.triggerRef=e,this.panelFactory=t,this.service=r,this.color="",this.colorsAnimation="slide-in",this.position="bottom",this.attachTo=void 0,this.overlayClassName=void 0,this.colorPickerControls="default",this.acceptLabel="ACCEPT",this.cancelLabel="CANCEL",this.change=new B,this.input=new B,this.slider=new B,this.close=new B,this.open=new B,this.isDisabled=!1,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}ngOnDestroy(){this.panelRef&&this.panelFactory.removePanel()}openPanel(){this.isDisabled||(this.panelRef=this.panelFactory.createPanel(this.attachTo,this.overlayClassName),this.panelRef.instance.iniciate(this,this.triggerRef,this.color,this.palette,this.colorsAnimation,this.format,this.hideTextInput,this.hideColorPicker,this.acceptLabel,this.cancelLabel,this.colorPickerControls,this.position,this.formats)),this.open.emit(this.color)}closePanel(){this.panelFactory.removePanel(),this.onTouchedCallback(),this.close.emit(this.color)}setDisabledState(e){this.isDisabled=e,this.triggerRef.nativeElement.style.opacity=e?.5:1}setColor(e,t=""){this.writeValue(e,t),this.onChangeCallback(e),this.input.emit(e)}sliderChange(e){this.slider.emit(e)}get value(){return this.color}set value(e){this.setColor(e),this.onChangeCallback(e)}writeValue(e,t=""){if(e!==this.color){if(this.format){let o=Bt.indexOf(this.format.toLowerCase());e=this.service.stringToFormat(e,o)}this.color=e;let r=!1;e&&e.startsWith("cmyk")&&(r=!0,t||(t=this.service.stringToFormat(e,R.RGBA))),this.change.emit(r?t:e)}}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return n.\u0275fac=function(e){return new(e||n)(f(Ve),f(Qi),f(ht))},n.\u0275dir=Ne({type:n,selectors:[["","ngx-colors-trigger",""]],hostBindings:function(e,t){e&1&&_("click",function(){return t.onClick()})},inputs:{colorsAnimation:"colorsAnimation",palette:"palette",format:"format",formats:"formats",position:"position",hideTextInput:"hideTextInput",hideColorPicker:"hideColorPicker",attachTo:"attachTo",overlayClassName:"overlayClassName",colorPickerControls:"colorPickerControls",acceptLabel:"acceptLabel",cancelLabel:"cancelLabel"},outputs:{change:"change",input:"input",slider:"slider",close:"close",open:"open"},features:[be([{provide:hi,useExisting:Xt(()=>n),multi:!0}])]}),n})(),Ki=(()=>{class n{constructor(e,t){this.cdRef=e,this.triggerDirective=t,this.triggerDirectiveColorChangeSubscription=null,this.color=this.triggerDirective.color}ngOnInit(){this.triggerDirectiveColorChangeSubscription=this.triggerDirective.change.subscribe(e=>{this.color=e,this.cdRef.markForCheck()})}ngOnDestroy(){this.triggerDirectiveColorChangeSubscription&&this.triggerDirectiveColorChangeSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(Xe),f(Lt,1))},n.\u0275cmp=T({type:n,selectors:[["ngx-colors"]],decls:4,vars:5,consts:[[1,"app-color-picker"],[1,"preview"],[1,"preview-background"],[1,"circle",3,"ngStyle"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3),c()()()),e&2&&(s(3),je("colornull",!t.color),p("ngStyle",Ft(3,Ui,t.color)))},dependencies:[Ye],styles:["[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%]{line-height:1px;font-family:sans-serif}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{margin:2px;display:inline-block;box-sizing:border-box;border-radius:100%;background:white;cursor:pointer;padding:3px;box-shadow:0 1px 1px #0003,0 1px 1px 1px #00000024,0 1px 1px 1px #0000001f}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .preview-background[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px;border-radius:100%}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{height:20px;width:20px;box-sizing:border-box;border-radius:100%;cursor:pointer}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle.colornull[_ngcontent-%COMP%]{background:linear-gradient(135deg,rgba(236,236,236,.7) 0%,rgba(236,236,236,.7) 45%,#de0f00 50%,rgba(236,236,236,.7) 55%,rgba(236,236,236,.7) 100%)}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .noselected[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}"]}),n})(),qi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=we({providers:[ht,Qi],imports:[We]}),n})();var M=ai({source:"[Run Records -> Records]",events:{"Get Run Records Filenames":ge(),"Get Run Records Filenames Success":ge(),"Get Run Records Filenames Failure":ge(),"Get Run Record Summarized Data":ge(),"Get Run Record Summarized Data Success":ge(),"Get Run Record Summarized Data Failure":ge()}});var ut=class extends it{constructor(i){super(`run-records-filenames/${i}`,void 0,void 0,!1)}};var gt=class extends it{constructor(i,e){super(`run-records-summarized-data/${i}/${e}`,void 0,void 0,!1)}};var Zi=(()=>{let i=class i{constructor(t,r){this.apiClient=t,this.actions$=r,this.getRunRecordsFilenames$=Tt(()=>this.actions$.pipe(Mt(M.getRunRecordsFilenames),Et(o=>{let{algorithmType:a}=o;return this.apiClient.serviceCall(new ut(a)).pipe(yt(h=>M.getRunRecordsFilenamesSuccess({files:h})),bt(h=>wt(M.getRunRecordsFilenamesFailure({error:h}))))}))),this.getRunRecordSummarizedData$=Tt(()=>this.actions$.pipe(Mt(M.getRunRecordSummarizedData),Et(o=>{let{algorithmType:a,filename:h}=o;return this.apiClient.serviceCall(new gt(a,h)).pipe(yt(y=>M.getRunRecordSummarizedDataSuccess({record:y})),bt(y=>wt(M.getRunRecordSummarizedDataFailure({error:y}))))})))}};i.\u0275fac=function(r){return new(r||i)(H(wi),H(mi))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var Vn={filenames:[],summarizedRecord:{},error:""},Ji=pi(Vn,Ee(M.getRunRecordsFilenamesSuccess,(n,{files:i})=>z(P({},n),{filenames:i,error:null})),Ee(M.getRunRecordsFilenamesFailure,(n,{error:i})=>z(P({},n),{error:i})),Ee(M.getRunRecordSummarizedData,n=>z(P({},n),{loading:!0,error:null})),Ee(M.getRunRecordSummarizedDataSuccess,(n,{record:i})=>z(P({},n),{summarizedRecord:i,error:null})),Ee(M.getRunRecordSummarizedDataFailure,(n,{error:i})=>z(P({},n),{error:i})));var en=li("runRecords");var tn=$e(en,n=>n.records),nn=$e(tn,n=>n.filenames),rn=$e(tn,n=>n.summarizedRecord);var on={records:Ji};var an=(()=>{let i=class i{get lineClamp(){return this.maxEllipsisLines}onMouseEnter(){this.isTextOverflowing?this.tooltip.show():this.tooltip.hide()}onMouseLeave(){this.tooltip.hide()}constructor(t,r){this.tooltip=t,this.elementRef=r,this.maxEllipsisLines=2,this.display="-webkit-box",this.overflow="hidden",this.boxOrient="vertical",this.textOverflow="ellipsis",this.whiteSpace="normal",this.wordBreak="break-all"}ngAfterViewInit(){setTimeout(()=>{this.tooltip.message=this.elementRef.nativeElement.textContent.trim(),this.tooltip.position="above"},0)}get isTextOverflowing(){let t=parseInt(window.getComputedStyle(this.elementRef.nativeElement).lineHeight),r=this.maxEllipsisLines*t;return this.elementRef.nativeElement.scrollHeight>r}};i.\u0275fac=function(r){return new(r||i)(f(Ae),f(Ve))},i.\u0275dir=Ne({type:i,selectors:[["","msUseEllipsis",""]],hostVars:14,hostBindings:function(r,o){r&1&&_("mouseenter",function(){return o.onMouseEnter()})("mouseleave",function(){return o.onMouseLeave()}),r&2&&X("display",o.display)("overflow",o.overflow)("-webkit-box-orient",o.boxOrient)("-webkit-line-clamp",o.lineClamp)("text-overflow",o.textOverflow)("white-space",o.whiteSpace)("word-break",o.wordBreak)},inputs:{maxEllipsisLines:"maxEllipsisLines"},standalone:!0,features:[be([Ae])]});let n=i;return n})();var sn=(()=>{let i=class i{transform(t){return typeof t=="string"&&t&&t!="None"||typeof t=="number"&&!isNaN(t)?t.toString():"-"}};i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=Wt({name:"emptyTableField",type:i,pure:!0,standalone:!0});let n=i;return n})();var V=function(n){return n.ADD="add",n.EDIT="edit",n.VIEW="view",n}(V||{});var ft=(()=>{let i=class i{constructor(t){this.store=t,this.filenames$=this.store.select(nn),this.summarizedRecord$=this.store.select(rn)}dispatch(t){this.store.dispatch(t)}};i.\u0275fac=function(r){return new(r||i)(H(si))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var L=(()=>{let i=class i{get algorithmType(){return this._algorithmType.value}get algorithmType$(){return this._algorithmType.asObservable()}set algorithmType(t){this._recordsMap.set(this._algorithmType.value,this._records.value),this._algorithmType.next(t);let r=this._recordsMap.get(t)||[];this._records.next(r)}get records(){return this._records.value}get records$(){return this._records.asObservable()}addRecord(t){this.stopTooltips();let o=[...this._records.value,t];this._records.next(o),this._recordsMap.set(this._algorithmType.value,o)}updateRecord(t,r){this.stopTooltips();let o=this._records.value;if(t>=0&&t=0&&th!==t);this._records.next(o),this._recordsMap.set(this._algorithmType.value,o)}}stopTooltips(){this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1}constructor(t){this.chartToolsGlobalSignalsService=t,this._recordsMap=new Map,this._records=new xt([]),this._algorithmType=new xt(O.PRUNING)}};i.\u0275fac=function(r){return new(r||i)(H(Oe))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var cn=(()=>{let i=class i{get parentFormGroup(){return this.controlContainer.control}get chartFormGroup(){return this.parentFormGroup.get(this.controlKey)}get borderColorControl(){return this.chartFormGroup.get(this.CHART_BODER_COLOR_CONTROL_NAME)}get backgroundColorControl(){return this.chartFormGroup.get(this.CHART_BACKGROUND_COLOR_CONTROL_NAME)}constructor(t){this.controlContainer=t,this.controlKey="",this.CHART_BODER_COLOR_CONTROL_NAME="borderColor",this.CHART_BACKGROUND_COLOR_CONTROL_NAME="backgroundColor"}ngOnInit(){}};i.\u0275fac=function(r){return new(r||i)(f(Le))},i.\u0275cmp=T({type:i,selectors:[["ms-chart-colors-form-controls"]],inputs:{controlKey:"controlKey"},features:[be([],[{provide:Le,useFactory:()=>Yt(Le,{skipSelf:!0})}])],decls:15,vars:5,consts:[[3,"formGroupName"],[1,"form-field-container"],[1,"flex","items-center"],[1,"mr-2"],["ngx-colors-trigger","",3,"formControlName"]],template:function(r,o){r&1&&(x(0,0),l(1,"div",1)(2,"mat-label"),d(3,"Chart border color"),c(),l(4,"div",2)(5,"div",3),g(6,"ngx-colors",4),c(),d(7),c()(),l(8,"div",1)(9,"mat-label"),d(10,"Chart background color"),c(),l(11,"div",2)(12,"div",3),g(13,"ngx-colors",4),c(),d(14),c()(),w()),r&2&&(p("formGroupName",o.controlKey),s(6),p("formControlName",o.CHART_BODER_COLOR_CONTROL_NAME),s(),F(" ",o.borderColorControl==null?null:o.borderColorControl.value," "),s(6),p("formControlName",o.CHART_BACKGROUND_COLOR_CONTROL_NAME),s(),F(" ",o.backgroundColorControl==null?null:o.backgroundColorControl.value," "))},dependencies:[Ki,Lt,et,ce,De,Fe,fi]});let n=i;return n})();function qn(n,i){if(n&1&&(l(0,"mat-option",14),d(1),c()),n&2){let e=m();s(),F(" No algorithm was yet run. Please run a ",e.algorithmTypeLabel," algorithm. ")}}function Zn(n,i){if(n&1&&(l(0,"mat-option",16),d(1),c()),n&2){let e=i.$implicit;p("value",e.name)("disabled",e.disabled),s(),F(" ",e.name," ")}}function Jn(n,i){if(n&1&&(x(0),u(1,Zn,2,3,"mat-option",15),w()),n&2){let e=m();s(),p("ngForOf",e.files)}}function er(n,i){n&1&&(l(0,"div")(1,"div",17),g(2,"mat-spinner",18),c()())}function tr(n,i){if(n&1&&(x(0),d(1),b(2,"readableDuration"),w()),n&2){let e=m().$implicit;s(),A(E(2,1,e.value))}}function ir(n,i){if(n&1&&(x(0),d(1),w()),n&2){let e=m().$implicit;s(),A(e.value)}}function nr(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function rr(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),x(6,29),u(7,tr,3,3,"ng-container",30)(8,ir,2,1,"ng-container",31),w(),c()(),u(9,nr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",E(4,4,e.key),":"),s(3),p("ngSwitch",e.key),s(),p("ngSwitchCase","duration_seconds"),s(2),p("ngIf",!t)}}function or(n,i){if(n&1&&(x(0),u(1,rr,10,6,"div",24),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}function ar(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function sr(n,i){if(n&1&&(x(0),d(1),b(2,"adaptiveFileSize"),w()),n&2){let e=m().$implicit;s(),A(E(2,1,e.value))}}function lr(n,i){if(n&1&&(x(0),d(1),b(2,"date"),w()),n&2){let e=m().$implicit;s(),A(Jt(2,1,e.value,"medium"))}}function cr(n,i){if(n&1&&(x(0),d(1),b(2,"readableDuration"),w()),n&2){let e=m().$implicit;s(),A(E(2,1,e.value))}}function pr(n,i){if(n&1&&(x(0),d(1),w()),n&2){let e=m().$implicit;s(),A(e.value)}}function mr(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function dr(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),x(6,29),u(7,sr,3,3,"ng-container",30)(8,lr,3,4,"ng-container",30)(9,cr,3,3,"ng-container",30)(10,pr,2,1,"ng-container",31),w(),c()(),u(11,mr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",E(4,6,e.key),":"),s(3),p("ngSwitch",e.key),s(),p("ngSwitchCase","file_size_bytes"),s(),p("ngSwitchCase","creation_date"),s(),p("ngSwitchCase","training_duration_seconds"),s(2),p("ngIf",!t)}}function hr(n,i){if(n&1&&(x(0),u(1,dr,12,8,"div",24),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}function ur(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function gr(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function fr(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),d(6),c()(),u(7,gr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",E(4,3,e.key),":"),s(3),A(e.value),s(),p("ngIf",!t)}}function _r(n,i){if(n&1&&(x(0),u(1,fr,8,5,"div",24),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}function Cr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function vr(n,i){if(n&1&&(x(0),g(1,"ms-chart-colors-form-controls",35)(2,"ms-line-chart",36),w()),n&2){let e=m(3);s(2),p("data",e.lastRunAccuracyTestingChartData)("settings",e.testingAccuracyChartDisplaySettings)}}function xr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function wr(n,i){if(n&1){let e=S();x(0),g(1,"mat-divider"),l(2,"div",19)(3,"mat-label"),d(4,"Set run name"),c(),l(5,"mat-form-field",9),g(6,"input",20),c()(),l(7,"mat-accordion",21)(8,"mat-expansion-panel",22),le("expandedChange",function(r){C(e);let o=m(2);return se(o.panelStates.statistics,r)||(o.panelStates.statistics=r),v(r)}),l(9,"mat-expansion-panel-header")(10,"mat-panel-title",23),d(11," Statistics "),c()(),u(12,or,2,1,"ng-container",13),b(13,"keyvalue"),u(14,ar,2,0,"ng-template",null,2,Q),c(),l(16,"mat-expansion-panel",22),le("expandedChange",function(r){C(e);let o=m(2);return se(o.panelStates.modelTrainingDetails,r)||(o.panelStates.modelTrainingDetails=r),v(r)}),l(17,"mat-expansion-panel-header")(18,"mat-panel-title",23),d(19," Model training details "),c()(),u(20,hr,2,1,"ng-container",13),b(21,"keyvalue"),u(22,ur,2,0,"ng-template",null,3,Q),c(),l(24,"mat-expansion-panel",22),le("expandedChange",function(r){C(e);let o=m(2);return se(o.panelStates.parameters,r)||(o.panelStates.parameters=r),v(r)}),l(25,"mat-expansion-panel-header")(26,"mat-panel-title",23),d(27," Parameters "),c()(),u(28,_r,2,1,"ng-container",13),b(29,"keyvalue"),u(30,Cr,2,0,"ng-template",null,4,Q),c(),l(32,"mat-expansion-panel",22),le("expandedChange",function(r){C(e);let o=m(2);return se(o.panelStates.accuracy,r)||(o.panelStates.accuracy=r),v(r)}),l(33,"mat-expansion-panel-header")(34,"mat-panel-title",23),d(35," Last Accuracy Test Run "),c()(),u(36,vr,3,2,"ng-container",13),b(37,"keyvalue"),u(38,xr,2,0,"ng-template",null,5,Q),c()(),w()}if(n&2){let e=G(15),t=G(23),r=G(31),o=G(39),a=m(2);s(8),ae("expanded",a.panelStates.statistics),s(4),p("ngIf",E(13,12,a.summarizedRecord==null?null:a.summarizedRecord.statistics))("ngIfElse",e),s(4),ae("expanded",a.panelStates.modelTrainingDetails),s(4),p("ngIf",E(21,14,a.summarizedRecord==null?null:a.summarizedRecord.modelTrainingDetails))("ngIfElse",t),s(4),ae("expanded",a.panelStates.parameters),s(4),p("ngIf",E(29,16,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",r),s(4),ae("expanded",a.panelStates.accuracy),s(4),p("ngIf",E(37,18,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",o)}}function yr(n,i){if(n&1&&u(0,wr,40,20,"ng-container",13),n&2){let e=m(),t=G(14);p("ngIf",!!e.summarizedRecord)("ngIfElse",t)}}function br(n,i){n&1&&g(0,"ms-empty-state",37)}var Z,Ce=(Z=class{get chartFormGroup(){return this.form.get("chart")}get selectRunFormControl(){return this.form.get("selectRun")}get runNameFormControl(){return this.form.get("runName")}constructor(i,e,t,r,o,a){this.drawerRef=i,this.drawerConfig=e,this.fb=t,this.recordsFacadeService=r,this.recordsDataService=o,this.customAPILoadingService=a,this.panelStates={statistics:!0,parameters:!0,accuracy:!0,modelTrainingDetails:!0},this.form=new Ke({}),this.algorithmTypeLabel="",this.files=[],this.isSummarizedRecordLoading$=this.customAPILoadingService.getLoadingObservableForKey(Xi.RUN_RECORDS_SUMMARIZED_DATA),this.testingAccuracyChartDisplaySettings={},this.lastRunAccuracyTestingChartData=[]}ngAfterViewInit(){this.restorePanelStates()}ngOnInit(){switch(this.initForm(),this.initChartDisplaySettings(),this.listenToChartColorChanges(),this.algorithmTypeLabel=this.getAlgorithmTypeString(),this.drawerConfig.actionType){case V.ADD:{this.loadData(),this.configureAddTypeActions();break}case V.EDIT:case V.VIEW:{this.configureEditOrViewTypeActions();break}}}getAlgorithmTypeString(){switch(this.recordsDataService.algorithmType){case O.PRUNING:return"pruning";case O.QUANTIZATION:return"quantization";case O.MACHINE_UNLEARNING:return"machine unlearning";default:return"specified"}}initChartDisplaySettings(){let i=0;switch(this.recordsDataService.algorithmType){case O.PRUNING:{i=100;break}case O.QUANTIZATION:{i=79;break}case O.MACHINE_UNLEARNING:{i=36;break}default:break}this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisTickInterval:20,chartDataStructure:ct.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:i,yAxisMaximumValue:100,isXAxisVisible:!0,isXAxisDynamic:!0,areTooltipsEnabled:!0,xAxisInitialLabelValue:1,xAxisLabelPrefix:"Step:",datasetLabelPrefix:"Test:",isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:[{backgroundColor:"rgba(241, 196, 15, 0.2)",borderColor:"#f1c40f"}]}}}listenToChartColorChanges(){this.chartFormGroup.valueChanges.pipe(jt(300),N(this)).subscribe(i=>{if(Me(i))return;let{backgroundColor:e,borderColor:t}=i;this.testingAccuracyChartDisplaySettings=z(P({},this.testingAccuracyChartDisplaySettings),{customChartColors:{datasetColors:[{backgroundColor:e,borderColor:t}]}}),this.lastRunAccuracyTestingChartData=[...this.lastRunAccuracyTestingChartData]})}configureEditOrViewTypeActions(){let{recordName:i,recordFilename:e,record:t,chartColors:r}=this.drawerConfig.data;this.drawerConfig.actionType===V.VIEW?this.form.disable():this.drawerConfig.actionType===V.EDIT&&this.selectRunFormControl.disable(),this.files=[{name:e,disabled:!0}],this.form.patchValue({selectRun:e,runName:i,chart:{borderColor:r.borderColor,backgroundColor:r.backgroundColor}}),this.summarizedRecord=t,this.lastRunAccuracyTestingChartData=this.configureChartDataset(t),this.testingAccuracyChartDisplaySettings=z(P({},this.testingAccuracyChartDisplaySettings),{hasCustomDatasetsLabels:!0,customDatasetsLabels:[i],customChartColors:{datasetColors:[{backgroundColor:r.backgroundColor||"rgba(241, 196, 15, 0.2)",borderColor:r.borderColor||"#f1c40f"}]}})}configureAddTypeActions(){this.listenToSelectRunFormValueChanges(),this.listenToSummarizedRecordChanges()}listenToSelectRunFormValueChanges(){this.selectRunFormControl.valueChanges.pipe(N(this),Gt(i=>!nt(i))).subscribe(i=>{this.runNameFormControl.reset(),this.recordsFacadeService.dispatch(M.getRunRecordSummarizedData({algorithmType:this.recordsDataService.algorithmType,filename:i}))})}listenToSummarizedRecordChanges(){this.recordsFacadeService.summarizedRecord$.pipe(N(this),St(1)).subscribe(i=>{this.summarizedRecord=i,this.lastRunAccuracyTestingChartData=this.configureChartDataset(i);let e=this.summarizedRecord?.statistics.algorithm_key,t=this.summarizedRecord?.parameters.arch;!nt(e)&&!nt(t)&&this.runNameFormControl.setValue(`${e}_${t}`),this.savePanelStates(),this.restorePanelStates()})}configureChartDataset(i){return[{datasetIndex:0,values:i.lastRunTestingAccuracyData||[]}]}loadData(){this.recordsFacadeService.dispatch(M.getRunRecordsFilenames({algorithmType:this.recordsDataService.algorithmType})),this.recordsFacadeService.filenames$.pipe(St(1),xe(1)).subscribe(i=>{let e=new Set(this.recordsDataService.records.map(t=>t.recordFilename));this.files=i.map(t=>({name:t,disabled:e.has(t)}))})}initForm(){let i=this.getDefaultChartColors();this.form=this.fb.group({selectRun:[null,fe.required],runName:[null,fe.required],chart:this.fb.group({borderColor:[i.borderColor,fe.required],backgroundColor:[i.backgroundColor,fe.required]})})}getDefaultChartColors(){let i=Math.max(this.recordsDataService.records.length,0),e=Hi[lt.YELLOW].datasetColors[i];return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}}save(i){if(i!==de.SAVE)return;let{backgroundColor:e,borderColor:t}=this.form.get("chart")?.getRawValue();this.drawerRef.close({result:{recordName:this.runNameFormControl.value,recordFilename:this.selectRunFormControl.value,record:this.summarizedRecord,chartColors:{backgroundColor:e,borderColor:t}},status:i})}close(){this.drawerRef.close()}savePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]=i.expanded})}restorePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]!==void 0&&(i.expanded=this.panelStates[e])})}},Z.\u0275fac=function(e){return new(e||Z)(f(zi),f(Li),f(Je),f(ft),f(L),f(Yi))},Z.\u0275cmp=T({type:Z,selectors:[["ms-run-drawer-actions"]],viewQuery:function(e,t){if(e&1&&ne(me,5),e&2){let r;re(r=oe())&&(t.panels=r)}},decls:15,vars:8,consts:[["content",""],["noData",""],["noStatisticsData",""],["noModelTrainingDetailsData",""],["noParametersData",""],["noAccuracyData",""],[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["formControlName","selectRun","placeholder","Select a run record"],["disabled","",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["disabled",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],[1,"spinner-wrapper","mt-4"],["diameter","80"],[1,"form-field-container","mt-4"],["matInput","","formControlName","runName","placeholder","Set run name"],["multi",""],[3,"expandedChange","expanded"],[1,"paragraph-bold-p3-small-bold"],["class","key-value-container single",4,"ngFor","ngForOf"],[1,"key-value-container","single"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],[1,"no-data-container"],["controlKey","chart"],[3,"data","settings"],["title","Awaiting Run Record Selection","message","Select a run record from the dropdown to view details and statistics."]],template:function(e,t){if(e&1){let r=S();l(0,"ms-drawer",6),_("actionEvent",function(a){return C(r),v(t.save(a))}),l(1,"form",7)(2,"div",8)(3,"mat-label"),d(4,"Select run record"),c(),l(5,"mat-form-field",9)(6,"mat-select",10),u(7,qn,2,1,"mat-option",11)(8,Jn,2,1,"ng-container",12),c()()(),u(9,er,3,0,"div",13),b(10,"async"),u(11,yr,1,2,"ng-template",null,0,Q),c()(),u(13,br,1,0,"ng-template",null,1,Q)}if(e&2){let r=G(12);p("isSaveDisabled",t.form.invalid),s(),p("formGroup",t.form),s(6),p("ngIf",t.files.length===0),s(),p("ngIf",t.files.length>0),s(),p("ngIf",E(10,6,t.isSummarizedRecordLoading$))("ngIfElse",r)}},dependencies:[Y,K,ti,ii,ni,at,Qe,xi,tt,et,rt,Ue,yi,Si,me,Re,ke,qe,ui,ce,De,Ze,Fe,Ie,st,cn,Se,ri,oi,ji,pt,Gi],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),Z);Ce=ie([pe()],Ce);function Er(n,i){if(n&1){let e=S();l(0,"mat-card",3)(1,"div",4)(2,"div",5),d(3),c(),l(4,"div",6)(5,"button",7),_("click",function(){let r=C(e).$implicit,o=m(2);return v(o.viewRecord(r))}),g(6,"mat-icon",8),c(),l(7,"button",7),_("click",function(){let r=C(e),o=r.$implicit,a=r.index,h=m(2);return v(h.editRecord(a,o))}),g(8,"mat-icon",9),c(),l(9,"button",10),_("click",function(){let r=C(e).index,o=m(2);return v(o.removeRecord(r))}),l(10,"mat-icon",11),d(11,"delete"),c()()()()()}if(n&2){let e=i.$implicit;s(3),A(e.recordName)}}function Dr(n,i){if(n&1&&(x(0),u(1,Er,12,1,"mat-card",2),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}var hn=(()=>{let i=class i{constructor(t,r){this.recordsDataService=t,this.drawerService=r}removeRecord(t){this.recordsDataService.removeRecord(t)}viewRecord(t){this.drawerService.open(Ce,{title:"View Run",showSaveButton:!1,showCloseButton:!0,closeButtonLabel:"Close",actionType:V.VIEW,data:t})}editRecord(t,r){this.drawerService.open(Ce,{title:"Edit Run",saveButtonLabel:"Update",showCloseButton:!0,closeButtonLabel:"Close",actionType:V.EDIT,data:r}).afterClosed().pipe(xe(1)).subscribe(a=>{let{status:h}=a;if(h===de.DISMISS||h===de.CLOSE)return;let{result:y}=a;Me(y)||this.recordsDataService.updateRecord(t,y)})}};i.\u0275fac=function(r){return new(r||i)(f(L),f(Pe))},i.\u0275cmp=T({type:i,selectors:[["ms-algorithm-comparison-list"]],decls:3,vars:3,consts:[[1,"items-wrapper"],[4,"ngIf"],["class","ms-card comparison-item",4,"ngFor","ngForOf"],[1,"ms-card","comparison-item"],[1,"item-wrapper"],["msUseEllipsis",""],[1,"record-summary-buttons-wrapper"],["mat-icon-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Eye",1,"mat-primary"],["fontSet","ms","fontIcon","icon-PencilSimple",1,"mat-primary"],["mat-icon-button","","color","error",3,"click"],[1,"mat-error"]],template:function(r,o){r&1&&(l(0,"div",0),u(1,Dr,2,1,"ng-container",1),b(2,"async"),c()),r&2&&(s(),p("ngIf",E(2,1,o.recordsDataService.records$)))},dependencies:[Y,K,Ci,Te,bi,an,Se],styles:[".items-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px;padding:20px 0}.items-wrapper[_ngcontent-%COMP%] .ms-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 16px #0003}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%] .record-summary-buttons-wrapper[_ngcontent-%COMP%]{display:flex}"]});let n=i;return n})();var J,_t=(J=class{constructor(i,e){this.recordsDataService=i,this.chartToolsGlobalSignalsService=e,this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisMaximumValue:100,yAxisTickInterval:20,chartDataStructure:ct.SINGLE_PHASE_X_AXIS,datasetColorSettingsKey:lt.YELLOW,isXAxisVisible:!0,xAxisLabelPrefix:"Step:",zoomRangeLimits:{min:0,max:100},isXAxisDynamic:!0,hasCustomDatasetsLabels:!0},this.lastRunsAccuracyTestingChartData=[],this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToRecordsChanges(),this.subscribeToChartToolsSignals()}listenToRecordsChanges(){this.recordsDataService.records$.pipe(N(this)).subscribe(i=>{It(i)||(this.lastRunsAccuracyTestingChartData=this.configureChartDatasets(i),this.testingAccuracyChartDisplaySettings=z(P({},this.testingAccuracyChartDisplaySettings),{customDatasetsLabels:i.map(e=>e.recordName),xAxisDataPointsCount:i[0].record.lastRunTestingAccuracyData.length,isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:i.map(e=>e.chartColors)}}))})}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(N(this)).subscribe(i=>{this.enableTooltips=i}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(N(this)).subscribe(i=>{this.enableZoom=i})}configureChartDatasets(i){let e=[];return i.forEach((t,r)=>{let{record:o}=t;e.push({datasetIndex:r,values:o.lastRunTestingAccuracyData||[]})}),e}toggleTooltip(i){this.chartToolsGlobalSignalsService.toggleTooltips=i.checked}toggleZoom(i){this.chartToolsGlobalSignalsService.toggleZoom=i.checked}},J.\u0275fac=function(e){return new(e||J)(f(L),f(Oe))},J.\u0275cmp=T({type:J,selectors:[["ms-algorithm-comparison-chart"]],decls:14,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[3,"data","settings"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),d(3," Last Accuracy Test Run "),c()(),l(4,"div",2)(5,"div")(6,"mat-slide-toggle",3),le("ngModelChange",function(o){return se(t.enableTooltips,o)||(t.enableTooltips=o),o}),_("change",function(o){return t.toggleTooltip(o)}),d(7," Enable tooltips "),c()(),l(8,"div",4)(9,"mat-slide-toggle",5),le("ngModelChange",function(o){return se(t.enableZoom,o)||(t.enableZoom=o),o}),_("change",function(o){return t.toggleZoom(o)}),d(10," Enable zoom "),c(),l(11,"div",6),g(12,"mat-icon",7),c()()(),g(13,"ms-line-chart",8),c()),e&2&&(s(6),ae("ngModel",t.enableTooltips),s(3),ae("ngModel",t.enableZoom),s(4),p("data",t.lastRunsAccuracyTestingChartData)("settings",t.testingAccuracyChartDisplaySettings))},dependencies:[Te,Ae,Ei,me,Re,ke,ce,gi,Ie]}),J);_t=ie([pe()],_t);function Mr(n,i){n&1&&(l(0,"th",10),d(1,"Record Name"),c())}function Ar(n,i){if(n&1&&(l(0,"td",11),d(1),c()),n&2){let e=i.$implicit;s(),A(e.recordName)}}function Rr(n,i){if(n&1&&(l(0,"th",10),d(1),b(2,"parametersLabel"),c()),n&2){let e=m().$implicit;s(),F(" ",E(2,1,e)," ")}}function kr(n,i){if(n&1&&(l(0,"td",11),d(1),b(2,"emptyTableField"),c()),n&2){let e=i.$implicit,t=m().$implicit;s(),F(" ",E(2,1,e[t])," ")}}function Pr(n,i){if(n&1&&(x(0,12),u(1,Rr,3,3,"th",5)(2,kr,3,3,"td",6),w()),n&2){let e=i.$implicit;p("matColumnDef",e)}}function Or(n,i){n&1&&g(0,"tr",13)}function Ir(n,i){n&1&&g(0,"tr",14)}var ee,Ct=(ee=class{constructor(i){this.recordsDataService=i,this.dataSource=new Ni,this.displayedColumns=[]}ngOnInit(){this.recordsDataService.records$.pipe(N(this)).subscribe(i=>{this.updateDisplayedColumns(i),this.updateDataSource(i)})}ngAfterViewInit(){Me(this.sort)||setTimeout(()=>{this.dataSource.sort=this.sort},1200)}updateDisplayedColumns(i){let e=new Set;i.forEach(t=>{Object.keys(t.record.parameters).forEach(r=>{r!=="save_dir"&&r!=="data"&&e.add(r)})}),this.displayedColumns=["recordName",...Array.from(e)]}updateDataSource(i){let e=i.map(t=>{let r=t.record.parameters;return P({recordName:t.recordName},r)});this.dataSource.data=e}},ee.\u0275fac=function(e){return new(e||ee)(f(L))},ee.\u0275cmp=T({type:ee,selectors:[["ms-algorithm-comparison-table"]],viewQuery:function(e,t){if(e&1&&ne(ot,5),e&2){let r;re(r=oe())&&(t.sort=r.first)}},decls:12,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"table-container"],["mat-table","","matSort","",1,"mat-table",3,"dataSource"],["matColumnDef","recordName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","hover-highlight",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"hover-highlight"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),d(3," Parameters "),c()(),l(4,"div",2)(5,"table",3),x(6,4),u(7,Mr,2,0,"th",5)(8,Ar,2,1,"td",6),w(),u(9,Pr,3,1,"ng-container",7)(10,Or,1,0,"tr",8)(11,Ir,1,0,"tr",9),c()()()),e&2&&(s(5),p("dataSource",t.dataSource),s(4),p("ngForOf",t.displayedColumns.slice(1)),s(),p("matHeaderRowDef",t.displayedColumns),s(),p("matRowDefColumns",t.displayedColumns))},dependencies:[Y,Fi,Mi,Pi,Ai,Ti,Oi,Ri,ki,Ii,Bi,ot,Di,me,Re,ke,pt,sn],styles:[".table-container[_ngcontent-%COMP%]{overflow:auto}.hover-highlight[_ngcontent-%COMP%]:hover{background-color:var(--backgrounds-80)}.mat-column-disable_8bit_head_stem[_ngcontent-%COMP%]{min-width:200px}.mat-column-workers[_ngcontent-%COMP%], .mat-column-n_bits_w[_ngcontent-%COMP%], .mat-column-channel_wise[_ngcontent-%COMP%], .mat-column-n_bits_a[_ngcontent-%COMP%]{min-width:160px}.mat-column-act_quant[_ngcontent-%COMP%]{min-width:180px}.mat-column-num_samples[_ngcontent-%COMP%], .mat-column-iters_w[_ngcontent-%COMP%]{min-width:160px}.mat-column-keep_cpu[_ngcontent-%COMP%], .mat-column-awq[_ngcontent-%COMP%]{min-width:180px}.mat-column-aaq[_ngcontent-%COMP%], .mat-column-init_wmode[_ngcontent-%COMP%], .mat-column-init_amode[_ngcontent-%COMP%]{min-width:200px}.mat-column-num_indexes_to_replace[_ngcontent-%COMP%]{min-width:185px}.mat-column-unlearn_lr[_ngcontent-%COMP%], .mat-column-alpha[_ngcontent-%COMP%], .mat-column-unlearn_epochs[_ngcontent-%COMP%], .mat-column-train_seed[_ngcontent-%COMP%], .mat-column-class_to_replace[_ngcontent-%COMP%], .mat-column-indexes_to_replace[_ngcontent-%COMP%], .mat-column-no_aug[_ngcontent-%COMP%]{min-width:200px}.mat-column-imagenet_arch[_ngcontent-%COMP%]{min-width:220px}.mat-column-num_workers[_ngcontent-%COMP%]{min-width:180px}"]}),ee);Ct=ie([pe()],Ct);function Nr(n,i){if(n&1&&(l(0,"mat-option",13),d(1),c()),n&2){let e=i.$implicit;p("value",e.key),s(),F(" ",e.value," ")}}function Vr(n,i){n&1&&(x(0),g(1,"ms-algorithm-comparison-list"),l(2,"div",8),g(3,"mat-divider"),c(),g(4,"ms-algorithm-comparison-table"),l(5,"div",8),g(6,"mat-divider"),c(),g(7,"ms-algorithm-comparison-chart"),w())}function Lr(n,i){n&1&&(l(0,"div",14),g(1,"ms-empty-state",15),c())}var te,vt=(te=class{get algorithmTypeFormControl(){return this.form.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(i,e,t){this.drawerService=i,this.recordsDataService=e,this.fb=t,this.form=new Ke({}),this.algorithmTypesOptions=[{key:O.QUANTIZATION,value:"Quantization"},{key:O.PRUNING,value:"Pruning"},{key:O.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}openAddRunDrawer(){this.drawerService.open(Ce,{title:"Add Run",saveButtonLabel:"Add",showCloseButton:!0,closeButtonLabel:"Close",actionType:V.ADD}).afterClosed().pipe(xe(1)).subscribe(e=>{let{status:t}=e;if(t===de.DISMISS||t===de.CLOSE)return;let{result:r}=e;this.recordsDataService.addRecord(r)})}ngOnInit(){this.initForm(),this.listenToAlgorithmTypeChanges()}initForm(){this.form=this.fb.group({[this.ALGORITHM_TYPE_CONTROL_NAME]:[this.recordsDataService.algorithmType,fe.required]})}listenToAlgorithmTypeChanges(){this.algorithmTypeFormControl.valueChanges.pipe(N(this)).subscribe(i=>{this.recordsDataService.algorithmType=i})}trackByAlgorithmType(i,e){return e.key}},te.\u0275fac=function(e){return new(e||te)(f(Pe),f(L),f(Je))},te.\u0275cmp=T({type:te,selectors:[["ms-algorithm-comparison"]],decls:19,vars:8,consts:[["noData",""],[1,"title-wrapper"],[1,"heading-primary-title","title"],[1,"ml-2",3,"formGroup"],[1,"form-field-container","w-56","mt-2"],["appearance","outline"],["placeholder","Select a run record",3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-4","mb-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Plus"],[1,"mt-4"],[4,"ngIf","ngIfElse"],[3,"value"],[1,"no-data-wrapper"],["title","No data selected"]],template:function(e,t){if(e&1){let r=S();l(0,"div",1)(1,"p",2),d(2,"Algorithm Comparison for"),c(),l(3,"form",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-select",6),u(7,Nr,2,2,"mat-option",7),c()()()()(),l(8,"div",8),g(9,"mat-divider"),c(),l(10,"button",9),_("click",function(){return C(r),v(t.openAddRunDrawer())}),g(11,"mat-icon",10),d(12,` Add run -`),c(),l(13,"div",11),g(14,"mat-divider"),c(),u(15,Vr,8,0,"ng-container",12),b(16,"async"),u(17,Lr,2,0,"ng-template",null,0,Q)}if(e&2){let r=G(18);s(3),p("formGroup",t.form),s(3),p("formControlName",t.ALGORITHM_TYPE_CONTROL_NAME),s(),p("ngForOf",t.algorithmTypesOptions)("ngForTrackBy",t.trackByAlgorithmType),s(8),p("ngIf",E(16,6,t.recordsDataService.records$).length>0)("ngIfElse",r)}},dependencies:[Y,K,Qe,_i,Te,tt,rt,Ue,qe,ce,De,Ze,Fe,st,hn,_t,Ct,Se],styles:[".no-data-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),te);vt=ie([pe()],vt);var zr=[{path:"",component:vt}],un=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ye({type:i}),i.\u0275inj=we({imports:[At.forChild(zr),At]});let n=i;return n})();var Ns=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ye({type:i}),i.\u0275inj=we({providers:[Pe,ft,L,Oe],imports:[We,un,at,qi,Vi,ci.forFeature("runRecords",on),di.forFeature([Zi]),Ie]});let n=i;return n})();export{Ns as AlgorithmComparisonModule}; diff --git a/frontend/server/modelsmith-build/browser/index.html b/frontend/server/modelsmith-build/browser/index.html index 920086f2..5fcb53a6 100644 --- a/frontend/server/modelsmith-build/browser/index.html +++ b/frontend/server/modelsmith-build/browser/index.html @@ -31,5 +31,5 @@ - + diff --git a/frontend/server/modelsmith-build/browser/main-BE5YSFHG.js b/frontend/server/modelsmith-build/browser/main-KFZMMLI5.js similarity index 98% rename from frontend/server/modelsmith-build/browser/main-BE5YSFHG.js rename to frontend/server/modelsmith-build/browser/main-KFZMMLI5.js index ae890d34..49f39e54 100644 --- a/frontend/server/modelsmith-build/browser/main-BE5YSFHG.js +++ b/frontend/server/modelsmith-build/browser/main-KFZMMLI5.js @@ -1 +1 @@ -import{c as os}from"./chunk-WJXIN2IO.js";import{a as ns}from"./chunk-7XUVQUZC.js";import{a as ge}from"./chunk-MM4TEEVS.js";import{a as B,b as re,c as ss}from"./chunk-U7NPFWER.js";import{a as Ie,c as Gi,d as Hi,e as Wi,f as Zi,g as te,h as Xi,i as dt,j as Yi,k as Ji,l as es,n as ts,o as rs,q as is}from"./chunk-VMZY47C3.js";import{$b as Ne,A as ci,B as ui,Be as Vi,Cb as Xt,Cd as je,Db as tt,E as fi,Eb as Ii,F as hi,Fb as Ri,G as di,Gb as Di,Gc as xi,Hb as Yt,I as U,Ib as Fi,J as Xe,Jb as ki,Jc as w,Kc as le,L as pi,Lb as rt,M as O,Md as ft,Nb as it,Nc as ji,Nd as ht,O as R,Ob as L,Oc as er,P as ne,Pb as ae,Q as xe,Qb as X,R as T,Rb as me,S as mi,Sb as Y,T as gi,Tb as st,Tc as Pe,Td as Qi,U as oe,Uc as tr,Vc as lt,Wb as Li,X as yi,Xb as Ce,Zb as Jt,_b as x,a as _,ac as nt,b as C,ba as Si,bb as Je,bc as ot,c as Jr,cc as at,cd as ce,d as Pn,da as Ei,db as _i,e as In,ed as ue,fd as ct,g as Gt,ga as Wt,gd as $i,hd as zi,id as Ui,j as ei,k as ti,l as ri,m as ii,ma as Ti,n as si,o as K,oa as Ye,p as ni,pb as bi,qb as wi,r as oi,rb as Ai,rd as Ki,s as z,sb as Zt,tb as Mi,ub as Oi,ud as ut,v as Ht,vb as Ci,vd as Bi,w as Oe,wb as Ni,x as Q,xb as et,xd as qi,y as ai,ya as vi,yb as Pi,z as li}from"./chunk-XZNUB5IR.js";var bn=Pn((Lf,_n)=>{"use strict";var Ra=function(e){return Da(e)&&!Fa(e)};function Da(i){return!!i&&typeof i=="object"}function Fa(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||xa(i)}var ka=typeof Symbol=="function"&&Symbol.for,La=ka?Symbol.for("react.element"):60103;function xa(i){return i.$$typeof===La}function ja(i){return Array.isArray(i)?[]:{}}function We(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Le(ja(i),i,e):i}function $a(i,e,t){return i.concat(e).map(function(r){return We(r,t)})}function za(i,e){if(!e.customMerge)return Le;var t=e.customMerge(i);return typeof t=="function"?t:Le}function Ua(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function Tn(i){return Object.keys(i).concat(Ua(i))}function vn(i,e){try{return e in i}catch{return!1}}function Ka(i,e){return vn(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function Ba(i,e,t){var r={};return t.isMergeableObject(i)&&Tn(i).forEach(function(s){r[s]=We(i[s],t)}),Tn(e).forEach(function(s){Ka(i,s)||(vn(i,s)&&t.isMergeableObject(e[s])?r[s]=za(s,t)(i[s],e[s],t):r[s]=We(e[s],t))}),r}function Le(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||$a,t.isMergeableObject=t.isMergeableObject||Ra,t.cloneUnlessOtherwiseSpecified=We;var r=Array.isArray(e),s=Array.isArray(i),n=r===s;return n?r?t.arrayMerge(i,e,t):Ba(i,e,t):We(e,t)}Le.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,s){return Le(r,s,t)},{})};var qa=Le;_n.exports=qa});var ze="PERFORM_ACTION",Rn="REFRESH",hs="RESET",ds="ROLLBACK",ps="COMMIT",ms="SWEEP",gs="TOGGLE_ACTION",Dn="SET_ACTIONS_ACTIVE",ys="JUMP_TO_STATE",Ss="JUMP_TO_ACTION",pr="IMPORT_STATE",Es="LOCK_CHANGES",Ts="PAUSE_RECORDING",Re=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=ze,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},rr=class{constructor(){this.type=Rn}},ir=class{constructor(e){this.timestamp=e,this.type=hs}},sr=class{constructor(e){this.timestamp=e,this.type=ds}},nr=class{constructor(e){this.timestamp=e,this.type=ps}},or=class{constructor(){this.type=ms}},ar=class{constructor(e){this.id=e,this.type=gs}};var lr=class{constructor(e){this.index=e,this.type=ys}},cr=class{constructor(e){this.actionId=e,this.type=Ss}},ur=class{constructor(e){this.nextLiftedState=e,this.type=pr}},fr=class{constructor(e){this.status=e,this.type=Es}},hr=class{constructor(e){this.status=e,this.type=Ts}};var yt=new xe("@ngrx/store-devtools Options"),as=new xe("@ngrx/store-devtools Initial Config");function vs(){return null}var Fn="NgRx Store DevTools";function kn(i){let e={maxAge:!1,monitor:vs,actionSanitizer:void 0,stateSanitizer:void 0,name:Fn,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof i=="function"?i():i,r=t.logOnly?{pause:!0,export:!0,test:!0}:!1,s=t.features||r||e.features;s.import===!0&&(s.import="custom");let n=Object.assign({},e,{features:s},t);if(n.maxAge&&n.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${n.maxAge}`);return n}function ls(i,e){return i.filter(t=>e.indexOf(t)<0)}function _s(i){let{computedStates:e,currentStateIndex:t}=i;if(t>=e.length){let{state:s}=e[e.length-1];return s}let{state:r}=e[t];return r}function $e(i){return new Re(i,+Date.now())}function Ln(i,e){return Object.keys(e).reduce((t,r)=>{let s=Number(r);return t[s]=bs(i,e[s],s),t},{})}function bs(i,e,t){return C(_({},e),{action:i(e.action,t)})}function xn(i,e){return e.map((t,r)=>({state:ws(i,t.state,r),error:t.error}))}function ws(i,e,t){return i(e,t)}function As(i){return i.predicate||i.actionsSafelist||i.actionsBlocklist}function jn(i,e,t,r){let s=[],n={},o=[];return i.stagedActionIds.forEach((a,l)=>{let c=i.actionsById[a];c&&(l&&mr(i.computedStates[l],c,e,t,r)||(n[a]=c,s.push(a),o.push(i.computedStates[l])))}),C(_({},i),{stagedActionIds:s,actionsById:n,computedStates:o})}function mr(i,e,t,r,s){let n=t&&!t(i,e.action),o=r&&!e.action.type.match(r.map(l=>cs(l)).join("|")),a=s&&e.action.type.match(s.map(l=>cs(l)).join("|"));return n||o||a}function cs(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ms(i){return{ngZone:i?mi(Ye):null,connectInZone:i}}var St=(()=>{let e=class e extends tt{};e.\u0275fac=(()=>{let r;return function(n){return(r||(r=Si(e)))(n||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),pt={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},dr=new xe("@ngrx/store-devtools Redux Devtools Extension"),Os=(()=>{let e=class e{constructor(r,s,n){this.config=s,this.dispatcher=n,this.zoneConfig=Ms(this.config.connectInZone),this.devtoolsExtension=r,this.createActionStreams()}notify(r,s){if(this.devtoolsExtension)if(r.type===ze){if(s.isLocked||s.isPaused)return;let n=_s(s);if(As(this.config)&&mr(n,r,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?ws(this.config.stateSanitizer,n,s.currentStateIndex):n,a=this.config.actionSanitizer?bs(this.config.actionSanitizer,r,s.nextActionId):r;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let n=C(_({},s),{stagedActionIds:s.stagedActionIds,actionsById:this.config.actionSanitizer?Ln(this.config.actionSanitizer,s.actionsById):s.actionsById,computedStates:this.config.stateSanitizer?xn(this.config.stateSanitizer,s.computedStates):s.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,n,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Gt(r=>{let s=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=s,s.init(),s.subscribe(n=>r.next(n)),s.unsubscribe}):ri}createActionStreams(){let r=this.createChangesObservable().pipe(hi()),s=r.pipe(Oe(f=>f.type===pt.START)),n=r.pipe(Oe(f=>f.type===pt.STOP)),o=r.pipe(Oe(f=>f.type===pt.DISPATCH),z(f=>this.unwrapAction(f.payload)),ai(f=>f.type===pr?this.dispatcher.pipe(Oe(u=>u.type===Yt),oi(1e3),li(1e3),z(()=>f),Q(()=>K(f)),ci(1)):K(f))),l=r.pipe(Oe(f=>f.type===pt.ACTION),z(f=>this.unwrapAction(f.payload))).pipe(Xe(n)),c=o.pipe(Xe(n));this.start$=s.pipe(Xe(n)),this.actions$=this.start$.pipe(U(()=>l)),this.liftedActions$=this.start$.pipe(U(()=>c))}unwrapAction(r){return typeof r=="string"?(0,eval)(`(${r})`):r}getExtensionConfig(r){let s={name:r.name,features:r.features,serialize:r.serialize,autoPause:r.autoPause??!1,trace:r.trace??!1,traceLimit:r.traceLimit??75};return r.maxAge!==!1&&(s.maxAge=r.maxAge),s}sendToReduxDevtools(r){try{r()}catch(s){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",s)}}};e.\u0275fac=function(s){return new(s||e)(T(dr),T(yt),T(St))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),gt={type:Xt},$n="@ngrx/store-devtools/recompute",zn={type:$n};function Cs(i,e,t,r,s){if(r)return{state:t,error:"Interrupted by an error up the chain"};let n=t,o;try{n=i(t,e)}catch(a){o=a.toString(),s.handleError(a)}return{state:n,error:o}}function mt(i,e,t,r,s,n,o,a,l){if(e>=i.length&&i.length===n.length)return i;let c=i.slice(0,e),f=n.length-(l?1:0);for(let u=e;u-1?h:Cs(t,g,d,b,a);c.push(N)}return l&&c.push(i[i.length-1]),c}function Un(i,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:$e(gt)},stagedActionIds:[0],skippedActionIds:[],committedState:i,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Kn(i,e,t,r,s={}){return n=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:f,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:h,computedStates:d,isLocked:b,isPaused:A}=o||e;o||(c=Object.create(c));function N(P){let v=P,D=u.slice(1,v+1);for(let I=0;ID.indexOf(I)===-1),u=[0,...u.slice(v+1)],g=d[v].state,d=d.slice(v),h=h>v?h-v:0}function k(){c={0:$e(gt)},f=1,u=[0],p=[],g=d[h].state,h=0,d=[]}let E=0;switch(a.type){case Es:{b=a.status,E=1/0;break}case Ts:{A=a.status,A?(u=[...u,f],c[f]=new Re({type:"@ngrx/devtools/pause"},+Date.now()),f++,E=u.length-1,d=d.concat(d[d.length-1]),h===u.length-2&&h++,E=1/0):k();break}case hs:{c={0:$e(gt)},f=1,u=[0],p=[],g=i,h=0,d=[];break}case ps:{k();break}case ds:{c={0:$e(gt)},f=1,u=[0],p=[],h=0,d=[];break}case gs:{let{id:P}=a;p.indexOf(P)===-1?p=[P,...p]:p=p.filter(D=>D!==P),E=u.indexOf(P);break}case Dn:{let{start:P,end:v,active:D}=a,I=[];for(let ee=P;ees.maxAge&&(d=mt(d,E,n,g,c,u,p,t,A),N(u.length-s.maxAge),E=1/0);break}case Yt:{if(d.filter(v=>v.error).length>0)E=0,s.maxAge&&u.length>s.maxAge&&(d=mt(d,E,n,g,c,u,p,t,A),N(u.length-s.maxAge),E=1/0);else{if(!A&&!b){h===u.length-1&&h++;let v=f++;c[v]=new Re(a,+Date.now()),u=[...u,v],E=u.length-1,d=mt(d,E,n,g,c,u,p,t,A)}d=d.map(v=>C(_({},v),{state:n(v.state,zn)})),h=u.length-1,s.maxAge&&u.length>s.maxAge&&N(u.length-s.maxAge),E=1/0}break}default:{E=1/0;break}}return d=mt(d,E,n,g,c,u,p,t,A),l=r(l,a),{monitorState:l,actionsById:c,nextActionId:f,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:h,computedStates:d,isLocked:b,isPaused:A}}}var us=(()=>{let e=class e{constructor(r,s,n,o,a,l,c,f){let u=Un(c,f.monitor),p=Kn(c,u,l,f.monitor,f),g=Ht(Ht(s.asObservable().pipe(di(1)),o.actions$).pipe(z($e)),r,o.liftedActions$).pipe(si(ti)),h=n.pipe(z(p)),d=Ms(f.connectInZone),b=new ei(1);this.liftedStateSubscription=g.pipe(pi(h),fs(d),fi(({state:k},[E,P])=>{let v=P(k,E);return E.type!==ze&&As(f)&&(v=jn(v,f.predicate,f.actionsSafelist,f.actionsBlocklist)),o.notify(E,v),{state:v,action:E}},{state:u,action:null})).subscribe(({state:k,action:E})=>{if(b.next(k),E.type===ze){let P=E.action;a.next(P)}}),this.extensionStartSubscription=o.start$.pipe(fs(d)).subscribe(()=>{this.refresh()});let A=b.asObservable(),N=A.pipe(z(_s));Object.defineProperty(N,"state",{value:Pi(N,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=r,this.liftedState=A,this.state=N}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(r){this.dispatcher.next(r)}next(r){this.dispatcher.next(r)}error(r){}complete(){}performAction(r){this.dispatch(new Re(r,+Date.now()))}refresh(){this.dispatch(new rr)}reset(){this.dispatch(new ir(+Date.now()))}rollback(){this.dispatch(new sr(+Date.now()))}commit(){this.dispatch(new nr(+Date.now()))}sweep(){this.dispatch(new or)}toggleAction(r){this.dispatch(new ar(r))}jumpToAction(r){this.dispatch(new cr(r))}jumpToState(r){this.dispatch(new lr(r))}importState(r){this.dispatch(new ur(r))}lockChanges(r){this.dispatch(new fr(r))}pauseRecording(r){this.dispatch(new hr(r))}};e.\u0275fac=function(s){return new(s||e)(T(St),T(tt),T(Ri),T(Os),T(Fi),T(Ei),T(Ii),T(yt))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();function fs({ngZone:i,connectInZone:e}){return t=>e?new Gt(r=>t.subscribe({next:s=>i.run(()=>r.next(s)),error:s=>i.run(()=>r.error(s)),complete:()=>i.run(()=>r.complete())})):t}var Bn=new xe("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function qn(i,e){return!!i||e.monitor!==vs}function Qn(){let i="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[i]<"u"?window[i]:null}function Vn(i={}){return yi([Os,St,us,{provide:as,useValue:i},{provide:Bn,deps:[dr,yt],useFactory:qn},{provide:dr,useFactory:Qn},{provide:yt,deps:[as],useFactory:kn},{provide:ki,deps:[us],useFactory:Gn},{provide:Di,useExisting:St}])}function Gn(i){return i.state}var Ns=(()=>{let e=class e{static instrument(r={}){return{ngModule:e,providers:[Vn(r)]}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({});let i=e;return i})();var j={CORE:{ROOT:"core"},SCRIPT:{ROOT:"script"},AUTH:{ROOT:"auth",USER:{ROOT:"user",JWT:"jwt"}},MODEL_COMPRESSION:{ROOT:"model-compression",PARAMETERS:{ROOT:"parameters"}},CONFIGS:{ROOT:"configs",DEFAULT_MODE:"defaultMode"}};var ye=class{static setItem(e,t){localStorage.setItem(e,JSON.stringify(t))}static getItem(e){let t=localStorage.getItem(e);return t?JSON.parse(t):null}static getNestedItem(e,t){let r=this.getItem(e);return r?this.getNestedProperty(r,t):null}static removeItem(e){localStorage.removeItem(e)}static clear(){localStorage.clear()}static getNestedProperty(e,t){if(!t)return e;let r=t.split(".");for(let s=0;s{let e=class e{constructor(r){this.router=r}canActivate(){return ye.getNestedItem(j.CORE.ROOT,`${j.AUTH.ROOT}.${j.AUTH.USER.ROOT}.${j.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${x.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(s){return new(s||e)(T(Ce))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Et=(()=>{let e=class e{constructor(r,s){this.router=r,this.configFacadeService=s}canActivate(){let r=ye.getNestedItem(j.CORE.ROOT,`${j.CONFIGS.ROOT}.${j.CONFIGS.DEFAULT_MODE}`);return r&&(r===nt.GUIDED?(this.router.navigate([`/${x.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Ne.setCurrentMode({mode:nt.GUIDED}))):(this.router.navigate([`/${x.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Ne.setCurrentMode({mode:nt.EXPERT})))),!0}};e.\u0275fac=function(s){return new(s||e)(T(Ce),T(at))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Tt=(()=>{let e=class e{constructor(r){this.router=r}canActivate(){return ye.getNestedItem(j.CORE.ROOT,`${j.AUTH.ROOT}.${j.AUTH.USER.ROOT}.${j.AUTH.USER.JWT}`)?(this.router.navigate([`/${x.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(s){return new(s||e)(T(Ce))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Hn=[{path:x.AUTH.ROOT,loadChildren:()=>import("./chunk-J5WMTUHK.js").then(i=>i.AuthModule),canActivate:[Tt]},{path:x.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-M7GSOCTW.js").then(i=>i.ModeSelectModule),canActivate:[Ue,Et]},{path:x.DEMO.ROOT,loadChildren:()=>import("./chunk-MZAOZ4KT.js").then(i=>i.DemoModule)},{path:"",pathMatch:"full",redirectTo:x.AUTH.ROOT},{path:"",component:Qi,canActivate:[Ue],children:[{path:"",redirectTo:x.WIZARD.ROOT,pathMatch:"full"},{path:x.WIZARD.ROOT,loadChildren:()=>import("./chunk-HANPZG6C.js").then(i=>i.WizardModule)},{path:x.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-5Z5NA6W3.js").then(i=>i.ModelCompressionModule)},{path:x.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-YYZOFFYE.js").then(i=>i.MachineUnlearningModule)},{path:x.AWQ.ROOT,loadChildren:()=>import("./chunk-BF3VVV5I.js").then(i=>i.LlmQuantizationModule)},{path:x.RUNNING.ROOT,loadChildren:()=>import("./chunk-DBMLRUGV.js").then(i=>i.RunningModule)},{path:x.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-HEQJYFWP.js").then(i=>i.ModelTrainingModule)},{path:x.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-ZRPP46UQ.js").then(i=>i.AlgorithmComparisonModule)},{path:x.MODEL_SPECIALIZATION.ROOT,loadChildren:()=>import("./chunk-IPWIVMWL.js").then(i=>i.ModelSpecializationModule)}]}],Ps=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({imports:[Jt.forRoot(Hn),Jt]});let i=e;return i})();var he,vt=(he=class{constructor(){this.title="modelsmith"}ngOnInit(){}},he.\u0275fac=function(t){return new(t||he)},he.\u0275cmp=gi({type:he,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){t&1&&vi(0,"router-outlet")},dependencies:[Li]}),he);vt=ii([Ki()],vt);function Is(i){return new O(3e3,!1)}function Wn(){return new O(3100,!1)}function Zn(){return new O(3101,!1)}function Xn(i){return new O(3001,!1)}function Yn(i){return new O(3003,!1)}function Jn(i){return new O(3004,!1)}function eo(i,e){return new O(3005,!1)}function to(){return new O(3006,!1)}function ro(){return new O(3007,!1)}function io(i,e){return new O(3008,!1)}function so(i){return new O(3002,!1)}function no(i,e,t,r,s){return new O(3010,!1)}function oo(){return new O(3011,!1)}function ao(){return new O(3012,!1)}function lo(){return new O(3200,!1)}function co(){return new O(3202,!1)}function uo(){return new O(3013,!1)}function fo(i){return new O(3014,!1)}function ho(i){return new O(3015,!1)}function po(i){return new O(3016,!1)}function mo(i,e){return new O(3404,!1)}function go(i){return new O(3502,!1)}function yo(i){return new O(3503,!1)}function So(){return new O(3300,!1)}function Eo(i){return new O(3504,!1)}function To(i){return new O(3301,!1)}function vo(i,e){return new O(3302,!1)}function _o(i){return new O(3303,!1)}function bo(i,e){return new O(3400,!1)}function wo(i){return new O(3401,!1)}function Ao(i){return new O(3402,!1)}function Mo(i,e){return new O(3505,!1)}function Se(i){switch(i.length){case 0:return new Pe;case 1:return i[0];default:return new tr(i)}}function Qs(i,e,t=new Map,r=new Map){let s=[],n=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),f=c==o,u=f&&a||new Map;l.forEach((p,g)=>{let h=g,d=p;if(g!=="offset")switch(h=i.normalizePropertyName(h,s),d){case lt:d=t.get(g);break;case le:d=r.get(g);break;default:d=i.normalizeStyleValue(g,h,d,s);break}u.set(h,d)}),f||n.push(u),a=u,o=c}),s.length)throw go(s);return n}function $r(i,e,t,r){switch(e){case"start":i.onStart(()=>r(t&&yr(t,"start",i)));break;case"done":i.onDone(()=>r(t&&yr(t,"done",i)));break;case"destroy":i.onDestroy(()=>r(t&&yr(t,"destroy",i)));break}}function yr(i,e,t){let r=t.totalTime,s=!!t.disabled,n=zr(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,r??i.totalTime,s),o=i._data;return o!=null&&(n._data=o),n}function zr(i,e,t,r,s="",n=0,o){return{element:i,triggerName:e,fromState:t,toState:r,phaseName:s,totalTime:n,disabled:!!o}}function W(i,e,t){let r=i.get(e);return r||i.set(e,r=t),r}function Rs(i){let e=i.indexOf(":"),t=i.substring(1,e),r=i.slice(e+1);return[t,r]}var Oo=typeof document>"u"?null:document.documentElement;function Ur(i){let e=i.parentNode||i.host||null;return e===Oo?null:e}function Co(i){return i.substring(1,6)=="ebkit"}var ve=null,Ds=!1;function No(i){ve||(ve=Po()||{},Ds=ve.style?"WebkitAppearance"in ve.style:!1);let e=!0;return ve.style&&!Co(i)&&(e=i in ve.style,!e&&Ds&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in ve.style)),e}function Po(){return typeof document<"u"?document.body:null}function Vs(i,e){for(;e;){if(e===i)return!0;e=Ur(e)}return!1}function Gs(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let r=i.querySelector(e);return r?[r]:[]}var Kr=(()=>{let e=class e{validateStyleProperty(r){return No(r)}containsElement(r,s){return Vs(r,s)}getParentElement(r){return Ur(r)}query(r,s,n){return Gs(r,s,n)}computeStyle(r,s,n){return n||""}animate(r,s,n,o,a,l=[],c){return new Pe(n,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),Vr=class Vr{};Vr.NOOP=new Kr;var we=Vr,Ae=class{};var Io=1e3,Hs="{{",Ro="}}",Ws="ng-enter",br="ng-leave",_t="ng-trigger",Ot=".ng-trigger",Fs="ng-animating",wr=".ng-animating";function de(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ar(parseFloat(e[1]),e[2])}function Ar(i,e){switch(e){case"s":return i*Io;default:return i}}function Ct(i,e,t){return i.hasOwnProperty("duration")?i:Do(i,e,t)}function Do(i,e,t){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,n=0,o="";if(typeof i=="string"){let a=i.match(r);if(a===null)return e.push(Is(i)),{duration:0,delay:0,easing:""};s=Ar(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(n=Ar(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(Wn()),a=!0),n<0&&(e.push(Zn()),a=!0),a&&e.splice(l,0,Is(i))}return{duration:s,delay:n,easing:o}}function Fo(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function fe(i,e,t){e.forEach((r,s)=>{let n=Br(s);t&&!t.has(s)&&t.set(s,i.style[n]),i.style[n]=r})}function be(i,e){e.forEach((t,r)=>{let s=Br(r);i.style[s]=""})}function Ke(i){return Array.isArray(i)?i.length==1?i[0]:ji(i):i}function ko(i,e,t){let r=e.params||{},s=Zs(i);s.length&&s.forEach(n=>{r.hasOwnProperty(n)||t.push(Xn(n))})}var Mr=new RegExp(`${Hs}\\s*(.+?)\\s*${Ro}`,"g");function Zs(i){let e=[];if(typeof i=="string"){let t;for(;t=Mr.exec(i);)e.push(t[1]);Mr.lastIndex=0}return e}function qe(i,e,t){let r=`${i}`,s=r.replace(Mr,(n,o)=>{let a=e[o];return a==null&&(t.push(Yn(o)),a=""),a.toString()});return s==r?i:s}var Lo=/-+([a-z0-9])/g;function Br(i){return i.replace(Lo,(...e)=>e[1].toUpperCase())}function xo(i,e){return i===0||e===0}function jo(i,e,t){if(t.size&&e.length){let r=e[0],s=[];if(t.forEach((n,o)=>{r.has(o)||s.push(o),r.set(o,n)}),s.length)for(let n=1;no.set(a,qr(i,a)))}}return e}function H(i,e,t){switch(e.type){case w.Trigger:return i.visitTrigger(e,t);case w.State:return i.visitState(e,t);case w.Transition:return i.visitTransition(e,t);case w.Sequence:return i.visitSequence(e,t);case w.Group:return i.visitGroup(e,t);case w.Animate:return i.visitAnimate(e,t);case w.Keyframes:return i.visitKeyframes(e,t);case w.Style:return i.visitStyle(e,t);case w.Reference:return i.visitReference(e,t);case w.AnimateChild:return i.visitAnimateChild(e,t);case w.AnimateRef:return i.visitAnimateRef(e,t);case w.Query:return i.visitQuery(e,t);case w.Stagger:return i.visitStagger(e,t);default:throw Jn(e.type)}}function qr(i,e){return window.getComputedStyle(i)[e]}var $o=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"]),Nt=class extends Ae{normalizePropertyName(e,t){return Br(e)}normalizeStyleValue(e,t,r,s){let n="",o=r.toString().trim();if($o.has(t)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(eo(e,r))}return o+n}};var Pt="*";function zo(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(r=>Uo(r,t,e)):t.push(i),t}function Uo(i,e,t){if(i[0]==":"){let l=Ko(i,t);if(typeof l=="function"){e.push(l);return}i=l}let r=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return t.push(ho(i)),e;let s=r[1],n=r[2],o=r[3];e.push(ks(s,o));let a=s==Pt&&o==Pt;n[0]=="<"&&!a&&e.push(ks(o,s))}function Ko(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}var bt=new Set(["true","1"]),wt=new Set(["false","0"]);function ks(i,e){let t=bt.has(i)||wt.has(i),r=bt.has(e)||wt.has(e);return(s,n)=>{let o=i==Pt||i==s,a=e==Pt||e==n;return!o&&t&&typeof s=="boolean"&&(o=s?bt.has(i):wt.has(i)),!a&&r&&typeof n=="boolean"&&(a=n?bt.has(e):wt.has(e)),o&&a}}var Xs=":self",Bo=new RegExp(`s*${Xs}s*,?`,"g");function Ys(i,e,t,r){return new Or(i).build(e,t,r)}var Ls="",Or=class{constructor(e){this._driver=e}build(e,t,r){let s=new Cr(t);return this._resetContextStyleTimingState(s),H(this,Ke(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ls,e.collectedStyles=new Map,e.collectedStyles.set(Ls,new Map),e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,s=t.depCount=0,n=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(to()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==w.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,n.push(this.visitState(l,t))}),l.name=c}else if(a.type==w.Transition){let l=this.visitTransition(a,t);r+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(ro())}),{type:w.Trigger,name:e.name,states:n,transitions:o,queryCount:r,depCount:s,options:null}}visitState(e,t){let r=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(r.containsDynamicStyles){let n=new Set,o=s||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Zs(l).forEach(c=>{o.hasOwnProperty(c)||n.add(c)})})}),n.size&&t.errors.push(io(e.name,[...n.values()]))}return{type:w.State,name:e.name,style:r,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let r=H(this,Ke(e.animation),t),s=zo(e.expr,t.errors);return{type:w.Transition,matchers:s,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:_e(e.options)}}visitSequence(e,t){return{type:w.Sequence,steps:e.steps.map(r=>H(this,r,t)),options:_e(e.options)}}visitGroup(e,t){let r=t.currentTime,s=0,n=e.steps.map(o=>{t.currentTime=r;let a=H(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:w.Group,steps:n,options:_e(e.options)}}visitAnimate(e,t){let r=Go(e.timings,t.errors);t.currentAnimateTimings=r;let s,n=e.styles?e.styles:er({});if(n.type==w.Keyframes)s=this.visitKeyframes(n,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};r.easing&&(c.easing=r.easing),o=er(c)}t.currentTime+=r.duration+r.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:w.Animate,timings:r,style:s,options:null}}visitStyle(e,t){let r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){let r=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===le?r.push(a):t.errors.push(so(a)):r.push(new Map(Object.entries(a)));let n=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!n)){for(let l of a.values())if(l.toString().indexOf(Hs)>=0){n=!0;break}}}),{type:w.Style,styles:r,easing:o,offset:e.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(e,t){let r=t.currentAnimateTimings,s=t.currentTime,n=t.currentTime;r&&n>0&&(n-=r.duration+r.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),f=c.get(l),u=!0;f&&(n!=s&&n>=f.startTime&&s<=f.endTime&&(t.errors.push(no(l,f.startTime,f.endTime,n,s)),u=!1),n=f.startTime),u&&c.set(l,{startTime:n,endTime:s}),t.options&&ko(a,t.options,t.errors)})})}visitKeyframes(e,t){let r={type:w.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(oo()),r;let s=1,n=0,o=[],a=!1,l=!1,c=0,f=e.steps.map(A=>{let N=this._makeStyleAst(A,t),k=N.offset!=null?N.offset:Vo(N.styles),E=0;return k!=null&&(n++,E=N.offset=k),l=l||E<0||E>1,a=a||E0&&n{let k=p>0?N==g?1:p*N:o[N],E=k*b;t.currentTime=h+d.delay+E,d.duration=E,this._validateStyleAst(A,t),A.offset=k,r.styles.push(A)}),r}visitReference(e,t){return{type:w.Reference,animation:H(this,Ke(e.animation),t),options:_e(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:w.AnimateChild,options:_e(e.options)}}visitAnimateRef(e,t){return{type:w.AnimateRef,animation:this.visitReference(e.animation,t),options:_e(e.options)}}visitQuery(e,t){let r=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[n,o]=qo(e.selector);t.currentQuerySelector=r.length?r+" "+n:n,W(t.collectedStyles,t.currentQuerySelector,new Map);let a=H(this,Ke(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:w.Query,selector:n,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:_e(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(uo());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ct(e.timings,t.errors,!0);return{type:w.Stagger,animation:H(this,Ke(e.animation),t),timings:r,options:null}}};function qo(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Xs);return e&&(i=i.replace(Bo,"")),i=i.replace(/@\*/g,Ot).replace(/@\w+/g,t=>Ot+"-"+t.slice(1)).replace(/:animating/g,wr),[i,e]}function Qo(i){return i?_({},i):null}var Cr=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Vo(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let r=t;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Go(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let n=Ct(i,e).duration;return Sr(n,0,"")}let t=i;if(t.split(/\s+/).some(n=>n.charAt(0)=="{"&&n.charAt(1)=="{")){let n=Sr(0,0,"");return n.dynamic=!0,n.strValue=t,n}let s=Ct(t,e);return Sr(s.duration,s.delay,s.easing)}function _e(i){return i?(i=_({},i),i.params&&(i.params=Qo(i.params))):i={},i}function Sr(i,e,t){return{duration:i,delay:e,easing:t}}function Qr(i,e,t,r,s,n,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:r,duration:s,delay:n,totalTime:s+n,easing:o,subTimeline:a}}var Qe=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ho=1,Wo=":enter",Zo=new RegExp(Wo,"g"),Xo=":leave",Yo=new RegExp(Xo,"g");function Js(i,e,t,r,s,n=new Map,o=new Map,a,l,c=[]){return new Nr().buildKeyframes(i,e,t,r,s,n,o,a,l,c)}var Nr=class{buildKeyframes(e,t,r,s,n,o,a,l,c,f=[]){c=c||new Qe;let u=new Pr(e,t,c,s,n,f,[]);u.options=l;let p=l.delay?de(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),H(this,r,u);let g=u.timelines.filter(h=>h.containsAnimation());if(g.length&&a.size){let h;for(let d=g.length-1;d>=0;d--){let b=g[d];if(b.element===t){h=b;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,u.errors,l)}return g.length?g.map(h=>h.buildKeyframes()):[Qr(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let r=t.subInstructions.get(t.element);if(r){let s=t.createSubContext(e.options),n=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,s,s.options);n!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,r),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,r){for(let s of e){let n=s?.delay;if(n){let o=typeof n=="number"?n:de(qe(n,s?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(e,t,r){let n=t.currentTimeline.currentTime,o=r.duration!=null?de(r.duration):null,a=r.delay!=null?de(r.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);n=Math.max(n,c.duration+c.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),H(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let r=t.subContextCount,s=t,n=e.options;if(n&&(n.params||n.delay)&&(s=t.createSubContext(n),s.transformIntoNewTimeline(),n.delay!=null)){s.previousNode.type==w.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=It);let o=de(n.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>H(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let r=[],s=t.currentTimeline.currentTime,n=e.options&&e.options.delay?de(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);n&&a.delayNextStep(n),H(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let r=e.strValue,s=t.params?qe(r,t.params,t.errors):r;return Ct(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let r=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());let n=e.style;n.type==w.Keyframes?this.visitKeyframes(n,t):(t.incrementTime(r.duration),this.visitStyle(n,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.hasCurrentStyleProperties()&&r.forwardFrame();let n=s&&s.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(n):r.setStyles(e.styles,n,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let r=t.currentAnimateTimings,s=t.currentTimeline.duration,n=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*n),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+n),t.previousNode=e}visitQuery(e,t){let r=t.currentTimeline.currentTime,s=e.options||{},n=s.delay?de(s.delay):0;n&&(t.previousNode.type===w.Style||r==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=It);let o=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,f)=>{t.currentQueryIndex=f;let u=t.createSubContext(e.options,c);n&&u.delayNextStep(n),c===t.element&&(l=u.currentTimeline),H(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;o=Math.max(o,p)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let r=t.parentContext,s=t.currentTimeline,n=e.timings,o=Math.abs(n.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(n.duration<0?"reverse":n.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let f=t.currentTimeline;l&&f.delayNextStep(l);let u=f.currentTime;H(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=s.currentTime-u+(s.startTime-r.currentTimeline.startTime)}},It={},Pr=class i{constructor(e,t,r,s,n,o,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=n,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=It,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Rt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let r=e,s=this.options;r.duration!=null&&(s.duration=de(r.duration)),r.delay!=null&&(s.delay=de(r.delay));let n=r.params;if(n){let o=s.params;o||(o=this.options.params={}),Object.keys(n).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=qe(n[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let r=e.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return e}createSubContext(e=null,t,r){let s=t||this.element,n=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return n.previousNode=this.previousNode,n.currentAnimateTimings=this.currentAnimateTimings,n.options=this._copyOptions(),n.updateOptions(e),n.currentQueryIndex=this.currentQueryIndex,n.currentQueryTotal=this.currentQueryTotal,n.parentContext=this,this.subContextCount++,n}transformIntoNewTimeline(e){return this.previousNode=It,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},n=new Ir(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(n),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,s,n,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(Zo,"."+this._enterClassName),e=e.replace(Yo,"."+this._leaveClassName);let l=r!=1,c=this._driver.query(this.element,e,l);r!==0&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!n&&a.length==0&&o.push(fo(t)),a}},Rt=class i{constructor(e,t,r,s){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ho,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||le),this._currentKeyframe.set(t,le);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,s){t&&this._previousKeyframe.set("easing",t);let n=s&&s.params||{},o=Jo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=qe(l,n,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??le),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,r)=>{let s=this._styleSummary.get(r);(!s||t.time>s.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,r=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((f,u)=>{f===lt?e.add(u):f===le&&t.add(u)}),r||c.set("offset",l/this.duration),s.push(c)});let n=[...e.values()],o=[...t.values()];if(r){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return Qr(this.element,s,n,o,this.duration,this.startTime,this.easing,!1)}},Ir=class extends Rt{constructor(e,t,r,s,n,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=n,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let n=[],o=r+t,a=t/o,l=new Map(e[0]);l.set("offset",0),n.push(l);let c=new Map(e[0]);c.set("offset",xs(a)),n.push(c);let f=e.length-1;for(let u=1;u<=f;u++){let p=new Map(e[u]),g=p.get("offset"),h=t+g*r;p.set("offset",xs(h/o)),n.push(p)}r=o,t=0,s="",e=n}return Qr(this.element,e,this.preStyleProps,this.postStyleProps,r,t,s,!0)}};function xs(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Jo(i,e){let t=new Map,r;return i.forEach(s=>{if(s==="*"){r??=e.keys();for(let n of r)t.set(n,le)}else for(let[n,o]of s)t.set(n,o)}),t}function js(i,e,t,r,s,n,o,a,l,c,f,u,p){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:n,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:f,totalTime:u,errors:p}}var Er={},Dt=class{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,s){return ea(this.ast.matchers,e,t,r,s)}buildStyles(e,t,r){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,r):new Map}build(e,t,r,s,n,o,a,l,c,f){let u=[],p=this.ast.options&&this.ast.options.params||Er,g=a&&a.params||Er,h=this.buildStyles(r,g,u),d=l&&l.params||Er,b=this.buildStyles(s,d,u),A=new Set,N=new Map,k=new Map,E=s==="void",P={params:en(d,p),delay:this.ast.options?.delay},v=f?[]:Js(e,t,this.ast.animation,n,o,h,b,P,c,u),D=0;return v.forEach(I=>{D=Math.max(I.duration+I.delay,D)}),u.length?js(t,this._triggerName,r,s,E,h,b,[],[],N,k,D,u):(v.forEach(I=>{let ee=I.element,Me=W(N,ee,new Set);I.preStyleProps.forEach(Ee=>Me.add(Ee));let Wr=W(k,ee,new Set);I.postStyleProps.forEach(Ee=>Wr.add(Ee)),ee!==t&&A.add(ee)}),js(t,this._triggerName,r,s,E,h,b,v,[...A.values()],N,k,D))}};function ea(i,e,t,r,s){return i.some(n=>n(e,t,r,s))}function en(i,e){let t=_({},e);return Object.entries(i).forEach(([r,s])=>{s!=null&&(t[r]=s)}),t}var Rr=class{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){let r=new Map,s=en(e,this.defaultParams);return this.styles.styles.forEach(n=>{typeof n!="string"&&n.forEach((o,a)=>{o&&(o=qe(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),r.set(a,o)})}),r}};function ta(i,e,t){return new Dr(i,e,t)}var Dr=class{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let n=s.options&&s.options.params||{};this.states.set(s.name,new Rr(s.style,n,r))}),$s(this.states,"true","1"),$s(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Dt(e,s,this.states))}),this.fallbackTransition=ra(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,s){return this.transitionFactories.find(o=>o.match(e,t,r,s))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}};function ra(i,e,t){let r=[(o,a)=>!0],s={type:w.Sequence,steps:[],options:null},n={type:w.Transition,animation:s,matchers:r,options:null,queryCount:0,depCount:0};return new Dt(i,n,e)}function $s(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var ia=new Qe,Fr=class{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let r=[],s=[],n=Ys(this._driver,t,r,s);if(r.length)throw yo(r);s.length&&void 0,this._animations.set(e,n)}_buildPlayer(e,t,r){let s=e.element,n=Qs(this._normalizer,e.keyframes,t,r);return this._driver.animate(s,n,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){let s=[],n=this._animations.get(e),o,a=new Map;if(n?(o=Js(this._driver,t,n,Ws,br,new Map,new Map,r,ia,s),o.forEach(f=>{let u=W(a,f.element,new Map);f.postStyleProps.forEach(p=>u.set(p,null))})):(s.push(So()),o=[]),s.length)throw Eo(s);a.forEach((f,u)=>{f.forEach((p,g)=>{f.set(g,this._driver.computeStyle(u,g,le))})});let l=o.map(f=>{let u=a.get(f.element);return this._buildPlayer(f,new Map,u)}),c=Se(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw To(e);return t}listen(e,t,r,s){let n=zr(t,"","","");return $r(this._getPlayer(e),r,n,s),()=>{}}command(e,t,r,s){if(r=="register"){this.register(e,s[0]);return}if(r=="create"){let o=s[0]||{};this.create(e,t,o);return}let n=this._getPlayer(e);switch(r){case"play":n.play();break;case"pause":n.pause();break;case"reset":n.reset();break;case"restart":n.restart();break;case"finish":n.finish();break;case"init":n.init();break;case"setPosition":n.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},zs="ng-animate-queued",sa=".ng-animate-queued",Tr="ng-animate-disabled",na=".ng-animate-disabled",oa="ng-star-inserted",aa=".ng-star-inserted",la=[],tn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ca={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ie="__ng_removed",Ve=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let r=e&&e.hasOwnProperty("value"),s=r?e.value:e;if(this.value=fa(s),r){let n=e,{value:o}=n,a=Jr(n,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let r=this.options.params;Object.keys(t).forEach(s=>{r[s]==null&&(r[s]=t[s])})}}},Be="void",vr=new Ve(Be),kr=class{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,J(t,this._hostClassName)}listen(e,t,r,s){if(!this._triggers.has(t))throw vo(r,t);if(r==null||r.length==0)throw _o(t);if(!ha(r))throw bo(r,t);let n=W(this._elementListeners,e,[]),o={name:t,phase:r,callback:s};n.push(o);let a=W(this._engine.statesByElement,e,new Map);return a.has(t)||(J(e,_t),J(e,_t+"-"+t),a.set(t,vr)),()=>{this._engine.afterFlush(()=>{let l=n.indexOf(o);l>=0&&n.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw wo(e);return t}trigger(e,t,r,s=!0){let n=this._getTrigger(t),o=new Ge(this.id,t,e),a=this._engine.statesByElement.get(e);a||(J(e,_t),J(e,_t+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ve(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vr),!(c.value===Be)&&l.value===c.value){if(!ma(l.params,c.params)){let d=[],b=n.matchStyles(l.value,l.params,d),A=n.matchStyles(c.value,c.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(()=>{be(e,b),fe(e,A)})}return}let p=W(this._engine.playersByElement,e,[]);p.forEach(d=>{d.namespaceId==this.id&&d.triggerName==t&&d.queued&&d.destroy()});let g=n.matchTransition(l.value,c.value,e,c.params),h=!1;if(!g){if(!s)return;g=n.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(J(e,zs),o.onStart(()=>{De(e,zs)})),o.onDone(()=>{let d=this.players.indexOf(o);d>=0&&this.players.splice(d,1);let b=this._engine.playersByElement.get(e);if(b){let A=b.indexOf(o);A>=0&&b.splice(A,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let r=this._engine.driver.query(e,Ot,!0);r.forEach(s=>{if(s[ie])return;let n=this._engine.fetchNamespacesByElement(s);n.size?n.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,r,s){let n=this._engine.statesByElement.get(e),o=new Map;if(n){let a=[];if(n.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let f=this.trigger(e,c,Be,s);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),r&&Se(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){let s=new Set;t.forEach(n=>{let o=n.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=r.get(o)||vr,f=new Ve(Be),u=new Ge(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:f,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(r.totalAnimations){let n=r.players.length?r.playersByQueriedElement.get(e):[];if(n&&n.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)r.markElementAsRemoved(this.id,e,!1,t);else{let n=e[ie];(!n||n===tn)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){J(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(r=>{let s=r.player;if(s.destroyed)return;let n=r.element,o=this._elementListeners.get(n);o&&o.forEach(a=>{if(a.name==r.triggerName){let l=zr(n,r.triggerName,r.fromState.value,r.toState.value);l._data=e,$r(r.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{let n=r.transition.ast.depCount,o=s.transition.ast.depCount;return n==0||o==0?n-o:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Lr=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,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=(s,n)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){let r=new kr(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){let r=this._namespaceList,s=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=r.indexOf(l);r.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(e)}else r.push(e);return s.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let s=this._namespaceLookup[e];s&&s.register(t,r)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1),r.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,r=this.statesByElement.get(e);if(r){for(let s of r.values())if(s.namespaceId){let n=this._fetchNamespace(s.namespaceId);n&&t.add(n)}}return t}trigger(e,t,r,s){if(At(t)){let n=this._fetchNamespace(e);if(n)return n.trigger(t,r,s),!0}return!1}insertNode(e,t,r,s){if(!At(t))return;let n=t[ie];if(n&&n.setForRemoval){n.setForRemoval=!1,n.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),J(e,Tr)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),De(e,Tr))}removeNode(e,t,r){if(At(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r);let n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,r,s,n){this.collectedLeaveElements.push(t),t[ie]={namespaceId:e,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:n}}listen(e,t,r,s,n){return At(t)?this._fetchNamespace(e).listen(t,r,s,n):()=>{}}_buildInstruction(e,t,r,s,n){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,s,e.fromState.options,e.toState.options,t,n)}destroyInnerAnimations(e){let t=this.driver.query(e,Ot,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,wr,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Se(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ie];if(t&&t.setForRemoval){if(e[ie]=tn,t.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Tr)&&this.markElementAsDisabled(e,!1),this.driver.query(e,na,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],t.length?Se(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(e){throw Ao(e)}_flushAnimations(e,t){let r=new Qe,s=[],n=new Map,o=[],a=new Map,l=new Map,c=new Map,f=new Set;this.disabledNodes.forEach(m=>{f.add(m);let y=this.driver.query(m,sa,!0);for(let S=0;S{let S=Ws+d++;h.set(y,S),m.forEach(M=>J(M,S))});let b=[],A=new Set,N=new Set;for(let m=0;mA.add(M)):N.add(y))}let k=new Map,E=Bs(p,Array.from(A));E.forEach((m,y)=>{let S=br+d++;k.set(y,S),m.forEach(M=>J(M,S))}),e.push(()=>{g.forEach((m,y)=>{let S=h.get(y);m.forEach(M=>De(M,S))}),E.forEach((m,y)=>{let S=k.get(y);m.forEach(M=>De(M,S))}),b.forEach(m=>{this.processLeaveNode(m)})});let P=[],v=[];for(let m=this._namespaceList.length-1;m>=0;m--)this._namespaceList[m].drainQueuedTransitions(t).forEach(S=>{let M=S.player,$=S.element;if(P.push(M),this.collectedEnterElements.length){let q=$[ie];if(q&&q.setForMove){if(q.previousTriggersValues&&q.previousTriggersValues.has(S.triggerName)){let Te=q.previousTriggersValues.get(S.triggerName),Z=this.statesByElement.get(S.element);if(Z&&Z.has(S.triggerName)){let Ze=Z.get(S.triggerName);Ze.value=Te,Z.set(S.triggerName,Ze)}}M.destroy();return}}let se=!u||!this.driver.containsElement(u,$),G=k.get($),pe=h.get($),F=this._buildInstruction(S,r,pe,G,se);if(F.errors&&F.errors.length){v.push(F);return}if(se){M.onStart(()=>be($,F.fromStyles)),M.onDestroy(()=>fe($,F.toStyles)),s.push(M);return}if(S.isFallbackTransition){M.onStart(()=>be($,F.fromStyles)),M.onDestroy(()=>fe($,F.toStyles)),s.push(M);return}let Yr=[];F.timelines.forEach(q=>{q.stretchStartingKeyframe=!0,this.disabledNodes.has(q.element)||Yr.push(q)}),F.timelines=Yr,r.append($,F.timelines);let Nn={instruction:F,player:M,element:$};o.push(Nn),F.queriedElements.forEach(q=>W(a,q,[]).push(M)),F.preStyleProps.forEach((q,Te)=>{if(q.size){let Z=l.get(Te);Z||l.set(Te,Z=new Set),q.forEach((Ze,Vt)=>Z.add(Vt))}}),F.postStyleProps.forEach((q,Te)=>{let Z=c.get(Te);Z||c.set(Te,Z=new Set),q.forEach((Ze,Vt)=>Z.add(Vt))})});if(v.length){let m=[];v.forEach(y=>{m.push(Mo(y.triggerName,y.errors))}),P.forEach(y=>y.destroy()),this.reportError(m)}let D=new Map,I=new Map;o.forEach(m=>{let y=m.element;r.has(y)&&(I.set(y,y),this._beforeAnimationBuild(m.player.namespaceId,m.instruction,D))}),s.forEach(m=>{let y=m.element;this._getPreviousPlayers(y,!1,m.namespaceId,m.triggerName,null).forEach(M=>{W(D,y,[]).push(M),M.destroy()})});let ee=b.filter(m=>qs(m,l,c)),Me=new Map;Ks(Me,this.driver,N,c,le).forEach(m=>{qs(m,l,c)&&ee.push(m)});let Ee=new Map;g.forEach((m,y)=>{Ks(Ee,this.driver,new Set(m),l,lt)}),ee.forEach(m=>{let y=Me.get(m),S=Ee.get(m);Me.set(m,new Map([...y?.entries()??[],...S?.entries()??[]]))});let Qt=[],Zr=[],Xr={};o.forEach(m=>{let{element:y,player:S,instruction:M}=m;if(r.has(y)){if(f.has(y)){S.onDestroy(()=>fe(y,M.toStyles)),S.disabled=!0,S.overrideTotalTime(M.totalTime),s.push(S);return}let $=Xr;if(I.size>1){let G=y,pe=[];for(;G=G.parentNode;){let F=I.get(G);if(F){$=F;break}pe.push(G)}pe.forEach(F=>I.set(F,$))}let se=this._buildAnimation(S.namespaceId,M,D,n,Ee,Me);if(S.setRealPlayer(se),$===Xr)Qt.push(S);else{let G=this.playersByElement.get($);G&&G.length&&(S.parentPlayer=Se(G)),s.push(S)}}else be(y,M.fromStyles),S.onDestroy(()=>fe(y,M.toStyles)),Zr.push(S),f.has(y)&&s.push(S)}),Zr.forEach(m=>{let y=n.get(m.element);if(y&&y.length){let S=Se(y);m.setRealPlayer(S)}}),s.forEach(m=>{m.parentPlayer?m.syncPlayerEvents(m.parentPlayer):m.destroy()});for(let m=0;m!se.destroyed);$.length?da(this,y,$):this.processLeaveNode(y)}return b.length=0,Qt.forEach(m=>{this.players.push(m),m.onDone(()=>{m.destroy();let y=this.players.indexOf(m);this.players.splice(y,1)}),m.play()}),Qt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,s,n){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!n||n==Be;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(r||s)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){let s=t.triggerName,n=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,f=c!==n,u=W(r,c,[]);this._getPreviousPlayers(c,f,o,a,t.toState).forEach(g=>{let h=g.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),g.destroy(),u.push(g)})}be(n,t.fromStyles)}_buildAnimation(e,t,r,s,n,o){let a=t.triggerName,l=t.element,c=[],f=new Set,u=new Set,p=t.timelines.map(h=>{let d=h.element;f.add(d);let b=d[ie];if(b&&b.removedBeforeQueried)return new Pe(h.duration,h.delay);let A=d!==l,N=pa((r.get(d)||la).map(D=>D.getRealPlayer())).filter(D=>{let I=D;return I.element?I.element===d:!1}),k=n.get(d),E=o.get(d),P=Qs(this._normalizer,h.keyframes,k,E),v=this._buildPlayer(h,P,N);if(h.subTimeline&&s&&u.add(d),A){let D=new Ge(e,a,d);D.setRealPlayer(v),c.push(D)}return v});c.forEach(h=>{W(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>ua(this.playersByQueriedElement,h.element,h))}),f.forEach(h=>J(h,Fs));let g=Se(p);return g.onDestroy(()=>{f.forEach(h=>De(h,Fs)),fe(l,t.toStyles)}),u.forEach(h=>{W(s,h,[]).push(g)}),g}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new Pe(e.duration,e.delay)}},Ge=class{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new Pe,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,r)=>{t.forEach(s=>$r(e,r,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){W(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ua(i,e,t){let r=i.get(e);if(r){if(r.length){let s=r.indexOf(t);r.splice(s,1)}r.length==0&&i.delete(e)}return r}function fa(i){return i??null}function At(i){return i&&i.nodeType===1}function ha(i){return i=="start"||i=="done"}function Us(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Ks(i,e,t,r,s){let n=[];t.forEach(l=>n.push(Us(l)));let o=[];r.forEach((l,c)=>{let f=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,s);f.set(u,p),(!p||p.length==0)&&(c[ie]=ca,o.push(c))}),i.set(c,f)});let a=0;return t.forEach(l=>Us(l,n[a++])),o}function Bs(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let r=1,s=new Set(e),n=new Map;function o(a){if(!a)return r;let l=n.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=r:l=o(c),n.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==r&&t.get(l).push(a)}),t}function J(i,e){i.classList?.add(e)}function De(i,e){i.classList?.remove(e)}function da(i,e,t){Se(t).onDone(()=>i.processLeaveNode(e))}function pa(i){let e=[];return rn(i,e),e}function rn(i,e){for(let t=0;ts.add(n)):e.set(i,r),t.delete(i),!0}var ke=class{constructor(e,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,n)=>{},this._transitionEngine=new Lr(e.body,t,r),this._timelineEngine=new Fr(e.body,t,r),this._transitionEngine.onRemovalComplete=(s,n)=>this.onRemovalComplete(s,n)}registerTrigger(e,t,r,s,n){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],f=Ys(this._driver,n,l,c);if(l.length)throw mo(s,l);c.length&&void 0,a=ta(s,f,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,s){this._transitionEngine.insertNode(e,t,r,s)}onRemove(e,t,r){this._transitionEngine.removeNode(e,t,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,s){if(r.charAt(0)=="@"){let[n,o]=Rs(r),a=s;this._timelineEngine.command(n,t,o,a)}else this._transitionEngine.trigger(e,t,r,s)}listen(e,t,r,s,n){if(r.charAt(0)=="@"){let[o,a]=Rs(r);return this._timelineEngine.listen(o,t,a,n)}return this._transitionEngine.listen(e,t,r,s,n)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ga(i,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=_r(e[0]),e.length>1&&(r=_r(e[e.length-1]))):e instanceof Map&&(t=_r(e)),t||r?new xr(i,t,r):null}var Fe=class Fe{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let s=Fe.initialStylesByElement.get(e);s||Fe.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&fe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fe(this._element,this._initialStyles),this._endStyles&&(fe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Fe.initialStylesByElement.delete(this._element),this._startStyles&&(be(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(be(this._element,this._endStyles),this._endStyles=null),fe(this._element,this._initialStyles),this._state=3)}};Fe.initialStylesByElement=new WeakMap;var xr=Fe;function _r(i){let e=null;return i.forEach((t,r)=>{ya(r)&&(e=e||new Map,e.set(r,t))}),e}function ya(i){return i==="display"||i==="position"}var Ft=class{constructor(e,t,r,s){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=s,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(e,t,r){return e.animate(this._convertKeyframesToObject(t),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,s)=>{s!=="offset"&&e.set(s,this._finished?r:qr(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}},kt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Vs(e,t)}getParentElement(e){return Ur(e)}query(e,t,r){return Gs(e,t,r)}computeStyle(e,t,r){return qr(e,t)}animate(e,t,r,s,n,o=[]){let a=s==0?"both":"forwards",l={duration:r,delay:s,fill:a};n&&(l.easing=n);let c=new Map,f=o.filter(g=>g instanceof Ft);xo(r,s)&&f.forEach(g=>{g.currentSnapshot.forEach((h,d)=>c.set(d,h))});let u=Fo(t).map(g=>new Map(g));u=jo(e,u,c);let p=ga(e,u);return new Ft(e,u,l,p)}};var Mt="@",sn="@.disabled",Lt=class{constructor(e,t,r,s){this.namespaceId=e,this.delegate=t,this.engine=r,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,s=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,s){this.delegate.setAttribute(e,t,r,s)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,s){this.delegate.setStyle(e,t,r,s)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){t.charAt(0)==Mt&&t==sn?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},jr=class extends Lt{constructor(e,t,r,s,n){super(t,r,s,n),this.factory=e,this.namespaceId=t}setProperty(e,t,r){t.charAt(0)==Mt?t.charAt(1)=="."&&t==sn?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,t.slice(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if(t.charAt(0)==Mt){let s=Sa(e),n=t.slice(1),o="";return n.charAt(0)!=Mt&&([n,o]=Ea(n)),this.engine.listen(this.namespaceId,s,n,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,r,a)})}return this.delegate.listen(e,t,r)}};function Sa(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Ea(i){let e=i.indexOf("."),t=i.substring(0,e),r=i.slice(e+1);return[t,r]}var xt=class{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,n)=>{let o=n?.parentNode(s);o&&n.removeChild(o,s)}}createRenderer(e,t){let r="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,f=c.get(s);if(!f){let u=()=>c.delete(s);f=new Lt(r,s,this.engine,u),c.set(s,f)}return f}let n=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(n,o,e,c.name,c)};return t.data.animation.forEach(a),new jr(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){if(e>=0&&et(r));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(n=>{let[o,a]=n;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var va=(()=>{let e=class e extends ke{constructor(r,s,n){super(r,s,n)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(T(_i),T(we),T(Ae))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();function _a(){return new Nt}function ba(i,e,t){return new xt(i,e,t)}var on=[{provide:Ae,useFactory:_a},{provide:ke,useClass:va},{provide:Ti,useFactory:ba,deps:[Ci,ke,Ye]}],nn=[{provide:we,useFactory:()=>new kt},{provide:Wt,useValue:"BrowserAnimations"},...on],wa=[{provide:we,useClass:Kr},{provide:Wt,useValue:"NoopAnimations"},...on],an=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:r.disableAnimations?wa:nn}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({providers:nn,imports:[et]});let i=e;return i})();var jt=class{constructor(e){this.httpClient=e}get httpHeaders(){return new wi}getRequestOptions(e){let t=e.getParams||void 0;return{headers:this.httpHeaders,params:t}}serviceCall(e){return Je()&&console.log(`serviceCall@Client - ${e.getMethod} - ${e.getUrl}`),K(e).pipe(U(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(ui(t.getMockDelay));switch(t.getMethod){case"GET":return this.httpClient.get(t.getUrl,this.getRequestOptions(t));case"POST":return this.httpClient.post(t.getUrl,t.getBody,this.getRequestOptions(t));case"PUT":return this.httpClient.put(t.getUrl,null,this.getRequestOptions(t));default:throw new Error(`Unsupported method: ${t.getMethod}`)}}))}};var Ma=(()=>{let e=class e{constructor(r){this.bannerService=r}handleError(r,s){let n=s.error,{error:o}=n;switch(s.status){case 400:case 404:case 500:case 503:this.spawnNotification(o);break;case 504:this.spawnNotification(n);break;default:this.spawnNotification(o);break}return ni(()=>s)}spawnNotification(r){this.bannerService.showError(r)}};e.\u0275fac=function(s){return new(s||e)(T(Ie))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ln=(()=>{let e=class e{constructor(r){this.errorHandler=r}intercept(r,s){return s.handle(r).pipe(Q(n=>this.errorHandler.handleError(r,n)))}};e.\u0275fac=function(s){return new(s||e)(T(Ma))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Oa={defaultMode:void 0,currentMode:void 0},cn=ae(Oa,L(Ne.setDefaultMode,(i,{mode:e})=>C(_({},i),{defaultMode:e})),L(Ne.setCurrentMode,(i,{mode:e})=>C(_({},i),{currentMode:e})));var He=class extends ct{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var un=(()=>{let e=class e{constructor(r,s,n){this.apiClient=r,this.bannerService=s,this.actions$=n,this.uploadFile$=X(()=>this.actions$.pipe(Y(te.uploadFile),U(o=>this.apiClient.serviceCall(new He(o.file)).pipe(z(a=>te.uploadFileSuccess({data:a})),Q(a=>K(te.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=X(()=>this.actions$.pipe(Y(te.uploadFileAndCallScript),U(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new He(o.file)).pipe(U(a=>(this.bannerService.showSuccess("File uploaded successfully."),[te.uploadFileSuccess({data:a}),ut.callScript({configs:o.configs})])),Q(a=>K(te.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(Ie),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Ca={uploading:!1},fn=ae(Ca,L(te.uploadFile,i=>C(_({},i),{uploading:!0})),L(te.uploadFileSuccess,(i,{data:e})=>C(_({},i),{uploading:!1,uploadedData:e})),L(te.uploadFileFailure,(i,{error:e})=>C(_({},i),{uploading:!1,error:e})));var Rc=rt(ot,({fileState:i})=>i.uploading),Dc=rt(ot,({fileState:i})=>i.uploadedData),Fc=rt(ot,({fileState:i})=>i.error);var Na={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},hn=ae(Na,L(B.getModelsListSuccess,(i,{algorithmType:e,models:t})=>{switch(e){case je.QUANTIZATION:return C(_({},i),{quantizationModels:t,error:void 0});case je.PRUNING:return C(_({},i),{pruningModels:t,error:void 0});case je.MACHINE_UNLEARNING:return C(_({},i),{machineUnlearningModels:t,error:void 0});case je.AWQ:return C(_({},i),{awqModels:t,error:void 0});default:return i}}),L(B.getModelsListFailure,(i,{error:e})=>C(_({},i),{error:e})),L(B.getCurrentOrPreviousSelectedModelSuccess,(i,{model:e})=>C(_({},i),{currentModel:e})),L(B.getCurrentOrPreviousSelectedModelFailure,(i,{error:e})=>C(_({},i),{error:e})),L(B.getModelMetadataSuccess,(i,{metadata:e})=>C(_({},i),{modelMetadata:e,error:void 0})),L(B.getModelMetadataFailure,(i,{error:e})=>C(_({},i),{modelMetadata:{},error:e})));var $t=class extends ue{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var dn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.loadParameters$=X(()=>this.actions$.pipe(Y(ge.loadParameters),U(({arg:n})=>this.apiClient.serviceCall(new $t(n)).pipe(z(o=>ge.loadParametersSuccess({arg:n,parameters:o.parameters})),Q(o=>K(ge.loadParametersFailure({arg:n,error:o})))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Pa={},pn=ae(Pa,L(ge.loadParameters,(i,{arg:e})=>C(_({},i),{[e]:C(_({},i[e]),{loaded:!1,error:null})})),L(ge.loadParametersSuccess,(i,{arg:e,parameters:t})=>C(_({},i),{[e]:{data:t,error:null,loaded:!0}})),L(ge.loadParametersFailure,(i,{arg:e,error:t})=>C(_({},i),{[e]:C(_({},i[e]),{error:t,loaded:!0})})));var zt=class extends ue{constructor(){super("latest-messages",void 0,void 0,!1)}};var Ut=class extends ct{constructor(){super("clear-history",{},!1)}};var mn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.getLatestMessages$=X(()=>this.actions$.pipe(Y(re.getLatestMessages),U(()=>this.apiClient.serviceCall(new zt).pipe(z(n=>re.getLatestMessagesSuccess({messages:n})),Q(n=>K(re.getLatestMessagesFailure({error:n}))))))),this.postClearHistory$=X(()=>this.actions$.pipe(Y(re.postClearHistory),U(()=>this.apiClient.serviceCall(new Ut).pipe(z(()=>re.postClearHistorySuccess()),Q(n=>K(re.postClearHistoryFailure({error:n})))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Ia={messages:[],error:null},gn=ae(Ia,L(re.getLatestMessagesSuccess,(i,{messages:e})=>C(_({},i),{messages:e,error:null})),L(re.getLatestMessagesFailure,(i,{error:e})=>C(_({},i),{error:e})),L(re.postClearHistoryFailure,(i,{error:e})=>C(_({},i),{error:e})));var yn={auth:zi,configs:cn,script:qi,uploadFile:fn,charts:Hi,parameters:pn,terminal:gn,statistics:rs,models:hn};var Kt=class extends ue{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var Bt=class extends ue{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var qt=class extends ue{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var Sn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.loadModels$=X(()=>this.actions$.pipe(Y(B.getModelsList),U(n=>{let{algorithmType:o}=n;return this.apiClient.serviceCall(new qt(o)).pipe(z(a=>B.getModelsListSuccess({algorithmType:o,models:a})),Q(a=>K(B.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=X(()=>this.actions$.pipe(Y(B.getCurrentOrPreviousSelectedModel),U(n=>this.apiClient.serviceCall(new Kt(n.algorithmType)).pipe(z(o=>B.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Q(o=>K(B.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=X(()=>this.actions$.pipe(Y(B.getModelMetadata),U(n=>{let{algorithmType:o,modelName:a}=n;return this.apiClient.serviceCall(new Bt(o,a)).pipe(z(l=>B.getModelMetadataSuccess({metadata:l})),Q(l=>K(B.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var En=(()=>{let e=class e{constructor(r,s,n,o,a){if(this.registry=s,this.scriptFacadeService=n,this.navigationService=o,this.pageSpinningIndicatorService=a,r!==null)throw new Error("Core Module already loaded.");this.navigationService.trackNavigationHistory(),this.pageSpinningIndicatorService.trackCurrentRunningPage(),this.registerModelSmithIcons(),this.scriptFacadeService.dispatch(ut.fetchScriptStatus())}registerModelSmithIcons(){this.registry.registerFontClassAlias("icomoon","ms")}};e.\u0275fac=function(s){return new(s||e)(T(e,12),T(xi),T(ft),T(dt),T(ht))},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({providers:[is,Ue,dt,Tt,Et,Ie,ft,at,Ui,Xi,Zi,Wi,Yi,es,Ji,ht,ss,{provide:ce,useFactory:r=>new jt(r),deps:[Ai]},{provide:ns,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}},{provide:Zt,useClass:ln,multi:!0},{provide:Zt,useClass:os,multi:!0},Mi(Oi())],imports:[bi,et,an,it.forFeature("core",yn),st.forFeature([$i,Bi,un,Gi,dn,mn,ts,Sn])]});let i=e;return i})();var wn=In(bn(),1);var Hr="@ngrx/store/init",Qa="@ngrx/store/update-reducers",Va=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Ga=(i,e)=>typeof e=="string"&&Va.test(e)?new Date(e):e,Ha=(i,e)=>e,Wa=()=>typeof window<"u",Za=i=>i.map(e=>{let t=e;if(typeof e=="object"&&(t=Object.keys(e)[0]),typeof t!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof t}`);return e}),Xa=(i,e,t,r)=>i.reduce((s,n)=>{let o=n,a=r?Ga:Ha,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof n[o]=="function"?a=n[o]:(n[o].reviver&&(a=n[o].reviver),n[o].deserialize&&(l=n[o].deserialize)),n[o].encrypt&&n[o].decrypt?typeof n[o].encrypt=="function"&&typeof n[o].decrypt=="function"?c=n[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${n[o]}' key object.`):(n[o].encrypt||n[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${n[o]}' key object.`)),e!==void 0){let f=e.getItem(t(o));if(f){c&&(f=c(f));let u=new RegExp("{|\\["),p=f;return(f==="null"||f==="true"||f==="false"||u.test(f.charAt(0)))&&(p=JSON.parse(f,a)),Object.assign({},s,{[o]:l?l(p):p})}}return s},{});function An(i,e){return e.reduce((t,r)=>{if(typeof r=="string"||typeof r=="number"){let s=i?.[r];s!==void 0&&(t[r]=s)}else for(let s in r)if(Object.prototype.hasOwnProperty.call(r,s)){let n=r[s];t[s]=An(i[s],n)}return t},{})}var Ya=(i,e,t,r,s,n)=>{if(n)try{if(n(i)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=i[o],l,c,f;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=i[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let p;o[u].reduce?p=o[u]:o[u].filter&&(p=o[u].filter),p&&(a=An(a,p)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(f=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&t!==void 0)try{f&&(a=f(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(r(o),typeof a=="string"?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&s&&t!==void 0)try{t.removeItem(r(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},Ja=(i,e,t)=>((t.type===Hr||t.type===Qa)&&e&&(i=(0,wn.default)(i,e,{arrayMerge:(n,o,a)=>o})),i),Mn=i=>e=>{(i.storage===void 0&&!i.checkStorageAvailability||i.checkStorageAvailability&&Wa())&&(i.storage=localStorage||window.localStorage),i.storageKeySerializer===void 0&&(i.storageKeySerializer=n=>n),i.restoreDates===void 0&&(i.restoreDates=!0);let t=i.mergeReducer;(t===void 0||typeof t!="function")&&(t=Ja);let r=Za(i.keys),s=i.rehydrate?Xa(r,i.storage,i.storageKeySerializer,i.restoreDates):void 0;return function(n,o){let a;return o.type===Hr&&!n?a=e(n,o):a=_({},n),a=t(a,s,o),a=e(a,o),o.type!==Hr&&Ya(a,r,i.storage,i.storageKeySerializer,i.removeOnUndefined,i.syncCondition),a}};function el(i){let t={keys:[{[j.CORE.ROOT]:[j.AUTH.ROOT,j.CONFIGS.ROOT,j.SCRIPT.ROOT]}],rehydrate:!0};return Mn(t)(i)}var On=[el];var Cn=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e,bootstrap:[vt]}),e.\u0275inj=ne({imports:[En,Ps,Vi,it.forRoot({},{metaReducers:On}),Ns.instrument({maxAge:25,logOnly:Je(),connectInZone:!0}),st.forRoot([])]});let i=e;return i})();Ni().bootstrapModule(Cn).catch(i=>console.error(i)); +import{c as os}from"./chunk-WP2WLVOC.js";import{a as ns}from"./chunk-FQJTC3NS.js";import{a as ge}from"./chunk-WL3ZZTTC.js";import{a as B,b as re,c as ss}from"./chunk-VBDJDMQD.js";import{a as Ie,c as Gi,d as Hi,e as Wi,f as Zi,g as te,h as Xi,i as dt,j as Yi,k as Ji,l as es,n as ts,o as rs,q as is}from"./chunk-3ZHMSG5W.js";import{$b as Ne,A as ci,B as ui,Be as Vi,Cb as Xt,Cd as je,Db as tt,E as fi,Eb as Ii,F as hi,Fb as Ri,G as di,Gb as Di,Gc as xi,Hb as Yt,I as U,Ib as Fi,J as Xe,Jb as ki,Jc as w,Kc as le,L as pi,Lb as rt,M as O,Md as ft,Nb as it,Nc as ji,Nd as ht,O as R,Ob as L,Oc as er,P as ne,Pb as ae,Q as xe,Qb as X,R as T,Rb as me,S as mi,Sb as Y,T as gi,Tb as st,Tc as Pe,Td as Qi,U as oe,Uc as tr,Vc as lt,Wb as Li,X as yi,Xb as Ce,Zb as Jt,_b as x,a as _,ac as nt,b as C,ba as Si,bb as Je,bc as ot,c as Jr,cc as at,cd as ce,d as Pn,da as Ei,db as _i,e as In,ed as ue,fd as ct,g as Gt,ga as Wt,gd as $i,hd as zi,id as Ui,j as ei,k as ti,l as ri,m as ii,ma as Ti,n as si,o as K,oa as Ye,p as ni,pb as bi,qb as wi,r as oi,rb as Ai,rd as Ki,s as z,sb as Zt,tb as Mi,ub as Oi,ud as ut,v as Ht,vb as Ci,vd as Bi,w as Oe,wb as Ni,x as Q,xb as et,xd as qi,y as ai,ya as vi,yb as Pi,z as li}from"./chunk-JA5VSLUI.js";var bn=Pn((Lf,_n)=>{"use strict";var Ra=function(e){return Da(e)&&!Fa(e)};function Da(i){return!!i&&typeof i=="object"}function Fa(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||xa(i)}var ka=typeof Symbol=="function"&&Symbol.for,La=ka?Symbol.for("react.element"):60103;function xa(i){return i.$$typeof===La}function ja(i){return Array.isArray(i)?[]:{}}function We(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Le(ja(i),i,e):i}function $a(i,e,t){return i.concat(e).map(function(r){return We(r,t)})}function za(i,e){if(!e.customMerge)return Le;var t=e.customMerge(i);return typeof t=="function"?t:Le}function Ua(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function Tn(i){return Object.keys(i).concat(Ua(i))}function vn(i,e){try{return e in i}catch{return!1}}function Ka(i,e){return vn(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function Ba(i,e,t){var r={};return t.isMergeableObject(i)&&Tn(i).forEach(function(s){r[s]=We(i[s],t)}),Tn(e).forEach(function(s){Ka(i,s)||(vn(i,s)&&t.isMergeableObject(e[s])?r[s]=za(s,t)(i[s],e[s],t):r[s]=We(e[s],t))}),r}function Le(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||$a,t.isMergeableObject=t.isMergeableObject||Ra,t.cloneUnlessOtherwiseSpecified=We;var r=Array.isArray(e),s=Array.isArray(i),n=r===s;return n?r?t.arrayMerge(i,e,t):Ba(i,e,t):We(e,t)}Le.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,s){return Le(r,s,t)},{})};var qa=Le;_n.exports=qa});var ze="PERFORM_ACTION",Rn="REFRESH",hs="RESET",ds="ROLLBACK",ps="COMMIT",ms="SWEEP",gs="TOGGLE_ACTION",Dn="SET_ACTIONS_ACTIVE",ys="JUMP_TO_STATE",Ss="JUMP_TO_ACTION",pr="IMPORT_STATE",Es="LOCK_CHANGES",Ts="PAUSE_RECORDING",Re=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=ze,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},rr=class{constructor(){this.type=Rn}},ir=class{constructor(e){this.timestamp=e,this.type=hs}},sr=class{constructor(e){this.timestamp=e,this.type=ds}},nr=class{constructor(e){this.timestamp=e,this.type=ps}},or=class{constructor(){this.type=ms}},ar=class{constructor(e){this.id=e,this.type=gs}};var lr=class{constructor(e){this.index=e,this.type=ys}},cr=class{constructor(e){this.actionId=e,this.type=Ss}},ur=class{constructor(e){this.nextLiftedState=e,this.type=pr}},fr=class{constructor(e){this.status=e,this.type=Es}},hr=class{constructor(e){this.status=e,this.type=Ts}};var yt=new xe("@ngrx/store-devtools Options"),as=new xe("@ngrx/store-devtools Initial Config");function vs(){return null}var Fn="NgRx Store DevTools";function kn(i){let e={maxAge:!1,monitor:vs,actionSanitizer:void 0,stateSanitizer:void 0,name:Fn,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof i=="function"?i():i,r=t.logOnly?{pause:!0,export:!0,test:!0}:!1,s=t.features||r||e.features;s.import===!0&&(s.import="custom");let n=Object.assign({},e,{features:s},t);if(n.maxAge&&n.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${n.maxAge}`);return n}function ls(i,e){return i.filter(t=>e.indexOf(t)<0)}function _s(i){let{computedStates:e,currentStateIndex:t}=i;if(t>=e.length){let{state:s}=e[e.length-1];return s}let{state:r}=e[t];return r}function $e(i){return new Re(i,+Date.now())}function Ln(i,e){return Object.keys(e).reduce((t,r)=>{let s=Number(r);return t[s]=bs(i,e[s],s),t},{})}function bs(i,e,t){return C(_({},e),{action:i(e.action,t)})}function xn(i,e){return e.map((t,r)=>({state:ws(i,t.state,r),error:t.error}))}function ws(i,e,t){return i(e,t)}function As(i){return i.predicate||i.actionsSafelist||i.actionsBlocklist}function jn(i,e,t,r){let s=[],n={},o=[];return i.stagedActionIds.forEach((a,l)=>{let c=i.actionsById[a];c&&(l&&mr(i.computedStates[l],c,e,t,r)||(n[a]=c,s.push(a),o.push(i.computedStates[l])))}),C(_({},i),{stagedActionIds:s,actionsById:n,computedStates:o})}function mr(i,e,t,r,s){let n=t&&!t(i,e.action),o=r&&!e.action.type.match(r.map(l=>cs(l)).join("|")),a=s&&e.action.type.match(s.map(l=>cs(l)).join("|"));return n||o||a}function cs(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ms(i){return{ngZone:i?mi(Ye):null,connectInZone:i}}var St=(()=>{let e=class e extends tt{};e.\u0275fac=(()=>{let r;return function(n){return(r||(r=Si(e)))(n||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),pt={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},dr=new xe("@ngrx/store-devtools Redux Devtools Extension"),Os=(()=>{let e=class e{constructor(r,s,n){this.config=s,this.dispatcher=n,this.zoneConfig=Ms(this.config.connectInZone),this.devtoolsExtension=r,this.createActionStreams()}notify(r,s){if(this.devtoolsExtension)if(r.type===ze){if(s.isLocked||s.isPaused)return;let n=_s(s);if(As(this.config)&&mr(n,r,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?ws(this.config.stateSanitizer,n,s.currentStateIndex):n,a=this.config.actionSanitizer?bs(this.config.actionSanitizer,r,s.nextActionId):r;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let n=C(_({},s),{stagedActionIds:s.stagedActionIds,actionsById:this.config.actionSanitizer?Ln(this.config.actionSanitizer,s.actionsById):s.actionsById,computedStates:this.config.stateSanitizer?xn(this.config.stateSanitizer,s.computedStates):s.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,n,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Gt(r=>{let s=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=s,s.init(),s.subscribe(n=>r.next(n)),s.unsubscribe}):ri}createActionStreams(){let r=this.createChangesObservable().pipe(hi()),s=r.pipe(Oe(f=>f.type===pt.START)),n=r.pipe(Oe(f=>f.type===pt.STOP)),o=r.pipe(Oe(f=>f.type===pt.DISPATCH),z(f=>this.unwrapAction(f.payload)),ai(f=>f.type===pr?this.dispatcher.pipe(Oe(u=>u.type===Yt),oi(1e3),li(1e3),z(()=>f),Q(()=>K(f)),ci(1)):K(f))),l=r.pipe(Oe(f=>f.type===pt.ACTION),z(f=>this.unwrapAction(f.payload))).pipe(Xe(n)),c=o.pipe(Xe(n));this.start$=s.pipe(Xe(n)),this.actions$=this.start$.pipe(U(()=>l)),this.liftedActions$=this.start$.pipe(U(()=>c))}unwrapAction(r){return typeof r=="string"?(0,eval)(`(${r})`):r}getExtensionConfig(r){let s={name:r.name,features:r.features,serialize:r.serialize,autoPause:r.autoPause??!1,trace:r.trace??!1,traceLimit:r.traceLimit??75};return r.maxAge!==!1&&(s.maxAge=r.maxAge),s}sendToReduxDevtools(r){try{r()}catch(s){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",s)}}};e.\u0275fac=function(s){return new(s||e)(T(dr),T(yt),T(St))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),gt={type:Xt},$n="@ngrx/store-devtools/recompute",zn={type:$n};function Cs(i,e,t,r,s){if(r)return{state:t,error:"Interrupted by an error up the chain"};let n=t,o;try{n=i(t,e)}catch(a){o=a.toString(),s.handleError(a)}return{state:n,error:o}}function mt(i,e,t,r,s,n,o,a,l){if(e>=i.length&&i.length===n.length)return i;let c=i.slice(0,e),f=n.length-(l?1:0);for(let u=e;u-1?h:Cs(t,g,d,b,a);c.push(N)}return l&&c.push(i[i.length-1]),c}function Un(i,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:$e(gt)},stagedActionIds:[0],skippedActionIds:[],committedState:i,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Kn(i,e,t,r,s={}){return n=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:f,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:h,computedStates:d,isLocked:b,isPaused:A}=o||e;o||(c=Object.create(c));function N(P){let v=P,D=u.slice(1,v+1);for(let I=0;ID.indexOf(I)===-1),u=[0,...u.slice(v+1)],g=d[v].state,d=d.slice(v),h=h>v?h-v:0}function k(){c={0:$e(gt)},f=1,u=[0],p=[],g=d[h].state,h=0,d=[]}let E=0;switch(a.type){case Es:{b=a.status,E=1/0;break}case Ts:{A=a.status,A?(u=[...u,f],c[f]=new Re({type:"@ngrx/devtools/pause"},+Date.now()),f++,E=u.length-1,d=d.concat(d[d.length-1]),h===u.length-2&&h++,E=1/0):k();break}case hs:{c={0:$e(gt)},f=1,u=[0],p=[],g=i,h=0,d=[];break}case ps:{k();break}case ds:{c={0:$e(gt)},f=1,u=[0],p=[],h=0,d=[];break}case gs:{let{id:P}=a;p.indexOf(P)===-1?p=[P,...p]:p=p.filter(D=>D!==P),E=u.indexOf(P);break}case Dn:{let{start:P,end:v,active:D}=a,I=[];for(let ee=P;ees.maxAge&&(d=mt(d,E,n,g,c,u,p,t,A),N(u.length-s.maxAge),E=1/0);break}case Yt:{if(d.filter(v=>v.error).length>0)E=0,s.maxAge&&u.length>s.maxAge&&(d=mt(d,E,n,g,c,u,p,t,A),N(u.length-s.maxAge),E=1/0);else{if(!A&&!b){h===u.length-1&&h++;let v=f++;c[v]=new Re(a,+Date.now()),u=[...u,v],E=u.length-1,d=mt(d,E,n,g,c,u,p,t,A)}d=d.map(v=>C(_({},v),{state:n(v.state,zn)})),h=u.length-1,s.maxAge&&u.length>s.maxAge&&N(u.length-s.maxAge),E=1/0}break}default:{E=1/0;break}}return d=mt(d,E,n,g,c,u,p,t,A),l=r(l,a),{monitorState:l,actionsById:c,nextActionId:f,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:h,computedStates:d,isLocked:b,isPaused:A}}}var us=(()=>{let e=class e{constructor(r,s,n,o,a,l,c,f){let u=Un(c,f.monitor),p=Kn(c,u,l,f.monitor,f),g=Ht(Ht(s.asObservable().pipe(di(1)),o.actions$).pipe(z($e)),r,o.liftedActions$).pipe(si(ti)),h=n.pipe(z(p)),d=Ms(f.connectInZone),b=new ei(1);this.liftedStateSubscription=g.pipe(pi(h),fs(d),fi(({state:k},[E,P])=>{let v=P(k,E);return E.type!==ze&&As(f)&&(v=jn(v,f.predicate,f.actionsSafelist,f.actionsBlocklist)),o.notify(E,v),{state:v,action:E}},{state:u,action:null})).subscribe(({state:k,action:E})=>{if(b.next(k),E.type===ze){let P=E.action;a.next(P)}}),this.extensionStartSubscription=o.start$.pipe(fs(d)).subscribe(()=>{this.refresh()});let A=b.asObservable(),N=A.pipe(z(_s));Object.defineProperty(N,"state",{value:Pi(N,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=r,this.liftedState=A,this.state=N}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(r){this.dispatcher.next(r)}next(r){this.dispatcher.next(r)}error(r){}complete(){}performAction(r){this.dispatch(new Re(r,+Date.now()))}refresh(){this.dispatch(new rr)}reset(){this.dispatch(new ir(+Date.now()))}rollback(){this.dispatch(new sr(+Date.now()))}commit(){this.dispatch(new nr(+Date.now()))}sweep(){this.dispatch(new or)}toggleAction(r){this.dispatch(new ar(r))}jumpToAction(r){this.dispatch(new cr(r))}jumpToState(r){this.dispatch(new lr(r))}importState(r){this.dispatch(new ur(r))}lockChanges(r){this.dispatch(new fr(r))}pauseRecording(r){this.dispatch(new hr(r))}};e.\u0275fac=function(s){return new(s||e)(T(St),T(tt),T(Ri),T(Os),T(Fi),T(Ei),T(Ii),T(yt))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();function fs({ngZone:i,connectInZone:e}){return t=>e?new Gt(r=>t.subscribe({next:s=>i.run(()=>r.next(s)),error:s=>i.run(()=>r.error(s)),complete:()=>i.run(()=>r.complete())})):t}var Bn=new xe("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function qn(i,e){return!!i||e.monitor!==vs}function Qn(){let i="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[i]<"u"?window[i]:null}function Vn(i={}){return yi([Os,St,us,{provide:as,useValue:i},{provide:Bn,deps:[dr,yt],useFactory:qn},{provide:dr,useFactory:Qn},{provide:yt,deps:[as],useFactory:kn},{provide:ki,deps:[us],useFactory:Gn},{provide:Di,useExisting:St}])}function Gn(i){return i.state}var Ns=(()=>{let e=class e{static instrument(r={}){return{ngModule:e,providers:[Vn(r)]}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({});let i=e;return i})();var j={CORE:{ROOT:"core"},SCRIPT:{ROOT:"script"},AUTH:{ROOT:"auth",USER:{ROOT:"user",JWT:"jwt"}},MODEL_COMPRESSION:{ROOT:"model-compression",PARAMETERS:{ROOT:"parameters"}},CONFIGS:{ROOT:"configs",DEFAULT_MODE:"defaultMode"}};var ye=class{static setItem(e,t){localStorage.setItem(e,JSON.stringify(t))}static getItem(e){let t=localStorage.getItem(e);return t?JSON.parse(t):null}static getNestedItem(e,t){let r=this.getItem(e);return r?this.getNestedProperty(r,t):null}static removeItem(e){localStorage.removeItem(e)}static clear(){localStorage.clear()}static getNestedProperty(e,t){if(!t)return e;let r=t.split(".");for(let s=0;s{let e=class e{constructor(r){this.router=r}canActivate(){return ye.getNestedItem(j.CORE.ROOT,`${j.AUTH.ROOT}.${j.AUTH.USER.ROOT}.${j.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${x.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(s){return new(s||e)(T(Ce))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Et=(()=>{let e=class e{constructor(r,s){this.router=r,this.configFacadeService=s}canActivate(){let r=ye.getNestedItem(j.CORE.ROOT,`${j.CONFIGS.ROOT}.${j.CONFIGS.DEFAULT_MODE}`);return r&&(r===nt.GUIDED?(this.router.navigate([`/${x.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Ne.setCurrentMode({mode:nt.GUIDED}))):(this.router.navigate([`/${x.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Ne.setCurrentMode({mode:nt.EXPERT})))),!0}};e.\u0275fac=function(s){return new(s||e)(T(Ce),T(at))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Tt=(()=>{let e=class e{constructor(r){this.router=r}canActivate(){return ye.getNestedItem(j.CORE.ROOT,`${j.AUTH.ROOT}.${j.AUTH.USER.ROOT}.${j.AUTH.USER.JWT}`)?(this.router.navigate([`/${x.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(s){return new(s||e)(T(Ce))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Hn=[{path:x.AUTH.ROOT,loadChildren:()=>import("./chunk-WAWPN2GA.js").then(i=>i.AuthModule),canActivate:[Tt]},{path:x.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-WVPOWI4W.js").then(i=>i.ModeSelectModule),canActivate:[Ue,Et]},{path:x.DEMO.ROOT,loadChildren:()=>import("./chunk-VUGEUSN6.js").then(i=>i.DemoModule)},{path:"",pathMatch:"full",redirectTo:x.AUTH.ROOT},{path:"",component:Qi,canActivate:[Ue],children:[{path:"",redirectTo:x.WIZARD.ROOT,pathMatch:"full"},{path:x.WIZARD.ROOT,loadChildren:()=>import("./chunk-K5OOOOE7.js").then(i=>i.WizardModule)},{path:x.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-2EDU45QX.js").then(i=>i.ModelCompressionModule)},{path:x.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-XBRAELGQ.js").then(i=>i.MachineUnlearningModule)},{path:x.AWQ.ROOT,loadChildren:()=>import("./chunk-IS3LT32Q.js").then(i=>i.LlmQuantizationModule)},{path:x.RUNNING.ROOT,loadChildren:()=>import("./chunk-WB7K3GO6.js").then(i=>i.RunningModule)},{path:x.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-Q4QNYVBE.js").then(i=>i.ModelTrainingModule)},{path:x.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-AKOJ7TQ4.js").then(i=>i.AlgorithmComparisonModule)},{path:x.MODEL_SPECIALIZATION.ROOT,loadChildren:()=>import("./chunk-BD6J76BW.js").then(i=>i.ModelSpecializationModule)}]}],Ps=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({imports:[Jt.forRoot(Hn),Jt]});let i=e;return i})();var he,vt=(he=class{constructor(){this.title="modelsmith"}ngOnInit(){}},he.\u0275fac=function(t){return new(t||he)},he.\u0275cmp=gi({type:he,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){t&1&&vi(0,"router-outlet")},dependencies:[Li]}),he);vt=ii([Ki()],vt);function Is(i){return new O(3e3,!1)}function Wn(){return new O(3100,!1)}function Zn(){return new O(3101,!1)}function Xn(i){return new O(3001,!1)}function Yn(i){return new O(3003,!1)}function Jn(i){return new O(3004,!1)}function eo(i,e){return new O(3005,!1)}function to(){return new O(3006,!1)}function ro(){return new O(3007,!1)}function io(i,e){return new O(3008,!1)}function so(i){return new O(3002,!1)}function no(i,e,t,r,s){return new O(3010,!1)}function oo(){return new O(3011,!1)}function ao(){return new O(3012,!1)}function lo(){return new O(3200,!1)}function co(){return new O(3202,!1)}function uo(){return new O(3013,!1)}function fo(i){return new O(3014,!1)}function ho(i){return new O(3015,!1)}function po(i){return new O(3016,!1)}function mo(i,e){return new O(3404,!1)}function go(i){return new O(3502,!1)}function yo(i){return new O(3503,!1)}function So(){return new O(3300,!1)}function Eo(i){return new O(3504,!1)}function To(i){return new O(3301,!1)}function vo(i,e){return new O(3302,!1)}function _o(i){return new O(3303,!1)}function bo(i,e){return new O(3400,!1)}function wo(i){return new O(3401,!1)}function Ao(i){return new O(3402,!1)}function Mo(i,e){return new O(3505,!1)}function Se(i){switch(i.length){case 0:return new Pe;case 1:return i[0];default:return new tr(i)}}function Qs(i,e,t=new Map,r=new Map){let s=[],n=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),f=c==o,u=f&&a||new Map;l.forEach((p,g)=>{let h=g,d=p;if(g!=="offset")switch(h=i.normalizePropertyName(h,s),d){case lt:d=t.get(g);break;case le:d=r.get(g);break;default:d=i.normalizeStyleValue(g,h,d,s);break}u.set(h,d)}),f||n.push(u),a=u,o=c}),s.length)throw go(s);return n}function $r(i,e,t,r){switch(e){case"start":i.onStart(()=>r(t&&yr(t,"start",i)));break;case"done":i.onDone(()=>r(t&&yr(t,"done",i)));break;case"destroy":i.onDestroy(()=>r(t&&yr(t,"destroy",i)));break}}function yr(i,e,t){let r=t.totalTime,s=!!t.disabled,n=zr(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,r??i.totalTime,s),o=i._data;return o!=null&&(n._data=o),n}function zr(i,e,t,r,s="",n=0,o){return{element:i,triggerName:e,fromState:t,toState:r,phaseName:s,totalTime:n,disabled:!!o}}function W(i,e,t){let r=i.get(e);return r||i.set(e,r=t),r}function Rs(i){let e=i.indexOf(":"),t=i.substring(1,e),r=i.slice(e+1);return[t,r]}var Oo=typeof document>"u"?null:document.documentElement;function Ur(i){let e=i.parentNode||i.host||null;return e===Oo?null:e}function Co(i){return i.substring(1,6)=="ebkit"}var ve=null,Ds=!1;function No(i){ve||(ve=Po()||{},Ds=ve.style?"WebkitAppearance"in ve.style:!1);let e=!0;return ve.style&&!Co(i)&&(e=i in ve.style,!e&&Ds&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in ve.style)),e}function Po(){return typeof document<"u"?document.body:null}function Vs(i,e){for(;e;){if(e===i)return!0;e=Ur(e)}return!1}function Gs(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let r=i.querySelector(e);return r?[r]:[]}var Kr=(()=>{let e=class e{validateStyleProperty(r){return No(r)}containsElement(r,s){return Vs(r,s)}getParentElement(r){return Ur(r)}query(r,s,n){return Gs(r,s,n)}computeStyle(r,s,n){return n||""}animate(r,s,n,o,a,l=[],c){return new Pe(n,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),Vr=class Vr{};Vr.NOOP=new Kr;var we=Vr,Ae=class{};var Io=1e3,Hs="{{",Ro="}}",Ws="ng-enter",br="ng-leave",_t="ng-trigger",Ot=".ng-trigger",Fs="ng-animating",wr=".ng-animating";function de(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ar(parseFloat(e[1]),e[2])}function Ar(i,e){switch(e){case"s":return i*Io;default:return i}}function Ct(i,e,t){return i.hasOwnProperty("duration")?i:Do(i,e,t)}function Do(i,e,t){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,n=0,o="";if(typeof i=="string"){let a=i.match(r);if(a===null)return e.push(Is(i)),{duration:0,delay:0,easing:""};s=Ar(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(n=Ar(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(Wn()),a=!0),n<0&&(e.push(Zn()),a=!0),a&&e.splice(l,0,Is(i))}return{duration:s,delay:n,easing:o}}function Fo(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function fe(i,e,t){e.forEach((r,s)=>{let n=Br(s);t&&!t.has(s)&&t.set(s,i.style[n]),i.style[n]=r})}function be(i,e){e.forEach((t,r)=>{let s=Br(r);i.style[s]=""})}function Ke(i){return Array.isArray(i)?i.length==1?i[0]:ji(i):i}function ko(i,e,t){let r=e.params||{},s=Zs(i);s.length&&s.forEach(n=>{r.hasOwnProperty(n)||t.push(Xn(n))})}var Mr=new RegExp(`${Hs}\\s*(.+?)\\s*${Ro}`,"g");function Zs(i){let e=[];if(typeof i=="string"){let t;for(;t=Mr.exec(i);)e.push(t[1]);Mr.lastIndex=0}return e}function qe(i,e,t){let r=`${i}`,s=r.replace(Mr,(n,o)=>{let a=e[o];return a==null&&(t.push(Yn(o)),a=""),a.toString()});return s==r?i:s}var Lo=/-+([a-z0-9])/g;function Br(i){return i.replace(Lo,(...e)=>e[1].toUpperCase())}function xo(i,e){return i===0||e===0}function jo(i,e,t){if(t.size&&e.length){let r=e[0],s=[];if(t.forEach((n,o)=>{r.has(o)||s.push(o),r.set(o,n)}),s.length)for(let n=1;no.set(a,qr(i,a)))}}return e}function H(i,e,t){switch(e.type){case w.Trigger:return i.visitTrigger(e,t);case w.State:return i.visitState(e,t);case w.Transition:return i.visitTransition(e,t);case w.Sequence:return i.visitSequence(e,t);case w.Group:return i.visitGroup(e,t);case w.Animate:return i.visitAnimate(e,t);case w.Keyframes:return i.visitKeyframes(e,t);case w.Style:return i.visitStyle(e,t);case w.Reference:return i.visitReference(e,t);case w.AnimateChild:return i.visitAnimateChild(e,t);case w.AnimateRef:return i.visitAnimateRef(e,t);case w.Query:return i.visitQuery(e,t);case w.Stagger:return i.visitStagger(e,t);default:throw Jn(e.type)}}function qr(i,e){return window.getComputedStyle(i)[e]}var $o=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"]),Nt=class extends Ae{normalizePropertyName(e,t){return Br(e)}normalizeStyleValue(e,t,r,s){let n="",o=r.toString().trim();if($o.has(t)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(eo(e,r))}return o+n}};var Pt="*";function zo(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(r=>Uo(r,t,e)):t.push(i),t}function Uo(i,e,t){if(i[0]==":"){let l=Ko(i,t);if(typeof l=="function"){e.push(l);return}i=l}let r=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return t.push(ho(i)),e;let s=r[1],n=r[2],o=r[3];e.push(ks(s,o));let a=s==Pt&&o==Pt;n[0]=="<"&&!a&&e.push(ks(o,s))}function Ko(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}var bt=new Set(["true","1"]),wt=new Set(["false","0"]);function ks(i,e){let t=bt.has(i)||wt.has(i),r=bt.has(e)||wt.has(e);return(s,n)=>{let o=i==Pt||i==s,a=e==Pt||e==n;return!o&&t&&typeof s=="boolean"&&(o=s?bt.has(i):wt.has(i)),!a&&r&&typeof n=="boolean"&&(a=n?bt.has(e):wt.has(e)),o&&a}}var Xs=":self",Bo=new RegExp(`s*${Xs}s*,?`,"g");function Ys(i,e,t,r){return new Or(i).build(e,t,r)}var Ls="",Or=class{constructor(e){this._driver=e}build(e,t,r){let s=new Cr(t);return this._resetContextStyleTimingState(s),H(this,Ke(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ls,e.collectedStyles=new Map,e.collectedStyles.set(Ls,new Map),e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,s=t.depCount=0,n=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(to()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==w.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,n.push(this.visitState(l,t))}),l.name=c}else if(a.type==w.Transition){let l=this.visitTransition(a,t);r+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(ro())}),{type:w.Trigger,name:e.name,states:n,transitions:o,queryCount:r,depCount:s,options:null}}visitState(e,t){let r=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(r.containsDynamicStyles){let n=new Set,o=s||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Zs(l).forEach(c=>{o.hasOwnProperty(c)||n.add(c)})})}),n.size&&t.errors.push(io(e.name,[...n.values()]))}return{type:w.State,name:e.name,style:r,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let r=H(this,Ke(e.animation),t),s=zo(e.expr,t.errors);return{type:w.Transition,matchers:s,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:_e(e.options)}}visitSequence(e,t){return{type:w.Sequence,steps:e.steps.map(r=>H(this,r,t)),options:_e(e.options)}}visitGroup(e,t){let r=t.currentTime,s=0,n=e.steps.map(o=>{t.currentTime=r;let a=H(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:w.Group,steps:n,options:_e(e.options)}}visitAnimate(e,t){let r=Go(e.timings,t.errors);t.currentAnimateTimings=r;let s,n=e.styles?e.styles:er({});if(n.type==w.Keyframes)s=this.visitKeyframes(n,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};r.easing&&(c.easing=r.easing),o=er(c)}t.currentTime+=r.duration+r.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:w.Animate,timings:r,style:s,options:null}}visitStyle(e,t){let r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){let r=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===le?r.push(a):t.errors.push(so(a)):r.push(new Map(Object.entries(a)));let n=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!n)){for(let l of a.values())if(l.toString().indexOf(Hs)>=0){n=!0;break}}}),{type:w.Style,styles:r,easing:o,offset:e.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(e,t){let r=t.currentAnimateTimings,s=t.currentTime,n=t.currentTime;r&&n>0&&(n-=r.duration+r.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),f=c.get(l),u=!0;f&&(n!=s&&n>=f.startTime&&s<=f.endTime&&(t.errors.push(no(l,f.startTime,f.endTime,n,s)),u=!1),n=f.startTime),u&&c.set(l,{startTime:n,endTime:s}),t.options&&ko(a,t.options,t.errors)})})}visitKeyframes(e,t){let r={type:w.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(oo()),r;let s=1,n=0,o=[],a=!1,l=!1,c=0,f=e.steps.map(A=>{let N=this._makeStyleAst(A,t),k=N.offset!=null?N.offset:Vo(N.styles),E=0;return k!=null&&(n++,E=N.offset=k),l=l||E<0||E>1,a=a||E0&&n{let k=p>0?N==g?1:p*N:o[N],E=k*b;t.currentTime=h+d.delay+E,d.duration=E,this._validateStyleAst(A,t),A.offset=k,r.styles.push(A)}),r}visitReference(e,t){return{type:w.Reference,animation:H(this,Ke(e.animation),t),options:_e(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:w.AnimateChild,options:_e(e.options)}}visitAnimateRef(e,t){return{type:w.AnimateRef,animation:this.visitReference(e.animation,t),options:_e(e.options)}}visitQuery(e,t){let r=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[n,o]=qo(e.selector);t.currentQuerySelector=r.length?r+" "+n:n,W(t.collectedStyles,t.currentQuerySelector,new Map);let a=H(this,Ke(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:w.Query,selector:n,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:_e(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(uo());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ct(e.timings,t.errors,!0);return{type:w.Stagger,animation:H(this,Ke(e.animation),t),timings:r,options:null}}};function qo(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Xs);return e&&(i=i.replace(Bo,"")),i=i.replace(/@\*/g,Ot).replace(/@\w+/g,t=>Ot+"-"+t.slice(1)).replace(/:animating/g,wr),[i,e]}function Qo(i){return i?_({},i):null}var Cr=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Vo(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let r=t;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Go(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let n=Ct(i,e).duration;return Sr(n,0,"")}let t=i;if(t.split(/\s+/).some(n=>n.charAt(0)=="{"&&n.charAt(1)=="{")){let n=Sr(0,0,"");return n.dynamic=!0,n.strValue=t,n}let s=Ct(t,e);return Sr(s.duration,s.delay,s.easing)}function _e(i){return i?(i=_({},i),i.params&&(i.params=Qo(i.params))):i={},i}function Sr(i,e,t){return{duration:i,delay:e,easing:t}}function Qr(i,e,t,r,s,n,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:r,duration:s,delay:n,totalTime:s+n,easing:o,subTimeline:a}}var Qe=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ho=1,Wo=":enter",Zo=new RegExp(Wo,"g"),Xo=":leave",Yo=new RegExp(Xo,"g");function Js(i,e,t,r,s,n=new Map,o=new Map,a,l,c=[]){return new Nr().buildKeyframes(i,e,t,r,s,n,o,a,l,c)}var Nr=class{buildKeyframes(e,t,r,s,n,o,a,l,c,f=[]){c=c||new Qe;let u=new Pr(e,t,c,s,n,f,[]);u.options=l;let p=l.delay?de(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),H(this,r,u);let g=u.timelines.filter(h=>h.containsAnimation());if(g.length&&a.size){let h;for(let d=g.length-1;d>=0;d--){let b=g[d];if(b.element===t){h=b;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,u.errors,l)}return g.length?g.map(h=>h.buildKeyframes()):[Qr(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let r=t.subInstructions.get(t.element);if(r){let s=t.createSubContext(e.options),n=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,s,s.options);n!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,r),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,r){for(let s of e){let n=s?.delay;if(n){let o=typeof n=="number"?n:de(qe(n,s?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(e,t,r){let n=t.currentTimeline.currentTime,o=r.duration!=null?de(r.duration):null,a=r.delay!=null?de(r.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);n=Math.max(n,c.duration+c.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),H(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let r=t.subContextCount,s=t,n=e.options;if(n&&(n.params||n.delay)&&(s=t.createSubContext(n),s.transformIntoNewTimeline(),n.delay!=null)){s.previousNode.type==w.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=It);let o=de(n.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>H(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let r=[],s=t.currentTimeline.currentTime,n=e.options&&e.options.delay?de(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);n&&a.delayNextStep(n),H(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let r=e.strValue,s=t.params?qe(r,t.params,t.errors):r;return Ct(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let r=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());let n=e.style;n.type==w.Keyframes?this.visitKeyframes(n,t):(t.incrementTime(r.duration),this.visitStyle(n,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.hasCurrentStyleProperties()&&r.forwardFrame();let n=s&&s.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(n):r.setStyles(e.styles,n,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let r=t.currentAnimateTimings,s=t.currentTimeline.duration,n=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*n),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+n),t.previousNode=e}visitQuery(e,t){let r=t.currentTimeline.currentTime,s=e.options||{},n=s.delay?de(s.delay):0;n&&(t.previousNode.type===w.Style||r==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=It);let o=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,f)=>{t.currentQueryIndex=f;let u=t.createSubContext(e.options,c);n&&u.delayNextStep(n),c===t.element&&(l=u.currentTimeline),H(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;o=Math.max(o,p)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let r=t.parentContext,s=t.currentTimeline,n=e.timings,o=Math.abs(n.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(n.duration<0?"reverse":n.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let f=t.currentTimeline;l&&f.delayNextStep(l);let u=f.currentTime;H(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=s.currentTime-u+(s.startTime-r.currentTimeline.startTime)}},It={},Pr=class i{constructor(e,t,r,s,n,o,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=n,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=It,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Rt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let r=e,s=this.options;r.duration!=null&&(s.duration=de(r.duration)),r.delay!=null&&(s.delay=de(r.delay));let n=r.params;if(n){let o=s.params;o||(o=this.options.params={}),Object.keys(n).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=qe(n[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let r=e.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return e}createSubContext(e=null,t,r){let s=t||this.element,n=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return n.previousNode=this.previousNode,n.currentAnimateTimings=this.currentAnimateTimings,n.options=this._copyOptions(),n.updateOptions(e),n.currentQueryIndex=this.currentQueryIndex,n.currentQueryTotal=this.currentQueryTotal,n.parentContext=this,this.subContextCount++,n}transformIntoNewTimeline(e){return this.previousNode=It,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},n=new Ir(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(n),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,s,n,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(Zo,"."+this._enterClassName),e=e.replace(Yo,"."+this._leaveClassName);let l=r!=1,c=this._driver.query(this.element,e,l);r!==0&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!n&&a.length==0&&o.push(fo(t)),a}},Rt=class i{constructor(e,t,r,s){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ho,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||le),this._currentKeyframe.set(t,le);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,s){t&&this._previousKeyframe.set("easing",t);let n=s&&s.params||{},o=Jo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=qe(l,n,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??le),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,r)=>{let s=this._styleSummary.get(r);(!s||t.time>s.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,r=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((f,u)=>{f===lt?e.add(u):f===le&&t.add(u)}),r||c.set("offset",l/this.duration),s.push(c)});let n=[...e.values()],o=[...t.values()];if(r){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return Qr(this.element,s,n,o,this.duration,this.startTime,this.easing,!1)}},Ir=class extends Rt{constructor(e,t,r,s,n,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=n,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let n=[],o=r+t,a=t/o,l=new Map(e[0]);l.set("offset",0),n.push(l);let c=new Map(e[0]);c.set("offset",xs(a)),n.push(c);let f=e.length-1;for(let u=1;u<=f;u++){let p=new Map(e[u]),g=p.get("offset"),h=t+g*r;p.set("offset",xs(h/o)),n.push(p)}r=o,t=0,s="",e=n}return Qr(this.element,e,this.preStyleProps,this.postStyleProps,r,t,s,!0)}};function xs(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Jo(i,e){let t=new Map,r;return i.forEach(s=>{if(s==="*"){r??=e.keys();for(let n of r)t.set(n,le)}else for(let[n,o]of s)t.set(n,o)}),t}function js(i,e,t,r,s,n,o,a,l,c,f,u,p){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:n,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:f,totalTime:u,errors:p}}var Er={},Dt=class{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,s){return ea(this.ast.matchers,e,t,r,s)}buildStyles(e,t,r){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,r):new Map}build(e,t,r,s,n,o,a,l,c,f){let u=[],p=this.ast.options&&this.ast.options.params||Er,g=a&&a.params||Er,h=this.buildStyles(r,g,u),d=l&&l.params||Er,b=this.buildStyles(s,d,u),A=new Set,N=new Map,k=new Map,E=s==="void",P={params:en(d,p),delay:this.ast.options?.delay},v=f?[]:Js(e,t,this.ast.animation,n,o,h,b,P,c,u),D=0;return v.forEach(I=>{D=Math.max(I.duration+I.delay,D)}),u.length?js(t,this._triggerName,r,s,E,h,b,[],[],N,k,D,u):(v.forEach(I=>{let ee=I.element,Me=W(N,ee,new Set);I.preStyleProps.forEach(Ee=>Me.add(Ee));let Wr=W(k,ee,new Set);I.postStyleProps.forEach(Ee=>Wr.add(Ee)),ee!==t&&A.add(ee)}),js(t,this._triggerName,r,s,E,h,b,v,[...A.values()],N,k,D))}};function ea(i,e,t,r,s){return i.some(n=>n(e,t,r,s))}function en(i,e){let t=_({},e);return Object.entries(i).forEach(([r,s])=>{s!=null&&(t[r]=s)}),t}var Rr=class{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){let r=new Map,s=en(e,this.defaultParams);return this.styles.styles.forEach(n=>{typeof n!="string"&&n.forEach((o,a)=>{o&&(o=qe(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),r.set(a,o)})}),r}};function ta(i,e,t){return new Dr(i,e,t)}var Dr=class{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let n=s.options&&s.options.params||{};this.states.set(s.name,new Rr(s.style,n,r))}),$s(this.states,"true","1"),$s(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Dt(e,s,this.states))}),this.fallbackTransition=ra(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,s){return this.transitionFactories.find(o=>o.match(e,t,r,s))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}};function ra(i,e,t){let r=[(o,a)=>!0],s={type:w.Sequence,steps:[],options:null},n={type:w.Transition,animation:s,matchers:r,options:null,queryCount:0,depCount:0};return new Dt(i,n,e)}function $s(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var ia=new Qe,Fr=class{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let r=[],s=[],n=Ys(this._driver,t,r,s);if(r.length)throw yo(r);s.length&&void 0,this._animations.set(e,n)}_buildPlayer(e,t,r){let s=e.element,n=Qs(this._normalizer,e.keyframes,t,r);return this._driver.animate(s,n,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){let s=[],n=this._animations.get(e),o,a=new Map;if(n?(o=Js(this._driver,t,n,Ws,br,new Map,new Map,r,ia,s),o.forEach(f=>{let u=W(a,f.element,new Map);f.postStyleProps.forEach(p=>u.set(p,null))})):(s.push(So()),o=[]),s.length)throw Eo(s);a.forEach((f,u)=>{f.forEach((p,g)=>{f.set(g,this._driver.computeStyle(u,g,le))})});let l=o.map(f=>{let u=a.get(f.element);return this._buildPlayer(f,new Map,u)}),c=Se(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw To(e);return t}listen(e,t,r,s){let n=zr(t,"","","");return $r(this._getPlayer(e),r,n,s),()=>{}}command(e,t,r,s){if(r=="register"){this.register(e,s[0]);return}if(r=="create"){let o=s[0]||{};this.create(e,t,o);return}let n=this._getPlayer(e);switch(r){case"play":n.play();break;case"pause":n.pause();break;case"reset":n.reset();break;case"restart":n.restart();break;case"finish":n.finish();break;case"init":n.init();break;case"setPosition":n.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},zs="ng-animate-queued",sa=".ng-animate-queued",Tr="ng-animate-disabled",na=".ng-animate-disabled",oa="ng-star-inserted",aa=".ng-star-inserted",la=[],tn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ca={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ie="__ng_removed",Ve=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let r=e&&e.hasOwnProperty("value"),s=r?e.value:e;if(this.value=fa(s),r){let n=e,{value:o}=n,a=Jr(n,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let r=this.options.params;Object.keys(t).forEach(s=>{r[s]==null&&(r[s]=t[s])})}}},Be="void",vr=new Ve(Be),kr=class{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,J(t,this._hostClassName)}listen(e,t,r,s){if(!this._triggers.has(t))throw vo(r,t);if(r==null||r.length==0)throw _o(t);if(!ha(r))throw bo(r,t);let n=W(this._elementListeners,e,[]),o={name:t,phase:r,callback:s};n.push(o);let a=W(this._engine.statesByElement,e,new Map);return a.has(t)||(J(e,_t),J(e,_t+"-"+t),a.set(t,vr)),()=>{this._engine.afterFlush(()=>{let l=n.indexOf(o);l>=0&&n.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw wo(e);return t}trigger(e,t,r,s=!0){let n=this._getTrigger(t),o=new Ge(this.id,t,e),a=this._engine.statesByElement.get(e);a||(J(e,_t),J(e,_t+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ve(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vr),!(c.value===Be)&&l.value===c.value){if(!ma(l.params,c.params)){let d=[],b=n.matchStyles(l.value,l.params,d),A=n.matchStyles(c.value,c.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(()=>{be(e,b),fe(e,A)})}return}let p=W(this._engine.playersByElement,e,[]);p.forEach(d=>{d.namespaceId==this.id&&d.triggerName==t&&d.queued&&d.destroy()});let g=n.matchTransition(l.value,c.value,e,c.params),h=!1;if(!g){if(!s)return;g=n.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(J(e,zs),o.onStart(()=>{De(e,zs)})),o.onDone(()=>{let d=this.players.indexOf(o);d>=0&&this.players.splice(d,1);let b=this._engine.playersByElement.get(e);if(b){let A=b.indexOf(o);A>=0&&b.splice(A,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let r=this._engine.driver.query(e,Ot,!0);r.forEach(s=>{if(s[ie])return;let n=this._engine.fetchNamespacesByElement(s);n.size?n.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,r,s){let n=this._engine.statesByElement.get(e),o=new Map;if(n){let a=[];if(n.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let f=this.trigger(e,c,Be,s);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),r&&Se(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){let s=new Set;t.forEach(n=>{let o=n.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=r.get(o)||vr,f=new Ve(Be),u=new Ge(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:f,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(r.totalAnimations){let n=r.players.length?r.playersByQueriedElement.get(e):[];if(n&&n.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)r.markElementAsRemoved(this.id,e,!1,t);else{let n=e[ie];(!n||n===tn)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){J(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(r=>{let s=r.player;if(s.destroyed)return;let n=r.element,o=this._elementListeners.get(n);o&&o.forEach(a=>{if(a.name==r.triggerName){let l=zr(n,r.triggerName,r.fromState.value,r.toState.value);l._data=e,$r(r.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{let n=r.transition.ast.depCount,o=s.transition.ast.depCount;return n==0||o==0?n-o:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Lr=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,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=(s,n)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){let r=new kr(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){let r=this._namespaceList,s=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=r.indexOf(l);r.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(e)}else r.push(e);return s.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let s=this._namespaceLookup[e];s&&s.register(t,r)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1),r.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,r=this.statesByElement.get(e);if(r){for(let s of r.values())if(s.namespaceId){let n=this._fetchNamespace(s.namespaceId);n&&t.add(n)}}return t}trigger(e,t,r,s){if(At(t)){let n=this._fetchNamespace(e);if(n)return n.trigger(t,r,s),!0}return!1}insertNode(e,t,r,s){if(!At(t))return;let n=t[ie];if(n&&n.setForRemoval){n.setForRemoval=!1,n.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),J(e,Tr)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),De(e,Tr))}removeNode(e,t,r){if(At(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r);let n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,r,s,n){this.collectedLeaveElements.push(t),t[ie]={namespaceId:e,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:n}}listen(e,t,r,s,n){return At(t)?this._fetchNamespace(e).listen(t,r,s,n):()=>{}}_buildInstruction(e,t,r,s,n){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,s,e.fromState.options,e.toState.options,t,n)}destroyInnerAnimations(e){let t=this.driver.query(e,Ot,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,wr,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Se(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ie];if(t&&t.setForRemoval){if(e[ie]=tn,t.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Tr)&&this.markElementAsDisabled(e,!1),this.driver.query(e,na,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],t.length?Se(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(e){throw Ao(e)}_flushAnimations(e,t){let r=new Qe,s=[],n=new Map,o=[],a=new Map,l=new Map,c=new Map,f=new Set;this.disabledNodes.forEach(m=>{f.add(m);let y=this.driver.query(m,sa,!0);for(let S=0;S{let S=Ws+d++;h.set(y,S),m.forEach(M=>J(M,S))});let b=[],A=new Set,N=new Set;for(let m=0;mA.add(M)):N.add(y))}let k=new Map,E=Bs(p,Array.from(A));E.forEach((m,y)=>{let S=br+d++;k.set(y,S),m.forEach(M=>J(M,S))}),e.push(()=>{g.forEach((m,y)=>{let S=h.get(y);m.forEach(M=>De(M,S))}),E.forEach((m,y)=>{let S=k.get(y);m.forEach(M=>De(M,S))}),b.forEach(m=>{this.processLeaveNode(m)})});let P=[],v=[];for(let m=this._namespaceList.length-1;m>=0;m--)this._namespaceList[m].drainQueuedTransitions(t).forEach(S=>{let M=S.player,$=S.element;if(P.push(M),this.collectedEnterElements.length){let q=$[ie];if(q&&q.setForMove){if(q.previousTriggersValues&&q.previousTriggersValues.has(S.triggerName)){let Te=q.previousTriggersValues.get(S.triggerName),Z=this.statesByElement.get(S.element);if(Z&&Z.has(S.triggerName)){let Ze=Z.get(S.triggerName);Ze.value=Te,Z.set(S.triggerName,Ze)}}M.destroy();return}}let se=!u||!this.driver.containsElement(u,$),G=k.get($),pe=h.get($),F=this._buildInstruction(S,r,pe,G,se);if(F.errors&&F.errors.length){v.push(F);return}if(se){M.onStart(()=>be($,F.fromStyles)),M.onDestroy(()=>fe($,F.toStyles)),s.push(M);return}if(S.isFallbackTransition){M.onStart(()=>be($,F.fromStyles)),M.onDestroy(()=>fe($,F.toStyles)),s.push(M);return}let Yr=[];F.timelines.forEach(q=>{q.stretchStartingKeyframe=!0,this.disabledNodes.has(q.element)||Yr.push(q)}),F.timelines=Yr,r.append($,F.timelines);let Nn={instruction:F,player:M,element:$};o.push(Nn),F.queriedElements.forEach(q=>W(a,q,[]).push(M)),F.preStyleProps.forEach((q,Te)=>{if(q.size){let Z=l.get(Te);Z||l.set(Te,Z=new Set),q.forEach((Ze,Vt)=>Z.add(Vt))}}),F.postStyleProps.forEach((q,Te)=>{let Z=c.get(Te);Z||c.set(Te,Z=new Set),q.forEach((Ze,Vt)=>Z.add(Vt))})});if(v.length){let m=[];v.forEach(y=>{m.push(Mo(y.triggerName,y.errors))}),P.forEach(y=>y.destroy()),this.reportError(m)}let D=new Map,I=new Map;o.forEach(m=>{let y=m.element;r.has(y)&&(I.set(y,y),this._beforeAnimationBuild(m.player.namespaceId,m.instruction,D))}),s.forEach(m=>{let y=m.element;this._getPreviousPlayers(y,!1,m.namespaceId,m.triggerName,null).forEach(M=>{W(D,y,[]).push(M),M.destroy()})});let ee=b.filter(m=>qs(m,l,c)),Me=new Map;Ks(Me,this.driver,N,c,le).forEach(m=>{qs(m,l,c)&&ee.push(m)});let Ee=new Map;g.forEach((m,y)=>{Ks(Ee,this.driver,new Set(m),l,lt)}),ee.forEach(m=>{let y=Me.get(m),S=Ee.get(m);Me.set(m,new Map([...y?.entries()??[],...S?.entries()??[]]))});let Qt=[],Zr=[],Xr={};o.forEach(m=>{let{element:y,player:S,instruction:M}=m;if(r.has(y)){if(f.has(y)){S.onDestroy(()=>fe(y,M.toStyles)),S.disabled=!0,S.overrideTotalTime(M.totalTime),s.push(S);return}let $=Xr;if(I.size>1){let G=y,pe=[];for(;G=G.parentNode;){let F=I.get(G);if(F){$=F;break}pe.push(G)}pe.forEach(F=>I.set(F,$))}let se=this._buildAnimation(S.namespaceId,M,D,n,Ee,Me);if(S.setRealPlayer(se),$===Xr)Qt.push(S);else{let G=this.playersByElement.get($);G&&G.length&&(S.parentPlayer=Se(G)),s.push(S)}}else be(y,M.fromStyles),S.onDestroy(()=>fe(y,M.toStyles)),Zr.push(S),f.has(y)&&s.push(S)}),Zr.forEach(m=>{let y=n.get(m.element);if(y&&y.length){let S=Se(y);m.setRealPlayer(S)}}),s.forEach(m=>{m.parentPlayer?m.syncPlayerEvents(m.parentPlayer):m.destroy()});for(let m=0;m!se.destroyed);$.length?da(this,y,$):this.processLeaveNode(y)}return b.length=0,Qt.forEach(m=>{this.players.push(m),m.onDone(()=>{m.destroy();let y=this.players.indexOf(m);this.players.splice(y,1)}),m.play()}),Qt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,s,n){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!n||n==Be;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(r||s)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){let s=t.triggerName,n=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,f=c!==n,u=W(r,c,[]);this._getPreviousPlayers(c,f,o,a,t.toState).forEach(g=>{let h=g.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),g.destroy(),u.push(g)})}be(n,t.fromStyles)}_buildAnimation(e,t,r,s,n,o){let a=t.triggerName,l=t.element,c=[],f=new Set,u=new Set,p=t.timelines.map(h=>{let d=h.element;f.add(d);let b=d[ie];if(b&&b.removedBeforeQueried)return new Pe(h.duration,h.delay);let A=d!==l,N=pa((r.get(d)||la).map(D=>D.getRealPlayer())).filter(D=>{let I=D;return I.element?I.element===d:!1}),k=n.get(d),E=o.get(d),P=Qs(this._normalizer,h.keyframes,k,E),v=this._buildPlayer(h,P,N);if(h.subTimeline&&s&&u.add(d),A){let D=new Ge(e,a,d);D.setRealPlayer(v),c.push(D)}return v});c.forEach(h=>{W(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>ua(this.playersByQueriedElement,h.element,h))}),f.forEach(h=>J(h,Fs));let g=Se(p);return g.onDestroy(()=>{f.forEach(h=>De(h,Fs)),fe(l,t.toStyles)}),u.forEach(h=>{W(s,h,[]).push(g)}),g}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new Pe(e.duration,e.delay)}},Ge=class{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new Pe,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,r)=>{t.forEach(s=>$r(e,r,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){W(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ua(i,e,t){let r=i.get(e);if(r){if(r.length){let s=r.indexOf(t);r.splice(s,1)}r.length==0&&i.delete(e)}return r}function fa(i){return i??null}function At(i){return i&&i.nodeType===1}function ha(i){return i=="start"||i=="done"}function Us(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Ks(i,e,t,r,s){let n=[];t.forEach(l=>n.push(Us(l)));let o=[];r.forEach((l,c)=>{let f=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,s);f.set(u,p),(!p||p.length==0)&&(c[ie]=ca,o.push(c))}),i.set(c,f)});let a=0;return t.forEach(l=>Us(l,n[a++])),o}function Bs(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let r=1,s=new Set(e),n=new Map;function o(a){if(!a)return r;let l=n.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=r:l=o(c),n.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==r&&t.get(l).push(a)}),t}function J(i,e){i.classList?.add(e)}function De(i,e){i.classList?.remove(e)}function da(i,e,t){Se(t).onDone(()=>i.processLeaveNode(e))}function pa(i){let e=[];return rn(i,e),e}function rn(i,e){for(let t=0;ts.add(n)):e.set(i,r),t.delete(i),!0}var ke=class{constructor(e,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,n)=>{},this._transitionEngine=new Lr(e.body,t,r),this._timelineEngine=new Fr(e.body,t,r),this._transitionEngine.onRemovalComplete=(s,n)=>this.onRemovalComplete(s,n)}registerTrigger(e,t,r,s,n){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],f=Ys(this._driver,n,l,c);if(l.length)throw mo(s,l);c.length&&void 0,a=ta(s,f,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,s){this._transitionEngine.insertNode(e,t,r,s)}onRemove(e,t,r){this._transitionEngine.removeNode(e,t,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,s){if(r.charAt(0)=="@"){let[n,o]=Rs(r),a=s;this._timelineEngine.command(n,t,o,a)}else this._transitionEngine.trigger(e,t,r,s)}listen(e,t,r,s,n){if(r.charAt(0)=="@"){let[o,a]=Rs(r);return this._timelineEngine.listen(o,t,a,n)}return this._transitionEngine.listen(e,t,r,s,n)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ga(i,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=_r(e[0]),e.length>1&&(r=_r(e[e.length-1]))):e instanceof Map&&(t=_r(e)),t||r?new xr(i,t,r):null}var Fe=class Fe{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let s=Fe.initialStylesByElement.get(e);s||Fe.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&fe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fe(this._element,this._initialStyles),this._endStyles&&(fe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Fe.initialStylesByElement.delete(this._element),this._startStyles&&(be(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(be(this._element,this._endStyles),this._endStyles=null),fe(this._element,this._initialStyles),this._state=3)}};Fe.initialStylesByElement=new WeakMap;var xr=Fe;function _r(i){let e=null;return i.forEach((t,r)=>{ya(r)&&(e=e||new Map,e.set(r,t))}),e}function ya(i){return i==="display"||i==="position"}var Ft=class{constructor(e,t,r,s){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=s,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(e,t,r){return e.animate(this._convertKeyframesToObject(t),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,s)=>{s!=="offset"&&e.set(s,this._finished?r:qr(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}},kt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Vs(e,t)}getParentElement(e){return Ur(e)}query(e,t,r){return Gs(e,t,r)}computeStyle(e,t,r){return qr(e,t)}animate(e,t,r,s,n,o=[]){let a=s==0?"both":"forwards",l={duration:r,delay:s,fill:a};n&&(l.easing=n);let c=new Map,f=o.filter(g=>g instanceof Ft);xo(r,s)&&f.forEach(g=>{g.currentSnapshot.forEach((h,d)=>c.set(d,h))});let u=Fo(t).map(g=>new Map(g));u=jo(e,u,c);let p=ga(e,u);return new Ft(e,u,l,p)}};var Mt="@",sn="@.disabled",Lt=class{constructor(e,t,r,s){this.namespaceId=e,this.delegate=t,this.engine=r,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,s=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,s){this.delegate.setAttribute(e,t,r,s)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,s){this.delegate.setStyle(e,t,r,s)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){t.charAt(0)==Mt&&t==sn?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},jr=class extends Lt{constructor(e,t,r,s,n){super(t,r,s,n),this.factory=e,this.namespaceId=t}setProperty(e,t,r){t.charAt(0)==Mt?t.charAt(1)=="."&&t==sn?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,t.slice(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if(t.charAt(0)==Mt){let s=Sa(e),n=t.slice(1),o="";return n.charAt(0)!=Mt&&([n,o]=Ea(n)),this.engine.listen(this.namespaceId,s,n,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,r,a)})}return this.delegate.listen(e,t,r)}};function Sa(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Ea(i){let e=i.indexOf("."),t=i.substring(0,e),r=i.slice(e+1);return[t,r]}var xt=class{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,n)=>{let o=n?.parentNode(s);o&&n.removeChild(o,s)}}createRenderer(e,t){let r="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,f=c.get(s);if(!f){let u=()=>c.delete(s);f=new Lt(r,s,this.engine,u),c.set(s,f)}return f}let n=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(n,o,e,c.name,c)};return t.data.animation.forEach(a),new jr(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){if(e>=0&&et(r));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(n=>{let[o,a]=n;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var va=(()=>{let e=class e extends ke{constructor(r,s,n){super(r,s,n)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(T(_i),T(we),T(Ae))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();function _a(){return new Nt}function ba(i,e,t){return new xt(i,e,t)}var on=[{provide:Ae,useFactory:_a},{provide:ke,useClass:va},{provide:Ti,useFactory:ba,deps:[Ci,ke,Ye]}],nn=[{provide:we,useFactory:()=>new kt},{provide:Wt,useValue:"BrowserAnimations"},...on],wa=[{provide:we,useClass:Kr},{provide:Wt,useValue:"NoopAnimations"},...on],an=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:r.disableAnimations?wa:nn}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({providers:nn,imports:[et]});let i=e;return i})();var jt=class{constructor(e){this.httpClient=e}get httpHeaders(){return new wi}getRequestOptions(e){let t=e.getParams||void 0;return{headers:this.httpHeaders,params:t}}serviceCall(e){return Je()&&console.log(`serviceCall@Client - ${e.getMethod} - ${e.getUrl}`),K(e).pipe(U(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(ui(t.getMockDelay));switch(t.getMethod){case"GET":return this.httpClient.get(t.getUrl,this.getRequestOptions(t));case"POST":return this.httpClient.post(t.getUrl,t.getBody,this.getRequestOptions(t));case"PUT":return this.httpClient.put(t.getUrl,null,this.getRequestOptions(t));default:throw new Error(`Unsupported method: ${t.getMethod}`)}}))}};var Ma=(()=>{let e=class e{constructor(r){this.bannerService=r}handleError(r,s){let n=s.error,{error:o}=n;switch(s.status){case 400:case 404:case 500:case 503:this.spawnNotification(o);break;case 504:this.spawnNotification(n);break;default:this.spawnNotification(o);break}return ni(()=>s)}spawnNotification(r){this.bannerService.showError(r)}};e.\u0275fac=function(s){return new(s||e)(T(Ie))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ln=(()=>{let e=class e{constructor(r){this.errorHandler=r}intercept(r,s){return s.handle(r).pipe(Q(n=>this.errorHandler.handleError(r,n)))}};e.\u0275fac=function(s){return new(s||e)(T(Ma))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Oa={defaultMode:void 0,currentMode:void 0},cn=ae(Oa,L(Ne.setDefaultMode,(i,{mode:e})=>C(_({},i),{defaultMode:e})),L(Ne.setCurrentMode,(i,{mode:e})=>C(_({},i),{currentMode:e})));var He=class extends ct{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var un=(()=>{let e=class e{constructor(r,s,n){this.apiClient=r,this.bannerService=s,this.actions$=n,this.uploadFile$=X(()=>this.actions$.pipe(Y(te.uploadFile),U(o=>this.apiClient.serviceCall(new He(o.file)).pipe(z(a=>te.uploadFileSuccess({data:a})),Q(a=>K(te.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=X(()=>this.actions$.pipe(Y(te.uploadFileAndCallScript),U(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new He(o.file)).pipe(U(a=>(this.bannerService.showSuccess("File uploaded successfully."),[te.uploadFileSuccess({data:a}),ut.callScript({configs:o.configs})])),Q(a=>K(te.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(Ie),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Ca={uploading:!1},fn=ae(Ca,L(te.uploadFile,i=>C(_({},i),{uploading:!0})),L(te.uploadFileSuccess,(i,{data:e})=>C(_({},i),{uploading:!1,uploadedData:e})),L(te.uploadFileFailure,(i,{error:e})=>C(_({},i),{uploading:!1,error:e})));var Rc=rt(ot,({fileState:i})=>i.uploading),Dc=rt(ot,({fileState:i})=>i.uploadedData),Fc=rt(ot,({fileState:i})=>i.error);var Na={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},hn=ae(Na,L(B.getModelsListSuccess,(i,{algorithmType:e,models:t})=>{switch(e){case je.QUANTIZATION:return C(_({},i),{quantizationModels:t,error:void 0});case je.PRUNING:return C(_({},i),{pruningModels:t,error:void 0});case je.MACHINE_UNLEARNING:return C(_({},i),{machineUnlearningModels:t,error:void 0});case je.AWQ:return C(_({},i),{awqModels:t,error:void 0});default:return i}}),L(B.getModelsListFailure,(i,{error:e})=>C(_({},i),{error:e})),L(B.getCurrentOrPreviousSelectedModelSuccess,(i,{model:e})=>C(_({},i),{currentModel:e})),L(B.getCurrentOrPreviousSelectedModelFailure,(i,{error:e})=>C(_({},i),{error:e})),L(B.getModelMetadataSuccess,(i,{metadata:e})=>C(_({},i),{modelMetadata:e,error:void 0})),L(B.getModelMetadataFailure,(i,{error:e})=>C(_({},i),{modelMetadata:{},error:e})));var $t=class extends ue{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var dn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.loadParameters$=X(()=>this.actions$.pipe(Y(ge.loadParameters),U(({arg:n})=>this.apiClient.serviceCall(new $t(n)).pipe(z(o=>ge.loadParametersSuccess({arg:n,parameters:o.parameters})),Q(o=>K(ge.loadParametersFailure({arg:n,error:o})))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Pa={},pn=ae(Pa,L(ge.loadParameters,(i,{arg:e})=>C(_({},i),{[e]:C(_({},i[e]),{loaded:!1,error:null})})),L(ge.loadParametersSuccess,(i,{arg:e,parameters:t})=>C(_({},i),{[e]:{data:t,error:null,loaded:!0}})),L(ge.loadParametersFailure,(i,{arg:e,error:t})=>C(_({},i),{[e]:C(_({},i[e]),{error:t,loaded:!0})})));var zt=class extends ue{constructor(){super("latest-messages",void 0,void 0,!1)}};var Ut=class extends ct{constructor(){super("clear-history",{},!1)}};var mn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.getLatestMessages$=X(()=>this.actions$.pipe(Y(re.getLatestMessages),U(()=>this.apiClient.serviceCall(new zt).pipe(z(n=>re.getLatestMessagesSuccess({messages:n})),Q(n=>K(re.getLatestMessagesFailure({error:n}))))))),this.postClearHistory$=X(()=>this.actions$.pipe(Y(re.postClearHistory),U(()=>this.apiClient.serviceCall(new Ut).pipe(z(()=>re.postClearHistorySuccess()),Q(n=>K(re.postClearHistoryFailure({error:n})))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Ia={messages:[],error:null},gn=ae(Ia,L(re.getLatestMessagesSuccess,(i,{messages:e})=>C(_({},i),{messages:e,error:null})),L(re.getLatestMessagesFailure,(i,{error:e})=>C(_({},i),{error:e})),L(re.postClearHistoryFailure,(i,{error:e})=>C(_({},i),{error:e})));var yn={auth:zi,configs:cn,script:qi,uploadFile:fn,charts:Hi,parameters:pn,terminal:gn,statistics:rs,models:hn};var Kt=class extends ue{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var Bt=class extends ue{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var qt=class extends ue{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var Sn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.loadModels$=X(()=>this.actions$.pipe(Y(B.getModelsList),U(n=>{let{algorithmType:o}=n;return this.apiClient.serviceCall(new qt(o)).pipe(z(a=>B.getModelsListSuccess({algorithmType:o,models:a})),Q(a=>K(B.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=X(()=>this.actions$.pipe(Y(B.getCurrentOrPreviousSelectedModel),U(n=>this.apiClient.serviceCall(new Kt(n.algorithmType)).pipe(z(o=>B.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Q(o=>K(B.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=X(()=>this.actions$.pipe(Y(B.getModelMetadata),U(n=>{let{algorithmType:o,modelName:a}=n;return this.apiClient.serviceCall(new Bt(o,a)).pipe(z(l=>B.getModelMetadataSuccess({metadata:l})),Q(l=>K(B.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var En=(()=>{let e=class e{constructor(r,s,n,o,a){if(this.registry=s,this.scriptFacadeService=n,this.navigationService=o,this.pageSpinningIndicatorService=a,r!==null)throw new Error("Core Module already loaded.");this.navigationService.trackNavigationHistory(),this.pageSpinningIndicatorService.trackCurrentRunningPage(),this.registerModelSmithIcons(),this.scriptFacadeService.dispatch(ut.fetchScriptStatus())}registerModelSmithIcons(){this.registry.registerFontClassAlias("icomoon","ms")}};e.\u0275fac=function(s){return new(s||e)(T(e,12),T(xi),T(ft),T(dt),T(ht))},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({providers:[is,Ue,dt,Tt,Et,Ie,ft,at,Ui,Xi,Zi,Wi,Yi,es,Ji,ht,ss,{provide:ce,useFactory:r=>new jt(r),deps:[Ai]},{provide:ns,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}},{provide:Zt,useClass:ln,multi:!0},{provide:Zt,useClass:os,multi:!0},Mi(Oi())],imports:[bi,et,an,it.forFeature("core",yn),st.forFeature([$i,Bi,un,Gi,dn,mn,ts,Sn])]});let i=e;return i})();var wn=In(bn(),1);var Hr="@ngrx/store/init",Qa="@ngrx/store/update-reducers",Va=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Ga=(i,e)=>typeof e=="string"&&Va.test(e)?new Date(e):e,Ha=(i,e)=>e,Wa=()=>typeof window<"u",Za=i=>i.map(e=>{let t=e;if(typeof e=="object"&&(t=Object.keys(e)[0]),typeof t!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof t}`);return e}),Xa=(i,e,t,r)=>i.reduce((s,n)=>{let o=n,a=r?Ga:Ha,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof n[o]=="function"?a=n[o]:(n[o].reviver&&(a=n[o].reviver),n[o].deserialize&&(l=n[o].deserialize)),n[o].encrypt&&n[o].decrypt?typeof n[o].encrypt=="function"&&typeof n[o].decrypt=="function"?c=n[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${n[o]}' key object.`):(n[o].encrypt||n[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${n[o]}' key object.`)),e!==void 0){let f=e.getItem(t(o));if(f){c&&(f=c(f));let u=new RegExp("{|\\["),p=f;return(f==="null"||f==="true"||f==="false"||u.test(f.charAt(0)))&&(p=JSON.parse(f,a)),Object.assign({},s,{[o]:l?l(p):p})}}return s},{});function An(i,e){return e.reduce((t,r)=>{if(typeof r=="string"||typeof r=="number"){let s=i?.[r];s!==void 0&&(t[r]=s)}else for(let s in r)if(Object.prototype.hasOwnProperty.call(r,s)){let n=r[s];t[s]=An(i[s],n)}return t},{})}var Ya=(i,e,t,r,s,n)=>{if(n)try{if(n(i)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=i[o],l,c,f;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=i[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let p;o[u].reduce?p=o[u]:o[u].filter&&(p=o[u].filter),p&&(a=An(a,p)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(f=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&t!==void 0)try{f&&(a=f(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(r(o),typeof a=="string"?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&s&&t!==void 0)try{t.removeItem(r(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},Ja=(i,e,t)=>((t.type===Hr||t.type===Qa)&&e&&(i=(0,wn.default)(i,e,{arrayMerge:(n,o,a)=>o})),i),Mn=i=>e=>{(i.storage===void 0&&!i.checkStorageAvailability||i.checkStorageAvailability&&Wa())&&(i.storage=localStorage||window.localStorage),i.storageKeySerializer===void 0&&(i.storageKeySerializer=n=>n),i.restoreDates===void 0&&(i.restoreDates=!0);let t=i.mergeReducer;(t===void 0||typeof t!="function")&&(t=Ja);let r=Za(i.keys),s=i.rehydrate?Xa(r,i.storage,i.storageKeySerializer,i.restoreDates):void 0;return function(n,o){let a;return o.type===Hr&&!n?a=e(n,o):a=_({},n),a=t(a,s,o),a=e(a,o),o.type!==Hr&&Ya(a,r,i.storage,i.storageKeySerializer,i.removeOnUndefined,i.syncCondition),a}};function el(i){let t={keys:[{[j.CORE.ROOT]:[j.AUTH.ROOT,j.CONFIGS.ROOT,j.SCRIPT.ROOT]}],rehydrate:!0};return Mn(t)(i)}var On=[el];var Cn=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e,bootstrap:[vt]}),e.\u0275inj=ne({imports:[En,Ps,Vi,it.forRoot({},{metaReducers:On}),Ns.instrument({maxAge:25,logOnly:Je(),connectInZone:!0}),st.forRoot([])]});let i=e;return i})();Ni().bootstrapModule(Cn).catch(i=>console.error(i));