diff --git a/frontend/server/modelsmith-build/browser/chunk-3RQYPCLL.js b/frontend/server/modelsmith-build/browser/chunk-3RQYPCLL.js deleted file mode 100644 index 8527aaf4..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-3RQYPCLL.js +++ /dev/null @@ -1 +0,0 @@ -import{a as N}from"./chunk-QWPZ5EFE.js";import{a as I}from"./chunk-R5J4FM6S.js";import"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import{a as Nt,b as It}from"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as _,b as Et,c as Rt,d as B}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as g,d as Q,e as Tt,g as f,k as Mt,p as Ot}from"./chunk-W4U3FJPJ.js";import{a as Pt,b as _t}from"./chunk-2FJ2YO2M.js";import{a as O,b as P,d as bt,k as Gt}from"./chunk-PSFPSLKI.js";import{a as F,b as d}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import{h as At,i as Ft}from"./chunk-HG2O7P4S.js";import{$ as v,Ab as ot,E as y,Ea as n,Fa as c,I as q,J as x,L as Z,Q as J,Qa as j,Sa as a,Tb as nt,Td as lt,Ud as pt,a as R,ab as m,b as L,bb as s,bc as at,be as ct,cb as D,ce as u,da as W,db as X,dd as st,eb as Y,ee as ht,fe as T,gb as tt,ge as M,ha as C,ia as A,ie as ft,jb as K,me as dt,ne as ut,oc as mt,p as S,pa as w,pe as gt,qa as k,qb as et,rb as it,sb as rt,sc as V,se as St,te as yt,ub as h,ue as vt,wb as U,x as $,xe as Ct}from"./chunk-NPZHNGVX.js";function Dt(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 Kt(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=Et,this.quantAlgorithmsList=Rt,this.ALGORITHM_CONTROL_NAME="alg"}ngOnInit(){this.initForm(),this.listenToScriptStateChanges(),this.loadInitialData()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(J(1),x(1),y(t=>!Tt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===f.PRUNING||e===f.QUANTIZATION?t.algKey:B;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(O.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new M({[this.ALGORITHM_CONTROL_NAME]:new ft(B,ct.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(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(u),c(P))},l.\u0275cmp=C({type:l,selectors:[["ms-panel-algorithm"]],inputs:{controlKey:"controlKey"},features:[ot([],[{provide:u,useFactory:()=>W(u,{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,Dt,2,2,"mat-option",6),s(),m(8,"mat-optgroup",7),j(9,Kt,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,Pt,At,Nt,pt,lt,ht,T,gt,ut]}),l);b=S([F()],b);var H="custommodel";function Lt(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 Vt=["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 M({}),this.AlgorithmType=f,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Mt.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)),d(this)).subscribe(t=>{this.selectedAlgorithm=t,this.selectedAlgorithmType=Ot(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(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?Lt(this.fileService?.file.name):i,E=L(R({},t),{params:L(R({},this.panelParametersComponent.parametersFormatted),{arch:o})});this.scriptFacadeService.dispatch(O.callScript({configs:E}))}goToChartPage(){this.router.navigate([st.RUNNING.ROOT])}},p.\u0275fac=function(e){return new(e||p)(c(P),c(Gt),c(bt),c(mt))},p.\u0275cmp=C({type:p,selectors:[["ms-machine-unlearning"]],viewQuery:function(e,i){if(e&1&&et(Vt,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:[_,N,I,T,dt,vt,b],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),p);G=S([F()],G);var Qt=[{path:"",component:G}],wt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[V.forChild(Qt),V]});let r=t;return r})();var He=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,wt,_,N,I,_t,Ft,It,St,yt,Ct]});let r=t;return r})();export{He as ModelCompressionModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-VUPIOU6P.js b/frontend/server/modelsmith-build/browser/chunk-452CEXFK.js similarity index 90% rename from frontend/server/modelsmith-build/browser/chunk-VUPIOU6P.js rename to frontend/server/modelsmith-build/browser/chunk-452CEXFK.js index 3e0f3169..aad81ec9 100644 --- a/frontend/server/modelsmith-build/browser/chunk-VUPIOU6P.js +++ b/frontend/server/modelsmith-build/browser/chunk-452CEXFK.js @@ -1 +1 @@ -import{$ as d,Bb as m,Kd as n,Ra as c,Ua as v,fd as a,ha as s,ia as l}from"./chunk-NPZHNGVX.js";var u=(()=>{let t=class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=a(e)}get inset(){return this._inset}set inset(e){this._inset=a(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=s({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(c("aria-orientation",o.vertical?"vertical":"horizontal"),v("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[m],decls:0,vars:0,template:function(r,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 i=t;return i})(),g=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=d({imports:[n,n]});let i=t;return i})();export{u as a,g as b}; +import{$ as d,Bb as m,Hd as n,Ra as c,Ua as v,cd as a,ha as s,ia as l}from"./chunk-I5FNXPEQ.js";var u=(()=>{let t=class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=a(e)}get inset(){return this._inset}set inset(e){this._inset=a(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=s({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(c("aria-orientation",o.vertical?"vertical":"horizontal"),v("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[m],decls:0,vars:0,template:function(r,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 i=t;return i})(),g=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=d({imports:[n,n]});let i=t;return i})();export{u as a,g as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-4EAU6CO5.js b/frontend/server/modelsmith-build/browser/chunk-4EAU6CO5.js deleted file mode 100644 index 8968014f..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-4EAU6CO5.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as D}from"./chunk-HG2O7P4S.js";import{Bb as C,Ea as m,Fa as i,Na as f,Qa as d,Sa as p,T as a,Ub as I,ab as u,bb as h,bc as x,de as _,ha as c,j as s,ja as l,jb as g,lb as y,ub as E,wb as v}from"./chunk-NPZHNGVX.js";function F(e,t){if(e&1&&(u(0,"mat-error",1),E(1),h()),e&2){let R=y();m(),v(" ",R.text,` -`)}}var b=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=c({type:t,selectors:[["ms-error-message"]],inputs:{text:"text"},standalone:!0,features:[C],decls:1,vars:1,consts:[["class","error-message",4,"ngIf"],[1,"error-message"]],template:function(r,o){r&1&&d(0,F,2,1,"mat-error",0),r&2&&p("ngIf",o.text)},dependencies:[x,I,D],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)}}"]});let e=t;return e})();var M="onlyDigits";function O(e){if(!e)return;let t=Object.keys(e)[0];switch(t){case"required":return"Field required";case"email":return"Email required";case M:return"Only numeric characters allowed";default:return t}}var q=(()=>{let t=class t{constructor(n,r){this.control=n,this.vcr=r,this._destroyed$=new s}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(a(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(b);let n=this.componentRef.location.nativeElement;n.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(n)}this.componentRef.instance&&(this.componentRef.instance.text=O(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)(i(_),i(f))},t.\u0275dir=l({type:t,selectors:[["","msErrorDisplay",""]],hostBindings:function(r,o){r&1&&g("blur",function(){return o.onBlur()})},standalone:!0});let e=t;return e})();export{q as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-5CZGCFN5.js b/frontend/server/modelsmith-build/browser/chunk-5CZGCFN5.js new file mode 100644 index 00000000..556ae0bf --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-5CZGCFN5.js @@ -0,0 +1 @@ +import{a as gi,b as fi}from"./chunk-I4357ONH.js";import{$ as q,$a as ai,Ab as di,Ba as X,Bb as C,Bd as li,D as A,Dd as pi,Ea as m,Fa as r,Hd as z,Jd as mi,Ka as Y,Kd as ui,Lb as H,Ma as J,Md as _i,Nb as u,Ob as M,Pa as E,Qa as T,Qb as si,R as k,Ra as D,S as Q,Sa as ii,T as g,Ua as y,Vd as vi,Wa as ti,Ya as B,Za as ei,_a as ci,aa as _,ab as d,bb as l,cb as j,da as R,gb as ni,ha as f,hb as oi,ia as N,j as x,ja as G,jb as v,lb as F,mb as P,nb as w,pa as K,pb as p,qa as W,qb as ri,rb as s,sb as h,ua as U,ub as O,va as $,vb as L,xa as S,xd as hi,ya as b,za as Z}from"./chunk-I5FNXPEQ.js";var Di=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fi=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Mi(a,c){a&1&&(d(0,"span",3),w(1,1),l())}function Ai(a,c){a&1&&(d(0,"span",6),w(1,2),l())}var Ri=["*"];var Ti=new _("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),bi=new _("MatChipAvatar"),yi=new _("MatChipTrailingIcon"),wi=new _("MatChipRemove"),xi=new _("MatChip"),Ci=(()=>{let c=class c{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,t){this._elementRef=i,this._parentChip=t,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())}};c.\u0275fac=function(t){return new(t||c)(r(S),r(xi))},c.\u0275dir=G({type:c,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(t,e){t&1&&v("click",function(n){return e._handleClick(n)})("keydown",function(n){return e._handleKeydown(n)}),t&2&&(D("tabindex",e._getTabindex())("disabled",e._getDisabledAttribute())("aria-disabled",e.disabled),y("mdc-evolution-chip__action--primary",e._isPrimary)("mdc-evolution-chip__action--presentational",!e.isInteractive)("mdc-evolution-chip__action--trailing",!e._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:M(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[E]});let a=c;return a})();var Bi=0,ji=(()=>{let c=class c{_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,t,e,o,n,ki,Si,V){this._changeDetectorRef=i,this._elementRef=t,this._ngZone=e,this._focusMonitor=o,this._globalRippleOptions=Si,this._onFocus=new x,this._onBlur=new x,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${Bi++}`,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=R(vi),this._injector=R($),this._document=n,this._animationsDisabled=ki==="NoopAnimations",V!=null&&(this.tabIndex=parseInt(V)??-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=A(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(t=>{let e=t._elementRef.nativeElement;return e===i||e.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 t=i!==null;t!==this._hasFocusInternal&&(this._hasFocusInternal=t,t?this._onFocus.next({chip:this}):J(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};c.\u0275fac=function(t){return new(t||c)(r(H),r(S),r(Y),r(li),r(si),r(X,8),r(ui,8),U("tabindex"))},c.\u0275cmp=f({type:c,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,o){if(t&1&&(p(o,bi,5),p(o,yi,5),p(o,wi,5),p(o,bi,5),p(o,yi,5),p(o,wi,5)),t&2){let n;s(n=h())&&(e.leadingIcon=n.first),s(n=h())&&(e.trailingIcon=n.first),s(n=h())&&(e.removeIcon=n.first),s(n=h())&&(e._allLeadingIcons=n),s(n=h())&&(e._allTrailingIcons=n),s(n=h())&&(e._allRemoveIcons=n)}},viewQuery:function(t,e){if(t&1&&ri(Ci,5),t&2){let o;s(o=h())&&(e.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&(oi("id",e.id),D("role",e.role)("tabindex",e._getTabIndex())("aria-label",e.ariaLabel),ti("mat-"+(e.color||"primary")),y("mdc-evolution-chip",!e._isBasicChip)("mdc-evolution-chip--disabled",e.disabled)("mdc-evolution-chip--with-trailing-action",e._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",e.leadingIcon)("mdc-evolution-chip--with-primary-icon",e.leadingIcon)("mdc-evolution-chip--with-avatar",e.leadingIcon)("mat-mdc-chip-with-avatar",e.leadingIcon)("mat-mdc-chip-highlighted",e.highlighted)("mat-mdc-chip-disabled",e.disabled)("mat-mdc-basic-chip",e._isBasicChip)("mat-mdc-standard-chip",!e._isBasicChip)("mat-mdc-chip-with-trailing-icon",e._hasTrailingIcon())("_mat-animation-noopable",e._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",u],highlighted:[2,"highlighted","highlighted",u],disableRipple:[2,"disableRipple","disableRipple",u],disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:M(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[di([{provide:xi,useExisting:c}]),E,C],ngContentSelectors:Fi,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(t,e){t&1&&(P(Di),j(0,"span",0),d(1,"span",1)(2,"span",2),T(3,Mi,2,0,"span",3),d(4,"span",4),w(5),j(6,"span",5),l()()(),T(7,Ai,2,0,"span",6)),t&2&&(m(2),ii("isInteractive",!1),m(),B(e.leadingIcon?3:-1),m(4),B(e._hasTrailingIcon()?7:-1))},dependencies:[Ci],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 a=c;return a})();var ut=(()=>{let c=class c{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,t,e){this._elementRef=i,this._changeDetectorRef=t,this._dir=e,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new x,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Z}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(k(null),Q(()=>A(...this._chips.map(i))))}_originatesFromChip(i){let t=i.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-mdc-chip"))return!0;t=t.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(k(this._chips)).subscribe(i=>{let t=[];i.forEach(e=>e._getActions().forEach(o=>t.push(o))),this._chipActions.reset(t),this._chipActions.notifyOnChanges()}),this._keyManager=new hi(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(g(this._destroyed)).subscribe(({chip:i})=>{let t=i._getSourceAction(document.activeElement);t&&this._keyManager.updateActiveItem(t)}),this._dir?.change.pipe(g(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(k(null),g(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(g(this._destroyed)).subscribe(i=>{let e=this._chips.toArray().indexOf(i.chip);this._isValidIndex(e)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=e)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),t=this._chips.toArray()[i];t.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():t.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};c.\u0275fac=function(t){return new(t||c)(r(S),r(H),r(pi,8))},c.\u0275cmp=f({type:c,selectors:[["mat-chip-set"]],contentQueries:function(t,e,o){if(t&1&&p(o,ji,5),t&2){let n;s(n=h())&&(e._chips=n)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&D("role",e.role)},inputs:{disabled:[2,"disabled","disabled",u],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:M(i)]},standalone:!0,features:[E,C],ngContentSelectors:Ri,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,e){t&1&&(P(),d(0,"div",0),w(1),l())},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 a=c;return a})();var _t=(()=>{let c=class c{};c.\u0275fac=function(t){return new(t||c)},c.\u0275mod=N({type:c}),c.\u0275inj=q({providers:[mi,{provide:Ti,useValue:{separatorKeyCodes:[13]}}],imports:[z,_i,z]});let a=c;return a})();function Pi(a,c){if(a&1){let I=ni();d(0,"mat-card",2),v("click",function(){let t=K(I).$implicit,e=F();return W(e.selectCard(t))}),d(1,"span",3),O(2),l()()}if(a&2){let I=c.$implicit,i=F();y("selected",i.activeCard===I),m(2),L(I)}}var It=(()=>{let c=class c{constructor(){this.options=[],this.selectedOption=new b,this.activeCard=null}selectCard(i){this.activeCard=this.activeCard===i?null:i,this.selectedOption.emit(this.activeCard)}};c.\u0275fac=function(t){return new(t||c)},c.\u0275cmp=f({type:c,selectors:[["ms-card-selector"]],inputs:{options:"options"},outputs:{selectedOption:"selectedOption"},standalone:!0,features:[C],decls:3,vars:0,consts:[[1,"cards-section"],[1,"ms-card","action-card",3,"selected"],[1,"ms-card","action-card",3,"click"],[1,"heading-sub-section-title"]],template:function(t,e){t&1&&(d(0,"div",0),ci(1,Pi,3,3,"mat-card",1,ei),l()),t&2&&(m(),ai(e.options))},dependencies:[fi,gi],styles:[".cards-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]});let a=c;return a})();export{ji as a,ut as b,_t as c,It as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-KR5OA5AZ.js b/frontend/server/modelsmith-build/browser/chunk-6RJJ2MSN.js similarity index 72% rename from frontend/server/modelsmith-build/browser/chunk-KR5OA5AZ.js rename to frontend/server/modelsmith-build/browser/chunk-6RJJ2MSN.js index 445e429a..dcf9bf40 100644 --- a/frontend/server/modelsmith-build/browser/chunk-KR5OA5AZ.js +++ b/frontend/server/modelsmith-build/browser/chunk-6RJJ2MSN.js @@ -1 +1 @@ -import{a as u}from"./chunk-QWPZ5EFE.js";import{a as g}from"./chunk-R5J4FM6S.js";import"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as h}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as N,g as z,l as U}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as x,b as J}from"./chunk-PSFPSLKI.js";import{a as k,b as D}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as l,Ea as m,Fa as f,Sa as a,a as v,ab as s,b as M,bb as p,bc as V,cb as b,db as P,dd as O,eb as E,fe as Q,gb as I,ha as F,ia as c,jb as T,me as B,oc as j,p as w,pa as y,qa as S,qb as R,rb as _,re as L,sb as G,sc as A,se as H,te as K,ub as d,ue as q,xe as $}from"./chunk-NPZHNGVX.js";var Z=["panelParameters"],o,C=(o=class{constructor(e,i,t){this.fb=e,this.scriptFacadeService=i,this.router=t,this.AlgorithmType=z,this.MachineUnlearningAlgorithmsEnum=U,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(D(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=M(v({},e),{params:M(v({},this.panelParametersComponent.parametersFormatted),{arch:t})});this.scriptFacadeService.dispatch(x.callScript({configs:r}))}goToChartPage(){this.router.navigate([O.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(L),f(J),f(j))},o.\u0275cmp=F({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,t){if(i&1&&R(Z,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),d(1,"Machine Unlearning"),p(),s(2,"div",2)(3,"div",3),P(4,4),b(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),E(),s(8,"div")(9,"button",7),T("click",function(){return y(r),S(t.submit())}),d(10," Run "),p(),s(11,"button",8),T("click",function(){return y(r),S(t.goToChartPage())}),d(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:[h,g,u,q,Q,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=w([k()],C);var ee=[{path:"",component:C}],X=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[A.forChild(ee),A]});let n=e;return n})();var Fe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[V,X,h,g,u,$,H,K]});let n=e;return n})();export{Fe as MachineUnlearningModule}; +import{a as u}from"./chunk-DKMMNZKM.js";import{a as g}from"./chunk-D4NO5T2F.js";import"./chunk-M3BJA4RX.js";import"./chunk-DFEVON6A.js";import"./chunk-HHI42NCD.js";import"./chunk-YTNKLUWY.js";import"./chunk-A3HRP5BG.js";import"./chunk-VRD7QX3W.js";import"./chunk-452CEXFK.js";import"./chunk-SWEZDJOL.js";import{a as h}from"./chunk-OMCAGIEN.js";import"./chunk-BY5EH3KZ.js";import"./chunk-W5GEUOC3.js";import{b as N,g as z,l as U}from"./chunk-W4U3FJPJ.js";import"./chunk-I4357ONH.js";import{a as x,b as J}from"./chunk-KE2JE72J.js";import{a as k,b as D}from"./chunk-COKZMNNS.js";import"./chunk-LDDHJMMZ.js";import"./chunk-RTK5DRKR.js";import{$ as l,Ea as m,Fa as f,Sa as a,_b as V,a as v,ab as s,ad as O,b as M,bb as p,cb as b,ce as Q,db as P,eb as E,gb as I,ha as F,ia as c,jb as T,je as B,lc as j,oe as L,p as w,pa as y,pc as A,pe as H,qa as S,qb as R,qe as K,rb as _,re as q,sb as G,ub as d,ue as $}from"./chunk-I5FNXPEQ.js";var Z=["panelParameters"],o,C=(o=class{constructor(e,i,t){this.fb=e,this.scriptFacadeService=i,this.router=t,this.AlgorithmType=z,this.MachineUnlearningAlgorithmsEnum=U,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(D(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=M(v({},e),{params:M(v({},this.panelParametersComponent.parametersFormatted),{arch:t})});this.scriptFacadeService.dispatch(x.callScript({configs:r}))}goToChartPage(){this.router.navigate([O.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(L),f(J),f(j))},o.\u0275cmp=F({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,t){if(i&1&&R(Z,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),d(1,"Machine Unlearning"),p(),s(2,"div",2)(3,"div",3),P(4,4),b(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),E(),s(8,"div")(9,"button",7),T("click",function(){return y(r),S(t.submit())}),d(10," Run "),p(),s(11,"button",8),T("click",function(){return y(r),S(t.goToChartPage())}),d(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:[h,g,u,q,Q,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=w([k()],C);var ee=[{path:"",component:C}],X=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[A.forChild(ee),A]});let n=e;return n})();var Fe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[V,X,h,g,u,$,H,K]});let n=e;return n})();export{Fe as MachineUnlearningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-URO2J7UO.js b/frontend/server/modelsmith-build/browser/chunk-6USI7MSU.js similarity index 96% rename from frontend/server/modelsmith-build/browser/chunk-URO2J7UO.js rename to frontend/server/modelsmith-build/browser/chunk-6USI7MSU.js index a12d4a1b..038d597b 100644 --- a/frontend/server/modelsmith-build/browser/chunk-URO2J7UO.js +++ b/frontend/server/modelsmith-build/browser/chunk-6USI7MSU.js @@ -1 +1 @@ -import{c as Be,p as Ne,r as He,s as P,v as Ye}from"./chunk-NT2MTW7W.js";import{$ as _e,Ab as Pe,Ac as me,Ad as xe,Bb as ae,Bd as Ae,Cc as V,Cd as Oe,D as S,E as g,Ea as $,Ed as le,Fa as r,Ga as J,Gd as Fe,J as W,K as G,Ka as ee,Kd as ce,Lb as k,Ma as Me,Na as ye,Nb as R,Od as je,Pa as te,Pd as Le,Qa as ie,Qb as Ee,R as x,Ra as y,S as K,Sa as ne,T as A,Ua as Ie,Wa as Ce,Ya as we,a as E,aa as v,ab as I,b as pe,bb as L,bc as De,cb as se,da as O,g as D,gb as ke,ha as Z,ia as fe,j as T,ja as ge,jb as B,lb as c,m as Q,mb as oe,nb as N,nd as Te,pa as b,pb as H,qa as M,qb as Re,ra as ve,rb as C,s as X,sb as w,sd as Se,va as q,vc as re,wc as Y,xa as F,ya as j,za as be,zc as u}from"./chunk-NPZHNGVX.js";var qe=["mat-menu-item",""],$e=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Je=["mat-icon, [matMenuItemIcon]","*"];function et(a,o){a&1&&(ve(),I(0,"svg",2),se(1,"polygon",3),L())}var tt=["*"];function it(a,o){if(a&1){let m=ke();I(0,"div",0),B("keydown",function(t){b(m);let i=c();return M(i._handleKeydown(t))})("click",function(){b(m);let t=c();return M(t.closed.emit("click"))})("@transformMenu.start",function(t){b(m);let i=c();return M(i._onAnimationStart(t))})("@transformMenu.done",function(t){b(m);let i=c();return M(i._onAnimationDone(t))}),I(1,"div",1),N(2),L()()}if(a&2){let m=c();Ce(m._classList),ne("id",m.panelId)("@transformMenu",m._panelAnimationState),y("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}var de=new v("MAT_MENU_PANEL"),ue=(()=>{let o=class o{constructor(e,t,i,n,s){this._elementRef=e,this._document=t,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new T,this._focused=new T,this._highlighted=!1,this._triggersSubmenu=!1,n?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",Y("120ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:1,transform:"scale(1)"}))),V("* => void",Y("100ms 25ms linear",u({opacity:0})))]),fadeInItems:re("fadeInItems",[me("showing",u({opacity:1})),V("void => *",[u({opacity:0}),Y("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yt=U.fadeInItems,Vt=U.transformMenu,st=0,ot=new v("mat-menu-default-options",{providedIn:"root",factory:at});function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var z=(()=>{let o=class o{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let t=this._previousPanelClass,i=E({},this._classList);t&&t.length&&t.split(" ").forEach(n=>{i[n]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(n=>{i[n]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,i,n){this._elementRef=e,this._changeDetectorRef=n,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new be,this._classList={},this._panelAnimationState="void",this._animationDone=new T,this.closed=new j,this.close=this.closed,this.panelId=`mat-menu-panel-${st++}`,this._injector=O(q),this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new xe(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(e=>S(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),n=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[n]&&!i[n].disabled?t.setActiveItem(n):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(t=>S(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Se(e)||(e.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:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Me(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let l=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(l)}let t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!n||n===this._previousElevation){let s=E({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[i]=!0,this._previousElevation=i,this._classList=s}}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=pe(E({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(x(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};o.\u0275fac=function(t){return new(t||o)(r(F),r(ee),r(ot),r(k))},o.\u0275cmp=Z({type:o,selectors:[["mat-menu"]],contentQueries:function(t,i,n){if(t&1&&(H(n,nt,5),H(n,ue,5),H(n,ue,4)),t&2){let s;C(s=w())&&(i.lazyContent=s.first),C(s=w())&&(i._allItems=s),C(s=w())&&(i.items=s)}},viewQuery:function(t,i){if(t&1&&Re(J,5),t&2){let n;C(n=w())&&(i.templateRef=n.first)}},hostVars:3,hostBindings:function(t,i){t&2&&y("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",R],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:R(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Pe([{provide:de,useExisting:o}]),te,ae],ngContentSelectors:tt,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(t,i){t&1&&(oe(),ie(0,it,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:[U.transformMenu,U.fadeInItems]},changeDetection:0});let a=o;return a})(),Qe=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let a=O(P);return()=>a.scrollStrategies.reposition()}});function rt(a){return()=>a.scrollStrategies.reposition()}var mt={provide:Qe,deps:[P],useFactory:rt},Ve=Te({passive:!0});var zt=(()=>{let o=class o{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,i,n,s,l,d,h,p){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=l,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.EMPTY,this._hoverSubscription=D.EMPTY,this._menuCloseSubscription=D.EMPTY,this._changeDetectorRef=O(k),this._handleTouchStart=_=>{Oe(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new j,this.onMenuOpen=this.menuOpened,this.menuClosed=new j,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof z?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ve)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ve),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 e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),i=t.getConfig(),n=i.positionStrategy;this._setPosition(e,n),i.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof z&&(e._startAnimation(),e._directDescendantItems.changes.pipe(A(e.close)).subscribe(()=>{n.withLockedPosition(!1).reapplyLastPosition(),n.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof z?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(g(i=>i.toState==="void"),W(1),A(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,i=e.parentMenu;for(;i;)t++,i=i.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new He({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{let n=i.connectionPair.overlayX==="start"?"after":"before",s=i.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(n,s)):e.setPositionClasses(n,s)})}_setPosition(e,t){let[i,n]=e.xPosition==="before"?["end","start"]:["start","end"],[s,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[d,h]=[s,l],[p,_]=[i,n],f=0;if(this.triggersSubmenu()){if(_=i=e.xPosition==="before"?"start":"end",n=p=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let he=this._parentMaterialMenu.items.first;this._parentInnerPadding=he?he._getHostElement().offsetTop:0}f=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d=s==="top"?"bottom":"top",h=l==="top"?"bottom":"top");t.withPositions([{originX:i,originY:d,overlayX:p,overlayY:s,offsetY:f},{originX:n,originY:d,overlayX:_,overlayY:s,offsetY:f},{originX:i,originY:h,overlayX:p,overlayY:l,offsetY:-f},{originX:n,originY:h,overlayX:_,overlayY:l,offsetY:-f}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:X(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(g(s=>s!==this._menuItemInstance),g(()=>this._menuOpen)):X();return S(e,i,n,t)}_handleMousedown(e){Ae(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(g(e=>e===this._menuItemInstance&&!e.disabled),G(0,Q)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe(W(1),G(0,Q),A(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Be(e.templateRef,this._viewContainerRef)),this._portal}};o.\u0275fac=function(t){return new(t||o)(r(P),r(F),r(ye),r(Qe),r(de,8),r(ue,10),r(Fe,8),r(le),r(ee))},o.\u0275dir=ge({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&B("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),t&2&&y("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.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 a=o;return a})(),Ut=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=fe({type:o}),o.\u0275inj=_e({providers:[mt],imports:[De,Le,ce,Ye,Ne,ce]});let a=o;return a})();export{ue as a,z as b,zt as c,Ut as d}; +import{c as Be,p as Ne,r as He,s as P,v as Ye}from"./chunk-LDDHJMMZ.js";import{$ as _e,Ab as Pe,Bb as ae,Bd as le,D as S,Dd as Fe,E as g,Ea as $,Fa as r,Ga as J,Hd as ce,J as W,K as G,Ka as ee,Lb as k,Ld as je,Ma as Me,Md as Le,Na as ye,Nb as R,Pa as te,Qa as ie,Qb as Ee,R as x,Ra as y,S as K,Sa as ne,T as A,Ua as Ie,Wa as Ce,Ya as we,_b as De,a as E,aa as v,ab as I,b as pe,bb as L,cb as se,da as O,g as D,gb as ke,ha as Z,ia as fe,j as T,ja as ge,jb as B,kd as Te,lb as c,m as Q,mb as oe,nb as N,pa as b,pb as H,pd as Se,qa as M,qb as Re,ra as ve,rb as C,s as X,sb as w,sc as re,tc as Y,va as q,wc as u,xa as F,xc as me,xd as xe,ya as j,yd as Ae,za as be,zc as V,zd as Oe}from"./chunk-I5FNXPEQ.js";var qe=["mat-menu-item",""],$e=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Je=["mat-icon, [matMenuItemIcon]","*"];function et(a,o){a&1&&(ve(),I(0,"svg",2),se(1,"polygon",3),L())}var tt=["*"];function it(a,o){if(a&1){let m=ke();I(0,"div",0),B("keydown",function(t){b(m);let i=c();return M(i._handleKeydown(t))})("click",function(){b(m);let t=c();return M(t.closed.emit("click"))})("@transformMenu.start",function(t){b(m);let i=c();return M(i._onAnimationStart(t))})("@transformMenu.done",function(t){b(m);let i=c();return M(i._onAnimationDone(t))}),I(1,"div",1),N(2),L()()}if(a&2){let m=c();Ce(m._classList),ne("id",m.panelId)("@transformMenu",m._panelAnimationState),y("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}var de=new v("MAT_MENU_PANEL"),ue=(()=>{let o=class o{constructor(e,t,i,n,s){this._elementRef=e,this._document=t,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new T,this._focused=new T,this._highlighted=!1,this._triggersSubmenu=!1,n?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",Y("120ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:1,transform:"scale(1)"}))),V("* => void",Y("100ms 25ms linear",u({opacity:0})))]),fadeInItems:re("fadeInItems",[me("showing",u({opacity:1})),V("void => *",[u({opacity:0}),Y("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yt=U.fadeInItems,Vt=U.transformMenu,st=0,ot=new v("mat-menu-default-options",{providedIn:"root",factory:at});function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var z=(()=>{let o=class o{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let t=this._previousPanelClass,i=E({},this._classList);t&&t.length&&t.split(" ").forEach(n=>{i[n]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(n=>{i[n]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,i,n){this._elementRef=e,this._changeDetectorRef=n,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new be,this._classList={},this._panelAnimationState="void",this._animationDone=new T,this.closed=new j,this.close=this.closed,this.panelId=`mat-menu-panel-${st++}`,this._injector=O(q),this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new xe(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(e=>S(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),n=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[n]&&!i[n].disabled?t.setActiveItem(n):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(t=>S(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Se(e)||(e.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:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Me(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let l=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(l)}let t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!n||n===this._previousElevation){let s=E({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[i]=!0,this._previousElevation=i,this._classList=s}}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=pe(E({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(x(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};o.\u0275fac=function(t){return new(t||o)(r(F),r(ee),r(ot),r(k))},o.\u0275cmp=Z({type:o,selectors:[["mat-menu"]],contentQueries:function(t,i,n){if(t&1&&(H(n,nt,5),H(n,ue,5),H(n,ue,4)),t&2){let s;C(s=w())&&(i.lazyContent=s.first),C(s=w())&&(i._allItems=s),C(s=w())&&(i.items=s)}},viewQuery:function(t,i){if(t&1&&Re(J,5),t&2){let n;C(n=w())&&(i.templateRef=n.first)}},hostVars:3,hostBindings:function(t,i){t&2&&y("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",R],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:R(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Pe([{provide:de,useExisting:o}]),te,ae],ngContentSelectors:tt,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(t,i){t&1&&(oe(),ie(0,it,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:[U.transformMenu,U.fadeInItems]},changeDetection:0});let a=o;return a})(),Qe=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let a=O(P);return()=>a.scrollStrategies.reposition()}});function rt(a){return()=>a.scrollStrategies.reposition()}var mt={provide:Qe,deps:[P],useFactory:rt},Ve=Te({passive:!0});var zt=(()=>{let o=class o{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,i,n,s,l,d,h,p){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=l,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.EMPTY,this._hoverSubscription=D.EMPTY,this._menuCloseSubscription=D.EMPTY,this._changeDetectorRef=O(k),this._handleTouchStart=_=>{Oe(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new j,this.onMenuOpen=this.menuOpened,this.menuClosed=new j,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof z?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ve)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ve),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 e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),i=t.getConfig(),n=i.positionStrategy;this._setPosition(e,n),i.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof z&&(e._startAnimation(),e._directDescendantItems.changes.pipe(A(e.close)).subscribe(()=>{n.withLockedPosition(!1).reapplyLastPosition(),n.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof z?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(g(i=>i.toState==="void"),W(1),A(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,i=e.parentMenu;for(;i;)t++,i=i.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new He({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{let n=i.connectionPair.overlayX==="start"?"after":"before",s=i.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(n,s)):e.setPositionClasses(n,s)})}_setPosition(e,t){let[i,n]=e.xPosition==="before"?["end","start"]:["start","end"],[s,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[d,h]=[s,l],[p,_]=[i,n],f=0;if(this.triggersSubmenu()){if(_=i=e.xPosition==="before"?"start":"end",n=p=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let he=this._parentMaterialMenu.items.first;this._parentInnerPadding=he?he._getHostElement().offsetTop:0}f=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d=s==="top"?"bottom":"top",h=l==="top"?"bottom":"top");t.withPositions([{originX:i,originY:d,overlayX:p,overlayY:s,offsetY:f},{originX:n,originY:d,overlayX:_,overlayY:s,offsetY:f},{originX:i,originY:h,overlayX:p,overlayY:l,offsetY:-f},{originX:n,originY:h,overlayX:_,overlayY:l,offsetY:-f}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:X(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(g(s=>s!==this._menuItemInstance),g(()=>this._menuOpen)):X();return S(e,i,n,t)}_handleMousedown(e){Ae(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(g(e=>e===this._menuItemInstance&&!e.disabled),G(0,Q)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe(W(1),G(0,Q),A(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Be(e.templateRef,this._viewContainerRef)),this._portal}};o.\u0275fac=function(t){return new(t||o)(r(P),r(F),r(ye),r(Qe),r(de,8),r(ue,10),r(Fe,8),r(le),r(ee))},o.\u0275dir=ge({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&B("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),t&2&&y("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.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 a=o;return a})(),Ut=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=fe({type:o}),o.\u0275inj=_e({providers:[mt],imports:[De,Le,ce,Ye,Ne,ce]});let a=o;return a})();export{ue as a,z as b,zt as c,Ut as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7IMKJ6YK.js b/frontend/server/modelsmith-build/browser/chunk-7IMKJ6YK.js deleted file mode 100644 index 5521e0bf..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-7IMKJ6YK.js +++ /dev/null @@ -1 +0,0 @@ -import{a as y,b as u}from"./chunk-VUPIOU6P.js";import{Bb as h,Ea as o,Qa as g,Sa as l,Sb as d,Ub as c,ab as n,bb as i,bc as M,cb as m,ha as s,ub as f,wb as p}from"./chunk-NPZHNGVX.js";function _(t,e){t&1&&m(0,"div",8)}function P(t,e){t&1&&m(0,"div",8)}var b=(()=>{let e=class e{constructor(){this.styleMode="fullWidth",this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=s({type:e,selectors:[["ms-footer"]],inputs:{styleMode:"styleMode"},standalone:!0,features:[h],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(r,a){r&1&&(n(0,"div",0)(1,"div",1),m(2,"mat-divider"),i(),n(3,"footer",2),g(4,_,1,0,"div",3),n(5,"div",4)(6,"div",5),f(7),i(),n(8,"div",6)(9,"a",7),f(10,"Privacy Policy"),i(),n(11,"a"),f(12,"Terms of Service"),i()()(),g(13,P,1,0,"div",3),i()()),r&2&&(o(4),l("ngIf",a.styleMode!=="mainLayout"),o(),l("ngClass",a.styleMode==="mainLayout"?"col-span-12":"col-span-10"),o(2),p("\xA9 ",a.currentYear," Cisco Systems, Inc"),o(6),l("ngIf",a.styleMode!=="mainLayout"))},dependencies:[M,d,c,u,y],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})();export{b as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-LBD5Y7YA.js b/frontend/server/modelsmith-build/browser/chunk-7MWYDZ4E.js similarity index 94% rename from frontend/server/modelsmith-build/browser/chunk-LBD5Y7YA.js rename to frontend/server/modelsmith-build/browser/chunk-7MWYDZ4E.js index 44cdb3e4..9dc4bac2 100644 --- a/frontend/server/modelsmith-build/browser/chunk-LBD5Y7YA.js +++ b/frontend/server/modelsmith-build/browser/chunk-7MWYDZ4E.js @@ -1 +1 @@ -import{$c as D,De as R,Fe as E,G as z,Kc as s,Lc as w,M as C,S as b,Wc as p,Xc as j,Zc as u,_ as l,_c as y,a as n,ad as A,b as c,bd as M,ca as d,k as x,s as F,x as v}from"./chunk-NPZHNGVX.js";var a=w({source:"[Run Records -> Records]",events:{"Get Run Records Filenames":s(),"Get Run Records Filenames Success":s(),"Get Run Records Filenames Failure":s(),"Get Run Record Summarized Data":s(),"Get Run Record Summarized Data Success":s(),"Get Run Record Summarized Data Failure":s()}});var G=j("runRecords");var I=p(G,r=>r.records),H=p(I,r=>r.filenames),J=p(I,r=>r.summarizedRecord);var f=class extends R{constructor(e){super(`run-records-filenames/${e}`,void 0,void 0,!1)}};var g=class extends R{constructor(e,T){super(`run-records-summarized-data/${e}/${T}`,void 0,void 0,!1)}};var se=(()=>{let e=class e{constructor(o,t){this.apiClient=o,this.actions$=t,this.getRunRecordsFilenames$=D(()=>this.actions$.pipe(M(a.getRunRecordsFilenames),b(i=>{let{algorithmType:h}=i;return this.apiClient.serviceCall(new f(h)).pipe(v(m=>a.getRunRecordsFilenamesSuccess({files:m})),z(m=>F(a.getRunRecordsFilenamesFailure({error:m}))))}))),this.getRunRecordSummarizedData$=D(()=>this.actions$.pipe(M(a.getRunRecordSummarizedData),b(i=>{let{algorithmType:h,filename:m}=i;return this.apiClient.serviceCall(new g(h,m)).pipe(v(S=>a.getRunRecordSummarizedDataSuccess({record:S})),z(S=>F(a.getRunRecordSummarizedDataFailure({error:S}))))})))}};e.\u0275fac=function(t){return new(t||e)(d(E),d(A))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();var k={filenames:[],summarizedRecord:{},error:""},me=y(k,u(a.getRunRecordsFilenamesSuccess,(r,{files:e})=>c(n({},r),{filenames:e,error:null})),u(a.getRunRecordsFilenamesFailure,(r,{error:e})=>c(n({},r),{error:e})),u(a.getRunRecordSummarizedData,r=>c(n({},r),{loading:!0,error:null})),u(a.getRunRecordSummarizedDataSuccess,(r,{record:e})=>c(n({},r),{summarizedRecord:e,error:null})),u(a.getRunRecordSummarizedDataFailure,(r,{error:e})=>c(n({},r),{error:e})));var O=function(r){return r.RUN_RECORDS_SUMMARIZED_DATA="runRecordsSummarizedData",r}(O||{}),U=[{key:O.RUN_RECORDS_SUMMARIZED_DATA,urlPattern:"/rest/run-records-summarized-data/[^/]+/[^/]+",track:!0,useRegex:!0}],L=(()=>{let e=class e{constructor(){this.loadingMap=new Map}setLoading(o,t){this.loadingMap.has(t)||this.loadingMap.set(t,new x(!1)),this.loadingMap.get(t).next(o)}getLoadingObservableForKey(o){if(this.loadingMap.has(o))return this.loadingMap.get(o).asObservable();{let t=new x(!1);return this.loadingMap.set(o,t),t.asObservable()}}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Fe=(()=>{let e=class e{constructor(o){this.loadingService=o}intercept(o,t){let i=this.getMatchingConfig(o);return i&&i.track&&this.loadingService.setLoading(!0,i.key),t.handle(o).pipe(C(()=>{i&&i.track&&this.loadingService.setLoading(!1,i.key)}))}getMatchingConfig(o){let t=o.url.split("?")[0];return U.find(i=>i.track&&(i.useRegex?new RegExp(i.urlPattern).test(t):i.urlPattern===t))}};e.\u0275fac=function(t){return new(t||e)(d(L))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();export{a,se as b,me as c,H as d,J as e,O as f,L as g,Fe as h}; +import{Ae as R,Ce as E,G as z,Hc as s,Ic as w,M as C,S as b,Tc as p,Uc as j,Wc as u,Xc as y,Yc as D,Zc as A,_ as l,_c as M,a as n,b as c,ca as d,k as x,s as F,x as v}from"./chunk-I5FNXPEQ.js";var a=w({source:"[Run Records -> Records]",events:{"Get Run Records Filenames":s(),"Get Run Records Filenames Success":s(),"Get Run Records Filenames Failure":s(),"Get Run Record Summarized Data":s(),"Get Run Record Summarized Data Success":s(),"Get Run Record Summarized Data Failure":s()}});var G=j("runRecords");var I=p(G,r=>r.records),H=p(I,r=>r.filenames),J=p(I,r=>r.summarizedRecord);var f=class extends R{constructor(e){super(`run-records-filenames/${e}`,void 0,void 0,!1)}};var g=class extends R{constructor(e,T){super(`run-records-summarized-data/${e}/${T}`,void 0,void 0,!1)}};var se=(()=>{let e=class e{constructor(o,t){this.apiClient=o,this.actions$=t,this.getRunRecordsFilenames$=D(()=>this.actions$.pipe(M(a.getRunRecordsFilenames),b(i=>{let{algorithmType:h}=i;return this.apiClient.serviceCall(new f(h)).pipe(v(m=>a.getRunRecordsFilenamesSuccess({files:m})),z(m=>F(a.getRunRecordsFilenamesFailure({error:m}))))}))),this.getRunRecordSummarizedData$=D(()=>this.actions$.pipe(M(a.getRunRecordSummarizedData),b(i=>{let{algorithmType:h,filename:m}=i;return this.apiClient.serviceCall(new g(h,m)).pipe(v(S=>a.getRunRecordSummarizedDataSuccess({record:S})),z(S=>F(a.getRunRecordSummarizedDataFailure({error:S}))))})))}};e.\u0275fac=function(t){return new(t||e)(d(E),d(A))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();var k={filenames:[],summarizedRecord:{},error:""},me=y(k,u(a.getRunRecordsFilenamesSuccess,(r,{files:e})=>c(n({},r),{filenames:e,error:null})),u(a.getRunRecordsFilenamesFailure,(r,{error:e})=>c(n({},r),{error:e})),u(a.getRunRecordSummarizedData,r=>c(n({},r),{loading:!0,error:null})),u(a.getRunRecordSummarizedDataSuccess,(r,{record:e})=>c(n({},r),{summarizedRecord:e,error:null})),u(a.getRunRecordSummarizedDataFailure,(r,{error:e})=>c(n({},r),{error:e})));var O=function(r){return r.RUN_RECORDS_SUMMARIZED_DATA="runRecordsSummarizedData",r}(O||{}),U=[{key:O.RUN_RECORDS_SUMMARIZED_DATA,urlPattern:"/rest/run-records-summarized-data/[^/]+/[^/]+",track:!0,useRegex:!0}],L=(()=>{let e=class e{constructor(){this.loadingMap=new Map}setLoading(o,t){this.loadingMap.has(t)||this.loadingMap.set(t,new x(!1)),this.loadingMap.get(t).next(o)}getLoadingObservableForKey(o){if(this.loadingMap.has(o))return this.loadingMap.get(o).asObservable();{let t=new x(!1);return this.loadingMap.set(o,t),t.asObservable()}}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Fe=(()=>{let e=class e{constructor(o){this.loadingService=o}intercept(o,t){let i=this.getMatchingConfig(o);return i&&i.track&&this.loadingService.setLoading(!0,i.key),t.handle(o).pipe(C(()=>{i&&i.track&&this.loadingService.setLoading(!1,i.key)}))}getMatchingConfig(o){let t=o.url.split("?")[0];return U.find(i=>i.track&&(i.useRegex?new RegExp(i.urlPattern).test(t):i.urlPattern===t))}};e.\u0275fac=function(t){return new(t||e)(d(L))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();export{a,se as b,me as c,H as d,J as e,O as f,L as g,Fe as h}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7RGFGF2N.js b/frontend/server/modelsmith-build/browser/chunk-7RGFGF2N.js new file mode 100644 index 00000000..a06de77b --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-7RGFGF2N.js @@ -0,0 +1,11 @@ +import{a as vt,e as xt,g as fn,h as ze,i as Ge}from"./chunk-O3X4WY4E.js";import{a as _n,b as bt,c as Cn}from"./chunk-KKBNVFSA.js";import{a as Ct}from"./chunk-LSF6MDDG.js";import{a as Gt,d as Ui,e as Qi,f as vn,g as xn}from"./chunk-7MWYDZ4E.js";import{a as tn,b as nn,c as on,d as rn,e as an,f as sn,g as ln,h as cn,i as dn,j as pn,k as mn,l as hn,m as un,n as ye,o as gn,p as _t,q as je}from"./chunk-HK67ULYP.js";import{a as Ji,b as en}from"./chunk-JI7UWE3B.js";import{a as Xi,b as Wi}from"./chunk-DFEVON6A.js";import{a as ft,b as Zi}from"./chunk-A3HRP5BG.js";import{a as at,b as Ti}from"./chunk-452CEXFK.js";import{a as ji,b as zi}from"./chunk-SWEZDJOL.js";import{a as ut}from"./chunk-W5GEUOC3.js";import{c as Le,e as gt,f as zt,g as O}from"./chunk-W4U3FJPJ.js";import{a as Ki,b as qi}from"./chunk-I4357ONH.js";import"./chunk-KE2JE72J.js";import{a as be,b as L}from"./chunk-COKZMNNS.js";import{c as Gi,e as Yi,f as $i,m as ht}from"./chunk-LDDHJMMZ.js";import{a as pt,h as mt,i as Hi}from"./chunk-RTK5DRKR.js";import{$ as Y,$a as W,$d as Ke,Ab as H,Ba as Ft,Bb as it,Bc as Qe,Bd as Ai,Ca as di,Cc as Lt,D as Tt,Da as It,Db as Bt,E as Ee,Ea as c,Fa as p,Fb as D,Fd as Mi,Ga as pi,Gb as M,Gd as Ei,Ha as mi,Hb as fi,Hd as jt,I as ii,J as de,Jb as _i,Lb as J,Na as hi,Nb as ee,Oa as Rt,Ob as Ci,Pa as ie,Q as Pt,Qa as f,Qb as vi,R as kt,Ra as et,Rd as rt,Sa as h,Sc as yi,Ta as B,Tb as xi,Ua as q,Ub as Nt,Va as ui,Vb as nt,Xb as Re,Xd as Pi,Ya as S,Yb as bi,Yd as ki,Z as ni,Za as ne,Zb as wi,_ as pe,_a as X,_b as ot,_d as Te,a as Ae,aa as me,ab as s,b as Xe,bb as l,be as we,ca as he,cb as g,ce as Ne,da as oi,db as U,de as st,eb as Q,g as Ze,gb as E,ge as Fi,ha as A,he as lt,ia as $,j as Me,ja as P,jb as _,je as ct,k as Et,ka as Je,ke as Ii,l as ei,lb as m,mb as tt,me as Ve,nb as fe,o as ti,oa as ue,oe as dt,p as ce,pa as v,pb as Ot,pc as Vt,pd as Si,pe as Ri,qa as x,qb as Z,qe as Oi,ra as Ie,rb as N,re as Bi,sa as ri,sb as V,sc as We,ta as ai,tb as gi,tc as Oe,te as Ni,ua as si,ub as u,ue as Vi,va as li,vb as _e,wb as w,wc as k,we as He,xa as ge,xb as Ce,xc as Ue,xd as Di,xe as Li,ya as y,yb as ve,yc as Ht,za as ci,zb as xe,zc as Be}from"./chunk-I5FNXPEQ.js";var Un=["hueSlider"],Qn=["alphaSlider"];function Kn(n,i){if(n&1){let e=E();s(0,"div",10),_("newValue",function(o){v(e);let r=m();return x(r.onSliderChange("saturation-lightness",o))}),s(1,"div",11),g(2,"div"),l()()}if(n&2){let e=m();B("background-color",e.hueSliderColor),h("rgX",1)("rgY",1),c(),B("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function qn(n,i){if(n&1&&(s(0,"div",12),g(1,"div",13)(2,"div",14),l()),n&2){let e=m();c(2),B("background-color",e.selectedColor)}}function Zn(n,i){if(n&1){let e=E();s(0,"div",15,1),_("newValue",function(o){v(e);let r=m();return x(r.onSliderChange("hue",o))}),s(2,"div",16)(3,"div"),g(4,"div"),l()()()}if(n&2){let e=m();h("rgX",1),c(2),B("left",e.slider==null?null:e.slider.h,"px")}}function Jn(n,i){if(n&1){let e=E();s(0,"div",17,2),_("newValue",function(o){v(e);let r=m();return x(r.onSliderChange("alpha",o))}),g(2,"div",18),s(3,"div",16)(4,"div"),g(5,"div"),l()()()}if(n&2){let e=m();h("rgX",1),c(2),h("ngStyle",e.getBackgroundColor(e.alphaSliderColor)),c(),B("left",e.slider==null?null:e.slider.a,"px")}}var eo=["dialog"],yn=n=>({background:n});function to(n,i){n&1&&g(0,"div",12)}function io(n,i){if(n&1){let e=E();U(0),s(1,"div",9)(2,"div",10),_("click",function(){let o=v(e).$implicit,r=m(2);return x(r.onColorClick(o))}),f(3,to,1,0,"div",11),l()(),Q()}if(n&2){let e=i.$implicit,t=i.index,o=m(2);c(2),q("colornull",!e),h("ngStyle",o.getBackgroundColor(e)),c(),h("ngIf",t==o.indexSeleccionado)}}function no(n,i){if(n&1&&g(0,"div",18),n&2){let e=m(3);h("ngStyle",e.getBackgroundColor(e.color))}}function oo(n,i){if(n&1){let e=E();s(0,"div",13),_("click",function(){v(e);let o=m(2);return x(o.addColor())}),f(1,no,1,1,"div",14),Ie(),s(2,"svg",15),g(3,"path",16)(4,"path",17),l()()}if(n&2){let e=m(2);c(),h("ngIf",e.indexSeleccionado===void 0)}}function ro(n,i){if(n&1){let e=E();s(0,"color-picker",19),_("colorChange",function(o){v(e);let r=m(2);return x(r.onChangeColorPicker(o))})("onAlphaChange",function(o){v(e);let r=m(2);return x(r.onAlphaChange(o))}),l()}if(n&2){let e=m(2);h("controls",e.colorPickerControls)("color",e.hsva)}}function ao(n,i){if(n&1&&(U(0),s(1,"div",5),f(2,io,4,4,"ng-container",6)(3,oo,5,1,"div",7)(4,ro,1,2,"color-picker",8),l(),Q()),n&2){let e=m();c(),h("@colorsAnimation",e.colorsAnimationEffect),c(),h("ngForOf",e.palette),c(),h("ngIf",!e.hideColorPicker&&e.colorPickerControls!="only-alpha"),c(),h("ngIf",!e.hideColorPicker&&e.colorPickerControls=="only-alpha")}}function so(n,i){n&1&&g(0,"div",12)}function lo(n,i){if(n&1){let e=E();U(0),s(1,"div",9)(2,"div",25),_("click",function(){let o=v(e).$implicit,r=m(2);return x(r.changeColor(o))}),f(3,so,1,0,"div",11),l()(),Q()}if(n&2){let e=i.$implicit,t=m(2);c(2),q("colornull",!e),h("ngStyle",Bt(4,yn,e)),c(),h("ngIf",t.isSelected(e))}}function co(n,i){if(n&1){let e=E();U(0),s(1,"div",5)(2,"div",20)(3,"div",21),_("click",function(){v(e);let o=m();return x(o.onClickBack())}),Ie(),s(4,"svg",22),g(5,"path",23)(6,"path",24),l()()(),f(7,lo,4,6,"ng-container",6),l(),Q()}if(n&2){let e=m();c(),h("@colorsAnimation",e.colorsAnimationEffect),c(6),h("ngForOf",e.variants)}}function po(n,i){if(n&1){let e=E();U(0),s(1,"div",26)(2,"div",27),_("click",function(){v(e);let o=m();return x(o.onClickBack())}),Ie(),s(3,"svg",22),g(4,"path",23)(5,"path",24),l()(),ri(),s(6,"button",28),_("click",function(){v(e);let o=m();return x(o.emitClose("cancel"))}),u(7),l(),s(8,"button",28),_("click",function(){v(e);let o=m();return x(o.emitClose("accept"))}),u(9),l()(),s(10,"div",29)(11,"color-picker",30),_("sliderChange",function(o){v(e);let r=m();return x(r.onChangeColorPicker(o))}),l()(),Q()}if(n&2){let e=m();c(7),w(" ",e.cancelLabel," "),c(2),w(" ",e.acceptLabel," "),c(2),h("controls",e.colorPickerControls)("color",e.hsva)}}function mo(n,i){if(n&1){let e=E();s(0,"div",31)(1,"p",32),_("click",function(){v(e);let o=m();return x(o.nextFormat())}),u(2),l(),s(3,"div",33)(4,"input",34,1),_("keyup",function(){v(e);let o=gi(5),r=m();return x(r.changeColorManual(o.value))})("keydown.enter",function(){v(e);let o=m();return x(o.emitClose("accept"))}),l()()()}if(n&2){let e=m();c(2),_e(e.colorFormats[e.format]),c(2),B("font-size",e.color&&e.color.length>23?9:10,"px")("letter-spacing",e.color&&e.color.length>16?0:1.5,"px"),h("placeholder",e.placeholder)("value",e.color)}}var Yt=["hex","rgba","hsla","cmyk"],F=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(F||{}),bn=[{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"]}],te=class{constructor(i,e,t,o){this.r=i,this.g=e,this.b=t,this.a=o}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)+")":")")}},K=class{constructor(i,e,t,o){this.h=i,this.s=e,this.v=t,this.a=o,this.onChange=new y(!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}},Pe=class{constructor(i,e,t,o){this.h=i,this.s=e,this.l=t,this.a=o}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)+")":")")}},Se=class{constructor(i,e,t,o,r=1){this.c=i,this.m=e,this.y=t,this.k=o,this.a=r}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+")"}},$t=class{constructor(i){i&&(this.preview=i.preview,this.variants=i.variants)}},yt=(()=>{class n{constructor(){}toFormat(e,t){var o="";if(e)switch(t){case F.HEX:var a=this.hsvaToRgba(e);a.denormalize();var o=this.rgbaToHex(a,!0);break;case F.HSLA:var r=this.hsva2hsla(e);r.denormalize();var o=r.toString();break;case F.RGBA:var a=this.hsvaToRgba(e),o=a.toString();break;case F.CMYK:var d=this.hsvaToCmyk(e),o=d.toString();break}return o}stringToFormat(e,t){var o=this.stringToHsva(e,!0);return this.toFormat(o,t)}hsva2hsla(e){let t=e.h,o=e.s,r=e.v,a=e.a;if(r===0)return new Pe(t,0,0,a);if(o===0&&r===1)return new Pe(t,1,1,a);{let d=r*(2-o)/2;return new Pe(t,r*o/(1-Math.abs(2*d-1)),d,a)}}hsla2hsva(e){let t=Math.min(e.h,1),o=Math.min(e.s,1),r=Math.min(e.l,1),a=Math.min(e.a,1);if(r===0)return new K(t,0,0,a);{let d=r+o*(1-Math.abs(2*r-1))/2;return new K(t,2*(d-r)/d,d,a)}}hsvaToRgba(e){let t,o,r,a=e.h,d=e.s,C=e.v,b=e.a,G=Math.floor(a*6),I=a*6-G,R=C*(1-d),$e=C*(1-I*d),De=C*(1-(1-I)*d);switch(G%6){case 0:t=C,o=De,r=R;break;case 1:t=$e,o=C,r=R;break;case 2:t=R,o=C,r=De;break;case 3:t=R,o=$e,r=C;break;case 4:t=De,o=R,r=C;break;case 5:t=C,o=R,r=$e;break;default:t=0,o=0,r=0}return new te(t,o,r,b)}cmykToRgb(e){let t=(1-e.c)*(1-e.k),o=(1-e.m)*(1-e.k),r=(1-e.y)*(1-e.k);return new te(t,o,r,e.a)}rgbaToCmyk(e){let t=1-Math.max(e.r,e.g,e.b);if(t===1)return new Se(0,0,0,1,e.a);{let o=(1-e.r-t)/(1-t),r=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new Se(o,r,a,t,e.a)}}hsvaToCmyk(e){let t=this.hsvaToRgba(e);return this.rgbaToCmyk(t)}rgbaToHsva(e){let t,o,r=Math.min(e.r,1),a=Math.min(e.g,1),d=Math.min(e.b,1),C=Math.min(e.a,1),b=Math.max(r,a,d),G=Math.min(r,a,d),I=b,R=b-G;if(o=b===0?0:R/b,b===G)t=0;else{switch(b){case r:t=(a-d)/R+(a{class n{mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.dragEnd=new y,this.dragStart=new y,this.newValue=new y,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,o=this.elRef.nativeElement.offsetHeight,r=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),o));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:r/t,v:1-a/o,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:a/o,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:r/t,rgX:this.rgX})}}return n.\u0275fac=function(e){return new(e||n)(p(ge))},n.\u0275dir=P({type:n,selectors:[["","slider",""]],hostBindings:function(e,t){e&1&&_("mousedown",function(r){return t.mouseDown(r)})("touchstart",function(r){return t.touchStart(r)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),n})(),uo=(()=>{class n{constructor(e,t){this.service=e,this.cdr=t,this.color=new K(0,1,1,1),this.controls="default",this.sliderChange=new y(!1),this.onAlphaChange=new y(!1),this.hsva=new K(0,1,1,1),this.selectedColor="#000000",this.fallbackColor="#000000"}ngOnInit(){this.color||(this.color=new K(0,1,1,1)),this.slider=new wt(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 Xt(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 K(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 wt(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)(p(yt),p(J))},n.\u0275cmp=A({type:n,selectors:[["color-picker"]],viewQuery:function(e,t){if(e&1&&(Z(Un,5),Z(Qn,5)),e&2){let o;N(o=V())&&(t.hueSlider=o.first),N(o=V())&&(t.alphaSlider=o.first)}},inputs:{color:"color",controls:"controls"},outputs:{sliderChange:"sliderChange",onAlphaChange:"onAlphaChange"},features:[ue],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 o=E();s(0,"div",3,0),_("click",function(a){return v(o),x(a.stopPropagation())}),f(2,Kn,3,8,"div",4),s(3,"div",5),f(4,qn,3,2,"div",6),s(5,"div",7),f(6,Zn,5,3,"div",8)(7,Jn,6,4,"div",9),l()()()}e&2&&(c(2),h("ngIf",t.controls!="only-alpha"),c(2),h("ngIf",t.controls!="only-alpha"),c(2),h("ngIf",t.controls!="only-alpha"),c(),h("ngIf",t.controls!="no-alpha"))},dependencies:[Nt,nt,ho],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})(),go=(()=>{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 K(0,1,1,1),this.colorsAnimationEffect="slide-in",this.palette=bn,this.variants=[],this.userFormats=[],this.colorFormats=Yt,this.format=F.HEX,this.formatMap={hex:F.HEX,rgba:F.RGBA,hsla:F.HSLA,cmyk:F.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 o=0;oYt.includes(Wn))&&(this.colorFormats=De),d?this.colorFormats.includes(d)?(this.format=this.colorFormats.indexOf(d.toLowerCase()),this.canChangeFormat=!1,this.service.getFormatByString(this.color)!=d.toLowerCase()&&this.setColor(this.service.stringToHsva(this.color))):(console.error("Format provided is invalid, using HEX"),this.format=F.HEX):(this.format=this.colorFormats.indexOf(this.service.getFormatByString(this.color)),this.format<0&&(this.format=0)),this.previewColor=this.color,this.palette=r??bn,this.colorsAnimationEffect=a,$e=="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(),o=t.height;e.bottom+o>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 o=[];for(let r=0;r slide-in",[Qe(":enter",k({opacity:0}),{optional:!0}),Qe(":enter",Lt("10ms",[Oe(".3s ease-in",Ht([k({opacity:0,transform:"translatex(-50%)",offset:0}),k({opacity:.5,transform:"translatex(-10px) scale(1.1)",offset:.3}),k({opacity:1,transform:"translatex(0)",offset:1})]))]),{optional:!0})]),Be("void => popup",[Qe(":enter",k({opacity:0,transform:"scale(0)"}),{optional:!0}),Qe(":enter",Lt("10ms",[Oe("500ms ease-out",Ht([k({opacity:.5,transform:"scale(.5)",offset:.3}),k({opacity:1,transform:"scale(1.1)",offset:.8}),k({opacity:1,transform:"scale(1)",offset:1})]))]),{optional:!0})])])]}}),n})(),wn={position:"fixed",height:"100%",width:"100%","z-index":2e3,top:0,left:0},Sn=(()=>{class n{constructor(e,t,o){this.resolver=e,this.applicationRef=t,this.injector=o}createPanel(e,t){this.componentRef!=null&&this.removePanel();let o=this.resolver.resolveComponentFactory(go);this.componentRef=o.create(this.injector),this.applicationRef.attachView(this.componentRef.hostView);let r=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(wn).forEach(a=>{this.overlay.style[a]=wn[a]}),e?document.getElementById(e).appendChild(this.overlay):document.body.appendChild(this.overlay),this.overlay.appendChild(r),this.componentRef}removePanel(){this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.overlay.remove()}}return n.\u0275fac=function(e){return new(e||n)(he(mi),he(_i),he(li))},n.\u0275prov=pe({token:n,factory:n.\u0275fac}),n})(),Ut=(()=>{class n{onClick(){this.openPanel()}constructor(e,t,o){this.triggerRef=e,this.panelFactory=t,this.service=o,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 y,this.input=new y,this.slider=new y,this.close=new y,this.open=new y,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 r=Yt.indexOf(this.format.toLowerCase());e=this.service.stringToFormat(e,r)}this.color=e;let o=!1;e&&e.startsWith("cmyk")&&(o=!0,t||(t=this.service.stringToFormat(e,F.RGBA))),this.change.emit(o?t:e)}}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return n.\u0275fac=function(e){return new(e||n)(p(ge),p(Sn),p(yt))},n.\u0275dir=P({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:[H([{provide:Pi,useExisting:ni(()=>n),multi:!0}])]}),n})(),Dn=(()=>{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)(p(J),p(Ut,1))},n.\u0275cmp=A({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&&(s(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3),l()()()),e&2&&(c(3),q("colornull",!t.color),h("ngStyle",Bt(3,yn,t.color)))},dependencies:[nt],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})(),An=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$({type:n}),n.\u0275inj=Y({providers:[yt,Sn],imports:[ot]}),n})();var Mn=(()=>{let i=class i{get lineClamp(){return this.maxEllipsisLines}onMouseEnter(){this.isTextOverflowing?this.tooltip.show():this.tooltip.hide()}onMouseLeave(){this.tooltip.hide()}constructor(t,o){this.tooltip=t,this.elementRef=o,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),o=this.maxEllipsisLines*t;return this.elementRef.nativeElement.scrollHeight>o}};i.\u0275fac=function(o){return new(o||i)(p(ut),p(ge))},i.\u0275dir=P({type:i,selectors:[["","msUseEllipsis",""]],hostVars:14,hostBindings:function(o,r){o&1&&_("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),o&2&&B("display",r.display)("overflow",r.overflow)("-webkit-box-orient",r.boxOrient)("-webkit-line-clamp",r.lineClamp)("text-overflow",r.textOverflow)("white-space",r.whiteSpace)("word-break",r.wordBreak)},inputs:{maxEllipsisLines:"maxEllipsisLines"},standalone:!0,features:[H([ut])]});let n=i;return n})();var vo=0,Qt=new me("CdkAccordion"),En=(()=>{let i=class i{constructor(){this._stateChanges=new Me,this._openCloseAllActions=new Me,this.id=`cdk-accordion-${vo++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=P({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",ee]},exportAs:["cdkAccordion"],standalone:!0,features:[H([{provide:Qt,useExisting:i}]),ie,ue]});let n=i;return n})(),xo=0,Tn=(()=>{let i=class i{get expanded(){return this._expanded}set expanded(t){if(this._expanded!==t){if(this._expanded=t,this.expandedChange.emit(t),t){this.opened.emit();let o=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,o)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(t,o,r){this.accordion=t,this._changeDetectorRef=o,this._expansionDispatcher=r,this._openCloseAllSubscription=Ze.EMPTY,this.closed=new y,this.opened=new y,this.destroyed=new y,this.expandedChange=new y,this.id=`cdk-accordion-child-${xo++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((a,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==a&&(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(t=>{this.disabled||(this.expanded=t)})}};i.\u0275fac=function(o){return new(o||i)(p(Qt,12),p(J),p(ht))},i.\u0275dir=P({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",ee],disabled:[2,"disabled","disabled",ee]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[H([{provide:Qt,useValue:void 0}]),ie]});let n=i;return n})(),Pn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({});let n=i;return n})();var yo=["body"],So=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Do=["mat-expansion-panel-header","*","mat-action-row"];function Ao(n,i){}var Mo=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Eo=["mat-panel-title","mat-panel-description","*"];function To(n,i){if(n&1&&(s(0,"span",1),Ie(),s(1,"svg",2),g(2,"path",3),l()()),n&2){let e=m();h("@indicatorRotate",e._getExpandedState())}}var Kt=new me("MAT_ACCORDION"),kn="225ms cubic-bezier(0.4,0.0,0.2,1)",In={indicatorRotate:We("indicatorRotate",[Ue("collapsed, void",k({transform:"rotate(0deg)"})),Ue("expanded",k({transform:"rotate(180deg)"})),Be("expanded <=> collapsed, void => collapsed",Oe(kn))]),bodyExpansion:We("bodyExpansion",[Ue("collapsed, void",k({height:"0px",visibility:"hidden"})),Ue("expanded",k({height:"*",visibility:""})),Be("expanded <=> collapsed, void => collapsed",Oe(kn))])},Rn=new me("MAT_EXPANSION_PANEL"),Po=(()=>{let i=class i{constructor(t,o){this._template=t,this._expansionPanel=o}};i.\u0275fac=function(o){return new(o||i)(p(pi),p(Rn,8))},i.\u0275dir=P({type:i,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let n=i;return n})(),ko=0,On=new me("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),oe=(()=>{let i=class i extends Tn{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=t}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,o,r,a,d,C,b){super(t,o,r),this._viewContainerRef=a,this._animationMode=C,this._hideToggle=!1,this.afterExpand=new y,this.afterCollapse=new y,this._inputChanges=new Me,this._headerId=`mat-expansion-panel-header-${ko++}`,this.accordion=t,this._document=d,this._animationsDisabled=C==="NoopAnimations",b&&(this.hideToggle=b.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(kt(null),Ee(()=>this.expanded&&!this._portal),de(1)).subscribe(()=>{this._portal=new Gi(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let t=this._document.activeElement,o=this._body.nativeElement;return t===o||o.contains(t)}return!1}_animationStarted(t){!Fn(t)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(t){Fn(t)||(t.toState==="expanded"?this.afterExpand.emit():t.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};i.\u0275fac=function(o){return new(o||i)(p(Kt,12),p(J),p(ht),p(hi),p(vi),p(Ft,8),p(On,8))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(o,r,a){if(o&1&&Ot(a,Po,5),o&2){let d;N(d=V())&&(r._lazyContent=d.first)}},viewQuery:function(o,r){if(o&1&&Z(yo,5),o&2){let a;N(a=V())&&(r._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(o,r){o&2&&q("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",ee],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[H([{provide:Kt,useValue:void 0},{provide:Rn,useExisting:i}]),ie,Rt,ue,it],ngContentSelectors:Do,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(o,r){if(o&1){let a=E();tt(So),fe(0),s(1,"div",1,0),_("@bodyExpansion.start",function(C){return v(a),x(r._animationStarted(C))})("@bodyExpansion.done",function(C){return v(a),x(r._animationDone(C))}),s(3,"div",2),fe(4,1),f(5,Ao,0,0,"ng-template",3),l(),fe(6,2),l()}o&2&&(c(),h("@bodyExpansion",r._getExpandedState())("id",r.id),et("aria-labelledby",r._headerId),c(4),h("cdkPortalOutlet",r._portal))},dependencies:[Yi],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:[In.bodyExpansion]},changeDetection:0});let n=i;return n})();function Fn(n){return n.fromState==="void"}var ke=(()=>{let i=class i{constructor(t,o,r,a,d,C,b){this.panel=t,this._element=o,this._focusMonitor=r,this._changeDetectorRef=a,this._animationMode=C,this._parentChangeSubscription=Ze.EMPTY,this.tabIndex=0;let G=t.accordion?t.accordion._stateChanges.pipe(Ee(I=>!!(I.hideToggle||I.togglePosition))):ti;this.tabIndex=parseInt(b||"")||0,this._parentChangeSubscription=Tt(t.opened,t.closed,G,t._inputChanges.pipe(Ee(I=>!!(I.hideToggle||I.disabled||I.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Ee(()=>t._containsFocus())).subscribe(()=>r.focusVia(o,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Si(t)||(t.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t);return}}focus(t,o){t?this._focusMonitor.focusVia(this._element,t,o):this._element.nativeElement.focus(o)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};i.\u0275fac=function(o){return new(o||i)(p(oe,1),p(ge),p(Ai),p(J),p(On,8),p(Ft,8),si("tabindex"))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(o,r){o&1&&_("click",function(){return r._toggle()})("keydown",function(d){return r._keydown(d)}),o&2&&(et("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),B("height",r._getHeaderHeight()),q("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Ci(t)]},standalone:!0,features:[ie,it],ngContentSelectors:Eo,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(o,r){o&1&&(tt(Mo),s(0,"span",0),fe(1),fe(2,1),fe(3,2),l(),f(4,To,3,1,"span",1)),o&2&&(q("mat-content-hide-toggle",!r._showToggle()),c(4),S(r._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:[In.indicatorRotate]},changeDetection:0});let n=i;return n})();var Ye=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=P({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let n=i;return n})(),Bn=(()=>{let i=class i extends En{constructor(){super(...arguments),this._ownHeaders=new ci,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(kt(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(o=>o.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Di(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};i.\u0275fac=(()=>{let t;return function(r){return(t||(t=ai(i)))(r||i)}})(),i.\u0275dir=P({type:i,selectors:[["mat-accordion"]],contentQueries:function(o,r,a){if(o&1&&Ot(a,ke,5),o&2){let d;N(d=V())&&(r._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(o,r){o&2&&q("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",ee],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[H([{provide:Kt,useExisting:i}]),ie,Rt]});let n=i;return n})(),Nn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({imports:[jt,Pn,$i]});let n=i;return n})();var Vn=(()=>{let i=class i{transform(t){return typeof t=="string"&&t&&t!="None"||typeof t=="number"&&!isNaN(t)?t.toString():"-"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Je({name:"emptyTableField",type:i,pure:!0,standalone:!0});let n=i;return n})();var Hn=(()=>{let i=class i{transform(t){return t&&typeof t=="object"&&Object.keys(t).length>0}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Je({name:"hasKeys",type:i,pure:!0,standalone:!0});let n=i;return n})();var j=function(n){return n.ADD="add",n.EDIT="edit",n.VIEW="view",n}(j||{});var St=(()=>{let i=class i{constructor(t){this.store=t,this.filenames$=this.store.select(Ui),this.summarizedRecord$=this.store.select(Qi)}dispatch(t){this.store.dispatch(t)}};i.\u0275fac=function(o){return new(o||i)(he(yi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac});let n=i;return n})();var z=(()=>{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 o=this._recordsMap.get(t)||[];this._records.next(o)}get records(){return this._records.value}get records$(){return this._records.asObservable()}addRecord(t){this.stopTooltips();let r=[...this._records.value,t];this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}updateRecord(t,o){this.stopTooltips();let r=this._records.value;if(t>=0&&t=0&&td!==t);this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}}stopTooltips(){this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1}constructor(t){this.chartToolsGlobalSignalsService=t,this._recordsMap=new Map,this._records=new Et([]),this._algorithmType=new Et(O.PRUNING)}};i.\u0275fac=function(o){return new(o||i)(he(ze))},i.\u0275prov=pe({token:i,factory:i.\u0275fac});let n=i;return n})();var jn=(()=>{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(o){return new(o||i)(p(Ke))},i.\u0275cmp=A({type:i,selectors:[["ms-chart-colors-form-controls"]],inputs:{controlKey:"controlKey"},features:[H([],[{provide:Ke,useFactory:()=>oi(Ke,{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(o,r){o&1&&(U(0,0),s(1,"div",1)(2,"mat-label"),u(3,"Chart border color"),l(),s(4,"div",2)(5,"div",3),g(6,"ngx-colors",4),l(),u(7),l()(),s(8,"div",1)(9,"mat-label"),u(10,"Chart background color"),l(),s(11,"div",2)(12,"div",3),g(13,"ngx-colors",4),l(),u(14),l()(),Q()),o&2&&(h("formGroupName",r.controlKey),c(6),h("formControlName",r.CHART_BODER_COLOR_CONTROL_NAME),c(),w(" ",r.borderColorControl==null?null:r.borderColorControl.value," "),c(6),h("formControlName",r.CHART_BACKGROUND_COLOR_CONTROL_NAME),c(),w(" ",r.backgroundColorControl==null?null:r.backgroundColorControl.value," "))},dependencies:[Dn,Ut,we,Ne,Ve,Ii,pt]});let n=i;return n})();function Go(n,i){if(n&1&&(s(0,"mat-option",5),u(1),l()),n&2){let e=m();c(),w(" No algorithm was yet run. Please run a ",e.algorithmTypeLabel," algorithm. ")}}function Yo(n,i){if(n&1&&(s(0,"mat-option",6),u(1),l()),n&2){let e=i.$implicit;h("value",e.name)("disabled",e.disabled),c(),w(" ",e.name," ")}}function $o(n,i){if(n&1&&X(0,Yo,2,3,"mat-option",6,ne),n&2){let e=m();W(e.files)}}function Xo(n,i){n&1&&(s(0,"div")(1,"div",7),g(2,"mat-spinner",8),l()())}function Wo(n,i){if(n&1&&(u(0),D(1,"readableDuration")),n&2){let e=m().$implicit;w(" ",M(1,1,e.value)," ")}}function Uo(n,i){if(n&1&&u(0),n&2){let e=m().$implicit;w(" ",e.value," ")}}function Qo(n,i){n&1&&(s(0,"div",20),g(1,"mat-divider"),l())}function Ko(n,i){if(n&1&&(s(0,"div",16)(1,"div",17)(2,"div",18),u(3),D(4,"parametersLabel"),l(),s(5,"div",19),f(6,Wo,2,3)(7,Uo,1,1),l()(),f(8,Qo,2,0,"div",20),l()),n&2){let e,t=i.$implicit,o=i.$index,r=i.$count;c(3),w("",M(4,3,t.key),":"),c(3),S((e=t.key)==="duration_seconds"?6:7),c(2),S(o!==r-1?8:-1)}}function qo(n,i){n&1&&X(0,Ko,9,5,"div",16,ne),n&2&&W(i)}function Zo(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function Jo(n,i){if(n&1&&(u(0),D(1,"adaptiveFileSize")),n&2){let e=m().$implicit;w(" ",M(1,1,e.value)," ")}}function er(n,i){if(n&1&&(u(0),D(1,"date")),n&2){let e=m().$implicit;w(" ",fi(1,1,e.value,"medium")," ")}}function tr(n,i){if(n&1&&(u(0),D(1,"readableDuration")),n&2){let e=m().$implicit;w(" ",M(1,1,e.value)," ")}}function ir(n,i){if(n&1&&u(0),n&2){let e=m().$implicit;w(" ",e.value," ")}}function nr(n,i){n&1&&(s(0,"div",20),g(1,"mat-divider"),l())}function or(n,i){if(n&1&&(s(0,"div",16)(1,"div",17)(2,"div",18),u(3),D(4,"parametersLabel"),l(),s(5,"div",19),f(6,Jo,2,3)(7,er,2,4)(8,tr,2,3)(9,ir,1,1),l()(),f(10,nr,2,0,"div",20),l()),n&2){let e,t=i.$implicit,o=i.$index,r=i.$count;c(3),w("",M(4,3,t.key),":"),c(3),S((e=t.key)==="file_size_bytes"?6:e==="creation_date"?7:e==="training_duration_seconds"?8:9),c(4),S(o!==r-1?10:-1)}}function rr(n,i){if(n&1&&(X(0,or,11,5,"div",16,ne),D(2,"keyvalue")),n&2){let e=m(3);W(M(2,0,e.summarizedRecord==null?null:e.summarizedRecord.modelTrainingDetails))}}function ar(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function sr(n,i){n&1&&(s(0,"div",20),g(1,"mat-divider"),l())}function lr(n,i){if(n&1&&(s(0,"div",16)(1,"div",17)(2,"div",18),u(3),D(4,"parametersLabel"),l(),s(5,"div",19),u(6),l()(),f(7,sr,2,0,"div",20),l()),n&2){let e=i.$implicit,t=i.$index,o=i.$count;c(3),w("",M(4,3,e.key),":"),c(3),_e(e.value),c(),S(t!==o-1?7:-1)}}function cr(n,i){n&1&&X(0,lr,8,5,"div",16,ne),n&2&&W(i)}function dr(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function pr(n,i){if(n&1&&g(0,"ms-chart-colors-form-controls",21)(1,"ms-line-chart",22),n&2){let e=m(3);c(),h("data",e.lastRunAccuracyTestingChartData)("settings",e.testingAccuracyChartDisplaySettings)}}function mr(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function hr(n,i){if(n&1){let e=E();g(0,"mat-divider"),s(1,"div",10)(2,"mat-label"),u(3,"Set run name"),l(),s(4,"mat-form-field",3),g(5,"input",11),l()(),s(6,"mat-accordion",12)(7,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.statistics,o)||(r.panelStates.statistics=o),x(o)}),s(8,"mat-expansion-panel-header")(9,"mat-panel-title",14),u(10," Statistics "),l()(),f(11,qo,2,0),D(12,"keyvalue"),f(13,Zo,2,0,"div",15),l(),s(14,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.modelTrainingDetails,o)||(r.panelStates.modelTrainingDetails=o),x(o)}),s(15,"mat-expansion-panel-header")(16,"mat-panel-title",14),u(17," Model training details "),l()(),f(18,rr,3,2),D(19,"hasKeys"),f(20,ar,2,0,"div",15),l(),s(21,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.parameters,o)||(r.panelStates.parameters=o),x(o)}),s(22,"mat-expansion-panel-header")(23,"mat-panel-title",14),u(24," Parameters "),l()(),f(25,cr,2,0),D(26,"keyvalue"),f(27,dr,2,0,"div",15),l(),s(28,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.accuracy,o)||(r.panelStates.accuracy=o),x(o)}),s(29,"mat-expansion-panel-header")(30,"mat-panel-title",14),u(31," Last Accuracy Test Run "),l()(),f(32,pr,2,2),D(33,"keyvalue"),f(34,mr,2,0,"div",15),l()()}if(n&2){let e,t,o,r=m(2);c(7),Ce("expanded",r.panelStates.statistics),c(4),S((e=M(12,8,r.summarizedRecord==null?null:r.summarizedRecord.statistics))?11:13,e),c(3),Ce("expanded",r.panelStates.modelTrainingDetails),c(4),S(M(19,10,r.summarizedRecord==null?null:r.summarizedRecord.modelTrainingDetails)?18:20),c(3),Ce("expanded",r.panelStates.parameters),c(4),S((t=M(26,12,r.summarizedRecord==null?null:r.summarizedRecord.parameters))?25:27,t),c(3),Ce("expanded",r.panelStates.accuracy),c(4),S((o=M(33,14,r.summarizedRecord==null?null:r.summarizedRecord.parameters))?32:34,o)}}function ur(n,i){n&1&&g(0,"ms-empty-state",9)}function gr(n,i){if(n&1&&f(0,hr,35,16)(1,ur,1,0,"ms-empty-state",9),n&2){let e=m();S(e.summarizedRecord?0:1)}}var re,Fe=(re=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,o,r,a){this.drawerRef=i,this.drawerConfig=e,this.fb=t,this.recordsFacadeService=o,this.recordsDataService=r,this.customAPILoadingService=a,this.panelStates={statistics:!0,parameters:!0,accuracy:!0,modelTrainingDetails:!0},this.form=new st({}),this.algorithmTypeLabel="",this.files=[],this.isSummarizedRecordLoading$=this.customAPILoadingService.getLoadingObservableForKey(vn.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 j.ADD:{this.loadData(),this.configureAddTypeActions();break}case j.EDIT:case j.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:xt.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(ii(300),L(this)).subscribe(i=>{if(Le(i))return;let{backgroundColor:e,borderColor:t}=i;this.testingAccuracyChartDisplaySettings=Xe(Ae({},this.testingAccuracyChartDisplaySettings),{customChartColors:{datasetColors:[{backgroundColor:e,borderColor:t}]}}),this.lastRunAccuracyTestingChartData=[...this.lastRunAccuracyTestingChartData]})}configureEditOrViewTypeActions(){let{recordName:i,recordFilename:e,record:t,chartColors:o}=this.drawerConfig.data;this.drawerConfig.actionType===j.VIEW?this.form.disable():this.drawerConfig.actionType===j.EDIT&&this.selectRunFormControl.disable(),this.files=[{name:e,disabled:!0}],this.form.patchValue({selectRun:e,runName:i,chart:{borderColor:o.borderColor,backgroundColor:o.backgroundColor}}),this.summarizedRecord=t,this.lastRunAccuracyTestingChartData=this.configureChartDataset(t),this.testingAccuracyChartDisplaySettings=Xe(Ae({},this.testingAccuracyChartDisplaySettings),{hasCustomDatasetsLabels:!0,customDatasetsLabels:[i],customChartColors:{datasetColors:[{backgroundColor:o.backgroundColor||"rgba(241, 196, 15, 0.2)",borderColor:o.borderColor||"#f1c40f"}]}})}configureAddTypeActions(){this.listenToSelectRunFormValueChanges(),this.listenToSummarizedRecordChanges()}listenToSelectRunFormValueChanges(){this.selectRunFormControl.valueChanges.pipe(L(this),Ee(i=>!gt(i))).subscribe(i=>{this.runNameFormControl.reset(),this.recordsFacadeService.dispatch(Gt.getRunRecordSummarizedData({algorithmType:this.recordsDataService.algorithmType,filename:i}))})}listenToSummarizedRecordChanges(){this.recordsFacadeService.summarizedRecord$.pipe(L(this),Pt(1)).subscribe(i=>{this.summarizedRecord=i,this.lastRunAccuracyTestingChartData=this.configureChartDataset(i);let e=this.summarizedRecord?.statistics.algorithm_key,t=this.summarizedRecord?.parameters.arch;!gt(e)&&!gt(t)&&this.runNameFormControl.setValue(`${e}_${t}`),this.savePanelStates(),this.restorePanelStates()})}configureChartDataset(i){return[{datasetIndex:0,values:i.lastRunTestingAccuracyData||[]}]}loadData(){this.recordsFacadeService.dispatch(Gt.getRunRecordsFilenames({algorithmType:this.recordsDataService.algorithmType})),this.recordsFacadeService.filenames$.pipe(Pt(1),de(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,Te.required],runName:[null,Te.required],chart:this.fb.group({borderColor:[i.borderColor,Te.required],backgroundColor:[i.backgroundColor,Te.required]})})}getDefaultChartColors(){let i=Math.max(this.recordsDataService.records.length,0),e=fn[vt.YELLOW].datasetColors[i];return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}}save(i){if(i!==ye.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])})}},re.\u0275fac=function(e){return new(e||re)(p(gn),p(un),p(dt),p(St),p(z),p(xn))},re.\u0275cmp=A({type:re,selectors:[["ms-run-drawer-actions"]],viewQuery:function(e,t){if(e&1&&Z(oe,5),e&2){let o;N(o=V())&&(t.panels=o)}},decls:12,vars:7,consts:[[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["formControlName","selectRun","placeholder","Select a run record"],["disabled",""],[3,"value","disabled"],[1,"spinner-wrapper","mt-4"],["diameter","80"],["title","Awaiting Run Record Selection","message","Select a run record from the dropdown to view details and statistics."],[1,"form-field-container","mt-4"],["matInput","","formControlName","runName","placeholder","Set run name"],["multi",""],[3,"expandedChange","expanded"],[1,"paragraph-bold-p3-small-bold"],[1,"no-data-container"],[1,"key-value-container","single"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[1,"pt-2"],["controlKey","chart"],[3,"data","settings"]],template:function(e,t){e&1&&(s(0,"ms-drawer",0),_("actionEvent",function(r){return t.save(r)}),s(1,"form",1)(2,"div",2)(3,"mat-label"),u(4,"Select run record"),l(),s(5,"mat-form-field",3)(6,"mat-select",4),f(7,Go,2,1,"mat-option",5)(8,$o,2,0),l()()(),f(9,Xo,3,0,"div"),D(10,"async"),f(11,gr,2,1),l()()),e&2&&(h("isSaveDisabled",t.form.invalid),c(),h("formGroup",t.form),c(6),S(t.files.length===0?7:-1),c(),S(t.files.length>0?8:-1),c(),S(M(10,5,t.isSummarizedRecordLoading$)?9:11))},dependencies:[_t,Ge,Ct,Bn,oe,ke,Ye,lt,ki,we,Ne,ct,Ve,mt,pt,ft,rt,at,Xi,ji,jn,Re,bi,wi,Cn,bt,_n,Hn],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),re);Fe=ce([be()],Fe);function _r(n,i){if(n&1){let e=E();s(0,"mat-card",1)(1,"div",2)(2,"div",3),u(3),l(),s(4,"div",4)(5,"button",5),_("click",function(){let o=v(e).$implicit,r=m(2);return x(r.viewRecord(o))}),g(6,"mat-icon",6),l(),s(7,"button",5),_("click",function(){let o=v(e),r=o.$implicit,a=o.$index,d=m(2);return x(d.editRecord(a,r))}),g(8,"mat-icon",7),l(),s(9,"button",8),_("click",function(){let o=v(e).$index,r=m(2);return x(r.removeRecord(o))}),s(10,"mat-icon",9),u(11,"delete"),l()()()()()}if(n&2){let e=i.$implicit;c(3),_e(e.recordName)}}function Cr(n,i){n&1&&X(0,_r,12,1,"mat-card",1,ne),n&2&&W(i)}var Yn=(()=>{let i=class i{constructor(t,o){this.recordsDataService=t,this.drawerService=o}removeRecord(t){this.recordsDataService.removeRecord(t)}viewRecord(t){this.drawerService.open(Fe,{title:"View Run",showSaveButton:!1,showCloseButton:!0,closeButtonLabel:"Close",actionType:j.VIEW,data:t})}editRecord(t,o){this.drawerService.open(Fe,{title:"Edit Run",saveButtonLabel:"Update",showCloseButton:!0,closeButtonLabel:"Close",actionType:j.EDIT,data:o}).afterClosed().pipe(de(1)).subscribe(a=>{let{status:d}=a;if(d===ye.DISMISS||d===ye.CLOSE)return;let{result:C}=a;Le(C)||this.recordsDataService.updateRecord(t,C)})}};i.\u0275fac=function(o){return new(o||i)(p(z),p(je))},i.\u0275cmp=A({type:i,selectors:[["ms-algorithm-comparison-list"]],decls:3,vars:3,consts:[[1,"items-wrapper"],[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(o,r){if(o&1&&(s(0,"div",0),f(1,Cr,2,0),D(2,"async"),l()),o&2){let a;c(),S((a=M(2,1,r.recordsDataService.records$))?1:-1,a)}},dependencies:[Mn,He,Ki,Ni,Re],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 ae,Dt=(ae=class{constructor(i,e){this.recordsDataService=i,this.chartToolsGlobalSignalsService=e,this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisMaximumValue:100,yAxisTickInterval:20,chartDataStructure:xt.SINGLE_PHASE_X_AXIS,datasetColorSettingsKey:vt.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(L(this)).subscribe(i=>{zt(i)||(this.lastRunsAccuracyTestingChartData=this.configureChartDatasets(i),this.testingAccuracyChartDisplaySettings=Xe(Ae({},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(L(this)).subscribe(i=>{this.enableTooltips=i}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(L(this)).subscribe(i=>{this.enableZoom=i})}configureChartDatasets(i){let e=[];return i.forEach((t,o)=>{let{record:r}=t;e.push({datasetIndex:o,values:r.lastRunTestingAccuracyData||[]})}),e}toggleTooltip(i){this.chartToolsGlobalSignalsService.toggleTooltips=i.checked}toggleZoom(i){this.chartToolsGlobalSignalsService.toggleZoom=i.checked}},ae.\u0275fac=function(e){return new(e||ae)(p(z),p(ze))},ae.\u0275cmp=A({type:ae,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&&(s(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),u(3," Last Accuracy Test Run "),l()(),s(4,"div",2)(5,"div")(6,"mat-slide-toggle",3),xe("ngModelChange",function(r){return ve(t.enableTooltips,r)||(t.enableTooltips=r),r}),_("change",function(r){return t.toggleTooltip(r)}),u(7," Enable tooltips "),l()(),s(8,"div",4)(9,"mat-slide-toggle",5),xe("ngModelChange",function(r){return ve(t.enableZoom,r)||(t.enableZoom=r),r}),_("change",function(r){return t.toggleZoom(r)}),u(10," Enable zoom "),l(),s(11,"div",6),g(12,"mat-icon",7),l()()(),g(13,"ms-line-chart",8),l()),e&2&&(c(6),Ce("ngModel",t.enableTooltips),c(3),Ce("ngModel",t.enableZoom),c(4),h("data",t.lastRunsAccuracyTestingChartData)("settings",t.testingAccuracyChartDisplaySettings))},dependencies:[Ge,oe,ke,Ye,we,Fi,He,Ji]}),ae);Dt=ce([be()],Dt);var br=new me("MAT_SORT_DEFAULT_OPTIONS"),$n=(()=>{let i=class i{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new ei(1),this.sortables=new Map,this._stateChanges=new Me,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new y,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let o=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=wr(t.start||this.start,o),a=r.indexOf(this.direction)+1;return a>=r.length&&(a=0),r[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};i.\u0275fac=function(o){return new(o||i)(p(br,8))},i.\u0275dir=P({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",ee],disabled:[2,"matSortDisabled","disabled",ee]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ie,ue]});let n=i;return n})();function wr(n,i){let e=["asc","desc"];return n=="desc"&&e.reverse(),i||e.push(""),e}var zs=Ei.ENTERING+" "+Mi.STANDARD_CURVE;function yr(n,i){n&1&&(s(0,"th",10),u(1,"Record Name"),l())}function Sr(n,i){if(n&1&&(s(0,"td",11),u(1),l()),n&2){let e=i.$implicit;c(),_e(e.recordName)}}function Dr(n,i){if(n&1&&(s(0,"th",10),u(1),D(2,"parametersLabel"),l()),n&2){let e=m().$implicit;c(),w(" ",M(2,1,e)," ")}}function Ar(n,i){if(n&1&&(s(0,"td",11),u(1),D(2,"emptyTableField"),l()),n&2){let e=i.$implicit,t=m().$implicit;c(),w(" ",M(2,1,e[t])," ")}}function Mr(n,i){if(n&1&&(U(0,7),f(1,Dr,3,3,"th",5)(2,Ar,3,3,"td",6),Q()),n&2){let e=i.$implicit;h("matColumnDef",e)}}function Er(n,i){n&1&&g(0,"tr",12)}function Tr(n,i){n&1&&g(0,"tr",13)}var se,At=(se=class{constructor(i){this.recordsDataService=i,this.dataSource=new hn,this.displayedColumns=[]}ngOnInit(){this.recordsDataService.records$.pipe(L(this)).subscribe(i=>{this.updateDisplayedColumns(i),this.updateDataSource(i)})}ngAfterViewInit(){Le(this.sort)||setTimeout(()=>{this.dataSource.sort=this.sort},1200)}updateDisplayedColumns(i){let e=new Set;i.forEach(t=>{Object.keys(t.record.parameters).forEach(o=>{o!=="save_dir"&&o!=="data"&&e.add(o)})}),this.displayedColumns=["recordName",...Array.from(e)]}updateDataSource(i){let e=i.map(t=>{let o=t.record.parameters;return Ae({recordName:t.recordName},o)});this.dataSource.data=e}},se.\u0275fac=function(e){return new(e||se)(p(z))},se.\u0275cmp=A({type:se,selectors:[["ms-algorithm-comparison-table"]],viewQuery:function(e,t){if(e&1&&Z($n,5),e&2){let o;N(o=V())&&(t.sort=o.first)}},decls:13,vars:3,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"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","hover-highlight",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"hover-highlight"]],template:function(e,t){e&1&&(s(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),u(3," Parameters "),l()(),s(4,"div",2)(5,"table",3),U(6,4),f(7,yr,2,0,"th",5)(8,Sr,2,1,"td",6),Q(),X(9,Mr,3,1,"ng-container",7,ne),f(11,Er,1,0,"tr",8)(12,Tr,1,0,"tr",9),l()()()),e&2&&(c(5),h("dataSource",t.dataSource),c(4),W(t.displayedColumns.slice(1)),c(2),h("matHeaderRowDef",t.displayedColumns),c(),h("matRowDefColumns",t.displayedColumns))},dependencies:[oe,ke,Ye,tn,on,ln,rn,nn,cn,an,sn,dn,pn,bt,Vn],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}"]}),se);At=ce([be()],At);var kr=(n,i)=>i.key;function Fr(n,i){if(n&1&&(s(0,"mat-option",6),u(1),l()),n&2){let e=i.$implicit;h("value",e.key),c(),w(" ",e.value," ")}}function Ir(n,i){n&1&&(g(0,"ms-algorithm-comparison-list"),s(1,"div",7),g(2,"mat-divider"),l(),g(3,"ms-algorithm-comparison-table"),s(4,"div",7),g(5,"mat-divider"),l(),g(6,"ms-algorithm-comparison-chart"))}function Rr(n,i){n&1&&(s(0,"div",11),g(1,"ms-empty-state",12),l())}var le,Mt=(le=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 st({}),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(Fe,{title:"Add Run",saveButtonLabel:"Add",showCloseButton:!0,closeButtonLabel:"Close",actionType:j.ADD}).afterClosed().pipe(de(1)).subscribe(e=>{let{status:t}=e;if(t===ye.DISMISS||t===ye.CLOSE)return;let{result:o}=e;this.recordsDataService.addRecord(o)})}ngOnInit(){this.initForm(),this.listenToAlgorithmTypeChanges()}initForm(){this.form=this.fb.group({[this.ALGORITHM_TYPE_CONTROL_NAME]:[this.recordsDataService.algorithmType,Te.required]})}listenToAlgorithmTypeChanges(){this.algorithmTypeFormControl.valueChanges.pipe(L(this)).subscribe(i=>{this.recordsDataService.algorithmType=i})}},le.\u0275fac=function(e){return new(e||le)(p(je),p(z),p(dt))},le.\u0275cmp=A({type:le,selectors:[["ms-algorithm-comparison"]],decls:19,vars:5,consts:[[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"],[1,"mt-4","mb-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Plus"],[1,"mt-4"],[1,"no-data-wrapper"],["title","No data selected"]],template:function(e,t){e&1&&(s(0,"div",0)(1,"p",1),u(2,"Algorithm Comparison for"),l(),s(3,"form",2)(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),X(7,Fr,2,2,"mat-option",6,kr),l()()()()(),s(9,"div",7),g(10,"mat-divider"),l(),s(11,"button",8),_("click",function(){return t.openAddRunDrawer()}),g(12,"mat-icon",9),u(13,` Add run +`),l(),s(14,"div",10),g(15,"mat-divider"),l(),f(16,Ir,7,0),D(17,"async"),f(18,Rr,2,0,"div",11)),e&2&&(c(3),h("formGroup",t.form),c(3),h("formControlName",t.ALGORITHM_TYPE_CONTROL_NAME),c(),W(t.algorithmTypesOptions),c(9),S(M(17,3,t.recordsDataService.records$).length>0?16:18))},dependencies:[Ct,lt,we,Ne,ct,Ve,mt,ft,rt,at,He,Bi,Yn,Dt,At,Re],styles:[".no-data-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),le);Mt=ce([be()],Mt);var Or=[{path:"",component:Mt}],Xn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({imports:[Vt.forChild(Or),Vt]});let n=i;return n})();var nc=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({providers:[je,St,z,ze],imports:[ot,Xn,_t,An,Ge,Nn,Ri,Oi,Hi,Zi,Ti,Wi,Li,qi,mn,en,Vi,zi]});let n=i;return n})();export{nc as AlgorithmComparisonModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-G267DK6J.js b/frontend/server/modelsmith-build/browser/chunk-A3HRP5BG.js similarity index 96% rename from frontend/server/modelsmith-build/browser/chunk-G267DK6J.js rename to frontend/server/modelsmith-build/browser/chunk-A3HRP5BG.js index aac10315..32ecfefe 100644 --- a/frontend/server/modelsmith-build/browser/chunk-G267DK6J.js +++ b/frontend/server/modelsmith-build/browser/chunk-A3HRP5BG.js @@ -1 +1 @@ -import{l as Ge,o as Ye,p as Xe,s as Z,t as J,u as ee,v as Ue}from"./chunk-NT2MTW7W.js";import{e as ze,f as He,i as Qe}from"./chunk-HG2O7P4S.js";import{$ as se,A as ae,Ab as Ce,Ac as ke,Bb as Oe,Cc as D,D as w,Dc as Ie,Dd as Ee,E as P,Ea as g,Ec as xe,Fa as l,Gd as De,J as ne,Ka as ue,Kd as U,L as re,Lb as Me,Ld as Re,Md as Fe,Nb as C,Ob as H,Pa as _e,Qa as I,R as L,Ra as x,Rd as Ve,S as W,Sa as j,Sb as we,Sd as Pe,T as m,Ua as ge,Ud as Le,Vd as We,Wd as je,Xa as fe,Xd as $,Ya as B,aa as S,ab as h,bb as f,bc as Se,be as Be,cb as ye,da as oe,de as Ke,gb as K,ha as le,he as qe,ia as ce,j as O,jb as M,lb as y,mb as ve,me as Ne,nb as q,oa as de,pa as u,pb as A,qa as _,qb as T,ra as he,rb as v,sb as b,sd as Y,tb as be,ua as pe,ub as N,vb as z,vc as Q,wc as G,wd as Ae,x as V,xa as me,xd as X,ya as k,zc as E,zd as Te}from"./chunk-NPZHNGVX.js";var ht=["trigger"],pt=["panel"],mt=[[["mat-select-trigger"]],"*"],ut=["mat-select-trigger","*"];function _t(n,r){if(n&1&&(h(0,"span",4),N(1),f()),n&2){let o=y();g(),z(o.placeholder)}}function gt(n,r){n&1&&q(0)}function ft(n,r){if(n&1&&(h(0,"span",11),N(1),f()),n&2){let o=y(2);g(),z(o.triggerValue)}}function yt(n,r){if(n&1&&(h(0,"span",5),I(1,gt,1,0)(2,ft,2,1,"span",11),f()),n&2){let o=y();g(),B(o.customTrigger?1:2)}}function vt(n,r){if(n&1){let o=K();h(0,"div",12,1),M("@transformPanel.done",function(t){u(o);let i=y();return _(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){u(o);let i=y();return _(i._handleKeydown(t))}),q(2,1),f()}if(n&2){let o=y();fe("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),j("ngClass",o.panelClass)("@transformPanel","showing"),x("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var bt={transformPanelWrap:Q("transformPanelWrap",[D("* => void",xe("@transformPanel",[Ie()],{optional:!0}))]),transformPanel:Q("transformPanel",[ke("void",E({opacity:0,transform:"scale(1, 0.8)"})),D("void => showing",G("120ms cubic-bezier(0, 0, 0.2, 1)",E({opacity:1,transform:"scale(1, 1)"}))),D("* => void",G("100ms linear",E({opacity:0})))])};var tt=0,it=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=oe(Z);return()=>n.scrollStrategies.reposition()}});function Ct(n){return()=>n.scrollStrategies.reposition()}var Ot=new S("MAT_SELECT_CONFIG"),Mt={provide:it,deps:[Z],useFactory:Ct},wt=new S("MatSelectTrigger"),te=class{constructor(r,o){this.source=r,this.value=o}},ri=(()=>{let r=class r{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=je(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new te(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Be.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,a,s,p,c,at,nt,ie,rt,st,ot,R){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=p,this._parentFormField=nt,this.ngControl=ie,this._liveAnnouncer=ot,this._defaultOptions=R,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=(d,F)=>d===F,this._uid=`mat-select-${tt++}`,this._triggerAriaLabelledBy=null,this._destroy=new O,this.stateChanges=new O,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${tt++}`,this._panelDoneAnimatingStream=new O,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 O,this.optionSelectionChanges=ae(()=>{let d=this.options;return d?d.changes.pipe(L(d),W(()=>w(...d.map(F=>F.onSelectionChange)))):this._initialized.pipe(W(()=>this.optionSelectionChanges))}),this.openedChange=new k,this._openedStream=this.openedChange.pipe(P(d=>d),V(()=>{})),this._closedStream=this.openedChange.pipe(P(d=>!d),V(()=>{})),this.selectionChange=new k,this.valueChange=new k,this._trackedModal=null,this._skipPredicate=d=>this.panelOpen?!1:d.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),R?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=R.typeaheadDebounceInterval),this._errorStateTracker=new Re(a,ie,at,c,this.stateChanges),this._scrollStrategyFactory=st,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(rt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ge(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(re(),m(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(m(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(m(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(L(null),m(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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 e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&X(this._trackedModal,"aria-owns",t),Ae(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;X(this._trackedModal,"aria-owns",e),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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&a&&!Y(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let p=this.selected;s.onKeydown(e);let c=this.selected;c&&p!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,s=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!Y(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let p=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(p?c.select():c.deselect())})}else{let p=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==p&&t.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(ne(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(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof J?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Te(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 e=w(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(m(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),w(...this.options.map(t=>t._stateChanges)).pipe(m(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};r.\u0275fac=function(t){return new(t||r)(l(Ye),l(Me),l(ue),l(Fe),l(me),l(De,8),l(qe,8),l(Ne,8),l(He,8),l(Ke,10),pe("tabindex"),l(it),l(Ee),l(Ot,8))},r.\u0275cmp=le({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,wt,5),A(a,Le,5),A(a,Pe,5)),t&2){let s;v(s=b())&&(i.customTrigger=s.first),v(s=b())&&(i.options=s),v(s=b())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(T(ht,5),T(pt,5),T(ee,5)),t&2){let a;v(a=b())&&(i.trigger=a.first),v(a=b())&&(i.panel=a.first),v(a=b())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&M("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(x("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ge("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",C],disableRipple:[2,"disableRipple","disableRipple",C],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:H(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C],placeholder:"placeholder",required:[2,"required","required",C],multiple:[2,"multiple","multiple",C],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",C],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",H],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:ze,useExisting:r},{provide:Ve,useExisting:r}]),_e,de,Oe],ngContentSelectors:ut,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(t,i){if(t&1){let a=K();ve(mt),h(0,"div",2,0),M("click",function(){return u(a),_(i.open())}),h(3,"div",3),I(4,_t,2,1,"span",4)(5,yt,3,1,"span",5),f(),h(6,"div",6)(7,"div",7),he(),h(8,"svg",8),ye(9,"path",9),f()()()(),I(10,vt,3,9,"ng-template",10),M("backdropClick",function(){return u(a),_(i.close())})("attach",function(){return u(a),_(i._onAttached())})("detach",function(){return u(a),_(i.close())})}if(t&2){let a=be(1);g(3),x("id",i._valueId),g(),B(i.empty?4:5),g(6),j("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[J,ee,we],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:[bt.transformPanel]},changeDetection:0});let n=r;return n})();var si=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ce({type:r}),r.\u0275inj=se({providers:[Mt],imports:[Se,Ue,$,U,Xe,Qe,$,U]});let n=r;return n})();export{ri as a,si as b}; +import{l as Ge,o as Ye,p as Xe,s as Z,t as J,u as ee,v as Ue}from"./chunk-LDDHJMMZ.js";import{e as ze,f as He,i as Qe}from"./chunk-RTK5DRKR.js";import{$ as se,A as ae,Ab as Ce,Ac as Ie,Ad as Ee,Bb as Oe,Bc as xe,D as w,Dd as De,E as P,Ea as g,Fa as l,Hd as U,Id as Re,J as ne,Jd as Fe,Ka as ue,L as re,Lb as Me,Nb as C,Ob as H,Od as Ve,Pa as _e,Pd as Pe,Qa as I,R as L,Ra as x,Rd as Le,S as W,Sa as j,Sb as we,Sd as We,T as m,Td as je,Ua as ge,Ud as $,Xa as fe,Ya as B,_b as Se,_d as Be,aa as S,ab as h,ae as Ke,bb as f,cb as ye,da as oe,ee as qe,gb as K,ha as le,ia as ce,j as O,jb as M,je as Ne,lb as y,mb as ve,nb as q,oa as de,pa as u,pb as A,pd as Y,qa as _,qb as T,ra as he,rb as v,sb as b,sc as Q,tb as be,tc as G,td as Ae,ua as pe,ub as N,ud as X,vb as z,wc as E,wd as Te,x as V,xa as me,xc as ke,ya as k,zc as D}from"./chunk-I5FNXPEQ.js";var ht=["trigger"],pt=["panel"],mt=[[["mat-select-trigger"]],"*"],ut=["mat-select-trigger","*"];function _t(n,r){if(n&1&&(h(0,"span",4),N(1),f()),n&2){let o=y();g(),z(o.placeholder)}}function gt(n,r){n&1&&q(0)}function ft(n,r){if(n&1&&(h(0,"span",11),N(1),f()),n&2){let o=y(2);g(),z(o.triggerValue)}}function yt(n,r){if(n&1&&(h(0,"span",5),I(1,gt,1,0)(2,ft,2,1,"span",11),f()),n&2){let o=y();g(),B(o.customTrigger?1:2)}}function vt(n,r){if(n&1){let o=K();h(0,"div",12,1),M("@transformPanel.done",function(t){u(o);let i=y();return _(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){u(o);let i=y();return _(i._handleKeydown(t))}),q(2,1),f()}if(n&2){let o=y();fe("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),j("ngClass",o.panelClass)("@transformPanel","showing"),x("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var bt={transformPanelWrap:Q("transformPanelWrap",[D("* => void",xe("@transformPanel",[Ie()],{optional:!0}))]),transformPanel:Q("transformPanel",[ke("void",E({opacity:0,transform:"scale(1, 0.8)"})),D("void => showing",G("120ms cubic-bezier(0, 0, 0.2, 1)",E({opacity:1,transform:"scale(1, 1)"}))),D("* => void",G("100ms linear",E({opacity:0})))])};var tt=0,it=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=oe(Z);return()=>n.scrollStrategies.reposition()}});function Ct(n){return()=>n.scrollStrategies.reposition()}var Ot=new S("MAT_SELECT_CONFIG"),Mt={provide:it,deps:[Z],useFactory:Ct},wt=new S("MatSelectTrigger"),te=class{constructor(r,o){this.source=r,this.value=o}},ri=(()=>{let r=class r{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=je(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new te(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Be.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,a,s,p,c,at,nt,ie,rt,st,ot,R){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=p,this._parentFormField=nt,this.ngControl=ie,this._liveAnnouncer=ot,this._defaultOptions=R,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=(d,F)=>d===F,this._uid=`mat-select-${tt++}`,this._triggerAriaLabelledBy=null,this._destroy=new O,this.stateChanges=new O,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${tt++}`,this._panelDoneAnimatingStream=new O,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 O,this.optionSelectionChanges=ae(()=>{let d=this.options;return d?d.changes.pipe(L(d),W(()=>w(...d.map(F=>F.onSelectionChange)))):this._initialized.pipe(W(()=>this.optionSelectionChanges))}),this.openedChange=new k,this._openedStream=this.openedChange.pipe(P(d=>d),V(()=>{})),this._closedStream=this.openedChange.pipe(P(d=>!d),V(()=>{})),this.selectionChange=new k,this.valueChange=new k,this._trackedModal=null,this._skipPredicate=d=>this.panelOpen?!1:d.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),R?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=R.typeaheadDebounceInterval),this._errorStateTracker=new Re(a,ie,at,c,this.stateChanges),this._scrollStrategyFactory=st,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(rt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ge(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(re(),m(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(m(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(m(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(L(null),m(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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 e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&X(this._trackedModal,"aria-owns",t),Ae(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;X(this._trackedModal,"aria-owns",e),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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&a&&!Y(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let p=this.selected;s.onKeydown(e);let c=this.selected;c&&p!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,s=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!Y(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let p=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(p?c.select():c.deselect())})}else{let p=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==p&&t.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(ne(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(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof J?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Te(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 e=w(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(m(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),w(...this.options.map(t=>t._stateChanges)).pipe(m(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};r.\u0275fac=function(t){return new(t||r)(l(Ye),l(Me),l(ue),l(Fe),l(me),l(De,8),l(qe,8),l(Ne,8),l(He,8),l(Ke,10),pe("tabindex"),l(it),l(Ee),l(Ot,8))},r.\u0275cmp=le({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,wt,5),A(a,Le,5),A(a,Pe,5)),t&2){let s;v(s=b())&&(i.customTrigger=s.first),v(s=b())&&(i.options=s),v(s=b())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(T(ht,5),T(pt,5),T(ee,5)),t&2){let a;v(a=b())&&(i.trigger=a.first),v(a=b())&&(i.panel=a.first),v(a=b())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&M("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(x("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ge("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",C],disableRipple:[2,"disableRipple","disableRipple",C],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:H(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C],placeholder:"placeholder",required:[2,"required","required",C],multiple:[2,"multiple","multiple",C],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",C],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",H],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:ze,useExisting:r},{provide:Ve,useExisting:r}]),_e,de,Oe],ngContentSelectors:ut,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(t,i){if(t&1){let a=K();ve(mt),h(0,"div",2,0),M("click",function(){return u(a),_(i.open())}),h(3,"div",3),I(4,_t,2,1,"span",4)(5,yt,3,1,"span",5),f(),h(6,"div",6)(7,"div",7),he(),h(8,"svg",8),ye(9,"path",9),f()()()(),I(10,vt,3,9,"ng-template",10),M("backdropClick",function(){return u(a),_(i.close())})("attach",function(){return u(a),_(i._onAttached())})("detach",function(){return u(a),_(i.close())})}if(t&2){let a=be(1);g(3),x("id",i._valueId),g(),B(i.empty?4:5),g(6),j("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[J,ee,we],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:[bt.transformPanel]},changeDetection:0});let n=r;return n})();var si=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ce({type:r}),r.\u0275inj=se({providers:[Mt],imports:[Se,Ue,$,U,Xe,Qe,$,U]});let n=r;return n})();export{ri as a,si as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-A5OSDHA4.js b/frontend/server/modelsmith-build/browser/chunk-A5OSDHA4.js new file mode 100644 index 00000000..8a076503 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-A5OSDHA4.js @@ -0,0 +1,2 @@ +import{b as I}from"./chunk-RTK5DRKR.js";import{Bb as C,Ea as m,Fa as i,Na as d,Qa as f,T as a,Ya as p,ab as u,ae as x,bb as h,ha as c,j as s,ja as l,jb as y,lb as g,ub as E,wb as v}from"./chunk-I5FNXPEQ.js";function R(e,t){if(e&1&&(u(0,"mat-error",0),E(1),h()),e&2){let O=g();m(),v(" ",O.text,` +`)}}var _=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=c({type:t,selectors:[["ms-error-message"]],inputs:{text:"text"},standalone:!0,features:[C],decls:1,vars:1,consts:[[1,"error-message"]],template:function(r,o){r&1&&f(0,R,2,1,"mat-error",0),r&2&&p(o.text?0:-1)},dependencies:[I],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)}}"]});let e=t;return e})();var D="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 D:return"Only numeric characters allowed";default:return t}}var S=(()=>{let t=class t{constructor(n,r){this.control=n,this.vcr=r,this._destroyed$=new s}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(a(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 n=this.componentRef.location.nativeElement;n.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(n)}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)(i(x),i(d))},t.\u0275dir=l({type:t,selectors:[["","msErrorDisplay",""]],hostBindings:function(r,o){r&1&&y("blur",function(){return o.onBlur()})},standalone:!0});let e=t;return e})();export{S as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GU66N7RS.js b/frontend/server/modelsmith-build/browser/chunk-AQCNYKBR.js similarity index 82% rename from frontend/server/modelsmith-build/browser/chunk-GU66N7RS.js rename to frontend/server/modelsmith-build/browser/chunk-AQCNYKBR.js index 6d6ab599..4eadd59c 100644 --- a/frontend/server/modelsmith-build/browser/chunk-GU66N7RS.js +++ b/frontend/server/modelsmith-build/browser/chunk-AQCNYKBR.js @@ -1 +1 @@ -import{a as x,b,c as f}from"./chunk-NG4KGRDN.js";import{a as G}from"./chunk-V6EH3YHO.js";import{a as u}from"./chunk-7IMKJ6YK.js";import"./chunk-URO2J7UO.js";import{a as V,b as B}from"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as I}from"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as d,Ea as y,Fa as l,Fb as F,Gb as P,Ie as j,_b as T,ab as r,bb as m,bc as D,cb as a,dd as C,gb as S,ha as w,ia as p,jb as g,oc as R,pa as M,qa as h,qb as k,rb as E,sb as O,sc as v,ub as s,ue as A,wb as _,xe as N}from"./chunk-NPZHNGVX.js";var U=["configureDefaultMode"],H=(()=>{let e=class e{constructor(i,t,c){this.authFacadeService=i,this.configFacadeService=t,this.router=c}setModeAndNavigate(i){let t=this.defaultModeCheckbox.checked?i:void 0;this.configFacadeService.dispatch(x.setDefaultMode({mode:t})),this.configFacadeService.dispatch(x.setCurrentMode({mode:t}))}goToExpertMode(){this.setModeAndNavigate(b.EXPERT),this.router.navigate([C.MODEL_COMPRESSION.ROOT])}goToGuidedMode(){this.setModeAndNavigate(b.GUIDED),this.router.navigate([C.WIZARD.ROOT])}};e.\u0275fac=function(t){return new(t||e)(l(j),l(I),l(R))},e.\u0275cmp=w({type:e,selectors:[["ms-mode-select"]],viewQuery:function(t,c){if(t&1&&k(U,5),t&2){let n;E(n=O())&&(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),F(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),g("click",function(){return M(n),h(c.goToExpertMode())}),s(14,"Expert Mode"),m()(),r(15,"div",8)(16,"button",7),g("click",function(){return M(n),h(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;y(7),_("Hello ",(n=P(8,1,c.authFacadeService.user$))==null?null:n.name,"")}},dependencies:[G,u,f,V,A,T],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 o=e;return o})();var q=[{path:"",component:H}],L=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[v.forChild(q),v]});let o=e;return o})();var Ce=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[L,D,u,f,B,N]});let o=e;return o})();export{Ce as ModeSelectModule}; +import{a as x,b,c as f}from"./chunk-ZKC6ZYY5.js";import{a as G}from"./chunk-VJRM3LPA.js";import{a as u}from"./chunk-CRARU3EW.js";import"./chunk-6USI7MSU.js";import{a as V,b as B}from"./chunk-VRD7QX3W.js";import"./chunk-452CEXFK.js";import"./chunk-SWEZDJOL.js";import{a as I}from"./chunk-LDDHJMMZ.js";import"./chunk-RTK5DRKR.js";import{$ as d,Ea as y,Fa as l,Fb as F,Fe as j,Gb as P,Xb as T,_b as D,ab as r,ad as C,bb as m,cb as a,gb as S,ha as w,ia as p,jb as g,lc as R,pa as M,pc as v,qa as h,qb as k,rb as E,re as A,sb as O,ub as s,ue as N,wb as _}from"./chunk-I5FNXPEQ.js";var U=["configureDefaultMode"],H=(()=>{let e=class e{constructor(i,t,c){this.authFacadeService=i,this.configFacadeService=t,this.router=c}setModeAndNavigate(i){let t=this.defaultModeCheckbox.checked?i:void 0;this.configFacadeService.dispatch(x.setDefaultMode({mode:t})),this.configFacadeService.dispatch(x.setCurrentMode({mode:t}))}goToExpertMode(){this.setModeAndNavigate(b.EXPERT),this.router.navigate([C.MODEL_COMPRESSION.ROOT])}goToGuidedMode(){this.setModeAndNavigate(b.GUIDED),this.router.navigate([C.WIZARD.ROOT])}};e.\u0275fac=function(t){return new(t||e)(l(j),l(I),l(R))},e.\u0275cmp=w({type:e,selectors:[["ms-mode-select"]],viewQuery:function(t,c){if(t&1&&k(U,5),t&2){let n;E(n=O())&&(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),F(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),g("click",function(){return M(n),h(c.goToExpertMode())}),s(14,"Expert Mode"),m()(),r(15,"div",8)(16,"button",7),g("click",function(){return M(n),h(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;y(7),_("Hello ",(n=P(8,1,c.authFacadeService.user$))==null?null:n.name,"")}},dependencies:[G,u,f,V,A,T],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 o=e;return o})();var q=[{path:"",component:H}],L=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[v.forChild(q),v]});let o=e;return o})();var Ce=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[L,D,u,f,B,N]});let o=e;return o})();export{Ce as ModeSelectModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-BKOEUR5B.js b/frontend/server/modelsmith-build/browser/chunk-BKOEUR5B.js new file mode 100644 index 00000000..53fe3623 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-BKOEUR5B.js @@ -0,0 +1 @@ +import{a as O}from"./chunk-DKMMNZKM.js";import{a as I}from"./chunk-D4NO5T2F.js";import"./chunk-M3BJA4RX.js";import"./chunk-DFEVON6A.js";import"./chunk-HHI42NCD.js";import"./chunk-YTNKLUWY.js";import{a as Ot,b as It}from"./chunk-A3HRP5BG.js";import"./chunk-VRD7QX3W.js";import"./chunk-452CEXFK.js";import"./chunk-SWEZDJOL.js";import{a as _,b as Et,c as Rt,d as H}from"./chunk-OMCAGIEN.js";import"./chunk-BY5EH3KZ.js";import"./chunk-W5GEUOC3.js";import{b as g,d as z,e as Mt,g as h,k as Ft,p as Pt}from"./chunk-W4U3FJPJ.js";import{a as Nt,b as _t}from"./chunk-I4357ONH.js";import{a as P,b as N,d as bt,k as Gt}from"./chunk-KE2JE72J.js";import{a as T,b as f}from"./chunk-COKZMNNS.js";import"./chunk-LDDHJMMZ.js";import{h as At,i as Tt}from"./chunk-RTK5DRKR.js";import{$ as v,$a as k,$d as u,Ab as nt,E as C,Ea as n,Fa as c,I as B,J as Z,L as J,Q as W,Qd as lt,Rd as pt,Sa as m,_a as D,_b as at,_d as ct,a as R,ab as a,ad as st,b as L,bb as s,be as dt,cb as U,ce as M,da as X,db as Y,de as F,eb as tt,fe as ht,gb as et,ha as y,ia as A,jb as K,je as ft,ke as ut,lc as mt,me as gt,p as S,pa as w,pc as Q,pe as St,qa as j,qb as it,qe as Ct,rb as rt,re as vt,sb as ot,ub as d,ue as yt,wb as V,x as q}from"./chunk-I5FNXPEQ.js";var Lt=(r,t)=>t.key;function Ut(r,t){if(r&1&&(a(0,"mat-option",6),d(1),s()),r&2){let e=t.$implicit;m("value",e.key),n(),V(" ",e.value," ")}}function Kt(r,t){if(r&1&&(a(0,"mat-option",6),d(1),s()),r&2){let e=t.$implicit;m("value",e.key),n(),V(" ",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=Et,this.quantAlgorithmsList=Rt,this.ALGORITHM_CONTROL_NAME="alg"}ngOnInit(){this.initForm(),this.listenToScriptStateChanges(),this.loadInitialData()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(W(1),Z(1),C(t=>!Mt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===h.PRUNING||e===h.QUANTIZATION?t.algKey:H;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(P.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new F({[this.ALGORITHM_CONTROL_NAME]:new ht(H,ct.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(t=>{g(t)?this.algorithmFormGroup.disable():this.algorithmFormGroup.enable()})}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(u),c(N))},l.\u0275cmp=y({type:l,selectors:[["ms-panel-algorithm"]],inputs:{controlKey:"controlKey"},features:[nt([],[{provide:u,useFactory:()=>X(u,{skipSelf:!0})}])],decls:12,vars:2,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"],["label","Quantization"]],template:function(e,i){e&1&&(a(0,"mat-card",0)(1,"p",1),d(2,"Algorithm"),s(),a(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4)(6,"mat-optgroup",5),D(7,Ut,2,2,"mat-option",6,Lt),s(),a(9,"mat-optgroup",7),D(10,Kt,2,2,"mat-option",6,Lt),s()()()()()),e&2&&(n(3),m("formGroupName",i.controlKey),n(2),m("formControlName",i.ALGORITHM_CONTROL_NAME),n(2),k(i.pruningAlgorithmsList),n(3),k(i.quantAlgorithmsList))},dependencies:[Nt,At,Ot,pt,lt,dt,M,gt,ut]}),l);b=S([T()],b);var x="custommodel";function wt(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 Qt=["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=h,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Ft.IMP,this.selectedAlgorithmType=h.PRUNING}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(B(50),q(()=>{let t=this.form.getRawValue();return t.algorithm&&t.algorithm.alg}),J(),C(t=>!z(t)),f(this)).subscribe(t=>{this.selectedAlgorithm=t,this.selectedAlgorithmType=Pt(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(t=>{this.isScriptActive=g(t),g(t)?this.form.disable():this.form.enable()})}submit(){if(z(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===x&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===x?wt(this.fileService?.file.name):i,E=L(R({},t),{params:L(R({},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(N),c(Gt),c(bt),c(mt))},p.\u0275cmp=y({type:p,selectors:[["ms-machine-unlearning"]],viewQuery:function(e,i){if(e&1&&it(Qt,5),e&2){let o;rt(o=ot())&&(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=et();a(0,"p",2),d(1,"Model Compression"),s(),a(2,"div",3)(3,"div",4),Y(4,5),U(5,"ms-panel-algorithm",6,0)(7,"ms-panel-model",7)(8,"ms-panel-parameters",8,1),tt(),a(10,"div")(11,"button",9),K("click",function(){return w(o),j(i.submit())}),d(12," Run "),s(),a(13,"button",10),K("click",function(){return w(o),j(i.goToChartPage())}),d(14,"View Chart"),s()()(),a(15,"div",11),U(16,"ms-terminal"),s()()}e&2&&(n(2),m("formGroup",i.form),n(2),m("formGroup",i.form),n(3),m("algorithmType",i.selectedAlgorithmType),n(),m("algorithm",i.selectedAlgorithm),n(3),m("disabled",i.isScriptActive||i.form.invalid))},dependencies:[_,O,I,M,ft,vt,b],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),p);G=S([T()],G);var zt=[{path:"",component:G}],jt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[Q.forChild(zt),Q]});let r=t;return r})();var $e=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,jt,_,O,I,_t,Tt,It,St,Ct,yt]});let r=t;return r})();export{$e as ModelCompressionModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-WHP5P3DQ.js b/frontend/server/modelsmith-build/browser/chunk-BY5EH3KZ.js similarity index 86% rename from frontend/server/modelsmith-build/browser/chunk-WHP5P3DQ.js rename to frontend/server/modelsmith-build/browser/chunk-BY5EH3KZ.js index ba2e0483..1a387fd8 100644 --- a/frontend/server/modelsmith-build/browser/chunk-WHP5P3DQ.js +++ b/frontend/server/modelsmith-build/browser/chunk-BY5EH3KZ.js @@ -1 +1 @@ -import{g as o}from"./chunk-W4U3FJPJ.js";import{Kc as e,Lc as l,Mc as a,Vc as u,Wc as c,_ as n,ca as d,ed as i}from"./chunk-NPZHNGVX.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{g as o}from"./chunk-W4U3FJPJ.js";import{Hc as e,Ic as l,Jc as a,Sc as u,Tc as c,_ as n,bd as i,ca as d}from"./chunk-I5FNXPEQ.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-KXYM3VZW.js b/frontend/server/modelsmith-build/browser/chunk-BYA6346Q.js similarity index 91% rename from frontend/server/modelsmith-build/browser/chunk-KXYM3VZW.js rename to frontend/server/modelsmith-build/browser/chunk-BYA6346Q.js index 790abe02..1be3e733 100644 --- a/frontend/server/modelsmith-build/browser/chunk-KXYM3VZW.js +++ b/frontend/server/modelsmith-build/browser/chunk-BYA6346Q.js @@ -1 +1 @@ -import{a as Q}from"./chunk-V6EH3YHO.js";import{a as u}from"./chunk-7IMKJ6YK.js";import{a as Y}from"./chunk-4EAU6CO5.js";import"./chunk-VUPIOU6P.js";import{a as q,b as X}from"./chunk-PP7DOJYP.js";import{a as x}from"./chunk-GMIVG7ET.js";import{a as V,h as k,i as W}from"./chunk-HG2O7P4S.js";import{$ as d,$d as L,Be as J,Ea as c,Fa as m,Ie as K,Ja as _,Na as b,Sa as g,ab as o,bb as r,bc as N,be as C,cb as p,dd as y,ee as A,fe as F,ha as w,ia as h,ja as S,jb as E,ke as z,me as R,p as I,pe as D,re as T,sc as O,se as j,te as H,ub as s,ue as G,xa as P,xe as U,ze as B}from"./chunk-NPZHNGVX.js";var Z=(()=>{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(B);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(P),m(_),m(b))},t.\u0275dir=S({type:t,selectors:[["","msPasswordToggle",""]],standalone:!0});let n=t;return n})();var a,M=(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",[C.email,C.required]],[this.CONTROL_NAMES.PASSWORD]:["GUfCRHz7VD9R",[C.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(J.login(t))}},a.\u0275fac=function(l){return new(l||a)(m(T),m(K))},a.\u0275cmp=w({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),E("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&&(c(9),g("formGroup",e.form),c(5),g("formControlName",e.CONTROL_NAMES.EMAIL),c(5),g("formControlName",e.CONTROL_NAMES.PASSWORD),c(2),g("disabled",e.form.invalid))},dependencies:[z,L,A,F,R,D,k,V,q,Z,Q,u,G,Y],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);M=I([x()],M);var et=[{path:"",pathMatch:"full",redirectTo:y.AUTH.LOGIN},{path:y.AUTH.LOGIN,component:M}],$=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[O.forChild(et),O]});let n=t;return n})();var Rt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[N,j,H,W,X,$,u,U]});let n=t;return n})();export{Rt as AuthModule}; +import{a as Q}from"./chunk-VJRM3LPA.js";import{a as u}from"./chunk-CRARU3EW.js";import{a as Y}from"./chunk-A5OSDHA4.js";import"./chunk-452CEXFK.js";import{a as q,b as X}from"./chunk-SWEZDJOL.js";import{a as x}from"./chunk-COKZMNNS.js";import{a as V,h as k,i as W}from"./chunk-RTK5DRKR.js";import{$ as d,Ea as c,Fa as m,Fe as K,Ja as _,Na as b,Sa as g,Yd as L,_b as N,_d as C,ab as o,ad as y,bb as r,be as A,cb as p,ce as F,ha as w,he as z,ia as h,ja as S,jb as E,je as R,me as D,oe as T,p as I,pc as O,pe as j,qe as H,re as G,ub as s,ue as U,we as B,xa as P,ye as J}from"./chunk-I5FNXPEQ.js";var Z=(()=>{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(B);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(P),m(_),m(b))},t.\u0275dir=S({type:t,selectors:[["","msPasswordToggle",""]],standalone:!0});let n=t;return n})();var a,M=(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",[C.email,C.required]],[this.CONTROL_NAMES.PASSWORD]:["GUfCRHz7VD9R",[C.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(J.login(t))}},a.\u0275fac=function(l){return new(l||a)(m(T),m(K))},a.\u0275cmp=w({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),E("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&&(c(9),g("formGroup",e.form),c(5),g("formControlName",e.CONTROL_NAMES.EMAIL),c(5),g("formControlName",e.CONTROL_NAMES.PASSWORD),c(2),g("disabled",e.form.invalid))},dependencies:[z,L,A,F,R,D,k,V,q,Z,Q,u,G,Y],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);M=I([x()],M);var et=[{path:"",pathMatch:"full",redirectTo:y.AUTH.LOGIN},{path:y.AUTH.LOGIN,component:M}],$=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[O.forChild(et),O]});let n=t;return n})();var Rt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[N,j,H,W,X,$,u,U]});let n=t;return n})();export{Rt as AuthModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GMIVG7ET.js b/frontend/server/modelsmith-build/browser/chunk-COKZMNNS.js similarity index 98% rename from frontend/server/modelsmith-build/browser/chunk-GMIVG7ET.js rename to frontend/server/modelsmith-build/browser/chunk-COKZMNNS.js index a9470f73..280e2a4d 100644 --- a/frontend/server/modelsmith-build/browser/chunk-GMIVG7ET.js +++ b/frontend/server/modelsmith-build/browser/chunk-COKZMNNS.js @@ -1,4 +1,4 @@ -import{Aa as b,T as f,Y as d,ba as D,g as l,j as i,o as a,r as p,z as c}from"./chunk-NPZHNGVX.js";var P=D;function S(e){return!!e[P]}var w=Symbol("__destroy"),g=Symbol("__decoratorApplied");function v(e){return typeof e=="string"?Symbol(`__destroy__${e}`):w}function x(e){e.prototype[g]=!0}function O(e,t){e[t]||(e[t]=new i)}function _(e,t){e[t]&&(e[t].next(),e[t].complete(),e[t]=null)}function C(e){e instanceof l&&e.unsubscribe()}function j(e){Array.isArray(e)&&e.forEach(C)}function E(e,t){return function(){if(e&&e.call(this),_(this,v()),t.arrayName&&j(this[t.arrayName]),t.checkProperties)for(let o in this)t.blackList?.includes(o)||C(this[o])}}function k(e,t){e.prototype.ngOnDestroy=E(e.prototype.ngOnDestroy,t)}function A(e,t){let o=e.\u0275pipe;o.onDestroy=E(o.onDestroy,t)}function G(e={}){return t=>{S(t)?A(t,e):k(t,e),x(t)}}var m=7,y=Symbol("CheckerHasBeenSet");function B(e,t){e[y]||I()||(h(()=>p(Promise.resolve()).pipe(c(()=>{let o;try{o=b(e)}catch{o=null}let n=o?.lView;if(n==null)return a;let r=n[m]||(n[m]=[]),s=new i;return r.push(function(){h(()=>{s.next(),s.complete()})}),s}),c(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(T(e))})),e[y]=!0)}function I(){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 h(e){let t=d.Zone;return!!t&&typeof t.root?.run=="function"?t.root.run(e):e()}function T(e){return` +import{Aa as b,T as f,Y as d,ba as D,g as l,j as i,o as a,r as p,z as c}from"./chunk-I5FNXPEQ.js";var P=D;function S(e){return!!e[P]}var w=Symbol("__destroy"),g=Symbol("__decoratorApplied");function v(e){return typeof e=="string"?Symbol(`__destroy__${e}`):w}function x(e){e.prototype[g]=!0}function O(e,t){e[t]||(e[t]=new i)}function _(e,t){e[t]&&(e[t].next(),e[t].complete(),e[t]=null)}function C(e){e instanceof l&&e.unsubscribe()}function j(e){Array.isArray(e)&&e.forEach(C)}function E(e,t){return function(){if(e&&e.call(this),_(this,v()),t.arrayName&&j(this[t.arrayName]),t.checkProperties)for(let o in this)t.blackList?.includes(o)||C(this[o])}}function k(e,t){e.prototype.ngOnDestroy=E(e.prototype.ngOnDestroy,t)}function A(e,t){let o=e.\u0275pipe;o.onDestroy=E(o.onDestroy,t)}function G(e={}){return t=>{S(t)?A(t,e):k(t,e),x(t)}}var m=7,y=Symbol("CheckerHasBeenSet");function B(e,t){e[y]||I()||(h(()=>p(Promise.resolve()).pipe(c(()=>{let o;try{o=b(e)}catch{o=null}let n=o?.lView;if(n==null)return a;let r=n[m]||(n[m]=[]),s=new i;return r.push(function(){h(()=>{s.next(),s.complete()})}),s}),c(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(T(e))})),e[y]=!0)}function I(){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 h(e){let t=d.Zone;return!!t&&typeof t.root?.run=="function"?t.root.run(e):e()}function T(e){return` The ${e.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(). diff --git a/frontend/server/modelsmith-build/browser/chunk-CRARU3EW.js b/frontend/server/modelsmith-build/browser/chunk-CRARU3EW.js new file mode 100644 index 00000000..e4fabf8c --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-CRARU3EW.js @@ -0,0 +1 @@ +import{a as u,b as y}from"./chunk-452CEXFK.js";import{Bb as d,Ea as o,Qa as f,Sa as p,Sb as c,Ya as g,_b as M,ab as n,bb as i,cb as l,ha as s,ub as m,wb as h}from"./chunk-I5FNXPEQ.js";function _(t,e){t&1&&l(0,"div",3)}function P(t,e){t&1&&l(0,"div",3)}var b=(()=>{let e=class e{constructor(){this.styleMode="fullWidth",this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=s({type:e,selectors:[["ms-footer"]],inputs:{styleMode:"styleMode"},standalone:!0,features:[d],decls:14,vars:4,consts:[[1,"footer-wrapper"],[1,"mb-4"],[1,"grid","grid-cols-12"],[1,"col-span-1"],[1,"footer-content",3,"ngClass"],[1,"left"],[1,"right"],[1,"mr-4"]],template:function(r,a){r&1&&(n(0,"div",0)(1,"div",1),l(2,"mat-divider"),i(),n(3,"footer",2),f(4,_,1,0,"div",3),n(5,"div",4)(6,"div",5),m(7),i(),n(8,"div",6)(9,"a",7),m(10,"Privacy Policy"),i(),n(11,"a"),m(12,"Terms of Service"),i()()(),f(13,P,1,0,"div",3),i()()),r&2&&(o(4),g(a.styleMode!=="mainLayout"?4:-1),o(),p("ngClass",a.styleMode==="mainLayout"?"col-span-12":"col-span-10"),o(2),h("\xA9 ",a.currentYear," Cisco Systems, Inc"),o(6),g(a.styleMode!=="mainLayout"?13:-1))},dependencies:[M,c,y,u],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})();export{b as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-D4NO5T2F.js b/frontend/server/modelsmith-build/browser/chunk-D4NO5T2F.js new file mode 100644 index 00000000..f5da6f50 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-D4NO5T2F.js @@ -0,0 +1 @@ +import{a as ue}from"./chunk-HHI42NCD.js";import{a as le,b as se}from"./chunk-A3HRP5BG.js";import{a as oe,b as ne}from"./chunk-VRD7QX3W.js";import{a as Z,b as ee}from"./chunk-SWEZDJOL.js";import{d as de}from"./chunk-OMCAGIEN.js";import{a as te,b as re}from"./chunk-W5GEUOC3.js";import{b as ie}from"./chunk-W4U3FJPJ.js";import{a as me,b as pe}from"./chunk-I4357ONH.js";import{b as ae,m as ce}from"./chunk-KE2JE72J.js";import{a as O,b as g}from"./chunk-COKZMNNS.js";import{a as z,d as J,h as Q,i as W}from"./chunk-RTK5DRKR.js";import{$a as y,$d as f,Ab as G,Bb as $,Ea as a,Fa as c,Q as P,Qa as v,Rd as k,Sa as s,Ya as d,Yd as D,Za as F,_a as x,ab as n,ad as w,bb as o,be as K,cb as h,ce as L,da as T,db as A,de as V,eb as E,ha as I,ke as j,lb as u,le as R,me as B,ne as U,oa as b,ob as _,oe as H,p as M,qe as q,ub as l,vb as C,wb as N,we as X,x as S,xe as Y}from"./chunk-I5FNXPEQ.js";function he(r,t){if(r&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8),h(4,"input",9)(5,"mat-icon",10),o()()),r&2){let e=u(),i=e.$implicit,m=e.$index;a(2),C(i.label),a(2),s("formControlName",m)("placeholder",i.placeholder)("type",i.inputType),a(),_("matTooltip",i.help)}}function _e(r,t){if(r&1&&(n(0,"mat-option",12),l(1),o()),r&2){let e=t.$implicit;s("value",e.value),a(),N(" ",e.viewValue," ")}}function Ce(r,t){if(r&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8)(4,"mat-select",11),x(5,_e,2,2,"mat-option",12,F),o(),h(7,"mat-icon",10),o()()),r&2){let e=u(),i=e.$implicit,m=e.$index;a(2),C(i.label),a(2),s("formControlName",m),a(),y(i.options),a(2),_("matTooltip",i.help)}}function ve(r,t){if(r&1&&(n(0,"div",7)(1,"mat-checkbox",11),l(2),o(),n(3,"div",13),h(4,"mat-icon",14),o()()),r&2){let e=u(),i=e.$implicit,m=e.$index;a(),s("formControlName",m),a(),C(i.label),a(2),_("matTooltip",i.help)}}function Fe(r,t){if(r&1&&v(0,he,6,5,"div",6)(1,Ce,8,3,"div",6)(2,ve,5,3,"div",7),r&2){let e=t.$implicit;d(e.inputType==="text"||e.inputType==="number"?0:-1),a(),d(e.inputType==="select"?1:-1),a(),d(e.inputType==="checkbox"?2:-1)}}function xe(r,t){if(r&1&&(n(0,"div",2),A(1,4),n(2,"div",5),x(3,Fe,3,3,null,null,F),o(),E(),o()),r&2){let e=u();a(),s("formGroupName",e.controlKey),a(2),y(e.parameters)}}function ye(r,t){r&1&&(n(0,"p",3),l(1,"No parameters configured."),o())}var p,fe=(p=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,i,m){this.fb=t,this.controlContainer=e,this.parametersFacadeService=i,this.scriptFacadeService=m,this.controlKey="",this.RoutesList=w,this.alg=de,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new V({parametersArray:new U([])}))}loadParametersForAlgorithm(t){this.parametersFacadeService.dispatch(ue.loadParameters({arg:t})),this.parametersFacadeService.parameters$.pipe(S(e=>e[t]?.data||[]),P(1),g(this)).subscribe(e=>{this.buildFormArray(e)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(g(this)).subscribe(t=>{this.isScriptActive=ie(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((i,m)=>{t[i.argName]=e[m]}),t}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},p.\u0275fac=function(e){return new(e||p)(c(H),c(f),c(ce),c(ae))},p.\u0275cmp=I({type:p,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[G([],[{provide:f,useFactory:()=>T(f,{skipSelf:!0})}]),b,$],decls:5,vars:1,consts:[[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],[1,"parameters-wrapper"],[1,"no-parameters-message"],[3,"formGroupName"],["formArrayName","parametersArray"],[1,"form-field-container"],[1,"form-field-container","inline-container","mb-[22px]"],["appearance","outline"],["matInput","",3,"formControlName","placeholder","type"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],[3,"formControlName"],[3,"value"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"]],template:function(e,i){e&1&&(n(0,"mat-card",0)(1,"p",1),l(2,"Parameters"),o(),v(3,xe,5,1,"div",2)(4,ye,2,0,"p",3),o()),e&2&&(a(3),d(i.parameters.length?3:4))},dependencies:[ee,Z,Q,z,J,q,D,K,L,B,j,R,pe,me,W,se,le,k,re,te,ne,oe,Y,X],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}"]}),p);fe=M([O()],fe);export{fe as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-3S6QBQVM.js b/frontend/server/modelsmith-build/browser/chunk-DFEVON6A.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-3S6QBQVM.js rename to frontend/server/modelsmith-build/browser/chunk-DFEVON6A.js index a5b05c1e..cea11219 100644 --- a/frontend/server/modelsmith-build/browser/chunk-3S6QBQVM.js +++ b/frontend/server/modelsmith-build/browser/chunk-DFEVON6A.js @@ -1 +1 @@ -import{$ as v,Ba as C,Bb as W,Ea as a,Fa as l,Ib as P,Kd as B,Ob as _,Pa as T,Qa as x,Ra as n,Sa as p,Ta as g,Ua as E,Wa as z,Zb as N,aa as y,ab as o,bb as m,bc as D,cb as f,fb as u,ha as b,ia as k,lb as I,qb as M,ra as h,rb as O,sa as w,sb as A,tb as R,xa as S}from"./chunk-NPZHNGVX.js";var F=["determinateSpinner"];function L(c,i){if(c&1&&(h(),o(0,"svg",11),f(1,"circle",12),m()),c&2){let d=I();n("viewBox",d._viewBox()),a(),g("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeCircumference()/2,"px")("stroke-width",d._circleStrokeWidth(),"%"),n("r",d._circleRadius())}}var V=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:G});function G(){return{diameter:j}}var j=100,Q=10,tr=(()=>{let i=class i{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,t,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=j,this._noopAnimations=t==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-Q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}};i.\u0275fac=function(t){return new(t||i)(l(S),l(C,8),l(V))},i.\u0275cmp=b({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,r){if(t&1&&M(F,5),t&2){let s;O(s=A())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,r){t&2&&(n("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),z("mat-"+r.color),g("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),E("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",_],diameter:[2,"diameter","diameter",_],strokeWidth:[2,"strokeWidth","strokeWidth",_]},exportAs:["matProgressSpinner"],standalone:!0,features:[T,W],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(t,r){if(t&1&&(x(0,L,2,8,"ng-template",null,0,P),o(2,"div",2,1),h(),o(4,"svg",3),f(5,"circle",4),m()(),w(),o(6,"div",5)(7,"div",6)(8,"div",7),u(9,8),m(),o(10,"div",9),u(11,8),m(),o(12,"div",10),u(13,8),m()()()),t&2){let s=R(1);a(4),n("viewBox",r._viewBox()),a(),g("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),n("r",r._circleRadius()),a(4),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s)}},dependencies:[N],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 c=i;return c})();var cr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=v({imports:[D,B]});let c=i;return c})();export{tr as a,cr as b}; +import{$ as v,Ba as C,Bb as W,Ea as a,Fa as l,Hd as B,Ib as P,Ob as _,Pa as T,Qa as x,Ra as n,Sa as p,Ta as g,Ua as E,Wa as z,Wb as N,_b as D,aa as y,ab as o,bb as m,cb as f,fb as u,ha as b,ia as k,lb as I,qb as M,ra as h,rb as O,sa as w,sb as A,tb as R,xa as S}from"./chunk-I5FNXPEQ.js";var F=["determinateSpinner"];function L(c,i){if(c&1&&(h(),o(0,"svg",11),f(1,"circle",12),m()),c&2){let d=I();n("viewBox",d._viewBox()),a(),g("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeCircumference()/2,"px")("stroke-width",d._circleStrokeWidth(),"%"),n("r",d._circleRadius())}}var V=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:G});function G(){return{diameter:j}}var j=100,Q=10,tr=(()=>{let i=class i{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,t,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=j,this._noopAnimations=t==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-Q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}};i.\u0275fac=function(t){return new(t||i)(l(S),l(C,8),l(V))},i.\u0275cmp=b({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,r){if(t&1&&M(F,5),t&2){let s;O(s=A())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,r){t&2&&(n("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),z("mat-"+r.color),g("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),E("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",_],diameter:[2,"diameter","diameter",_],strokeWidth:[2,"strokeWidth","strokeWidth",_]},exportAs:["matProgressSpinner"],standalone:!0,features:[T,W],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(t,r){if(t&1&&(x(0,L,2,8,"ng-template",null,0,P),o(2,"div",2,1),h(),o(4,"svg",3),f(5,"circle",4),m()(),w(),o(6,"div",5)(7,"div",6)(8,"div",7),u(9,8),m(),o(10,"div",9),u(11,8),m(),o(12,"div",10),u(13,8),m()()()),t&2){let s=R(1);a(4),n("viewBox",r._viewBox()),a(),g("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),n("r",r._circleRadius()),a(4),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s)}},dependencies:[N],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 c=i;return c})();var cr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=v({imports:[D,B]});let c=i;return c})();export{tr as a,cr as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-DKMMNZKM.js b/frontend/server/modelsmith-build/browser/chunk-DKMMNZKM.js new file mode 100644 index 00000000..4f78284b --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-DKMMNZKM.js @@ -0,0 +1 @@ +import{a as te,b as re,c as se,e as ue,f as fe}from"./chunk-M3BJA4RX.js";import{b as ee}from"./chunk-DFEVON6A.js";import{a as de,b as pe}from"./chunk-A3HRP5BG.js";import{a as y,c as ce}from"./chunk-BY5EH3KZ.js";import{b as ie,e as oe,f as ne}from"./chunk-W4U3FJPJ.js";import{a as le,b as me}from"./chunk-I4357ONH.js";import{b as ae}from"./chunk-KE2JE72J.js";import{a as K,b as h}from"./chunk-COKZMNNS.js";import{h as J,i as Q}from"./chunk-RTK5DRKR.js";import{$a as x,$d as f,Ab as E,Bb as I,Db as G,E as F,Ea as n,Fa as p,Fb as _,Gb as S,Qa as s,Qd as j,R as b,Rd as k,Sa as c,Xb as V,Ya as l,_a as L,_b as D,_d as B,ab as d,ad as A,bb as r,be as $,cb as M,ce as z,da as P,de as q,fe as v,ha as O,ie as U,ke as W,lb as g,mc as w,me as X,oa as N,p as T,qe as H,ub as u,wb as R,we as Y,x as C,xe as Z}from"./chunk-I5FNXPEQ.js";var Ce=(i,e)=>e.name,ge=i=>[i];function _e(i,e){i&1&&M(0,"ms-spining-indicator",10)}function Se(i,e){if(i&1&&s(0,_e,1,0,"ms-spining-indicator",10),i&2){let t=g(2);l(e===t.PageKey.MODEL_TRAINING?0:-1)}}function ve(i,e){if(i&1&&(d(0,"div",3)(1,"a",9),u(2,"Train models"),r(),s(3,Se,1,1),_(4,"async"),r()),i&2){let t,o=g();n(),c("routerLink",G(4,ge,"/"+o.RoutesList.MODEL_TRAINING.ROOT)),n(2),l((t=S(4,2,o.pageRunningScriptSpiningIndicatorService.currentRunningPage$))?3:-1,t)}}function ye(i,e){i&1&&M(0,"mat-icon",13)}function Te(i,e){if(i&1&&(d(0,"mat-option",11),u(1),s(2,ye,1,0,"mat-icon",13),r()),i&2){let t=e.$implicit;c("value",t.name)("disabled",!t.isTrained),n(),R(" ",t.name," "),n(),l(t.isTrained?-1:2)}}function Fe(i,e){i&1&&(d(0,"mat-option",12),u(1,"No results found"),r())}function be(i,e){if(i&1&&(L(0,Te,3,4,"mat-option",11,Ce),s(2,Fe,2,0,"mat-option",12)),i&2){let t=e;x(t),n(2),l(t.length===0?2:-1)}}var a,Me=(a=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,o,m){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=o,this.pageRunningScriptSpiningIndicatorService=m,this.controlKey="",this.isTrainModelsPageRouteVisible=!0,this.PageKey=re,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(y.getModelsList({algorithmType:e})),this.modelsFacadeService.dispatch(y.getCurrentOrPreviousSelectedModel({algorithmType:e})))}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(h(this)).subscribe(e=>{if(oe(e))return;let t=this.models.find(o=>o.name===e);t&&t.isTrained&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(F(o=>!ne(o)),C(o=>[...o].sort((m,he)=>Number(he.isTrained)-Number(m.isTrained)))).subscribe(o=>{this.models=o,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new q({[this.MODEL_CONTROL_NAME]:new v("",B.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),b(""),C(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(o=>o.name.toLowerCase().includes(t))}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},a.\u0275fac=function(t){return new(t||a)(p(f),p(ce),p(ae),p(se))},a.\u0275cmp=O({type:a,selectors:[["ms-panel-model"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType",isTrainModelsPageRouteVisible:"isTrainModelsPageRouteVisible"},standalone:!0,features:[E([],[{provide:f,useFactory:()=>P(f,{skipSelf:!0})}]),N,I],decls:13,vars:6,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],[1,"train-models"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[3,"routerLink"],[1,"ml-2"],[3,"value","disabled"],["disabled",""],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(t,o){if(t&1&&(d(0,"mat-card",0)(1,"div",1)(2,"div",2),u(3,"Model"),r(),s(4,ve,5,6,"div",3),r(),d(5,"div",4)(6,"mat-form-field",5)(7,"mat-select",6)(8,"mat-optgroup",7)(9,"mat-option"),M(10,"ngx-mat-select-search",8),r(),s(11,be,3,1),_(12,"async"),r()()()()()),t&2){let m;n(4),l(o.isTrainModelsPageRouteVisible?4:-1),n(),c("formGroupName",o.controlKey),n(5),c("formControl",o.searchModel),n(),l((m=S(12,4,o.filteredModels))?11:-1,m)}},dependencies:[H,$,z,U,X,W,me,le,Q,J,pe,de,k,j,Z,Y,D,V,fe,ue,w,ee,te],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}"]}),a);Me=T([K()],Me);export{Me as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-FAKCSLDT.js b/frontend/server/modelsmith-build/browser/chunk-FAKCSLDT.js deleted file mode 100644 index 68d645a0..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-FAKCSLDT.js +++ /dev/null @@ -1,4 +0,0 @@ -import{a as Ci,b as wi,c as Mi,d as Di,e as yi,f as Ii,g as Oi,h as ki,i as Ti,j as Pi,k as Ai,l as Ri,m as O,n as Fi,o as k,p as w,q as Ge}from"./chunk-MJO2RBYE.js";import{a as fi,b as hi}from"./chunk-W2GP6GR3.js";import{a as vi,b as bi,c as Si,d as ct,e as pt,f as xi,g as _i,h as Ei}from"./chunk-NI65ARYN.js";import{a as ri}from"./chunk-4EAU6CO5.js";import{a as ii,b as ni,c as oi,d as ai}from"./chunk-URO2J7UO.js";import{a as di,b as ci,c as pi,d as ce}from"./chunk-TTPGYBAP.js";import{a as ui,b as gi}from"./chunk-G267DK6J.js";import{a as li,b as mi}from"./chunk-GSC3HYC7.js";import{a as b,b as Wt}from"./chunk-VUPIOU6P.js";import{a as je,b as Zt}from"./chunk-PP7DOJYP.js";import{a as de,b as si}from"./chunk-2FJ2YO2M.js";import{d as Ni}from"./chunk-PSFPSLKI.js";import{a as Bt}from"./chunk-GMIVG7ET.js";import{c as Jt,e as ei,f as ti,l as He}from"./chunk-NT2MTW7W.js";import{a as ze,b as Xt,h as Ve,i as Yt}from"./chunk-HG2O7P4S.js";import{$ as G,$a as De,$d as Ae,Ab as be,Ac as te,Ae as We,Bb as oe,Cb as ae,Cc as mt,Db as D,Dc as st,Ea as d,Eb as Se,Ec as dt,Ed as Oe,Fa as u,Ga as tt,Gd as ke,Ib as re,J as q,Kd as me,L as xt,Lb as le,Md as _e,Na as Ot,Nb as j,Oa as Y,Od as Te,Pa as it,Pd as Pe,Qa as x,Qd as zt,R as _t,Ra as z,S as Et,Sa as p,T as Je,Tb as Ft,Ua as N,Ud as Vt,Wa as kt,Xa as Tt,Ya as P,Z as Ee,Za as we,Zb as ot,_ as Ct,_a as Me,_d as jt,aa as et,ab as t,bb as e,bc as Ie,be as $,cb as l,da as wt,db as ge,dd as y,ea as Mt,eb as fe,ee as se,fa as Dt,fb as Z,fe as Re,g as vt,gb as T,ge as Ht,ha as g,hb as nt,ia as U,j as Ze,ja as Q,jb as f,je as Gt,ke as Fe,lb as v,ld as qt,mb as he,me as Ne,nb as ve,nc as Nt,p as bt,pa as E,pb as J,pc as Lt,pe as Le,qa as C,qb as ye,rb as V,re as Be,sb as W,sc as xe,se as Ut,ta as Ce,tb as _,te as Qt,ua as yt,ub as i,ue as I,vb as B,vc as at,ve as $t,wb as R,wc as rt,we as qe,x as St,xa as ue,xb as Pt,xc as lt,xe as Kt,ya as ne,yb as At,za as It,zb as Rt,zc as ee,ze as F}from"./chunk-NPZHNGVX.js";var Tn=["button"],Pn=["*"];function An(r,n){if(r&1&&l(0,"mat-pseudo-checkbox",3),r&2){let s=v();p("disabled",s.disabled)}}function Rn(r,n){if(r&1&&l(0,"mat-pseudo-checkbox",3),r&2){let s=v();p("disabled",s.disabled)}}var Li=new et("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Fn});function Fn(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var Bi=new et("MatButtonToggleGroup"),Nn={provide:jt,useExisting:Ee(()=>ut),multi:!0},qi=0,Ue=class{constructor(n,s){this.source=n,this.value=s}},ut=(()=>{let n=class n{get name(){return this._name}set name(o){this._name=o,this._markButtonsForCheck()}get value(){let o=this._selectionModel?this._selectionModel.selected:[];return this.multiple?o.map(a=>a.value):o[0]?o[0].value:void 0}set value(o){this._setSelectionByValue(o),this.valueChange.emit(this.value)}get selected(){let o=this._selectionModel?this._selectionModel.selected:[];return this.multiple?o:o[0]||null}get multiple(){return this._multiple}set multiple(o){this._multiple=o,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(o){this._disabled=o,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(o){this._hideSingleSelectionIndicator=o,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(o){this._hideMultipleSelectionIndicator=o,this._markButtonsForCheck()}constructor(o,a,m){this._changeDetector=o,this._dir=m,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${qi++}`,this.valueChange=new ne,this.change=new ne,this.appearance=a&&a.appearance?a.appearance:"standard",this.hideSingleSelectionIndicator=a?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=a?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new He(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(o=>o.checked)),this.multiple||this._initializeTabIndex()}writeValue(o){this.value=o,this._changeDetector.markForCheck()}registerOnChange(o){this._controlValueAccessorChangeFn=o}registerOnTouched(o){this._onTouched=o}setDisabledState(o){this.disabled=o}_keydown(o){if(this.multiple||this.disabled)return;let m=o.target.id,c=this._buttonToggles.toArray().findIndex(M=>M.buttonId===m),h=null;switch(o.keyCode){case 32:case 13:h=this._buttonToggles.get(c)||null;break;case 38:h=this._getNextButton(c,-1);break;case 37:h=this._getNextButton(c,this.dir==="ltr"?-1:1);break;case 40:h=this._getNextButton(c,1);break;case 39:h=this._getNextButton(c,this.dir==="ltr"?1:-1);break;default:return}h&&(o.preventDefault(),h._onButtonClick(),h.focus())}_emitChangeEvent(o){let a=new Ue(o,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(o,a,m=!1,c=!1){!this.multiple&&this.selected&&!o.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(o):this._selectionModel.deselect(o):c=!0,c?Promise.resolve().then(()=>this._updateModelValue(o,m)):this._updateModelValue(o,m)}_isSelected(o){return this._selectionModel&&this._selectionModel.isSelected(o)}_isPrechecked(o){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>o.value!=null&&a===o.value):o.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(o=>{o.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let o=0;othis._selectValue(a))):(this._clearSelection(),this._selectValue(o)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(o=>{o.checked=!1,this.multiple||(o.tabIndex=-1)})}_selectValue(o){let a=this._buttonToggles.find(m=>m.value!=null&&m.value===o);a&&(a.checked=!0,this._selectionModel.select(a),this.multiple||(a.tabIndex=0))}_updateModelValue(o,a){a&&this._emitChangeEvent(o),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(o=>o._markForCheck())}};n.\u0275fac=function(a){return new(a||n)(u(le),u(Li,8),u(ke,8))},n.\u0275dir=Q({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,m,c){if(a&1&&J(c,Qe,5),a&2){let h;V(h=W())&&(m._buttonToggles=h)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,m){a&1&&f("keydown",function(h){return m._keydown(h)}),a&2&&(z("role",m.multiple?"group":"radiogroup")("aria-disabled",m.disabled),N("mat-button-toggle-vertical",m.vertical)("mat-button-toggle-group-appearance-standard",m.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",j],value:"value",multiple:[2,"multiple","multiple",j],disabled:[2,"disabled","disabled",j],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",j],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",j]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[be([Nn,{provide:Bi,useExisting:n}]),it]});let r=n;return r})(),Qe=(()=>{let n=class n{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(o){this._tabIndex=o,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(o){this._appearance=o}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(o){o!==this._checked&&(this._checked=o,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(o){this._disabled=o}constructor(o,a,m,c,h,M){this._changeDetectorRef=a,this._elementRef=m,this._focusMonitor=c,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new ne;let pe=Number(h);this.tabIndex=pe||pe===0?pe:null,this.buttonToggleGroup=o,this.appearance=M&&M.appearance?M.appearance:"standard"}ngOnInit(){let o=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${qi++}`,o&&(o._isPrechecked(this)?this.checked=!0:o._isSelected(this)!==this._checked&&o._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let o=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),o&&o._isSelected(this)&&o._syncButtonToggle(this,!1,!1,!0)}focus(o){this._buttonElement.nativeElement.focus(o)}_onButtonClick(){let o=this.isSingleSelector()?!0:!this._checked;if(o!==this._checked&&(this._checked=o,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(m=>m.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new Ue(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};n.\u0275fac=function(a){return new(a||n)(u(Bi,8),u(le),u(ue),u(Oe),yt("tabindex"),u(Li,8))},n.\u0275cmp=g({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(a,m){if(a&1&&ye(Tn,5),a&2){let c;V(c=W())&&(m._buttonElement=c.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(a,m){a&1&&f("focus",function(){return m.focus()}),a&2&&(z("aria-label",null)("aria-labelledby",null)("id",m.id)("name",null),N("mat-button-toggle-standalone",!m.buttonToggleGroup)("mat-button-toggle-checked",m.checked)("mat-button-toggle-disabled",m.disabled)("mat-button-toggle-appearance-standard",m.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",j],appearance:"appearance",checked:[2,"checked","checked",j],disabled:[2,"disabled","disabled",j]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[it,oe],ngContentSelectors:Pn,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(a,m){if(a&1){let c=T();he(),t(0,"button",1,0),f("click",function(){return E(c),C(m._onButtonClick())}),t(2,"span",2),x(3,An,1,1,"mat-pseudo-checkbox",3)(4,Rn,1,1,"mat-pseudo-checkbox",3),ve(5),e()(),l(6,"span",4)(7,"span",5)}if(a&2){let c=_(1);p("id",m.buttonId)("disabled",m.disabled||null),z("role",m.isSingleSelector()?"radio":"button")("tabindex",m.disabled?-1:m.tabIndex)("aria-pressed",m.isSingleSelector()?null:m.checked)("aria-checked",m.isSingleSelector()?m.checked:null)("name",m._getButtonName())("aria-label",m.ariaLabel)("aria-labelledby",m.ariaLabelledby),d(3),P(m.buttonToggleGroup&&m.checked&&!m.buttonToggleGroup.multiple&&!m.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),d(),P(m.buttonToggleGroup&&m.checked&&m.buttonToggleGroup.multiple&&!m.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),d(3),p("matRippleTrigger",c)("matRippleDisabled",m.disableRipple||m.disabled)}},dependencies:[Te,zt],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 r=n;return r})(),zi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({imports:[me,Pe,Qe,me]});let r=n;return r})();function qn(r,n){if(r&1&&Z(0,2),r&2){let s=v();p("ngTemplateOutlet",s.iconOverrides[s.state])("ngTemplateOutletContext",s._getIconContext())}}function zn(r,n){if(r&1&&(t(0,"span",7),i(1),e()),r&2){let s=v(2);d(),B(s._getDefaultTextForState(s.state))}}function Vn(r,n){if(r&1&&(t(0,"span",8),i(1),e()),r&2){let s=v(3);d(),B(s._intl.completedLabel)}}function Wn(r,n){if(r&1&&(t(0,"span",8),i(1),e()),r&2){let s=v(3);d(),B(s._intl.editableLabel)}}function jn(r,n){if(r&1&&(x(0,Vn,2,1,"span",8)(1,Wn,2,1,"span",8),t(2,"mat-icon",7),i(3),e()),r&2){let s=v(2);P(s.state==="done"?0:s.state==="edit"?1:-1),d(3),B(s._getDefaultTextForState(s.state))}}function Hn(r,n){if(r&1&&x(0,zn,2,1,"span",7)(1,jn,4,2,"mat-icon",7),r&2){let s,o=v();P((s=o.state)==="number"?0:1)}}function Gn(r,n){r&1&&(t(0,"div",4),Z(1,9),e()),r&2&&(d(),p("ngTemplateOutlet",n.template))}function Un(r,n){if(r&1&&(t(0,"div",4),i(1),e()),r&2){let s=v();d(),B(s.label)}}function Qn(r,n){if(r&1&&(t(0,"div",5),i(1),e()),r&2){let s=v();d(),B(s._intl.optionalLabel)}}function $n(r,n){if(r&1&&(t(0,"div",6),i(1),e()),r&2){let s=v();d(),B(s.errorMessage)}}var Wi=["*"];function Kn(r,n){}function Xn(r,n){if(r&1&&(ve(0),x(1,Kn,0,0,"ng-template",0)),r&2){let s=v();d(),p("cdkPortalOutlet",s._portal)}}var ji=(r,n)=>({step:r,i:n}),Hi=r=>({animationDuration:r}),Gi=(r,n)=>({value:r,params:n});function Yn(r,n){r&1&&ve(0)}function Zn(r,n){r&1&&l(0,"div",6)}function Jn(r,n){if(r&1&&(Z(0,5),x(1,Zn,1,0,"div",6)),r&2){let s=n.$implicit,o=n.$index,a=n.$count;v(2);let m=_(4);p("ngTemplateOutlet",m)("ngTemplateOutletContext",Se(3,ji,s,o)),d(),P(o!==a-1?1:-1)}}function eo(r,n){if(r&1){let s=T();t(0,"div",7),f("@horizontalStepTransition.done",function(a){E(s);let m=v(2);return C(m._animationDone.next(a))}),Z(1,8),e()}if(r&2){let s=n.$implicit,o=n.$index,a=v(2);N("mat-horizontal-stepper-content-inactive",a.selectedIndex!==o),p("@horizontalStepTransition",Se(8,Gi,a._getAnimationDirection(o),D(6,Hi,a._getAnimationDuration())))("id",a._getStepContentId(o)),z("aria-labelledby",a._getStepLabelId(o)),d(),p("ngTemplateOutlet",s.content)}}function to(r,n){if(r&1&&(t(0,"div",1)(1,"div",2),Me(2,Jn,2,6,null,null,we),e(),t(4,"div",3),Me(5,eo,2,11,"div",4,we),e()()),r&2){let s=v();d(2),De(s.steps),d(3),De(s.steps)}}function io(r,n){if(r&1){let s=T();t(0,"div",9),Z(1,5),t(2,"div",10)(3,"div",11),f("@verticalStepTransition.done",function(a){E(s);let m=v(2);return C(m._animationDone.next(a))}),t(4,"div",12),Z(5,8),e()()()()}if(r&2){let s=n.$implicit,o=n.$index,a=n.$count,m=v(2),c=_(4);d(),p("ngTemplateOutlet",c)("ngTemplateOutletContext",Se(10,ji,s,o)),d(),N("mat-stepper-vertical-line",o!==a-1),d(),N("mat-vertical-stepper-content-inactive",m.selectedIndex!==o),p("@verticalStepTransition",Se(15,Gi,m._getAnimationDirection(o),D(13,Hi,m._getAnimationDuration())))("id",m._getStepContentId(o)),z("aria-labelledby",m._getStepLabelId(o)),d(2),p("ngTemplateOutlet",s.content)}}function no(r,n){if(r&1&&Me(0,io,6,18,"div",9,we),r&2){let s=v();De(s.steps)}}function oo(r,n){if(r&1){let s=T();t(0,"mat-step-header",13),f("click",function(){let a=E(s).step;return C(a.select())})("keydown",function(a){E(s);let m=v();return C(m._onKeydown(a))}),e()}if(r&2){let s=n.step,o=n.i,a=v();N("mat-horizontal-stepper-header",a.orientation==="horizontal")("mat-vertical-stepper-header",a.orientation==="vertical"),p("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,s.state))("label",s.stepLabel||s.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,s))("optional",s.optional)("errorMessage",s.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,s))("color",s.color||a.color),z("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",s.ariaLabel||null)("aria-labelledby",!s.ariaLabel&&s.ariaLabelledby?s.ariaLabelledby:null)("aria-disabled",a._stepIsNavigable(o,s)?null:!0)}}var gt=(()=>{let n=class n extends bi{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=Ce(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["","matStepLabel",""]],standalone:!0,features:[Y]});let r=n;return r})(),$e=(()=>{let n=class n{constructor(){this.changes=new Ze,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=Ct({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();function ao(r){return r||new $e}var ro={provide:$e,deps:[[new Mt,new Dt,$e]],useFactory:ao},ft=(()=>{let n=class n extends vi{constructor(o,a,m,c){super(m),this._intl=o,this._focusMonitor=a,this._intlSubscription=o.changes.subscribe(()=>c.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(o,a){o?this._focusMonitor.focusVia(this._elementRef,o,a):this._elementRef.nativeElement.focus(a)}_stringLabel(){return this.label instanceof gt?null:this.label}_templateLabel(){return this.label instanceof gt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(o){return o=="number"?`${this.index+1}`:o=="edit"?"create":o=="error"?"warning":o}};n.\u0275fac=function(a){return new(a||n)(u($e),u(Oe),u(ue),u(le))},n.\u0275cmp=g({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(a,m){a&2&&kt("mat-"+(m.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:[Y,oe],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(a,m){if(a&1&&(l(0,"div",0),t(1,"div")(2,"div",1),x(3,qn,1,2,"ng-container",2)(4,Hn,2,1),e()(),t(5,"div",3),x(6,Gn,2,1,"div",4)(7,Un,2,1,"div",4)(8,Qn,2,1,"div",5)(9,$n,2,1,"div",6),e()),a&2){let c;p("matRippleTrigger",m._getHostElement())("matRippleDisabled",m.disableRipple),d(),Tt("mat-step-icon-state-",m.state," mat-step-icon"),N("mat-step-icon-selected",m.selected),d(2),P(m.iconOverrides&&m.iconOverrides[m.state]?3:4),d(2),N("mat-step-label-active",m.active)("mat-step-label-selected",m.selected)("mat-step-label-error",m.state=="error"),d(),P((c=m._templateLabel())?6:m._stringLabel()?7:-1,c),d(2),P(m.optional&&m.state!="error"?8:-1),d(),P(m.state==="error"?9:-1)}},dependencies:[Te,ot,F],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 r=n;return r})(),Ui="500ms",Qi="225ms",Vi={horizontalStepTransition:at("horizontalStepTransition",[te("previous",ee({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),te("current",ee({transform:"none",visibility:"inherit"})),te("next",ee({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),mt("* => *",lt([rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),dt("@*",st(),{optional:!0})]),{params:{animationDuration:Ui}})]),verticalStepTransition:at("verticalStepTransition",[te("previous",ee({height:"0px",visibility:"hidden"})),te("next",ee({height:"0px",visibility:"hidden"})),te("current",ee({height:"*",visibility:"inherit"})),mt("* <=> current",lt([rt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),dt("@*",st(),{optional:!0})]),{params:{animationDuration:Qi}})])},lo=(()=>{let n=class n{constructor(o){this.templateRef=o}};n.\u0275fac=function(a){return new(a||n)(u(tt))},n.\u0275dir=Q({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let r=n;return r})(),mo=(()=>{let n=class n{constructor(o){this._template=o}};n.\u0275fac=function(a){return new(a||n)(u(tt))},n.\u0275dir=Q({type:n,selectors:[["ng-template","matStepContent",""]],standalone:!0});let r=n;return r})(),ht=(()=>{let n=class n extends ct{constructor(o,a,m,c){super(o,c),this._errorStateMatcher=a,this._viewContainerRef=m,this._isSelected=vt.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Et(()=>this._stepper.selectionChange.pipe(St(o=>o.selectedStep===this),_t(this._stepper.selected===this)))).subscribe(o=>{o&&this._lazyContent&&!this._portal&&(this._portal=new Jt(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(o,a){let m=this._errorStateMatcher.isErrorState(o,a),c=!!(o&&o.invalid&&this.interacted);return m||c}};n.\u0275fac=function(a){return new(a||n)(u(Ee(()=>Ke)),u(_e,4),u(Ot),u(Si,8))},n.\u0275cmp=g({type:n,selectors:[["mat-step"]],contentQueries:function(a,m,c){if(a&1&&(J(c,gt,5),J(c,mo,5)),a&2){let h;V(h=W())&&(m.stepLabel=h.first),V(h=W())&&(m._lazyContent=h.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[be([{provide:_e,useExisting:n},{provide:ct,useExisting:n}]),Y,oe],ngContentSelectors:Wi,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a,m){a&1&&(he(),x(0,Xn,2,1,"ng-template"))},dependencies:[ei],encapsulation:2,changeDetection:0});let r=n;return r})(),Ke=(()=>{let n=class n extends pt{get animationDuration(){return this._animationDuration}set animationDuration(o){this._animationDuration=/^\d+$/.test(o)?o+"ms":o}constructor(o,a,m){super(o,a,m),this._stepHeader=void 0,this._steps=void 0,this.steps=new It,this.animationDone=new ne,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Ze,this._animationDuration="",this._isServer=!wt(qt).isBrowser;let c=m.nativeElement.nodeName.toLowerCase();this.orientation=c==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:o,templateRef:a})=>this._iconOverrides[o]=a),this.steps.changes.pipe(Je(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(xt((o,a)=>o.fromState===a.fromState&&o.toState===a.toState),Je(this._destroyed)).subscribe(o=>{o.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(o,a){return a.completed||this.selectedIndex===o||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?Ui:Qi}};n.\u0275fac=function(a){return new(a||n)(u(ke,8),u(le),u(ue))},n.\u0275cmp=g({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,m,c){if(a&1&&(J(c,ht,5),J(c,lo,5)),a&2){let h;V(h=W())&&(m._steps=h),V(h=W())&&(m._icons=h)}},viewQuery:function(a,m){if(a&1&&ye(ft,5),a&2){let c;V(c=W())&&(m._stepHeader=c)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(a,m){a&2&&(z("aria-orientation",m.orientation),N("mat-stepper-horizontal",m.orientation==="horizontal")("mat-stepper-vertical",m.orientation==="vertical")("mat-stepper-label-position-end",m.orientation==="horizontal"&&m.labelPosition=="end")("mat-stepper-label-position-bottom",m.orientation==="horizontal"&&m.labelPosition=="bottom")("mat-stepper-header-position-bottom",m.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[be([{provide:pt,useExisting:n}]),Y,oe],ngContentSelectors:Wi,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(a,m){if(a&1&&(he(),x(0,Yn,1,0)(1,to,7,0,"div",1)(2,no,2,0)(3,oo,1,23,"ng-template",null,0,re)),a&2){let c;P(m._isServer?0:-1),d(),P((c=m.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[ot,ft],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:[Vi.horizontalStepTransition,Vi.verticalStepTransition]},changeDetection:0});let r=n;return r})(),$i=(()=>{let n=class n extends xi{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=Ce(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,m){a&2&&nt("type",m.type)},standalone:!0,features:[Y]});let r=n;return r})(),Ki=(()=>{let n=class n extends _i{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=Ce(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,m){a&2&&nt("type",m.type)},standalone:!0,features:[Y]});let r=n;return r})(),Xi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({providers:[ro,_e],imports:[me,Ie,ti,Ei,We,Pe,Ke,ft,me]});let r=n;return r})();var Yi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Buttons"),e(),t(2,"div",0),l(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),l(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),l(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),l(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),l(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),l(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),l(219,"mat-divider"),e())},dependencies:[F,b,$t,I,qe,fi],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 r=n;return r})();var po=()=>["Option 1","Option 2","Option 3"],Ji=(()=>{let n=class n{constructor(){}ngOnInit(){}handleSelected(o){console.log("Selected option:",o)}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Cards"),e(),t(2,"div",0),l(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()()(),l(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()(),l(23,"mat-divider"),t(24,"div",5)(25,"div",6),i(26,"Key 2"),e(),t(27,"div",7),i(28,"Value 2"),e()(),l(29,"mat-divider"),t(30,"div",5)(31,"div",6),i(32,"Key 1"),e(),t(33,"div",7),i(34,"Value 1"),e()()()()(),l(35,"br"),t(36,"h2"),i(37,"Option Card Selector"),e(),t(38,"ms-card-selector",8),f("selectedOption",function(h){return m.handleSelected(h)}),e()),a&2&&(d(38),p("options",ae(1,po)))},dependencies:[ce,b,de],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 r=n;return r})();function uo(r,n){if(r&1){let s=T();t(0,"li")(1,"mat-checkbox",6),Rt("ngModelChange",function(a){let m=E(s).$implicit;return At(m.completed,a)||(m.completed=a),C(a)}),f("ngModelChange",function(){E(s);let a=v();return C(a.updateAllComplete())}),i(2),e()()}if(r&2){let s=n.$implicit;d(),Pt("ngModel",s.completed),p("color",s.color),d(),R(" ",s.name," ")}}var tn=(()=>{let n=class n{updateAllComplete(){this.allComplete=this.task.subtasks!=null&&this.task.subtasks.every(o=>o.completed)}someComplete(){return this.task.subtasks==null?!1:this.task.subtasks.filter(o=>o.completed).length>0&&!this.allComplete}setAll(o){this.allComplete=o,this.task.subtasks!=null&&this.task.subtasks.forEach(a=>a.completed=o)}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(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Checkboxes"),e(),t(2,"div",0),l(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),f("change",function(h){return m.setAll(h.checked)}),i(13),e()(),t(14,"span")(15,"ul",4),x(16,uo,3,3,"li",5),e()()()()),a&2&&(d(8),p("disabled",!0),d(4),p("checked",m.allComplete)("color",m.task.color)("indeterminate",m.someComplete()),d(),R(" ",m.task.name," "),d(3),p("ngForOf",m.task.subtasks))},dependencies:[Ft,b,se,Gt,de,li],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 r=n;return r})();var nn=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Chips"),e(),t(2,"div",0),l(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:[b,di,ci],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 r=n;return r})();var A=r=>[r],on=(()=>{let n=class n{constructor(){this.RoutesList=y}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&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),l(30,"router-outlet"),e()()),a&2&&(d(3),p("routerLink",D(13,A,m.RoutesList.DEMO)),d(2),p("routerLink",D(15,A,m.RoutesList.DEMO.TYPOGRAPHY)),d(2),p("routerLink",D(17,A,m.RoutesList.DEMO.FORM_FIELDS)),d(2),p("routerLink",D(19,A,m.RoutesList.DEMO.CHECKBOXES)),d(2),p("routerLink",D(21,A,m.RoutesList.DEMO.MENU)),d(2),p("routerLink",D(23,A,m.RoutesList.DEMO.TABLE)),d(2),p("routerLink",D(25,A,m.RoutesList.DEMO.ICONS)),d(2),p("routerLink",D(27,A,m.RoutesList.DEMO.CARDS)),d(2),p("routerLink",D(29,A,m.RoutesList.DEMO.CHIPS)),d(2),p("routerLink",D(31,A,m.RoutesList.DEMO.NOTIFICATIONS)),d(2),p("routerLink",D(33,A,m.RoutesList.DEMO.WIZARD)),d(2),p("routerLink",D(35,A,m.RoutesList.DEMO.DRAWER)),d(2),p("routerLink",D(37,A,"/"+m.RoutesList.AUTH.ROOT)))},dependencies:[Nt,Lt,I,ut,Qe],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 r=n;return r})();var an=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-run-drawer-actions"]],decls:2,vars:0,template:function(a,m){a&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:[w],changeDetection:0});let r=n;return r})();function go(r,n){if(r&1){let s=T();t(0,"div",2)(1,"button",3),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(2,"Button 1"),e(),t(3,"button",4),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(4,"Button 2"),e(),t(5,"button",5),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(6,"Button 3"),e()()}}var rn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}onDismiss(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,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(a,m){if(a&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(),x(2,go,7,0,"ng-template",null,0,re)),a&2){let c=_(3);p("actionsTemplate",c)}},dependencies:[w,I],styles:[".buttons-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-child){margin-left:20px}"]});let r=n;return r})();function fo(r,n){if(r&1){let s=T();t(0,"div",2)(1,"div",3)(2,"button",4),f("click",function(){E(s);let a=v();return C(a.close())}),l(3,"mat-icon",5),e()(),t(4,"h3",6),i(5,"Different Header Style"),e()()}}var ln=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,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(a,m){if(a&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(),x(2,fo,6,0,"ng-template",null,0,re)),a&2){let c=_(3);p("headerTemplate",c)}},dependencies:[w,F,qe],styles:[".header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}"],changeDetection:0});let r=n;return r})();var mn=(()=>{let n=class n{constructor(o,a,m){this.drawerRef=o,this.drawerConfig=a,this.fb=m}ngOnInit(){this.form=this.fb.group({name:["",[$.required]],address:["",[$.required]]})}save(o){o===Fi.SAVE&&this.drawerRef.close({result:this.form.getRawValue(),status:o})}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O),u(Be))},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"ms-drawer",0),f("actionEvent",function(h){return m.save(h)}),t(1,"form",1)(2,"div",2)(3,"mat-label"),i(4,"Name"),e(),t(5,"mat-form-field",3),l(6,"input",4),e()(),t(7,"div",2)(8,"mat-label"),i(9,"Address"),e(),t(10,"mat-form-field",3),l(11,"input",5),e()()()()),a&2&&(p("isSaveDisabled",m.form.invalid),d(),p("formGroup",m.form))},dependencies:[w,Fe,Ae,se,Re,Ne,Le,Ve,ze,je]});let r=n;return r})();var sn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-customizable-width"]],decls:1,vars:0,template:function(a,m){a&1&&l(0,"ms-drawer")},dependencies:[w]});let r=n;return r})();var dn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a,this.isSaveDisabled=!0}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-disabled-buttons-actions"]],decls:3,vars:2,consts:[[3,"isSaveDisabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(a,m){a&1&&(t(0,"ms-drawer",0)(1,"button",1),f("click",function(){return m.isSaveDisabled=!m.isSaveDisabled}),i(2),e()()),a&2&&(p("isSaveDisabled",m.isSaveDisabled),d(2),R(" Click here to ",m.isSaveDisabled?"enable":"disable"," button "))},dependencies:[w,I]});let r=n;return r})();var cn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerData=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-injected-data"]],decls:5,vars:2,template:function(a,m){a&1&&(t(0,"ms-drawer")(1,"p"),i(2),e(),t(3,"p"),i(4),e()()),a&2&&(d(2),R("Field 1: ",m.drawerData.data.field1,""),d(2),R("Field 2: ",m.drawerData.data.field2,""))},dependencies:[w],changeDetection:0});let r=n;return r})();var pn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerData=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-only-one-button"]],decls:1,vars:0,template:function(a,m){a&1&&l(0,"ms-drawer")},dependencies:[w],changeDetection:0});let r=n;return r})();var un=(()=>{let n=class n{constructor(o){this.drawerService=o}ngOnInit(){}openDrawer(){this.drawerService.open(an,{title:"Lorem Ipsum"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithInjectedData(){let o={field1:"value1",field2:"value2"};this.drawerService.open(cn,{title:"Drawer with injected data",data:o}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeHeader(){this.drawerService.open(ln).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithOnlyOneButton(){this.drawerService.open(pn,{title:"Only one button",showSaveButton:!1,closeButtonLabel:"Close"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeActions(){this.drawerService.open(rn,{title:"Alternative Footer"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithDisabledButtons(){this.drawerService.open(dn,{title:"Disabled buttons"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithButtonsActions(){this.drawerService.open(mn,{title:"Buttons Actions"}).afterClosed().pipe(q(1)).subscribe(a=>{alert(`Clicked on ${a.status}, name = ${a.result.name}, address = ${a.result.address}`)})}openDrawerWithCustomizableWidth(){this.drawerService.open(sn,{title:"Drawer With Customizable Width",width:500}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}};n.\u0275fac=function(a){return new(a||n)(u(Ge))},n.\u0275cmp=g({type:n,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(a,m){a&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(),l(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. "),l(15,"br"),t(16,"b"),i(17,"title?: string;"),e(),i(18," | Dialog title "),l(19,"br"),t(20,"b"),i(21,"showSaveButton?: boolean;"),e(),i(22," | Option to configure the show/hide of the save button. "),l(23,"br"),t(24,"b"),i(25,"showDismissButton?: boolean;"),e(),i(26," | Option to configure the show/hide of the dismiss button. "),l(27,"br"),t(28,"b"),i(29,"saveButtonLabel?: string;"),e(),i(30," | Option to configure the save button label."),l(31,"br"),t(32,"b"),i(33,"dismissButtonLabel?: string;"),e(),i(34," | Option to configure the dismiss button label."),l(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),f("click",function(){return m.openDrawer()}),i(56,"Open Drawer"),e()(),t(57,"div")(58,"button",2),f("click",function(){return m.openDrawerWithInjectedData()}),i(59,"Open Drawer"),e()(),t(60,"div")(61,"button",2),f("click",function(){return m.openDrawerWithOnlyOneButton()}),i(62,"Open Drawer"),e()(),t(63,"div")(64,"button",2),f("click",function(){return m.openDrawerWithDisabledButtons()}),i(65,"Open Drawer"),e()(),t(66,"div")(67,"button",2),f("click",function(){return m.openDrawerWithCustomizableWidth()}),i(68,"Open Drawer"),e()()(),t(69,"div",3),l(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(),l(79,"div")(80,"div")(81,"div"),t(82,"div")(83,"button",2),f("click",function(){return m.openDrawerWithAlternativeHeader()}),i(84,"Open Drawer"),e()(),t(85,"div")(86,"button",2),f("click",function(){return m.openDrawerWithAlternativeActions()}),i(87,"Open Drawer"),e()(),l(88,"div")(89,"div")(90,"div"),e(),t(91,"div",3),l(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(),l(99,"div")(100,"div")(101,"div")(102,"div"),t(103,"div")(104,"button",2),f("click",function(){return m.openDrawerWithButtonsActions()}),i(105,"Open Drawer"),e()(),l(106,"div")(107,"div")(108,"div")(109,"div"),e(),t(110,"div",3),l(111,"mat-divider"),e()())},dependencies:[b,I],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 r=n;return r})();var H,Ye=(H=class{constructor(n){this.fb=n,this.form=new Ht({})}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,[$.required]],icon:[null],iconPrefilled:["Lorem Ipsum"],iconDisabled:[{value:null,disabled:!0}],iconPrefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],iconError:[null,[$.required]],required:[null,[$.required]],textarea:[null],textareaPrefilled:["Lorem Ipsum"],textareaDisabled:[{value:null,disabled:!0}],textareaPrefilledAndDisabled:[{value:"Lorem Ipsum",disabled:!0}],textareaError:[null,[$.required]],dropdown:[null],dropdownPreselected:["option1"],dropdownDisabled:[{value:null,disabled:!0}],dropdownPreselectedAndDisabled:[{value:"option1",disabled:!0}]})}},H.\u0275fac=function(s){return new(s||H)(u(Be))},H.\u0275cmp=g({type:H,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(s,o){s&1&&(t(0,"h1"),i(1,"Form Fields"),e(),t(2,"div",0),l(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"),l(14,"input",5),e()(),t(15,"div",6)(16,"mat-label"),i(17," Default White "),e(),t(18,"mat-form-field"),l(19,"input",5),e()(),t(20,"div",4)(21,"mat-label"),i(22," Prefilled "),e(),t(23,"mat-form-field"),l(24,"input",7),e()(),t(25,"div",4)(26,"mat-label"),i(27," Disabled "),e(),t(28,"mat-form-field"),l(29,"input",8),e()(),t(30,"div",4)(31,"mat-label"),i(32," Prefilled & disabled "),e(),t(33,"mat-form-field"),l(34,"input",9),e()(),t(35,"div",4)(36,"mat-label"),i(37," Error "),e(),t(38,"mat-form-field"),l(39,"input",10),e()()(),t(40,"div",0),l(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(),l(49,"input",12),e()(),t(50,"div",4)(51,"mat-form-field",11)(52,"mat-label"),i(53," Prefilled "),e(),l(54,"input",13),e()(),t(55,"div",4)(56,"mat-form-field",11)(57,"mat-label"),i(58," Disabled "),e(),l(59,"input",14),e()(),t(60,"div",4)(61,"mat-form-field",11)(62,"mat-label"),i(63," Prefilled & disabled "),e(),l(64,"input",15),e()(),t(65,"div",4)(66,"mat-form-field",11)(67,"mat-label"),i(68," Error "),e(),l(69,"input",16),t(70,"mat-error"),i(71,"Test"),e()()()(),t(72,"div",0),l(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(),l(82,"input",5),e()(),t(83,"div")(84,"mat-form-field",17)(85,"mat-label"),i(86," Prefilled "),e(),l(87,"input",7),e()(),t(88,"div",4)(89,"mat-form-field",17)(90,"mat-label"),i(91," Disabled "),e(),l(92,"input",8),e()(),t(93,"div",4)(94,"mat-form-field",17)(95,"mat-label"),i(96," Prefilled & disabled "),e(),l(97,"input",9),e()(),t(98,"div",4)(99,"mat-form-field",17)(100,"mat-label"),i(101," Error "),e(),l(102,"input",10),e()()(),t(103,"div",0),l(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(),l(113,"input",5),e()(),t(114,"div",4)(115,"mat-form-field",18)(116,"mat-label"),i(117," Prefilled "),e(),l(118,"input",7),e()(),t(119,"div",4)(120,"mat-form-field",18)(121,"mat-label"),i(122," Disabled "),e(),l(123,"input",8),e()(),t(124,"div",4)(125,"mat-form-field",18)(126,"mat-label"),i(127," Prefilled & disabled "),e(),l(128,"input",9),e()(),t(129,"div",4)(130,"mat-form-field",18)(131,"mat-label"),i(132," Error "),e(),l(133,"input",10),e()()(),t(134,"div",0),l(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(),l(144,"input",20),e()(),l(145,"div")(146,"div"),e(),t(147,"div",0),l(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(),l(157,"textarea",21),e()(),t(158,"div",4)(159,"mat-form-field",19)(160,"mat-label"),i(161,"Prefilled"),e(),l(162,"textarea",22),e()(),t(163,"div",4)(164,"mat-form-field",19)(165,"mat-label"),i(166,"Disabled"),e(),l(167,"textarea",23),e()(),t(168,"div",4)(169,"mat-form-field",19)(170,"mat-label"),i(171,"Prefilled and disabled"),e(),l(172,"textarea",24),e()(),t(173,"div",4)(174,"mat-form-field",19)(175,"mat-label"),i(176,"Error"),e(),l(177,"textarea",25),e()()(),t(178,"div",0),l(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),l(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),l(252,"input",36),e()()(),t(253,"div",0),l(254,"mat-divider"),e()()()),s&2&&(d(4),p("formGroup",o.form))},dependencies:[b,Fe,Ae,se,Re,Ne,Le,Ve,ze,Xt,je,ui,Vt,ri],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}),H);Ye=bt([Bt()],Ye);var gn=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Icons"),e(),t(2,"div",0),l(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(),l(12,"div"),t(13,"div"),l(14,"mat-icon",3),e(),t(15,"div")(16,"mat-icon"),i(17,"delete"),e()(),l(18,"div"),e(),t(19,"div",0),l(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"),l(42,"mat-icon",5),e(),t(43,"div"),l(44,"mat-icon",6),e(),t(45,"div"),l(46,"mat-icon",7),e(),t(47,"div"),l(48,"mat-icon",8),e(),t(49,"div"),l(50,"mat-icon",9),e(),t(51,"div"),l(52,"mat-icon",10),e(),t(53,"div"),l(54,"mat-icon",11),e(),t(55,"div"),l(56,"mat-icon",12),e()(),t(57,"div",0),l(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"),l(84,"mat-icon",14),e(),t(85,"div"),l(86,"mat-icon",15),e(),t(87,"div"),l(88,"mat-icon",16),e(),t(89,"div"),l(90,"mat-icon",17),e(),t(91,"div"),l(92,"mat-icon",18),e(),t(93,"div"),l(94,"mat-icon",19),e(),t(95,"div"),l(96,"mat-icon",20),e(),t(97,"div"),l(98,"mat-icon",21),e(),t(99,"div"),l(100,"mat-icon",22),e(),t(101,"div"),l(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"),l(124,"mat-icon",24),e(),t(125,"div"),l(126,"mat-icon",25),e(),t(127,"div"),l(128,"mat-icon",26),e(),t(129,"div"),l(130,"mat-icon",27),e(),t(131,"div"),l(132,"mat-icon",28),e(),t(133,"div"),l(134,"mat-icon",29),e(),t(135,"div"),l(136,"mat-icon",30),e(),t(137,"div"),l(138,"mat-icon",31),e(),t(139,"div"),l(140,"mat-icon",32),e(),t(141,"div"),l(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"),l(164,"mat-icon",34),e(),t(165,"div"),l(166,"mat-icon",35),e(),t(167,"div"),l(168,"mat-icon",36),e(),t(169,"div"),l(170,"mat-icon",37),e(),t(171,"div"),l(172,"mat-icon",38),e(),t(173,"div"),l(174,"mat-icon",39),e(),t(175,"div"),l(176,"mat-icon",40),e(),t(177,"div"),l(178,"mat-icon",41),e(),t(179,"div"),l(180,"mat-icon",42),e(),t(181,"div"),l(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"),l(204,"mat-icon",44),e(),t(205,"div"),l(206,"mat-icon",45),e(),t(207,"div"),l(208,"mat-icon",46),e(),t(209,"div"),l(210,"mat-icon",47),e(),t(211,"div"),l(212,"mat-icon",48),e(),t(213,"div"),l(214,"mat-icon",49),e(),t(215,"div"),l(216,"mat-icon",50),e(),t(217,"div"),l(218,"mat-icon",51),e(),t(219,"div"),l(220,"mat-icon",52),e(),t(221,"div"),l(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"),l(244,"mat-icon",54),e(),t(245,"div"),l(246,"mat-icon",55),e(),t(247,"div"),l(248,"mat-icon",56),e(),t(249,"div"),l(250,"mat-icon",57),e(),t(251,"div"),l(252,"mat-icon",58),e(),t(253,"div"),l(254,"mat-icon",59),e(),t(255,"div"),l(256,"mat-icon",60),e(),t(257,"div"),l(258,"mat-icon",61),e(),t(259,"div"),l(260,"mat-icon",62),e(),t(261,"div"),l(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"),l(284,"mat-icon",64),e(),t(285,"div"),l(286,"mat-icon",65),e(),t(287,"div"),l(288,"mat-icon",66),e(),t(289,"div"),l(290,"mat-icon",67),e(),t(291,"div"),l(292,"mat-icon",68),e(),t(293,"div"),l(294,"mat-icon",69),e(),t(295,"div"),l(296,"mat-icon",70),e(),t(297,"div"),l(298,"mat-icon",71),e(),t(299,"div"),l(300,"mat-icon",72),e(),t(301,"div"),l(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"),l(324,"mat-icon",74),e(),t(325,"div"),l(326,"mat-icon",75),e(),t(327,"div"),l(328,"mat-icon",76),e(),t(329,"div"),l(330,"mat-icon",77),e(),t(331,"div"),l(332,"mat-icon",78),e(),t(333,"div"),l(334,"mat-icon",79),e(),t(335,"div"),l(336,"mat-icon",80),e(),t(337,"div"),l(338,"mat-icon",81),e(),t(339,"div"),l(340,"mat-icon",82),e(),t(341,"div"),l(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(),l(359,"div")(360,"div"),t(361,"div"),l(362,"mat-icon",84),e(),t(363,"div"),l(364,"mat-icon",85),e(),t(365,"div"),l(366,"mat-icon",86),e(),t(367,"div"),l(368,"mat-icon",87),e(),t(369,"div"),l(370,"mat-icon",88),e(),t(371,"div"),l(372,"mat-icon",89),e(),t(373,"div"),l(374,"mat-icon",90),e(),t(375,"div"),l(376,"mat-icon",91),e(),l(377,"div")(378,"div"),t(379,"div",92),l(380,"mat-divider"),e()()())},dependencies:[F,b],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 r=n;return r})();var fn=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){if(a&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),l(10,"mat-icon",16),i(11,"Vertebrates "),e(),t(12,"button",15),l(13,"mat-icon",16),i(14,"Invertebrates "),e()(),t(15,"mat-menu",14,1)(17,"button",15),l(18,"mat-icon",16),i(19,"Fishes "),e(),t(20,"button",15),l(21,"mat-icon",16),i(22,"Amphibians "),e(),t(23,"button",15),l(24,"mat-icon",16),i(25,"Reptiles "),e(),t(26,"button",17),l(27,"mat-icon",16),i(28,"Birds"),e(),t(29,"button",17),l(30,"mat-icon",16),i(31,"Mammals"),e()(),t(32,"mat-menu",14,2)(34,"button",17),l(35,"mat-icon",16),i(36,"Insects"),e(),t(37,"button",17),l(38,"mat-icon",16),i(39,"Molluscs"),e(),t(40,"button",17),l(41,"mat-icon",16),i(42,"Crustaceans"),e(),t(43,"button",17),l(44,"mat-icon",16),i(45,"Corals"),e(),t(46,"button",17),l(47,"mat-icon",16),i(48,"Arachnids"),e(),t(49,"button",17),l(50,"mat-icon",16),i(51,"Velvet worms"),e(),t(52,"button",17),l(53,"mat-icon",16),i(54,"Horseshoe crabs"),e()(),t(55,"mat-menu",14,3)(57,"button",17),l(58,"mat-icon",16),i(59,"Baikal oilfish"),e(),t(60,"button",17),l(61,"mat-icon",16),i(62,"Bala shark"),e(),t(63,"button",17),l(64,"mat-icon",16),i(65,"Ballan wrasse"),e(),t(66,"button",17),l(67,"mat-icon",16),i(68,"Bamboo shark"),e(),t(69,"button",17),l(70,"mat-icon",16),i(71,"Banded killifish"),e()(),t(72,"mat-menu",14,4)(74,"button",17),l(75,"mat-icon",16),i(76,"Sonoran desert toad"),e(),t(77,"button",17),l(78,"mat-icon",16),i(79,"Western toad"),e(),t(80,"button",17),l(81,"mat-icon",16),i(82,"Arroyo toad"),e(),t(83,"button",17),l(84,"mat-icon",16),i(85,"Yosemite toad"),e()(),t(86,"mat-menu",14,5)(88,"button",17),l(89,"mat-icon",16),i(90,"Banded Day Gecko"),e(),t(91,"button",17),l(92,"mat-icon",16),i(93,"Banded Gila Monster"),e(),t(94,"button",17),l(95,"mat-icon",16),i(96,"Black Tree Monitor"),e(),t(97,"button",17),l(98,"mat-icon",16),i(99,"Blue Spiny Lizard"),e(),t(100,"button",18),l(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),l(109,"mat-icon",16),i(110,"Item 1"),e(),t(111,"button",17),l(112,"mat-icon",16),i(113,"Item 2"),e()()()(),t(114,"div",19),l(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),l(154,"mat-divider"),e()),a&2){let c=_(8),h=_(16),M=_(33),pe=_(56),En=_(73),Cn=_(87),wn=_(107),Mn=_(121),Dn=_(130),yn=_(139),In=_(148);d(5),p("matMenuTriggerFor",c),d(4),p("matMenuTriggerFor",h),d(3),p("matMenuTriggerFor",M),d(5),p("matMenuTriggerFor",pe),d(3),p("matMenuTriggerFor",En),d(3),p("matMenuTriggerFor",Cn),d(81),p("matMenuTriggerFor",wn),d(14),p("matMenuTriggerFor",Mn),d(9),p("matMenuTriggerFor",Dn),d(9),p("matMenuTriggerFor",yn),d(9),p("matMenuTriggerFor",In)}},dependencies:[F,b,I,ni,ii,oi],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 r=n;return r})();var hn=(()=>{let n=class n{constructor(o){this.snackbarService=o}};n.\u0275fac=function(a){return new(a||n)(u(Ni))},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Notifications"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Banners"),e(),t(7,"div",2)(8,"div")(9,"button",3),f("click",function(){return m.snackbarService.showSuccess("Example Success")}),i(10," Open Success "),e()(),t(11,"div")(12,"button",3),f("click",function(){return m.snackbarService.showError("Example Error")}),i(13,"Open Error"),e()(),t(14,"div")(15,"button",3),f("click",function(){return m.snackbarService.showInfo("Example Info")}),i(16,"Open Info"),e()(),t(17,"div")(18,"button",3),f("click",function(){return m.snackbarService.showWarning("Example Warning")}),i(19," Open Warning "),e()()()())},dependencies:[b,I],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 r=n;return r})();function bo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," No. "),e())}function So(r,n){if(r&1&&(t(0,"mat-cell")(1,"b"),i(2),e()()),r&2){let s=n.$implicit;d(2),B(s.position)}}function xo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Name "),e())}function _o(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.name," ")}}function Eo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Weight "),e())}function Co(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.weight," ")}}function wo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Symbol "),e())}function Mo(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.symbol," ")}}function Do(r,n){r&1&&l(0,"mat-header-row")}function yo(r,n){r&1&&l(0,"mat-row")}var vn=[{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"}],bn=(()=>{let n=class n{constructor(){this.displayedColumnsSimple=["position","name","weight","symbol"],this.dataSourceSimple=vn,this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=new Ri(vn),this.selection=new He(!0,[])}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Tables"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"p",2),i(6,"History"),e(),t(7,"mat-table",3),ge(8,4),x(9,bo,2,0,"mat-header-cell",5)(10,So,3,1,"mat-cell",6),fe(),ge(11,7),x(12,xo,2,0,"mat-header-cell",5)(13,_o,2,1,"mat-cell",6),fe(),ge(14,8),x(15,Eo,2,0,"mat-header-cell",5)(16,Co,2,1,"mat-cell",6),fe(),ge(17,9),x(18,wo,2,0,"mat-header-cell",5)(19,Mo,2,1,"mat-cell",6),fe(),x(20,Do,1,0,"mat-header-row",10)(21,yo,1,0,"mat-row",11),e()()),a&2&&(d(7),p("dataSource",m.dataSourceSimple),d(13),p("matHeaderRowDef",m.displayedColumnsSimple),d(),p("matRowDefColumns",m.displayedColumnsSimple))},dependencies:[b,Ci,Mi,Oi,Di,wi,ki,yi,Ii,Ti,Pi,de],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 r=n;return r})();var Sn=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Typograpghy"),e(),t(2,"div",0),l(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(),l(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()()(),l(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(),l(63,"br"),t(64,"p",18),i(65,"subtitle-1"),e(),t(66,"p",19),i(67,"subtitle-2"),e(),l(68,"br"),t(69,"p",20),i(70,"mat-body-1"),e(),t(71,"p",21),i(72,"mat-body-2"),e(),l(73,"br"),t(74,"p",22),i(75,"mat-caption"),e())},dependencies:[b],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 r=n;return r})();var Io=()=>["Iterative Magnitude Pruning","One-shot Magnitude Pruning"],Oo=()=>["Yes","No"],ko=()=>["Option 1","Option 2","Option 3","Option 4"],xn=(()=>{let n=class n{constructor(){}handleSelected(o){console.log("Selected option:",o)}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){if(a&1){let c=T();t(0,"h1"),i(1,"Wizard"),e(),t(2,"div",1),l(3,"mat-divider"),e(),l(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),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),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),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),e(),t(19,"div",6)(20,"button",8),l(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),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),e(),t(29,"div",6)(30,"button",8),l(31,"mat-icon",9),i(32," Previous "),e()()()()()}a&2&&(d(11),p("options",ae(3,Io)),d(7),p("options",ae(4,Oo)),d(10),p("options",ae(5,ko)))},dependencies:[ce,F,ht,Ke,$i,Ki,b,I]});let r=n;return r})();var To=[{path:"",component:on,children:[{path:"",redirectTo:y.DEMO.BUTTONS,pathMatch:"full"},{path:y.DEMO.BUTTONS,component:Yi},{path:y.DEMO.FORM_FIELDS,component:Ye},{path:y.DEMO.CHECKBOXES,component:tn},{path:y.DEMO.TYPOGRAPHY,component:Sn},{path:y.DEMO.TABLE,component:bn},{path:y.DEMO.ICONS,component:gn},{path:y.DEMO.MENU,component:fn},{path:y.DEMO.CARDS,component:Ji},{path:y.DEMO.CHIPS,component:nn},{path:y.DEMO.NOTIFICATIONS,component:hn},{path:y.DEMO.WIZARD,component:xn},{path:y.DEMO.DRAWER,component:un}]}],_n=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({imports:[xe.forChild(To),xe]});let r=n;return r})();var Kl=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({providers:[Ge],imports:[xe,Ie,_n,ce,w,We,Xi,Wt,Ut,Qt,Kt,Ai,si,ai,Yt,Zt,gi,zi,pi,mi,hi]});let r=n;return r})();export{Kl as DemoModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QBB4CRI5.js b/frontend/server/modelsmith-build/browser/chunk-GG2NWTMU.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-QBB4CRI5.js rename to frontend/server/modelsmith-build/browser/chunk-GG2NWTMU.js index 56b2f98e..daca2cc2 100644 --- a/frontend/server/modelsmith-build/browser/chunk-QBB4CRI5.js +++ b/frontend/server/modelsmith-build/browser/chunk-GG2NWTMU.js @@ -1,4 +1,4 @@ -import{a as C,b as E,c as K,d as _}from"./chunk-TTPGYBAP.js";import{a as q,e as O,f as J}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as $,i as U,k as b}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as Z,b as X}from"./chunk-PSFPSLKI.js";import{a as W,b as Y}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as L,Ae as V,Cb as k,Ea as d,Fa as p,Sa as u,_ as Q,ab as i,bb as o,bc as F,ca as B,cb as f,dd as M,ha as h,ia as j,jb as c,mc as S,nc as H,oc as g,p as x,sc as G,ub as r,ze as T}from"./chunk-NPZHNGVX.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 ue=()=>["Yes","No"],ee=(()=>{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(v){return t.trackSelection(v)}),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",k(2,ue)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();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.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(v){return t.trackSelection(v)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",k(2,he)),d(2),u("disabled",!t.selectedOption))},dependencies:[_]});let l=e;return l})();var _e=()=>["Yes","No"],ie=(()=>{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 C,b as E,c as K,d as _}from"./chunk-5CZGCFN5.js";import{a as q,e as O,f as J}from"./chunk-OMCAGIEN.js";import"./chunk-BY5EH3KZ.js";import"./chunk-W5GEUOC3.js";import{b as $,i as U,k as b}from"./chunk-W4U3FJPJ.js";import"./chunk-I4357ONH.js";import{a as Z,b as X}from"./chunk-KE2JE72J.js";import{a as W,b as Y}from"./chunk-COKZMNNS.js";import"./chunk-LDDHJMMZ.js";import"./chunk-RTK5DRKR.js";import{$ as L,Cb as k,Ea as d,Fa as p,Sa as u,_ as Q,_b as F,ab as i,ad as M,bb as o,ca as B,cb as f,ha as h,ia as j,jb as c,jc as S,kc as H,lc as g,p as x,pc as G,ub as r,we as T,xe as V}from"./chunk-I5FNXPEQ.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 ue=()=>["Yes","No"],ee=(()=>{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(v){return t.trackSelection(v)}),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",k(2,ue)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();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.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(v){return t.trackSelection(v)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",k(2,he)),d(2),u("disabled",!t.selectedOption))},dependencies:[_]});let l=e;return l})();var _e=()=>["Yes","No"],ie=(()=>{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(v){return t.trackSelection(v)}),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",k(2,_e)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();var fe=()=>["Yes","No"],oe=(()=>{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(v){return t.trackSelection(v)}),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",k(2,fe)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();var A,P=(A=class{constructor(e){this.scriptFacadeService=e,this.isScriptActive=!1,this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Y(this)).subscribe(e=>{this.isScriptActive=$(e)})}ctaCallScript(e){if(!e)return;let z=J(e);z&&this.scriptFacadeService.dispatch(Z.callScript({configs:{alg:z}}))}},A.\u0275fac=function(z){return new(z||A)(B(X))},A.\u0275prov=Q({token:A,factory:A.\u0275fac}),A);P=x([W()],P);var ne=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=O([U.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([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},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(v){return t.trackSelection(v)}),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:[_,T,C,E]});let l=e;return l})();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=O([U.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([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},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(v){return t.trackSelection(v)}),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:[_,T,C,E]});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=O([b.IPG,b.IPR,b.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([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},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(v){return t.trackSelection(v)}),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:[_,T,C,E]});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=O([b.IMP,b.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([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},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(v){return t.trackSelection(v)}),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:[_,T,C,E]});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=O([b.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([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},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(v){return t.trackSelection(v)}),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:[_,T,C,E]});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=O([U.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([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},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(v){return t.trackSelection(v)}),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:[_,T,C,E]});let l=e;return l})();var Se=()=>["Yes","No"],le=(()=>{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(v){return t.trackSelection(v)}),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",k(2,Se)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();var pe=(()=>{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:[H,q],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 ge=[{path:"",component:pe,children:[{path:"",redirectTo:s.PRETRAINED_MODEL,pathMatch:"full"},{path:s.PRETRAINED_MODEL,component:te},{path:s.PRUNING_TIME,component:ie},{path:s.PTQ_TIME,component:oe},{path:s.SIMILAR_ACCURACY,component:le},{path:s.HIGHER_ACCURACY,component:ee},{path:s.RECOMMENDED_BASIC_PTQ,component:ne},{path:s.RECOMMENDED_BRECQ,component:re},{path:s.RECOMMENDED_GRASP,component:ce},{path:s.RECOMMENDED_ITERATIVE,component:me},{path:s.RECOMMENDED_MINMAX,component:se},{path:s.RECOMMENDED_ITERATIVE_ONE_SHOT,component:ae}]}],de=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=j({type:e}),e.\u0275inj=L({imports:[G.forChild(ge),G]});let l=e;return l})();var ci=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=j({type:e}),e.\u0275inj=L({providers:[P],imports:[F,de,q,_,V,K]});let l=e;return l})();export{ci as WizardModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GRATYYX3.js b/frontend/server/modelsmith-build/browser/chunk-GRATYYX3.js deleted file mode 100644 index 220c9b29..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-GRATYYX3.js +++ /dev/null @@ -1,11 +0,0 @@ -import{a as vt,e as xt,g as _n,h as ze,i as Ge}from"./chunk-2JZ6V3QN.js";import{a as Cn,b as bt,c as vn}from"./chunk-XD2XL32D.js";import{a as Ct}from"./chunk-3GNVUME3.js";import{a as Yt,d as Qi,e as Ki,f as xn,g as bn}from"./chunk-LBD5Y7YA.js";import{a as nn,b as on,c as rn,d as an,e as sn,f as ln,g as cn,h as dn,i as pn,j as mn,k as hn,l as gn,m as un,n as ye,o as fn,p as _t,q as je}from"./chunk-MJO2RBYE.js";import{a as en,b as tn}from"./chunk-W2GP6GR3.js";import{a as Ui,b as $i}from"./chunk-3S6QBQVM.js";import{a as ft,b as Ji}from"./chunk-G267DK6J.js";import{a as at,b as Pi}from"./chunk-VUPIOU6P.js";import{a as zi,b as Gi}from"./chunk-PP7DOJYP.js";import{a as gt}from"./chunk-SMKHMGDE.js";import{c as Le,e as ut,f as Gt,g as B}from"./chunk-W4U3FJPJ.js";import{a as qi,b as Zi}from"./chunk-2FJ2YO2M.js";import"./chunk-PSFPSLKI.js";import{a as be,b as z}from"./chunk-GMIVG7ET.js";import{c as Yi,e as Xi,f as Wi,m as ht}from"./chunk-NT2MTW7W.js";import{a as pt,h as mt,i as Li}from"./chunk-HG2O7P4S.js";import{$ as W,$b as wi,$d as ki,Ab as j,Ac as $e,Ad as Ei,Ae as ji,Ba as It,Bb as it,Bc as Lt,Ca as di,Cc as Ne,D as Pt,Da as Ot,Db as Vt,E as Me,Ea as s,Ec as Qe,Ed as Ai,Fa as m,Fb as E,Fc as jt,Ga as pi,Gb as M,Ha as mi,Hb as ui,I as ii,Ib as ne,Id as Mi,J as pe,Jb as fi,Jd as Ti,Kd as zt,Lb as Z,Na as hi,Nb as J,Oa as Rt,Ob as _i,Pa as ie,Q as Ft,Qa as u,Qb as Ci,R as kt,Ra as et,Sa as d,Ta as V,Tb as ee,Ua as K,Ub as oe,Ud as rt,Va as gi,Vb as vi,Vc as Si,Wb as xi,Xb as bi,Ya as Nt,Yb as nt,Z as ni,_ as me,_b as Oe,_d as Fi,a as Ee,aa as he,ab as l,ac as yi,b as We,bb as c,bc as ot,be as Te,ca as ge,cb as f,ce as Ke,da as oi,db as b,eb as w,ee as we,fe as Be,g as Ze,gb as D,ge as st,ha as A,ia as U,j as Ae,ja as F,jb as _,je as Ii,k as Tt,ka as Je,ke as lt,l as ei,lb as h,mb as tt,me as ct,nb as _e,ne as Oi,o as ti,oa as ue,p as de,pa as C,pb as Bt,pe as Ve,qa as v,qb as q,ra as Ie,rb as H,re as dt,sa as ri,sb as L,sc as Ht,sd as Di,se as Ri,ta as ai,tb as $,te as Ni,ua as si,ub as g,ue as Bi,va as li,vb as k,vc as Ue,wb as T,wc as Re,we as Vi,xa as fe,xb as Ce,xe as Hi,ya as S,yb as ve,za as ci,zb as xe,zc as I,ze as He}from"./chunk-NPZHNGVX.js";var Qn=["hueSlider"],Kn=["alphaSlider"];function qn(n,i){if(n&1){let e=D();l(0,"div",10),_("newValue",function(o){C(e);let r=h();return v(r.onSliderChange("saturation-lightness",o))}),l(1,"div",11),f(2,"div"),c()()}if(n&2){let e=h();V("background-color",e.hueSliderColor),d("rgX",1)("rgY",1),s(),V("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function Zn(n,i){if(n&1&&(l(0,"div",12),f(1,"div",13)(2,"div",14),c()),n&2){let e=h();s(2),V("background-color",e.selectedColor)}}function Jn(n,i){if(n&1){let e=D();l(0,"div",15,1),_("newValue",function(o){C(e);let r=h();return v(r.onSliderChange("hue",o))}),l(2,"div",16)(3,"div"),f(4,"div"),c()()()}if(n&2){let e=h();d("rgX",1),s(2),V("left",e.slider==null?null:e.slider.h,"px")}}function eo(n,i){if(n&1){let e=D();l(0,"div",17,2),_("newValue",function(o){C(e);let r=h();return v(r.onSliderChange("alpha",o))}),f(2,"div",18),l(3,"div",16)(4,"div"),f(5,"div"),c()()()}if(n&2){let e=h();d("rgX",1),s(2),d("ngStyle",e.getBackgroundColor(e.alphaSliderColor)),s(),V("left",e.slider==null?null:e.slider.a,"px")}}var to=["dialog"],Sn=n=>({background:n});function io(n,i){n&1&&f(0,"div",12)}function no(n,i){if(n&1){let e=D();b(0),l(1,"div",9)(2,"div",10),_("click",function(){let o=C(e).$implicit,r=h(2);return v(r.onColorClick(o))}),u(3,io,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=i.index,o=h(2);s(2),K("colornull",!e),d("ngStyle",o.getBackgroundColor(e)),s(),d("ngIf",t==o.indexSeleccionado)}}function oo(n,i){if(n&1&&f(0,"div",18),n&2){let e=h(3);d("ngStyle",e.getBackgroundColor(e.color))}}function ro(n,i){if(n&1){let e=D();l(0,"div",13),_("click",function(){C(e);let o=h(2);return v(o.addColor())}),u(1,oo,1,1,"div",14),Ie(),l(2,"svg",15),f(3,"path",16)(4,"path",17),c()()}if(n&2){let e=h(2);s(),d("ngIf",e.indexSeleccionado===void 0)}}function ao(n,i){if(n&1){let e=D();l(0,"color-picker",19),_("colorChange",function(o){C(e);let r=h(2);return v(r.onChangeColorPicker(o))})("onAlphaChange",function(o){C(e);let r=h(2);return v(r.onAlphaChange(o))}),c()}if(n&2){let e=h(2);d("controls",e.colorPickerControls)("color",e.hsva)}}function so(n,i){if(n&1&&(b(0),l(1,"div",5),u(2,no,4,4,"ng-container",6)(3,ro,5,1,"div",7)(4,ao,1,2,"color-picker",8),c(),w()),n&2){let e=h();s(),d("@colorsAnimation",e.colorsAnimationEffect),s(),d("ngForOf",e.palette),s(),d("ngIf",!e.hideColorPicker&&e.colorPickerControls!="only-alpha"),s(),d("ngIf",!e.hideColorPicker&&e.colorPickerControls=="only-alpha")}}function lo(n,i){n&1&&f(0,"div",12)}function co(n,i){if(n&1){let e=D();b(0),l(1,"div",9)(2,"div",25),_("click",function(){let o=C(e).$implicit,r=h(2);return v(r.changeColor(o))}),u(3,lo,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=h(2);s(2),K("colornull",!e),d("ngStyle",Vt(4,Sn,e)),s(),d("ngIf",t.isSelected(e))}}function po(n,i){if(n&1){let e=D();b(0),l(1,"div",5)(2,"div",20)(3,"div",21),_("click",function(){C(e);let o=h();return v(o.onClickBack())}),Ie(),l(4,"svg",22),f(5,"path",23)(6,"path",24),c()()(),u(7,co,4,6,"ng-container",6),c(),w()}if(n&2){let e=h();s(),d("@colorsAnimation",e.colorsAnimationEffect),s(6),d("ngForOf",e.variants)}}function mo(n,i){if(n&1){let e=D();b(0),l(1,"div",26)(2,"div",27),_("click",function(){C(e);let o=h();return v(o.onClickBack())}),Ie(),l(3,"svg",22),f(4,"path",23)(5,"path",24),c()(),ri(),l(6,"button",28),_("click",function(){C(e);let o=h();return v(o.emitClose("cancel"))}),g(7),c(),l(8,"button",28),_("click",function(){C(e);let o=h();return v(o.emitClose("accept"))}),g(9),c()(),l(10,"div",29)(11,"color-picker",30),_("sliderChange",function(o){C(e);let r=h();return v(r.onChangeColorPicker(o))}),c()(),w()}if(n&2){let e=h();s(7),T(" ",e.cancelLabel," "),s(2),T(" ",e.acceptLabel," "),s(2),d("controls",e.colorPickerControls)("color",e.hsva)}}function ho(n,i){if(n&1){let e=D();l(0,"div",31)(1,"p",32),_("click",function(){C(e);let o=h();return v(o.nextFormat())}),g(2),c(),l(3,"div",33)(4,"input",34,1),_("keyup",function(){C(e);let o=$(5),r=h();return v(r.changeColorManual(o.value))})("keydown.enter",function(){C(e);let o=h();return v(o.emitClose("accept"))}),c()()()}if(n&2){let e=h();s(2),k(e.colorFormats[e.format]),s(2),V("font-size",e.color&&e.color.length>23?9:10,"px")("letter-spacing",e.color&&e.color.length>16?0:1.5,"px"),d("placeholder",e.placeholder)("value",e.color)}}var Xt=["hex","rgba","hsla","cmyk"],O=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(O||{}),wn=[{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"]}],te=class{constructor(i,e,t,o){this.r=i,this.g=e,this.b=t,this.a=o}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)+")":")")}},Q=class{constructor(i,e,t,o){this.h=i,this.s=e,this.v=t,this.a=o,this.onChange=new S(!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}},Pe=class{constructor(i,e,t,o){this.h=i,this.s=e,this.l=t,this.a=o}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)+")":")")}},Se=class{constructor(i,e,t,o,r=1){this.c=i,this.m=e,this.y=t,this.k=o,this.a=r}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+")"}},Wt=class{constructor(i){i&&(this.preview=i.preview,this.variants=i.variants)}},St=(()=>{class n{constructor(){}toFormat(e,t){var o="";if(e)switch(t){case O.HEX:var a=this.hsvaToRgba(e);a.denormalize();var o=this.rgbaToHex(a,!0);break;case O.HSLA:var r=this.hsva2hsla(e);r.denormalize();var o=r.toString();break;case O.RGBA:var a=this.hsvaToRgba(e),o=a.toString();break;case O.CMYK:var p=this.hsvaToCmyk(e),o=p.toString();break}return o}stringToFormat(e,t){var o=this.stringToHsva(e,!0);return this.toFormat(o,t)}hsva2hsla(e){let t=e.h,o=e.s,r=e.v,a=e.a;if(r===0)return new Pe(t,0,0,a);if(o===0&&r===1)return new Pe(t,1,1,a);{let p=r*(2-o)/2;return new Pe(t,r*o/(1-Math.abs(2*p-1)),p,a)}}hsla2hsva(e){let t=Math.min(e.h,1),o=Math.min(e.s,1),r=Math.min(e.l,1),a=Math.min(e.a,1);if(r===0)return new Q(t,0,0,a);{let p=r+o*(1-Math.abs(2*r-1))/2;return new Q(t,2*(p-r)/p,p,a)}}hsvaToRgba(e){let t,o,r,a=e.h,p=e.s,x=e.v,y=e.a,X=Math.floor(a*6),R=a*6-X,N=x*(1-p),Xe=x*(1-R*p),De=x*(1-(1-R)*p);switch(X%6){case 0:t=x,o=De,r=N;break;case 1:t=Xe,o=x,r=N;break;case 2:t=N,o=x,r=De;break;case 3:t=N,o=Xe,r=x;break;case 4:t=De,o=N,r=x;break;case 5:t=x,o=N,r=Xe;break;default:t=0,o=0,r=0}return new te(t,o,r,y)}cmykToRgb(e){let t=(1-e.c)*(1-e.k),o=(1-e.m)*(1-e.k),r=(1-e.y)*(1-e.k);return new te(t,o,r,e.a)}rgbaToCmyk(e){let t=1-Math.max(e.r,e.g,e.b);if(t===1)return new Se(0,0,0,1,e.a);{let o=(1-e.r-t)/(1-t),r=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new Se(o,r,a,t,e.a)}}hsvaToCmyk(e){let t=this.hsvaToRgba(e);return this.rgbaToCmyk(t)}rgbaToHsva(e){let t,o,r=Math.min(e.r,1),a=Math.min(e.g,1),p=Math.min(e.b,1),x=Math.min(e.a,1),y=Math.max(r,a,p),X=Math.min(r,a,p),R=y,N=y-X;if(o=y===0?0:N/y,y===X)t=0;else{switch(y){case r:t=(a-p)/N+(a{class n{mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.dragEnd=new S,this.dragStart=new S,this.newValue=new S,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,o=this.elRef.nativeElement.offsetHeight,r=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),o));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:r/t,v:1-a/o,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:a/o,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:r/t,rgX:this.rgX})}}return n.\u0275fac=function(e){return new(e||n)(m(fe))},n.\u0275dir=F({type:n,selectors:[["","slider",""]],hostBindings:function(e,t){e&1&&_("mousedown",function(r){return t.mouseDown(r)})("touchstart",function(r){return t.touchStart(r)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),n})(),uo=(()=>{class n{constructor(e,t){this.service=e,this.cdr=t,this.color=new Q(0,1,1,1),this.controls="default",this.sliderChange=new S(!1),this.onAlphaChange=new S(!1),this.hsva=new Q(0,1,1,1),this.selectedColor="#000000",this.fallbackColor="#000000"}ngOnInit(){this.color||(this.color=new Q(0,1,1,1)),this.slider=new wt(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 Ut(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 Q(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 wt(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)(m(St),m(Z))},n.\u0275cmp=A({type:n,selectors:[["color-picker"]],viewQuery:function(e,t){if(e&1&&(q(Qn,5),q(Kn,5)),e&2){let o;H(o=L())&&(t.hueSlider=o.first),H(o=L())&&(t.alphaSlider=o.first)}},inputs:{color:"color",controls:"controls"},outputs:{sliderChange:"sliderChange",onAlphaChange:"onAlphaChange"},features:[ue],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 o=D();l(0,"div",3,0),_("click",function(a){return C(o),v(a.stopPropagation())}),u(2,qn,3,8,"div",4),l(3,"div",5),u(4,Zn,3,2,"div",6),l(5,"div",7),u(6,Jn,5,3,"div",8)(7,eo,6,4,"div",9),c()()()}e&2&&(s(2),d("ngIf",t.controls!="only-alpha"),s(2),d("ngIf",t.controls!="only-alpha"),s(2),d("ngIf",t.controls!="only-alpha"),s(),d("ngIf",t.controls!="no-alpha"))},dependencies:[oe,nt,go],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})(),fo=(()=>{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 Q(0,1,1,1),this.colorsAnimationEffect="slide-in",this.palette=wn,this.variants=[],this.userFormats=[],this.colorFormats=Xt,this.format=O.HEX,this.formatMap={hex:O.HEX,rgba:O.RGBA,hsla:O.HSLA,cmyk:O.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 o=0;oXt.includes($n))&&(this.colorFormats=De),p?this.colorFormats.includes(p)?(this.format=this.colorFormats.indexOf(p.toLowerCase()),this.canChangeFormat=!1,this.service.getFormatByString(this.color)!=p.toLowerCase()&&this.setColor(this.service.stringToHsva(this.color))):(console.error("Format provided is invalid, using HEX"),this.format=O.HEX):(this.format=this.colorFormats.indexOf(this.service.getFormatByString(this.color)),this.format<0&&(this.format=0)),this.previewColor=this.color,this.palette=r??wn,this.colorsAnimationEffect=a,Xe=="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(),o=t.height;e.bottom+o>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 o=[];for(let r=0;r slide-in",[Qe(":enter",I({opacity:0}),{optional:!0}),Qe(":enter",jt("10ms",[Re(".3s ease-in",Lt([I({opacity:0,transform:"translatex(-50%)",offset:0}),I({opacity:.5,transform:"translatex(-10px) scale(1.1)",offset:.3}),I({opacity:1,transform:"translatex(0)",offset:1})]))]),{optional:!0})]),Ne("void => popup",[Qe(":enter",I({opacity:0,transform:"scale(0)"}),{optional:!0}),Qe(":enter",jt("10ms",[Re("500ms ease-out",Lt([I({opacity:.5,transform:"scale(.5)",offset:.3}),I({opacity:1,transform:"scale(1.1)",offset:.8}),I({opacity:1,transform:"scale(1)",offset:1})]))]),{optional:!0})])])]}}),n})(),yn={position:"fixed",height:"100%",width:"100%","z-index":2e3,top:0,left:0},Dn=(()=>{class n{constructor(e,t,o){this.resolver=e,this.applicationRef=t,this.injector=o}createPanel(e,t){this.componentRef!=null&&this.removePanel();let o=this.resolver.resolveComponentFactory(fo);this.componentRef=o.create(this.injector),this.applicationRef.attachView(this.componentRef.hostView);let r=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(yn).forEach(a=>{this.overlay.style[a]=yn[a]}),e?document.getElementById(e).appendChild(this.overlay):document.body.appendChild(this.overlay),this.overlay.appendChild(r),this.componentRef}removePanel(){this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.overlay.remove()}}return n.\u0275fac=function(e){return new(e||n)(ge(mi),ge(fi),ge(li))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),$t=(()=>{class n{onClick(){this.openPanel()}constructor(e,t,o){this.triggerRef=e,this.panelFactory=t,this.service=o,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 S,this.input=new S,this.slider=new S,this.close=new S,this.open=new S,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 r=Xt.indexOf(this.format.toLowerCase());e=this.service.stringToFormat(e,r)}this.color=e;let o=!1;e&&e.startsWith("cmyk")&&(o=!0,t||(t=this.service.stringToFormat(e,O.RGBA))),this.change.emit(o?t:e)}}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return n.\u0275fac=function(e){return new(e||n)(m(fe),m(Dn),m(St))},n.\u0275dir=F({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:[j([{provide:Fi,useExisting:ni(()=>n),multi:!0}])]}),n})(),En=(()=>{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)(m(Z),m($t,1))},n.\u0275cmp=A({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),f(3,"div",3),c()()()),e&2&&(s(3),K("colornull",!t.color),d("ngStyle",Vt(3,Sn,t.color)))},dependencies:[nt],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})(),An=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=U({type:n}),n.\u0275inj=W({providers:[St,Dn],imports:[ot]}),n})();var Mn=(()=>{let i=class i{get lineClamp(){return this.maxEllipsisLines}onMouseEnter(){this.isTextOverflowing?this.tooltip.show():this.tooltip.hide()}onMouseLeave(){this.tooltip.hide()}constructor(t,o){this.tooltip=t,this.elementRef=o,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),o=this.maxEllipsisLines*t;return this.elementRef.nativeElement.scrollHeight>o}};i.\u0275fac=function(o){return new(o||i)(m(gt),m(fe))},i.\u0275dir=F({type:i,selectors:[["","msUseEllipsis",""]],hostVars:14,hostBindings:function(o,r){o&1&&_("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),o&2&&V("display",r.display)("overflow",r.overflow)("-webkit-box-orient",r.boxOrient)("-webkit-line-clamp",r.lineClamp)("text-overflow",r.textOverflow)("white-space",r.whiteSpace)("word-break",r.wordBreak)},inputs:{maxEllipsisLines:"maxEllipsisLines"},standalone:!0,features:[j([gt])]});let n=i;return n})();var xo=0,Qt=new he("CdkAccordion"),Tn=(()=>{let i=class i{constructor(){this._stateChanges=new Ae,this._openCloseAllActions=new Ae,this.id=`cdk-accordion-${xo++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=F({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",J]},exportAs:["cdkAccordion"],standalone:!0,features:[j([{provide:Qt,useExisting:i}]),ie,ue]});let n=i;return n})(),bo=0,Pn=(()=>{let i=class i{get expanded(){return this._expanded}set expanded(t){if(this._expanded!==t){if(this._expanded=t,this.expandedChange.emit(t),t){this.opened.emit();let o=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,o)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(t,o,r){this.accordion=t,this._changeDetectorRef=o,this._expansionDispatcher=r,this._openCloseAllSubscription=Ze.EMPTY,this.closed=new S,this.opened=new S,this.destroyed=new S,this.expandedChange=new S,this.id=`cdk-accordion-child-${bo++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((a,p)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===p&&this.id!==a&&(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(t=>{this.disabled||(this.expanded=t)})}};i.\u0275fac=function(o){return new(o||i)(m(Qt,12),m(Z),m(ht))},i.\u0275dir=F({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",J],disabled:[2,"disabled","disabled",J]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[j([{provide:Qt,useValue:void 0}]),ie]});let n=i;return n})(),Fn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({});let n=i;return n})();var So=["body"],Do=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Eo=["mat-expansion-panel-header","*","mat-action-row"];function Ao(n,i){}var Mo=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],To=["mat-panel-title","mat-panel-description","*"];function Po(n,i){if(n&1&&(l(0,"span",1),Ie(),l(1,"svg",2),f(2,"path",3),c()()),n&2){let e=h();d("@indicatorRotate",e._getExpandedState())}}var Kt=new he("MAT_ACCORDION"),kn="225ms cubic-bezier(0.4,0.0,0.2,1)",On={indicatorRotate:Ue("indicatorRotate",[$e("collapsed, void",I({transform:"rotate(0deg)"})),$e("expanded",I({transform:"rotate(180deg)"})),Ne("expanded <=> collapsed, void => collapsed",Re(kn))]),bodyExpansion:Ue("bodyExpansion",[$e("collapsed, void",I({height:"0px",visibility:"hidden"})),$e("expanded",I({height:"*",visibility:""})),Ne("expanded <=> collapsed, void => collapsed",Re(kn))])},Rn=new he("MAT_EXPANSION_PANEL"),Fo=(()=>{let i=class i{constructor(t,o){this._template=t,this._expansionPanel=o}};i.\u0275fac=function(o){return new(o||i)(m(pi),m(Rn,8))},i.\u0275dir=F({type:i,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let n=i;return n})(),ko=0,Nn=new he("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),re=(()=>{let i=class i extends Pn{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=t}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,o,r,a,p,x,y){super(t,o,r),this._viewContainerRef=a,this._animationMode=x,this._hideToggle=!1,this.afterExpand=new S,this.afterCollapse=new S,this._inputChanges=new Ae,this._headerId=`mat-expansion-panel-header-${ko++}`,this.accordion=t,this._document=p,this._animationsDisabled=x==="NoopAnimations",y&&(this.hideToggle=y.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(kt(null),Me(()=>this.expanded&&!this._portal),pe(1)).subscribe(()=>{this._portal=new Yi(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let t=this._document.activeElement,o=this._body.nativeElement;return t===o||o.contains(t)}return!1}_animationStarted(t){!In(t)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(t){In(t)||(t.toState==="expanded"?this.afterExpand.emit():t.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};i.\u0275fac=function(o){return new(o||i)(m(Kt,12),m(Z),m(ht),m(hi),m(Ci),m(It,8),m(Nn,8))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(o,r,a){if(o&1&&Bt(a,Fo,5),o&2){let p;H(p=L())&&(r._lazyContent=p.first)}},viewQuery:function(o,r){if(o&1&&q(So,5),o&2){let a;H(a=L())&&(r._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(o,r){o&2&&K("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",J],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[j([{provide:Kt,useValue:void 0},{provide:Rn,useExisting:i}]),ie,Rt,ue,it],ngContentSelectors:Eo,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(o,r){if(o&1){let a=D();tt(Do),_e(0),l(1,"div",1,0),_("@bodyExpansion.start",function(x){return C(a),v(r._animationStarted(x))})("@bodyExpansion.done",function(x){return C(a),v(r._animationDone(x))}),l(3,"div",2),_e(4,1),u(5,Ao,0,0,"ng-template",3),c(),_e(6,2),c()}o&2&&(s(),d("@bodyExpansion",r._getExpandedState())("id",r.id),et("aria-labelledby",r._headerId),s(4),d("cdkPortalOutlet",r._portal))},dependencies:[Xi],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:[On.bodyExpansion]},changeDetection:0});let n=i;return n})();function In(n){return n.fromState==="void"}var Fe=(()=>{let i=class i{constructor(t,o,r,a,p,x,y){this.panel=t,this._element=o,this._focusMonitor=r,this._changeDetectorRef=a,this._animationMode=x,this._parentChangeSubscription=Ze.EMPTY,this.tabIndex=0;let X=t.accordion?t.accordion._stateChanges.pipe(Me(R=>!!(R.hideToggle||R.togglePosition))):ti;this.tabIndex=parseInt(y||"")||0,this._parentChangeSubscription=Pt(t.opened,t.closed,X,t._inputChanges.pipe(Me(R=>!!(R.hideToggle||R.disabled||R.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Me(()=>t._containsFocus())).subscribe(()=>r.focusVia(o,"program")),p&&(this.expandedHeight=p.expandedHeight,this.collapsedHeight=p.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Di(t)||(t.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t);return}}focus(t,o){t?this._focusMonitor.focusVia(this._element,t,o):this._element.nativeElement.focus(o)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};i.\u0275fac=function(o){return new(o||i)(m(re,1),m(fe),m(Ai),m(Z),m(Nn,8),m(It,8),si("tabindex"))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(o,r){o&1&&_("click",function(){return r._toggle()})("keydown",function(p){return r._keydown(p)}),o&2&&(et("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),V("height",r._getHeaderHeight()),K("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:_i(t)]},standalone:!0,features:[ie,it],ngContentSelectors:To,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(o,r){o&1&&(tt(Mo),l(0,"span",0),_e(1),_e(2,1),_e(3,2),c(),u(4,Po,3,1,"span",1)),o&2&&(K("mat-content-hide-toggle",!r._showToggle()),s(4),Nt(r._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:[On.indicatorRotate]},changeDetection:0});let n=i;return n})();var Ye=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=F({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let n=i;return n})(),Bn=(()=>{let i=class i extends Tn{constructor(){super(...arguments),this._ownHeaders=new ci,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(kt(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(o=>o.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ei(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};i.\u0275fac=(()=>{let t;return function(r){return(t||(t=ai(i)))(r||i)}})(),i.\u0275dir=F({type:i,selectors:[["mat-accordion"]],contentQueries:function(o,r,a){if(o&1&&Bt(a,Fe,5),o&2){let p;H(p=L())&&(r._headers=p)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(o,r){o&2&&K("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",J],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[j([{provide:Kt,useExisting:i}]),ie,Rt]});let n=i;return n})(),Vn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({imports:[zt,Fn,Wi]});let n=i;return n})();var Hn=(()=>{let i=class i{transform(t){return typeof t=="string"&&t&&t!="None"||typeof t=="number"&&!isNaN(t)?t.toString():"-"}};i.\u0275fac=function(o){return new(o||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(o){return new(o||i)},i.\u0275pipe=Je({name:"hasKeys",type:i,pure:!0,standalone:!0});let n=i;return n})();var G=function(n){return n.ADD="add",n.EDIT="edit",n.VIEW="view",n}(G||{});var Dt=(()=>{let i=class i{constructor(t){this.store=t,this.filenames$=this.store.select(Qi),this.summarizedRecord$=this.store.select(Ki)}dispatch(t){this.store.dispatch(t)}};i.\u0275fac=function(o){return new(o||i)(ge(Si))},i.\u0275prov=me({token:i,factory:i.\u0275fac});let n=i;return n})();var Y=(()=>{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 o=this._recordsMap.get(t)||[];this._records.next(o)}get records(){return this._records.value}get records$(){return this._records.asObservable()}addRecord(t){this.stopTooltips();let r=[...this._records.value,t];this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}updateRecord(t,o){this.stopTooltips();let r=this._records.value;if(t>=0&&t=0&&tp!==t);this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}}stopTooltips(){this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1}constructor(t){this.chartToolsGlobalSignalsService=t,this._recordsMap=new Map,this._records=new Tt([]),this._algorithmType=new Tt(B.PRUNING)}};i.\u0275fac=function(o){return new(o||i)(ge(ze))},i.\u0275prov=me({token:i,factory:i.\u0275fac});let n=i;return n})();var zn=(()=>{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(o){return new(o||i)(m(Ke))},i.\u0275cmp=A({type:i,selectors:[["ms-chart-colors-form-controls"]],inputs:{controlKey:"controlKey"},features:[j([],[{provide:Ke,useFactory:()=>oi(Ke,{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(o,r){o&1&&(b(0,0),l(1,"div",1)(2,"mat-label"),g(3,"Chart border color"),c(),l(4,"div",2)(5,"div",3),f(6,"ngx-colors",4),c(),g(7),c()(),l(8,"div",1)(9,"mat-label"),g(10,"Chart background color"),c(),l(11,"div",2)(12,"div",3),f(13,"ngx-colors",4),c(),g(14),c()(),w()),o&2&&(d("formGroupName",r.controlKey),s(6),d("formControlName",r.CHART_BODER_COLOR_CONTROL_NAME),s(),T(" ",r.borderColorControl==null?null:r.borderColorControl.value," "),s(6),d("formControlName",r.CHART_BACKGROUND_COLOR_CONTROL_NAME),s(),T(" ",r.backgroundColorControl==null?null:r.backgroundColorControl.value," "))},dependencies:[En,$t,we,Be,Ve,Oi,pt]});let n=i;return n})();function Yo(n,i){if(n&1&&(l(0,"mat-option",14),g(1),c()),n&2){let e=h();s(),T(" No algorithm was yet run. Please run a ",e.algorithmTypeLabel," algorithm. ")}}function Xo(n,i){if(n&1&&(l(0,"mat-option",16),g(1),c()),n&2){let e=i.$implicit;d("value",e.name)("disabled",e.disabled),s(),T(" ",e.name," ")}}function Wo(n,i){if(n&1&&(b(0),u(1,Xo,2,3,"mat-option",15),w()),n&2){let e=h();s(),d("ngForOf",e.files)}}function Uo(n,i){n&1&&(l(0,"div")(1,"div",17),f(2,"mat-spinner",18),c()())}function $o(n,i){if(n&1&&(b(0),g(1),E(2,"readableDuration"),w()),n&2){let e=h().$implicit;s(),k(M(2,1,e.value))}}function Qo(n,i){if(n&1&&(b(0),g(1),w()),n&2){let e=h().$implicit;s(),k(e.value)}}function Ko(n,i){n&1&&(l(0,"div",33),f(1,"mat-divider"),c())}function qo(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),g(3),E(4,"parametersLabel"),c(),l(5,"div",28),b(6,29),u(7,$o,3,3,"ng-container",30)(8,Qo,2,1,"ng-container",31),w(),c()(),u(9,Ko,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),T("",M(4,4,e.key),":"),s(3),d("ngSwitch",e.key),s(),d("ngSwitchCase","duration_seconds"),s(2),d("ngIf",!t)}}function Zo(n,i){if(n&1&&(b(0),u(1,qo,10,6,"div",24),w()),n&2){let e=i.ngIf;s(),d("ngForOf",e)}}function Jo(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function er(n,i){if(n&1&&(b(0),g(1),E(2,"adaptiveFileSize"),w()),n&2){let e=h().$implicit;s(),k(M(2,1,e.value))}}function tr(n,i){if(n&1&&(b(0),g(1),E(2,"date"),w()),n&2){let e=h().$implicit;s(),k(ui(2,1,e.value,"medium"))}}function ir(n,i){if(n&1&&(b(0),g(1),E(2,"readableDuration"),w()),n&2){let e=h().$implicit;s(),k(M(2,1,e.value))}}function nr(n,i){if(n&1&&(b(0),g(1),w()),n&2){let e=h().$implicit;s(),k(e.value)}}function or(n,i){n&1&&(l(0,"div",33),f(1,"mat-divider"),c())}function rr(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),g(3),E(4,"parametersLabel"),c(),l(5,"div",28),b(6,29),u(7,er,3,3,"ng-container",30)(8,tr,3,4,"ng-container",30)(9,ir,3,3,"ng-container",30)(10,nr,2,1,"ng-container",31),w(),c()(),u(11,or,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),T("",M(4,6,e.key),":"),s(3),d("ngSwitch",e.key),s(),d("ngSwitchCase","file_size_bytes"),s(),d("ngSwitchCase","creation_date"),s(),d("ngSwitchCase","training_duration_seconds"),s(2),d("ngIf",!t)}}function ar(n,i){if(n&1&&(b(0),u(1,rr,12,8,"div",24),E(2,"keyvalue"),w()),n&2){let e=h(3);s(),d("ngForOf",M(2,1,e.summarizedRecord==null?null:e.summarizedRecord.modelTrainingDetails))}}function sr(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function lr(n,i){n&1&&(l(0,"div",33),f(1,"mat-divider"),c())}function cr(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),g(3),E(4,"parametersLabel"),c(),l(5,"div",28),g(6),c()(),u(7,lr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),T("",M(4,3,e.key),":"),s(3),k(e.value),s(),d("ngIf",!t)}}function dr(n,i){if(n&1&&(b(0),u(1,cr,8,5,"div",24),w()),n&2){let e=i.ngIf;s(),d("ngForOf",e)}}function pr(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function mr(n,i){if(n&1&&(b(0),f(1,"ms-chart-colors-form-controls",35)(2,"ms-line-chart",36),w()),n&2){let e=h(3);s(2),d("data",e.lastRunAccuracyTestingChartData)("settings",e.testingAccuracyChartDisplaySettings)}}function hr(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function gr(n,i){if(n&1){let e=D();b(0),f(1,"mat-divider"),l(2,"div",19)(3,"mat-label"),g(4,"Set run name"),c(),l(5,"mat-form-field",9),f(6,"input",20),c()(),l(7,"mat-accordion",21)(8,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.statistics,o)||(r.panelStates.statistics=o),v(o)}),l(9,"mat-expansion-panel-header")(10,"mat-panel-title",23),g(11," Statistics "),c()(),u(12,Zo,2,1,"ng-container",13),E(13,"keyvalue"),u(14,Jo,2,0,"ng-template",null,2,ne),c(),l(16,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.modelTrainingDetails,o)||(r.panelStates.modelTrainingDetails=o),v(o)}),l(17,"mat-expansion-panel-header")(18,"mat-panel-title",23),g(19," Model training details "),c()(),u(20,ar,3,3,"ng-container",13),E(21,"hasKeys"),u(22,sr,2,0,"ng-template",null,3,ne),c(),l(24,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.parameters,o)||(r.panelStates.parameters=o),v(o)}),l(25,"mat-expansion-panel-header")(26,"mat-panel-title",23),g(27," Parameters "),c()(),u(28,dr,2,1,"ng-container",13),E(29,"keyvalue"),u(30,pr,2,0,"ng-template",null,4,ne),c(),l(32,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.accuracy,o)||(r.panelStates.accuracy=o),v(o)}),l(33,"mat-expansion-panel-header")(34,"mat-panel-title",23),g(35," Last Accuracy Test Run "),c()(),u(36,mr,3,2,"ng-container",13),E(37,"keyvalue"),u(38,hr,2,0,"ng-template",null,5,ne),c()(),w()}if(n&2){let e=$(15),t=$(23),o=$(31),r=$(39),a=h(2);s(8),Ce("expanded",a.panelStates.statistics),s(4),d("ngIf",M(13,12,a.summarizedRecord==null?null:a.summarizedRecord.statistics))("ngIfElse",e),s(4),Ce("expanded",a.panelStates.modelTrainingDetails),s(4),d("ngIf",M(21,14,a.summarizedRecord==null?null:a.summarizedRecord.modelTrainingDetails))("ngIfElse",t),s(4),Ce("expanded",a.panelStates.parameters),s(4),d("ngIf",M(29,16,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",o),s(4),Ce("expanded",a.panelStates.accuracy),s(4),d("ngIf",M(37,18,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",r)}}function ur(n,i){if(n&1&&u(0,gr,40,20,"ng-container",13),n&2){let e=h(),t=$(14);d("ngIf",!!e.summarizedRecord)("ngIfElse",t)}}function fr(n,i){n&1&&f(0,"ms-empty-state",37)}var ae,ke=(ae=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,o,r,a){this.drawerRef=i,this.drawerConfig=e,this.fb=t,this.recordsFacadeService=o,this.recordsDataService=r,this.customAPILoadingService=a,this.panelStates={statistics:!0,parameters:!0,accuracy:!0,modelTrainingDetails:!0},this.form=new st({}),this.algorithmTypeLabel="",this.files=[],this.isSummarizedRecordLoading$=this.customAPILoadingService.getLoadingObservableForKey(xn.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 G.ADD:{this.loadData(),this.configureAddTypeActions();break}case G.EDIT:case G.VIEW:{this.configureEditOrViewTypeActions();break}}}getAlgorithmTypeString(){switch(this.recordsDataService.algorithmType){case B.PRUNING:return"pruning";case B.QUANTIZATION:return"quantization";case B.MACHINE_UNLEARNING:return"machine unlearning";default:return"specified"}}initChartDisplaySettings(){let i=0;switch(this.recordsDataService.algorithmType){case B.PRUNING:{i=100;break}case B.QUANTIZATION:{i=79;break}case B.MACHINE_UNLEARNING:{i=36;break}default:break}this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisTickInterval:20,chartDataStructure:xt.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(ii(300),z(this)).subscribe(i=>{if(Le(i))return;let{backgroundColor:e,borderColor:t}=i;this.testingAccuracyChartDisplaySettings=We(Ee({},this.testingAccuracyChartDisplaySettings),{customChartColors:{datasetColors:[{backgroundColor:e,borderColor:t}]}}),this.lastRunAccuracyTestingChartData=[...this.lastRunAccuracyTestingChartData]})}configureEditOrViewTypeActions(){let{recordName:i,recordFilename:e,record:t,chartColors:o}=this.drawerConfig.data;this.drawerConfig.actionType===G.VIEW?this.form.disable():this.drawerConfig.actionType===G.EDIT&&this.selectRunFormControl.disable(),this.files=[{name:e,disabled:!0}],this.form.patchValue({selectRun:e,runName:i,chart:{borderColor:o.borderColor,backgroundColor:o.backgroundColor}}),this.summarizedRecord=t,this.lastRunAccuracyTestingChartData=this.configureChartDataset(t),this.testingAccuracyChartDisplaySettings=We(Ee({},this.testingAccuracyChartDisplaySettings),{hasCustomDatasetsLabels:!0,customDatasetsLabels:[i],customChartColors:{datasetColors:[{backgroundColor:o.backgroundColor||"rgba(241, 196, 15, 0.2)",borderColor:o.borderColor||"#f1c40f"}]}})}configureAddTypeActions(){this.listenToSelectRunFormValueChanges(),this.listenToSummarizedRecordChanges()}listenToSelectRunFormValueChanges(){this.selectRunFormControl.valueChanges.pipe(z(this),Me(i=>!ut(i))).subscribe(i=>{this.runNameFormControl.reset(),this.recordsFacadeService.dispatch(Yt.getRunRecordSummarizedData({algorithmType:this.recordsDataService.algorithmType,filename:i}))})}listenToSummarizedRecordChanges(){this.recordsFacadeService.summarizedRecord$.pipe(z(this),Ft(1)).subscribe(i=>{this.summarizedRecord=i,this.lastRunAccuracyTestingChartData=this.configureChartDataset(i);let e=this.summarizedRecord?.statistics.algorithm_key,t=this.summarizedRecord?.parameters.arch;!ut(e)&&!ut(t)&&this.runNameFormControl.setValue(`${e}_${t}`),this.savePanelStates(),this.restorePanelStates()})}configureChartDataset(i){return[{datasetIndex:0,values:i.lastRunTestingAccuracyData||[]}]}loadData(){this.recordsFacadeService.dispatch(Yt.getRunRecordsFilenames({algorithmType:this.recordsDataService.algorithmType})),this.recordsFacadeService.filenames$.pipe(Ft(1),pe(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,Te.required],runName:[null,Te.required],chart:this.fb.group({borderColor:[i.borderColor,Te.required],backgroundColor:[i.backgroundColor,Te.required]})})}getDefaultChartColors(){let i=Math.max(this.recordsDataService.records.length,0),e=_n[vt.YELLOW].datasetColors[i];return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}}save(i){if(i!==ye.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])})}},ae.\u0275fac=function(e){return new(e||ae)(m(fn),m(un),m(dt),m(Dt),m(Y),m(bn))},ae.\u0275cmp=A({type:ae,selectors:[["ms-run-drawer-actions"]],viewQuery:function(e,t){if(e&1&&q(re,5),e&2){let o;H(o=L())&&(t.panels=o)}},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 o=D();l(0,"ms-drawer",6),_("actionEvent",function(a){return C(o),v(t.save(a))}),l(1,"form",7)(2,"div",8)(3,"mat-label"),g(4,"Select run record"),c(),l(5,"mat-form-field",9)(6,"mat-select",10),u(7,Yo,2,1,"mat-option",11)(8,Wo,2,1,"ng-container",12),c()()(),u(9,Uo,3,0,"div",13),E(10,"async"),u(11,ur,1,2,"ng-template",null,0,ne),c()(),u(13,fr,1,0,"ng-template",null,1,ne)}if(e&2){let o=$(12);d("isSaveDisabled",t.form.invalid),s(),d("formGroup",t.form),s(6),d("ngIf",t.files.length===0),s(),d("ngIf",t.files.length>0),s(),d("ngIf",M(10,6,t.isSummarizedRecordLoading$))("ngIfElse",o)}},dependencies:[ee,oe,vi,xi,bi,_t,Ge,Ct,Bn,re,Fe,Ye,lt,ki,we,Be,ct,Ve,mt,pt,ft,rt,at,Ui,zi,zn,Oe,wi,yi,vn,bt,Cn,Ln],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),ae);ke=de([be()],ke);function Cr(n,i){if(n&1){let e=D();l(0,"mat-card",3)(1,"div",4)(2,"div",5),g(3),c(),l(4,"div",6)(5,"button",7),_("click",function(){let o=C(e).$implicit,r=h(2);return v(r.viewRecord(o))}),f(6,"mat-icon",8),c(),l(7,"button",7),_("click",function(){let o=C(e),r=o.$implicit,a=o.index,p=h(2);return v(p.editRecord(a,r))}),f(8,"mat-icon",9),c(),l(9,"button",10),_("click",function(){let o=C(e).index,r=h(2);return v(r.removeRecord(o))}),l(10,"mat-icon",11),g(11,"delete"),c()()()()()}if(n&2){let e=i.$implicit;s(3),k(e.recordName)}}function vr(n,i){if(n&1&&(b(0),u(1,Cr,12,1,"mat-card",2),w()),n&2){let e=i.ngIf;s(),d("ngForOf",e)}}var Xn=(()=>{let i=class i{constructor(t,o){this.recordsDataService=t,this.drawerService=o}removeRecord(t){this.recordsDataService.removeRecord(t)}viewRecord(t){this.drawerService.open(ke,{title:"View Run",showSaveButton:!1,showCloseButton:!0,closeButtonLabel:"Close",actionType:G.VIEW,data:t})}editRecord(t,o){this.drawerService.open(ke,{title:"Edit Run",saveButtonLabel:"Update",showCloseButton:!0,closeButtonLabel:"Close",actionType:G.EDIT,data:o}).afterClosed().pipe(pe(1)).subscribe(a=>{let{status:p}=a;if(p===ye.DISMISS||p===ye.CLOSE)return;let{result:x}=a;Le(x)||this.recordsDataService.updateRecord(t,x)})}};i.\u0275fac=function(o){return new(o||i)(m(Y),m(je))},i.\u0275cmp=A({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(o,r){o&1&&(l(0,"div",0),u(1,vr,2,1,"ng-container",1),E(2,"async"),c()),o&2&&(s(),d("ngIf",M(2,1,r.recordsDataService.records$)))},dependencies:[ee,oe,Mn,He,qi,Vi,Oe],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 se,Et=(se=class{constructor(i,e){this.recordsDataService=i,this.chartToolsGlobalSignalsService=e,this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisMaximumValue:100,yAxisTickInterval:20,chartDataStructure:xt.SINGLE_PHASE_X_AXIS,datasetColorSettingsKey:vt.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(z(this)).subscribe(i=>{Gt(i)||(this.lastRunsAccuracyTestingChartData=this.configureChartDatasets(i),this.testingAccuracyChartDisplaySettings=We(Ee({},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(z(this)).subscribe(i=>{this.enableTooltips=i}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(z(this)).subscribe(i=>{this.enableZoom=i})}configureChartDatasets(i){let e=[];return i.forEach((t,o)=>{let{record:r}=t;e.push({datasetIndex:o,values:r.lastRunTestingAccuracyData||[]})}),e}toggleTooltip(i){this.chartToolsGlobalSignalsService.toggleTooltips=i.checked}toggleZoom(i){this.chartToolsGlobalSignalsService.toggleZoom=i.checked}},se.\u0275fac=function(e){return new(e||se)(m(Y),m(ze))},se.\u0275cmp=A({type:se,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),g(3," Last Accuracy Test Run "),c()(),l(4,"div",2)(5,"div")(6,"mat-slide-toggle",3),xe("ngModelChange",function(r){return ve(t.enableTooltips,r)||(t.enableTooltips=r),r}),_("change",function(r){return t.toggleTooltip(r)}),g(7," Enable tooltips "),c()(),l(8,"div",4)(9,"mat-slide-toggle",5),xe("ngModelChange",function(r){return ve(t.enableZoom,r)||(t.enableZoom=r),r}),_("change",function(r){return t.toggleZoom(r)}),g(10," Enable zoom "),c(),l(11,"div",6),f(12,"mat-icon",7),c()()(),f(13,"ms-line-chart",8),c()),e&2&&(s(6),Ce("ngModel",t.enableTooltips),s(3),Ce("ngModel",t.enableZoom),s(4),d("data",t.lastRunsAccuracyTestingChartData)("settings",t.testingAccuracyChartDisplaySettings))},dependencies:[Ge,re,Fe,Ye,we,Ii,He,en]}),se);Et=de([be()],Et);var wr=new he("MAT_SORT_DEFAULT_OPTIONS"),Wn=(()=>{let i=class i{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new ei(1),this.sortables=new Map,this._stateChanges=new Ae,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new S,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let o=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=yr(t.start||this.start,o),a=r.indexOf(this.direction)+1;return a>=r.length&&(a=0),r[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};i.\u0275fac=function(o){return new(o||i)(m(wr,8))},i.\u0275dir=F({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",J],disabled:[2,"matSortDisabled","disabled",J]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ie,ue]});let n=i;return n})();function yr(n,i){let e=["asc","desc"];return n=="desc"&&e.reverse(),i||e.push(""),e}var zs=Ti.ENTERING+" "+Mi.STANDARD_CURVE;function Sr(n,i){n&1&&(l(0,"th",10),g(1,"Record Name"),c())}function Dr(n,i){if(n&1&&(l(0,"td",11),g(1),c()),n&2){let e=i.$implicit;s(),k(e.recordName)}}function Er(n,i){if(n&1&&(l(0,"th",10),g(1),E(2,"parametersLabel"),c()),n&2){let e=h().$implicit;s(),T(" ",M(2,1,e)," ")}}function Ar(n,i){if(n&1&&(l(0,"td",11),g(1),E(2,"emptyTableField"),c()),n&2){let e=i.$implicit,t=h().$implicit;s(),T(" ",M(2,1,e[t])," ")}}function Mr(n,i){if(n&1&&(b(0,12),u(1,Er,3,3,"th",5)(2,Ar,3,3,"td",6),w()),n&2){let e=i.$implicit;d("matColumnDef",e)}}function Tr(n,i){n&1&&f(0,"tr",13)}function Pr(n,i){n&1&&f(0,"tr",14)}var le,At=(le=class{constructor(i){this.recordsDataService=i,this.dataSource=new gn,this.displayedColumns=[]}ngOnInit(){this.recordsDataService.records$.pipe(z(this)).subscribe(i=>{this.updateDisplayedColumns(i),this.updateDataSource(i)})}ngAfterViewInit(){Le(this.sort)||setTimeout(()=>{this.dataSource.sort=this.sort},1200)}updateDisplayedColumns(i){let e=new Set;i.forEach(t=>{Object.keys(t.record.parameters).forEach(o=>{o!=="save_dir"&&o!=="data"&&e.add(o)})}),this.displayedColumns=["recordName",...Array.from(e)]}updateDataSource(i){let e=i.map(t=>{let o=t.record.parameters;return Ee({recordName:t.recordName},o)});this.dataSource.data=e}},le.\u0275fac=function(e){return new(e||le)(m(Y))},le.\u0275cmp=A({type:le,selectors:[["ms-algorithm-comparison-table"]],viewQuery:function(e,t){if(e&1&&q(Wn,5),e&2){let o;H(o=L())&&(t.sort=o.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),g(3," Parameters "),c()(),l(4,"div",2)(5,"table",3),b(6,4),u(7,Sr,2,0,"th",5)(8,Dr,2,1,"td",6),w(),u(9,Mr,3,1,"ng-container",7)(10,Tr,1,0,"tr",8)(11,Pr,1,0,"tr",9),c()()()),e&2&&(s(5),d("dataSource",t.dataSource),s(4),d("ngForOf",t.displayedColumns.slice(1)),s(),d("matHeaderRowDef",t.displayedColumns),s(),d("matRowDefColumns",t.displayedColumns))},dependencies:[ee,re,Fe,Ye,nn,rn,cn,an,on,dn,sn,ln,pn,mn,bt,Hn],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}"]}),le);At=de([be()],At);function kr(n,i){if(n&1&&(l(0,"mat-option",13),g(1),c()),n&2){let e=i.$implicit;d("value",e.key),s(),T(" ",e.value," ")}}function Ir(n,i){n&1&&(b(0),f(1,"ms-algorithm-comparison-list"),l(2,"div",8),f(3,"mat-divider"),c(),f(4,"ms-algorithm-comparison-table"),l(5,"div",8),f(6,"mat-divider"),c(),f(7,"ms-algorithm-comparison-chart"),w())}function Or(n,i){n&1&&(l(0,"div",14),f(1,"ms-empty-state",15),c())}var ce,Mt=(ce=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 st({}),this.algorithmTypesOptions=[{key:B.QUANTIZATION,value:"Quantization"},{key:B.PRUNING,value:"Pruning"},{key:B.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}openAddRunDrawer(){this.drawerService.open(ke,{title:"Add Run",saveButtonLabel:"Add",showCloseButton:!0,closeButtonLabel:"Close",actionType:G.ADD}).afterClosed().pipe(pe(1)).subscribe(e=>{let{status:t}=e;if(t===ye.DISMISS||t===ye.CLOSE)return;let{result:o}=e;this.recordsDataService.addRecord(o)})}ngOnInit(){this.initForm(),this.listenToAlgorithmTypeChanges()}initForm(){this.form=this.fb.group({[this.ALGORITHM_TYPE_CONTROL_NAME]:[this.recordsDataService.algorithmType,Te.required]})}listenToAlgorithmTypeChanges(){this.algorithmTypeFormControl.valueChanges.pipe(z(this)).subscribe(i=>{this.recordsDataService.algorithmType=i})}trackByAlgorithmType(i,e){return e.key}},ce.\u0275fac=function(e){return new(e||ce)(m(je),m(Y),m(dt))},ce.\u0275cmp=A({type:ce,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 o=D();l(0,"div",1)(1,"p",2),g(2,"Algorithm Comparison for"),c(),l(3,"form",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-select",6),u(7,kr,2,2,"mat-option",7),c()()()()(),l(8,"div",8),f(9,"mat-divider"),c(),l(10,"button",9),_("click",function(){return C(o),v(t.openAddRunDrawer())}),f(11,"mat-icon",10),g(12,` Add run -`),c(),l(13,"div",11),f(14,"mat-divider"),c(),u(15,Ir,8,0,"ng-container",12),E(16,"async"),u(17,Or,2,0,"ng-template",null,0,ne)}if(e&2){let o=$(18);s(3),d("formGroup",t.form),s(3),d("formControlName",t.ALGORITHM_TYPE_CONTROL_NAME),s(),d("ngForOf",t.algorithmTypesOptions)("ngForTrackBy",t.trackByAlgorithmType),s(8),d("ngIf",M(16,6,t.recordsDataService.records$).length>0)("ngIfElse",o)}},dependencies:[ee,oe,Ct,lt,we,Be,ct,Ve,mt,ft,rt,at,He,Bi,Xn,Et,At,Oe],styles:[".no-data-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),ce);Mt=de([be()],Mt);var Rr=[{path:"",component:Mt}],Un=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({imports:[Ht.forChild(Rr),Ht]});let n=i;return n})();var nc=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({providers:[je,Dt,Y,ze],imports:[ot,Un,_t,An,Ge,Vn,Ri,Ni,Li,Ji,Pi,$i,ji,Zi,hn,tn,Hi,Gi]});let n=i;return n})();export{nc as AlgorithmComparisonModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-D2Y5ESR4.js b/frontend/server/modelsmith-build/browser/chunk-HHI42NCD.js similarity index 67% rename from frontend/server/modelsmith-build/browser/chunk-D2Y5ESR4.js rename to frontend/server/modelsmith-build/browser/chunk-HHI42NCD.js index 67235d8f..709bf0ae 100644 --- a/frontend/server/modelsmith-build/browser/chunk-D2Y5ESR4.js +++ b/frontend/server/modelsmith-build/browser/chunk-HHI42NCD.js @@ -1 +1 @@ -import{Kc as e,Lc as r}from"./chunk-NPZHNGVX.js";var o=r({source:"[Core -> Parameter]",events:{"Load Parameters":e(),"Load Parameters Success":e(),"Load Parameters Failure":e()}});export{o as a}; +import{Hc as e,Ic as r}from"./chunk-I5FNXPEQ.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-HK67ULYP.js b/frontend/server/modelsmith-build/browser/chunk-HK67ULYP.js new file mode 100644 index 00000000..e8141051 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-HK67ULYP.js @@ -0,0 +1 @@ +import{a as at,b as ct}from"./chunk-COKZMNNS.js";import{b as yt,g as wt,h as De,i as _t,j as re,k as Ce,o as Dt,q as Ct,s as vt}from"./chunk-LDDHJMMZ.js";import{$ as ue,Ab as C,Bb as x,Ca as Je,D as Fe,Dd as ut,Ea as _,Fa as c,Ga as E,Hd as Ae,Ib as Ne,Ka as te,Lb as nt,Ma as et,Mb as X,Na as q,Nb as O,Oa as f,Pa as L,Qa as P,Qb as ot,Sa as ie,T as le,Ta as ye,Ua as we,Wb as rt,Ya as M,_ as de,_b as st,a as Ie,aa as $,ab as m,bb as p,ca as ee,cb as tt,da as B,ed as lt,fb as g,gb as _e,ha as b,ia as he,id as dt,j as U,ja as h,jb as ne,k as Q,lb as k,mb as Z,nb as S,oa as fe,p as Ye,pa as me,pb as T,qa as pe,rb as I,re as ht,s as W,sb as F,ta as v,tb as Oe,te as ft,u as Xe,ua as Ge,ub as Y,ue as mt,va as K,vb as it,wb as oe,we as pt,x as ae,xa as j,xe as gt,y as ce,ya as ge}from"./chunk-I5FNXPEQ.js";var At=[[["caption"]],[["colgroup"],["col"]],"*"],jt=["caption","colgroup, col","*"];function Pt(o,e){o&1&&S(0,2)}function Bt(o,e){o&1&&(m(0,"thead",0),g(1,1),p(),m(2,"tbody",0),g(3,2)(4,3),p(),m(5,"tfoot",0),g(6,4),p())}function Lt(o,e){o&1&&g(0,1)(1,2)(2,3)(3,4)}var R=new $("CDK_TABLE");var xe=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let o=e;return o})(),Ee=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let o=e;return o})(),kt=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let o=e;return o})(),G=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(i){return new(i||e)(c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,n,a){if(i&1&&(T(a,xe,5),T(a,Ee,5),T(a,kt,5)),i&2){let s;I(s=F())&&(n.cell=s.first),I(s=F())&&(n.headerCell=s.first),I(s=F())&&(n.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",O],stickyEnd:[2,"stickyEnd","stickyEnd",O]},standalone:!0,features:[C([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),L]});let o=e;return o})(),Re=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},St=(()=>{let e=class e extends Re{constructor(t,i){super(t,i)}};e.\u0275fac=function(i){return new(i||e)(c(G),c(j))},e.\u0275dir=h({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[f]});let o=e;return o})();var xt=(()=>{let e=class e extends Re{constructor(t,i){super(t,i);let n=t._table?._getCellRole();n&&i.nativeElement.setAttribute("role",n)}};e.\u0275fac=function(i){return new(i||e)(c(G),c(j))},e.\u0275dir=h({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[f]});let o=e;return o})(),be=class{constructor(){this.tasks=[],this.endTasks=[]}},ke=new $("_COALESCED_STYLE_SCHEDULER"),Be=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=B(te)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new be,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new be;for(let i of t.tasks)i();for(let i of t.endTasks)i()}this._currentSchedule=null})))}};e.\u0275fac=function(i){return new(i||e)(ee(te))},e.\u0275prov=de({token:e,factory:e.\u0275fac});let o=e;return o})();var Le=(()=>{let e=class e{constructor(t,i){this.template=t,this._differs=i}ngOnChanges(t){if(!this._columnsDiffer){let i=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof se?t.headerCell.template:this instanceof He?t.footerCell.template:t.cell.template}};e.\u0275fac=function(i){return new(i||e)(c(E),c(X))},e.\u0275dir=h({type:e,features:[fe]});let o=e;return o})(),se=(()=>{let e=class e extends Le{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,n){super(t,i),this._table=n,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(X),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",O]},standalone:!0,features:[L,f,fe]});let o=e;return o})(),He=(()=>{let e=class e extends Le{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,n){super(t,i),this._table=n,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(X),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",O]},standalone:!0,features:[L,f,fe]});let o=e;return o})(),Me=(()=>{let e=class e extends Le{constructor(t,i,n){super(t,i),this._table=n}};e.\u0275fac=function(i){return new(i||e)(c(E),c(X),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[f]});let o=e;return o})(),H=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(i){return new(i||e)(c(q))},e.\u0275dir=h({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let o=e;return o})(),Ve=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var ze=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})(),Et=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let o=e;return o})(),Rt=["top","bottom","left","right"],je=class{constructor(e,r,t,i,n=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=i,this._isBrowser=n,this._needsPositionStickyOnElement=a,this._positionListener=s,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 t=[];for(let i of e)if(i.nodeType===i.ELEMENT_NODE){t.push(i);for(let n=0;n{for(let i of t)this._removeStickyStyle(i,r)})}updateStickyColumns(e,r,t,i=!0){if(!e.length||!this._isBrowser||!(r.some(n=>n)||t.some(n=>n))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let n=e[0],a=n.children.length,s=this._getCellWidths(n,i),l=this._getStickyStartColumnPositions(s,r),d=this._getStickyEndColumnPositions(s,t),u=r.lastIndexOf(!0),w=t.indexOf(!0),y=this.direction==="rtl",A=y?"right":"left",qe=y?"left":"right";for(let J of e)for(let D=0;Dr[D]?J:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:w===-1?[]:s.slice(w).map((J,D)=>t[D+w]?J:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let i=t==="bottom"?e.slice().reverse():e,n=t==="bottom"?r.slice().reverse():r,a=[],s=[],l=[];for(let u=0,w=0;u{let t=e.querySelector("tfoot");t&&(r.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let i of r)e.style[i]="",e.classList.remove(this._borderCellCss[i]);Rt.some(i=>r.indexOf(i)===-1&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}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},t=0;for(let i of Rt)e.style[i]&&(t+=r[i]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=e.children;for(let n=0;n0;n--)r[n]&&(t[n]=i,i+=e[n]);return t}};var Se=new $("CDK_SPL");var Ue=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=B(R);n._rowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let o=e;return o})(),Qe=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=B(R);n._headerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let o=e;return o})(),We=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=B(R);n._footerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let o=e;return o})(),$e=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=B(R);n._noDataRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let o=e;return o})();var Ke=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),i=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,i,n,a,s,l,d,u,w,y,A,qe){this._differs=t,this._changeDetectorRef=i,this._elementRef=n,this._dir=s,this._platform=d,this._viewRepeater=u,this._coalescedStyleScheduler=w,this._viewportRuler=y,this._stickyPositioningListener=A,this._onDestroy=new U,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 ge,this.viewChange=new Q({start:0,end:Number.MAX_VALUE}),this._injector=B(K),a||n.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!d.isBrowser,this._isNativeHtmlTable=n.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(le(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(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),De(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,i,(n,a,s)=>this._getEmbeddedViewArgs(n.item,s),n=>n.item.data,n=>{n.operation===_t.INSERTED&&n.context&&this._renderCellTemplateForItem(n.record.item.rowDef,n.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(n=>{let a=i.get(n.currentIndex);a.context.$implicit=n.item.data}),this._updateNoDataRow(),et(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let n=bt(this._headerRowOutlet,"thead");n&&(n.style.display=t.length?"":"none")}let i=this._headerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let n=bt(this._footerRowOutlet,"tfoot");n&&(n.style.display=t.length?"":"none")}let i=this._footerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...i,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let t=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n{let l=n&&n.has(s)?n.get(s):[];if(l.length){let d=l.shift();return d.dataIndex=i,d}else return{data:t,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ve(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=ve(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ve(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ve(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,l)=>s||!!l.getColumnsDiff(),i=this._rowDefs.reduce(t,!1);i&&this._forceRenderDataRows();let n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),i||n||a}_switchDataSource(t){this._data=[],De(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;De(this.dataSource)?t=this.dataSource.connect(this):Xe(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=W(this.dataSource)),this._renderChangeSubscription=t.pipe(le(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,i)=>this._renderRow(this._headerRowOutlet,t,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,i)=>this._renderRow(this._footerRowOutlet,t,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,i){let n=Array.from(i.columns||[]).map(l=>{let d=this._columnDefsByName.get(l);return d}),a=n.map(l=>l.sticky),s=n.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let i=[];for(let n=0;n!a.when||a.when(i,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(i,t))||this._defaultRowDef;a&&n.push(a)}return n.length,n}_getEmbeddedViewArgs(t,i){let n=t.rowDef,a={$implicit:t.data};return{templateRef:n.template,context:a,index:i}}_renderRow(t,i,n,a={}){let s=t.viewContainer.createEmbeddedView(i.template,a,n);return this._renderCellTemplateForItem(i,a),s}_renderCellTemplateForItem(t,i){for(let n of this._getCellTemplates(t))H.mostRecentCellOutlet&&H.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let i=0,n=t.length;i{let n=this._columnDefsByName.get(i);return t.extractCellTemplate(n)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(i,n)=>i||n.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new je(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:W()).pipe(le(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let n=this._noDataRowOutlet.viewContainer;if(i){let a=n.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else n.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)(c(X),c(nt),c(j),Ge("role"),c(ut,8),c(ot),c(dt),c(re),c(ke),c(Dt),c(Se,12),c(te,8))},e.\u0275cmp=b({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,n,a){if(i&1&&(T(a,Et,5),T(a,G,5),T(a,Me,5),T(a,se,5),T(a,He,5)),i&2){let s;I(s=F())&&(n._noDataRow=s.first),I(s=F())&&(n._contentColumnDefs=s),I(s=F())&&(n._contentRowDefs=s),I(s=F())&&(n._contentHeaderRowDefs=s),I(s=F())&&(n._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,n){i&2&&we("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",O],fixedLayout:[2,"fixedLayout","fixedLayout",O]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[C([{provide:R,useExisting:e},{provide:re,useClass:Ce},{provide:ke,useClass:Be},{provide:Se,useValue:null}]),L,x],ngContentSelectors:jt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(Z(At),S(0),S(1,1),P(2,Pt,1,0)(3,Bt,7,0)(4,Lt,4,0)),i&2&&(_(2),M(n._isServer?2:-1),_(),M(n._isNativeHtmlTable?3:4))},dependencies:[Qe,Ue,$e,We],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let o=e;return o})();function ve(o,e){return o.concat(Array.from(e))}function bt(o,e){let r=e.toUpperCase(),t=o.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===r)return t;if(i==="TABLE")break;t=t.parentNode}return null}var Mt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=he({type:e}),e.\u0275inj=ue({imports:[Ct]});let o=e;return o})();var Ht=[[["caption"]],[["colgroup"],["col"]],"*"],Vt=["caption","colgroup, col","*"];function zt(o,e){o&1&&S(0,2)}function Ut(o,e){o&1&&(m(0,"thead",0),g(1,1),p(),m(2,"tbody",2),g(3,3)(4,4),p(),m(5,"tfoot",0),g(6,5),p())}function Qt(o,e){o&1&&g(0,1)(1,3)(2,4)(3,5)}var Ui=(()=>{let e=class e extends Ke{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,n){i&2&&we("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[C([{provide:Ke,useExisting:e},{provide:R,useExisting:e},{provide:ke,useClass:Be},{provide:re,useClass:Ce},{provide:Se,useValue:null}]),f,x],ngContentSelectors:Vt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(Z(Ht),S(0),S(1,1),P(2,zt,1,0)(3,Ut,7,0)(4,Qt,4,0)),i&2&&(_(2),M(n._isServer?2:-1),_(),M(n._isNativeHtmlTable?3:4))},dependencies:[Qe,Ue,$e,We],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 o=e;return o})(),Qi=(()=>{let e=class e extends xe{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[C([{provide:xe,useExisting:e}]),f]});let o=e;return o})(),Wi=(()=>{let e=class e extends Ee{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[C([{provide:Ee,useExisting:e}]),f]});let o=e;return o})();var $i=(()=>{let e=class e extends G{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[C([{provide:G,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),f]});let o=e;return o})(),Ki=(()=>{let e=class e extends St{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({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:[f]});let o=e;return o})();var qi=(()=>{let e=class e extends xt{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[f]});let o=e;return o})();var Zi=(()=>{let e=class e extends se{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",O]},standalone:!0,features:[C([{provide:se,useExisting:e}]),L,f]});let o=e;return o})();var Yi=(()=>{let e=class e extends Me{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[C([{provide:Me,useExisting:e}]),f]});let o=e;return o})(),Xi=(()=>{let e=class e extends Ve{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({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:[C([{provide:Ve,useExisting:e}]),f,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var Gi=(()=>{let e=class e extends ze{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[C([{provide:ze,useExisting:e}]),f,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var Ji=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=he({type:e}),e.\u0275inj=ue({imports:[Ae,Mt,Ae]});let o=e;return o})(),Wt=9007199254740991,Tt=class extends wt{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 Q([]),this._filter=new Q(""),this._internalPageChanges=new U,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let i=r[t];if(lt(i)){let n=Number(i);return n{let i=t.active,n=t.direction;return!i||n==""?r:r.sort((a,s)=>{let l=this.sortingDataAccessor(a,i),d=this.sortingDataAccessor(s,i),u=typeof l,w=typeof d;u!==w&&(u==="number"&&(l+=""),w==="number"&&(d+=""));let y=0;return l!=null&&d!=null?l>d?y=1:l{let i=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),n=t.trim().toLowerCase();return i.indexOf(n)!=-1},this._data=new Q(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Fe(this._sort.sortChange,this._sort.initialized):W(null),r=this._paginator?Fe(this._paginator.page,this._internalPageChanges,this._paginator.initialized):W(null),t=this._data,i=ce([t,this._filter]).pipe(ae(([s])=>this._filterData(s))),n=ce([i,e]).pipe(ae(([s])=>this._orderData(s))),a=ce([n,r]).pipe(ae(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_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 t=Math.ceil(r.length/r.pageSize)-1||0,i=Math.min(r.pageIndex,t);i!==r.pageIndex&&(r.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var Te=new $("DRAWER_DATA");var V=function(o){return o.OPEN="open",o.DISMISS="dismiss",o.SAVE="save",o.CLOSE="close",o}(V||{});var z=class{constructor(e){this.overlayRef=e,this.afterClosedSubject=new U}backdropClick(){return this.overlayRef.backdropClick()}close(e){this.overlayRef.dispose(),this.afterClosedSubject.next(e),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var Kt=["*"];function qt(o,e){o&1&&g(0)}function Zt(o,e){if(o&1){let r=_e();m(0,"div",7)(1,"div",8),Y(2),p(),m(3,"div",9)(4,"button",10),ne("click",function(){me(r);let i=k();return pe(i.onDismiss())}),tt(5,"mat-icon",11),p()()()}if(o&2){let r=k();_(2),it(r.data.title)}}function Yt(o,e){o&1&&g(0)}function Xt(o,e){if(o&1){let r=_e();m(0,"button",15),ne("click",function(){me(r);let i=k(2);return pe(i.onClose())}),Y(1),p()}if(o&2){let r=k(2);ie("disabled",r.isDismissDisabled),_(),oe(" ",r.data.closeButtonLabel," ")}}function Gt(o,e){if(o&1){let r=_e();m(0,"button",16),ne("click",function(){me(r);let i=k(2);return pe(i.onSave())}),Y(1),p()}if(o&2){let r=k(2);ie("disabled",r.isSaveDisabled),_(),oe(" ",r.data.saveButtonLabel," ")}}function Jt(o,e){if(o&1&&(m(0,"div",12),P(1,Xt,2,2,"button",13)(2,Gt,2,2,"button",14),p()),o&2){let r=k();_(),M(r.data.showCloseButton?1:-1),_(),M(r.data.showSaveButton?2:-1)}}var N,It=(N=class{constructor(e,r){this.drawerRef=e,this.data=r,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new ge,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(V.CLOSE),this.drawerRef.close({status:V.CLOSE})}onSave(){this.actionEvent.emit(V.SAVE)}onDismiss(){this.actionEvent.emit(V.DISMISS),this.drawerRef.close({status:V.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.drawerRef.backdropClick().pipe(ct(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},N.\u0275fac=function(r){return new(r||N)(c(z),c(Te))},N.\u0275cmp=b({type:N,selectors:[["ms-drawer"]],hostBindings:function(r,t){r&1&&ne("keyup.esc",function(){return t.onEscKeyDown()},!1,Je)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[x],ngContentSelectors:Kt,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"],["mat-stroked-button","",3,"disabled"],["mat-flat-button","","color","primary",3,"disabled"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(r,t){if(r&1&&(Z(),m(0,"div",2)(1,"div",3),P(2,qt,1,0,"ng-container",4)(3,Zt,6,1,"ng-template",null,0,Ne),p(),m(5,"div",5),S(6),p(),m(7,"div",6),P(8,Yt,1,0,"ng-container",4)(9,Jt,3,2,"ng-template",null,1,Ne),p()()),r&2){let i=Oe(4),n=Oe(10);ye("width",t.data.width,"px"),_(2),ie("ngTemplateOutlet",t.headerTemplate||i),_(6),ie("ngTemplateOutlet",t.actionsTemplate||n)}},dependencies:[st,rt,mt,ht,ft,gt,pt],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}"]}),N);It=Ye([at()],It);var Mn=(()=>{let e=class e{constructor(t,i){this.overlay=t,this.injector=i}open(t,i){let n=this.overlay.position().global().right(),a=this.overlay.create(Ie({positionStrategy:n,hasBackdrop:!0,backdropClass:"drawer-backdrop",height:"100vh",width:768},i)),s=new z(a),l=K.create({parent:this.injector,providers:[{provide:z,useValue:s},{provide:Te,useValue:Ie({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:768},i)}]}),d=new yt(t,null,l);return a.attach(d),s}};e.\u0275fac=function(i){return new(i||e)(ee(vt),ee(K))},e.\u0275prov=de({token:e,factory:e.\u0275fac});let o=e;return o})();export{Ui as a,Qi as b,Wi as c,$i as d,Ki as e,qi as f,Zi as g,Yi as h,Xi as i,Gi as j,Ji as k,Tt as l,Te as m,V as n,z as o,It as p,Mn as q}; diff --git a/frontend/server/modelsmith-build/browser/chunk-2FJ2YO2M.js b/frontend/server/modelsmith-build/browser/chunk-I4357ONH.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-2FJ2YO2M.js rename to frontend/server/modelsmith-build/browser/chunk-I4357ONH.js index e3d96fce..80d02849 100644 --- a/frontend/server/modelsmith-build/browser/chunk-2FJ2YO2M.js +++ b/frontend/server/modelsmith-build/browser/chunk-I4357ONH.js @@ -1 +1 @@ -import{$ as c,Bb as p,Fa as s,Kd as i,Ua as l,aa as n,bc as f,ha as o,ia as m,mb as u,nb as g}from"./chunk-NPZHNGVX.js";var h=["*"];var v=new n("MAT_CARD_CONFIG"),E=(()=>{let t=class t{constructor(r){this.appearance=r?.appearance||"raised"}};t.\u0275fac=function(a){return new(a||t)(s(v,8))},t.\u0275cmp=o({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(a,d){a&2&&l("mat-mdc-card-outlined",d.appearance==="outlined")("mdc-card--outlined",d.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[p],ngContentSelectors:h,decls:1,vars:0,template:function(a,d){a&1&&(u(),g(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 e=t;return e})();var L=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=m({type:t}),t.\u0275inj=c({imports:[i,f,i]});let e=t;return e})();export{E as a,L as b}; +import{$ as c,Bb as p,Fa as s,Hd as i,Ua as l,_b as f,aa as n,ha as o,ia as m,mb as u,nb as g}from"./chunk-I5FNXPEQ.js";var h=["*"];var v=new n("MAT_CARD_CONFIG"),E=(()=>{let t=class t{constructor(r){this.appearance=r?.appearance||"raised"}};t.\u0275fac=function(a){return new(a||t)(s(v,8))},t.\u0275cmp=o({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(a,d){a&2&&l("mat-mdc-card-outlined",d.appearance==="outlined")("mdc-card--outlined",d.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[p],ngContentSelectors:h,decls:1,vars:0,template:function(a,d){a&1&&(u(),g(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 e=t;return e})();var L=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=m({type:t}),t.\u0275inj=c({imports:[i,f,i]});let e=t;return e})();export{E as a,L as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NPZHNGVX.js b/frontend/server/modelsmith-build/browser/chunk-I5FNXPEQ.js similarity index 61% rename from frontend/server/modelsmith-build/browser/chunk-NPZHNGVX.js rename to frontend/server/modelsmith-build/browser/chunk-I5FNXPEQ.js index 25e4eab9..9400dcf7 100644 --- a/frontend/server/modelsmith-build/browser/chunk-NPZHNGVX.js +++ b/frontend/server/modelsmith-build/browser/chunk-I5FNXPEQ.js @@ -1,11 +1,11 @@ -var W0=Object.create;var ml=Object.defineProperty,q0=Object.defineProperties,Z0=Object.getOwnPropertyDescriptor,Y0=Object.getOwnPropertyDescriptors,K0=Object.getOwnPropertyNames,Vs=Object.getOwnPropertySymbols,Q0=Object.getPrototypeOf,gl=Object.prototype.hasOwnProperty,Vm=Object.prototype.propertyIsEnumerable;var jm=(t,e,r)=>e in t?ml(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||={})gl.call(e,r)&&jm(t,r,e[r]);if(Vs)for(var r of Vs(e))Vm.call(e,r)&&jm(t,r,e[r]);return t},O=(t,e)=>q0(t,Y0(e));var Um=(t,e)=>{var r={};for(var n in t)gl.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Vs)for(var n of Vs(t))e.indexOf(n)<0&&Vm.call(t,n)&&(r[n]=t[n]);return r};var SL=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var X0=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of K0(e))!gl.call(t,i)&&i!==r&&ml(t,i,{get:()=>e[i],enumerable:!(n=Z0(e,i))||n.enumerable});return t};var TL=(t,e,r)=>(r=t!=null?W0(Q0(t)):{},X0(e||!t||!t.__esModule?ml(r,"default",{value:t,enumerable:!0}):r,t));var Vr=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function Bm(t,e){return Object.is(t,e)}var me=null,Xi=!1,Us=1,Bt=Symbol("SIGNAL");function $(t){let e=me;return me=t,e}function $m(){return me}function J0(){return Xi}var Ur={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 Dl(t){if(Xi)throw new Error("");if(me===null)return;me.consumerOnSignalRead(t);let e=me.nextProducerIndex++;if(Ws(me),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Hs(t){Ws(t);for(let e=0;e0}function Ws(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Zm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ym(t){return t.producerNode!==void 0}function Km(t){let e=Object.create(tI);e.computation=t;let r=()=>{if(Hm(e),Dl(e),e.value===Bs)throw e.error;return e.value};return r[Bt]=e,r}var vl=Symbol("UNSET"),bl=Symbol("COMPUTING"),Bs=Symbol("ERRORED"),tI=O(b({},Ur),{value:vl,dirty:!0,error:null,equal:Bm,producerMustRecompute(t){return t.value===vl||t.value===bl},producerRecomputeValue(t){if(t.value===bl)throw new Error("Detected cycle in computations.");let e=t.value;t.value=bl;let r=eo(t),n;try{n=t.computation()}catch(i){n=Bs,t.error=i}finally{$s(t,r)}if(e!==vl&&e!==Bs&&n!==Bs&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function nI(){throw new Error}var Qm=nI;function Xm(){Qm()}function Jm(t){Qm=t}var rI=null;function eg(t){let e=Object.create(ng);e.value=t;let r=()=>(Dl(e),e.value);return r[Bt]=e,r}function _l(t,e){Gm()||Xm(),t.equal(t.value,e)||(t.value=e,iI(t))}function tg(t,e){Gm()||Xm(),_l(t,e(t.value))}var ng=O(b({},Ur),{equal:Bm,value:void 0});function iI(t){t.version++,eI(),zm(t),rI?.()}function rg(t,e,r){let n=Object.create(oI);r&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let i=c=>{n.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(zs(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=yl)}let a=()=>{if(n.fn===null)return;if(J0())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!Hs(n))return;n.hasRun=!0;let c=eo(n);try{n.cleanupFn(),n.cleanupFn=yl,n.fn(i)}finally{$s(n,c)}};return n.ref={notify:()=>Wm(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Bt]:n},n.ref}var yl=()=>{},oI=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:yl});function T(t){return typeof t=="function"}function Fn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qs=Fn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +var z0=Object.create;var pl=Object.defineProperty,G0=Object.defineProperties,W0=Object.getOwnPropertyDescriptor,q0=Object.getOwnPropertyDescriptors,Z0=Object.getOwnPropertyNames,Vs=Object.getOwnPropertySymbols,Y0=Object.getPrototypeOf,ml=Object.prototype.hasOwnProperty,jm=Object.prototype.propertyIsEnumerable;var Lm=(t,e,r)=>e in t?pl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||={})ml.call(e,r)&&Lm(t,r,e[r]);if(Vs)for(var r of Vs(e))jm.call(e,r)&&Lm(t,r,e[r]);return t},O=(t,e)=>G0(t,q0(e));var Vm=(t,e)=>{var r={};for(var n in t)ml.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Vs)for(var n of Vs(t))e.indexOf(n)<0&&jm.call(t,n)&&(r[n]=t[n]);return r};var xL=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var K0=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Z0(e))!ml.call(t,i)&&i!==r&&pl(t,i,{get:()=>e[i],enumerable:!(n=W0(e,i))||n.enumerable});return t};var ML=(t,e,r)=>(r=t!=null?z0(Y0(t)):{},K0(e||!t||!t.__esModule?pl(r,"default",{value:t,enumerable:!0}):r,t));var Vr=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function Um(t,e){return Object.is(t,e)}var me=null,Xi=!1,Us=1,Ut=Symbol("SIGNAL");function $(t){let e=me;return me=t,e}function Bm(){return me}function Q0(){return Xi}var Ur={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 yl(t){if(Xi)throw new Error("");if(me===null)return;me.consumerOnSignalRead(t);let e=me.nextProducerIndex++;if(Ws(me),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Hs(t){Ws(t);for(let e=0;e0}function Ws(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function qm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Zm(t){return t.producerNode!==void 0}function Ym(t){let e=Object.create(J0);e.computation=t;let r=()=>{if($m(e),yl(e),e.value===Bs)throw e.error;return e.value};return r[Ut]=e,r}var gl=Symbol("UNSET"),vl=Symbol("COMPUTING"),Bs=Symbol("ERRORED"),J0=O(b({},Ur),{value:gl,dirty:!0,error:null,equal:Um,producerMustRecompute(t){return t.value===gl||t.value===vl},producerRecomputeValue(t){if(t.value===vl)throw new Error("Detected cycle in computations.");let e=t.value;t.value=vl;let r=eo(t),n;try{n=t.computation()}catch(i){n=Bs,t.error=i}finally{$s(t,r)}if(e!==gl&&e!==Bs&&n!==Bs&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function eI(){throw new Error}var Km=eI;function Qm(){Km()}function Xm(t){Km=t}var tI=null;function Jm(t){let e=Object.create(tg);e.value=t;let r=()=>(yl(e),e.value);return r[Ut]=e,r}function Dl(t,e){zm()||Qm(),t.equal(t.value,e)||(t.value=e,nI(t))}function eg(t,e){zm()||Qm(),Dl(t,e(t.value))}var tg=O(b({},Ur),{equal:Um,value:void 0});function nI(t){t.version++,X0(),Hm(t),tI?.()}function ng(t,e,r){let n=Object.create(rI);r&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let i=c=>{n.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(zs(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=bl)}let a=()=>{if(n.fn===null)return;if(Q0())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!Hs(n))return;n.hasRun=!0;let c=eo(n);try{n.cleanupFn(),n.cleanupFn=bl,n.fn(i)}finally{$s(n,c)}};return n.ref={notify:()=>Gm(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Ut]:n},n.ref}var bl=()=>{},rI=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:bl});function T(t){return typeof t=="function"}function On(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qs=On(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: ${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function ar(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ae=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:n}=this;if(T(n))try{n()}catch(o){e=o instanceof qs?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{ig(o)}catch(s){e=e??[],s instanceof qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new qs(e)}}add(e){var r;if(e&&e!==this)if(this.closed)ig(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)&&ar(r,e)}remove(e){let{_finalizers:r}=this;r&&ar(r,e),e instanceof t&&e._removeParent(this)}};ae.EMPTY=(()=>{let t=new ae;return t.closed=!0,t})();var wl=ae.EMPTY;function Zs(t){return t instanceof ae||t&&"closed"in t&&T(t.remove)&&T(t.add)&&T(t.unsubscribe)}function ig(t){T(t)?t():t.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Br={setTimeout(t,e,...r){let{delegate:n}=Br;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Br;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ys(t){Br.setTimeout(()=>{let{onUnhandledError:e}=St;if(e)e(t);else throw t})}function dn(){}var og=El("C",void 0,void 0);function sg(t){return El("E",void 0,t)}function ag(t){return El("N",t,void 0)}function El(t,e,r){return{kind:t,value:e,error:r}}var cr=null;function $r(t){if(St.useDeprecatedSynchronousErrorHandling){let e=!cr;if(e&&(cr={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=cr;if(cr=null,r)throw n}}else t()}function cg(t){St.useDeprecatedSynchronousErrorHandling&&cr&&(cr.errorThrown=!0,cr.error=t)}var ur=class extends ae{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Zs(e)&&e.add(this)):this.destination=cI}static create(e,r,n){return new Tt(e,r,n)}next(e){this.isStopped?Cl(ag(e),this):this._next(e)}error(e){this.isStopped?Cl(sg(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Cl(og,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()}}},sI=Function.prototype.bind;function Il(t,e){return sI.call(t,e)}var xl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Ks(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Ks(n)}else Ks(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Ks(r)}}},Tt=class extends ur{constructor(e,r,n){super();let i;if(T(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&St.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Il(e.next,o),error:e.error&&Il(e.error,o),complete:e.complete&&Il(e.complete,o)}):i=e}this.destination=new xl(i)}};function Ks(t){St.useDeprecatedSynchronousErrorHandling?cg(t):Ys(t)}function aI(t){throw t}function Cl(t,e){let{onStoppedNotification:r}=St;r&&Br.setTimeout(()=>r(t,e))}var cI={closed:!0,next:dn,error:aI,complete:dn};var Hr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ce(t){return t}function Ml(...t){return Sl(t)}function Sl(t){return t.length===0?Ce:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var N=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=lI(r)?r:new Tt(r,n,i);return $r(()=>{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(n){r.error(n)}}forEach(r,n){return n=ug(n),new n((i,o)=>{let s=new Tt({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Hr](){return this}pipe(...r){return Sl(r)(this)}toPromise(r){return r=ug(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function ug(t){var e;return(e=t??St.Promise)!==null&&e!==void 0?e:Promise}function uI(t){return t&&T(t.next)&&T(t.error)&&T(t.complete)}function lI(t){return t&&t instanceof ur||uI(t)&&Zs(t)}function Tl(t){return T(t?.lift)}function S(t){return e=>{if(Tl(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function M(t,e,r,n,i){return new to(t,e,r,n,i)}var to=class extends ur{constructor(e,r,n,i,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=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}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 zr(){return S((t,e)=>{let r=null;t._refCount++;let n=M(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Gr=class extends N{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Tl(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 ae;let r=this.getSubject();e.add(this.source.subscribe(M(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ae.EMPTY)}return e}refCount(){return zr()(this)}};var lg=Fn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class t extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Qs(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new lg}next(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){$r(()=>{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:n,isStopped:i,observers:o}=this;return n||i?wl:(this.currentObservers=null,o.push(r),new ae(()=>{this.currentObservers=null,ar(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new N;return r.source=this,r}}return t.create=(e,r)=>new Qs(e,r),t})(),Qs=class extends B{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.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,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:wl}};var de=class extends B{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:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var no={now(){return(no.delegate||Date).now()},delegate:void 0};var ro=class extends B{constructor(e=1/0,r=1/0,n=no){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,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:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;r||(n.push(e),!i&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let s=0;sdg(e)&&t()),e},clearImmediate(t){dg(t)}};var{setImmediate:fI,clearImmediate:hI}=fg,oo={setImmediate(...t){let{delegate:e}=oo;return(e?.setImmediate||fI)(...t)},clearImmediate(t){let{delegate:e}=oo;return(e?.clearImmediate||hI)(t)},delegate:void 0};var Js=class extends kn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,n=0){return n!==null&&n>0?super.requestAsyncId(e,r,n):(e.actions.push(this),e._scheduled||(e._scheduled=oo.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,n=0){var i;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,r,n);let{actions:o}=e;r!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==r&&(oo.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var Wr=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Wr.now=no.now;var Pn=class extends Wr{constructor(e,r=Wr.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var ea=class extends Pn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:n}=this,i;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,i){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw i}}};var pI=new ea(Js);var fn=new Pn(kn),hg=fn;var ta=class extends kn{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,n=0){return n!=null&&n>0||n==null&&this.delay>0?super.requestAsyncId(e,r,n):(e.flush(this),0)}};var na=class extends Pn{};var Rl=new na(ta);var xe=new N(t=>t.complete());function ra(t){return t&&T(t.schedule)}function Ol(t){return t[t.length-1]}function qr(t){return T(Ol(t))?t.pop():void 0}function $t(t){return ra(Ol(t))?t.pop():void 0}function pg(t,e){return typeof Ol(t)=="number"?t.pop():e}function AV(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function gg(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function mg(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lr(t){return this instanceof lr?(this.v=t,this):new lr(t)}function vg(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(m,_){o.push([f,h,m,_])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(m){d(o[0][3],m)}}function c(f){f.value instanceof lr?Promise.resolve(f.value.v).then(u,l):d(o[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function bg(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 mg=="function"?mg(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var Zr=t=>t&&typeof t.length=="number"&&typeof t!="function";function ia(t){return T(t?.then)}function oa(t){return T(t[Hr])}function sa(t){return Symbol.asyncIterator&&T(t?.[Symbol.asyncIterator])}function aa(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 mI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ca=mI();function ua(t){return T(t?.[ca])}function la(t){return vg(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield lr(r.read());if(i)return yield lr(void 0);yield yield lr(n)}}finally{r.releaseLock()}})}function da(t){return T(t?.getReader)}function V(t){if(t instanceof N)return t;if(t!=null){if(oa(t))return gI(t);if(Zr(t))return vI(t);if(ia(t))return bI(t);if(sa(t))return yg(t);if(ua(t))return yI(t);if(da(t))return DI(t)}throw aa(t)}function gI(t){return new N(e=>{let r=t[Hr]();if(T(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function vI(t){return new N(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Ys)})}function yI(t){return new N(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function yg(t){return new N(e=>{_I(t,e).catch(r=>e.error(r))})}function DI(t){return yg(la(t))}function _I(t,e){var r,n,i,o;return gg(this,void 0,void 0,function*(){try{for(r=bg(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Ne(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function dr(t,e=0){return S((r,n)=>{r.subscribe(M(n,i=>Ne(n,t,()=>n.next(i),e),()=>Ne(n,t,()=>n.complete(),e),i=>Ne(n,t,()=>n.error(i),e)))})}function fa(t,e=0){return S((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Dg(t,e){return V(t).pipe(fa(e),dr(e))}function _g(t,e){return V(t).pipe(fa(e),dr(e))}function wg(t,e){return new N(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Eg(t,e){return new N(r=>{let n;return Ne(r,e,()=>{n=t[ca](),Ne(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>T(n?.return)&&n.return()})}function ha(t,e){if(!t)throw new Error("Iterable cannot be null");return new N(r=>{Ne(r,e,()=>{let n=t[Symbol.asyncIterator]();Ne(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Ig(t,e){return ha(la(t),e)}function Cg(t,e){if(t!=null){if(oa(t))return Dg(t,e);if(Zr(t))return wg(t,e);if(ia(t))return _g(t,e);if(sa(t))return ha(t,e);if(ua(t))return Eg(t,e);if(da(t))return Ig(t,e)}throw aa(t)}function re(t,e){return e?Cg(t,e):V(t)}function x(...t){let e=$t(t);return re(t,e)}function Ht(t,e){let r=T(t)?t:()=>t,n=i=>i.error(r());return new N(e?i=>e.schedule(n,0,i):n)}var Ln=class t{constructor(e,r,n){this.kind=e,this.value=r,this.error=n,this.hasValue=e==="N"}observe(e){return Fl(this,e)}do(e,r,n){let{kind:i,value:o,error:s}=this;return i==="N"?e?.(o):i==="E"?r?.(s):n?.()}accept(e,r,n){var i;return T((i=e)===null||i===void 0?void 0:i.next)?this.observe(e):this.do(e,r,n)}toObservable(){let{kind:e,value:r,error:n}=this,i=e==="N"?x(r):e==="E"?Ht(()=>n):e==="C"?xe:0;if(!i)throw new TypeError(`Unexpected notification kind ${e}`);return i}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};Ln.completeNotification=new Ln("C");function Fl(t,e){var r,n,i;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"?(n=e.error)===null||n===void 0||n.call(e,a):(i=e.complete)===null||i===void 0||i.call(e)}function kl(t){return!!t&&(t instanceof N||T(t.lift)&&T(t.subscribe))}var At=Fn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function wI(t,e){let r=typeof e=="object";return new Promise((n,i)=>{let o=new Tt({next:s=>{n(s),o.unsubscribe()},error:i,complete:()=>{r?n(e.defaultValue):i(new At)}});t.subscribe(o)})}function pa(t){return t instanceof Date&&!isNaN(t)}var EI=Fn(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function II(t,e){let{first:r,each:n,with:i=CI,scheduler:o=e??fn,meta:s=null}=pa(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&n==null)throw new TypeError("No timeout provided.");return S((a,c)=>{let u,l,d=null,f=0,h=m=>{l=Ne(c,o,()=>{try{u.unsubscribe(),V(i({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(_){c.error(_)}},m)};u=a.subscribe(M(c,m=>{l?.unsubscribe(),f++,c.next(d=m),n>0&&h(n)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!f&&h(r!=null?typeof r=="number"?r:+r-o.now():n)})}function CI(t){throw new EI(t)}function C(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:xI}=Array;function MI(t,e){return xI(e)?t(...e):t(e)}function Yr(t){return C(e=>MI(t,e))}var{isArray:SI}=Array,{getPrototypeOf:TI,prototype:AI,keys:NI}=Object;function ma(t){if(t.length===1){let e=t[0];if(SI(e))return{args:e,keys:null};if(RI(e)){let r=NI(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function RI(t){return t&&typeof t=="object"&&TI(t)===AI}function ga(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function fr(...t){let e=$t(t),r=qr(t),{args:n,keys:i}=ma(t);if(n.length===0)return re([],e);let o=new N(OI(n,e,i?s=>ga(i,s):Ce));return r?o.pipe(Yr(r)):o}function OI(t,e,r=Ce){return n=>{xg(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let u=re(t[c],e),l=!1;u.subscribe(M(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function xg(t,e,r){t?Ne(r,t,e):e()}function Mg(t,e,r,n,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete()},h=_=>u{o&&e.next(_),u++;let w=!1;V(r(_,l++)).subscribe(M(e,E=>{i?.(E),o?h(E):e.next(E)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;c.length&&um(E)):m(E)}f()}catch(E){e.error(E)}}))};return t.subscribe(M(e,h,()=>{d=!0,f()})),()=>{a?.()}}function Q(t,e,r=1/0){return T(e)?Q((n,i)=>C((o,s)=>e(n,o,i,s))(V(t(n,i))),r):(typeof e=="number"&&(r=e),S((n,i)=>Mg(n,i,t,r)))}function zt(t=1/0){return Q(Ce,t)}function Sg(){return zt(1)}function Gt(...t){return Sg()(re(t,$t(t)))}function so(t){return new N(e=>{V(t()).subscribe(e)})}function ao(...t){let e=qr(t),{args:r,keys:n}=ma(t),i=new N(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(n?ga(n,a):a),o.complete())}))}});return e?i.pipe(Yr(e)):i}var FI=["addListener","removeListener"],kI=["addEventListener","removeEventListener"],PI=["on","off"];function Pl(t,e,r,n){if(T(r)&&(n=r,r=void 0),n)return Pl(t,e,r).pipe(Yr(n));let[i,o]=VI(t)?kI.map(s=>a=>t[s](e,a,r)):LI(t)?FI.map(Tg(t,e)):jI(t)?PI.map(Tg(t,e)):[];if(!i&&Zr(t))return Q(s=>Pl(s,e,r))(V(t));if(!i)throw new TypeError("Invalid event target");return new N(s=>{let a=(...c)=>s.next(1o(a)})}function Tg(t,e){return r=>n=>t[r](e,n)}function LI(t){return T(t.addListener)&&T(t.removeListener)}function jI(t){return T(t.on)&&T(t.off)}function VI(t){return T(t.addEventListener)&&T(t.removeEventListener)}function co(t=0,e,r=hg){let n=-1;return e!=null&&(ra(e)?r=e:n=e),new N(i=>{let o=pa(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function va(...t){let e=$t(t),r=pg(t,1/0),n=t;return n.length?n.length===1?V(n[0]):zt(r)(re(n,e)):xe}function le(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Ag(t){return S((e,r)=>{let n=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let u=i;i=null,r.next(u)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(M(r,u=>{n=!0,i=u,o||V(t(u)).subscribe(o=M(r,a,c))},()=>{s=!0,(!n||!o||o.closed)&&r.complete()}))})}function UI(t,e=fn){return Ag(()=>co(t,e))}function Re(t){return S((e,r)=>{let n=null,i=!1,o;n=e.subscribe(M(r,void 0,void 0,s=>{o=V(t(s,Re(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Ng(t,e,r,n,i){return(o,s)=>{let a=r,c=e,u=0;o.subscribe(M(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Wt(t,e){return T(e)?Q(t,e,1):Q(t,1)}function Kr(t,e=fn){return S((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{o=u,s=e.now(),i||(i=e.schedule(c,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function jn(t){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function ge(t){return t<=0?()=>xe:S((e,r)=>{let n=0;e.subscribe(M(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function uo(){return S((t,e)=>{t.subscribe(M(e,dn))})}function lo(t){return C(()=>t)}function Ll(t,e){return e?r=>Gt(e.pipe(ge(1),uo()),r.pipe(Ll(t))):Q((r,n)=>V(t(r,n)).pipe(ge(1),lo(r)))}function Rg(t,e=fn){let r=co(t,e);return Ll(()=>r)}function jl(){return S((t,e)=>{t.subscribe(M(e,r=>Fl(r,e)))})}function Qr(t,e=Ce){return t=t??BI,S((r,n)=>{let i,o=!0;r.subscribe(M(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function BI(t,e){return t===e}function ba(t=$I){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function $I(){return new At}function ya(t,e){return e?r=>r.pipe(ya((n,i)=>V(t(n,i)).pipe(C((o,s)=>e(n,o,i,s))))):S((r,n)=>{let i=0,o=null,s=!1;r.subscribe(M(n,a=>{o||(o=M(n,void 0,()=>{o=null,s&&n.complete()}),V(t(a,i++)).subscribe(o))},()=>{s=!0,!o&&n.complete()}))})}function ht(t){return S((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Nt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,ge(1),r?jn(e):ba(()=>new At))}function Da(t,e,r,n){return S((i,o)=>{let s;!e||typeof e=="function"?s=e:{duration:r,element:s,connector:n}=e;let a=new Map,c=m=>{a.forEach(m),m(o)},u=m=>c(_=>_.error(m)),l=0,d=!1,f=new to(o,m=>{try{let _=t(m),w=a.get(_);if(!w){a.set(_,w=n?n():new B);let E=h(_,w);if(o.next(E),r){let k=M(w,()=>{w.complete(),k?.unsubscribe()},void 0,void 0,()=>a.delete(_));f.add(V(r(E)).subscribe(k))}}w.next(s?s(m):m)}catch(_){u(_)}},()=>c(m=>m.complete()),u,()=>a.clear(),()=>(d=!0,l===0));i.subscribe(f);function h(m,_){let w=new N(E=>{l++;let k=_.subscribe(E);return()=>{k.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return w.key=m,w}})}function Xr(t){return t<=0?()=>xe:S((e,r)=>{let n=[];e.subscribe(M(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function Vl(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,Xr(1),r?jn(e):ba(()=>new At))}function Ul(){return S((t,e)=>{t.subscribe(M(e,r=>{e.next(Ln.createNext(r))},()=>{e.next(Ln.createComplete()),e.complete()},r=>{e.next(Ln.createError(r)),e.complete()}))})}function Bl(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return C(r=>{let n=r;for(let i=0;i=2,!0))}function ho(t={}){let{connector:e=()=>new B,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,l=d=!1},m=()=>{let _=s;h(),_?.unsubscribe()};return S((_,w)=>{u++,!d&&!l&&f();let E=c=c??e();w.add(()=>{u--,u===0&&!d&&!l&&(a=$l(m,i))}),E.subscribe(w),!s&&u>0&&(s=new Tt({next:k=>E.next(k),error:k=>{d=!0,f(),a=$l(h,r,k),E.error(k)},complete:()=>{l=!0,f(),a=$l(h,n),E.complete()}}),V(_).subscribe(s))})(o)}}function $l(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Tt({next:()=>{n.unsubscribe(),t()}});return V(e(...r)).subscribe(n)}function HI(t,e,r){let n,i=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:r}=t:n=t??1/0,ho({connector:()=>new ro(n,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Jr(t){return le((e,r)=>t<=r)}function po(...t){let e=$t(t);return S((r,n)=>{(e?Gt(t,r,e):Gt(t,r)).subscribe(n)})}function Ve(t,e){return S((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(M(n,c=>{i?.unsubscribe();let u=0,l=o++;V(t(c,l)).subscribe(i=M(n,d=>n.next(e?e(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Vn(t){return S((e,r)=>{V(t).subscribe(M(r,()=>r.complete(),dn)),!r.closed&&e.subscribe(r)})}function zI(t,e=!1){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{let s=t(o,i++);(s||e)&&n.next(o),!s&&n.complete()}))})}function ee(t,e,r){let n=T(t)||e||r?{next:t,error:e,complete:r}:t;return n?S((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(M(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):Ce}function mo(...t){let e=qr(t);return S((r,n)=>{let i=t.length,o=new Array(i),s=t.map(()=>!1),a=!1;for(let c=0;c{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ce))&&(s=null))},dn));r.subscribe(M(n,c=>{if(a){let u=[c,...o];n.next(e?e(...u):u)}}))})}var xv="https://g.co/ng/security#xss",I=class extends Error{constructor(e,r){super(lc(e,r)),this.code=e}};function lc(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function xo(t){return{toString:t}.toString()}var _a="__parameters__";function GI(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Ef(t,e,r){return xo(()=>{let n=GI(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(_a)?c[_a]:Object.defineProperty(c,_a,{value:[]})[_a];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var ye=globalThis;function ie(t){for(let e in t)if(t[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function WI(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function $e(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map($e).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 ad(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var qI=ie({__forward_ref__:ie});function kt(t){return t.__forward_ref__=kt,t.toString=function(){return $e(this())},t}function Ue(t){return Mv(t)?t():t}function Mv(t){return typeof t=="function"&&t.hasOwnProperty(qI)&&t.__forward_ref__===kt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function H(t){return{providers:t.providers||[],imports:t.imports||[]}}function dc(t){return Og(t,Tv)||Og(t,Av)}function Sv(t){return dc(t)!==null}function Og(t,e){return t.hasOwnProperty(e)?t[e]:null}function ZI(t){let e=t&&(t[Tv]||t[Av]);return e||null}function Fg(t){return t&&(t.hasOwnProperty(kg)||t.hasOwnProperty(YI))?t[kg]:null}var Tv=ie({\u0275prov:ie}),kg=ie({\u0275inj:ie}),Av=ie({ngInjectableDef:ie}),YI=ie({ngInjectorDef:ie}),v=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 Nv(t){return t&&!!t.\u0275providers}var KI=ie({\u0275cmp:ie}),QI=ie({\u0275dir:ie}),XI=ie({\u0275pipe:ie}),JI=ie({\u0275mod:ie}),Pa=ie({\u0275fac:ie}),go=ie({__NG_ELEMENT_ID__:ie}),Pg=ie({__NG_ENV_ID__:ie});function fc(t){return typeof t=="string"?t:t==null?"":String(t)}function eC(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():fc(t)}function tC(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new I(-200,t)}function If(t,e){throw new I(-201,!1)}var U=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}(U||{}),cd;function Rv(){return cd}function qe(t){let e=cd;return cd=t,e}function Ov(t,e,r){let n=dc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&U.Optional)return null;if(e!==void 0)return e;If(t,"Injector")}var nC={},vo=nC,ud="__NG_DI_FLAG__",La="ngTempTokenPath",rC="ngTokenPath",iC=/\n/gm,oC="\u0275",Lg="__source",ii;function sC(){return ii}function Un(t){let e=ii;return ii=t,e}function aC(t,e=U.Default){if(ii===void 0)throw new I(-203,!1);return ii===null?Ov(t,void 0,e):ii.get(t,e&U.Optional?null:void 0,e)}function p(t,e=U.Default){return(Rv()||aC)(Ue(t),e)}function g(t,e=U.Default){return p(t,hc(e))}function hc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ld(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):$e(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(iC,` - `)}`}var xf=Cf(Ef("Inject",t=>({token:t})),-1),yi=Cf(Ef("Optional"),8);var Mo=Cf(Ef("SkipSelf"),4);function gr(t,e){let r=t.hasOwnProperty(Pa);return r?t[Pa]:null}function dC(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Mf(r,e):e(r))}function Fv(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ja(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function hC(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function So(t,e,r){let n=To(t,e);return n>=0?t[n|1]=r:(n=~n,pC(t,n,e,r)),n}function Hl(t,e){let r=To(t,e);if(r>=0)return t[r|1]}function To(t,e){return mC(t,e,1)}function mC(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(Rt(n))return!1;s=!0}}}}return Rt(n)||s}function Rt(t){return(t&1)===0}function _C(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Rt(s)&&(e+=Vg(o,i),i=""),n=s,o=o||!Rt(n);r++}return i!==""&&(e+=Vg(o,i)),e}function MC(t){return t.map(xC).join(",")}function SC(t){let e=[],r=[],n=1,i=2;for(;n{let e=Gv(t),r=O(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Yt.Emulated,styles:t.styles||Oe,_:null,schemas:t.schemas||null,tView:null,id:""});Wv(r);let n=t.dependencies;return r.directiveDefs=Bg(n,!1),r.pipeDefs=Bg(n,!0),r.id=NC(r),r})}function TC(t){return Hn(t)||Bv(t)}function AC(t){return t!==null}function z(t){return xo(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ug(t,e){if(t==null)return si;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=$n.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==$n.None?[n,a]:n,e[o]=s):r[o]=n}return r}function G(t){return xo(()=>{let e=Gv(t);return Wv(e),e})}function pc(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 Hn(t){return t[KI]||null}function Bv(t){return t[QI]||null}function $v(t){return t[XI]||null}function Hv(t){let e=Hn(t)||Bv(t)||$v(t);return e!==null?e.standalone:!1}function zv(t,e){let r=t[JI]||null;if(!r&&e===!0)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return r}function Gv(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||si,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ug(t.inputs,e),outputs:Ug(t.outputs),debugInfo:null}}function Wv(t){t.features?.forEach(e=>e(t))}function Bg(t,e){if(!t)return null;let r=e?$v:TC;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(AC)}function NC(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 i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function yn(t){return{\u0275providers:t}}function RC(...t){return{\u0275providers:qv(!0,t),\u0275fromNgModule:!0}}function qv(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Mf(e,s=>{let a=s;fd(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Zv(i,o),r}function Zv(t,e){for(let r=0;r{e(o,n)})}}function fd(t,e,r,n){if(t=Ue(t),!t)return!1;let i=null,o=Fg(t),s=!o&&Hn(t);if(!o&&!s){let c=t.ngModule;if(o=Fg(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)fd(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{Mf(o.imports,l=>{fd(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Zv(u,e)}if(!a){let u=gr(i)||(()=>new i);e({provide:i,useFactory:u,deps:Oe},i),e({provide:Pv,useValue:i,multi:!0},i),e({provide:hn,useValue:()=>p(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;Tf(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function Tf(t,e){for(let r of t)Nv(r)&&(r=r.\u0275providers),Array.isArray(r)?Tf(r,e):e(r)}var OC=ie({provide:String,useValue:ie});function Yv(t){return t!==null&&typeof t=="object"&&OC in t}function FC(t){return!!(t&&t.useExisting)}function kC(t){return!!(t&&t.useFactory)}function ai(t){return typeof t=="function"}function PC(t){return!!t.useClass}var mc=new v(""),Ta={},LC={},zl;function Af(){return zl===void 0&&(zl=new Va),zl}var Fe=class{},yo=class extends Fe{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pd(e,s=>this.processProvider(s)),this.records.set(kv,ei(void 0,this)),i.has("environment")&&this.records.set(Fe,ei(void 0,this));let o=this.records.get(mc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Pv,Oe,U.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=$(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),$(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Un(this),n=qe(void 0),i;try{return e()}finally{Un(r),qe(n)}}get(e,r=vo,n=U.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Pg))return e[Pg](this);n=hc(n);let i,o=Un(this),s=qe(void 0);try{if(!(n&U.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=$C(e)&&dc(e);u&&this.injectableDefInScope(u)?c=ei(hd(e),Ta):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&U.Self?Af():this.parent;return r=n&U.Optional&&r===vo?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[La]=a[La]||[]).unshift($e(e)),o)throw a;return uC(a,e,"R3InjectorError",this.source)}else throw a}finally{qe(s),Un(o)}}resolveInjectorInitializers(){let e=$(null),r=Un(this),n=qe(void 0),i;try{let o=this.get(hn,Oe,U.Self);for(let s of o)s()}finally{Un(r),qe(n),$(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push($e(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(e){e=Ue(e);let r=ai(e)?e:Ue(e&&e.provide),n=VC(e);if(!ai(e)&&e.multi===!0){let i=this.records.get(r);i||(i=ei(void 0,Ta,!0),i.factory=()=>ld(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=$(null);try{return r.value===Ta&&(r.value=LC,r.value=r.factory()),typeof r.value=="object"&&r.value&&BC(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{$(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Ue(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 hd(t){let e=dc(t),r=e!==null?e.factory:gr(t);if(r!==null)return r;if(t instanceof v)throw new I(204,!1);if(t instanceof Function)return jC(t);throw new I(204,!1)}function jC(t){if(t.length>0)throw new I(204,!1);let r=ZI(t);return r!==null?()=>r.factory(t):()=>new t}function VC(t){if(Yv(t))return ei(void 0,t.useValue);{let e=Kv(t);return ei(e,Ta)}}function Kv(t,e,r){let n;if(ai(t)){let i=Ue(t);return gr(i)||hd(i)}else if(Yv(t))n=()=>Ue(t.useValue);else if(kC(t))n=()=>t.useFactory(...ld(t.deps||[]));else if(FC(t))n=()=>p(Ue(t.useExisting));else{let i=Ue(t&&(t.useClass||t.provide));if(UC(t))n=()=>new i(...ld(t.deps));else return gr(i)||hd(i)}return n}function ei(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function UC(t){return!!t.deps}function BC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function $C(t){return typeof t=="function"||typeof t=="object"&&t instanceof v}function pd(t,e){for(let r of t)Array.isArray(r)?pd(r,e):r&&Nv(r)?pd(r.\u0275providers,e):e(r)}function rt(t,e){t instanceof yo&&t.assertNotDestroyed();let r,n=Un(t),i=qe(void 0);try{return e()}finally{Un(n),qe(i)}}function Qv(){return Rv()!==void 0||sC()!=null}function Ao(t){if(!Qv())throw new I(-203,!1)}function HC(t){return typeof t=="function"}var Ze=0,A=1,F=2,Se=3,Ot=4,Ke=5,gt=6,Ua=7,De=8,ci=9,Kt=10,te=11,Do=12,$g=13,Di=14,He=15,vr=16,ti=17,pn=18,No=19,Xv=20,Bn=21,Aa=22,mt=23,oe=25,Nf=1,_o=6,mn=7,Ba=8,ui=9,Me=10,$a=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}($a||{});function Ft(t){return Array.isArray(t)&&typeof t[Nf]=="object"}function Jt(t){return Array.isArray(t)&&t[Nf]===!0}function Rf(t){return(t.flags&4)!==0}function Ro(t){return t.componentOffset>-1}function gc(t){return(t.flags&1)===1}function gn(t){return!!t.template}function Ha(t){return(t[F]&512)!==0}var md=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Jv(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function it(){return eb}function eb(t){return t.type.prototype.ngOnChanges&&(t.setInput=GC),zC}it.ngInherit=!0;function zC(){let t=nb(this),e=t?.current;if(e){let r=t.previous;if(r===si)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function GC(t,e,r,n,i){let o=this.declaredInputs[n],s=nb(t)||WC(t,{previous:si,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new md(u&&u.currentValue,r,c===si),Jv(t,e,i,r)}var tb="__ngSimpleChanges__";function nb(t){return t[tb]||null}function WC(t,e){return t[tb]=e}var Hg=null;var qt=function(t,e,r){Hg?.(t,e,r)},rb="svg",qC="math";function Ye(t){for(;Array.isArray(t);)t=t[Ze];return t}function ZC(t){for(;Array.isArray(t);){if(typeof t[Nf]=="object")return t;t=t[Ze]}return null}function ib(t,e){return Ye(e[t])}function ot(t,e){return Ye(e[t.index])}function Of(t,e){return t.data[e]}function Ff(t,e){return t[e]}function Qt(t,e){let r=e[t];return Ft(r)?r:r[Ze]}function YC(t){return(t[F]&4)===4}function kf(t){return(t[F]&128)===128}function KC(t){return Jt(t[Se])}function zn(t,e){return e==null?null:t[e]}function ob(t){t[ti]=0}function sb(t){t[F]&1024||(t[F]|=1024,kf(t)&&vc(t))}function QC(t,e){for(;t>0;)e=e[Di],t--;return e}function wo(t){return!!(t[F]&9216||t[mt]?.dirty)}function gd(t){t[Kt].changeDetectionScheduler?.notify(7),t[F]&64&&(t[F]|=1024),wo(t)&&vc(t)}function vc(t){t[Kt].changeDetectionScheduler?.notify(0);let e=br(t);for(;e!==null&&!(e[F]&8192||(e[F]|=8192,!kf(e)));)e=br(e)}function ab(t,e){if((t[F]&256)===256)throw new I(911,!1);t[Bn]===null&&(t[Bn]=[]),t[Bn].push(e)}function XC(t,e){if(t[Bn]===null)return;let r=t[Bn].indexOf(e);r!==-1&&t[Bn].splice(r,1)}function br(t){let e=t[Se];return Jt(e)?e[Se]:e}var L={lFrame:gb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var cb=!1;function JC(){return L.lFrame.elementDepthCount}function ex(){L.lFrame.elementDepthCount++}function tx(){L.lFrame.elementDepthCount--}function ub(){return L.bindingsEnabled}function _i(){return L.skipHydrationRootTNode!==null}function nx(t){return L.skipHydrationRootTNode===t}function rx(t){L.skipHydrationRootTNode=t}function ix(){L.skipHydrationRootTNode=null}function R(){return L.lFrame.lView}function ce(){return L.lFrame.tView}function jz(t){return L.lFrame.contextLView=t,t[De]}function Vz(t){return L.lFrame.contextLView=null,t}function _e(){let t=lb();for(;t!==null&&t.type===64;)t=t.parent;return t}function lb(){return L.lFrame.currentTNode}function ox(){let t=L.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ir(t,e){let r=L.lFrame;r.currentTNode=t,r.isParent=e}function Pf(){return L.lFrame.isParent}function Lf(){L.lFrame.isParent=!1}function sx(){return L.lFrame.contextLView}function db(){return cb}function zg(t){cb=t}function Oo(){let t=L.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ax(t){return L.lFrame.bindingIndex=t}function Wn(){return L.lFrame.bindingIndex++}function fb(t){let e=L.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function cx(){return L.lFrame.inI18n}function ux(t,e){let r=L.lFrame;r.bindingIndex=r.bindingRootIndex=t,vd(e)}function lx(){return L.lFrame.currentDirectiveIndex}function vd(t){L.lFrame.currentDirectiveIndex=t}function jf(t){let e=L.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hb(){return L.lFrame.currentQueryIndex}function Vf(t){L.lFrame.currentQueryIndex=t}function dx(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[Ke]:null}function pb(t,e,r){if(r&U.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&U.Host);)if(i=dx(o),i===null||(o=o[Di],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=L.lFrame=mb();return n.currentTNode=e,n.lView=t,!0}function Uf(t){let e=mb(),r=t[A];L.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function mb(){let t=L.lFrame,e=t===null?null:t.child;return e===null?gb(t):e}function gb(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 vb(){let t=L.lFrame;return L.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var bb=vb;function Bf(){let t=vb();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 fx(t){return(L.lFrame.contextLView=QC(t,L.lFrame.contextLView))[De]}function qn(){return L.lFrame.selectedIndex}function yr(t){L.lFrame.selectedIndex=t}function wi(){let t=L.lFrame;return Of(t.tView,t.selectedIndex)}function Uz(){L.lFrame.currentNamespace=rb}function Bz(){hx()}function hx(){L.lFrame.currentNamespace=null}function yb(){return L.lFrame.currentNamespace}var Db=!0;function bc(){return Db}function Zn(t){Db=t}function px(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=eb(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function yc(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[ti]+=65536),(a>14>16&&(t[F]&3)===e&&(t[F]+=16384,Gg(a,o)):Gg(a,o)}var oi=-1,Dr=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function gx(t){return t instanceof Dr}function vx(t){return(t.flags&8)!==0}function bx(t){return(t.flags&16)!==0}var Wl={},bd=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=hc(n);let i=this.injector.get(e,Wl,n);return i!==Wl||r===Wl?i:this.parentInjector.get(e,r,n)}};function wb(t){return t!==oi}function za(t){return t&32767}function yx(t){return t>>16}function Ga(t,e){let r=yx(t),n=e;for(;r>0;)n=n[Di],r--;return n}var yd=!0;function Wa(t){let e=yd;return yd=t,e}var Dx=256,Eb=Dx-1,Ib=5,_x=0,Zt={};function wx(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(go)&&(n=r[go]),n==null&&(n=r[go]=_x++);let i=n&Eb,o=1<>Ib)]|=o}function qa(t,e){let r=Cb(t,e);if(r!==-1)return r;let n=e[A];n.firstCreatePass&&(t.injectorIndex=e.length,ql(n.data,t),ql(e,null),ql(n.blueprint,null));let i=$f(t,e),o=t.injectorIndex;if(wb(i)){let s=za(i),a=Ga(i,e),c=a[A].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function ql(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Cb(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function $f(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Ab(i),n===null)return oi;if(r++,i=i[Di],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return oi}function Dd(t,e,r){wx(t,e,r)}function Ex(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:u;for(let h=d;h=c&&m.type===r)return h}if(i){let h=s[c];if(h&&gn(h)&&h.type===r)return c}return null}function _r(t,e,r,n){let i=t[r],o=e.data;if(gx(i)){let s=i;s.resolving&&tC(eC(o[r]));let a=Wa(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?qe(s.injectImpl):null,l=pb(t,n,U.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&px(r,o[r],e)}finally{u!==null&&qe(u),Wa(a),s.resolving=!1,bb()}}return i}function Cx(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(go)?t[go]:void 0;return typeof e=="number"?e>=0?e&Eb:xx:e}function Wg(t,e,r){let n=1<>Ib)]&n)}function qg(t,e){return!(t&U.Self)&&!(t&U.Host&&e)}var mr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Sb(this._tNode,this._lView,e,hc(n),r)}};function xx(){return new mr(_e(),R())}function Yn(t){return xo(()=>{let e=t.prototype.constructor,r=e[Pa]||_d(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Pa]||_d(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _d(t){return Mv(t)?()=>{let e=_d(Ue(t));return e&&e()}:gr(t)}function Mx(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[F]&2048&&!(s[F]&512);){let a=Tb(o,s,r,n|U.Self,Zt);if(a!==Zt)return a;let c=o.parent;if(!c){let u=s[Xv];if(u){let l=u.get(r,Zt,n);if(l!==Zt)return l}c=Ab(s),s=s[Di]}o=c}return i}function Ab(t){let e=t[A],r=e.type;return r===2?e.declTNode:r===1?t[Ke]:null}function Fo(t){return Ex(_e(),t)}function Zg(t,e=null,r=null,n){let i=Nb(t,e,r,n);return i.resolveInjectorInitializers(),i}function Nb(t,e=null,r=null,n,i=new Set){let o=[r||Oe,RC(t)];return n=n||(typeof t=="object"?void 0:$e(t)),new yo(o,e||Af(),n||null,i)}var pr=class pr{static create(e,r){if(Array.isArray(e))return Zg({name:""},r,e,"");{let n=e.name??"";return Zg({name:n},e.parent,e.providers,n)}}};pr.THROW_IF_NOT_FOUND=vo,pr.NULL=new Va,pr.\u0275prov=D({token:pr,providedIn:"any",factory:()=>p(kv)}),pr.__NG_ELEMENT_ID__=-1;var ke=pr;var Sx=new v("");Sx.__NG_ELEMENT_ID__=t=>{let e=_e();if(e===null)throw new I(204,!1);if(e.type&2)return e.value;if(t&U.Optional)return null;throw new I(204,!1)};var Tx="ngOriginalError";function Zl(t){return t[Tx]}var Te=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&&Zl(e);for(;r&&Zl(r);)r=Zl(r);return r||null}},Rb=new v("",{providedIn:"root",factory:()=>g(Te).handleError.bind(void 0)}),Cr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ax,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),wd=class extends Cr{constructor(e){super(),this._lView=e}onDestroy(e){return ab(this._lView,e),()=>XC(this._lView,e)}};function Ax(){return new wd(R())}function Nx(){return Ei(_e(),R())}function Ei(t,e){return new ne(ot(t,e))}var ne=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Nx;let t=e;return t})();function Rx(t){return t instanceof ne?t.nativeElement:t}var en=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new de(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ed=class extends B{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Qv()&&(this.destroyRef=g(Cr,{optional:!0})??void 0,this.pendingTasks=g(en,{optional:!0})??void 0)}emit(e){let r=$(null);try{super.next(e)}finally{$(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ae&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},X=Ed;function Ox(){return this._results[Symbol.iterator]()}var li=class t{get changes(){return this._changes??=new X}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]=Ox)}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 n=fC(e);(this._changesDetected=!dC(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[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())}},Fx="ngSkipHydration",kx="ngskiphydration";function Ob(t){let e=t.mergedAttrs;if(e===null)return!1;for(let r=0;r=0){let a=Ye(o[s]),c=Yg(o,s,a);pt(a,c),e=c;break}}}}return e||null}function Yg(t,e,r){return new Id(t[No],e,r)}var Cd="__ngContext__";function pt(t,e){Ft(e)?(t[Cd]=e[No],Vx(e)):t[Cd]=e}function Yl(t){let e=t[Cd];return typeof e=="number"?kb(e):e||null}function Pb(t){return t&&t.constructor&&t.constructor.\u0275cmp}function Bx(t){return t&&t.constructor&&t.constructor.\u0275dir}function Kg(t,e){let r=t[A];for(let n=oe;nWx}),Wx="ng",zf=new v(""),Qe=new v("",{providedIn:"platform",factory:()=>"unknown"});var Kn=new v(""),ko=new v("",{providedIn:"root",factory:()=>Dc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function qx(){let t=new Ii;return g(Qe)==="browser"&&(t.store=Zx(Dc(),g(xr))),t}var Ii=(()=>{let e=class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(n,i){return this.store[n]!==void 0?this.store[n]:i}set(n,i){this.store[n]=i}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,i){this.onSerializeCallbacks[n]=i}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function tM(t,e,r=!1){let n=t.getAttribute(Kl);if(n==null)return null;let[i,o]=n.split("|");if(n=r?o:i,!n)return null;let s=o?`|${o}`:"",a=r?i:s,c={};if(n!==""){let l=e.get(Ii,null,{optional:!0});l!==null&&(c=l.get(Gb,[])[Number(n)])}let u={data:c,firstChild:t.firstChild??null};return r&&(u.firstChild=t,_c(u,0,t.nextSibling)),a?t.setAttribute(Kl,a):t.removeAttribute(Kl),u}function nM(){Wb=tM}function Wf(t,e,r=!1){return Wb(t,e,r)}function rM(t){let e=t._lView;return e[A].type===2?null:(Ha(e)&&(e=e[oe]),e)}function iM(t){return t.textContent?.replace(/\s/gm,"")}function oM(t){let e=Dc(),r=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=iM(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n,i=[];for(;n=r.nextNode();)i.push(n);for(let o of i)o.textContent==="ngetn"?o.replaceWith(e.createTextNode("")):o.remove()}function _c(t,e,r){t.segmentHeads??={},t.segmentHeads[e]=r}function Sd(t,e){return t.segmentHeads?.[e]??null}function sM(t,e){let r=t.data,n=r[Yx]?.[e]??null;return n===null&&r[Gf]?.[e]&&(n=qf(t,e)),n}function qb(t,e){return t.data[Gf]?.[e]??null}function qf(t,e){let r=qb(t,e)??[],n=0;for(let i of r)n+=i[Ya]*(i[Hb]??1);return n}function aM(t){if(typeof t.disconnectedNodes>"u"){let e=t.data[zb];t.disconnectedNodes=e?new Set(e):null}return t.disconnectedNodes}function wc(t,e){if(typeof t.disconnectedNodes>"u"){let r=t.data[zb];t.disconnectedNodes=r?new Set(r):null}return!!aM(t)?.has(e)}var wa=new v(""),Zb=!1,Yb=new v("",{providedIn:"root",factory:()=>Zb});var Ea;function cM(){if(Ea===void 0&&(Ea=null,ye.trustedTypes))try{Ea=ye.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ea}function Ec(t){return cM()?.createHTML(t)||t}var Ia;function uM(){if(Ia===void 0&&(Ia=null,ye.trustedTypes))try{Ia=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ia}function Qg(t){return uM()?.createScriptURL(t)||t}var vn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xv})`}},Td=class extends vn{getTypeName(){return"HTML"}},Ad=class extends vn{getTypeName(){return"Style"}},Nd=class extends vn{getTypeName(){return"Script"}},Rd=class extends vn{getTypeName(){return"URL"}},Od=class extends vn{getTypeName(){return"ResourceURL"}};function vt(t){return t instanceof vn?t.changingThisBreaksApplicationSecurity:t}function Qn(t,e){let r=lM(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${xv})`)}return r===e}function lM(t){return t instanceof vn&&t.getTypeName()||null}function Kb(t){return new Td(t)}function Qb(t){return new Ad(t)}function Xb(t){return new Nd(t)}function Jb(t){return new Rd(t)}function ey(t){return new Od(t)}function dM(t){let e=new kd(t);return fM()?new Fd(e):e}var Fd=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Ec(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},kd=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=Ec(e),r}};function fM(){try{return!!new window.DOMParser().parseFromString(Ec(""),"text/html")}catch{return!1}}var hM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ic(t){return t=String(t),t.match(hM)?t:"unsafe:"+t}function Dn(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Po(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var ty=Dn("area,br,col,hr,img,wbr"),ny=Dn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ry=Dn("rp,rt"),pM=Po(ry,ny),mM=Po(ny,Dn("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")),gM=Po(ry,Dn("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")),Xg=Po(ty,mM,gM,pM),iy=Dn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vM=Dn("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"),bM=Dn("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"),yM=Po(iy,vM,bM),DM=Dn("script,style,template"),Pd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=EM(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=wM(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=Jg(e).toLowerCase();if(!Xg.hasOwnProperty(r))return this.sanitizedSomething=!0,!DM.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=Jg(e).toLowerCase();Xg.hasOwnProperty(r)&&!ty.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(ev(e))}};function _M(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function wM(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw oy(e);return e}function EM(t){let e=t.firstChild;if(e&&_M(t,e))throw oy(e);return e}function Jg(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function oy(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var IM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,CM=/([^\#-~ |!])/g;function ev(t){return t.replace(/&/g,"&").replace(IM,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(CM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ca;function sy(t,e){let r=null;try{Ca=Ca||dM(t);let n=e?String(e):"";r=Ca.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Ca.getInertBodyElement(n)}while(n!==o);let a=new Pd().sanitizeChildren(tv(r)||r);return Ec(a)}finally{if(r){let n=tv(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function tv(t){return"content"in t&&xM(t)?t.content:null}function xM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Pe=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}(Pe||{});function MM(t){let e=cy();return e?e.sanitize(Pe.URL,t)||"":Qn(t,"URL")?vt(t):Ic(fc(t))}function SM(t){let e=cy();if(e)return Qg(e.sanitize(Pe.RESOURCE_URL,t)||"");if(Qn(t,"ResourceURL"))return Qg(vt(t));throw new I(904,!1)}function TM(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?SM:MM}function ay(t,e,r){return TM(e,r)(t)}function cy(){let t=R();return t&&t[Kt].sanitizer}var AM=/^>|^->||--!>|)/g,RM="\u200B$1\u200B";function OM(t){return t.replace(AM,e=>e.replace(NM,RM))}function Hz(t){return t.ownerDocument.defaultView}function zz(t){return t.ownerDocument}function FM(t){return t.ownerDocument.body}function uy(t){return t instanceof Function?t():t}function ni(t){return(t??g(ke)).get(Qe)==="browser"}var Xt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Xt||{}),kM;function Zf(t,e){return kM(t,e)}function ri(t,e,r,n,i){if(n!=null){let o,s=!1;Jt(n)?o=n:Ft(n)&&(s=!0,n=n[Ze]);let a=Ye(n);t===0&&r!==null?i==null?my(e,r,a):Ka(e,r,a,i||null,!0):t===1&&r!==null?Ka(e,r,a,i||null,!0):t===2?Xf(e,a,s):t===3&&e.destroyNode(a),o!=null&&YM(e,t,o,r,i)}}function ly(t,e){return t.createText(e)}function PM(t,e,r){t.setValue(e,r)}function dy(t,e){return t.createComment(OM(e))}function Yf(t,e,r){return t.createElement(e,r)}function LM(t,e){fy(t,e),e[Ze]=null,e[Ke]=null}function jM(t,e,r,n,i,o){n[Ze]=i,n[Ke]=e,Mc(t,n,r,1,i,o)}function fy(t,e){e[Kt].changeDetectionScheduler?.notify(8),Mc(t,e,e[te],2,null,null)}function VM(t){let e=t[Do];if(!e)return Ql(t[A],t);for(;e;){let r=null;if(Ft(e))r=e[Do];else{let n=e[Me];n&&(r=n)}if(!r){for(;e&&!e[Ot]&&e!==t;)Ft(e)&&Ql(e[A],e),e=e[Se];e===null&&(e=t),Ft(e)&&Ql(e[A],e),r=e&&e[Ot]}e=r}}function UM(t,e,r,n){let i=Me+n,o=r.length;n>0&&(r[i-1][Ot]=e),n0&&(t[r-1][Ot]=n[Ot]);let o=ja(t,Me+e);LM(n[A],n);let s=o[pn];s!==null&&s.detachView(o[A]),n[Se]=null,n[Ot]=null,n[F]&=-129}return n}function Cc(t,e){if(!(e[F]&256)){let r=e[te];r.destroyNode&&Mc(t,e,r,3,null,null),VM(e)}}function Ql(t,e){if(e[F]&256)return;let r=$(null);try{e[F]&=-129,e[F]|=256,e[mt]&&zs(e[mt]),$M(t,e),BM(t,e),e[A].type===1&&e[te].destroy();let n=e[vr];if(n!==null&&Jt(e[Se])){n!==e[Se]&&Kf(n,e);let i=e[pn];i!==null&&i.detachView(t)}Ux(e)}finally{$(r)}}function BM(t,e){let r=t.cleanup,n=e[Ua];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ua]=null);let i=e[Bn];if(i!==null){e[Bn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===Yt.None||o===Yt.Emulated)return null}return ot(n,r)}}function Ka(t,e,r,n,i){t.insertBefore(e,r,n,i)}function my(t,e,r){t.appendChild(e,r)}function nv(t,e,r,n,i){n!==null?Ka(t,e,r,n,i):my(t,e,r)}function zM(t,e,r,n){t.removeChild(e,r,n)}function Qf(t,e){return t.parentNode(e)}function GM(t,e){return t.nextSibling(e)}function gy(t,e,r){return qM(t,e,r)}function WM(t,e,r){return t.type&40?ot(t,r):null}var qM=WM,rv;function xc(t,e,r,n){let i=py(t,n,e),o=e[te],s=n.parent||e[Ke],a=gy(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;coe&&wy(t,e,oe,!1),qt(s?2:0,i),r(n,i)}finally{yr(o),qt(s?3:1,i)}}function eh(t,e,r){if(Rf(e)){let n=$(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function rS(t){Fb(t)?by(t):oM(t)}function iS(){My=rS}function oS(t,e,r,n){let i=Ry(e);i.push(r),t.firstCreatePass&&Oy(t).push(n,i.length-1)}function sS(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return _i()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,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 iv(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=$n.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?ov(n,r,u,a,c):ov(n,r,u,a)}return n}function ov(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function aS(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function fS(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Ro(r)&&yS(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||qa(r,e),pt(n,e);let s=r.initialInputs;for(let a=i;a{vc(t.lView)},consumerOnSignalRead(){this.lView[mt]=this}});function OS(t){let e=t[mt]??Object.create(FS);return e.lView=t,e}var FS=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=br(t.lView);for(;e&&!Vy(e[A]);)e=br(e);e&&sb(e)},consumerOnSignalRead(){this.lView[mt]=this}});function Vy(t){return t.type!==2}var kS=100;function Uy(t,e=!0,r=0){let n=t[Kt],i=n.rendererFactory,o=!1;o||i.begin?.();try{PS(t,r)}catch(s){throw e&&ky(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function PS(t,e){let r=db();try{zg(!0),Ud(t,e);let n=0;for(;wo(t);){if(n===kS)throw new I(103,!1);n++,Ud(t,1)}}finally{zg(r)}}function LS(t,e,r,n){let i=e[F];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Kt].inlineEffectRunner?.flush(),Uf(e);let a=!0,c=null,u=null;o||(Vy(t)?(u=TS(e),c=eo(u)):$m()===null?(a=!1,u=OS(e),c=eo(u)):e[mt]&&(zs(e[mt]),e[mt]=null));try{ob(e),ax(t.bindingStartIndex),r!==null&&Cy(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let h=t.preOrderCheckHooks;h!==null&&Na(e,h,null)}else{let h=t.preOrderHooks;h!==null&&Ra(e,h,0,null),Gl(e,0)}if(s||jS(e),By(e,0),t.contentQueries!==null&&Ny(t,e),!o)if(l){let h=t.contentCheckHooks;h!==null&&Na(e,h)}else{let h=t.contentHooks;h!==null&&Ra(e,h,1),Gl(e,1)}XM(t,e);let d=t.components;d!==null&&Hy(e,d,0);let f=t.viewQuery;if(f!==null&&Vd(2,f,n),!o)if(l){let h=t.viewCheckHooks;h!==null&&Na(e,h)}else{let h=t.viewHooks;h!==null&&Ra(e,h,2),Gl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Aa]){for(let h of e[Aa])h();e[Aa]=null}o||(e[F]&=-73)}catch(l){throw o||vc(e),l}finally{u!==null&&($s(u,c),a&&NS(u)),Bf()}}function By(t,e){for(let r=Lb(t);r!==null;r=jb(r))for(let n=Me;n-1&&(Eo(e,n),ja(r,n))}this._attachedToViewContainer=!1}Cc(this._lView[A],this._lView)}onDestroy(e){ab(this._lView,e)}markForCheck(){ah(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){gd(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,Uy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ha(this._lView),r=this._lView[vr];r!==null&&!e&&Kf(r,this._lView),fy(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=e;let r=Ha(this._lView),n=this._lView[vr];n!==null&&!r&&hy(n,this._lView),gd(this._lView)}},bn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=$S;let t=e;return t})(),US=bn,BS=class extends US{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Vo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new wr(i)}};function $S(){return Ac(_e(),R())}function Ac(t,e){return t.type&4?new BS(e,t,Ei(t,e)):null}var HS=new RegExp(`^(\\d+)*(${$b}|${Bb})*(.*)`);function zS(t){let e=t.match(HS),[r,n,i,o]=e,s=n?parseInt(n,10):i,a=[];for(let[c,u,l]of o.matchAll(/(f|n)(\d*)/g)){let d=parseInt(l,10)||1;a.push(u,d)}return[s,...a]}function GS(t){return!t.prev&&t.parent?.type===8}function Xl(t){return t.index-oe}function WS(t,e){let r=t.i18nNodes;if(r)return r.get(e)}function Nc(t,e,r,n){let i=Xl(n),o=WS(t,i);if(o===void 0){let s=t.data[Xx];if(s?.[i])o=ZS(s[i],r);else if(e.firstChild===n)o=t.firstChild;else{let a=n.prev===null,c=n.prev??n.parent;if(GS(n)){let u=Xl(n.parent);o=Sd(t,u)}else{let u=ot(c,r);if(a)o=u.firstChild;else{let l=Xl(c),d=Sd(t,l);if(c.type===2&&d){let h=qf(t,l)+1;o=Rc(h,d)}else o=u.nextSibling}}}}return o}function Rc(t,e){let r=e;for(let n=0;n0&&(o.firstChild=t,t=Rc(n[Ya],t)),r.push(o)}return[t,r]}var Wy=()=>null;function nT(t,e){let r=t[_o];return!e||r===null||r.length===0?null:r[0].data[Qx]===e?r.shift():(zy(t),null)}function rT(){Wy=nT}function fi(t,e){return Wy(t,e)}var hi=class{},qy=new v("",{providedIn:"root",factory:()=>!1});var Zy=new v(""),Bd=class{},Ja=class{};function iT(t){let e=Error(`No component factory found for ${$e(t)}.`);return e[oT]=t,e}var oT="ngComponent";var $d=class{resolveComponentFactory(e){throw iT(e)}},Ch=class Ch{};Ch.NULL=new $d;var pi=Ch,mi=class{},tn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>sT();let t=e;return t})();function sT(){let t=R(),e=_e(),r=Qt(e.index,t);return(Ft(r)?r:t)[te]}var aT=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var sv=new Set;function yt(t){sv.has(t)||(sv.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Yy(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ye.requestAnimationFrame=="function"&&ye.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function av(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function cv(...t){}var P=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,lT(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new I(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,cT,cv,cv);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},cT={};function ch(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 uT(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Yy(()=>{t.callbackScheduled=!1,Hd(t),t.isCheckStableRunning=!0,ch(t),t.isCheckStableRunning=!1})}),Hd(t))}function lT(t){let e=()=>{uT(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(dT(a))return r.invokeTask(i,o,s,a);try{return uv(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),lv(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return uv(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!fT(a)&&e(),lv(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Hd(t),ch(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Hd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function uv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function lv(t){t._nesting--,ch(t)}var zd=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function dT(t){return Ky(t,"__ignore_ng_zone__")}function fT(t){return Ky(t,"__scheduler_tick__")}function Ky(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Be=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Be||{}),Qy={destroy(){}};function hT(t,e){!e&&Ao(hT);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterRender"),Xy(t,r,!1,e?.phase??Be.MixedReadWrite)):Qy}function Bo(t,e){!e&&Ao(Bo);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterNextRender"),Xy(t,r,!0,e?.phase??Be.MixedReadWrite)):Qy}function pT(t,e){if(t instanceof Function)switch(e){case Be.EarlyRead:return{earlyRead:t};case Be.Write:return{write:t};case Be.MixedReadWrite:return{mixedReadWrite:t};case Be.Read:return{read:t}}return t}function Xy(t,e,r,n){let i=pT(t,n),o=e.get(uh),s=o.handler??=new Wd,a=[],c=[],u=()=>{for(let f of c)s.unregister(f);l()},l=e.get(Cr).onDestroy(u),d=(f,h)=>{if(!h)return;let m=r?(...w)=>{u(),h(...w)}:h,_=rt(e,()=>new Gd(f,a,m));s.register(_),c.push(_)};return d(Be.EarlyRead,i.earlyRead),d(Be.Write,i.write),d(Be.MixedReadWrite,i.mixedReadWrite),d(Be.Read,i.read),{destroy:u}}var Gd=class{constructor(e,r,n){this.phase=e,this.pipelinedArgs=r,this.callbackFn=n,this.zone=g(P),this.errorHandler=g(Te,{optional:!0}),g(hi,{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)}}},Wd=class{constructor(){this.executingCallbacks=!1,this.buckets={[Be.EarlyRead]:new Set,[Be.Write]:new Set,[Be.MixedReadWrite]:new Set,[Be.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()}},uh=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}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 ec(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Dy(t,r,o.join(" "))}}function _T(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=ET;let t=e;return t})();function ET(){let t=_e();return eD(t,R())}var IT=Pt,Jy=class extends IT{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Ei(this._hostTNode,this._hostLView)}get injector(){return new mr(this._hostTNode,this._hostLView)}get parentInjector(){let e=$f(this._hostTNode,this._hostLView);if(wb(e)){let r=Ga(e,this._hostLView),n=za(e),i=r[A].data[n+8];return new mr(i,r)}else return new mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=fv(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=fi(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,di(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!HC(e),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let c=s?e:new gi(Hn(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let _=(s?u:this.parentInjector).get(Fe,null);_&&(o=_)}let l=Hn(c.componentType??{}),d=fi(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,i,f,o);return this.insertImpl(h.hostView,a,di(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(KC(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Se],u=new Jy(c,c[Ke],c[Se]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Uo(s,i,o,n),e.attachToViewContainerRef(),Fv(Jl(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=fv(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);n&&(ja(Jl(this._lContainer),r),Cc(n[A],n))}detach(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);return n&&ja(Jl(this._lContainer),r)!=null?new wr(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function fv(t){return t[Ba]}function Jl(t){return t[Ba]||(t[Ba]=[])}function eD(t,e){let r,n=e[t.index];return Jt(n)?r=n:(r=Ay(n,e,null,t),e[t.index]=r,Tc(e,r)),tD(r,e,t,n),new Jy(r,t,e)}function CT(t,e){let r=t[te],n=r.createComment(""),i=ot(e,t),o=Qf(r,i);return Ka(r,o,n,GM(r,i),!1),n}var tD=nD,lh=()=>!1;function xT(t,e,r){return lh(t,e,r)}function nD(t,e,r,n){if(t[mn])return;let i;r.type&8?i=Ye(n):i=CT(e,r),t[mn]=i}function MT(t,e,r){if(t[mn]&&t[_o])return!0;let n=r[gt],i=e.index-oe;if(!n||Px(e)||wc(n,i))return!1;let s=Sd(n,i),a=n.data[Gf]?.[i],[c,u]=tT(s,a);return t[mn]=c,t[_o]=u,!0}function ST(t,e,r,n){lh(t,r,e)||nD(t,e,r,n)}function TT(){tD=ST,lh=MT}var Zd=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Yd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let u=o[a+1],l=e[-c];for(let d=Me;de.trim())}function oD(t,e,r){t.queries===null&&(t.queries=new Kd),t.queries.track(new Qd(e,r))}function jT(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function dh(t,e){return t.queries.getByIndex(e)}function VT(t,e){let r=t[A],n=dh(r,e);return n.crossesNgTemplate?Xd(r,t,e,[]):rD(r,t,n,e)}function Oc(t){return typeof t=="function"&&t[Bt]!==void 0}function _n(t,e){yt("NgSignals");let r=eg(t),n=r[Bt];return e?.equal&&(n.equal=e.equal),r.set=i=>_l(n,i),r.update=i=>tg(n,i),r.asReadonly=UT.bind(r),r}function UT(){let t=this[Bt];if(t.readonlyFn===void 0){let e=()=>this();e[Bt]=t,t.readonlyFn=e}return t.readonlyFn}function sD(t){return Oc(t)&&typeof t.set=="function"}function BT(t){return Object.getPrototypeOf(t.prototype).constructor}function be(t){let e=BT(t.type),r=!0,n=[t];for(;e;){let i;if(gn(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new I(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=xa(t.inputs),s.inputTransforms=xa(t.inputTransforms),s.declaredInputs=xa(t.declaredInputs),s.outputs=xa(t.outputs);let a=i.hostBindings;a&&WT(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&zT(t,c),u&>(t,u),$T(t,i),WI(t.outputs,i.outputs),gn(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=bo(i.hostAttrs,r=bo(r,i.hostAttrs))}}function xa(t){return t===si?{}:t===Oe?[]:t}function zT(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function GT(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function WT(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function st(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var Gn=class{},Io=class{};var Jd=class extends Gn{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tc(this);let i=zv(e);this._bootstrapComponents=uy(i.bootstrap),this._r3Injector=Nb(e,r,[{provide:Gn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver},...n],$e(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)}},ef=class extends Io{constructor(e){super(),this.moduleType=e}create(e){return new Jd(this.moduleType,e,[])}};var rc=class extends Gn{constructor(e){super(),this.componentFactoryResolver=new tc(this),this.instance=null;let r=new yo([...e.providers,{provide:Gn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver}],e.parent||Af(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Fc(t,e,r=null){return new rc({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function aD(t){return fh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function qT(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function JT(t){return(t&2)==2}function eA(t,e){return t&131071|e<<17}function tf(t){return t|2}function vi(t){return(t&131068)>>2}function ed(t,e){return t&-131069|e<<2}function tA(t){return(t&1)===1}function nf(t){return t|1}function nA(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Er(s),c=vi(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||To(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let f=Er(t[a+1]);t[n+1]=Ma(f,a),f!==0&&(t[f+1]=ed(t[f+1],n)),t[a+1]=eA(t[a+1],n)}else t[n+1]=Ma(a,0),a!==0&&(t[a+1]=ed(t[a+1],n)),a=n;else t[n+1]=Ma(c,0),a===0?a=n:t[c+1]=ed(t[c+1],n),c=n;u&&(t[n+1]=tf(t[n+1])),hv(t,l,n,!0),hv(t,l,n,!1),rA(e,l,t,n,o),s=Ma(a,c),o?e.classBindings=s:e.styleBindings=s}function rA(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&To(o,e)>=0&&(r[n+1]=nf(r[n+1]))}function hv(t,e,r,n){let i=t[r+1],o=e===null,s=n?Er(i):vi(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];iA(c,e)&&(a=!0,t[s+1]=n?nf(u):tf(u)),s=n?Er(u):vi(u)}a&&(t[r+1]=n?tf(i):nf(i))}function iA(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?To(t,e)>=0:!1}var ve={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lD(t){return t.substring(ve.key,ve.keyEnd)}function oA(t){return t.substring(ve.value,ve.valueEnd)}function sA(t){return hD(t),dD(t,bi(t,0,ve.textEnd))}function dD(t,e){let r=ve.textEnd;return r===e?-1:(e=ve.keyEnd=cA(t,ve.key=e,r),bi(t,e,r))}function aA(t){return hD(t),fD(t,bi(t,0,ve.textEnd))}function fD(t,e){let r=ve.textEnd,n=ve.key=bi(t,e,r);return r===n?-1:(n=ve.keyEnd=uA(t,n,r),n=pv(t,n,r,58),n=ve.value=bi(t,n,r),n=ve.valueEnd=lA(t,n,r),pv(t,n,r,59))}function hD(t){ve.key=0,ve.keyEnd=0,ve.value=0,ve.valueEnd=0,ve.textEnd=t.length}function bi(t,e,r){for(;e32;)e++;return e}function uA(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function pv(t,e,r,n){return e=bi(t,e,r),e32&&(a=s),o=i,i=n,n=c&-33}return a}function mv(t,e,r,n){let i=-1,o=r;for(;o=0;r=fD(e,r))yD(t,lD(e),oA(e))}function Si(t){mh(vA,mD,t,!0)}function mD(t,e){for(let r=sA(e);r>=0;r=dD(e,r))So(t,lD(e),!0)}function gD(t,e,r,n){let i=R(),o=ce(),s=fb(2);if(o.firstUpdatePass&&bD(o,t,s,n),e!==bt&&tt(i,s,e)){let a=o.data[qn()];DD(o,a,i,i[te],t,i[s+1]=yA(e,r),n,s)}}function mh(t,e,r,n){let i=ce(),o=fb(2);i.firstUpdatePass&&bD(i,null,o,n);let s=R();if(r!==bt&&tt(s,o,r)){let a=i.data[qn()];if(_D(a,n)&&!vD(i,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=ad(c,r||"")),rf(i,a,s,r,n)}else bA(i,a,s,s[te],s[o+1],s[o+1]=gA(t,e,r),n,o)}}function vD(t,e){return e>=t.expandoStartIndex}function bD(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[qn()],s=vD(t,r);_D(o,n)&&e===null&&!s&&(e=!1),e=fA(i,o,e,n),nA(i,o,e,r,s,n)}}function fA(t,e,r,n){let i=jf(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=td(null,t,e,r,n),r=Co(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=td(i,t,e,r,n),o===null){let c=hA(t,e,n);c!==void 0&&Array.isArray(c)&&(c=td(null,t,e,c[1],n),c=Co(c,e.attrs,n),pA(t,e,n,c))}else o=mA(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function hA(t,e,r){let n=r?e.classBindings:e.styleBindings;if(vi(n)!==0)return t[Er(n)]}function pA(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Er(i)]=n}function mA(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[i+1];f===bt&&(f=d?Oe:void 0);let h=d?Hl(f,n):l===n?f:void 0;if(u&&!oc(h)&&(h=Hl(c,n)),oc(h)&&(a=h,s))return a;let m=t[i+1];i=s?Er(m):vi(m)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=Hl(c,n))}return a}function oc(t){return t!==void 0}function yA(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=$e(vt(t)))),t}function _D(t,e){return(t.flags&(e?8:16))!==0}function Zz(t,e,r){let n=R(),i=ph(n,t,e,r);mh(So,mD,i,!0)}var of=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function nd(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function DA(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let u=t.at(o),l=e[o],d=nd(o,u,o,l,r);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let f=t.at(s),h=e[c],m=nd(s,f,c,h,r);if(m!==0){m<0&&t.updateValue(s,h),s--,c--;continue}let _=r(o,u),w=r(s,f),E=r(o,l);if(Object.is(E,w)){let k=r(c,h);Object.is(k,_)?(t.swap(o,s),t.updateValue(s,h),c--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(n??=new sc,i??=bv(t,o,s,r),sf(t,n,o,E))t.updateValue(o,l),o++,s++;else if(i.has(E))n.set(_,t.detach(o)),s--;else{let k=t.create(o,e[o]);t.attach(o,k),o++,s++}}for(;o<=c;)vv(t,n,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),u=c.next();for(;!u.done&&o<=s;){let l=t.at(o),d=u.value,f=nd(o,l,o,d,r);if(f!==0)f<0&&t.updateValue(o,d),o++,u=c.next();else{n??=new sc,i??=bv(t,o,s,r);let h=r(o,d);if(sf(t,n,o,h))t.updateValue(o,d),o++,s++,u=c.next();else if(!i.has(h))t.attach(o,t.create(o,d)),o++,s++,u=c.next();else{let m=r(o,l);n.set(m,t.detach(o)),s--}}}for(;!u.done;)vv(t,n,r,t.length,u.value),u=c.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(c=>{t.destroy(c)})}function sf(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function vv(t,e,r,n,i){if(sf(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function bv(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var sc=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 n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function Pc(t,e){yt("NgControlFlow");let r=R(),n=Wn(),i=r[n]!==bt?r[n]:-1,o=i!==-1?ac(r,oe+i):void 0,s=0;if(tt(r,n,t)){let a=$(null);try{if(o!==void 0&&Ly(o,s),t!==-1){let c=oe+t,u=ac(r,c),l=lf(r[A],c),d=fi(u,l.tView.ssrId),f=Vo(r,l,e,{dehydratedView:d});Uo(u,f,s,di(l,d))}}finally{$(a)}}else if(o!==void 0){let a=Py(o,s);a!==void 0&&(a[De]=e)}}var af=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Me}};function Yz(t,e){return e}var cf=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Kz(t,e,r,n,i,o,s,a,c,u,l,d,f){yt("NgControlFlow");let h=R(),m=ce(),_=c!==void 0,w=R(),E=a?s.bind(w[He][De]):s,k=new cf(_,E);w[oe+t]=k,ic(h,m,t+1,e,r,n,i,zn(m.consts,o)),_&&ic(h,m,t+2,c,u,l,d,zn(m.consts,f))}var uf=class extends of{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Me}at(e){return this.getLView(e)[De].$implicit}attach(e,r){let n=r[gt];this.needsIndexUpdate||=e!==this.length,Uo(this.lContainer,r,e,di(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,_A(this.lContainer,e)}create(e,r){let n=fi(this.lContainer,this.templateTNode.tView.ssrId),i=Vo(this.hostLView,this.templateTNode,new af(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Cc(e[A],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[De].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Zn(!0),Yf(n,i,yb()));function IA(t,e,r,n,i,o){let s=e[gt],a=!s||_i()||$o(r)||wc(s,o);if(Zn(a),a)return Yf(n,i,yb());let c=Nc(s,t,e,r);return qb(s,o)&&_c(s,o,c.nextSibling),s&&(Ob(r)||Fb(c))&&Ro(r)&&(rx(r),by(c)),c}function CA(){wD=IA}function xA(t,e,r,n,i){let o=e.consts,s=zn(o,n),a=xi(e,t,8,"ng-container",s);s!==null&&ec(a,s,!0);let c=zn(o,i);return ih(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function ED(t,e,r){let n=R(),i=ce(),o=t+oe,s=i.firstCreatePass?xA(o,i,n,e,r):i.data[o];Ir(s,!0);let a=CD(i,n,s,t);return n[o]=a,bc()&&xc(i,n,a,s),pt(a,n),gc(s)&&(th(i,n,s),eh(i,s,n)),r!=null&&nh(n,s),ED}function ID(){let t=_e(),e=ce();return Pf()?Lf():(t=t.parent,Ir(t,!1)),e.firstCreatePass&&(yc(e,t),Rf(t)&&e.queries.elementEnd(t)),ID}function MA(t,e,r){return ED(t,e,r),ID(),MA}var CD=(t,e,r,n)=>(Zn(!0),dy(e[te],""));function SA(t,e,r,n){let i,o=e[gt],s=!o||_i()||$o(r);if(Zn(s),s)return dy(e[te],"");let a=Nc(o,t,e,r),c=sM(o,n);return _c(o,n,a),i=Rc(c,a),i}function TA(){CD=SA}function Xz(){return R()}function gh(t,e,r){let n=R(),i=Wn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!0)}return gh}function AA(t,e,r){let n=R(),i=Wn();if(tt(n,i,e)){let o=ce(),s=wi(),a=jf(o.data),c=Fy(a,s,n);jo(o,s,n,t,e,c,r,!0)}return AA}var hr=void 0;function NA(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var RA=["en",[["a","p"],["AM","PM"],hr],[["AM","PM"],hr,hr],[["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"]],hr,[["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"]],hr,[["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}",hr,"{1} 'at' {0}",hr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",NA],rd={};function Dt(t){let e=OA(t),r=yv(e);if(r)return r;let n=e.split("-")[0];if(r=yv(n),r)return r;if(n==="en")return RA;throw new I(701,!1)}function yv(t){return t in rd||(rd[t]=ye.ng&&ye.ng.common&&ye.ng.common.locales&&ye.ng.common.locales[t]),rd[t]}var fe=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}(fe||{});function OA(t){return t.toLowerCase().replace(/_/g,"-")}var cc="en-US";var FA=cc;function kA(t){typeof t=="string"&&(FA=t.toLowerCase().replace(/_/g,"-"))}var PA=(t,e,r)=>{};function In(t,e,r,n){let i=R(),o=ce(),s=_e();return vh(o,i,i[te],s,t,e,n),In}function LA(t,e){let r=_e(),n=R(),i=ce(),o=jf(i.data),s=Fy(o,r,n);return vh(i,n,s,r,t,e),LA}function jA(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function vh(t,e,r,n,i,o,s){let a=gc(n),u=t.firstCreatePass&&Oy(t),l=e[De],d=Ry(e),f=!0;if(n.type&3||s){let _=ot(n,e),w=s?s(_):_,E=d.length,k=s?Z=>s(Ye(Z[n.index])):n.index,q=null;if(!s&&a&&(q=jA(t,e,i,n.index)),q!==null){let Z=q.__ngLastListenerFn__||q;Z.__ngNextListenerFn__=o,q.__ngLastListenerFn__=o,f=!1}else{o=_v(n,e,l,o),PA(_,i,o);let Z=r.listen(w,i,o);d.push(o,Z),u&&u.push(i,k,E,E+1)}}else o=_v(n,e,l,o);let h=n.outputs,m;if(f&&h!==null&&(m=h[i])){let _=m.length;if(_)for(let w=0;w<_;w+=2){let E=m[w],k=m[w+1],We=e[E][k].subscribe(o),pe=d.length;d.push(o,We),u&&u.push(i,n.index,pe,-(pe+1))}}}function Dv(t,e,r,n){let i=$(null);try{return qt(6,e,r),r(n)!==!1}catch(o){return ky(t,o),!1}finally{qt(7,e,r),$(i)}}function _v(t,e,r,n){return function i(o){if(o===Function)return n;let s=t.componentOffset>-1?Qt(t.index,e):e;ah(s,5);let a=Dv(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=Dv(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Lc(t=1){return fx(t)}function VA(t,e){let r=null,n=wC(t);for(let i=0;i=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Jz(t){let e=sx();return Ff(e,oe+t)}function bh(t,e=""){let r=R(),n=ce(),i=t+oe,o=n.firstCreatePass?xi(n,i,1,e,null):n.data[i],s=TD(n,r,o,e,t);r[i]=s,bc()&&xc(n,r,s,o),Ir(o,!1)}var TD=(t,e,r,n,i)=>(Zn(!0),ly(e[te],n));function HA(t,e,r,n,i){let o=e[gt],s=!o||_i()||$o(r)||wc(o,i);return Zn(s),s?ly(e[te],n):Nc(o,t,e,r)}function zA(){TD=HA}function GA(t){return Ho("",t,""),GA}function Ho(t,e,r){let n=R(),i=ph(n,t,e,r);return i!==bt&&IS(n,qn(),i),Ho}function WA(t,e,r){sD(e)&&(e=e());let n=R(),i=Wn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!1)}return WA}function e3(t,e){let r=sD(t);return r&&t.set(e),r}function qA(t,e){let r=R(),n=ce(),i=_e();return vh(n,r,r[te],i,t,e),qA}function ZA(t,e,r){let n=ce();if(n.firstCreatePass){let i=gn(t);df(r,n.data,n.blueprint,i,!0),df(e,n.data,n.blueprint,i,!1)}}function df(t,e,r,n,i){if(t=Ue(t),Array.isArray(t))for(let o=0;o>20;if(ai(t)||!t.multi){let h=new Dr(u,i,y),m=od(c,e,i?l:l+f,d);m===-1?(Dd(qa(a,s),o,c),id(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[m]=h,s[m]=h)}else{let h=od(c,e,l+f,d),m=od(c,e,l,l+f),_=h>=0&&r[h],w=m>=0&&r[m];if(i&&!w||!i&&!_){Dd(qa(a,s),o,c);let E=QA(i?KA:YA,r.length,i,n,u);!i&&w&&(r[m].providerFactory=E),id(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(E),s.push(E)}else{let E=AD(r[i?m:h],u,!i&&n);id(o,t,h>-1?h:m,E)}!i&&n&&w&&r[m].componentProviders++}}}function id(t,e,r,n){let i=ai(e),o=PC(e);if(i||o){let c=(o?Ue(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function AD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function od(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>ZA(n,i?i(t):t,e)}}var XA=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=qv(!1,n.type),o=i.length>0?Fc([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(p(Fe))});let t=e;return t})();function at(t){yt("NgStandalone"),t.getStandaloneInjector=e=>e.get(XA).getOrCreateStandaloneInjector(t)}function t3(t,e,r){let n=Oo()+t,i=R();return i[n]===bt?hh(i,n,r?e.call(r):e()):ZT(i,n)}function n3(t,e,r,n){return RD(R(),Oo(),t,e,r,n)}function r3(t,e,r,n,i){return OD(R(),Oo(),t,e,r,n,i)}function ND(t,e){let r=t[e];return r===bt?void 0:r}function RD(t,e,r,n,i,o){let s=e+r;return tt(t,s,i)?hh(t,s+1,o?n.call(o,i):n(i)):ND(t,s+1)}function OD(t,e,r,n,i,o,s){let a=e+r;return YT(t,a,i,o)?hh(t,a+2,s?n.call(s,i,o):n(i,o)):ND(t,a+2)}function i3(t,e){let r=ce(),n,i=t+oe;r.firstCreatePass?(n=JA(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=gr(n.type,!0)),s,a=qe(y);try{let c=Wa(!1),u=o();return Wa(c),$A(r,R(),i,u),u}finally{qe(a)}}function JA(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function o3(t,e,r){let n=t+oe,i=R(),o=Ff(i,n);return FD(i,n)?RD(i,Oo(),e,o.transform,r,o):o.transform(r)}function s3(t,e,r,n){let i=t+oe,o=R(),s=Ff(o,i);return FD(o,i)?OD(o,Oo(),e,s.transform,r,n,s):s.transform(r,n)}function FD(t,e){return t[A].data[e].pure}function a3(t,e){return Ac(t,e)}var Uc=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var yh=new v(""),zo=new v(""),Bc=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Dh||(eN(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(p(P),p($c),p(zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),$c=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Dh?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function eN(t){Dh=t}var Dh;function Xn(t){return!!t&&typeof t.then=="function"}function _h(t){return!!t&&typeof t.subscribe=="function"}var Hc=new v(""),kD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(Hc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Xn(s))n.push(s);else if(_h(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mr=new v("");function tN(){Jm(()=>{throw new I(600,!1)})}function nN(t){return t.isBoundToModule}var rN=10;function iN(t,e,r){try{let n=r();return Xn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var rn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Rb),this.afterRenderEffectManager=g(uh),this.zonelessEnabled=g(qy),this.externalTestViews=new Set,this.beforeRender=new B,this.afterTick=new B,this.componentTypes=[],this.components=[],this.isStable=g(en).hasPendingTasks.pipe(C(n=>!n)),this._injector=g(Fe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Ja;if(!this._injector.get(kD).done){let h=!o&&Hv(n),m=!1;throw new I(405,m)}let a;o?a=n:a=this._injector.get(pi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=nN(a)?void 0:this._injector.get(Gn),u=i||a.selector,l=a.create(ke.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(yh,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),sd(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new I(101,!1);let i=$(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,$(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(mi,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;owo(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>wo(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;sd(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Mr,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>sd(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function sd(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var Sa;function zc(t){Sa??=new WeakMap;let e=Sa.get(t);if(e)return e;let r=t.isStable.pipe(Nt(n=>n)).toPromise().then(()=>{});return Sa.set(t,r),t.onDestroy(()=>Sa?.delete(t)),r}function oN(t,e,r,n){if(!r&&!wo(t))return;Uy(t,e,r&&!n?0:1)}var hf=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Gc=(()=>{let e=class e{compileModuleSync(n){return new ef(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=zv(n),s=uy(o.declarations).reduce((a,c)=>{let u=Hn(c);return u&&a.push(new gi(u)),a},[]);return new hf(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sN=(()=>{let e=class e{constructor(){this.zone=g(P),this.changeDetectionScheduler=g(hi),this.applicationRef=g(rn)}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(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aN({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new P(uN()),[{provide:P,useFactory:t},{provide:hn,multi:!0,useFactory:()=>{let r=g(sN,{optional:!0});return()=>r.initialize()}},{provide:hn,multi:!0,useFactory:()=>{let r=g(lN);return()=>{r.initialize()}}},{provide:Rb,useFactory:cN},e===!0?{provide:Zy,useValue:!0}:[]]}function cN(){let t=g(P),e=g(Te);return r=>t.runOutsideAngular(()=>e.handleError(r))}function uN(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var lN=(()=>{let e=class e{constructor(){this.subscription=new ae,this.initialized=!1,this.zone=g(P),this.pendingTasks=g(en)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{P.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var dN=(()=>{let e=class e{constructor(){this.appRef=g(rn),this.taskService=g(en),this.ngZone=g(P),this.zonelessEnabled=g(qy),this.disableScheduling=g(Zy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ae,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 zd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){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 i=this.useMicrotaskScheduler?av:Yy;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&P.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,av(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fN(){return typeof $localize<"u"&&$localize.locale||cc}var Go=new v("",{providedIn:"root",factory:()=>g(Go,U.Optional|U.SkipSelf)||fN()});var PD=new v("");var ka=null;function hN(t=[],e){return ke.create({name:e,providers:[{provide:mc,useValue:"platform"},{provide:PD,useValue:new Set([()=>ka=null])},...t]})}function pN(t=[]){if(ka)return ka;let e=hN(t);return ka=e,tN(),mN(e),e}function mN(t){t.get(zf,null)?.forEach(r=>r())}function wh(){return!1}var wt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=gN;let t=e;return t})();function gN(t){return vN(_e(),R(),(t&16)===16)}function vN(t,e,r){if(Ro(t)&&!r){let n=Qt(t.index,e);return new wr(n,n)}else if(t.type&175){let n=e[He];return new wr(n,e)}return null}var pf=class{constructor(){}supports(e){return aD(e)}create(e){return new mf(e)}},bN=(t,e)=>e,mf=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||bN}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;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,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new gf(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),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,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new uc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._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 uc),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}},gf=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}},vf=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 n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},uc=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new vf,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.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 wv(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{if(r&&r.key===i)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(i,n);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._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 i=this._records.get(e);this._maybeAddToChanges(i,r);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let n=new Df(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_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(n=>r(e[n],n))}},Df=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 Ev(){return new Eh([new pf])}var Eh=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Ev()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Ev});let t=e;return t})();function Iv(){return new Wc([new bf])}var Wc=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Iv()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Iv});let t=e;return t})();var LD=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(p(rn))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function jD(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=pN(n),o=[aN({}),{provide:hi,useExisting:dN},...r||[]],a=new rc({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(P);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(Te,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:h=>{u.handleError(h)}})});let d=()=>a.destroy(),f=i.get(PD);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),iN(u,c,()=>{let h=a.get(kD);return h.runInitializers(),h.donePromise.then(()=>{let m=a.get(Go,cc);kA(m||cc);let _=a.get(rn);return e!==void 0&&_.bootstrap(e),_})})})}catch(e){return Promise.reject(e)}}var VD=new v("");var Cv=!1;function yN(){Cv||(Cv=!0,nM(),CA(),zA(),TA(),XT(),TT(),rT(),iS())}function DN(t,e){return zc(t)}function UD(){return yn([{provide:wa,useFactory:()=>{let t=!0;return ni()&&(t=!!g(Ii,{optional:!0})?.get(Gb,null)),t&&yt("NgHydration"),t}},{provide:hn,useValue:()=>{KS(!1),ni()&&g(wa)&&(_N(),yN())},multi:!0},{provide:Yb,useFactory:()=>ni()&&g(wa)},{provide:Mr,useFactory:()=>{if(ni()&&g(wa)){let t=g(rn),e=g(ke);return()=>{DN(t,e).then(()=>{eT(t)})}}return()=>{}},multi:!0}])}function _N(){let t=Dc(),e;for(let r of t.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&r.textContent?.trim()===eM){e=r;break}if(!e)throw new I(-507,!1)}function Ee(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ih(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function on(t,e){yt("NgSignals");let r=Km(t);return e?.equal&&(r[Bt].equal=e.equal),r}function ct(t){let e=$(null);try{return t()}finally{$(e)}}var wN=new v("",{providedIn:"root",factory:()=>g(EN)}),EN=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new _f});let t=e;return t})(),_f=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(en),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 n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.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()}},wf=class{constructor(e,r,n,i,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=o,this.watcher=rg(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Te,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function qc(t,e){yt("NgSignals"),!e?.injector&&Ao(qc);let r=e?.injector??g(ke),n=e?.manualCleanup!==!0?r.get(Cr):null,i=new wf(r.get(wN),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),o=r.get(wt,null,{optional:!0});return!o||!(o._lView[F]&8)?i.watcher.notify():(o._lView[Aa]??=[]).push(i.watcher.notify),i}function BD(t){let e=Hn(t);if(!e)return null;let r=new gi(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 YD=null;function sn(){return YD}function KD(t){YD??=t}var nu=class{};var W=new v(""),Ph=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(IN),providedIn:"platform"});let t=e;return t})(),QD=new v(""),IN=(()=>{let e=class e extends Ph{constructor(){super(),this._doc=g(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sn().getBaseHref(this._doc)}onPopState(n){let i=sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Lh(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,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function xn(t){return t&&t[0]!=="?"?"?"+t:t}var Sn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(jh),providedIn:"root"});let t=e;return t})(),XD=new v(""),jh=(()=>{let e=class e extends Sn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Lh(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+xn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(Ph),p(XD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),JD=(()=>{let e=class e extends Sn{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Lh(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(Ph),p(XD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ai=(()=>{let e=class e{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=MN($D(HD(i))),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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+xn(i))}normalize(n){return e.stripTrailingSlash(xN(this._basePath,HD(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+xn(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+xn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=xn,e.joinWithSlash=Lh,e.stripTrailingSlash=$D,e.\u0275fac=function(i){return new(i||e)(p(Sn))},e.\u0275prov=D({token:e,factory:()=>CN(),providedIn:"root"});let t=e;return t})();function CN(){return new Ai(p(Sn))}function xN(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function HD(t){return t.replace(/\/index.html$/,"")}function MN(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var ze=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ze||{}),se=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(se||{}),ut=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(ut||{}),Jn={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 SN(t){return Dt(t)[fe.LocaleId]}function TN(t,e,r){let n=Dt(t),i=[n[fe.DayPeriodsFormat],n[fe.DayPeriodsStandalone]],o=Et(i,e);return Et(o,r)}function AN(t,e,r){let n=Dt(t),i=[n[fe.DaysFormat],n[fe.DaysStandalone]],o=Et(i,e);return Et(o,r)}function NN(t,e,r){let n=Dt(t),i=[n[fe.MonthsFormat],n[fe.MonthsStandalone]],o=Et(i,e);return Et(o,r)}function RN(t,e){let n=Dt(t)[fe.Eras];return Et(n,e)}function Zc(t,e){let r=Dt(t);return Et(r[fe.DateFormat],e)}function Yc(t,e){let r=Dt(t);return Et(r[fe.TimeFormat],e)}function Kc(t,e){let n=Dt(t)[fe.DateTimeFormat];return Et(n,e)}function su(t,e){let r=Dt(t),n=r[fe.NumberSymbols][e];if(typeof n>"u"){if(e===Jn.CurrencyDecimal)return r[fe.NumberSymbols][Jn.Decimal];if(e===Jn.CurrencyGroup)return r[fe.NumberSymbols][Jn.Group]}return n}function e_(t){if(!t[fe.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[fe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ON(t){let e=Dt(t);return e_(e),(e[fe.ExtraData][2]||[]).map(n=>typeof n=="string"?xh(n):[xh(n[0]),xh(n[1])])}function FN(t,e,r){let n=Dt(t);e_(n);let i=[n[fe.ExtraData][0],n[fe.ExtraData][1]],o=Et(i,e)||[];return Et(o,r)||[]}function Et(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 xh(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var kN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},PN=/((?:[^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]*)/,Mn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Mn||{}),K=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}(K||{}),Y=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Y||{});function LN(t,e,r,n){let i=WN(t);e=Cn(r,e)||e;let s=[],a;for(;e;)if(a=PN.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=i.getTimezoneOffset();n&&(c=n_(n,c),i=GN(i,n,!0));let u="";return s.forEach(l=>{let d=HN(l);u+=d?d(i,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ru(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function Cn(t,e){let r=SN(t);if(Qc[r]??={},Qc[r][e])return Qc[r][e];let n="";switch(e){case"shortDate":n=Zc(t,ut.Short);break;case"mediumDate":n=Zc(t,ut.Medium);break;case"longDate":n=Zc(t,ut.Long);break;case"fullDate":n=Zc(t,ut.Full);break;case"shortTime":n=Yc(t,ut.Short);break;case"mediumTime":n=Yc(t,ut.Medium);break;case"longTime":n=Yc(t,ut.Long);break;case"fullTime":n=Yc(t,ut.Full);break;case"short":let i=Cn(t,"shortTime"),o=Cn(t,"shortDate");n=Xc(Kc(t,ut.Short),[i,o]);break;case"medium":let s=Cn(t,"mediumTime"),a=Cn(t,"mediumDate");n=Xc(Kc(t,ut.Medium),[s,a]);break;case"long":let c=Cn(t,"longTime"),u=Cn(t,"longDate");n=Xc(Kc(t,ut.Long),[c,u]);break;case"full":let l=Cn(t,"fullTime"),d=Cn(t,"fullDate");n=Xc(Kc(t,ut.Full),[l,d]);break}return n&&(Qc[r][e]=n),n}function Xc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function Lt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===K.Hours)a===0&&r===-12&&(a=12);else if(t===K.FractionalSeconds)return jN(a,e);let c=su(s,Jn.MinusSign);return Lt(a,e,c,n,i)}}function VN(t,e){switch(t){case K.FullYear:return e.getFullYear();case K.Month:return e.getMonth();case K.Date:return e.getDate();case K.Hours:return e.getHours();case K.Minutes:return e.getMinutes();case K.Seconds:return e.getSeconds();case K.FractionalSeconds:return e.getMilliseconds();case K.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function ue(t,e,r=ze.Format,n=!1){return function(i,o){return UN(i,o,t,e,r,n)}}function UN(t,e,r,n,i,o){switch(r){case Y.Months:return NN(e,i,n)[t.getMonth()];case Y.Days:return AN(e,i,n)[t.getDay()];case Y.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let u=ON(e),l=FN(e,i,n),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,m]=f,_=s>=h.hours&&a>=h.minutes,w=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Mn.Short:return(i>=0?"+":"")+Lt(s,2,o)+Lt(Math.abs(i%60),2,o);case Mn.ShortGMT:return"GMT"+(i>=0?"+":"")+Lt(s,1,o);case Mn.Long:return"GMT"+(i>=0?"+":"")+Lt(s,2,o)+":"+Lt(Math.abs(i%60),2,o);case Mn.Extended:return n===0?"Z":(i>=0?"+":"")+Lt(s,2,o)+":"+Lt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var BN=0,tu=4;function $N(t){let e=ru(t,BN,1).getDay();return ru(t,0,1+(e<=tu?tu:tu+7)-e)}function t_(t){let e=t.getDay(),r=e===0?-3:tu-e;return ru(t.getFullYear(),t.getMonth(),t.getDate()+r)}function Mh(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=t_(r),s=$N(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Lt(i,t,su(n,Jn.MinusSign))}}function eu(t,e=!1){return function(r,n){let o=t_(r).getFullYear();return Lt(o,t,su(n,Jn.MinusSign),e)}}var Sh={};function HN(t){if(Sh[t])return Sh[t];let e;switch(t){case"G":case"GG":case"GGG":e=ue(Y.Eras,se.Abbreviated);break;case"GGGG":e=ue(Y.Eras,se.Wide);break;case"GGGGG":e=ue(Y.Eras,se.Narrow);break;case"y":e=he(K.FullYear,1,0,!1,!0);break;case"yy":e=he(K.FullYear,2,0,!0,!0);break;case"yyy":e=he(K.FullYear,3,0,!1,!0);break;case"yyyy":e=he(K.FullYear,4,0,!1,!0);break;case"Y":e=eu(1);break;case"YY":e=eu(2,!0);break;case"YYY":e=eu(3);break;case"YYYY":e=eu(4);break;case"M":case"L":e=he(K.Month,1,1);break;case"MM":case"LL":e=he(K.Month,2,1);break;case"MMM":e=ue(Y.Months,se.Abbreviated);break;case"MMMM":e=ue(Y.Months,se.Wide);break;case"MMMMM":e=ue(Y.Months,se.Narrow);break;case"LLL":e=ue(Y.Months,se.Abbreviated,ze.Standalone);break;case"LLLL":e=ue(Y.Months,se.Wide,ze.Standalone);break;case"LLLLL":e=ue(Y.Months,se.Narrow,ze.Standalone);break;case"w":e=Mh(1);break;case"ww":e=Mh(2);break;case"W":e=Mh(1,!0);break;case"d":e=he(K.Date,1);break;case"dd":e=he(K.Date,2);break;case"c":case"cc":e=he(K.Day,1);break;case"ccc":e=ue(Y.Days,se.Abbreviated,ze.Standalone);break;case"cccc":e=ue(Y.Days,se.Wide,ze.Standalone);break;case"ccccc":e=ue(Y.Days,se.Narrow,ze.Standalone);break;case"cccccc":e=ue(Y.Days,se.Short,ze.Standalone);break;case"E":case"EE":case"EEE":e=ue(Y.Days,se.Abbreviated);break;case"EEEE":e=ue(Y.Days,se.Wide);break;case"EEEEE":e=ue(Y.Days,se.Narrow);break;case"EEEEEE":e=ue(Y.Days,se.Short);break;case"a":case"aa":case"aaa":e=ue(Y.DayPeriods,se.Abbreviated);break;case"aaaa":e=ue(Y.DayPeriods,se.Wide);break;case"aaaaa":e=ue(Y.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":e=ue(Y.DayPeriods,se.Abbreviated,ze.Standalone,!0);break;case"bbbb":e=ue(Y.DayPeriods,se.Wide,ze.Standalone,!0);break;case"bbbbb":e=ue(Y.DayPeriods,se.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":e=ue(Y.DayPeriods,se.Abbreviated,ze.Format,!0);break;case"BBBB":e=ue(Y.DayPeriods,se.Wide,ze.Format,!0);break;case"BBBBB":e=ue(Y.DayPeriods,se.Narrow,ze.Format,!0);break;case"h":e=he(K.Hours,1,-12);break;case"hh":e=he(K.Hours,2,-12);break;case"H":e=he(K.Hours,1);break;case"HH":e=he(K.Hours,2);break;case"m":e=he(K.Minutes,1);break;case"mm":e=he(K.Minutes,2);break;case"s":e=he(K.Seconds,1);break;case"ss":e=he(K.Seconds,2);break;case"S":e=he(K.FractionalSeconds,1);break;case"SS":e=he(K.FractionalSeconds,2);break;case"SSS":e=he(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Jc(Mn.Short);break;case"ZZZZZ":e=Jc(Mn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Jc(Mn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Jc(Mn.Long);break;default:return null}return Sh[t]=e,e}function n_(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function zN(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function GN(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=n_(e,i);return zN(t,n*(o-i))}function WN(t){if(zD(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[i,o=1,s=1]=t.split("-").map(a=>+a);return ru(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(kN))return qN(n)}let e=new Date(t);if(!zD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function qN(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,u),e}function zD(t){return t instanceof Date&&!isNaN(t.valueOf())}function au(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Th=/\s+/,GD=[],M3=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=GD,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Th):GD}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Th):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(Th).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(tn))},e.\u0275dir=G({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Ah=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}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}},S3=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Ah(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),WD(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);WD(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn),y(Eh))},e.\u0275dir=G({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function WD(t,e){t.context.$implicit=e.item}var T3=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Nh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){qD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){qD("ngIfElse",n),this._elseTemplateRef=n,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(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn))},e.\u0275dir=G({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Nh=class{constructor(){this.$implicit=null,this.ngIf=null}};function qD(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${$e(e)}'.`)}var iu=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()}},r_=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let i=n===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let i of this._defaultViews)i.enforceState(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),A3=(()=>{let e=class e{constructor(n,i,o){this.ngSwitch=o,o._addCase(),this._view=new iu(n,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn),y(r_,9))},e.\u0275dir=G({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),N3=(()=>{let e=class e{constructor(n,i,o){o._addDefault(new iu(n,i))}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn),y(r_,9))},e.\u0275dir=G({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var R3=(()=>{let e=class e{constructor(n,i,o){this._ngEl=n,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,i){let[o,s]=n.split("."),a=o.indexOf("-")===-1?void 0:Xt.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(n){n.forEachRemovedItem(i=>this._setStyle(i.key,null)),n.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),n.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(Wc),y(tn))},e.\u0275dir=G({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),O3=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(y(Pt))},e.\u0275dir=G({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[it]});let t=e;return t})();function i_(t,e){return new I(2100,!1)}var Rh=class{createSubscription(e,r){return ct(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){ct(()=>e.unsubscribe())}},Oh=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},ZN=new Oh,YN=new Rh,F3=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Xn(n))return ZN;if(_h(n))return YN;throw i_(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(y(wt,16))},e.\u0275pipe=pc({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var KN="mediumDate",QN=new v(""),XN=new v(""),k3=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??KN,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return LN(n,a,s||this.locale,c)}catch(a){throw i_(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(y(Go,16),y(QN,24),y(XN,24))},e.\u0275pipe=pc({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function JN(t,e){return{key:t,value:e}}var P3=(()=>{let e=class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=ZD}transform(n,i=ZD){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),s=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(JN(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}};e.\u0275fac=function(i){return new(i||e)(y(Wc,16))},e.\u0275pipe=pc({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function ZD(t,e){let r=t.key,n=e.key;if(r===n)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(r===null)return 1;if(n===null)return-1;if(typeof r=="string"&&typeof n=="string")return r{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),Vh="browser",eR="server";function Uh(t){return t===Vh}function Wo(t){return t===eR}var s_=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Uh(g(Qe))?new Fh(g(W),window):new kh});let t=e;return t})(),Fh=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=tR(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function tR(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 n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var kh=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Ti=class{};var Zo=class{},lu=class{},cn=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 n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,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,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}: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 n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);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 n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var $h=class{encodeKey(e){return c_(e)}encodeValue(e){return c_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function nR(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var rR=/%(\d[a-f0-9])/gi,iR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function c_(t){return encodeURIComponent(t).replace(rR,(e,r)=>iR[r]??e)}function cu(t){return`${t}`}var an=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new $h,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nR(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(cu):[cu(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).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(cu(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(cu(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Hh=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 oR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function u_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function l_(t){return typeof Blob<"u"&&t instanceof Blob}function d_(t){return typeof FormData<"u"&&t instanceof FormData}function sR(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var qo=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(oR(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,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 cn,this.context??=new Hh,!this.params)this.params=new an,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(h,e.setHeaders[h]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},tr=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}(tr||{}),Yo=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new cn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},du=class t extends Yo{constructor(e={}){super(e),this.type=tr.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})}},Sr=class t extends Yo{constructor(e={}){super(e),this.type=tr.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})}},er=class extends Yo{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}},E_=200,aR=204;function Bh(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 Wh=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof qo)s=n;else{let u;o.headers instanceof cn?u=o.headers:u=new cn(o.headers);let l;o.params&&(o.params instanceof an?l=o.params:l=new an({fromObject:o.params})),s=new qo(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=x(s).pipe(Wt(u=>this.handler.handle(u)));if(n instanceof qo||o.observe==="events")return a;let c=a.pipe(le(u=>u instanceof Sr));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(C(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(C(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new an().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Bh(o,i))}post(n,i,o={}){return this.request("POST",n,Bh(o,i))}put(n,i,o={}){return this.request("PUT",n,Bh(o,i))}};e.\u0275fac=function(i){return new(i||e)(p(Zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),cR=/^\)\]\}',?\n/,uR="X-Request-URL";function f_(t){if(t.url)return t.url;let e=uR.toLocaleLowerCase();return t.headers.get(e)}var lR=(()=>{let e=class e{constructor(){this.fetchImpl=g(zh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=g(P)}handle(n){return new N(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(Gh,s=>i.error(new er({error:s}))),()=>o.abort()})}doRequest(n,i,o){return Vr(this,null,function*(){let s=this.createRequestInit(n),a;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,b({signal:i},s)));dR(m),o.next({type:tr.Sent}),a=yield m}catch(m){o.error(new er({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let c=new cn(a.headers),u=a.statusText,l=f_(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&o.next(new du({headers:c,status:d,statusText:u,url:l})),a.body){let m=a.headers.get("content-length"),_=[],w=a.body.getReader(),E=0,k,q,Z=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Vr(this,null,function*(){for(;;){let{done:pe,value:ft}=yield w.read();if(pe)break;if(_.push(ft),E+=ft.length,n.reportProgress){q=n.responseType==="text"?(q??"")+(k??=new TextDecoder).decode(ft,{stream:!0}):void 0;let jr=()=>o.next({type:tr.DownloadProgress,total:m?+m:void 0,loaded:E,partialText:q});Z?Z.run(jr):jr()}}}));let We=this.concatChunks(_,E);try{let pe=a.headers.get("Content-Type")??"";f=this.parseBody(n,We,pe)}catch(pe){o.error(new er({error:pe,headers:new cn(a.headers),status:a.status,statusText:a.statusText,url:f_(a)??n.urlWithParams}));return}}d===0&&(d=f?E_:0),d>=200&&d<300?(o.next(new Sr({body:f,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new er({error:f,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(cR,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),n.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),zh=class{};function Gh(){}function dR(t){t.then(Gh,Gh)}function I_(t,e){return e(t)}function fR(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function hR(t,e,r){return(n,i)=>rt(r,()=>e(n,o=>t(o,i)))}var pR=new v(""),qh=new v(""),C_=new v(""),x_=new v("",{providedIn:"root",factory:()=>!0});function mR(){let t=null;return(e,r)=>{t===null&&(t=(g(pR,{optional:!0})??[]).reduceRight(fR,I_));let n=g(en);if(g(x_)){let o=n.add();return t(e,r).pipe(ht(()=>n.remove(o)))}else return t(e,r)}}var h_=(()=>{let e=class e extends Zo{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(en),this.contributeToStability=g(x_)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(qh),...this.injector.get(C_,[])]));this.chain=i.reduceRight((o,s)=>hR(o,s,this.injector),I_)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ht(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(p(lu),p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var gR=/^\)\]\}',?\n/;function vR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var p_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?re(i.\u0275loadImpl()):x(null)).pipe(Ve(()=>new N(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,E)=>a.setRequestHeader(w,E.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let w=a.statusText||"OK",E=new cn(a.getAllResponseHeaders()),k=vR(a)||n.url;return u=new du({headers:E,status:a.status,statusText:w,url:k}),u},d=()=>{let{headers:w,status:E,statusText:k,url:q}=l(),Z=null;E!==aR&&(Z=typeof a.response>"u"?a.responseText:a.response),E===0&&(E=Z?E_:0);let We=E>=200&&E<300;if(n.responseType==="json"&&typeof Z=="string"){let pe=Z;Z=Z.replace(gR,"");try{Z=Z!==""?JSON.parse(Z):null}catch(ft){Z=pe,We&&(We=!1,Z={error:ft,text:Z})}}We?(s.next(new Sr({body:Z,headers:w,status:E,statusText:k,url:q||void 0})),s.complete()):s.error(new er({error:Z,headers:w,status:E,statusText:k,url:q||void 0}))},f=w=>{let{url:E}=l(),k=new er({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:E||void 0});s.error(k)},h=!1,m=w=>{h||(s.next(l()),h=!0);let E={type:tr.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),n.responseType==="text"&&a.responseText&&(E.partialText=a.responseText),s.next(E)},_=w=>{let E={type:tr.UploadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),s.next(E)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",m),c!==null&&a.upload&&a.upload.addEventListener("progress",_)),a.send(c),s.next({type:tr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",m),c!==null&&a.upload&&a.upload.removeEventListener("progress",_)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(p(Ti))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),M_=new v(""),bR="XSRF-TOKEN",yR=new v("",{providedIn:"root",factory:()=>bR}),DR="X-XSRF-TOKEN",_R=new v("",{providedIn:"root",factory:()=>DR}),fu=class{},wR=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=au(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(p(W),p(Qe),p(yR))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function ER(t,e){let r=t.url.toLowerCase();if(!g(M_)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(fu).getToken(),i=g(_R);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var S_=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}(S_||{});function IR(t,e){return{\u0275kind:t,\u0275providers:e}}function Z3(...t){let e=[Wh,p_,h_,{provide:Zo,useExisting:h_},{provide:lu,useFactory:()=>g(lR,{optional:!0})??g(p_)},{provide:qh,useValue:ER,multi:!0},{provide:M_,useValue:!0},{provide:fu,useClass:wR}];for(let r of t)e.push(...r.\u0275providers);return yn(e)}var m_=new v("");function Y3(){return IR(S_.LegacyInterceptors,[{provide:m_,useFactory:mR},{provide:qh,useExisting:m_,multi:!0}])}var CR=new v(""),g_="b",v_="h",b_="s",y_="st",D_="u",__="rt",uu=new v(""),xR=["GET","HEAD"];function MR(t,e){let h=g(uu),{isCacheActive:r}=h,n=Um(h,["isCacheActive"]),{transferCache:i,method:o}=t;if(!r||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!xR.includes(o)||!n.includeRequestsWithAuthHeaders&&SR(t)||n.filter?.(t)===!1)return e(t);let s=g(Ii),a=g(CR,{optional:!0}),c=Wo(g(Qe));if(a&&!c)throw new I(2803,!1);let u=c&&a?RR(t.url,a):t.url,l=AR(t,u),d=s.get(l,null),f=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(f=i.includeHeaders),d){let{[g_]:m,[__]:_,[v_]:w,[b_]:E,[y_]:k,[D_]:q}=d,Z=m;switch(_){case"arraybuffer":Z=new TextEncoder().encode(m).buffer;break;case"blob":Z=new Blob([m]);break}let We=new cn(w);return x(new Sr({body:Z,headers:We,status:E,statusText:k,url:q}))}return e(t).pipe(ee(m=>{m instanceof Sr&&c&&s.set(l,{[g_]:m.body,[v_]:TR(m.headers,f),[b_]:m.status,[y_]:m.statusText,[D_]:u,[__]:t.responseType})}))}function SR(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function TR(t,e){if(!e)return{};let r={};for(let n of e){let i=t.getAll(n);i!==null&&(r[n]=i)}return r}function w_(t){return[...t.keys()].sort().map(e=>`${e}=${t.getAll(e)}`).join("&")}function AR(t,e){let{params:r,method:n,responseType:i}=t,o=w_(r),s=t.serializeBody();s instanceof URLSearchParams?s=w_(s):typeof s!="string"&&(s="");let a=[n,i,e,s,o].join("|"),c=NR(a);return c}function NR(t){let e=0;for(let r of t)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function T_(t){return[{provide:uu,useFactory:()=>(yt("NgHttpTransferCache"),b({isCacheActive:!0},t))},{provide:C_,useValue:MR,multi:!0,deps:[Ii,uu]},{provide:Mr,multi:!0,useFactory:()=>{let e=g(rn),r=g(uu);return()=>{zc(e).then(()=>{r.isCacheActive=!1})}}}]}function RR(t,e){let r=new URL(t,"resolve://").origin,n=e[r];return n?t.replace(r,n):t}var Kh=class extends nu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Qh=class t extends Kh{static makeCurrent(){KD(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}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=FR();return r==null?null:kR(r)}resetBaseElement(){Ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return au(document.cookie,e)}},Ko=null;function FR(){return Ko=Ko||document.querySelector("base"),Ko?Ko.getAttribute("href"):null}function kR(t){return new URL(t,document.baseURI).pathname}var Xh=class{addToWindow(e){ye.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new I(5103,!1);return o},ye.getAllAngularTestabilities=()=>e.getAllTestabilities(),ye.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=ye.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?sn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},PR=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),hu=new v(""),O_=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new I(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(p(hu),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qo=class{constructor(e){this._doc=e}},Zh="ng-app-id",F_=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wo(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Zh}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Zh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Zh,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(p(W),p(xr),p(ko,8),p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Yh={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"},tp=/%COMP%/g,k_="%COMP%",LR=`_nghost-${k_}`,jR=`_ngcontent-${k_}`,VR=!0,UR=new v("",{providedIn:"root",factory:()=>VR});function BR(t){return jR.replace(tp,t)}function $R(t){return LR.replace(tp,t)}function P_(t,e){return e.map(r=>r.replace(tp,t))}var A_=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Wo(c),this.defaultRenderer=new Xo(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Yt.ShadowDom&&(i=O(b({},i),{encapsulation:Yt.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof pu?o.applyToHost(n):o instanceof Jo&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Yt.Emulated:s=new pu(u,l,i,this.appId,d,a,c,f);break;case Yt.ShadowDom:return new Jh(u,l,n,i,a,c,this.nonce,f);default:s=new Jo(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(p(O_),p(F_),p(xr),p(UR),p(W),p(Qe),p(P),p(ko))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xo=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Yh[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(N_(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(N_(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new I(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Yh[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Yh[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Xt.DashCase|Xt.Important)?e.style.setProperty(r,n,i&Xt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Xt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=sn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function N_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Jh=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=P_(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}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)}},Jo=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?P_(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},pu=class extends Jo{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=BR(u),this.hostAttr=$R(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},HR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),zR=(()=>{let e=class e extends Qo{constructor(n){super(n),this.delegate=g(VD,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,i,o){return this.delegate.addEventListener(n,i,o)}removeEventListener(n,i,o){return this.delegate.removeEventListener(n,i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),R_=["alt","control","meta","shift"],GR={"\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"},WR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},qR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),R_.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=GR[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),R_.forEach(a=>{if(a!==o){let c=WR[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function l4(t,e){return jD(b({rootComponent:t},ZR(e)))}function ZR(t){return{appProviders:[...L_,...t?.providers??[]],platformProviders:XR}}function YR(){Qh.makeCurrent()}function KR(){return new Te}function QR(){return Ub(document),document}var XR=[{provide:Qe,useValue:Vh},{provide:zf,useValue:YR,multi:!0},{provide:W,useFactory:QR,deps:[]}];var JR=new v(""),eO=[{provide:zo,useClass:Xh,deps:[]},{provide:yh,useClass:Bc,deps:[P,$c,zo]},{provide:Bc,useClass:Bc,deps:[P,$c,zo]}],L_=[{provide:mc,useValue:"root"},{provide:Te,useFactory:KR,deps:[]},{provide:hu,useClass:HR,multi:!0,deps:[W,P,Qe]},{provide:hu,useClass:qR,multi:!0,deps:[W]},{provide:hu,useClass:zR,multi:!0},A_,F_,O_,{provide:mi,useExisting:A_},{provide:Ti,useClass:PR,deps:[]},[]],d4=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:xr,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(p(JR,12))},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[...L_,...eO],imports:[o_,LD]});let t=e;return t})();var j_=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var np=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=p(tO),o},providedIn:"root"});let t=e;return t})(),tO=(()=>{let e=class e extends np{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Pe.NONE:return i;case Pe.HTML:return Qn(i,"HTML")?vt(i):sy(this._doc,String(i)).toString();case Pe.STYLE:return Qn(i,"Style")?vt(i):i;case Pe.SCRIPT:if(Qn(i,"Script"))return vt(i);throw new I(5200,!1);case Pe.URL:return Qn(i,"URL")?vt(i):Ic(String(i));case Pe.RESOURCE_URL:if(Qn(i,"ResourceURL"))return vt(i);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(n){return Kb(n)}bypassSecurityTrustStyle(n){return Qb(n)}bypassSecurityTrustScript(n){return Xb(n)}bypassSecurityTrustUrl(n){return Jb(n)}bypassSecurityTrustResourceUrl(n){return ey(n)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ep=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t}(ep||{});function f4(...t){let e=[],r=new Set,n=r.has(ep.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of t)r.add(o),i.length&&e.push(i);return yn([[],UD(),r.has(ep.NoHttpTransferCache)||n?[]:T_({}),e])}var j="primary",ps=Symbol("RouteTitle"),ap=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 Pi(t){return new ap(t)}function nO(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function X_(t){return t.length>0?t[t.length-1]:null}function ir(t){return kl(t)?t:Xn(t)?re(Promise.resolve(t)):x(t)}var iO={exact:ew,subset:tw},J_={exact:oO,subset:sO,ignored:()=>!0};function U_(t,e,r){return iO[r.paths](t.root,e.root,r.matrixParams)&&J_[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function oO(t,e){return un(t,e)}function ew(t,e,r){if(!Ar(t.segments,e.segments)||!vu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ew(t.children[n],e.children[n],r))return!1;return!0}function sO(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Q_(t[r],e[r]))}function tw(t,e,r){return nw(t,e,e.segments,r)}function nw(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Ar(i,r)||e.hasChildren()||!vu(i,r,n))}else if(t.segments.length===r.length){if(!Ar(t.segments,r)||!vu(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!tw(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Ar(t.segments,i)||!vu(t.segments,i,n)||!t.children[j]?!1:nw(t.children[j],e,o,n)}}function vu(t,e,r){return e.every((n,i)=>J_[r](t[i].parameters,n.parameters))}var An=class{constructor(e=new J([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){return uO.serialize(this)}},J=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bu(this)}},Tr=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Pi(this.parameters),this._parameterMap}toString(){return iw(this)}};function aO(t,e){return Ar(t,e)&&t.every((r,n)=>un(r.parameters,e[n].parameters))}function Ar(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function cO(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===j&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==j&&(r=r.concat(e(i,n)))}),r}var ms=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new Li,providedIn:"root"});let t=e;return t})(),Li=class{parse(e){let r=new lp(e);return new An(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${es(e.root,!0)}`,n=fO(e.queryParams),i=typeof e.fragment=="string"?`#${lO(e.fragment)}`:"";return`${r}${n}${i}`}},uO=new Li;function bu(t){return t.segments.map(e=>iw(e)).join("/")}function es(t,e){if(!t.hasChildren())return bu(t);if(e){let r=t.children[j]?es(t.children[j],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==j&&n.push(`${i}:${es(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=cO(t,(n,i)=>i===j?[es(t.children[j],!1)]:[`${i}:${es(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[j]!=null?`${bu(t)}/${r[0]}`:`${bu(t)}/(${r.join("//")})`}}function rw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mu(t){return rw(t).replace(/%3B/gi,";")}function lO(t){return encodeURI(t)}function up(t){return rw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yu(t){return decodeURIComponent(t)}function B_(t){return yu(t.replace(/\+/g,"%20"))}function iw(t){return`${up(t.path)}${dO(t.parameters)}`}function dO(t){return Object.entries(t).map(([e,r])=>`;${up(e)}=${up(r)}`).join("")}function fO(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${mu(r)}=${mu(i)}`).join("&"):`${mu(r)}=${mu(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var hO=/^[^\/()?;#]+/;function rp(t){let e=t.match(hO);return e?e[0]:""}var pO=/^[^\/()?;=#]+/;function mO(t){let e=t.match(pO);return e?e[0]:""}var gO=/^[^=?&#]+/;function vO(t){let e=t.match(gO);return e?e[0]:""}var bO=/^[^&#]+/;function yO(t){let e=t.match(bO);return e?e[0]:""}var lp=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],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 n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[j]=new J(e,r)),n}parseSegment(){let e=rp(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(e),new Tr(yu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=mO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=rp(this.remaining);i&&(n=i,this.capture(n))}e[yu(r)]=yu(n)}parseQueryParam(e){let r=vO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=yO(this.remaining);s&&(n=s,this.capture(n))}let i=B_(r),o=B_(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=rp(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=j);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[j]:new J([],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 I(4011,!1)}};function ow(t){return t.segments.length>0?new J([],{[j]:t}):t}function sw(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=sw(i);if(n===j&&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[n]=o)}let r=new J(t.segments,e);return DO(r)}function DO(t){if(t.numberOfChildren===1&&t.children[j]){let e=t.children[j];return new J(t.segments.concat(e.segments),e.children)}return t}function Nr(t){return t instanceof An}function _O(t,e,r=null,n=null){let i=aw(t);return cw(i,e,r,n)}function aw(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new J(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=ow(n);return e??i}function cw(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return ip(i,i,i,r,n);let o=wO(e);if(o.toRoot())return ip(i,i,new J([],{}),r,n);let s=EO(o,i,t),a=s.processChildren?rs(s.segmentGroup,s.index,o.commands):lw(s.segmentGroup,s.index,o.commands);return ip(i,s.segmentGroup,a,r,n)}function Du(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ss(t){return typeof t=="object"&&t!=null&&t.outlets}function ip(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=uw(t,e,r);let a=ow(sw(s));return new An(a,o,i)}function uw(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=uw(o,e,r)}),new J(t.segments,n)}var _u=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Du(n[0]))throw new I(4003,!1);let i=n.find(ss);if(i&&i!==X_(n))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function wO(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new _u(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new _u(r,e,n)}var Oi=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function EO(t,e,r){if(t.isAbsolute)return new Oi(e,!0,0);if(!r)return new Oi(e,!1,NaN);if(r.parent===null)return new Oi(r,!0,0);let n=Du(t.commands[0])?0:1,i=r.segments.length-1+n;return IO(r,i,t.numberOfDoubleDots)}function IO(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new I(4005,!1);i=n.segments.length}return new Oi(n,!1,i-o)}function CO(t){return ss(t[0])?t[0].outlets:{[j]:t}}function lw(t,e,r){if(t??=new J([],{}),t.segments.length===0&&t.hasChildren())return rs(t,e,r);let n=xO(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==j)&&t.children[j]&&t.numberOfChildren===1&&t.children[j].segments.length===0){let o=rs(t.children[j],e,r);return new J(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=lw(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new J(t.segments,i)}}function xO(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ss(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!H_(c,u,s))return o;n+=2}else{if(!H_(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function dp(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=dp(new J([],{}),0,n))}),e}function $_(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function H_(t,e,r){return t==r.path&&un(e,r.parameters)}var is="imperative",Ie=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}(Ie||{}),It=class{constructor(e,r){this.id=e,this.url=r}},ji=class extends It{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Ie.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Vt=class extends It{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},dt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(dt||{}),wu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(wu||{}),Tn=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nr=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationSkipped}},as=class extends It{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Eu=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hp=class extends It{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},bp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dp=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_p=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Iu=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Ie.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},cs=class{},Vi=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function SO(t,e){return t.providers&&!t._injector&&(t._injector=Fc(t.providers,e,`Route: ${t.path}`)),t._injector??e}function jt(t){return t.outlet||j}function TO(t,e){let r=t.filter(n=>jt(n)===e);return r.push(...t.filter(n=>jt(n)!==e)),r}function gs(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 wp=class{get injector(){return gs(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new vs(this.rootInjector),this.attachRef=null}},vs=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new wp(this.rootInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cu=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=Ep(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Ep(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Ip(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Ip(e,this._root).map(r=>r.value)}};function Ep(t,e){if(t===e.value)return e;for(let r of e.children){let n=Ep(t,r);if(n)return n}return null}function Ip(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Ip(t,r);if(n.length)return n.unshift(e),n}return[]}var lt=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Ri(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var xu=class extends Cu{constructor(e,r){super(e),this.snapshot=r,Op(this,e)}toString(){return this.snapshot.toString()}};function dw(t){let e=AO(t),r=new de([new Tr("",{})]),n=new de({}),i=new de({}),o=new de({}),s=new de(""),a=new rr(r,n,o,s,i,j,t,e.root);return a.snapshot=e.root,new xu(new lt(a,[]),e)}function AO(t){let e={},r={},n={},i="",o=new Fi([],e,n,i,r,j,t,null,{});return new Su("",new lt(o,[]))}var rr=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[ps]))??x(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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(C(e=>Pi(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(e=>Pi(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Mu(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:b(b({},e.params),t.params),data:b(b({},e.data),t.data),resolve:b(b(b(b({},t.data),e.data),i?.data),t._resolvedData)}:n={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},i&&hw(i)&&(n.resolve[ps]=i.title),n}var Fi=class{get title(){return this.data?.[ps]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=Pi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Su=class extends Cu{constructor(e,r){super(r),this.url=e,Op(this,r)}toString(){return fw(this._root)}};function Op(t,e){e.value._routerState=t,e.children.forEach(r=>Op(t,r))}function fw(t){let e=t.children.length>0?` { ${t.children.map(fw).join(", ")} } `:"";return`${t.value}${e}`}function op(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,un(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),un(e.params,r.params)||t.paramsSubject.next(r.params),rO(e.url,r.url)||t.urlSubject.next(r.url),un(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Cp(t,e){let r=un(t.params,e.params)&&aO(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Cp(t.parent,e.parent))}function hw(t){return typeof t.title=="string"||t.title===null}var NO=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=j,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=g(vs),this.location=g(Pt),this.changeDetector=g(wt),this.inputBinder=g(Ru,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new xp(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[it]});let t=e;return t})(),xp=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===rr?this.route:e===vs?this.childContexts:this.parent.get(e,r)}},Ru=new v(""),z_=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=fr([i.queryParams,i.params,i.data]).pipe(Ve(([s,a,c],u)=>(c=b(b(b({},s),a),c),u===0?x(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=BD(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function RO(t,e,r){let n=us(t,e._root,r?r._root:void 0);return new xu(n,e)}function us(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=OO(t,e,r);return new lt(n,i)}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=>us(t,a)),s}}let n=FO(e.value),i=e.children.map(o=>us(t,o));return new lt(n,i)}}function OO(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return us(t,n,i);return us(t,n)})}function FO(t){return new rr(new de(t.url),new de(t.params),new de(t.queryParams),new de(t.fragment),new de(t.data),t.outlet,t.component,t)}var ls=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},pw="ngNavigationCancelingError";function Tu(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Nr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=mw(!1,dt.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function mw(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[pw]=!0,r.cancellationCode=e,r}function kO(t){return gw(t)&&Nr(t.url)}function gw(t){return!!t&&t[pw]}var PO=(t,e,r,n)=>C(i=>(new Mp(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Mp=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),op(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new _p(o.value.snapshot))}),e.children.length&&this.forwardEvent(new yp(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(op(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),op(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Au=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ki=class{constructor(e,r){this.component=e,this.route=r}};function LO(t,e,r){let n=t._root,i=e?e._root:null;return ts(n,i,r,[n.value])}function jO(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Bi(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Sv(t)?t:e.get(t):n}function ts(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ri(e);return t.children.forEach(s=>{VO(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>os(a,r.getContext(s),i)),i}function VO(t,e,r,n,i={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=UO(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Au(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ts(t,e,a?a.children:null,n,i):ts(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ki(a.outlet.component,s))}else s&&os(e,a,i),i.canActivateChecks.push(new Au(n)),o.component?ts(t,null,a?a.children:null,n,i):ts(t,null,r,n,i);return i}function UO(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Ar(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ar(t.url,e.url)||!un(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cp(t,e)||!un(t.queryParams,e.queryParams);case"paramsChange":default:return!Cp(t,e)}}function os(t,e,r){let n=Ri(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?os(s,e.children.getContext(o),r):os(s,null,r):os(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ki(e.outlet.component,i)):r.canDeactivateChecks.push(new ki(null,i)):r.canDeactivateChecks.push(new ki(null,i))}function bs(t){return typeof t=="function"}function BO(t){return typeof t=="boolean"}function $O(t){return t&&bs(t.canLoad)}function HO(t){return t&&bs(t.canActivate)}function zO(t){return t&&bs(t.canActivateChild)}function GO(t){return t&&bs(t.canDeactivate)}function WO(t){return t&&bs(t.canMatch)}function vw(t){return t instanceof At||t?.name==="EmptyError"}var gu=Symbol("INITIAL_VALUE");function Ui(){return Ve(t=>fr(t.map(e=>e.pipe(ge(1),po(gu)))).pipe(C(e=>{for(let r of e)if(r!==!0){if(r===gu)return gu;if(r===!1||qO(r))return r}return!0}),le(e=>e!==gu),ge(1)))}function qO(t){return Nr(t)||t instanceof ls}function ZO(t,e){return Q(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?x(O(b({},r),{guardsResult:!0})):YO(s,n,i,t).pipe(Q(a=>a&&BO(a)?KO(n,o,t,e):x(a)),C(a=>O(b({},r),{guardsResult:a})))})}function YO(t,e,r,n){return re(t).pipe(Q(i=>tF(i.component,i.route,r,e,n)),Nt(i=>i!==!0,!0))}function KO(t,e,r,n){return re(e).pipe(Wt(i=>Gt(XO(i.route.parent,n),QO(i.route,n),eF(t,i.path,r),JO(t,i.route,r))),Nt(i=>i!==!0,!0))}function QO(t,e){return t!==null&&e&&e(new Dp(t)),x(!0)}function XO(t,e){return t!==null&&e&&e(new bp(t)),x(!0)}function JO(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return x(!0);let i=n.map(o=>so(()=>{let s=gs(e)??r,a=Bi(o,s),c=HO(a)?a.canActivate(e,t):rt(s,()=>a(e,t));return ir(c).pipe(Nt())}));return x(i).pipe(Ui())}function eF(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>jO(s)).filter(s=>s!==null).map(s=>so(()=>{let a=s.guards.map(c=>{let u=gs(s.node)??r,l=Bi(c,u),d=zO(l)?l.canActivateChild(n,t):rt(u,()=>l(n,t));return ir(d).pipe(Nt())});return x(a).pipe(Ui())}));return x(o).pipe(Ui())}function tF(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return x(!0);let s=o.map(a=>{let c=gs(e)??i,u=Bi(a,c),l=GO(u)?u.canDeactivate(t,e,r,n):rt(c,()=>u(t,e,r,n));return ir(l).pipe(Nt())});return x(s).pipe(Ui())}function nF(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=$O(a)?a.canLoad(e,r):rt(t,()=>a(e,r));return ir(c)});return x(o).pipe(Ui(),bw(n))}function bw(t){return Ml(ee(e=>{if(typeof e!="boolean")throw Tu(t,e)}),C(e=>e===!0))}function rF(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=WO(a)?a.canMatch(e,r):rt(t,()=>a(e,r));return ir(c)});return x(o).pipe(Ui(),bw(n))}var ds=class{constructor(e){this.segmentGroup=e||null}},fs=class extends Error{constructor(e){super(),this.urlTree=e}};function Ni(t){return Ht(new ds(t))}function iF(t){return Ht(new I(4e3,!1))}function oF(t){return Ht(mw(!1,dt.GuardRejected))}var Sp=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return x(n);if(i.numberOfChildren>1||!i.children[j])return iF(`${e.redirectTo}`);i=i.children[j]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:m,title:_}=i,w=rt(o,()=>a({params:h,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:_}));if(w instanceof An)throw new fs(w);r=w}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new fs(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new An(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new J(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Tp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sF(t,e,r,n,i){let o=Fp(t,e,r);return o.matched?(n=SO(e,n),rF(n,e,r,i).pipe(C(s=>s===!0?o:b({},Tp)))):x(o)}function Fp(t,e,r){if(e.path==="**")return aF(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?b({},Tp):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||nO)(r,t,e);if(!i)return b({},Tp);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?b(b({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function aF(t){return{matched:!0,parameters:t.length>0?X_(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function G_(t,e,r,n){return r.length>0&&lF(t,r,n)?{segmentGroup:new J(e,uF(n,new J(r,t.children))),slicedSegments:[]}:r.length===0&&dF(t,r,n)?{segmentGroup:new J(t.segments,cF(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new J(t.segments,t.children),slicedSegments:r}}function cF(t,e,r,n){let i={};for(let o of r)if(Ou(t,e,o)&&!n[jt(o)]){let s=new J([],{});i[jt(o)]=s}return b(b({},n),i)}function uF(t,e){let r={};r[j]=e;for(let n of t)if(n.path===""&&jt(n)!==j){let i=new J([],{});r[jt(n)]=i}return r}function lF(t,e,r){return r.some(n=>Ou(t,e,n)&&jt(n)!==j)}function dF(t,e,r){return r.some(n=>Ou(t,e,n))}function Ou(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function fF(t,e,r,n){return jt(t)!==n&&(n===j||!Ou(e,r,t))?!1:Fp(e,t,r).matched}function hF(t,e,r){return e.length===0&&!t.children[r]}var Ap=class{};function pF(t,e,r,n,i,o,s="emptyOnly"){return new Np(t,e,r,n,i,s,o).recognize()}var mF=31,Np=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Sp(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new I(4002,`'${e.segmentGroup}'`)}recognize(){let e=G_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(C(({children:r,rootSnapshot:n})=>{let i=new lt(n,r),o=new Su("",i),s=_O(n,[],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 Fi([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),j,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,j,r).pipe(C(n=>({children:n,rootSnapshot:r})),Re(n=>{if(n instanceof fs)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ds?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(C(s=>s instanceof lt?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return re(o).pipe(Wt(s=>{let a=n.children[s],c=TO(r,s);return this.processSegmentGroup(e,c,a,s,i)}),fo((s,a)=>(s.push(...a),s)),jn(null),Vl(),Q(s=>{if(s===null)return Ni(n);let a=yw(s);return gF(a),x(a)}))}processSegment(e,r,n,i,o,s,a){return re(r).pipe(Wt(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(Re(u=>{if(u instanceof ds)return x(null);throw u}))),Nt(c=>!!c),Re(c=>{if(vw(c))return hF(n,i,o)?x(new Ap):Ni(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return fF(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):Ni(i):Ni(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Fp(r,i,o);if(!c)return Ni(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mF&&(this.allowRedirects=!1));let h=new Fi(o,u,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,W_(i),jt(i),i.component??i._loadedComponent??null,i,q_(i)),m=Mu(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(m.params),h.data=Object.freeze(m.data);let _=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,_).pipe(Q(w=>this.processSegment(e,n,r,w.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=sF(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(Ve(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(Ve(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,m=new Fi(f,d,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,W_(n),jt(n),n.component??n._loadedComponent??null,n,q_(n)),_=Mu(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(_.params),m.data=Object.freeze(_.data);let{segmentGroup:w,slicedSegments:E}=G_(r,f,h,u);if(E.length===0&&w.hasChildren())return this.processChildren(l,u,w,m).pipe(C(q=>new lt(m,q)));if(u.length===0&&E.length===0)return x(new lt(m,[]));let k=jt(n)===o;return this.processSegment(l,u,w,E,k?j:o,!0,m).pipe(C(q=>new lt(m,q instanceof lt?[q]:[])))}))):Ni(r)))}getChildConfig(e,r,n){return r.children?x({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?x({routes:r._loadedRoutes,injector:r._loadedInjector}):nF(e,r,n,this.urlSerializer).pipe(Q(i=>i?this.configLoader.loadChildren(e,r).pipe(ee(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):oF(r))):x({routes:[],injector:e})}};function gF(t){t.sort((e,r)=>e.value.outlet===j?-1:r.value.outlet===j?1:e.value.outlet.localeCompare(r.value.outlet))}function vF(t){let e=t.value.routeConfig;return e&&e.path===""}function yw(t){let e=[],r=new Set;for(let n of t){if(!vF(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=yw(n.children);e.push(new lt(n.value,i))}return e.filter(n=>!r.has(n))}function W_(t){return t.data||{}}function q_(t){return t.resolve||{}}function bF(t,e,r,n,i,o){return Q(s=>pF(t,e,r,n,s.extractedUrl,i,o).pipe(C(({state:a,tree:c})=>O(b({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function yF(t,e){return Q(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return x(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of Dw(c))s.add(u);let a=0;return re(s).pipe(Wt(c=>o.has(c)?DF(c,n,t,e):(c.data=Mu(c,c.parent,t).resolve,x(void 0))),ee(()=>a++),Xr(1),Q(c=>a===s.size?x(r):xe))})}function Dw(t){let e=t.children.map(r=>Dw(r)).flat();return[t,...e]}function DF(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!hw(i)&&(o[ps]=i.title),_F(o,t,e,n).pipe(C(s=>(t._resolvedData=s,t.data=Mu(t,t.parent,r).resolve,null)))}function _F(t,e,r,n){let i=cp(t);if(i.length===0)return x({});let o={};return re(i).pipe(Q(s=>wF(t[s],e,r,n).pipe(Nt(),ee(a=>{if(a instanceof ls)throw Tu(new Li,a);o[s]=a}))),Xr(1),lo(o),Re(s=>vw(s)?xe:Ht(s)))}function wF(t,e,r,n){let i=gs(e)??n,o=Bi(t,i),s=o.resolve?o.resolve(e,r):rt(i,()=>o(e,r));return ir(s)}function sp(t){return Ve(e=>{let r=t(e);return r?re(r).pipe(C(()=>e)):x(e)})}var _w=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===j);return i}getResolvedTitleForRoute(n){return n.data[ps]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(EF),providedIn:"root"});let t=e;return t})(),EF=(()=>{let e=class e extends _w{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(p(j_))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ys=new v("",{providedIn:"root",factory:()=>({})}),IF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["ng-component"]],standalone:!0,features:[at],decls:1,vars:0,template:function(i,o){i&1&&Je(0,"router-outlet")},dependencies:[NO],encapsulation:2});let t=e;return t})();function kp(t){let e=t.children&&t.children.map(kp),r=e?O(b({},t),{children:e}):b({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==j&&(r.component=IF),r}var hs=new v(""),Pp=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Gc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=ir(n.loadComponent()).pipe(C(ww),ee(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),ht(()=>{this.componentLoaders.delete(n)})),o=new Gr(i,()=>new B).pipe(zr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return x({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=CF(i,this.compiler,n,this.onLoadEndListener).pipe(ht(()=>{this.childrenLoaders.delete(i)})),a=new Gr(s,()=>new B).pipe(zr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function CF(t,e,r,n){return ir(t.loadChildren()).pipe(C(ww),Q(i=>i instanceof Io||Array.isArray(i)?x(i):re(e.compileModuleAsync(i))),C(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(hs,[],{optional:!0,self:!0}).flat()),{routes:s.map(kp),injector:o}}))}function xF(t){return t&&typeof t=="object"&&"default"in t}function ww(t){return xF(t)?t.default:t}var Lp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(MF),providedIn:"root"});let t=e;return t})(),MF=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ew=new v(""),Iw=new v("");function SF(t,e,r){let n=t.get(Iw),i=t.get(W);return t.get(P).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),TF(t))),{onViewTransitionCreated:c}=n;return c&&rt(t,()=>c({transition:a,from:e,to:r})),s})}function TF(t){return new Promise(e=>{Bo({read:()=>setTimeout(e)},{injector:t})})}var AF=new v(""),jp=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(Pp),this.environmentInjector=g(Fe),this.urlSerializer=g(ms),this.rootContexts=g(vs),this.location=g(Ai),this.inputBindingEnabled=g(Ru,{optional:!0})!==null,this.titleStrategy=g(_w),this.options=g(ys,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Lp),this.createViewTransition=g(Ew,{optional:!0}),this.navigationErrorHandler=g(AF,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null;let n=o=>this.events.next(new gp(o)),i=o=>this.events.next(new vp(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(O(b(b({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new de({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:is,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(le(s=>s.id!==0),C(s=>O(b({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ve(s=>{let a=!1,c=!1;return x(s).pipe(Ve(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),xe;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?O(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new nr(u.id,this.urlSerializer.serialize(u.rawUrl),f,wu.IgnoredSameUrlNavigation)),u.resolve(!1),xe}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return x(u).pipe(Ve(f=>{let h=this.transitions?.getValue();return this.events.next(new ji(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?xe:Promise.resolve(f)}),bF(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=O(b({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Eu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:m,restoredState:_,extras:w}=u,E=new ji(f,this.urlSerializer.serialize(h),m,_);this.events.next(E);let k=dw(this.rootComponentType).snapshot;return this.currentTransition=s=O(b({},u),{targetSnapshot:k,urlAfterRedirects:h,extras:O(b({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,x(s)}else{let f="";return this.events.next(new nr(u.id,this.urlSerializer.serialize(u.extractedUrl),f,wu.IgnoredByUrlHandlingStrategy)),u.resolve(!1),xe}}),ee(u=>{let l=new fp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=s=O(b({},u),{guards:LO(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),ZO(this.environmentInjector,u=>this.events.next(u)),ee(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Tu(this.urlSerializer,u.guardsResult);let l=new hp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),le(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",dt.GuardRejected),!1)),sp(u=>{if(u.guards.canActivateChecks.length)return x(u).pipe(ee(l=>{let d=new pp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Ve(l=>{let d=!1;return x(l).pipe(yF(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",dt.NoDataFromResolver)}}))}),ee(l=>{let d=new mp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),sp(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ee(h=>{d.component=h}),C(()=>{})));for(let h of d.children)f.push(...l(h));return f};return fr(l(u.targetSnapshot.root)).pipe(jn(null),ge(1))}),sp(()=>this.afterPreactivation()),Ve(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?re(d).pipe(C(()=>s)):x(s)}),C(u=>{let l=RO(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=O(b({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ee(()=>{this.events.next(new cs)}),PO(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),ge(1),ee({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Vn(this.transitionAbortSubject.pipe(ee(u=>{throw u}))),ht(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Re(u=>{if(c=!0,gw(u))this.events.next(new Tn(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),kO(u)?this.events.next(new Vi(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new as(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=rt(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof ls){let{message:f,cancellationCode:h}=Tu(this.urlSerializer,d);this.events.next(new Tn(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new Vi(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return xe}))}))}cancelNavigationTransition(n,i,o){let s=new Tn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function NF(t){return t!==is}var RF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(OF),providedIn:"root"});let t=e;return t})(),Rp=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},OF=(()=>{let e=class e extends Rp{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cw=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(FF),providedIn:"root"});let t=e;return t})(),FF=(()=>{let e=class e extends Cw{constructor(){super(...arguments),this.location=g(Ai),this.urlSerializer=g(ms),this.options=g(ys,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Lp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new An,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=dw(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(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof ji)this.stateMemento=this.createStateMemento();else if(n instanceof nr)this.rawUrlTree=i.initialUrl;else if(n instanceof Eu){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else n instanceof cs?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):n instanceof Tn&&(n.code===dt.GuardRejected||n.code===dt.NoDataFromResolver)?this.restoreHistory(i):n instanceof as?this.restoreHistory(i,!0):n instanceof Vt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=n instanceof An?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=b(b({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=b(b({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ns=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ns||{});function xw(t,e){t.events.pipe(le(r=>r instanceof Vt||r instanceof Tn||r instanceof as||r instanceof nr),C(r=>r instanceof Vt||r instanceof nr?ns.COMPLETE:(r instanceof Tn?r.code===dt.Redirect||r.code===dt.SupersededByNewNavigation:!1)?ns.REDIRECTING:ns.FAILED),le(r=>r!==ns.REDIRECTING),ge(1)).subscribe(()=>{e()})}function kF(t){throw t}var PF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},LF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ct=(()=>{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=g(Uc),this.stateManager=g(Cw),this.options=g(ys,{optional:!0})||{},this.pendingTasks=g(en),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(jp),this.urlSerializer=g(ms),this.location=g(Ai),this.urlHandlingStrategy=g(Lp),this._events=new B,this.errorHandler=this.options.errorHandler||kF,this.navigated=!1,this.routeReuseStrategy=g(RF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(hs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Ru,{optional:!0}),this.eventsSubscription=new ae,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Tn&&i.code!==dt.Redirect&&i.code!==dt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Vt)this.navigated=!0;else if(i instanceof Vi){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=b({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||NF(o.source)},a);this.scheduleNavigation(c,is,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}VF(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),is,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=b({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(kp),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(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=b(b({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=aw(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return cw(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Nr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,is,null,i)}navigate(n,i={skipLocationChange:!1}){return jF(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=b({},PF):i===!1?o=b({},LF):o=i,Nr(n))return U_(this.currentUrlTree,n,o);let s=this.parseUrl(n);return U_(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return xw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jF(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Vt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Nr(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:ay(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.routerLinkInput===null?null:Nr(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(i){return new(i||e)(y(Ct),y(rr),Fo("tabindex"),y(tn),y(ne),y(Sn))},e.\u0275dir=G({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&In("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Xe("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee],replaceUrl:[2,"replaceUrl","replaceUrl",Ee],routerLink:"routerLink"},standalone:!0,features:[st,it]});let t=e;return t})(),A4=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof Vt&&this.update()})}ngAfterContentInit(){x(this.links.changes,x(null)).pipe(zt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=re(n).pipe(zt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&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!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=UF(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ct),y(ne),y(tn),y(wt),y(Z_,8))},e.\u0275dir=G({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&MD(s,Z_,5),i&2){let a;jc(a=Vc())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[it]});let t=e;return t})();function UF(t){return!!t.paths}var Nu=class{};var BF=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(le(n=>n instanceof Vt),Wt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Fc(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,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 re(o).pipe(zt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=x(null);let s=o.pipe(Q(a=>a===null?x(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return re([s,a]).pipe(zt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(p(Ct),p(Gc),p(Fe),p(Nu),p(Pp))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mw=new v(""),$F=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=g(Fe),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(n=>{n instanceof ji?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Vt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof nr&&n.code===wu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Iu&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>Vr(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Bo(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Iu(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Lo()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function N4(t,...e){return yn([{provide:hs,multi:!0,useValue:t},[],{provide:rr,useFactory:Sw,deps:[Ct]},{provide:Mr,multi:!0,useFactory:Tw},e.map(r=>r.\u0275providers)])}function Sw(t){return t.routerState.root}function Ds(t,e){return{\u0275kind:t,\u0275providers:e}}function Tw(){let t=g(ke);return e=>{let r=t.get(rn);if(e!==r.components[0])return;let n=t.get(Ct),i=t.get(Aw);t.get(Vp)===1&&n.initialNavigation(),t.get(Nw,null,U.Optional)?.setUpPreloading(),t.get(Mw,null,U.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Aw=new v("",{factory:()=>new B}),Vp=new v("",{providedIn:"root",factory:()=>1});function HF(){return Ds(2,[{provide:Vp,useValue:0},{provide:Hc,multi:!0,deps:[ke],useFactory:e=>{let r=e.get(QD,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ct),o=e.get(Aw);xw(i,()=>{n(!0)}),e.get(jp).afterPreactivation=()=>(n(!0),o.closed?x(void 0):o),i.initialNavigation()}))}}])}function zF(){return Ds(3,[{provide:Hc,multi:!0,useFactory:()=>{let e=g(Ct);return()=>{e.setUpLocationChangeListener()}}},{provide:Vp,useValue:2}])}var Nw=new v("");function GF(t){return Ds(0,[{provide:Nw,useExisting:BF},{provide:Nu,useExisting:t}])}function WF(){return Ds(8,[z_,{provide:Ru,useExisting:z_}])}function qF(t){let e=[{provide:Ew,useValue:SF},{provide:Iw,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ds(9,e)}var Y_=new v("ROUTER_FORROOT_GUARD"),ZF=[Ai,{provide:ms,useClass:Li},Ct,vs,{provide:rr,useFactory:Sw,deps:[Ct]},Pp,[]],R4=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[ZF,[],{provide:hs,multi:!0,useValue:n},{provide:Y_,useFactory:XF,deps:[[Ct,new yi,new Mo]]},{provide:ys,useValue:i||{}},i?.useHash?KF():QF(),YF(),i?.preloadingStrategy?GF(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?JF(i):[],i?.bindToComponentInputs?WF().\u0275providers:[],i?.enableViewTransitions?qF().\u0275providers:[],ek()]}}static forChild(n){return{ngModule:e,providers:[{provide:hs,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(p(Y_,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function YF(){return{provide:Mw,useFactory:()=>{let t=g(s_),e=g(P),r=g(ys),n=g(jp),i=g(ms);return r.scrollOffset&&t.setOffset(r.scrollOffset),new $F(i,n,t,e,r)}}}function KF(){return{provide:Sn,useClass:JD}}function QF(){return{provide:Sn,useClass:jh}}function XF(t){return"guarded"}function JF(t){return[t.initialNavigation==="disabled"?zF().\u0275providers:[],t.initialNavigation==="enabledBlocking"?HF().\u0275providers:[]]}var K_=new v("");function ek(){return[{provide:K_,useFactory:Tw},{provide:Mr,multi:!0,useExisting:K_}]}var Uw=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(y(tn),y(ne))},e.\u0275dir=G({type:e});let t=e;return t})(),nk=(()=>{let e=class e extends Uw{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})(),$u=new v("");var rk={provide:$u,useExisting:kt(()=>Bw),multi:!0};function ik(){let t=sn()?sn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ok=new v(""),Bw=(()=>{let e=class e extends Uw{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ik())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(y(tn),y(ne),y(ok,8))},e.\u0275dir=G({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(i,o){i&1&&In("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:[_t([rk]),be]});let t=e;return t})();function or(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function $w(t){return t!=null&&typeof t.length=="number"}var Rr=new v(""),Or=new v(""),sk=/^(?=.{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])?)*$/,Rw=class{static min(e){return ak(e)}static max(e){return ck(e)}static required(e){return uk(e)}static requiredTrue(e){return lk(e)}static email(e){return dk(e)}static minLength(e){return fk(e)}static maxLength(e){return hk(e)}static pattern(e){return pk(e)}static nullValidator(e){return Hw(e)}static compose(e){return Yw(e)}static composeAsync(e){return Kw(e)}};function ak(t){return e=>{if(or(e.value)||or(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(or(e.value)||or(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function uk(t){return or(t.value)?{required:!0}:null}function lk(t){return t.value===!0?null:{required:!0}}function dk(t){return or(t.value)||sk.test(t.value)?null:{email:!0}}function fk(t){return e=>or(e.value)||!$w(e.value)?null:e.value.length$w(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function pk(t){if(!t)return Hw;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),n=>{if(or(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Hw(t){return null}function zw(t){return t!=null}function Gw(t){return Xn(t)?re(t):t}function Ww(t){let e={};return t.forEach(r=>{e=r!=null?b(b({},e),r):e}),Object.keys(e).length===0?null:e}function qw(t,e){return e.map(r=>r(t))}function mk(t){return!t.validate}function Zw(t){return t.map(e=>mk(e)?e:r=>e.validate(r))}function Yw(t){if(!t)return null;let e=t.filter(zw);return e.length==0?null:function(r){return Ww(qw(r,e))}}function Gp(t){return t!=null?Yw(Zw(t)):null}function Kw(t){if(!t)return null;let e=t.filter(zw);return e.length==0?null:function(r){let n=qw(r,e).map(Gw);return ao(n).pipe(C(Ww))}}function Wp(t){return t!=null?Kw(Zw(t)):null}function Ow(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Qw(t){return t._rawValidators}function Xw(t){return t._rawAsyncValidators}function Up(t){return t?Array.isArray(t)?t:[t]:[]}function ku(t,e){return Array.isArray(t)?t.includes(e):t===e}function Fw(t,e){let r=Up(e);return Up(t).forEach(i=>{ku(r,i)||r.push(i)}),r}function kw(t,e){return Up(e).filter(r=>!ku(t,r))}var Pu=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=Gp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Wp(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}},Ge=class extends Pu{get formDirective(){return null}get path(){return null}},Nn=class extends Pu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Lu=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}},gk={"[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"},Y4=O(b({},gk),{"[class.ng-submitted]":"isSubmitted"}),K4=(()=>{let e=class e extends Lu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(Nn,2))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&we("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:[be]});let t=e;return t})(),Q4=(()=>{let e=class e extends Lu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&we("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:[be]});let t=e;return t})();var _s="VALID",Fu="INVALID",$i="PENDING",ws="DISABLED",sr=class{},ju=class extends sr{constructor(e,r){super(),this.value=e,this.source=r}},Is=class extends sr{constructor(e,r){super(),this.pristine=e,this.source=r}},Cs=class extends sr{constructor(e,r){super(),this.touched=e,this.source=r}},Hi=class extends sr{constructor(e,r){super(),this.status=e,this.source=r}},Bp=class extends sr{constructor(e){super(),this.source=e}},$p=class extends sr{constructor(e){super(),this.source=e}};function qp(t){return(Hu(t)?t.validators:t)||null}function vk(t){return Array.isArray(t)?Gp(t):t||null}function Zp(t,e){return(Hu(e)?e.asyncValidators:t)||null}function bk(t){return Array.isArray(t)?Wp(t):t||null}function Hu(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Jw(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new I(1e3,"");if(!n[r])throw new I(1001,"")}function eE(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new I(1002,"")})}var zi=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=on(()=>this.statusReactive()),this.statusReactive=_n(void 0),this._pristine=on(()=>this.pristineReactive()),this.pristineReactive=_n(!0),this._touched=on(()=>this.touchedReactive()),this.touchedReactive=_n(!1),this._events=new B,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 ct(this.statusReactive)}set status(e){ct(()=>this.statusReactive.set(e))}get valid(){return this.status===_s}get invalid(){return this.status===Fu}get pending(){return this.status==$i}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return ct(this.pristineReactive)}set pristine(e){ct(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ct(this.touchedReactive)}set touched(e){ct(()=>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(Fw(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fw(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(kw(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(kw(e,this._rawAsyncValidators))}hasValidator(e){return ku(this._rawValidators,e)}hasAsyncValidator(e){return ku(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Cs(!0,n))}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 n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new Cs(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Is(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new Is(!0,n))}markAsPending(e={}){this.status=$i;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hi(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(O(b({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(i=>{i.disable(O(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ju(this.value,n)),this._events.next(new Hi(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=_s,this._forEachChild(n=>{n.enable(O(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!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 n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_s||this.status===$i)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ju(this.value,r)),this._events.next(new Hi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(O(b({},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()?ws:_s}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=$i,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Gw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{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((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.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,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Hi(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?Fu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($i)?$i:this._anyControlsHaveStatus(Fu)?Fu:_s}_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 n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new Is(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Cs(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Hu(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=vk(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=bk(this._rawAsyncValidators)}},Gi=class extends zi{constructor(e,r,n){super(qp(r),Zp(n,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,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.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,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){eE(this,!0,e),Object.keys(e).forEach(n=>{Jw(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_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 Hp=class extends Gi{};var Wi=new v("CallSetDisabledState",{providedIn:"root",factory:()=>zu}),zu="always";function Gu(t,e){return[...e.path,t]}function Ms(t,e,r=zu){Yp(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Dk(t,e),wk(t,e),_k(t,e),yk(t,e)}function Vu(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Bu(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Uu(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function yk(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Yp(t,e){let r=Qw(t);e.validator!==null?t.setValidators(Ow(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Xw(t);e.asyncValidator!==null?t.setAsyncValidators(Ow(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Uu(e._rawValidators,i),Uu(e._rawAsyncValidators,i)}function Bu(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Qw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Xw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Uu(e._rawValidators,n),Uu(e._rawAsyncValidators,n),r}function Dk(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&tE(t,e)})}function _k(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&tE(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function tE(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wk(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function nE(t,e){t==null,Yp(t,e)}function Ek(t,e){return Bu(t,e)}function Kp(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function Ik(t){return Object.getPrototypeOf(t.constructor)===nk}function rE(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Qp(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Bw?r=o:Ik(o)?n=o:i=o}),i||n||r||null}function Ck(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var xk={provide:Ge,useExisting:kt(()=>Mk)},Es=Promise.resolve(),Mk=(()=>{let e=class e extends Ge{get submitted(){return ct(this.submittedReactive)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=on(()=>this.submittedReactive()),this.submittedReactive=_n(!1),this._directives=new Set,this.ngSubmit=new X,this.form=new Gi({},Gp(n),Wp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),Ms(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path),o=new Gi({});nE(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){Es.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),rE(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&In("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([xk]),be]});let t=e;return t})();function Pw(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Lw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var xs=class extends zi{constructor(e=null,r,n){super(qp(r),Zp(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Hu(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Lw(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(n=>n(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){Pw(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Pw(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){Lw(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 Sk=t=>t instanceof xs,Tk=(()=>{let e=class e extends Ge{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Gu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})();var Ak={provide:Nn,useExisting:kt(()=>Nk)},jw=Promise.resolve(),Nk=(()=>{let e=class e extends Nn{constructor(n,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new xs,this._registered=!1,this.name="",this.update=new X,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Qp(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Kp(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Ms(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(n){jw.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Ee(i);jw.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Gu(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(y(Ge,9),y(Rr,10),y(Or,10),y($u,10),y(wt,8),y(Wi,8))},e.\u0275dir=G({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:[_t([Ak]),be,it]});let t=e;return t})(),J4=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Xp=new v(""),Rk={provide:Nn,useExisting:kt(()=>Ok)},Ok=(()=>{let e=class e extends Nn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new X,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Qp(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&Vu(i,this,!1),Ms(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Kp(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Vu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y($u,10),y(Xp,8),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_t([Rk]),be,it]});let t=e;return t})(),Fk={provide:Ge,useExisting:kt(()=>iE)},iE=(()=>{let e=class e extends Ge{get submitted(){return ct(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=on(()=>this._submittedReactive()),this._submittedReactive=_n(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Bu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Ms(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Vu(n.control||null,n,!1),Ck(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this._submittedReactive.set(!0),rE(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Bp(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new $p(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Vu(i||null,n),Sk(o)&&(Ms(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);nE(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&Ek(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yp(this.form,this),this._oldForm&&Bu(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&In("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([Fk]),be,it]});let t=e;return t})(),kk={provide:Ge,useExisting:kt(()=>oE)},oE=(()=>{let e=class e extends Tk{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){aE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[_t([kk]),be]});let t=e;return t})(),Pk={provide:Ge,useExisting:kt(()=>sE)},sE=(()=>{let e=class e extends Ge{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),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 Gu(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){aE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[_t([Pk]),be]});let t=e;return t})();function aE(t){return!(t instanceof oE)&&!(t instanceof iE)&&!(t instanceof sE)}var Lk={provide:Nn,useExisting:kt(()=>jk)},jk=(()=>{let e=class e extends Nn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new X,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Qp(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Kp(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Gu(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(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10),y($u,10),y(Xp,8))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[_t([Lk]),be,it]});let t=e;return t})();var cE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),zp=class extends zi{constructor(e,r,n){super(qp(r),Zp(n,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,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){eE(this,!1,e),e.forEach((n,i)=>{Jw(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{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,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_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 Vw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eG=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,i=null){let o=this._reduceControls(n),s={};return Vw(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Gi(o,s)}record(n,i=null){let o=this._reduceControls(n);return new Hp(o,i)}control(n,i,o){let s={};return this.useNonNullable?(Vw(i)?s=i:(s.validators=i,s.asyncValidators=o),new xs(n,O(b({},s),{nonNullable:!0}))):new xs(n,i,o)}array(n,i,o){let s=n.map(a=>this._createControl(a));return new zp(s,i,o)}_reduceControls(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this._createControl(n[o])}),i}_createControl(n){if(n instanceof xs)return n;if(n instanceof zi)return n;if(Array.isArray(n)){let i=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(i,o,s)}else return this.control(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tG=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Wi,useValue:n.callSetDisabledState??zu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[cE]});let t=e;return t})(),nG=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Xp,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Wi,useValue:n.callSetDisabledState??zu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[cE]});let t=e;return t})();var em;try{em=typeof Intl<"u"&&Intl.v8BreakIterator}catch{em=!1}var je=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?Uh(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||em)&&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(i){return new(i||e)(p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var qi,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 lG(){if(qi)return qi;if(typeof document!="object"||!document)return qi=new Set(uE),qi;let t=document.createElement("input");return qi=new Set(uE.filter(e=>(t.setAttribute("type",e),t.type===e))),qi}var Ss;function Vk(){if(Ss==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ss=!0}))}finally{Ss=Ss||!1}return Ss}function Zi(t){return Vk()?t:!!t.capture}var Fr;function dG(){if(Fr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Fr=!1,Fr;if("scrollBehavior"in document.documentElement.style)Fr=!0;else{let t=Element.prototype.scrollTo;t?Fr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Fr=!1}}return Fr}var Jp;function Uk(){if(Jp==null){let t=typeof document<"u"?document.head:null;Jp=!!(t&&(t.createShadowRoot||t.attachShadow))}return Jp}function lE(t){if(Uk()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Bk(){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 Rn(t){return t.composedPath?t.composedPath()[0]:t.target}function dE(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function qu(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function $k(t){return t!=null&&`${t}`!="false"}function Hk(t,e=0){return zk(t)?Number(t):e}function zk(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function tm(t){return Array.isArray(t)?t:[t]}function pG(t){return t==null?"":typeof t=="string"?t:`${t}px`}function kr(t){return t instanceof ne?t.nativeElement:t}var Gk=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Gk]});let t=e;return t})();var hE=new Set,Pr,Wk=(()=>{let e=class e{constructor(n,i){this._platform=n,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Zk}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&qk(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(i){return new(i||e)(p(je),p(ko,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qk(t,e){if(!hE.has(t))try{Pr||(Pr=document.createElement("style"),e&&Pr.setAttribute("nonce",e),Pr.setAttribute("type","text/css"),document.head.appendChild(Pr)),Pr.sheet&&(Pr.sheet.insertRule(`@media ${t} {body{ }}`,0),hE.add(t))}catch(r){console.error(r)}}function Zk(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var mE=(()=>{let e=class e{constructor(n,i){this._mediaMatcher=n,this._zone=i,this._queries=new Map,this._destroySubject=new B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return pE(tm(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=pE(tm(n)).map(a=>this._registerQuery(a).observable),s=fr(o);return s=Gt(s.pipe(ge(1)),s.pipe(Jr(1),Kr(0))),s.pipe(C(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:l})=>{c.matches=c.matches||u,c.breakpoints[l]=u}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let i=this._mediaMatcher.matchMedia(n),s={observable:new N(a=>{let c=u=>this._zone.run(()=>a.next(u));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(po(i),C(({matches:a})=>({query:n,matches:a})),Vn(this._destroySubject)),mql:i};return this._queries.set(n,s),s}};e.\u0275fac=function(i){return new(i||e)(p(Wk),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pE(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var CG={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 _E=" ";function h1(t,e,r){let n=Qu(t,e);r=r.trim(),!n.some(i=>i.trim()===r)&&(n.push(r),t.setAttribute(e,n.join(_E)))}function p1(t,e,r){let n=Qu(t,e);r=r.trim();let i=n.filter(o=>o!==r);i.length?t.setAttribute(e,i.join(_E)):t.removeAttribute(e)}function Qu(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var wE="cdk-describedby-message",Zu="cdk-describedby-host",im=0,HG=(()=>{let e=class e{constructor(n,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${im++}`,this._document=n,this._id=g(xr)+"-"+im++}describe(n,i,o){if(!this._canBeDescribed(n,i))return;let s=nm(i,o);typeof i!="string"?(gE(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,i,o){if(!i||!this._isElementNode(n))return;let s=nm(i,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),typeof i=="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 n=this._document.querySelectorAll(`[${Zu}="${this._id}"]`);for(let i=0;io.indexOf(wE)!=0);n.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(n,i){let o=this._messageRegistry.get(i);h1(n,"aria-describedby",o.messageElement.id),n.setAttribute(Zu,this._id),o.referenceCount++}_removeMessageReference(n,i){let o=this._messageRegistry.get(i);o.referenceCount--,p1(n,"aria-describedby",o.messageElement.id),n.removeAttribute(Zu)}_isElementDescribedByMessage(n,i){let o=Qu(n,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(n,i){if(!this._isElementNode(n))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),s=n.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(p(W),p(je))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nm(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function gE(t,e){t.id||(t.id=`${wE}-${e}-${im++}`)}var Xu=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new B,this._typeaheadSubscription=ae.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new B,this.change=new B,e instanceof li?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Oc(e)&&(this._effectRef=qc(()=>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(ee(r=>this._pressedLetters.push(r)),Kr(e),le(()=>this._pressedLetters.length>0),C(()=>this._pressedLetters.join(""))).subscribe(r=>{let n=this._getItemsArray();for(let i=1;i!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){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(),n=typeof e=="number"?e:r.indexOf(e),i=r[n];this._activeItem=i??null,this._activeItemIndex=n}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 n=1;n<=r.length;n++){let i=(this._activeItemIndex+e*n+r.length)%r.length,o=r[i];if(!this._skipPredicateFn(o)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=r,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Oc(this._items)?this._items():this._items instanceof li?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},vE=class extends Xu{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},bE=class extends Xu{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 om(t){return t.buttons===0||t.detail===0}function sm(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 m1=new v("cdk-input-modality-detector-options"),g1={ignoreKeys:[18,17,224,91,16]},EE=650,Yi=Zi({passive:!0,capture:!0}),v1=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,i,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new de(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Rn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(sm(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Rn(a)},this._options=b(b({},g1),s),this.modalityDetected=this._modality.pipe(Jr(1)),this.modalityChanged=this.modalityDetected.pipe(Qr()),n.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Yi),o.addEventListener("mousedown",this._onMousedown,Yi),o.addEventListener("touchstart",this._onTouchstart,Yi)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yi),document.removeEventListener("mousedown",this._onMousedown,Yi),document.removeEventListener("touchstart",this._onTouchstart,Yi))}};e.\u0275fac=function(i){return new(i||e)(p(je),p(P),p(W),p(m1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),b1=new v("liveAnnouncerElement",{providedIn:"root",factory:y1});function y1(){return null}var D1=new v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),_1=0,zG=(()=>{let e=class e{constructor(n,i,o,s){this._ngZone=i,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...i){let o=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,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=n,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 n="cdk-live-announcer-element",i=this._document.getElementsByClassName(n),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(n,i,o,s,a){this._ngZone=n,this._platform=i,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 B,this._rootNodeFocusAndBlurListener=c=>{let u=Rn(c);for(let l=u;l;l=l.parentElement)c.type==="focus"?this._onFocus(c,l):this._onBlur(c,l)},this._document=s,this._detectionMode=a?.detectionMode||Ku.IMMEDIATE}monitor(n,i=!1){let o=kr(n);if(!this._platform.isBrowser||o.nodeType!==1)return x();let s=lE(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new B,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){let i=kr(n),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(n,i,o){let s=kr(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,u])=>this._originChanged(c,i,u)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Ku.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused",i==="touch"),n.classList.toggle("cdk-keyboard-focused",i==="keyboard"),n.classList.toggle("cdk-mouse-focused",i==="mouse"),n.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(n,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&i,this._detectionMode===Ku.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?EE:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,i){let o=this._elementInfo.get(i),s=Rn(n);!o||!o.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),o)}_onBlur(n,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(n,i){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(i))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let i=n.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Yu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Yu)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Vn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,i,o){this._setClasses(n,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(n){let i=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&i.push([s,o])}),i}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let e=class e{constructor(n,i){this._platform=n,this._document=i,this._breakpointSubscription=g(mE).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Lr.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Lr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Lr.BLACK_ON_WHITE}return Lr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(rm,yE,DE),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Lr.BLACK_ON_WHITE?n.add(rm,yE):i===Lr.WHITE_ON_BLACK&&n.add(rm,DE)}}};e.\u0275fac=function(i){return new(i||e)(p(je),p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),GG=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(p(am))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[fE]});let t=e;return t})();var I1=new v("cdk-dir-doc",{providedIn:"root",factory:C1});function C1(){return g(W)}var x1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function M1(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?x1.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var n5=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new X,n){let i=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=M1(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(p(I1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var cm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();var A1=["*",[["mat-option"],["ng-container"]]],N1=["*","mat-option, ng-container"],R1=["text"],O1=[[["mat-icon"]],"*"],F1=["mat-icon","*"];function k1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",1),t&2){let r=Lc();Mi("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function P1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",3),t&2){let r=Lc();Mi("disabled",r.disabled)}}function L1(t,e){if(t&1&&(wn(0,"span",4),bh(1),En()),t&2){let r=Lc();Ci(),Ho("(",r.group.label,")")}}var j1=["mat-internal-form-field",""],V1=["*"];var E5=(()=>{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})(),I5=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function U1(){return!0}var B1=new v("mat-sanity-checks",{providedIn:"root",factory:U1}),ln=(()=>{let e=class e{constructor(n,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return dE()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(i){return new(i||e)(p(am),p(B1,8),p(W))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[cm,cm]});let t=e;return t})();var CE=class{constructor(e,r,n,i,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=n,this._parentForm=i,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(i,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var C5=(()=>{let e=class e{isErrorState(n,i){return!!(n&&n.invalid&&(n.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xt=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}(xt||{}),dm=class{constructor(e,r,n,i=!1){this._renderer=e,this.element=r,this.config=n,this._animationForciblyDisabledThroughCss=i,this.state=xt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},xE=Zi({passive:!0,capture:!0}),fm=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=Rn(e);r&&this._events.get(e.type)?.forEach((n,i)=>{(i===r||i.contains(r))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,n,i){let o=this._events.get(r);if(o){let s=o.get(n);s?s.add(i):o.set(n,new Set([i]))}else this._events.set(r,new Map([[n,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,xE)})}removeHandler(e,r,n){let i=this._events.get(e);if(!i)return;let o=i.get(r);o&&(o.delete(n),o.size===0&&i.delete(r),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,xE)))}},ME={enterDuration:225,exitDuration:150},$1=800,SE=Zi({passive:!0,capture:!0}),TE=["mousedown","touchstart"],AE=["mouseup","mouseleave","touchend","touchcancel"],Ts=class Ts{constructor(e,r,n,i){this._target=e,this._ngZone=r,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=kr(n))}fadeInRipple(e,r,n={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=b(b({},ME),n.animation);n.centered&&(e=i.left+i.width/2,r=i.top+i.height/2);let s=n.radius||H1(e,r,i),a=e-i.left,c=r-i.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-s}px`,l.style.top=`${c-s}px`,l.style.height=`${s*2}px`,l.style.width=`${s*2}px`,n.color!=null&&(l.style.backgroundColor=n.color),l.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(l);let d=window.getComputedStyle(l),f=d.transitionProperty,h=d.transitionDuration,m=f==="none"||h==="0s"||h==="0s, 0s"||i.width===0&&i.height===0,_=new dm(this,l,n,m);l.style.transform="scale3d(1, 1, 1)",_.state=xt.FADING_IN,n.persistent||(this._mostRecentTransientRipple=_);let w=null;return!m&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let E=()=>{w&&(w.fallbackTimer=null),clearTimeout(q),this._finishRippleTransition(_)},k=()=>this._destroyRipple(_),q=setTimeout(k,u+100);l.addEventListener("transitionend",E),l.addEventListener("transitioncancel",k),w={onTransitionEnd:E,onTransitionCancel:k,fallbackTimer:q}}),this._activeRipples.set(_,w),(m||!u)&&this._finishRippleTransition(_),_}fadeOutRipple(e){if(e.state===xt.FADING_OUT||e.state===xt.HIDDEN)return;let r=e.element,n=b(b({},ME),e.config.animation);r.style.transitionDuration=`${n.exitDuration}ms`,r.style.opacity="0",e.state=xt.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.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=kr(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,TE.forEach(n=>{Ts._eventManager.addHandler(this._ngZone,n,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{AE.forEach(r=>{this._triggerElement.addEventListener(r,this,SE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===xt.FADING_IN?this._startFadeOutTransition(e):e.state===xt.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=xt.VISIBLE,!n&&(!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=xt.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=om(e),n=this._lastTouchStartEvent&&Date.now(){let r=e.state===xt.VISIBLE||e.config.terminateOnPointerUp&&e.state===xt.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(TE.forEach(r=>Ts._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(AE.forEach(r=>e.removeEventListener(r,this,SE)),this._pointerUpEventsRegistered=!1))}};Ts._eventManager=new fm;var hm=Ts;function H1(t,e,r){let n=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),i=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(n*n+i*i)}var FE=new v("mat-ripple-global-options"),kE=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,i,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new hm(this,i,n,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:b(b(b({},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(n,i=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,i,b(b({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(P),y(je),y(FE,8),y(Kn,8))},e.\u0275dir=G({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&we("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})(),mm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln,ln]});let t=e;return t})(),z1=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&we("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:[at],decls:0,vars:0,template:function(i,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})(),G1=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln]});let t=e;return t})(),PE=new v("MAT_OPTION_PARENT_COMPONENT"),W1=0,LE=new v("MatOptgroup"),x5=(()=>{let e=class e{constructor(n){this.disabled=!1,this._labelId=`mat-optgroup-label-${W1++}`,this._inert=n?.inertGroups??!1}};e.\u0275fac=function(i){return new(i||e)(y(PE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,o){i&2&&Xe("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",Ee]},exportAs:["matOptgroup"],standalone:!0,features:[_t([{provide:LE,useExisting:e}]),st,at],ngContentSelectors:N1,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,o){i&1&&(nn(A1),wn(0,"span",0)(1,"span",1),bh(2),Le(3),En()(),Le(4,1)),i&2&&(we("mdc-list-item--disabled",o.disabled),Mi("id",o._labelId),Ci(2),Ho("",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})(),q1=0,pm=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},M5=(()=>{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(n){this._disabled=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,i,o,s){this._element=n,this._changeDetectorRef=i,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${q1++}`,this.onSelectionChange=new X,this._stateChanges=new B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,i){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!qu(n)&&(this._selectViaInteraction(),n.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 n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new pm(this,n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(wt),y(PE,8),y(LE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&SD(R1,7),i&2){let s;jc(s=Vc())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&In("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),i&2&&(gh("id",o.id),Xe("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),we("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",Ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[st,at],ngContentSelectors:F1,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(i,o){i&1&&(nn(O1),kc(0,k1,1,2,"mat-pseudo-checkbox",1),Le(1),wn(2,"span",2,0),Le(4,1),En(),kc(5,P1,1,1,"mat-pseudo-checkbox",3)(6,L1,2,1,"span",4),Je(7,"div",5)),i&2&&(Pc(o.multiple?0:-1),Ci(5),Pc(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),Ci(),Pc(o.group&&o.group._inert?6:-1),Ci(),Mi("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[z1,kE],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 S5(t,e,r){if(r.length){let n=e.toArray(),i=r.toArray(),o=0;for(let s=0;sr+n?Math.max(0,t-n+e):r}var A5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[mm,ln,G1]});let t=e;return t})(),NE={capture:!0},RE=["focus","mousedown","mouseenter","touchstart"],um="mat-ripple-loader-uninitialized",lm="mat-ripple-loader-class-name",OE="mat-ripple-loader-centered",Ju="mat-ripple-loader-disabled",jE=(()=>{let e=class e{constructor(){this._document=g(W,{optional:!0}),this._animationMode=g(Kn,{optional:!0}),this._globalRippleOptions=g(FE,{optional:!0}),this._platform=g(je),this._ngZone=g(P),this._hosts=new Map,this._onInteraction=n=>{let i=Rn(n);if(i instanceof HTMLElement){let o=i.closest(`[${um}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let n of RE)this._document?.addEventListener(n,this._onInteraction,NE)})}ngOnDestroy(){let n=this._hosts.keys();for(let i of n)this.destroyRipple(i);for(let i of RE)this._document?.removeEventListener(i,this._onInteraction,NE)}configureRipple(n,i){n.setAttribute(um,this._globalRippleOptions?.namespace??""),(i.className||!n.hasAttribute(lm))&&n.setAttribute(lm,i.className||""),i.centered&&n.setAttribute(OE,""),i.disabled&&n.setAttribute(Ju,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,i){let o=this._hosts.get(n);if(o){o.disabled=i;return}i?n.setAttribute(Ju,""):n.removeAttribute(Ju)}_createRipple(n){if(!this._document)return;let i=this._hosts.get(n);if(i)return i;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute(lm)),n.append(o);let s=new kE(new ne(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(OE),s.disabled=n.hasAttribute(Ju),this.attachRipple(n,s),s}attachRipple(n,i){n.removeAttribute(um),this._hosts.set(n,i)}destroyRipple(n){let i=this._hosts.get(n);i&&(i.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),N5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&we("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[at],attrs:j1,ngContentSelectors:V1,decls:1,vars:0,template:function(i,o){i&1&&(nn(),Le(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 VE=["mat-button",""],UE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],BE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Z1='.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)}',$E=".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 Y1=["mat-icon-button",""],K1=["*"];var Q1=new v("MAT_BUTTON_CONFIG");var X1=[{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"]}],gm=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,i,o,s){this._elementRef=n,this._platform=i,this._ngZone=o,this._animationMode=s,this._focusMonitor=g(IE),this._rippleLoader=g(jE),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=g(Q1,{optional:!0}),c=n.nativeElement,u=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:d}of X1)c.hasAttribute(l)&&u.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",i){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,i):this._elementRef.nativeElement.focus(i)}_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(i){Lo()},e.\u0275dir=G({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ee],disabled:[2,"disabled","disabled",Ee],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ee]},features:[st]});let t=e;return t})();var J1=(()=>{let e=class e extends gm{constructor(n,i,o,s){super(n,i,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(i){Lo()},e.\u0275dir=G({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",n=>n==null?void 0:Ih(n)]},features:[st,be]});let t=e;return t})(),G5=(()=>{let e=class e extends gm{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("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:[be,at],attrs:VE,ngContentSelectors:BE,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(i,o){i&1&&(nn(UE),Je(0,"span",0),Le(1),wn(2,"span",1),Le(3,1),En(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("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})(),W5=(()=>{let e=class e extends J1{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),Si(o.color?"mat-"+o.color:""),we("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:[be,at],attrs:VE,ngContentSelectors:BE,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(i,o){i&1&&(nn(UE),Je(0,"span",0),Le(1),wn(2,"span",1),Le(3,1),En(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[Z1,$E],encapsulation:2,changeDetection:0});let t=e;return t})();var q5=(()=>{let e=class e extends gm{constructor(n,i,o,s){super(n,i,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("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:[be,at],attrs:Y1,ngContentSelectors:K1,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(i,o){i&1&&(nn(),Je(0,"span",0),Le(1),Je(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}',$E],encapsulation:2,changeDetection:0});let t=e;return t})();var Z5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln,mm,ln]});let t=e;return t})();var eP=["*"],el;function tP(){if(el===void 0&&(el=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(el=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return el}function As(t){return tP()?.createHTML(t)||t}function HE(t){return Error(`Unable to find icon with the name "${t}"`)}function nP(){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 zE(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function GE(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var On=class{constructor(e,r,n){this.url=e,this.svgText=r,this.options=n}},rP=(()=>{let e=class e{constructor(n,i,o,s){this._httpClient=n,this._sanitizer=i,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(n,i,o){return this.addSvgIconInNamespace("",n,i,o)}addSvgIconLiteral(n,i,o){return this.addSvgIconLiteralInNamespace("",n,i,o)}addSvgIconInNamespace(n,i,o,s){return this._addSvgIconConfig(n,i,new On(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,i,o,s){let a=this._sanitizer.sanitize(Pe.HTML,o);if(!a)throw GE(o);let c=As(a);return this._addSvgIconConfig(n,i,new On("",c,s))}addSvgIconSet(n,i){return this.addSvgIconSetInNamespace("",n,i)}addSvgIconSetLiteral(n,i){return this.addSvgIconSetLiteralInNamespace("",n,i)}addSvgIconSetInNamespace(n,i,o){return this._addSvgIconSetConfig(n,new On(i,null,o))}addSvgIconSetLiteralInNamespace(n,i,o){let s=this._sanitizer.sanitize(Pe.HTML,i);if(!s)throw GE(i);let a=As(s);return this._addSvgIconSetConfig(n,new On("",a,o))}registerFontClassAlias(n,i=n){return this._fontCssClassesByAlias.set(n,i),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let i=this._sanitizer.sanitize(Pe.RESOURCE_URL,n);if(!i)throw zE(n);let o=this._cachedIconsByUrl.get(i);return o?x(tl(o)):this._loadSvgIconFromConfig(new On(n,null)).pipe(ee(s=>this._cachedIconsByUrl.set(i,s)),C(s=>tl(s)))}getNamedSvgIcon(n,i=""){let o=WE(i,n),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(n,a):Ht(HE(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?x(tl(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(C(i=>tl(i)))}_getSvgFromIconSetConfigs(n,i){let o=this._extractIconWithNameFromAnySet(n,i);if(o)return x(o);let s=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Re(c=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(Pe.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(l)),x(null)})));return ao(s).pipe(C(()=>{let a=this._extractIconWithNameFromAnySet(n,i);if(!a)throw HE(n);return a}))}_extractIconWithNameFromAnySet(n,i){for(let o=i.length-1;o>=0;o--){let s=i[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,n,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(ee(i=>n.svgText=i),C(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?x(null):this._fetchIcon(n).pipe(ee(i=>n.svgText=i))}_extractSvgIconFromSet(n,i,o){let s=n.querySelector(`[id="${i}"]`);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(As(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(n){let i=this._document.createElement("DIV");i.innerHTML=n;let o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){let i=this._svgElementFromString(As("")),o=n.attributes;for(let s=0;sAs(l)),ht(()=>this._inProgressUrlFetches.delete(a)),ho());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(n,i,o){return this._svgIconConfigs.set(WE(n,i),o),this}_addSvgIconSetConfig(n,i){let o=this._iconSetConfigs.get(n);return o?o.push(i):this._iconSetConfigs.set(n,[i]),this}_svgElementFromConfig(n){if(!n.svgElement){let i=this._svgElementFromString(n.svgText);this._setSvgAttributes(i,n.options),n.svgElement=i}return n.svgElement}_getIconConfigFromResolvers(n,i){for(let o=0;oe?e.pathname+e.search:""}}var qE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cP=qE.map(t=>`[${t}]`).join(", "),uP=/^url\(['"]?#(.*?)['"]?\)$/,uW=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let i=this._cleanupFontValue(n);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let i=this._cleanupFontValue(n);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(n,i,o,s,a,c){this._elementRef=n,this._iconRegistry=i,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ae.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let i=n.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,i=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let o=n.childNodes[i];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),i.forEach(o=>n.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let i=this._elementsWithExternalReferences;i&&i.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let i=n.querySelectorAll(cP),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=i[s],u=c.getAttribute(a),l=u?u.match(uP):null;if(l){let d=o.get(c);d||(d=[],o.set(c,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[i,o]=this._splitIconName(n);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(ge(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${i}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(rP),Fo("aria-hidden"),y(sP),y(Te),y(oP,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(Xe("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),Si(o.color?"mat-"+o.color:""),we("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",Ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[st,at],ngContentSelectors:eP,decls:1,vars:0,template:function(i,o){i&1&&(nn(),Le(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})(),lW=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln,ln]});let t=e;return t})();var Mt=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}(Mt||{}),fW="*";function hW(t,e){return{type:Mt.Trigger,name:t,definitions:e,options:{}}}function pW(t,e=null){return{type:Mt.Animate,styles:e,timings:t}}function mW(t,e=null){return{type:Mt.Group,steps:t,options:e}}function gW(t,e=null){return{type:Mt.Sequence,steps:t,options:e}}function vW(t){return{type:Mt.Style,styles:t,offset:null}}function bW(t,e,r){return{type:Mt.State,name:t,styles:e,options:r}}function yW(t){return{type:Mt.Keyframes,steps:t}}function DW(t,e,r=null){return{type:Mt.Transition,expr:t,animation:e,options:r}}function _W(t=null){return{type:Mt.AnimateChild,options:t}}function wW(t,e,r=null){return{type:Mt.Query,selector:t,animation:e,options:r}}function EW(t,e){return{type:Mt.Stagger,timings:t,animation:e}}var ZE=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(n=>n()),r.length=0}},YE=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,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==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(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n: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(n=>n()),r.length=0}},IW="!";function vm(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Ao(vm);let n=r?e?.injector?.get(Cr)??g(Cr):null,i=lP(e?.equal),o;e?.requireSync?o=_n({kind:0},{equal:i}):o=_n({kind:1,value:e?.initialValue},{equal:i});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 n?.onDestroy(s.unsubscribe.bind(s)),on(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new I(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:e?.equal})}function lP(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var _m={};function Cm(t,e){if(_m[t]=(_m[t]||0)+1,typeof e=="function")return bm(t,(...n)=>O(b({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return bm(t,()=>({type:t}));case"props":return bm(t,n=>O(b({},n),{type:t}));default:throw new Error("Unexpected config.")}}function Ki(){return{_as:"props",_p:void 0}}function bm(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}function dP(t){return t.charAt(0).toUpperCase()+t.substring(1)}function fP(t){return t.charAt(0).toLowerCase()+t.substring(1)}function d0(t){let{source:e,events:r}=t;return Object.keys(r).reduce((n,i)=>O(b({},n),{[hP(i)]:Cm(pP(e,i),r[i])}),{})}function xm(){return Ki()}function hP(t){return t.trim().split(" ").map((e,r)=>r===0?fP(e):dP(e)).join("")}function pP(t,e){return`[${t}] ${e}`}var f0="@ngrx/store/init",Qi=(()=>{let e=class e extends de{constructor(){super({type:f0})}next(n){if(typeof n=="function")throw new TypeError(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function sr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ae=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:n}=this;if(T(n))try{n()}catch(o){e=o instanceof qs?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{rg(o)}catch(s){e=e??[],s instanceof qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new qs(e)}}add(e){var r;if(e&&e!==this)if(this.closed)rg(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)&&sr(r,e)}remove(e){let{_finalizers:r}=this;r&&sr(r,e),e instanceof t&&e._removeParent(this)}};ae.EMPTY=(()=>{let t=new ae;return t.closed=!0,t})();var _l=ae.EMPTY;function Zs(t){return t instanceof ae||t&&"closed"in t&&T(t.remove)&&T(t.add)&&T(t.unsubscribe)}function rg(t){T(t)?t():t.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Br={setTimeout(t,e,...r){let{delegate:n}=Br;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Br;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ys(t){Br.setTimeout(()=>{let{onUnhandledError:e}=St;if(e)e(t);else throw t})}function ln(){}var ig=wl("C",void 0,void 0);function og(t){return wl("E",void 0,t)}function sg(t){return wl("N",t,void 0)}function wl(t,e,r){return{kind:t,value:e,error:r}}var ar=null;function $r(t){if(St.useDeprecatedSynchronousErrorHandling){let e=!ar;if(e&&(ar={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=ar;if(ar=null,r)throw n}}else t()}function ag(t){St.useDeprecatedSynchronousErrorHandling&&ar&&(ar.errorThrown=!0,ar.error=t)}var cr=class extends ae{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Zs(e)&&e.add(this)):this.destination=sI}static create(e,r,n){return new Tt(e,r,n)}next(e){this.isStopped?Il(sg(e),this):this._next(e)}error(e){this.isStopped?Il(og(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Il(ig,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()}}},iI=Function.prototype.bind;function El(t,e){return iI.call(t,e)}var Cl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Ks(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Ks(n)}else Ks(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Ks(r)}}},Tt=class extends cr{constructor(e,r,n){super();let i;if(T(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&St.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&El(e.next,o),error:e.error&&El(e.error,o),complete:e.complete&&El(e.complete,o)}):i=e}this.destination=new Cl(i)}};function Ks(t){St.useDeprecatedSynchronousErrorHandling?ag(t):Ys(t)}function oI(t){throw t}function Il(t,e){let{onStoppedNotification:r}=St;r&&Br.setTimeout(()=>r(t,e))}var sI={closed:!0,next:ln,error:oI,complete:ln};var Hr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ce(t){return t}function xl(...t){return Ml(t)}function Ml(t){return t.length===0?Ce:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var N=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=cI(r)?r:new Tt(r,n,i);return $r(()=>{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(n){r.error(n)}}forEach(r,n){return n=cg(n),new n((i,o)=>{let s=new Tt({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Hr](){return this}pipe(...r){return Ml(r)(this)}toPromise(r){return r=cg(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function cg(t){var e;return(e=t??St.Promise)!==null&&e!==void 0?e:Promise}function aI(t){return t&&T(t.next)&&T(t.error)&&T(t.complete)}function cI(t){return t&&t instanceof cr||aI(t)&&Zs(t)}function Sl(t){return T(t?.lift)}function S(t){return e=>{if(Sl(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function M(t,e,r,n,i){return new to(t,e,r,n,i)}var to=class extends cr{constructor(e,r,n,i,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=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}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 zr(){return S((t,e)=>{let r=null;t._refCount++;let n=M(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Gr=class extends N{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Sl(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 ae;let r=this.getSubject();e.add(this.source.subscribe(M(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ae.EMPTY)}return e}refCount(){return zr()(this)}};var ug=On(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class t extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Qs(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new ug}next(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){$r(()=>{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:n,isStopped:i,observers:o}=this;return n||i?_l:(this.currentObservers=null,o.push(r),new ae(()=>{this.currentObservers=null,sr(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new N;return r.source=this,r}}return t.create=(e,r)=>new Qs(e,r),t})(),Qs=class extends B{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.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,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:_l}};var de=class extends B{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:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var no={now(){return(no.delegate||Date).now()},delegate:void 0};var ro=class extends B{constructor(e=1/0,r=1/0,n=no){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,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:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;r||(n.push(e),!i&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let s=0;slg(e)&&t()),e},clearImmediate(t){lg(t)}};var{setImmediate:lI,clearImmediate:dI}=dg,oo={setImmediate(...t){let{delegate:e}=oo;return(e?.setImmediate||lI)(...t)},clearImmediate(t){let{delegate:e}=oo;return(e?.clearImmediate||dI)(t)},delegate:void 0};var Js=class extends Fn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,n=0){return n!==null&&n>0?super.requestAsyncId(e,r,n):(e.actions.push(this),e._scheduled||(e._scheduled=oo.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,n=0){var i;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,r,n);let{actions:o}=e;r!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==r&&(oo.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var Wr=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Wr.now=no.now;var kn=class extends Wr{constructor(e,r=Wr.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var ea=class extends kn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:n}=this,i;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,i){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw i}}};var fI=new ea(Js);var dn=new kn(Fn),fg=dn;var ta=class extends Fn{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,n=0){return n!=null&&n>0||n==null&&this.delay>0?super.requestAsyncId(e,r,n):(e.flush(this),0)}};var na=class extends kn{};var Nl=new na(ta);var xe=new N(t=>t.complete());function ra(t){return t&&T(t.schedule)}function Rl(t){return t[t.length-1]}function qr(t){return T(Rl(t))?t.pop():void 0}function Bt(t){return ra(Rl(t))?t.pop():void 0}function hg(t,e){return typeof Rl(t)=="number"?t.pop():e}function SV(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function mg(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function pg(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ur(t){return this instanceof ur?(this.v=t,this):new ur(t)}function gg(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(m,_){o.push([f,h,m,_])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(m){d(o[0][3],m)}}function c(f){f.value instanceof ur?Promise.resolve(f.value.v).then(u,l):d(o[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function vg(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 pg=="function"?pg(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var Zr=t=>t&&typeof t.length=="number"&&typeof t!="function";function ia(t){return T(t?.then)}function oa(t){return T(t[Hr])}function sa(t){return Symbol.asyncIterator&&T(t?.[Symbol.asyncIterator])}function aa(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 hI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ca=hI();function ua(t){return T(t?.[ca])}function la(t){return gg(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield ur(r.read());if(i)return yield ur(void 0);yield yield ur(n)}}finally{r.releaseLock()}})}function da(t){return T(t?.getReader)}function V(t){if(t instanceof N)return t;if(t!=null){if(oa(t))return pI(t);if(Zr(t))return mI(t);if(ia(t))return gI(t);if(sa(t))return bg(t);if(ua(t))return vI(t);if(da(t))return bI(t)}throw aa(t)}function pI(t){return new N(e=>{let r=t[Hr]();if(T(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mI(t){return new N(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Ys)})}function vI(t){return new N(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function bg(t){return new N(e=>{yI(t,e).catch(r=>e.error(r))})}function bI(t){return bg(la(t))}function yI(t,e){var r,n,i,o;return mg(this,void 0,void 0,function*(){try{for(r=vg(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Ne(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function lr(t,e=0){return S((r,n)=>{r.subscribe(M(n,i=>Ne(n,t,()=>n.next(i),e),()=>Ne(n,t,()=>n.complete(),e),i=>Ne(n,t,()=>n.error(i),e)))})}function fa(t,e=0){return S((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function yg(t,e){return V(t).pipe(fa(e),lr(e))}function Dg(t,e){return V(t).pipe(fa(e),lr(e))}function _g(t,e){return new N(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function wg(t,e){return new N(r=>{let n;return Ne(r,e,()=>{n=t[ca](),Ne(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>T(n?.return)&&n.return()})}function ha(t,e){if(!t)throw new Error("Iterable cannot be null");return new N(r=>{Ne(r,e,()=>{let n=t[Symbol.asyncIterator]();Ne(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Eg(t,e){return ha(la(t),e)}function Ig(t,e){if(t!=null){if(oa(t))return yg(t,e);if(Zr(t))return _g(t,e);if(ia(t))return Dg(t,e);if(sa(t))return ha(t,e);if(ua(t))return wg(t,e);if(da(t))return Eg(t,e)}throw aa(t)}function re(t,e){return e?Ig(t,e):V(t)}function x(...t){let e=Bt(t);return re(t,e)}function $t(t,e){let r=T(t)?t:()=>t,n=i=>i.error(r());return new N(e?i=>e.schedule(n,0,i):n)}var Pn=class t{constructor(e,r,n){this.kind=e,this.value=r,this.error=n,this.hasValue=e==="N"}observe(e){return Ol(this,e)}do(e,r,n){let{kind:i,value:o,error:s}=this;return i==="N"?e?.(o):i==="E"?r?.(s):n?.()}accept(e,r,n){var i;return T((i=e)===null||i===void 0?void 0:i.next)?this.observe(e):this.do(e,r,n)}toObservable(){let{kind:e,value:r,error:n}=this,i=e==="N"?x(r):e==="E"?$t(()=>n):e==="C"?xe:0;if(!i)throw new TypeError(`Unexpected notification kind ${e}`);return i}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};Pn.completeNotification=new Pn("C");function Ol(t,e){var r,n,i;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"?(n=e.error)===null||n===void 0||n.call(e,a):(i=e.complete)===null||i===void 0||i.call(e)}function Fl(t){return!!t&&(t instanceof N||T(t.lift)&&T(t.subscribe))}var At=On(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function DI(t,e){let r=typeof e=="object";return new Promise((n,i)=>{let o=new Tt({next:s=>{n(s),o.unsubscribe()},error:i,complete:()=>{r?n(e.defaultValue):i(new At)}});t.subscribe(o)})}function pa(t){return t instanceof Date&&!isNaN(t)}var _I=On(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function wI(t,e){let{first:r,each:n,with:i=EI,scheduler:o=e??dn,meta:s=null}=pa(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&n==null)throw new TypeError("No timeout provided.");return S((a,c)=>{let u,l,d=null,f=0,h=m=>{l=Ne(c,o,()=>{try{u.unsubscribe(),V(i({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(_){c.error(_)}},m)};u=a.subscribe(M(c,m=>{l?.unsubscribe(),f++,c.next(d=m),n>0&&h(n)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!f&&h(r!=null?typeof r=="number"?r:+r-o.now():n)})}function EI(t){throw new _I(t)}function C(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:II}=Array;function CI(t,e){return II(e)?t(...e):t(e)}function Yr(t){return C(e=>CI(t,e))}var{isArray:xI}=Array,{getPrototypeOf:MI,prototype:SI,keys:TI}=Object;function ma(t){if(t.length===1){let e=t[0];if(xI(e))return{args:e,keys:null};if(AI(e)){let r=TI(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function AI(t){return t&&typeof t=="object"&&MI(t)===SI}function ga(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function dr(...t){let e=Bt(t),r=qr(t),{args:n,keys:i}=ma(t);if(n.length===0)return re([],e);let o=new N(NI(n,e,i?s=>ga(i,s):Ce));return r?o.pipe(Yr(r)):o}function NI(t,e,r=Ce){return n=>{Cg(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let u=re(t[c],e),l=!1;u.subscribe(M(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Cg(t,e,r){t?Ne(r,t,e):e()}function xg(t,e,r,n,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete()},h=_=>u{o&&e.next(_),u++;let w=!1;V(r(_,l++)).subscribe(M(e,E=>{i?.(E),o?h(E):e.next(E)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;c.length&&um(E)):m(E)}f()}catch(E){e.error(E)}}))};return t.subscribe(M(e,h,()=>{d=!0,f()})),()=>{a?.()}}function Q(t,e,r=1/0){return T(e)?Q((n,i)=>C((o,s)=>e(n,o,i,s))(V(t(n,i))),r):(typeof e=="number"&&(r=e),S((n,i)=>xg(n,i,t,r)))}function Ht(t=1/0){return Q(Ce,t)}function Mg(){return Ht(1)}function zt(...t){return Mg()(re(t,Bt(t)))}function so(t){return new N(e=>{V(t()).subscribe(e)})}function ao(...t){let e=qr(t),{args:r,keys:n}=ma(t),i=new N(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(n?ga(n,a):a),o.complete())}))}});return e?i.pipe(Yr(e)):i}var RI=["addListener","removeListener"],OI=["addEventListener","removeEventListener"],FI=["on","off"];function kl(t,e,r,n){if(T(r)&&(n=r,r=void 0),n)return kl(t,e,r).pipe(Yr(n));let[i,o]=LI(t)?OI.map(s=>a=>t[s](e,a,r)):kI(t)?RI.map(Sg(t,e)):PI(t)?FI.map(Sg(t,e)):[];if(!i&&Zr(t))return Q(s=>kl(s,e,r))(V(t));if(!i)throw new TypeError("Invalid event target");return new N(s=>{let a=(...c)=>s.next(1o(a)})}function Sg(t,e){return r=>n=>t[r](e,n)}function kI(t){return T(t.addListener)&&T(t.removeListener)}function PI(t){return T(t.on)&&T(t.off)}function LI(t){return T(t.addEventListener)&&T(t.removeEventListener)}function co(t=0,e,r=fg){let n=-1;return e!=null&&(ra(e)?r=e:n=e),new N(i=>{let o=pa(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function va(...t){let e=Bt(t),r=hg(t,1/0),n=t;return n.length?n.length===1?V(n[0]):Ht(r)(re(n,e)):xe}function le(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Tg(t){return S((e,r)=>{let n=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let u=i;i=null,r.next(u)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(M(r,u=>{n=!0,i=u,o||V(t(u)).subscribe(o=M(r,a,c))},()=>{s=!0,(!n||!o||o.closed)&&r.complete()}))})}function jI(t,e=dn){return Tg(()=>co(t,e))}function Re(t){return S((e,r)=>{let n=null,i=!1,o;n=e.subscribe(M(r,void 0,void 0,s=>{o=V(t(s,Re(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Ag(t,e,r,n,i){return(o,s)=>{let a=r,c=e,u=0;o.subscribe(M(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Gt(t,e){return T(e)?Q(t,e,1):Q(t,1)}function Kr(t,e=dn){return S((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{o=u,s=e.now(),i||(i=e.schedule(c,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Ln(t){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function ge(t){return t<=0?()=>xe:S((e,r)=>{let n=0;e.subscribe(M(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function uo(){return S((t,e)=>{t.subscribe(M(e,ln))})}function lo(t){return C(()=>t)}function Pl(t,e){return e?r=>zt(e.pipe(ge(1),uo()),r.pipe(Pl(t))):Q((r,n)=>V(t(r,n)).pipe(ge(1),lo(r)))}function Ng(t,e=dn){let r=co(t,e);return Pl(()=>r)}function Ll(){return S((t,e)=>{t.subscribe(M(e,r=>Ol(r,e)))})}function Qr(t,e=Ce){return t=t??VI,S((r,n)=>{let i,o=!0;r.subscribe(M(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function VI(t,e){return t===e}function ba(t=UI){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function UI(){return new At}function ya(t,e){return e?r=>r.pipe(ya((n,i)=>V(t(n,i)).pipe(C((o,s)=>e(n,o,i,s))))):S((r,n)=>{let i=0,o=null,s=!1;r.subscribe(M(n,a=>{o||(o=M(n,void 0,()=>{o=null,s&&n.complete()}),V(t(a,i++)).subscribe(o))},()=>{s=!0,!o&&n.complete()}))})}function ht(t){return S((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Nt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,ge(1),r?Ln(e):ba(()=>new At))}function Da(t,e,r,n){return S((i,o)=>{let s;!e||typeof e=="function"?s=e:{duration:r,element:s,connector:n}=e;let a=new Map,c=m=>{a.forEach(m),m(o)},u=m=>c(_=>_.error(m)),l=0,d=!1,f=new to(o,m=>{try{let _=t(m),w=a.get(_);if(!w){a.set(_,w=n?n():new B);let E=h(_,w);if(o.next(E),r){let k=M(w,()=>{w.complete(),k?.unsubscribe()},void 0,void 0,()=>a.delete(_));f.add(V(r(E)).subscribe(k))}}w.next(s?s(m):m)}catch(_){u(_)}},()=>c(m=>m.complete()),u,()=>a.clear(),()=>(d=!0,l===0));i.subscribe(f);function h(m,_){let w=new N(E=>{l++;let k=_.subscribe(E);return()=>{k.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return w.key=m,w}})}function Xr(t){return t<=0?()=>xe:S((e,r)=>{let n=[];e.subscribe(M(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function jl(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,Xr(1),r?Ln(e):ba(()=>new At))}function Vl(){return S((t,e)=>{t.subscribe(M(e,r=>{e.next(Pn.createNext(r))},()=>{e.next(Pn.createComplete()),e.complete()},r=>{e.next(Pn.createError(r)),e.complete()}))})}function Ul(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return C(r=>{let n=r;for(let i=0;i=2,!0))}function ho(t={}){let{connector:e=()=>new B,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,l=d=!1},m=()=>{let _=s;h(),_?.unsubscribe()};return S((_,w)=>{u++,!d&&!l&&f();let E=c=c??e();w.add(()=>{u--,u===0&&!d&&!l&&(a=Bl(m,i))}),E.subscribe(w),!s&&u>0&&(s=new Tt({next:k=>E.next(k),error:k=>{d=!0,f(),a=Bl(h,r,k),E.error(k)},complete:()=>{l=!0,f(),a=Bl(h,n),E.complete()}}),V(_).subscribe(s))})(o)}}function Bl(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Tt({next:()=>{n.unsubscribe(),t()}});return V(e(...r)).subscribe(n)}function BI(t,e,r){let n,i=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:r}=t:n=t??1/0,ho({connector:()=>new ro(n,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Jr(t){return le((e,r)=>t<=r)}function po(...t){let e=Bt(t);return S((r,n)=>{(e?zt(t,r,e):zt(t,r)).subscribe(n)})}function Ve(t,e){return S((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(M(n,c=>{i?.unsubscribe();let u=0,l=o++;V(t(c,l)).subscribe(i=M(n,d=>n.next(e?e(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function jn(t){return S((e,r)=>{V(t).subscribe(M(r,()=>r.complete(),ln)),!r.closed&&e.subscribe(r)})}function $I(t,e=!1){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{let s=t(o,i++);(s||e)&&n.next(o),!s&&n.complete()}))})}function ee(t,e,r){let n=T(t)||e||r?{next:t,error:e,complete:r}:t;return n?S((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(M(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):Ce}function mo(...t){let e=qr(t);return S((r,n)=>{let i=t.length,o=new Array(i),s=t.map(()=>!1),a=!1;for(let c=0;c{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ce))&&(s=null))},ln));r.subscribe(M(n,c=>{if(a){let u=[c,...o];n.next(e?e(...u):u)}}))})}var Cv="https://g.co/ng/security#xss",I=class extends Error{constructor(e,r){super(lc(e,r)),this.code=e}};function lc(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function xo(t){return{toString:t}.toString()}var _a="__parameters__";function HI(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function wf(t,e,r){return xo(()=>{let n=HI(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(_a)?c[_a]:Object.defineProperty(c,_a,{value:[]})[_a];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var ye=globalThis;function ie(t){for(let e in t)if(t[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function zI(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function $e(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map($e).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 sd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var GI=ie({__forward_ref__:ie});function kt(t){return t.__forward_ref__=kt,t.toString=function(){return $e(this())},t}function Ue(t){return xv(t)?t():t}function xv(t){return typeof t=="function"&&t.hasOwnProperty(GI)&&t.__forward_ref__===kt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function H(t){return{providers:t.providers||[],imports:t.imports||[]}}function dc(t){return Rg(t,Sv)||Rg(t,Tv)}function Mv(t){return dc(t)!==null}function Rg(t,e){return t.hasOwnProperty(e)?t[e]:null}function WI(t){let e=t&&(t[Sv]||t[Tv]);return e||null}function Og(t){return t&&(t.hasOwnProperty(Fg)||t.hasOwnProperty(qI))?t[Fg]:null}var Sv=ie({\u0275prov:ie}),Fg=ie({\u0275inj:ie}),Tv=ie({ngInjectableDef:ie}),qI=ie({ngInjectorDef:ie}),v=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 Av(t){return t&&!!t.\u0275providers}var ZI=ie({\u0275cmp:ie}),YI=ie({\u0275dir:ie}),KI=ie({\u0275pipe:ie}),QI=ie({\u0275mod:ie}),Pa=ie({\u0275fac:ie}),go=ie({__NG_ELEMENT_ID__:ie}),kg=ie({__NG_ENV_ID__:ie});function fc(t){return typeof t=="string"?t:t==null?"":String(t)}function XI(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():fc(t)}function JI(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new I(-200,t)}function Ef(t,e){throw new I(-201,!1)}var U=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}(U||{}),ad;function Nv(){return ad}function qe(t){let e=ad;return ad=t,e}function Rv(t,e,r){let n=dc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&U.Optional)return null;if(e!==void 0)return e;Ef(t,"Injector")}var eC={},vo=eC,cd="__NG_DI_FLAG__",La="ngTempTokenPath",tC="ngTokenPath",nC=/\n/gm,rC="\u0275",Pg="__source",ii;function iC(){return ii}function Vn(t){let e=ii;return ii=t,e}function oC(t,e=U.Default){if(ii===void 0)throw new I(-203,!1);return ii===null?Rv(t,void 0,e):ii.get(t,e&U.Optional?null:void 0,e)}function p(t,e=U.Default){return(Nv()||oC)(Ue(t),e)}function g(t,e=U.Default){return p(t,hc(e))}function hc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ud(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):$e(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(nC,` + `)}`}var Cf=If(wf("Inject",t=>({token:t})),-1),yi=If(wf("Optional"),8);var Mo=If(wf("SkipSelf"),4);function mr(t,e){let r=t.hasOwnProperty(Pa);return r?t[Pa]:null}function uC(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?xf(r,e):e(r))}function Ov(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ja(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dC(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function So(t,e,r){let n=To(t,e);return n>=0?t[n|1]=r:(n=~n,fC(t,n,e,r)),n}function $l(t,e){let r=To(t,e);if(r>=0)return t[r|1]}function To(t,e){return hC(t,e,1)}function hC(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(Rt(n))return!1;s=!0}}}}return Rt(n)||s}function Rt(t){return(t&1)===0}function yC(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Rt(s)&&(e+=jg(o,i),i=""),n=s,o=o||!Rt(n);r++}return i!==""&&(e+=jg(o,i)),e}function CC(t){return t.map(IC).join(",")}function xC(t){let e=[],r=[],n=1,i=2;for(;n{let e=zv(t),r=O(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Pv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Zt.Emulated,styles:t.styles||Oe,_:null,schemas:t.schemas||null,tView:null,id:""});Gv(r);let n=t.dependencies;return r.directiveDefs=Ug(n,!1),r.pipeDefs=Ug(n,!0),r.id=TC(r),r})}function MC(t){return $n(t)||Uv(t)}function SC(t){return t!==null}function z(t){return xo(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Vg(t,e){if(t==null)return si;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=Bn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==Bn.None?[n,a]:n,e[o]=s):r[o]=n}return r}function G(t){return xo(()=>{let e=zv(t);return Gv(e),e})}function pc(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[ZI]||null}function Uv(t){return t[YI]||null}function Bv(t){return t[KI]||null}function $v(t){let e=$n(t)||Uv(t)||Bv(t);return e!==null?e.standalone:!1}function Hv(t,e){let r=t[QI]||null;if(!r&&e===!0)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return r}function zv(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||si,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Vg(t.inputs,e),outputs:Vg(t.outputs),debugInfo:null}}function Gv(t){t.features?.forEach(e=>e(t))}function Ug(t,e){if(!t)return null;let r=e?Bv:MC;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(SC)}function TC(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 i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function vn(t){return{\u0275providers:t}}function AC(...t){return{\u0275providers:Wv(!0,t),\u0275fromNgModule:!0}}function Wv(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return xf(e,s=>{let a=s;dd(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&qv(i,o),r}function qv(t,e){for(let r=0;r{e(o,n)})}}function dd(t,e,r,n){if(t=Ue(t),!t)return!1;let i=null,o=Og(t),s=!o&&$n(t);if(!o&&!s){let c=t.ngModule;if(o=Og(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)dd(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{xf(o.imports,l=>{dd(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&qv(u,e)}if(!a){let u=mr(i)||(()=>new i);e({provide:i,useFactory:u,deps:Oe},i),e({provide:kv,useValue:i,multi:!0},i),e({provide:fn,useValue:()=>p(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;Sf(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function Sf(t,e){for(let r of t)Av(r)&&(r=r.\u0275providers),Array.isArray(r)?Sf(r,e):e(r)}var NC=ie({provide:String,useValue:ie});function Zv(t){return t!==null&&typeof t=="object"&&NC in t}function RC(t){return!!(t&&t.useExisting)}function OC(t){return!!(t&&t.useFactory)}function ai(t){return typeof t=="function"}function FC(t){return!!t.useClass}var mc=new v(""),Ta={},kC={},Hl;function Tf(){return Hl===void 0&&(Hl=new Va),Hl}var Fe=class{},yo=class extends Fe{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hd(e,s=>this.processProvider(s)),this.records.set(Fv,ei(void 0,this)),i.has("environment")&&this.records.set(Fe,ei(void 0,this));let o=this.records.get(mc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(kv,Oe,U.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=$(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),$(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Vn(this),n=qe(void 0),i;try{return e()}finally{Vn(r),qe(n)}}get(e,r=vo,n=U.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(kg))return e[kg](this);n=hc(n);let i,o=Vn(this),s=qe(void 0);try{if(!(n&U.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=UC(e)&&dc(e);u&&this.injectableDefInScope(u)?c=ei(fd(e),Ta):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&U.Self?Tf():this.parent;return r=n&U.Optional&&r===vo?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[La]=a[La]||[]).unshift($e(e)),o)throw a;return aC(a,e,"R3InjectorError",this.source)}else throw a}finally{qe(s),Vn(o)}}resolveInjectorInitializers(){let e=$(null),r=Vn(this),n=qe(void 0),i;try{let o=this.get(fn,Oe,U.Self);for(let s of o)s()}finally{Vn(r),qe(n),$(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push($e(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(e){e=Ue(e);let r=ai(e)?e:Ue(e&&e.provide),n=LC(e);if(!ai(e)&&e.multi===!0){let i=this.records.get(r);i||(i=ei(void 0,Ta,!0),i.factory=()=>ud(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=$(null);try{return r.value===Ta&&(r.value=kC,r.value=r.factory()),typeof r.value=="object"&&r.value&&VC(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{$(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Ue(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 fd(t){let e=dc(t),r=e!==null?e.factory:mr(t);if(r!==null)return r;if(t instanceof v)throw new I(204,!1);if(t instanceof Function)return PC(t);throw new I(204,!1)}function PC(t){if(t.length>0)throw new I(204,!1);let r=WI(t);return r!==null?()=>r.factory(t):()=>new t}function LC(t){if(Zv(t))return ei(void 0,t.useValue);{let e=Yv(t);return ei(e,Ta)}}function Yv(t,e,r){let n;if(ai(t)){let i=Ue(t);return mr(i)||fd(i)}else if(Zv(t))n=()=>Ue(t.useValue);else if(OC(t))n=()=>t.useFactory(...ud(t.deps||[]));else if(RC(t))n=()=>p(Ue(t.useExisting));else{let i=Ue(t&&(t.useClass||t.provide));if(jC(t))n=()=>new i(...ud(t.deps));else return mr(i)||fd(i)}return n}function ei(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function jC(t){return!!t.deps}function VC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function UC(t){return typeof t=="function"||typeof t=="object"&&t instanceof v}function hd(t,e){for(let r of t)Array.isArray(r)?hd(r,e):r&&Av(r)?hd(r.\u0275providers,e):e(r)}function rt(t,e){t instanceof yo&&t.assertNotDestroyed();let r,n=Vn(t),i=qe(void 0);try{return e()}finally{Vn(n),qe(i)}}function Kv(){return Nv()!==void 0||iC()!=null}function Ao(t){if(!Kv())throw new I(-203,!1)}function BC(t){return typeof t=="function"}var Ze=0,A=1,F=2,Se=3,Ot=4,Ke=5,gt=6,Ua=7,De=8,ci=9,Yt=10,te=11,Do=12,Bg=13,Di=14,He=15,gr=16,ti=17,hn=18,No=19,Qv=20,Un=21,Aa=22,mt=23,oe=25,Af=1,_o=6,pn=7,Ba=8,ui=9,Me=10,$a=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}($a||{});function Ft(t){return Array.isArray(t)&&typeof t[Af]=="object"}function Xt(t){return Array.isArray(t)&&t[Af]===!0}function Nf(t){return(t.flags&4)!==0}function Ro(t){return t.componentOffset>-1}function gc(t){return(t.flags&1)===1}function mn(t){return!!t.template}function Ha(t){return(t[F]&512)!==0}var pd=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Xv(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function it(){return Jv}function Jv(t){return t.type.prototype.ngOnChanges&&(t.setInput=HC),$C}it.ngInherit=!0;function $C(){let t=tb(this),e=t?.current;if(e){let r=t.previous;if(r===si)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function HC(t,e,r,n,i){let o=this.declaredInputs[n],s=tb(t)||zC(t,{previous:si,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new pd(u&&u.currentValue,r,c===si),Xv(t,e,i,r)}var eb="__ngSimpleChanges__";function tb(t){return t[eb]||null}function zC(t,e){return t[eb]=e}var $g=null;var Wt=function(t,e,r){$g?.(t,e,r)},nb="svg",GC="math";function Ye(t){for(;Array.isArray(t);)t=t[Ze];return t}function WC(t){for(;Array.isArray(t);){if(typeof t[Af]=="object")return t;t=t[Ze]}return null}function rb(t,e){return Ye(e[t])}function ot(t,e){return Ye(e[t.index])}function Rf(t,e){return t.data[e]}function Of(t,e){return t[e]}function Kt(t,e){let r=e[t];return Ft(r)?r:r[Ze]}function qC(t){return(t[F]&4)===4}function Ff(t){return(t[F]&128)===128}function ZC(t){return Xt(t[Se])}function Hn(t,e){return e==null?null:t[e]}function ib(t){t[ti]=0}function ob(t){t[F]&1024||(t[F]|=1024,Ff(t)&&vc(t))}function YC(t,e){for(;t>0;)e=e[Di],t--;return e}function wo(t){return!!(t[F]&9216||t[mt]?.dirty)}function md(t){t[Yt].changeDetectionScheduler?.notify(7),t[F]&64&&(t[F]|=1024),wo(t)&&vc(t)}function vc(t){t[Yt].changeDetectionScheduler?.notify(0);let e=vr(t);for(;e!==null&&!(e[F]&8192||(e[F]|=8192,!Ff(e)));)e=vr(e)}function sb(t,e){if((t[F]&256)===256)throw new I(911,!1);t[Un]===null&&(t[Un]=[]),t[Un].push(e)}function KC(t,e){if(t[Un]===null)return;let r=t[Un].indexOf(e);r!==-1&&t[Un].splice(r,1)}function vr(t){let e=t[Se];return Xt(e)?e[Se]:e}var L={lFrame:mb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ab=!1;function QC(){return L.lFrame.elementDepthCount}function XC(){L.lFrame.elementDepthCount++}function JC(){L.lFrame.elementDepthCount--}function cb(){return L.bindingsEnabled}function _i(){return L.skipHydrationRootTNode!==null}function ex(t){return L.skipHydrationRootTNode===t}function tx(t){L.skipHydrationRootTNode=t}function nx(){L.skipHydrationRootTNode=null}function R(){return L.lFrame.lView}function ce(){return L.lFrame.tView}function Pz(t){return L.lFrame.contextLView=t,t[De]}function Lz(t){return L.lFrame.contextLView=null,t}function _e(){let t=ub();for(;t!==null&&t.type===64;)t=t.parent;return t}function ub(){return L.lFrame.currentTNode}function rx(){let t=L.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ir(t,e){let r=L.lFrame;r.currentTNode=t,r.isParent=e}function kf(){return L.lFrame.isParent}function Pf(){L.lFrame.isParent=!1}function ix(){return L.lFrame.contextLView}function lb(){return ab}function Hg(t){ab=t}function Oo(){let t=L.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ox(t){return L.lFrame.bindingIndex=t}function Gn(){return L.lFrame.bindingIndex++}function db(t){let e=L.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function sx(){return L.lFrame.inI18n}function ax(t,e){let r=L.lFrame;r.bindingIndex=r.bindingRootIndex=t,gd(e)}function cx(){return L.lFrame.currentDirectiveIndex}function gd(t){L.lFrame.currentDirectiveIndex=t}function Lf(t){let e=L.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function fb(){return L.lFrame.currentQueryIndex}function jf(t){L.lFrame.currentQueryIndex=t}function ux(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[Ke]:null}function hb(t,e,r){if(r&U.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&U.Host);)if(i=ux(o),i===null||(o=o[Di],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=L.lFrame=pb();return n.currentTNode=e,n.lView=t,!0}function Vf(t){let e=pb(),r=t[A];L.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function pb(){let t=L.lFrame,e=t===null?null:t.child;return e===null?mb(t):e}function mb(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 gb(){let t=L.lFrame;return L.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var vb=gb;function Uf(){let t=gb();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 lx(t){return(L.lFrame.contextLView=YC(t,L.lFrame.contextLView))[De]}function Wn(){return L.lFrame.selectedIndex}function br(t){L.lFrame.selectedIndex=t}function wi(){let t=L.lFrame;return Rf(t.tView,t.selectedIndex)}function jz(){L.lFrame.currentNamespace=nb}function Vz(){dx()}function dx(){L.lFrame.currentNamespace=null}function bb(){return L.lFrame.currentNamespace}var yb=!0;function bc(){return yb}function qn(t){yb=t}function fx(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Jv(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function yc(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[ti]+=65536),(a>14>16&&(t[F]&3)===e&&(t[F]+=16384,zg(a,o)):zg(a,o)}var oi=-1,yr=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function px(t){return t instanceof yr}function mx(t){return(t.flags&8)!==0}function gx(t){return(t.flags&16)!==0}var Gl={},vd=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=hc(n);let i=this.injector.get(e,Gl,n);return i!==Gl||r===Gl?i:this.parentInjector.get(e,r,n)}};function _b(t){return t!==oi}function za(t){return t&32767}function vx(t){return t>>16}function Ga(t,e){let r=vx(t),n=e;for(;r>0;)n=n[Di],r--;return n}var bd=!0;function Wa(t){let e=bd;return bd=t,e}var bx=256,wb=bx-1,Eb=5,yx=0,qt={};function Dx(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(go)&&(n=r[go]),n==null&&(n=r[go]=yx++);let i=n&wb,o=1<>Eb)]|=o}function qa(t,e){let r=Ib(t,e);if(r!==-1)return r;let n=e[A];n.firstCreatePass&&(t.injectorIndex=e.length,Wl(n.data,t),Wl(e,null),Wl(n.blueprint,null));let i=Bf(t,e),o=t.injectorIndex;if(_b(i)){let s=za(i),a=Ga(i,e),c=a[A].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function Wl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ib(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Bf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Tb(i),n===null)return oi;if(r++,i=i[Di],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return oi}function yd(t,e,r){Dx(t,e,r)}function _x(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:u;for(let h=d;h=c&&m.type===r)return h}if(i){let h=s[c];if(h&&mn(h)&&h.type===r)return c}return null}function Dr(t,e,r,n){let i=t[r],o=e.data;if(px(i)){let s=i;s.resolving&&JI(XI(o[r]));let a=Wa(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?qe(s.injectImpl):null,l=hb(t,n,U.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&fx(r,o[r],e)}finally{u!==null&&qe(u),Wa(a),s.resolving=!1,vb()}}return i}function Ex(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(go)?t[go]:void 0;return typeof e=="number"?e>=0?e&wb:Ix:e}function Gg(t,e,r){let n=1<>Eb)]&n)}function Wg(t,e){return!(t&U.Self)&&!(t&U.Host&&e)}var pr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Mb(this._tNode,this._lView,e,hc(n),r)}};function Ix(){return new pr(_e(),R())}function Zn(t){return xo(()=>{let e=t.prototype.constructor,r=e[Pa]||Dd(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Pa]||Dd(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Dd(t){return xv(t)?()=>{let e=Dd(Ue(t));return e&&e()}:mr(t)}function Cx(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[F]&2048&&!(s[F]&512);){let a=Sb(o,s,r,n|U.Self,qt);if(a!==qt)return a;let c=o.parent;if(!c){let u=s[Qv];if(u){let l=u.get(r,qt,n);if(l!==qt)return l}c=Tb(s),s=s[Di]}o=c}return i}function Tb(t){let e=t[A],r=e.type;return r===2?e.declTNode:r===1?t[Ke]:null}function Fo(t){return _x(_e(),t)}function qg(t,e=null,r=null,n){let i=Ab(t,e,r,n);return i.resolveInjectorInitializers(),i}function Ab(t,e=null,r=null,n,i=new Set){let o=[r||Oe,AC(t)];return n=n||(typeof t=="object"?void 0:$e(t)),new yo(o,e||Tf(),n||null,i)}var hr=class hr{static create(e,r){if(Array.isArray(e))return qg({name:""},r,e,"");{let n=e.name??"";return qg({name:n},e.parent,e.providers,n)}}};hr.THROW_IF_NOT_FOUND=vo,hr.NULL=new Va,hr.\u0275prov=D({token:hr,providedIn:"any",factory:()=>p(Fv)}),hr.__NG_ELEMENT_ID__=-1;var ke=hr;var xx=new v("");xx.__NG_ELEMENT_ID__=t=>{let e=_e();if(e===null)throw new I(204,!1);if(e.type&2)return e.value;if(t&U.Optional)return null;throw new I(204,!1)};var Mx="ngOriginalError";function ql(t){return t[Mx]}var Te=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&&ql(e);for(;r&&ql(r);)r=ql(r);return r||null}},Nb=new v("",{providedIn:"root",factory:()=>g(Te).handleError.bind(void 0)}),Cr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Sx,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),_d=class extends Cr{constructor(e){super(),this._lView=e}onDestroy(e){return sb(this._lView,e),()=>KC(this._lView,e)}};function Sx(){return new _d(R())}function Tx(){return Ei(_e(),R())}function Ei(t,e){return new ne(ot(t,e))}var ne=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Tx;let t=e;return t})();function Ax(t){return t instanceof ne?t.nativeElement:t}var Jt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new de(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var wd=class extends B{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Kv()&&(this.destroyRef=g(Cr,{optional:!0})??void 0,this.pendingTasks=g(Jt,{optional:!0})??void 0)}emit(e){let r=$(null);try{super.next(e)}finally{$(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ae&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},X=wd;function Nx(){return this._results[Symbol.iterator]()}var li=class t{get changes(){return this._changes??=new X}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]=Nx)}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 n=lC(e);(this._changesDetected=!uC(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[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())}},Rx="ngSkipHydration",Ox="ngskiphydration";function Rb(t){let e=t.mergedAttrs;if(e===null)return!1;for(let r=0;r=0){let a=Ye(o[s]),c=Zg(o,s,a);pt(a,c),e=c;break}}}}return e||null}function Zg(t,e,r){return new Ed(t[No],e,r)}var Id="__ngContext__";function pt(t,e){Ft(e)?(t[Id]=e[No],Lx(e)):t[Id]=e}function Zl(t){let e=t[Id];return typeof e=="number"?Fb(e):e||null}function kb(t){return t&&t.constructor&&t.constructor.\u0275cmp}function Vx(t){return t&&t.constructor&&t.constructor.\u0275dir}function Yg(t,e){let r=t[A];for(let n=oe;nzx}),zx="ng",Hf=new v(""),Qe=new v("",{providedIn:"platform",factory:()=>"unknown"});var Yn=new v(""),ko=new v("",{providedIn:"root",factory:()=>Dc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Gx(){let t=new Ii;return g(Qe)==="browser"&&(t.store=Wx(Dc(),g(xr))),t}var Ii=(()=>{let e=class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(n,i){return this.store[n]!==void 0?this.store[n]:i}set(n,i){this.store[n]=i}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,i){this.onSerializeCallbacks[n]=i}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function Jx(t,e,r=!1){let n=t.getAttribute(Yl);if(n==null)return null;let[i,o]=n.split("|");if(n=r?o:i,!n)return null;let s=o?`|${o}`:"",a=r?i:s,c={};if(n!==""){let l=e.get(Ii,null,{optional:!0});l!==null&&(c=l.get(zb,[])[Number(n)])}let u={data:c,firstChild:t.firstChild??null};return r&&(u.firstChild=t,_c(u,0,t.nextSibling)),a?t.setAttribute(Yl,a):t.removeAttribute(Yl),u}function eM(){Gb=Jx}function Gf(t,e,r=!1){return Gb(t,e,r)}function tM(t){let e=t._lView;return e[A].type===2?null:(Ha(e)&&(e=e[oe]),e)}function nM(t){return t.textContent?.replace(/\s/gm,"")}function rM(t){let e=Dc(),r=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=nM(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n,i=[];for(;n=r.nextNode();)i.push(n);for(let o of i)o.textContent==="ngetn"?o.replaceWith(e.createTextNode("")):o.remove()}function _c(t,e,r){t.segmentHeads??={},t.segmentHeads[e]=r}function Md(t,e){return t.segmentHeads?.[e]??null}function iM(t,e){let r=t.data,n=r[qx]?.[e]??null;return n===null&&r[zf]?.[e]&&(n=Wf(t,e)),n}function Wb(t,e){return t.data[zf]?.[e]??null}function Wf(t,e){let r=Wb(t,e)??[],n=0;for(let i of r)n+=i[Ya]*(i[$b]??1);return n}function oM(t){if(typeof t.disconnectedNodes>"u"){let e=t.data[Hb];t.disconnectedNodes=e?new Set(e):null}return t.disconnectedNodes}function wc(t,e){if(typeof t.disconnectedNodes>"u"){let r=t.data[Hb];t.disconnectedNodes=r?new Set(r):null}return!!oM(t)?.has(e)}var wa=new v(""),qb=!1,Zb=new v("",{providedIn:"root",factory:()=>qb});var Ea;function sM(){if(Ea===void 0&&(Ea=null,ye.trustedTypes))try{Ea=ye.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ea}function Ec(t){return sM()?.createHTML(t)||t}var Ia;function aM(){if(Ia===void 0&&(Ia=null,ye.trustedTypes))try{Ia=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ia}function Kg(t){return aM()?.createScriptURL(t)||t}var gn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Cv})`}},Sd=class extends gn{getTypeName(){return"HTML"}},Td=class extends gn{getTypeName(){return"Style"}},Ad=class extends gn{getTypeName(){return"Script"}},Nd=class extends gn{getTypeName(){return"URL"}},Rd=class extends gn{getTypeName(){return"ResourceURL"}};function vt(t){return t instanceof gn?t.changingThisBreaksApplicationSecurity:t}function Kn(t,e){let r=cM(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Cv})`)}return r===e}function cM(t){return t instanceof gn&&t.getTypeName()||null}function Yb(t){return new Sd(t)}function Kb(t){return new Td(t)}function Qb(t){return new Ad(t)}function Xb(t){return new Nd(t)}function Jb(t){return new Rd(t)}function uM(t){let e=new Fd(t);return lM()?new Od(e):e}var Od=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Ec(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},Fd=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=Ec(e),r}};function lM(){try{return!!new window.DOMParser().parseFromString(Ec(""),"text/html")}catch{return!1}}var dM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ic(t){return t=String(t),t.match(dM)?t:"unsafe:"+t}function bn(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Po(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var ey=bn("area,br,col,hr,img,wbr"),ty=bn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ny=bn("rp,rt"),fM=Po(ny,ty),hM=Po(ty,bn("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")),pM=Po(ny,bn("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")),Qg=Po(ey,hM,pM,fM),ry=bn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mM=bn("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"),gM=bn("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"),vM=Po(ry,mM,gM),bM=bn("script,style,template"),kd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=_M(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=DM(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=Xg(e).toLowerCase();if(!Qg.hasOwnProperty(r))return this.sanitizedSomething=!0,!bM.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=Xg(e).toLowerCase();Qg.hasOwnProperty(r)&&!ey.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Jg(e))}};function yM(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function DM(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw iy(e);return e}function _M(t){let e=t.firstChild;if(e&&yM(t,e))throw iy(e);return e}function Xg(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function iy(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var wM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EM=/([^\#-~ |!])/g;function Jg(t){return t.replace(/&/g,"&").replace(wM,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(EM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ca;function oy(t,e){let r=null;try{Ca=Ca||uM(t);let n=e?String(e):"";r=Ca.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Ca.getInertBodyElement(n)}while(n!==o);let a=new kd().sanitizeChildren(ev(r)||r);return Ec(a)}finally{if(r){let n=ev(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ev(t){return"content"in t&&IM(t)?t.content:null}function IM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Pe=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}(Pe||{});function CM(t){let e=ay();return e?e.sanitize(Pe.URL,t)||"":Kn(t,"URL")?vt(t):Ic(fc(t))}function xM(t){let e=ay();if(e)return Kg(e.sanitize(Pe.RESOURCE_URL,t)||"");if(Kn(t,"ResourceURL"))return Kg(vt(t));throw new I(904,!1)}function MM(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?xM:CM}function sy(t,e,r){return MM(e,r)(t)}function ay(){let t=R();return t&&t[Yt].sanitizer}var SM=/^>|^->||--!>|)/g,AM="\u200B$1\u200B";function NM(t){return t.replace(SM,e=>e.replace(TM,AM))}function Bz(t){return t.ownerDocument.defaultView}function $z(t){return t.ownerDocument}function RM(t){return t.ownerDocument.body}function cy(t){return t instanceof Function?t():t}function ni(t){return(t??g(ke)).get(Qe)==="browser"}var Qt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Qt||{}),OM;function qf(t,e){return OM(t,e)}function ri(t,e,r,n,i){if(n!=null){let o,s=!1;Xt(n)?o=n:Ft(n)&&(s=!0,n=n[Ze]);let a=Ye(n);t===0&&r!==null?i==null?py(e,r,a):Ka(e,r,a,i||null,!0):t===1&&r!==null?Ka(e,r,a,i||null,!0):t===2?Qf(e,a,s):t===3&&e.destroyNode(a),o!=null&&qM(e,t,o,r,i)}}function uy(t,e){return t.createText(e)}function FM(t,e,r){t.setValue(e,r)}function ly(t,e){return t.createComment(NM(e))}function Zf(t,e,r){return t.createElement(e,r)}function kM(t,e){dy(t,e),e[Ze]=null,e[Ke]=null}function PM(t,e,r,n,i,o){n[Ze]=i,n[Ke]=e,Mc(t,n,r,1,i,o)}function dy(t,e){e[Yt].changeDetectionScheduler?.notify(8),Mc(t,e,e[te],2,null,null)}function LM(t){let e=t[Do];if(!e)return Kl(t[A],t);for(;e;){let r=null;if(Ft(e))r=e[Do];else{let n=e[Me];n&&(r=n)}if(!r){for(;e&&!e[Ot]&&e!==t;)Ft(e)&&Kl(e[A],e),e=e[Se];e===null&&(e=t),Ft(e)&&Kl(e[A],e),r=e&&e[Ot]}e=r}}function jM(t,e,r,n){let i=Me+n,o=r.length;n>0&&(r[i-1][Ot]=e),n0&&(t[r-1][Ot]=n[Ot]);let o=ja(t,Me+e);kM(n[A],n);let s=o[hn];s!==null&&s.detachView(o[A]),n[Se]=null,n[Ot]=null,n[F]&=-129}return n}function Cc(t,e){if(!(e[F]&256)){let r=e[te];r.destroyNode&&Mc(t,e,r,3,null,null),LM(e)}}function Kl(t,e){if(e[F]&256)return;let r=$(null);try{e[F]&=-129,e[F]|=256,e[mt]&&zs(e[mt]),UM(t,e),VM(t,e),e[A].type===1&&e[te].destroy();let n=e[gr];if(n!==null&&Xt(e[Se])){n!==e[Se]&&Yf(n,e);let i=e[hn];i!==null&&i.detachView(t)}jx(e)}finally{$(r)}}function VM(t,e){let r=t.cleanup,n=e[Ua];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ua]=null);let i=e[Un];if(i!==null){e[Un]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===Zt.None||o===Zt.Emulated)return null}return ot(n,r)}}function Ka(t,e,r,n,i){t.insertBefore(e,r,n,i)}function py(t,e,r){t.appendChild(e,r)}function tv(t,e,r,n,i){n!==null?Ka(t,e,r,n,i):py(t,e,r)}function $M(t,e,r,n){t.removeChild(e,r,n)}function Kf(t,e){return t.parentNode(e)}function HM(t,e){return t.nextSibling(e)}function my(t,e,r){return GM(t,e,r)}function zM(t,e,r){return t.type&40?ot(t,r):null}var GM=zM,nv;function xc(t,e,r,n){let i=hy(t,n,e),o=e[te],s=n.parent||e[Ke],a=my(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;coe&&_y(t,e,oe,!1),Wt(s?2:0,i),r(n,i)}finally{br(o),Wt(s?3:1,i)}}function Jf(t,e,r){if(Nf(e)){let n=$(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function tS(t){Ob(t)?vy(t):rM(t)}function nS(){xy=tS}function rS(t,e,r,n){let i=Ny(e);i.push(r),t.firstCreatePass&&Ry(t).push(n,i.length-1)}function iS(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return _i()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,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 rv(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=Bn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?iv(n,r,u,a,c):iv(n,r,u,a)}return n}function iv(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function oS(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function lS(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Ro(r)&&vS(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||qa(r,e),pt(n,e);let s=r.initialInputs;for(let a=i;a{vc(t.lView)},consumerOnSignalRead(){this.lView[mt]=this}});function NS(t){let e=t[mt]??Object.create(RS);return e.lView=t,e}var RS=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=vr(t.lView);for(;e&&!jy(e[A]);)e=vr(e);e&&ob(e)},consumerOnSignalRead(){this.lView[mt]=this}});function jy(t){return t.type!==2}var OS=100;function Vy(t,e=!0,r=0){let n=t[Yt],i=n.rendererFactory,o=!1;o||i.begin?.();try{FS(t,r)}catch(s){throw e&&Fy(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function FS(t,e){let r=lb();try{Hg(!0),Vd(t,e);let n=0;for(;wo(t);){if(n===OS)throw new I(103,!1);n++,Vd(t,1)}}finally{Hg(r)}}function kS(t,e,r,n){let i=e[F];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Yt].inlineEffectRunner?.flush(),Vf(e);let a=!0,c=null,u=null;o||(jy(t)?(u=MS(e),c=eo(u)):Bm()===null?(a=!1,u=NS(e),c=eo(u)):e[mt]&&(zs(e[mt]),e[mt]=null));try{ib(e),ox(t.bindingStartIndex),r!==null&&Iy(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let h=t.preOrderCheckHooks;h!==null&&Na(e,h,null)}else{let h=t.preOrderHooks;h!==null&&Ra(e,h,0,null),zl(e,0)}if(s||PS(e),Uy(e,0),t.contentQueries!==null&&Ay(t,e),!o)if(l){let h=t.contentCheckHooks;h!==null&&Na(e,h)}else{let h=t.contentHooks;h!==null&&Ra(e,h,1),zl(e,1)}KM(t,e);let d=t.components;d!==null&&$y(e,d,0);let f=t.viewQuery;if(f!==null&&jd(2,f,n),!o)if(l){let h=t.viewCheckHooks;h!==null&&Na(e,h)}else{let h=t.viewHooks;h!==null&&Ra(e,h,2),zl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Aa]){for(let h of e[Aa])h();e[Aa]=null}o||(e[F]&=-73)}catch(l){throw o||vc(e),l}finally{u!==null&&($s(u,c),a&&TS(u)),Uf()}}function Uy(t,e){for(let r=Pb(t);r!==null;r=Lb(r))for(let n=Me;n-1&&(Eo(e,n),ja(r,n))}this._attachedToViewContainer=!1}Cc(this._lView[A],this._lView)}onDestroy(e){sb(this._lView,e)}markForCheck(){sh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){md(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,Vy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ha(this._lView),r=this._lView[gr];r!==null&&!e&&Yf(r,this._lView),dy(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=e;let r=Ha(this._lView),n=this._lView[gr];n!==null&&!r&&fy(n,this._lView),md(this._lView)}},wr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=US;let t=e;return t})(),jS=wr,VS=class extends jS{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Vo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new _r(i)}};function US(){return Ac(_e(),R())}function Ac(t,e){return t.type&4?new VS(e,t,Ei(t,e)):null}var BS=new RegExp(`^(\\d+)*(${Bb}|${Ub})*(.*)`);function $S(t){let e=t.match(BS),[r,n,i,o]=e,s=n?parseInt(n,10):i,a=[];for(let[c,u,l]of o.matchAll(/(f|n)(\d*)/g)){let d=parseInt(l,10)||1;a.push(u,d)}return[s,...a]}function HS(t){return!t.prev&&t.parent?.type===8}function Ql(t){return t.index-oe}function zS(t,e){let r=t.i18nNodes;if(r)return r.get(e)}function Nc(t,e,r,n){let i=Ql(n),o=zS(t,i);if(o===void 0){let s=t.data[Kx];if(s?.[i])o=WS(s[i],r);else if(e.firstChild===n)o=t.firstChild;else{let a=n.prev===null,c=n.prev??n.parent;if(HS(n)){let u=Ql(n.parent);o=Md(t,u)}else{let u=ot(c,r);if(a)o=u.firstChild;else{let l=Ql(c),d=Md(t,l);if(c.type===2&&d){let h=Wf(t,l)+1;o=Rc(h,d)}else o=u.nextSibling}}}}return o}function Rc(t,e){let r=e;for(let n=0;n0&&(o.firstChild=t,t=Rc(n[Ya],t)),r.push(o)}return[t,r]}var Gy=()=>null;function eT(t,e){let r=t[_o];return!e||r===null||r.length===0?null:r[0].data[Yx]===e?r.shift():(Hy(t),null)}function tT(){Gy=eT}function fi(t,e){return Gy(t,e)}var hi=class{},Wy=new v("",{providedIn:"root",factory:()=>!1});var qy=new v(""),Ud=class{},Ja=class{};function nT(t){let e=Error(`No component factory found for ${$e(t)}.`);return e[rT]=t,e}var rT="ngComponent";var Bd=class{resolveComponentFactory(e){throw nT(e)}},Ih=class Ih{};Ih.NULL=new Bd;var pi=Ih,mi=class{},en=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>iT();let t=e;return t})();function iT(){let t=R(),e=_e(),r=Kt(e.index,t);return(Ft(r)?r:t)[te]}var oT=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var ov=new Set;function yt(t){ov.has(t)||(ov.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Zy(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ye.requestAnimationFrame=="function"&&ye.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function sv(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function av(...t){}var P=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,cT(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new I(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,sT,av,av);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},sT={};function ah(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 aT(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Zy(()=>{t.callbackScheduled=!1,$d(t),t.isCheckStableRunning=!0,ah(t),t.isCheckStableRunning=!1})}),$d(t))}function cT(t){let e=()=>{aT(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(uT(a))return r.invokeTask(i,o,s,a);try{return cv(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),uv(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return cv(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!lT(a)&&e(),uv(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,$d(t),ah(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function $d(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function uv(t){t._nesting--,ah(t)}var Hd=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function uT(t){return Yy(t,"__ignore_ng_zone__")}function lT(t){return Yy(t,"__scheduler_tick__")}function Yy(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Be=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Be||{}),Ky={destroy(){}};function dT(t,e){!e&&Ao(dT);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterRender"),Qy(t,r,!1,e?.phase??Be.MixedReadWrite)):Ky}function Bo(t,e){!e&&Ao(Bo);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterNextRender"),Qy(t,r,!0,e?.phase??Be.MixedReadWrite)):Ky}function fT(t,e){if(t instanceof Function)switch(e){case Be.EarlyRead:return{earlyRead:t};case Be.Write:return{write:t};case Be.MixedReadWrite:return{mixedReadWrite:t};case Be.Read:return{read:t}}return t}function Qy(t,e,r,n){let i=fT(t,n),o=e.get(ch),s=o.handler??=new Gd,a=[],c=[],u=()=>{for(let f of c)s.unregister(f);l()},l=e.get(Cr).onDestroy(u),d=(f,h)=>{if(!h)return;let m=r?(...w)=>{u(),h(...w)}:h,_=rt(e,()=>new zd(f,a,m));s.register(_),c.push(_)};return d(Be.EarlyRead,i.earlyRead),d(Be.Write,i.write),d(Be.MixedReadWrite,i.mixedReadWrite),d(Be.Read,i.read),{destroy:u}}var zd=class{constructor(e,r,n){this.phase=e,this.pipelinedArgs=r,this.callbackFn=n,this.zone=g(P),this.errorHandler=g(Te,{optional:!0}),g(hi,{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)}}},Gd=class{constructor(){this.executingCallbacks=!1,this.buckets={[Be.EarlyRead]:new Set,[Be.Write]:new Set,[Be.MixedReadWrite]:new Set,[Be.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()}},ch=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}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 ec(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&yy(t,r,o.join(" "))}}function yT(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=_T;let t=e;return t})();function _T(){let t=_e();return Jy(t,R())}var wT=yn,Xy=class extends wT{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Ei(this._hostTNode,this._hostLView)}get injector(){return new pr(this._hostTNode,this._hostLView)}get parentInjector(){let e=Bf(this._hostTNode,this._hostLView);if(_b(e)){let r=Ga(e,this._hostLView),n=za(e),i=r[A].data[n+8];return new pr(i,r)}else return new pr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=dv(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=fi(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,di(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!BC(e),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let c=s?e:new gi($n(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let _=(s?u:this.parentInjector).get(Fe,null);_&&(o=_)}let l=$n(c.componentType??{}),d=fi(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,i,f,o);return this.insertImpl(h.hostView,a,di(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(ZC(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Se],u=new Xy(c,c[Ke],c[Se]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Uo(s,i,o,n),e.attachToViewContainerRef(),Ov(Xl(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=dv(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);n&&(ja(Xl(this._lContainer),r),Cc(n[A],n))}detach(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);return n&&ja(Xl(this._lContainer),r)!=null?new _r(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function dv(t){return t[Ba]}function Xl(t){return t[Ba]||(t[Ba]=[])}function Jy(t,e){let r,n=e[t.index];return Xt(n)?r=n:(r=Ty(n,e,null,t),e[t.index]=r,Tc(e,r)),eD(r,e,t,n),new Xy(r,t,e)}function ET(t,e){let r=t[te],n=r.createComment(""),i=ot(e,t),o=Kf(r,i);return Ka(r,o,n,HM(r,i),!1),n}var eD=tD,uh=()=>!1;function IT(t,e,r){return uh(t,e,r)}function tD(t,e,r,n){if(t[pn])return;let i;r.type&8?i=Ye(n):i=ET(e,r),t[pn]=i}function CT(t,e,r){if(t[pn]&&t[_o])return!0;let n=r[gt],i=e.index-oe;if(!n||Fx(e)||wc(n,i))return!1;let s=Md(n,i),a=n.data[zf]?.[i],[c,u]=JS(s,a);return t[pn]=c,t[_o]=u,!0}function xT(t,e,r,n){uh(t,r,e)||tD(t,e,r,n)}function MT(){eD=xT,uh=CT}var qd=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Zd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let u=o[a+1],l=e[-c];for(let d=Me;de.trim())}function iD(t,e,r){t.queries===null&&(t.queries=new Yd),t.queries.track(new Kd(e,r))}function PT(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function lh(t,e){return t.queries.getByIndex(e)}function LT(t,e){let r=t[A],n=lh(r,e);return n.crossesNgTemplate?Qd(r,t,e,[]):nD(r,t,n,e)}function Oc(t){return typeof t=="function"&&t[Ut]!==void 0}function Dn(t,e){yt("NgSignals");let r=Jm(t),n=r[Ut];return e?.equal&&(n.equal=e.equal),r.set=i=>Dl(n,i),r.update=i=>eg(n,i),r.asReadonly=jT.bind(r),r}function jT(){let t=this[Ut];if(t.readonlyFn===void 0){let e=()=>this();e[Ut]=t,t.readonlyFn=e}return t.readonlyFn}function oD(t){return Oc(t)&&typeof t.set=="function"}function VT(t){return Object.getPrototypeOf(t.prototype).constructor}function be(t){let e=VT(t.type),r=!0,n=[t];for(;e;){let i;if(mn(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new I(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=xa(t.inputs),s.inputTransforms=xa(t.inputTransforms),s.declaredInputs=xa(t.declaredInputs),s.outputs=xa(t.outputs);let a=i.hostBindings;a&&zT(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&$T(t,c),u&&HT(t,u),UT(t,i),zI(t.outputs,i.outputs),mn(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=bo(i.hostAttrs,r=bo(r,i.hostAttrs))}}function xa(t){return t===si?{}:t===Oe?[]:t}function $T(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function HT(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function zT(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function st(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var zn=class{},Io=class{};var Xd=class extends zn{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tc(this);let i=Hv(e);this._bootstrapComponents=cy(i.bootstrap),this._r3Injector=Ab(e,r,[{provide:zn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver},...n],$e(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)}},Jd=class extends Io{constructor(e){super(),this.moduleType=e}create(e){return new Xd(this.moduleType,e,[])}};var rc=class extends zn{constructor(e){super(),this.componentFactoryResolver=new tc(this),this.instance=null;let r=new yo([...e.providers,{provide:zn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver}],e.parent||Tf(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Fc(t,e,r=null){return new rc({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function sD(t){return dh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function GT(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function QT(t){return(t&2)==2}function XT(t,e){return t&131071|e<<17}function ef(t){return t|2}function vi(t){return(t&131068)>>2}function Jl(t,e){return t&-131069|e<<2}function JT(t){return(t&1)===1}function tf(t){return t|1}function eA(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Er(s),c=vi(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||To(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let f=Er(t[a+1]);t[n+1]=Ma(f,a),f!==0&&(t[f+1]=Jl(t[f+1],n)),t[a+1]=XT(t[a+1],n)}else t[n+1]=Ma(a,0),a!==0&&(t[a+1]=Jl(t[a+1],n)),a=n;else t[n+1]=Ma(c,0),a===0?a=n:t[c+1]=Jl(t[c+1],n),c=n;u&&(t[n+1]=ef(t[n+1])),fv(t,l,n,!0),fv(t,l,n,!1),tA(e,l,t,n,o),s=Ma(a,c),o?e.classBindings=s:e.styleBindings=s}function tA(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&To(o,e)>=0&&(r[n+1]=tf(r[n+1]))}function fv(t,e,r,n){let i=t[r+1],o=e===null,s=n?Er(i):vi(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];nA(c,e)&&(a=!0,t[s+1]=n?tf(u):ef(u)),s=n?Er(u):vi(u)}a&&(t[r+1]=n?ef(i):tf(i))}function nA(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?To(t,e)>=0:!1}var ve={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function uD(t){return t.substring(ve.key,ve.keyEnd)}function rA(t){return t.substring(ve.value,ve.valueEnd)}function iA(t){return fD(t),lD(t,bi(t,0,ve.textEnd))}function lD(t,e){let r=ve.textEnd;return r===e?-1:(e=ve.keyEnd=sA(t,ve.key=e,r),bi(t,e,r))}function oA(t){return fD(t),dD(t,bi(t,0,ve.textEnd))}function dD(t,e){let r=ve.textEnd,n=ve.key=bi(t,e,r);return r===n?-1:(n=ve.keyEnd=aA(t,n,r),n=hv(t,n,r,58),n=ve.value=bi(t,n,r),n=ve.valueEnd=cA(t,n,r),hv(t,n,r,59))}function fD(t){ve.key=0,ve.keyEnd=0,ve.value=0,ve.valueEnd=0,ve.textEnd=t.length}function bi(t,e,r){for(;e32;)e++;return e}function aA(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function hv(t,e,r,n){return e=bi(t,e,r),e32&&(a=s),o=i,i=n,n=c&-33}return a}function pv(t,e,r,n){let i=-1,o=r;for(;o=0;r=dD(e,r))bD(t,uD(e),rA(e))}function Si(t){ph(mA,pD,t,!0)}function pD(t,e){for(let r=iA(e);r>=0;r=lD(e,r))So(t,uD(e),!0)}function mD(t,e,r,n){let i=R(),o=ce(),s=db(2);if(o.firstUpdatePass&&vD(o,t,s,n),e!==bt&&tt(i,s,e)){let a=o.data[Wn()];yD(o,a,i,i[te],t,i[s+1]=vA(e,r),n,s)}}function ph(t,e,r,n){let i=ce(),o=db(2);i.firstUpdatePass&&vD(i,null,o,n);let s=R();if(r!==bt&&tt(s,o,r)){let a=i.data[Wn()];if(DD(a,n)&&!gD(i,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=sd(c,r||"")),nf(i,a,s,r,n)}else gA(i,a,s,s[te],s[o+1],s[o+1]=pA(t,e,r),n,o)}}function gD(t,e){return e>=t.expandoStartIndex}function vD(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Wn()],s=gD(t,r);DD(o,n)&&e===null&&!s&&(e=!1),e=lA(i,o,e,n),eA(i,o,e,r,s,n)}}function lA(t,e,r,n){let i=Lf(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=ed(null,t,e,r,n),r=Co(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=ed(i,t,e,r,n),o===null){let c=dA(t,e,n);c!==void 0&&Array.isArray(c)&&(c=ed(null,t,e,c[1],n),c=Co(c,e.attrs,n),fA(t,e,n,c))}else o=hA(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function dA(t,e,r){let n=r?e.classBindings:e.styleBindings;if(vi(n)!==0)return t[Er(n)]}function fA(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Er(i)]=n}function hA(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[i+1];f===bt&&(f=d?Oe:void 0);let h=d?$l(f,n):l===n?f:void 0;if(u&&!oc(h)&&(h=$l(c,n)),oc(h)&&(a=h,s))return a;let m=t[i+1];i=s?Er(m):vi(m)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=$l(c,n))}return a}function oc(t){return t!==void 0}function vA(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=$e(vt(t)))),t}function DD(t,e){return(t.flags&(e?8:16))!==0}function Wz(t,e,r){let n=R(),i=hh(n,t,e,r);ph(So,pD,i,!0)}var rf=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function td(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function bA(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let u=t.at(o),l=e[o],d=td(o,u,o,l,r);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let f=t.at(s),h=e[c],m=td(s,f,c,h,r);if(m!==0){m<0&&t.updateValue(s,h),s--,c--;continue}let _=r(o,u),w=r(s,f),E=r(o,l);if(Object.is(E,w)){let k=r(c,h);Object.is(k,_)?(t.swap(o,s),t.updateValue(s,h),c--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(n??=new sc,i??=vv(t,o,s,r),of(t,n,o,E))t.updateValue(o,l),o++,s++;else if(i.has(E))n.set(_,t.detach(o)),s--;else{let k=t.create(o,e[o]);t.attach(o,k),o++,s++}}for(;o<=c;)gv(t,n,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),u=c.next();for(;!u.done&&o<=s;){let l=t.at(o),d=u.value,f=td(o,l,o,d,r);if(f!==0)f<0&&t.updateValue(o,d),o++,u=c.next();else{n??=new sc,i??=vv(t,o,s,r);let h=r(o,d);if(of(t,n,o,h))t.updateValue(o,d),o++,s++,u=c.next();else if(!i.has(h))t.attach(o,t.create(o,d)),o++,s++,u=c.next();else{let m=r(o,l);n.set(m,t.detach(o)),s--}}}for(;!u.done;)gv(t,n,r,t.length,u.value),u=c.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(c=>{t.destroy(c)})}function of(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function gv(t,e,r,n,i){if(of(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function vv(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var sc=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 n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function Pc(t,e){yt("NgControlFlow");let r=R(),n=Gn(),i=r[n]!==bt?r[n]:-1,o=i!==-1?ac(r,oe+i):void 0,s=0;if(tt(r,n,t)){let a=$(null);try{if(o!==void 0&&Py(o,s),t!==-1){let c=oe+t,u=ac(r,c),l=uf(r[A],c),d=fi(u,l.tView.ssrId),f=Vo(r,l,e,{dehydratedView:d});Uo(u,f,s,di(l,d))}}finally{$(a)}}else if(o!==void 0){let a=ky(o,s);a!==void 0&&(a[De]=e)}}var sf=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Me}};function qz(t,e){return e}var af=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Zz(t,e,r,n,i,o,s,a,c,u,l,d,f){yt("NgControlFlow");let h=R(),m=ce(),_=c!==void 0,w=R(),E=a?s.bind(w[He][De]):s,k=new af(_,E);w[oe+t]=k,ic(h,m,t+1,e,r,n,i,Hn(m.consts,o)),_&&ic(h,m,t+2,c,u,l,d,Hn(m.consts,f))}var cf=class extends rf{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Me}at(e){return this.getLView(e)[De].$implicit}attach(e,r){let n=r[gt];this.needsIndexUpdate||=e!==this.length,Uo(this.lContainer,r,e,di(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,yA(this.lContainer,e)}create(e,r){let n=fi(this.lContainer,this.templateTNode.tView.ssrId),i=Vo(this.hostLView,this.templateTNode,new sf(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Cc(e[A],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[De].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(qn(!0),Zf(n,i,bb()));function wA(t,e,r,n,i,o){let s=e[gt],a=!s||_i()||$o(r)||wc(s,o);if(qn(a),a)return Zf(n,i,bb());let c=Nc(s,t,e,r);return Wb(s,o)&&_c(s,o,c.nextSibling),s&&(Rb(r)||Ob(c))&&Ro(r)&&(tx(r),vy(c)),c}function EA(){_D=wA}function IA(t,e,r,n,i){let o=e.consts,s=Hn(o,n),a=xi(e,t,8,"ng-container",s);s!==null&&ec(a,s,!0);let c=Hn(o,i);return rh(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function wD(t,e,r){let n=R(),i=ce(),o=t+oe,s=i.firstCreatePass?IA(o,i,n,e,r):i.data[o];Ir(s,!0);let a=ID(i,n,s,t);return n[o]=a,bc()&&xc(i,n,a,s),pt(a,n),gc(s)&&(eh(i,n,s),Jf(i,s,n)),r!=null&&th(n,s),wD}function ED(){let t=_e(),e=ce();return kf()?Pf():(t=t.parent,Ir(t,!1)),e.firstCreatePass&&(yc(e,t),Nf(t)&&e.queries.elementEnd(t)),ED}function CA(t,e,r){return wD(t,e,r),ED(),CA}var ID=(t,e,r,n)=>(qn(!0),ly(e[te],""));function xA(t,e,r,n){let i,o=e[gt],s=!o||_i()||$o(r);if(qn(s),s)return ly(e[te],"");let a=Nc(o,t,e,r),c=iM(o,n);return _c(o,n,a),i=Rc(c,a),i}function MA(){ID=xA}function Kz(){return R()}function mh(t,e,r){let n=R(),i=Gn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!0)}return mh}function SA(t,e,r){let n=R(),i=Gn();if(tt(n,i,e)){let o=ce(),s=wi(),a=Lf(o.data),c=Oy(a,s,n);jo(o,s,n,t,e,c,r,!0)}return SA}var fr=void 0;function TA(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var AA=["en",[["a","p"],["AM","PM"],fr],[["AM","PM"],fr,fr],[["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"]],fr,[["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"]],fr,[["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}",fr,"{1} 'at' {0}",fr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",TA],nd={};function Dt(t){let e=NA(t),r=bv(e);if(r)return r;let n=e.split("-")[0];if(r=bv(n),r)return r;if(n==="en")return AA;throw new I(701,!1)}function bv(t){return t in nd||(nd[t]=ye.ng&&ye.ng.common&&ye.ng.common.locales&&ye.ng.common.locales[t]),nd[t]}var fe=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}(fe||{});function NA(t){return t.toLowerCase().replace(/_/g,"-")}var cc="en-US";var RA=cc;function OA(t){typeof t=="string"&&(RA=t.toLowerCase().replace(/_/g,"-"))}var FA=(t,e,r)=>{};function En(t,e,r,n){let i=R(),o=ce(),s=_e();return gh(o,i,i[te],s,t,e,n),En}function kA(t,e){let r=_e(),n=R(),i=ce(),o=Lf(i.data),s=Oy(o,r,n);return gh(i,n,s,r,t,e),kA}function PA(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function gh(t,e,r,n,i,o,s){let a=gc(n),u=t.firstCreatePass&&Ry(t),l=e[De],d=Ny(e),f=!0;if(n.type&3||s){let _=ot(n,e),w=s?s(_):_,E=d.length,k=s?Z=>s(Ye(Z[n.index])):n.index,q=null;if(!s&&a&&(q=PA(t,e,i,n.index)),q!==null){let Z=q.__ngLastListenerFn__||q;Z.__ngNextListenerFn__=o,q.__ngLastListenerFn__=o,f=!1}else{o=Dv(n,e,l,o),FA(_,i,o);let Z=r.listen(w,i,o);d.push(o,Z),u&&u.push(i,k,E,E+1)}}else o=Dv(n,e,l,o);let h=n.outputs,m;if(f&&h!==null&&(m=h[i])){let _=m.length;if(_)for(let w=0;w<_;w+=2){let E=m[w],k=m[w+1],We=e[E][k].subscribe(o),pe=d.length;d.push(o,We),u&&u.push(i,n.index,pe,-(pe+1))}}}function yv(t,e,r,n){let i=$(null);try{return Wt(6,e,r),r(n)!==!1}catch(o){return Fy(t,o),!1}finally{Wt(7,e,r),$(i)}}function Dv(t,e,r,n){return function i(o){if(o===Function)return n;let s=t.componentOffset>-1?Kt(t.index,e):e;sh(s,5);let a=yv(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=yv(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Lc(t=1){return lx(t)}function LA(t,e){let r=null,n=DC(t);for(let i=0;i=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Qz(t){let e=ix();return Of(e,oe+t)}function vh(t,e=""){let r=R(),n=ce(),i=t+oe,o=n.firstCreatePass?xi(n,i,1,e,null):n.data[i],s=SD(n,r,o,e,t);r[i]=s,bc()&&xc(n,r,s,o),Ir(o,!1)}var SD=(t,e,r,n,i)=>(qn(!0),uy(e[te],n));function BA(t,e,r,n,i){let o=e[gt],s=!o||_i()||$o(r)||wc(o,i);return qn(s),s?uy(e[te],n):Nc(o,t,e,r)}function $A(){SD=BA}function HA(t){return Ho("",t,""),HA}function Ho(t,e,r){let n=R(),i=hh(n,t,e,r);return i!==bt&&wS(n,Wn(),i),Ho}function zA(t,e,r){oD(e)&&(e=e());let n=R(),i=Gn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!1)}return zA}function Xz(t,e){let r=oD(t);return r&&t.set(e),r}function GA(t,e){let r=R(),n=ce(),i=_e();return gh(n,r,r[te],i,t,e),GA}function WA(t,e,r){let n=ce();if(n.firstCreatePass){let i=mn(t);lf(r,n.data,n.blueprint,i,!0),lf(e,n.data,n.blueprint,i,!1)}}function lf(t,e,r,n,i){if(t=Ue(t),Array.isArray(t))for(let o=0;o>20;if(ai(t)||!t.multi){let h=new yr(u,i,y),m=id(c,e,i?l:l+f,d);m===-1?(yd(qa(a,s),o,c),rd(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[m]=h,s[m]=h)}else{let h=id(c,e,l+f,d),m=id(c,e,l,l+f),_=h>=0&&r[h],w=m>=0&&r[m];if(i&&!w||!i&&!_){yd(qa(a,s),o,c);let E=YA(i?ZA:qA,r.length,i,n,u);!i&&w&&(r[m].providerFactory=E),rd(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(E),s.push(E)}else{let E=TD(r[i?m:h],u,!i&&n);rd(o,t,h>-1?h:m,E)}!i&&n&&w&&r[m].componentProviders++}}}function rd(t,e,r,n){let i=ai(e),o=FC(e);if(i||o){let c=(o?Ue(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function TD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function id(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>WA(n,i?i(t):t,e)}}var KA=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=Wv(!1,n.type),o=i.length>0?Fc([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(p(Fe))});let t=e;return t})();function at(t){yt("NgStandalone"),t.getStandaloneInjector=e=>e.get(KA).getOrCreateStandaloneInjector(t)}function Jz(t,e,r){let n=Oo()+t,i=R();return i[n]===bt?fh(i,n,r?e.call(r):e()):WT(i,n)}function e3(t,e,r,n){return ND(R(),Oo(),t,e,r,n)}function t3(t,e,r,n,i){return RD(R(),Oo(),t,e,r,n,i)}function AD(t,e){let r=t[e];return r===bt?void 0:r}function ND(t,e,r,n,i,o){let s=e+r;return tt(t,s,i)?fh(t,s+1,o?n.call(o,i):n(i)):AD(t,s+1)}function RD(t,e,r,n,i,o,s){let a=e+r;return qT(t,a,i,o)?fh(t,a+2,s?n.call(s,i,o):n(i,o)):AD(t,a+2)}function n3(t,e){let r=ce(),n,i=t+oe;r.firstCreatePass?(n=QA(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=mr(n.type,!0)),s,a=qe(y);try{let c=Wa(!1),u=o();return Wa(c),UA(r,R(),i,u),u}finally{qe(a)}}function QA(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function r3(t,e,r){let n=t+oe,i=R(),o=Of(i,n);return OD(i,n)?ND(i,Oo(),e,o.transform,r,o):o.transform(r)}function i3(t,e,r,n){let i=t+oe,o=R(),s=Of(o,i);return OD(o,i)?RD(o,Oo(),e,s.transform,r,n,s):s.transform(r,n)}function OD(t,e){return t[A].data[e].pure}function o3(t,e){return Ac(t,e)}var Uc=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var bh=new v(""),zo=new v(""),Bc=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,yh||(XA(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(p(P),p($c),p(zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),$c=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return yh?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function XA(t){yh=t}var yh;function Qn(t){return!!t&&typeof t.then=="function"}function Dh(t){return!!t&&typeof t.subscribe=="function"}var Hc=new v(""),FD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(Hc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Qn(s))n.push(s);else if(Dh(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mr=new v("");function JA(){Xm(()=>{throw new I(600,!1)})}function eN(t){return t.isBoundToModule}var tN=10;function nN(t,e,r){try{let n=r();return Qn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var nn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Nb),this.afterRenderEffectManager=g(ch),this.zonelessEnabled=g(Wy),this.externalTestViews=new Set,this.beforeRender=new B,this.afterTick=new B,this.componentTypes=[],this.components=[],this.isStable=g(Jt).hasPendingTasks.pipe(C(n=>!n)),this._injector=g(Fe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Ja;if(!this._injector.get(FD).done){let h=!o&&$v(n),m=!1;throw new I(405,m)}let a;o?a=n:a=this._injector.get(pi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=eN(a)?void 0:this._injector.get(zn),u=i||a.selector,l=a.create(ke.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(bh,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),od(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new I(101,!1);let i=$(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,$(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(mi,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;owo(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>wo(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;od(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Mr,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>od(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function od(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var Sa;function zc(t){Sa??=new WeakMap;let e=Sa.get(t);if(e)return e;let r=t.isStable.pipe(Nt(n=>n)).toPromise().then(()=>{});return Sa.set(t,r),t.onDestroy(()=>Sa?.delete(t)),r}function rN(t,e,r,n){if(!r&&!wo(t))return;Vy(t,e,r&&!n?0:1)}var ff=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Gc=(()=>{let e=class e{compileModuleSync(n){return new Jd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=Hv(n),s=cy(o.declarations).reduce((a,c)=>{let u=$n(c);return u&&a.push(new gi(u)),a},[]);return new ff(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var iN=(()=>{let e=class e{constructor(){this.zone=g(P),this.changeDetectionScheduler=g(hi),this.applicationRef=g(nn)}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(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oN({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new P(aN()),[{provide:P,useFactory:t},{provide:fn,multi:!0,useFactory:()=>{let r=g(iN,{optional:!0});return()=>r.initialize()}},{provide:fn,multi:!0,useFactory:()=>{let r=g(cN);return()=>{r.initialize()}}},{provide:Nb,useFactory:sN},e===!0?{provide:qy,useValue:!0}:[]]}function sN(){let t=g(P),e=g(Te);return r=>t.runOutsideAngular(()=>e.handleError(r))}function aN(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var cN=(()=>{let e=class e{constructor(){this.subscription=new ae,this.initialized=!1,this.zone=g(P),this.pendingTasks=g(Jt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{P.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var uN=(()=>{let e=class e{constructor(){this.appRef=g(nn),this.taskService=g(Jt),this.ngZone=g(P),this.zonelessEnabled=g(Wy),this.disableScheduling=g(qy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ae,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 Hd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){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 i=this.useMicrotaskScheduler?sv:Zy;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&P.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,sv(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function lN(){return typeof $localize<"u"&&$localize.locale||cc}var Go=new v("",{providedIn:"root",factory:()=>g(Go,U.Optional|U.SkipSelf)||lN()});var kD=new v("");var ka=null;function dN(t=[],e){return ke.create({name:e,providers:[{provide:mc,useValue:"platform"},{provide:kD,useValue:new Set([()=>ka=null])},...t]})}function fN(t=[]){if(ka)return ka;let e=dN(t);return ka=e,JA(),hN(e),e}function hN(t){t.get(Hf,null)?.forEach(r=>r())}function _h(){return!1}var wt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=pN;let t=e;return t})();function pN(t){return mN(_e(),R(),(t&16)===16)}function mN(t,e,r){if(Ro(t)&&!r){let n=Kt(t.index,e);return new _r(n,n)}else if(t.type&175){let n=e[He];return new _r(n,e)}return null}var hf=class{constructor(){}supports(e){return sD(e)}create(e){return new pf(e)}},gN=(t,e)=>e,pf=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||gN}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex<_v(n,i,o)?r:n,a=_v(s,i,o),c=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(r=r._next,s.previousIndex==null)i++;else{o||(o=[]);let u=a-i,l=c-i;if(u!=l){for(let f=0;f{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;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,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new mf(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),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,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new uc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._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 uc),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}},mf=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}},gf=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 n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},uc=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new gf,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.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 _v(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{if(r&&r.key===i)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(i,n);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._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 i=this._records.get(e);this._maybeAddToChanges(i,r);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let n=new yf(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_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(n=>r(e[n],n))}},yf=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 wv(){return new wh([new hf])}var wh=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||wv()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:wv});let t=e;return t})();function Ev(){return new Wc([new vf])}var Wc=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Ev()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Ev});let t=e;return t})();var PD=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(p(nn))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function LD(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=fN(n),o=[oN({}),{provide:hi,useExisting:uN},...r||[]],a=new rc({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(P);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(Te,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:h=>{u.handleError(h)}})});let d=()=>a.destroy(),f=i.get(kD);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),nN(u,c,()=>{let h=a.get(FD);return h.runInitializers(),h.donePromise.then(()=>{let m=a.get(Go,cc);OA(m||cc);let _=a.get(nn);return e!==void 0&&_.bootstrap(e),_})})})}catch(e){return Promise.reject(e)}}var jD=new v("");var Iv=!1;function vN(){Iv||(Iv=!0,eM(),EA(),$A(),MA(),KT(),MT(),tT(),nS())}function bN(t,e){return zc(t)}function VD(){return vn([{provide:wa,useFactory:()=>{let t=!0;return ni()&&(t=!!g(Ii,{optional:!0})?.get(zb,null)),t&&yt("NgHydration"),t}},{provide:fn,useValue:()=>{ZS(!1),ni()&&g(wa)&&(yN(),vN())},multi:!0},{provide:Zb,useFactory:()=>ni()&&g(wa)},{provide:Mr,useFactory:()=>{if(ni()&&g(wa)){let t=g(nn),e=g(ke);return()=>{bN(t,e).then(()=>{XS(t)})}}return()=>{}},multi:!0}])}function yN(){let t=Dc(),e;for(let r of t.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&r.textContent?.trim()===Xx){e=r;break}if(!e)throw new I(-507,!1)}function Ee(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Eh(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function rn(t,e){yt("NgSignals");let r=Ym(t);return e?.equal&&(r[Ut].equal=e.equal),r}function ct(t){let e=$(null);try{return t()}finally{$(e)}}var DN=new v("",{providedIn:"root",factory:()=>g(_N)}),_N=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new Df});let t=e;return t})(),Df=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(Jt),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 n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.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()}},_f=class{constructor(e,r,n,i,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=o,this.watcher=ng(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Te,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function qc(t,e){yt("NgSignals"),!e?.injector&&Ao(qc);let r=e?.injector??g(ke),n=e?.manualCleanup!==!0?r.get(Cr):null,i=new _f(r.get(DN),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),o=r.get(wt,null,{optional:!0});return!o||!(o._lView[F]&8)?i.watcher.notify():(o._lView[Aa]??=[]).push(i.watcher.notify),i}function UD(t){let e=$n(t);if(!e)return null;let r=new gi(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 ZD=null;function on(){return ZD}function YD(t){ZD??=t}var nu=class{};var W=new v(""),kh=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(wN),providedIn:"platform"});let t=e;return t})(),KD=new v(""),wN=(()=>{let e=class e extends kh{constructor(){super(),this._doc=g(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return on().getBaseHref(this._doc)}onPopState(n){let i=on().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=on().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Ph(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 BD(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Cn(t){return t&&t[0]!=="?"?"?"+t:t}var Mn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(Lh),providedIn:"root"});let t=e;return t})(),QD=new v(""),Lh=(()=>{let e=class e extends Mn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ph(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Cn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(kh),p(QD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),XD=(()=>{let e=class e extends Mn{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Ph(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(kh),p(QD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ai=(()=>{let e=class e{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=CN(BD($D(i))),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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Cn(i))}normalize(n){return e.stripTrailingSlash(IN(this._basePath,$D(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Cn(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Cn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Cn,e.joinWithSlash=Ph,e.stripTrailingSlash=BD,e.\u0275fac=function(i){return new(i||e)(p(Mn))},e.\u0275prov=D({token:e,factory:()=>EN(),providedIn:"root"});let t=e;return t})();function EN(){return new Ai(p(Mn))}function IN(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function $D(t){return t.replace(/\/index.html$/,"")}function CN(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var ze=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ze||{}),se=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(se||{}),ut=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(ut||{}),Xn={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 xN(t){return Dt(t)[fe.LocaleId]}function MN(t,e,r){let n=Dt(t),i=[n[fe.DayPeriodsFormat],n[fe.DayPeriodsStandalone]],o=Et(i,e);return Et(o,r)}function SN(t,e,r){let n=Dt(t),i=[n[fe.DaysFormat],n[fe.DaysStandalone]],o=Et(i,e);return Et(o,r)}function TN(t,e,r){let n=Dt(t),i=[n[fe.MonthsFormat],n[fe.MonthsStandalone]],o=Et(i,e);return Et(o,r)}function AN(t,e){let n=Dt(t)[fe.Eras];return Et(n,e)}function Zc(t,e){let r=Dt(t);return Et(r[fe.DateFormat],e)}function Yc(t,e){let r=Dt(t);return Et(r[fe.TimeFormat],e)}function Kc(t,e){let n=Dt(t)[fe.DateTimeFormat];return Et(n,e)}function ou(t,e){let r=Dt(t),n=r[fe.NumberSymbols][e];if(typeof n>"u"){if(e===Xn.CurrencyDecimal)return r[fe.NumberSymbols][Xn.Decimal];if(e===Xn.CurrencyGroup)return r[fe.NumberSymbols][Xn.Group]}return n}function JD(t){if(!t[fe.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[fe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function NN(t){let e=Dt(t);return JD(e),(e[fe.ExtraData][2]||[]).map(n=>typeof n=="string"?Ch(n):[Ch(n[0]),Ch(n[1])])}function RN(t,e,r){let n=Dt(t);JD(n);let i=[n[fe.ExtraData][0],n[fe.ExtraData][1]],o=Et(i,e)||[];return Et(o,r)||[]}function Et(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 Ch(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var ON=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},FN=/((?:[^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]*)/,xn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(xn||{}),K=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}(K||{}),Y=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Y||{});function kN(t,e,r,n){let i=zN(t);e=In(r,e)||e;let s=[],a;for(;e;)if(a=FN.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=i.getTimezoneOffset();n&&(c=t_(n,c),i=HN(i,n,!0));let u="";return s.forEach(l=>{let d=BN(l);u+=d?d(i,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ru(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function In(t,e){let r=xN(t);if(Qc[r]??={},Qc[r][e])return Qc[r][e];let n="";switch(e){case"shortDate":n=Zc(t,ut.Short);break;case"mediumDate":n=Zc(t,ut.Medium);break;case"longDate":n=Zc(t,ut.Long);break;case"fullDate":n=Zc(t,ut.Full);break;case"shortTime":n=Yc(t,ut.Short);break;case"mediumTime":n=Yc(t,ut.Medium);break;case"longTime":n=Yc(t,ut.Long);break;case"fullTime":n=Yc(t,ut.Full);break;case"short":let i=In(t,"shortTime"),o=In(t,"shortDate");n=Xc(Kc(t,ut.Short),[i,o]);break;case"medium":let s=In(t,"mediumTime"),a=In(t,"mediumDate");n=Xc(Kc(t,ut.Medium),[s,a]);break;case"long":let c=In(t,"longTime"),u=In(t,"longDate");n=Xc(Kc(t,ut.Long),[c,u]);break;case"full":let l=In(t,"fullTime"),d=In(t,"fullDate");n=Xc(Kc(t,ut.Full),[l,d]);break}return n&&(Qc[r][e]=n),n}function Xc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function Pt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===K.Hours)a===0&&r===-12&&(a=12);else if(t===K.FractionalSeconds)return PN(a,e);let c=ou(s,Xn.MinusSign);return Pt(a,e,c,n,i)}}function LN(t,e){switch(t){case K.FullYear:return e.getFullYear();case K.Month:return e.getMonth();case K.Date:return e.getDate();case K.Hours:return e.getHours();case K.Minutes:return e.getMinutes();case K.Seconds:return e.getSeconds();case K.FractionalSeconds:return e.getMilliseconds();case K.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function ue(t,e,r=ze.Format,n=!1){return function(i,o){return jN(i,o,t,e,r,n)}}function jN(t,e,r,n,i,o){switch(r){case Y.Months:return TN(e,i,n)[t.getMonth()];case Y.Days:return SN(e,i,n)[t.getDay()];case Y.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let u=NN(e),l=RN(e,i,n),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,m]=f,_=s>=h.hours&&a>=h.minutes,w=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case xn.Short:return(i>=0?"+":"")+Pt(s,2,o)+Pt(Math.abs(i%60),2,o);case xn.ShortGMT:return"GMT"+(i>=0?"+":"")+Pt(s,1,o);case xn.Long:return"GMT"+(i>=0?"+":"")+Pt(s,2,o)+":"+Pt(Math.abs(i%60),2,o);case xn.Extended:return n===0?"Z":(i>=0?"+":"")+Pt(s,2,o)+":"+Pt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var VN=0,tu=4;function UN(t){let e=ru(t,VN,1).getDay();return ru(t,0,1+(e<=tu?tu:tu+7)-e)}function e_(t){let e=t.getDay(),r=e===0?-3:tu-e;return ru(t.getFullYear(),t.getMonth(),t.getDate()+r)}function xh(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=e_(r),s=UN(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Pt(i,t,ou(n,Xn.MinusSign))}}function eu(t,e=!1){return function(r,n){let o=e_(r).getFullYear();return Pt(o,t,ou(n,Xn.MinusSign),e)}}var Mh={};function BN(t){if(Mh[t])return Mh[t];let e;switch(t){case"G":case"GG":case"GGG":e=ue(Y.Eras,se.Abbreviated);break;case"GGGG":e=ue(Y.Eras,se.Wide);break;case"GGGGG":e=ue(Y.Eras,se.Narrow);break;case"y":e=he(K.FullYear,1,0,!1,!0);break;case"yy":e=he(K.FullYear,2,0,!0,!0);break;case"yyy":e=he(K.FullYear,3,0,!1,!0);break;case"yyyy":e=he(K.FullYear,4,0,!1,!0);break;case"Y":e=eu(1);break;case"YY":e=eu(2,!0);break;case"YYY":e=eu(3);break;case"YYYY":e=eu(4);break;case"M":case"L":e=he(K.Month,1,1);break;case"MM":case"LL":e=he(K.Month,2,1);break;case"MMM":e=ue(Y.Months,se.Abbreviated);break;case"MMMM":e=ue(Y.Months,se.Wide);break;case"MMMMM":e=ue(Y.Months,se.Narrow);break;case"LLL":e=ue(Y.Months,se.Abbreviated,ze.Standalone);break;case"LLLL":e=ue(Y.Months,se.Wide,ze.Standalone);break;case"LLLLL":e=ue(Y.Months,se.Narrow,ze.Standalone);break;case"w":e=xh(1);break;case"ww":e=xh(2);break;case"W":e=xh(1,!0);break;case"d":e=he(K.Date,1);break;case"dd":e=he(K.Date,2);break;case"c":case"cc":e=he(K.Day,1);break;case"ccc":e=ue(Y.Days,se.Abbreviated,ze.Standalone);break;case"cccc":e=ue(Y.Days,se.Wide,ze.Standalone);break;case"ccccc":e=ue(Y.Days,se.Narrow,ze.Standalone);break;case"cccccc":e=ue(Y.Days,se.Short,ze.Standalone);break;case"E":case"EE":case"EEE":e=ue(Y.Days,se.Abbreviated);break;case"EEEE":e=ue(Y.Days,se.Wide);break;case"EEEEE":e=ue(Y.Days,se.Narrow);break;case"EEEEEE":e=ue(Y.Days,se.Short);break;case"a":case"aa":case"aaa":e=ue(Y.DayPeriods,se.Abbreviated);break;case"aaaa":e=ue(Y.DayPeriods,se.Wide);break;case"aaaaa":e=ue(Y.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":e=ue(Y.DayPeriods,se.Abbreviated,ze.Standalone,!0);break;case"bbbb":e=ue(Y.DayPeriods,se.Wide,ze.Standalone,!0);break;case"bbbbb":e=ue(Y.DayPeriods,se.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":e=ue(Y.DayPeriods,se.Abbreviated,ze.Format,!0);break;case"BBBB":e=ue(Y.DayPeriods,se.Wide,ze.Format,!0);break;case"BBBBB":e=ue(Y.DayPeriods,se.Narrow,ze.Format,!0);break;case"h":e=he(K.Hours,1,-12);break;case"hh":e=he(K.Hours,2,-12);break;case"H":e=he(K.Hours,1);break;case"HH":e=he(K.Hours,2);break;case"m":e=he(K.Minutes,1);break;case"mm":e=he(K.Minutes,2);break;case"s":e=he(K.Seconds,1);break;case"ss":e=he(K.Seconds,2);break;case"S":e=he(K.FractionalSeconds,1);break;case"SS":e=he(K.FractionalSeconds,2);break;case"SSS":e=he(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Jc(xn.Short);break;case"ZZZZZ":e=Jc(xn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Jc(xn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Jc(xn.Long);break;default:return null}return Mh[t]=e,e}function t_(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function $N(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function HN(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=t_(e,i);return $N(t,n*(o-i))}function zN(t){if(HD(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[i,o=1,s=1]=t.split("-").map(a=>+a);return ru(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(ON))return GN(n)}let e=new Date(t);if(!HD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function GN(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,u),e}function HD(t){return t instanceof Date&&!isNaN(t.valueOf())}function su(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Sh=/\s+/,zD=[],C3=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=zD,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Sh):zD}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Sh):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(Sh).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(en))},e.\u0275dir=G({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Th=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}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}},x3=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Th(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),GD(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);GD(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(yn),y(wr),y(wh))},e.\u0275dir=G({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function GD(t,e){t.context.$implicit=e.item}var M3=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Ah,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){WD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){WD("ngIfElse",n),this._elseTemplateRef=n,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(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(yn),y(wr))},e.\u0275dir=G({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Ah=class{constructor(){this.$implicit=null,this.ngIf=null}};function WD(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${$e(e)}'.`)}var S3=(()=>{let e=class e{constructor(n,i,o){this._ngEl=n,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,i){let[o,s]=n.split("."),a=o.indexOf("-")===-1?void 0:Qt.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(n){n.forEachRemovedItem(i=>this._setStyle(i.key,null)),n.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),n.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(Wc),y(en))},e.\u0275dir=G({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),T3=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(y(yn))},e.\u0275dir=G({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[it]});let t=e;return t})();function n_(t,e){return new I(2100,!1)}var Nh=class{createSubscription(e,r){return ct(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){ct(()=>e.unsubscribe())}},Rh=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},WN=new Rh,qN=new Nh,A3=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Qn(n))return WN;if(Dh(n))return qN;throw n_(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(y(wt,16))},e.\u0275pipe=pc({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var ZN="mediumDate",YN=new v(""),KN=new v(""),N3=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??ZN,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return kN(n,a,s||this.locale,c)}catch(a){throw n_(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(y(Go,16),y(YN,24),y(KN,24))},e.\u0275pipe=pc({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function QN(t,e){return{key:t,value:e}}var R3=(()=>{let e=class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=qD}transform(n,i=qD){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),s=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(QN(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}};e.\u0275fac=function(i){return new(i||e)(y(Wc,16))},e.\u0275pipe=pc({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function qD(t,e){let r=t.key,n=e.key;if(r===n)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(r===null)return 1;if(n===null)return-1;if(typeof r=="string"&&typeof n=="string")return r{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),jh="browser",XN="server";function Vh(t){return t===jh}function Wo(t){return t===XN}var i_=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Vh(g(Qe))?new Oh(g(W),window):new Fh});let t=e;return t})(),Oh=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=JN(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function JN(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 n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var Fh=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Ti=class{};var Zo=class{},uu=class{},an=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 n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,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,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}: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 n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);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 n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Bh=class{encodeKey(e){return s_(e)}encodeValue(e){return s_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function eR(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var tR=/%(\d[a-f0-9])/gi,nR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s_(t){return encodeURIComponent(t).replace(tR,(e,r)=>nR[r]??e)}function au(t){return`${t}`}var sn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Bh,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=eR(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(au):[au(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).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 n=this.map.get(e.param)||[],i=n.indexOf(au(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var $h=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 rR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function a_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c_(t){return typeof Blob<"u"&&t instanceof Blob}function u_(t){return typeof FormData<"u"&&t instanceof FormData}function iR(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var qo=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(rR(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,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 an,this.context??=new $h,!this.params)this.params=new sn,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(h,e.setHeaders[h]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},er=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}(er||{}),Yo=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new an,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},lu=class t extends Yo{constructor(e={}){super(e),this.type=er.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})}},Sr=class t extends Yo{constructor(e={}){super(e),this.type=er.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})}},Jn=class extends Yo{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}},__=200,oR=204;function Uh(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 Gh=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof qo)s=n;else{let u;o.headers instanceof an?u=o.headers:u=new an(o.headers);let l;o.params&&(o.params instanceof sn?l=o.params:l=new sn({fromObject:o.params})),s=new qo(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=x(s).pipe(Gt(u=>this.handler.handle(u)));if(n instanceof qo||o.observe==="events")return a;let c=a.pipe(le(u=>u instanceof Sr));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(C(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(C(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new sn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Uh(o,i))}post(n,i,o={}){return this.request("POST",n,Uh(o,i))}put(n,i,o={}){return this.request("PUT",n,Uh(o,i))}};e.\u0275fac=function(i){return new(i||e)(p(Zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),sR=/^\)\]\}',?\n/,aR="X-Request-URL";function l_(t){if(t.url)return t.url;let e=aR.toLocaleLowerCase();return t.headers.get(e)}var cR=(()=>{let e=class e{constructor(){this.fetchImpl=g(Hh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=g(P)}handle(n){return new N(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(zh,s=>i.error(new Jn({error:s}))),()=>o.abort()})}doRequest(n,i,o){return Vr(this,null,function*(){let s=this.createRequestInit(n),a;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,b({signal:i},s)));uR(m),o.next({type:er.Sent}),a=yield m}catch(m){o.error(new Jn({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let c=new an(a.headers),u=a.statusText,l=l_(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&o.next(new lu({headers:c,status:d,statusText:u,url:l})),a.body){let m=a.headers.get("content-length"),_=[],w=a.body.getReader(),E=0,k,q,Z=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Vr(this,null,function*(){for(;;){let{done:pe,value:ft}=yield w.read();if(pe)break;if(_.push(ft),E+=ft.length,n.reportProgress){q=n.responseType==="text"?(q??"")+(k??=new TextDecoder).decode(ft,{stream:!0}):void 0;let jr=()=>o.next({type:er.DownloadProgress,total:m?+m:void 0,loaded:E,partialText:q});Z?Z.run(jr):jr()}}}));let We=this.concatChunks(_,E);try{let pe=a.headers.get("Content-Type")??"";f=this.parseBody(n,We,pe)}catch(pe){o.error(new Jn({error:pe,headers:new an(a.headers),status:a.status,statusText:a.statusText,url:l_(a)??n.urlWithParams}));return}}d===0&&(d=f?__:0),d>=200&&d<300?(o.next(new Sr({body:f,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new Jn({error:f,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(sR,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),n.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Hh=class{};function zh(){}function uR(t){t.then(zh,zh)}function w_(t,e){return e(t)}function lR(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function dR(t,e,r){return(n,i)=>rt(r,()=>e(n,o=>t(o,i)))}var fR=new v(""),Wh=new v(""),E_=new v(""),I_=new v("",{providedIn:"root",factory:()=>!0});function hR(){let t=null;return(e,r)=>{t===null&&(t=(g(fR,{optional:!0})??[]).reduceRight(lR,w_));let n=g(Jt);if(g(I_)){let o=n.add();return t(e,r).pipe(ht(()=>n.remove(o)))}else return t(e,r)}}var d_=(()=>{let e=class e extends Zo{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(Jt),this.contributeToStability=g(I_)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Wh),...this.injector.get(E_,[])]));this.chain=i.reduceRight((o,s)=>dR(o,s,this.injector),w_)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ht(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(p(uu),p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var pR=/^\)\]\}',?\n/;function mR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var f_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?re(i.\u0275loadImpl()):x(null)).pipe(Ve(()=>new N(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,E)=>a.setRequestHeader(w,E.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let w=a.statusText||"OK",E=new an(a.getAllResponseHeaders()),k=mR(a)||n.url;return u=new lu({headers:E,status:a.status,statusText:w,url:k}),u},d=()=>{let{headers:w,status:E,statusText:k,url:q}=l(),Z=null;E!==oR&&(Z=typeof a.response>"u"?a.responseText:a.response),E===0&&(E=Z?__:0);let We=E>=200&&E<300;if(n.responseType==="json"&&typeof Z=="string"){let pe=Z;Z=Z.replace(pR,"");try{Z=Z!==""?JSON.parse(Z):null}catch(ft){Z=pe,We&&(We=!1,Z={error:ft,text:Z})}}We?(s.next(new Sr({body:Z,headers:w,status:E,statusText:k,url:q||void 0})),s.complete()):s.error(new Jn({error:Z,headers:w,status:E,statusText:k,url:q||void 0}))},f=w=>{let{url:E}=l(),k=new Jn({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:E||void 0});s.error(k)},h=!1,m=w=>{h||(s.next(l()),h=!0);let E={type:er.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),n.responseType==="text"&&a.responseText&&(E.partialText=a.responseText),s.next(E)},_=w=>{let E={type:er.UploadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),s.next(E)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",m),c!==null&&a.upload&&a.upload.addEventListener("progress",_)),a.send(c),s.next({type:er.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",m),c!==null&&a.upload&&a.upload.removeEventListener("progress",_)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(p(Ti))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),C_=new v(""),gR="XSRF-TOKEN",vR=new v("",{providedIn:"root",factory:()=>gR}),bR="X-XSRF-TOKEN",yR=new v("",{providedIn:"root",factory:()=>bR}),du=class{},DR=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=su(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(p(W),p(Qe),p(vR))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function _R(t,e){let r=t.url.toLowerCase();if(!g(C_)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(du).getToken(),i=g(yR);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var x_=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}(x_||{});function wR(t,e){return{\u0275kind:t,\u0275providers:e}}function z3(...t){let e=[Gh,f_,d_,{provide:Zo,useExisting:d_},{provide:uu,useFactory:()=>g(cR,{optional:!0})??g(f_)},{provide:Wh,useValue:_R,multi:!0},{provide:C_,useValue:!0},{provide:du,useClass:DR}];for(let r of t)e.push(...r.\u0275providers);return vn(e)}var h_=new v("");function G3(){return wR(x_.LegacyInterceptors,[{provide:h_,useFactory:hR},{provide:Wh,useExisting:h_,multi:!0}])}var ER=new v(""),p_="b",m_="h",g_="s",v_="st",b_="u",y_="rt",cu=new v(""),IR=["GET","HEAD"];function CR(t,e){let h=g(cu),{isCacheActive:r}=h,n=Vm(h,["isCacheActive"]),{transferCache:i,method:o}=t;if(!r||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!IR.includes(o)||!n.includeRequestsWithAuthHeaders&&xR(t)||n.filter?.(t)===!1)return e(t);let s=g(Ii),a=g(ER,{optional:!0}),c=Wo(g(Qe));if(a&&!c)throw new I(2803,!1);let u=c&&a?AR(t.url,a):t.url,l=SR(t,u),d=s.get(l,null),f=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(f=i.includeHeaders),d){let{[p_]:m,[y_]:_,[m_]:w,[g_]:E,[v_]:k,[b_]:q}=d,Z=m;switch(_){case"arraybuffer":Z=new TextEncoder().encode(m).buffer;break;case"blob":Z=new Blob([m]);break}let We=new an(w);return x(new Sr({body:Z,headers:We,status:E,statusText:k,url:q}))}return e(t).pipe(ee(m=>{m instanceof Sr&&c&&s.set(l,{[p_]:m.body,[m_]:MR(m.headers,f),[g_]:m.status,[v_]:m.statusText,[b_]:u,[y_]:t.responseType})}))}function xR(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function MR(t,e){if(!e)return{};let r={};for(let n of e){let i=t.getAll(n);i!==null&&(r[n]=i)}return r}function D_(t){return[...t.keys()].sort().map(e=>`${e}=${t.getAll(e)}`).join("&")}function SR(t,e){let{params:r,method:n,responseType:i}=t,o=D_(r),s=t.serializeBody();s instanceof URLSearchParams?s=D_(s):typeof s!="string"&&(s="");let a=[n,i,e,s,o].join("|"),c=TR(a);return c}function TR(t){let e=0;for(let r of t)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function M_(t){return[{provide:cu,useFactory:()=>(yt("NgHttpTransferCache"),b({isCacheActive:!0},t))},{provide:E_,useValue:CR,multi:!0,deps:[Ii,cu]},{provide:Mr,multi:!0,useFactory:()=>{let e=g(nn),r=g(cu);return()=>{zc(e).then(()=>{r.isCacheActive=!1})}}}]}function AR(t,e){let r=new URL(t,"resolve://").origin,n=e[r];return n?t.replace(r,n):t}var Yh=class extends nu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kh=class t extends Yh{static makeCurrent(){YD(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}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=RR();return r==null?null:OR(r)}resetBaseElement(){Ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return su(document.cookie,e)}},Ko=null;function RR(){return Ko=Ko||document.querySelector("base"),Ko?Ko.getAttribute("href"):null}function OR(t){return new URL(t,document.baseURI).pathname}var Qh=class{addToWindow(e){ye.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new I(5103,!1);return o},ye.getAllAngularTestabilities=()=>e.getAllTestabilities(),ye.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=ye.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?on().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},FR=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),fu=new v(""),N_=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new I(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(p(fu),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qo=class{constructor(e){this._doc=e}},qh="ng-app-id",R_=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wo(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${qh}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(qh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(qh,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(p(W),p(xr),p(ko,8),p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Zh={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"},ep=/%COMP%/g,O_="%COMP%",kR=`_nghost-${O_}`,PR=`_ngcontent-${O_}`,LR=!0,jR=new v("",{providedIn:"root",factory:()=>LR});function VR(t){return PR.replace(ep,t)}function UR(t){return kR.replace(ep,t)}function F_(t,e){return e.map(r=>r.replace(ep,t))}var S_=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Wo(c),this.defaultRenderer=new Xo(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Zt.ShadowDom&&(i=O(b({},i),{encapsulation:Zt.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof hu?o.applyToHost(n):o instanceof Jo&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Zt.Emulated:s=new hu(u,l,i,this.appId,d,a,c,f);break;case Zt.ShadowDom:return new Xh(u,l,n,i,a,c,this.nonce,f);default:s=new Jo(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(p(N_),p(R_),p(xr),p(jR),p(W),p(Qe),p(P),p(ko))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xo=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Zh[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(T_(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(T_(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new I(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Zh[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Zh[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Qt.DashCase|Qt.Important)?e.style.setProperty(r,n,i&Qt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Qt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=on().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function T_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Xh=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=F_(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}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)}},Jo=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?F_(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hu=class extends Jo{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=VR(u),this.hostAttr=UR(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},BR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),$R=(()=>{let e=class e extends Qo{constructor(n){super(n),this.delegate=g(jD,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,i,o){return this.delegate.addEventListener(n,i,o)}removeEventListener(n,i,o){return this.delegate.removeEventListener(n,i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),A_=["alt","control","meta","shift"],HR={"\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"},zR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},GR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>on().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),A_.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=HR[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),A_.forEach(a=>{if(a!==o){let c=zR[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function s4(t,e){return LD(b({rootComponent:t},WR(e)))}function WR(t){return{appProviders:[...k_,...t?.providers??[]],platformProviders:KR}}function qR(){Kh.makeCurrent()}function ZR(){return new Te}function YR(){return Vb(document),document}var KR=[{provide:Qe,useValue:jh},{provide:Hf,useValue:qR,multi:!0},{provide:W,useFactory:YR,deps:[]}];var QR=new v(""),XR=[{provide:zo,useClass:Qh,deps:[]},{provide:bh,useClass:Bc,deps:[P,$c,zo]},{provide:Bc,useClass:Bc,deps:[P,$c,zo]}],k_=[{provide:mc,useValue:"root"},{provide:Te,useFactory:ZR,deps:[]},{provide:fu,useClass:BR,multi:!0,deps:[W,P,Qe]},{provide:fu,useClass:GR,multi:!0,deps:[W]},{provide:fu,useClass:$R,multi:!0},S_,R_,N_,{provide:mi,useExisting:S_},{provide:Ti,useClass:FR,deps:[]},[]],a4=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:xr,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(p(QR,12))},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[...k_,...XR],imports:[r_,PD]});let t=e;return t})();var P_=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=p(JR),o},providedIn:"root"});let t=e;return t})(),JR=(()=>{let e=class e extends tp{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Pe.NONE:return i;case Pe.HTML:return Kn(i,"HTML")?vt(i):oy(this._doc,String(i)).toString();case Pe.STYLE:return Kn(i,"Style")?vt(i):i;case Pe.SCRIPT:if(Kn(i,"Script"))return vt(i);throw new I(5200,!1);case Pe.URL:return Kn(i,"URL")?vt(i):Ic(String(i));case Pe.RESOURCE_URL:if(Kn(i,"ResourceURL"))return vt(i);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(n){return Yb(n)}bypassSecurityTrustStyle(n){return Kb(n)}bypassSecurityTrustScript(n){return Qb(n)}bypassSecurityTrustUrl(n){return Xb(n)}bypassSecurityTrustResourceUrl(n){return Jb(n)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jh=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t}(Jh||{});function c4(...t){let e=[],r=new Set,n=r.has(Jh.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of t)r.add(o),i.length&&e.push(i);return vn([[],VD(),r.has(Jh.NoHttpTransferCache)||n?[]:M_({}),e])}var j="primary",ps=Symbol("RouteTitle"),sp=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 Pi(t){return new sp(t)}function eO(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function K_(t){return t.length>0?t[t.length-1]:null}function rr(t){return Fl(t)?t:Qn(t)?re(Promise.resolve(t)):x(t)}var nO={exact:X_,subset:J_},Q_={exact:rO,subset:iO,ignored:()=>!0};function j_(t,e,r){return nO[r.paths](t.root,e.root,r.matrixParams)&&Q_[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function rO(t,e){return cn(t,e)}function X_(t,e,r){if(!Ar(t.segments,e.segments)||!gu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!X_(t.children[n],e.children[n],r))return!1;return!0}function iO(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Y_(t[r],e[r]))}function J_(t,e,r){return ew(t,e,e.segments,r)}function ew(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Ar(i,r)||e.hasChildren()||!gu(i,r,n))}else if(t.segments.length===r.length){if(!Ar(t.segments,r)||!gu(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!J_(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Ar(t.segments,i)||!gu(t.segments,i,n)||!t.children[j]?!1:ew(t.children[j],e,o,n)}}function gu(t,e,r){return e.every((n,i)=>Q_[r](t[i].parameters,n.parameters))}var Tn=class{constructor(e=new J([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){return aO.serialize(this)}},J=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vu(this)}},Tr=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Pi(this.parameters),this._parameterMap}toString(){return nw(this)}};function oO(t,e){return Ar(t,e)&&t.every((r,n)=>cn(r.parameters,e[n].parameters))}function Ar(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function sO(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===j&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==j&&(r=r.concat(e(i,n)))}),r}var ms=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new Li,providedIn:"root"});let t=e;return t})(),Li=class{parse(e){let r=new up(e);return new Tn(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${es(e.root,!0)}`,n=lO(e.queryParams),i=typeof e.fragment=="string"?`#${cO(e.fragment)}`:"";return`${r}${n}${i}`}},aO=new Li;function vu(t){return t.segments.map(e=>nw(e)).join("/")}function es(t,e){if(!t.hasChildren())return vu(t);if(e){let r=t.children[j]?es(t.children[j],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==j&&n.push(`${i}:${es(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=sO(t,(n,i)=>i===j?[es(t.children[j],!1)]:[`${i}:${es(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[j]!=null?`${vu(t)}/${r[0]}`:`${vu(t)}/(${r.join("//")})`}}function tw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pu(t){return tw(t).replace(/%3B/gi,";")}function cO(t){return encodeURI(t)}function cp(t){return tw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bu(t){return decodeURIComponent(t)}function V_(t){return bu(t.replace(/\+/g,"%20"))}function nw(t){return`${cp(t.path)}${uO(t.parameters)}`}function uO(t){return Object.entries(t).map(([e,r])=>`;${cp(e)}=${cp(r)}`).join("")}function lO(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${pu(r)}=${pu(i)}`).join("&"):`${pu(r)}=${pu(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var dO=/^[^\/()?;#]+/;function np(t){let e=t.match(dO);return e?e[0]:""}var fO=/^[^\/()?;=#]+/;function hO(t){let e=t.match(fO);return e?e[0]:""}var pO=/^[^=?&#]+/;function mO(t){let e=t.match(pO);return e?e[0]:""}var gO=/^[^&#]+/;function vO(t){let e=t.match(gO);return e?e[0]:""}var up=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],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 n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[j]=new J(e,r)),n}parseSegment(){let e=np(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(e),new Tr(bu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=hO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=np(this.remaining);i&&(n=i,this.capture(n))}e[bu(r)]=bu(n)}parseQueryParam(e){let r=mO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=vO(this.remaining);s&&(n=s,this.capture(n))}let i=V_(r),o=V_(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=np(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=j);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[j]:new J([],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 I(4011,!1)}};function rw(t){return t.segments.length>0?new J([],{[j]:t}):t}function iw(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=iw(i);if(n===j&&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[n]=o)}let r=new J(t.segments,e);return bO(r)}function bO(t){if(t.numberOfChildren===1&&t.children[j]){let e=t.children[j];return new J(t.segments.concat(e.segments),e.children)}return t}function Nr(t){return t instanceof Tn}function yO(t,e,r=null,n=null){let i=ow(t);return sw(i,e,r,n)}function ow(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new J(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=rw(n);return e??i}function sw(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return rp(i,i,i,r,n);let o=DO(e);if(o.toRoot())return rp(i,i,new J([],{}),r,n);let s=_O(o,i,t),a=s.processChildren?rs(s.segmentGroup,s.index,o.commands):cw(s.segmentGroup,s.index,o.commands);return rp(i,s.segmentGroup,a,r,n)}function yu(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ss(t){return typeof t=="object"&&t!=null&&t.outlets}function rp(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=aw(t,e,r);let a=rw(iw(s));return new Tn(a,o,i)}function aw(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=aw(o,e,r)}),new J(t.segments,n)}var Du=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&yu(n[0]))throw new I(4003,!1);let i=n.find(ss);if(i&&i!==K_(n))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function DO(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Du(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Du(r,e,n)}var Oi=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function _O(t,e,r){if(t.isAbsolute)return new Oi(e,!0,0);if(!r)return new Oi(e,!1,NaN);if(r.parent===null)return new Oi(r,!0,0);let n=yu(t.commands[0])?0:1,i=r.segments.length-1+n;return wO(r,i,t.numberOfDoubleDots)}function wO(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new I(4005,!1);i=n.segments.length}return new Oi(n,!1,i-o)}function EO(t){return ss(t[0])?t[0].outlets:{[j]:t}}function cw(t,e,r){if(t??=new J([],{}),t.segments.length===0&&t.hasChildren())return rs(t,e,r);let n=IO(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==j)&&t.children[j]&&t.numberOfChildren===1&&t.children[j].segments.length===0){let o=rs(t.children[j],e,r);return new J(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=cw(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new J(t.segments,i)}}function IO(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ss(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!B_(c,u,s))return o;n+=2}else{if(!B_(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function lp(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=lp(new J([],{}),0,n))}),e}function U_(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function B_(t,e,r){return t==r.path&&cn(e,r.parameters)}var is="imperative",Ie=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}(Ie||{}),It=class{constructor(e,r){this.id=e,this.url=r}},ji=class extends It{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Ie.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},jt=class extends It{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},dt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(dt||{}),_u=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(_u||{}),Sn=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},tr=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationSkipped}},as=class extends It{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},wu=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fp=class extends It{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},hp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},vp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yp=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dp=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Eu=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Ie.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},cs=class{},Vi=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function xO(t,e){return t.providers&&!t._injector&&(t._injector=Fc(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Lt(t){return t.outlet||j}function MO(t,e){let r=t.filter(n=>Lt(n)===e);return r.push(...t.filter(n=>Lt(n)!==e)),r}function gs(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 _p=class{get injector(){return gs(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new vs(this.rootInjector),this.attachRef=null}},vs=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new _p(this.rootInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Iu=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=wp(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=wp(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Ep(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Ep(e,this._root).map(r=>r.value)}};function wp(t,e){if(t===e.value)return e;for(let r of e.children){let n=wp(t,r);if(n)return n}return null}function Ep(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Ep(t,r);if(n.length)return n.unshift(e),n}return[]}var lt=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Ri(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Cu=class extends Iu{constructor(e,r){super(e),this.snapshot=r,Rp(this,e)}toString(){return this.snapshot.toString()}};function uw(t){let e=SO(t),r=new de([new Tr("",{})]),n=new de({}),i=new de({}),o=new de({}),s=new de(""),a=new nr(r,n,o,s,i,j,t,e.root);return a.snapshot=e.root,new Cu(new lt(a,[]),e)}function SO(t){let e={},r={},n={},i="",o=new Fi([],e,n,i,r,j,t,null,{});return new Mu("",new lt(o,[]))}var nr=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[ps]))??x(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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(C(e=>Pi(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(e=>Pi(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xu(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:b(b({},e.params),t.params),data:b(b({},e.data),t.data),resolve:b(b(b(b({},t.data),e.data),i?.data),t._resolvedData)}:n={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},i&&dw(i)&&(n.resolve[ps]=i.title),n}var Fi=class{get title(){return this.data?.[ps]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=Pi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Mu=class extends Iu{constructor(e,r){super(r),this.url=e,Rp(this,r)}toString(){return lw(this._root)}};function Rp(t,e){e.value._routerState=t,e.children.forEach(r=>Rp(t,r))}function lw(t){let e=t.children.length>0?` { ${t.children.map(lw).join(", ")} } `:"";return`${t.value}${e}`}function ip(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,cn(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),cn(e.params,r.params)||t.paramsSubject.next(r.params),tO(e.url,r.url)||t.urlSubject.next(r.url),cn(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Ip(t,e){let r=cn(t.params,e.params)&&oO(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Ip(t.parent,e.parent))}function dw(t){return typeof t.title=="string"||t.title===null}var TO=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=j,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=g(vs),this.location=g(yn),this.changeDetector=g(wt),this.inputBinder=g(Nu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Cp(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[it]});let t=e;return t})(),Cp=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===nr?this.route:e===vs?this.childContexts:this.parent.get(e,r)}},Nu=new v(""),$_=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=dr([i.queryParams,i.params,i.data]).pipe(Ve(([s,a,c],u)=>(c=b(b(b({},s),a),c),u===0?x(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=UD(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function AO(t,e,r){let n=us(t,e._root,r?r._root:void 0);return new Cu(n,e)}function us(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=NO(t,e,r);return new lt(n,i)}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=>us(t,a)),s}}let n=RO(e.value),i=e.children.map(o=>us(t,o));return new lt(n,i)}}function NO(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return us(t,n,i);return us(t,n)})}function RO(t){return new nr(new de(t.url),new de(t.params),new de(t.queryParams),new de(t.fragment),new de(t.data),t.outlet,t.component,t)}var ls=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},fw="ngNavigationCancelingError";function Su(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Nr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=hw(!1,dt.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function hw(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[fw]=!0,r.cancellationCode=e,r}function OO(t){return pw(t)&&Nr(t.url)}function pw(t){return!!t&&t[fw]}var FO=(t,e,r,n)=>C(i=>(new xp(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),xp=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),ip(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Dp(o.value.snapshot))}),e.children.length&&this.forwardEvent(new bp(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(ip(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),ip(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Tu=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ki=class{constructor(e,r){this.component=e,this.route=r}};function kO(t,e,r){let n=t._root,i=e?e._root:null;return ts(n,i,r,[n.value])}function PO(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Bi(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Mv(t)?t:e.get(t):n}function ts(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ri(e);return t.children.forEach(s=>{LO(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>os(a,r.getContext(s),i)),i}function LO(t,e,r,n,i={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=jO(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Tu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ts(t,e,a?a.children:null,n,i):ts(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ki(a.outlet.component,s))}else s&&os(e,a,i),i.canActivateChecks.push(new Tu(n)),o.component?ts(t,null,a?a.children:null,n,i):ts(t,null,r,n,i);return i}function jO(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Ar(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ar(t.url,e.url)||!cn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ip(t,e)||!cn(t.queryParams,e.queryParams);case"paramsChange":default:return!Ip(t,e)}}function os(t,e,r){let n=Ri(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?os(s,e.children.getContext(o),r):os(s,null,r):os(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ki(e.outlet.component,i)):r.canDeactivateChecks.push(new ki(null,i)):r.canDeactivateChecks.push(new ki(null,i))}function bs(t){return typeof t=="function"}function VO(t){return typeof t=="boolean"}function UO(t){return t&&bs(t.canLoad)}function BO(t){return t&&bs(t.canActivate)}function $O(t){return t&&bs(t.canActivateChild)}function HO(t){return t&&bs(t.canDeactivate)}function zO(t){return t&&bs(t.canMatch)}function mw(t){return t instanceof At||t?.name==="EmptyError"}var mu=Symbol("INITIAL_VALUE");function Ui(){return Ve(t=>dr(t.map(e=>e.pipe(ge(1),po(mu)))).pipe(C(e=>{for(let r of e)if(r!==!0){if(r===mu)return mu;if(r===!1||GO(r))return r}return!0}),le(e=>e!==mu),ge(1)))}function GO(t){return Nr(t)||t instanceof ls}function WO(t,e){return Q(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?x(O(b({},r),{guardsResult:!0})):qO(s,n,i,t).pipe(Q(a=>a&&VO(a)?ZO(n,o,t,e):x(a)),C(a=>O(b({},r),{guardsResult:a})))})}function qO(t,e,r,n){return re(t).pipe(Q(i=>JO(i.component,i.route,r,e,n)),Nt(i=>i!==!0,!0))}function ZO(t,e,r,n){return re(e).pipe(Gt(i=>zt(KO(i.route.parent,n),YO(i.route,n),XO(t,i.path,r),QO(t,i.route,r))),Nt(i=>i!==!0,!0))}function YO(t,e){return t!==null&&e&&e(new yp(t)),x(!0)}function KO(t,e){return t!==null&&e&&e(new vp(t)),x(!0)}function QO(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return x(!0);let i=n.map(o=>so(()=>{let s=gs(e)??r,a=Bi(o,s),c=BO(a)?a.canActivate(e,t):rt(s,()=>a(e,t));return rr(c).pipe(Nt())}));return x(i).pipe(Ui())}function XO(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>PO(s)).filter(s=>s!==null).map(s=>so(()=>{let a=s.guards.map(c=>{let u=gs(s.node)??r,l=Bi(c,u),d=$O(l)?l.canActivateChild(n,t):rt(u,()=>l(n,t));return rr(d).pipe(Nt())});return x(a).pipe(Ui())}));return x(o).pipe(Ui())}function JO(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return x(!0);let s=o.map(a=>{let c=gs(e)??i,u=Bi(a,c),l=HO(u)?u.canDeactivate(t,e,r,n):rt(c,()=>u(t,e,r,n));return rr(l).pipe(Nt())});return x(s).pipe(Ui())}function eF(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=UO(a)?a.canLoad(e,r):rt(t,()=>a(e,r));return rr(c)});return x(o).pipe(Ui(),gw(n))}function gw(t){return xl(ee(e=>{if(typeof e!="boolean")throw Su(t,e)}),C(e=>e===!0))}function tF(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=zO(a)?a.canMatch(e,r):rt(t,()=>a(e,r));return rr(c)});return x(o).pipe(Ui(),gw(n))}var ds=class{constructor(e){this.segmentGroup=e||null}},fs=class extends Error{constructor(e){super(),this.urlTree=e}};function Ni(t){return $t(new ds(t))}function nF(t){return $t(new I(4e3,!1))}function rF(t){return $t(hw(!1,dt.GuardRejected))}var Mp=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return x(n);if(i.numberOfChildren>1||!i.children[j])return nF(`${e.redirectTo}`);i=i.children[j]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:m,title:_}=i,w=rt(o,()=>a({params:h,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:_}));if(w instanceof Tn)throw new fs(w);r=w}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new fs(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Tn(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new J(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Sp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iF(t,e,r,n,i){let o=Op(t,e,r);return o.matched?(n=xO(e,n),tF(n,e,r,i).pipe(C(s=>s===!0?o:b({},Sp)))):x(o)}function Op(t,e,r){if(e.path==="**")return oF(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?b({},Sp):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||eO)(r,t,e);if(!i)return b({},Sp);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?b(b({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function oF(t){return{matched:!0,parameters:t.length>0?K_(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function H_(t,e,r,n){return r.length>0&&cF(t,r,n)?{segmentGroup:new J(e,aF(n,new J(r,t.children))),slicedSegments:[]}:r.length===0&&uF(t,r,n)?{segmentGroup:new J(t.segments,sF(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new J(t.segments,t.children),slicedSegments:r}}function sF(t,e,r,n){let i={};for(let o of r)if(Ru(t,e,o)&&!n[Lt(o)]){let s=new J([],{});i[Lt(o)]=s}return b(b({},n),i)}function aF(t,e){let r={};r[j]=e;for(let n of t)if(n.path===""&&Lt(n)!==j){let i=new J([],{});r[Lt(n)]=i}return r}function cF(t,e,r){return r.some(n=>Ru(t,e,n)&&Lt(n)!==j)}function uF(t,e,r){return r.some(n=>Ru(t,e,n))}function Ru(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function lF(t,e,r,n){return Lt(t)!==n&&(n===j||!Ru(e,r,t))?!1:Op(e,t,r).matched}function dF(t,e,r){return e.length===0&&!t.children[r]}var Tp=class{};function fF(t,e,r,n,i,o,s="emptyOnly"){return new Ap(t,e,r,n,i,s,o).recognize()}var hF=31,Ap=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Mp(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new I(4002,`'${e.segmentGroup}'`)}recognize(){let e=H_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(C(({children:r,rootSnapshot:n})=>{let i=new lt(n,r),o=new Mu("",i),s=yO(n,[],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 Fi([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),j,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,j,r).pipe(C(n=>({children:n,rootSnapshot:r})),Re(n=>{if(n instanceof fs)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ds?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(C(s=>s instanceof lt?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return re(o).pipe(Gt(s=>{let a=n.children[s],c=MO(r,s);return this.processSegmentGroup(e,c,a,s,i)}),fo((s,a)=>(s.push(...a),s)),Ln(null),jl(),Q(s=>{if(s===null)return Ni(n);let a=vw(s);return pF(a),x(a)}))}processSegment(e,r,n,i,o,s,a){return re(r).pipe(Gt(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(Re(u=>{if(u instanceof ds)return x(null);throw u}))),Nt(c=>!!c),Re(c=>{if(mw(c))return dF(n,i,o)?x(new Tp):Ni(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return lF(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):Ni(i):Ni(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Op(r,i,o);if(!c)return Ni(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>hF&&(this.allowRedirects=!1));let h=new Fi(o,u,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,z_(i),Lt(i),i.component??i._loadedComponent??null,i,G_(i)),m=xu(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(m.params),h.data=Object.freeze(m.data);let _=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,_).pipe(Q(w=>this.processSegment(e,n,r,w.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=iF(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(Ve(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(Ve(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,m=new Fi(f,d,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,z_(n),Lt(n),n.component??n._loadedComponent??null,n,G_(n)),_=xu(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(_.params),m.data=Object.freeze(_.data);let{segmentGroup:w,slicedSegments:E}=H_(r,f,h,u);if(E.length===0&&w.hasChildren())return this.processChildren(l,u,w,m).pipe(C(q=>new lt(m,q)));if(u.length===0&&E.length===0)return x(new lt(m,[]));let k=Lt(n)===o;return this.processSegment(l,u,w,E,k?j:o,!0,m).pipe(C(q=>new lt(m,q instanceof lt?[q]:[])))}))):Ni(r)))}getChildConfig(e,r,n){return r.children?x({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?x({routes:r._loadedRoutes,injector:r._loadedInjector}):eF(e,r,n,this.urlSerializer).pipe(Q(i=>i?this.configLoader.loadChildren(e,r).pipe(ee(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):rF(r))):x({routes:[],injector:e})}};function pF(t){t.sort((e,r)=>e.value.outlet===j?-1:r.value.outlet===j?1:e.value.outlet.localeCompare(r.value.outlet))}function mF(t){let e=t.value.routeConfig;return e&&e.path===""}function vw(t){let e=[],r=new Set;for(let n of t){if(!mF(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=vw(n.children);e.push(new lt(n.value,i))}return e.filter(n=>!r.has(n))}function z_(t){return t.data||{}}function G_(t){return t.resolve||{}}function gF(t,e,r,n,i,o){return Q(s=>fF(t,e,r,n,s.extractedUrl,i,o).pipe(C(({state:a,tree:c})=>O(b({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function vF(t,e){return Q(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return x(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of bw(c))s.add(u);let a=0;return re(s).pipe(Gt(c=>o.has(c)?bF(c,n,t,e):(c.data=xu(c,c.parent,t).resolve,x(void 0))),ee(()=>a++),Xr(1),Q(c=>a===s.size?x(r):xe))})}function bw(t){let e=t.children.map(r=>bw(r)).flat();return[t,...e]}function bF(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!dw(i)&&(o[ps]=i.title),yF(o,t,e,n).pipe(C(s=>(t._resolvedData=s,t.data=xu(t,t.parent,r).resolve,null)))}function yF(t,e,r,n){let i=ap(t);if(i.length===0)return x({});let o={};return re(i).pipe(Q(s=>DF(t[s],e,r,n).pipe(Nt(),ee(a=>{if(a instanceof ls)throw Su(new Li,a);o[s]=a}))),Xr(1),lo(o),Re(s=>mw(s)?xe:$t(s)))}function DF(t,e,r,n){let i=gs(e)??n,o=Bi(t,i),s=o.resolve?o.resolve(e,r):rt(i,()=>o(e,r));return rr(s)}function op(t){return Ve(e=>{let r=t(e);return r?re(r).pipe(C(()=>e)):x(e)})}var yw=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===j);return i}getResolvedTitleForRoute(n){return n.data[ps]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(_F),providedIn:"root"});let t=e;return t})(),_F=(()=>{let e=class e extends yw{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(p(P_))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ys=new v("",{providedIn:"root",factory:()=>({})}),wF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["ng-component"]],standalone:!0,features:[at],decls:1,vars:0,template:function(i,o){i&1&&Je(0,"router-outlet")},dependencies:[TO],encapsulation:2});let t=e;return t})();function Fp(t){let e=t.children&&t.children.map(Fp),r=e?O(b({},t),{children:e}):b({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==j&&(r.component=wF),r}var hs=new v(""),kp=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Gc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=rr(n.loadComponent()).pipe(C(Dw),ee(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),ht(()=>{this.componentLoaders.delete(n)})),o=new Gr(i,()=>new B).pipe(zr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return x({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=EF(i,this.compiler,n,this.onLoadEndListener).pipe(ht(()=>{this.childrenLoaders.delete(i)})),a=new Gr(s,()=>new B).pipe(zr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function EF(t,e,r,n){return rr(t.loadChildren()).pipe(C(Dw),Q(i=>i instanceof Io||Array.isArray(i)?x(i):re(e.compileModuleAsync(i))),C(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(hs,[],{optional:!0,self:!0}).flat()),{routes:s.map(Fp),injector:o}}))}function IF(t){return t&&typeof t=="object"&&"default"in t}function Dw(t){return IF(t)?t.default:t}var Pp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(CF),providedIn:"root"});let t=e;return t})(),CF=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_w=new v(""),ww=new v("");function xF(t,e,r){let n=t.get(ww),i=t.get(W);return t.get(P).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),MF(t))),{onViewTransitionCreated:c}=n;return c&&rt(t,()=>c({transition:a,from:e,to:r})),s})}function MF(t){return new Promise(e=>{Bo({read:()=>setTimeout(e)},{injector:t})})}var SF=new v(""),Lp=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(kp),this.environmentInjector=g(Fe),this.urlSerializer=g(ms),this.rootContexts=g(vs),this.location=g(Ai),this.inputBindingEnabled=g(Nu,{optional:!0})!==null,this.titleStrategy=g(yw),this.options=g(ys,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Pp),this.createViewTransition=g(_w,{optional:!0}),this.navigationErrorHandler=g(SF,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null;let n=o=>this.events.next(new mp(o)),i=o=>this.events.next(new gp(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(O(b(b({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new de({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:is,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(le(s=>s.id!==0),C(s=>O(b({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ve(s=>{let a=!1,c=!1;return x(s).pipe(Ve(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),xe;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?O(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new tr(u.id,this.urlSerializer.serialize(u.rawUrl),f,_u.IgnoredSameUrlNavigation)),u.resolve(!1),xe}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return x(u).pipe(Ve(f=>{let h=this.transitions?.getValue();return this.events.next(new ji(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?xe:Promise.resolve(f)}),gF(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=O(b({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new wu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:m,restoredState:_,extras:w}=u,E=new ji(f,this.urlSerializer.serialize(h),m,_);this.events.next(E);let k=uw(this.rootComponentType).snapshot;return this.currentTransition=s=O(b({},u),{targetSnapshot:k,urlAfterRedirects:h,extras:O(b({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,x(s)}else{let f="";return this.events.next(new tr(u.id,this.urlSerializer.serialize(u.extractedUrl),f,_u.IgnoredByUrlHandlingStrategy)),u.resolve(!1),xe}}),ee(u=>{let l=new dp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=s=O(b({},u),{guards:kO(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),WO(this.environmentInjector,u=>this.events.next(u)),ee(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Su(this.urlSerializer,u.guardsResult);let l=new fp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),le(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",dt.GuardRejected),!1)),op(u=>{if(u.guards.canActivateChecks.length)return x(u).pipe(ee(l=>{let d=new hp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Ve(l=>{let d=!1;return x(l).pipe(vF(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",dt.NoDataFromResolver)}}))}),ee(l=>{let d=new pp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),op(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ee(h=>{d.component=h}),C(()=>{})));for(let h of d.children)f.push(...l(h));return f};return dr(l(u.targetSnapshot.root)).pipe(Ln(null),ge(1))}),op(()=>this.afterPreactivation()),Ve(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?re(d).pipe(C(()=>s)):x(s)}),C(u=>{let l=AO(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=O(b({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ee(()=>{this.events.next(new cs)}),FO(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),ge(1),ee({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),jn(this.transitionAbortSubject.pipe(ee(u=>{throw u}))),ht(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Re(u=>{if(c=!0,pw(u))this.events.next(new Sn(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),OO(u)?this.events.next(new Vi(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new as(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=rt(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof ls){let{message:f,cancellationCode:h}=Su(this.urlSerializer,d);this.events.next(new Sn(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new Vi(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return xe}))}))}cancelNavigationTransition(n,i,o){let s=new Sn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function TF(t){return t!==is}var AF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(NF),providedIn:"root"});let t=e;return t})(),Np=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},NF=(()=>{let e=class e extends Np{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ew=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(RF),providedIn:"root"});let t=e;return t})(),RF=(()=>{let e=class e extends Ew{constructor(){super(...arguments),this.location=g(Ai),this.urlSerializer=g(ms),this.options=g(ys,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Pp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Tn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=uw(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(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof ji)this.stateMemento=this.createStateMemento();else if(n instanceof tr)this.rawUrlTree=i.initialUrl;else if(n instanceof wu){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else n instanceof cs?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):n instanceof Sn&&(n.code===dt.GuardRejected||n.code===dt.NoDataFromResolver)?this.restoreHistory(i):n instanceof as?this.restoreHistory(i,!0):n instanceof jt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=n instanceof Tn?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=b(b({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=b(b({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ns=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ns||{});function Iw(t,e){t.events.pipe(le(r=>r instanceof jt||r instanceof Sn||r instanceof as||r instanceof tr),C(r=>r instanceof jt||r instanceof tr?ns.COMPLETE:(r instanceof Sn?r.code===dt.Redirect||r.code===dt.SupersededByNewNavigation:!1)?ns.REDIRECTING:ns.FAILED),le(r=>r!==ns.REDIRECTING),ge(1)).subscribe(()=>{e()})}function OF(t){throw t}var FF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ct=(()=>{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=g(Uc),this.stateManager=g(Ew),this.options=g(ys,{optional:!0})||{},this.pendingTasks=g(Jt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Lp),this.urlSerializer=g(ms),this.location=g(Ai),this.urlHandlingStrategy=g(Pp),this._events=new B,this.errorHandler=this.options.errorHandler||OF,this.navigated=!1,this.routeReuseStrategy=g(AF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(hs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Nu,{optional:!0}),this.eventsSubscription=new ae,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Sn&&i.code!==dt.Redirect&&i.code!==dt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof jt)this.navigated=!0;else if(i instanceof Vi){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=b({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||TF(o.source)},a);this.scheduleNavigation(c,is,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}LF(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),is,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=b({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Fp),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(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=b(b({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=ow(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return sw(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Nr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,is,null,i)}navigate(n,i={skipLocationChange:!1}){return PF(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=b({},FF):i===!1?o=b({},kF):o=i,Nr(n))return j_(this.currentUrlTree,n,o);let s=this.parseUrl(n);return j_(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return Iw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function PF(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof jt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Nr(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:sy(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.routerLinkInput===null?null:Nr(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(i){return new(i||e)(y(Ct),y(nr),Fo("tabindex"),y(en),y(ne),y(Mn))},e.\u0275dir=G({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&En("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Xe("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee],replaceUrl:[2,"replaceUrl","replaceUrl",Ee],routerLink:"routerLink"},standalone:!0,features:[st,it]});let t=e;return t})(),x4=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof jt&&this.update()})}ngAfterContentInit(){x(this.links.changes,x(null)).pipe(Ht()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=re(n).pipe(Ht()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&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!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=jF(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ct),y(ne),y(en),y(wt),y(W_,8))},e.\u0275dir=G({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&xD(s,W_,5),i&2){let a;jc(a=Vc())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[it]});let t=e;return t})();function jF(t){return!!t.paths}var Au=class{};var VF=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(le(n=>n instanceof jt),Gt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Fc(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,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 re(o).pipe(Ht())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=x(null);let s=o.pipe(Q(a=>a===null?x(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return re([s,a]).pipe(Ht())}else return s})}};e.\u0275fac=function(i){return new(i||e)(p(Ct),p(Gc),p(Fe),p(Au),p(kp))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cw=new v(""),UF=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=g(Fe),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(n=>{n instanceof ji?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof jt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof tr&&n.code===_u.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Eu&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>Vr(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Bo(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Eu(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Lo()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function M4(t,...e){return vn([{provide:hs,multi:!0,useValue:t},[],{provide:nr,useFactory:xw,deps:[Ct]},{provide:Mr,multi:!0,useFactory:Mw},e.map(r=>r.\u0275providers)])}function xw(t){return t.routerState.root}function Ds(t,e){return{\u0275kind:t,\u0275providers:e}}function Mw(){let t=g(ke);return e=>{let r=t.get(nn);if(e!==r.components[0])return;let n=t.get(Ct),i=t.get(Sw);t.get(jp)===1&&n.initialNavigation(),t.get(Tw,null,U.Optional)?.setUpPreloading(),t.get(Cw,null,U.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Sw=new v("",{factory:()=>new B}),jp=new v("",{providedIn:"root",factory:()=>1});function BF(){return Ds(2,[{provide:jp,useValue:0},{provide:Hc,multi:!0,deps:[ke],useFactory:e=>{let r=e.get(KD,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ct),o=e.get(Sw);Iw(i,()=>{n(!0)}),e.get(Lp).afterPreactivation=()=>(n(!0),o.closed?x(void 0):o),i.initialNavigation()}))}}])}function $F(){return Ds(3,[{provide:Hc,multi:!0,useFactory:()=>{let e=g(Ct);return()=>{e.setUpLocationChangeListener()}}},{provide:jp,useValue:2}])}var Tw=new v("");function HF(t){return Ds(0,[{provide:Tw,useExisting:VF},{provide:Au,useExisting:t}])}function zF(){return Ds(8,[$_,{provide:Nu,useExisting:$_}])}function GF(t){let e=[{provide:_w,useValue:xF},{provide:ww,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ds(9,e)}var q_=new v("ROUTER_FORROOT_GUARD"),WF=[Ai,{provide:ms,useClass:Li},Ct,vs,{provide:nr,useFactory:xw,deps:[Ct]},kp,[]],S4=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[WF,[],{provide:hs,multi:!0,useValue:n},{provide:q_,useFactory:KF,deps:[[Ct,new yi,new Mo]]},{provide:ys,useValue:i||{}},i?.useHash?ZF():YF(),qF(),i?.preloadingStrategy?HF(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?QF(i):[],i?.bindToComponentInputs?zF().\u0275providers:[],i?.enableViewTransitions?GF().\u0275providers:[],XF()]}}static forChild(n){return{ngModule:e,providers:[{provide:hs,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(p(q_,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function qF(){return{provide:Cw,useFactory:()=>{let t=g(i_),e=g(P),r=g(ys),n=g(Lp),i=g(ms);return r.scrollOffset&&t.setOffset(r.scrollOffset),new UF(i,n,t,e,r)}}}function ZF(){return{provide:Mn,useClass:XD}}function YF(){return{provide:Mn,useClass:Lh}}function KF(t){return"guarded"}function QF(t){return[t.initialNavigation==="disabled"?$F().\u0275providers:[],t.initialNavigation==="enabledBlocking"?BF().\u0275providers:[]]}var Z_=new v("");function XF(){return[{provide:Z_,useFactory:Mw},{provide:Mr,multi:!0,useExisting:Z_}]}var jw=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(y(en),y(ne))},e.\u0275dir=G({type:e});let t=e;return t})(),ek=(()=>{let e=class e extends jw{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})(),Bu=new v("");var tk={provide:Bu,useExisting:kt(()=>Vw),multi:!0};function nk(){let t=on()?on().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var rk=new v(""),Vw=(()=>{let e=class e extends jw{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!nk())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(y(en),y(ne),y(rk,8))},e.\u0275dir=G({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(i,o){i&1&&En("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:[_t([tk]),be]});let t=e;return t})();function ir(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Uw(t){return t!=null&&typeof t.length=="number"}var Rr=new v(""),Or=new v(""),ik=/^(?=.{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])?)*$/,Aw=class{static min(e){return ok(e)}static max(e){return sk(e)}static required(e){return ak(e)}static requiredTrue(e){return ck(e)}static email(e){return uk(e)}static minLength(e){return lk(e)}static maxLength(e){return dk(e)}static pattern(e){return fk(e)}static nullValidator(e){return Bw(e)}static compose(e){return qw(e)}static composeAsync(e){return Zw(e)}};function ok(t){return e=>{if(ir(e.value)||ir(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(ir(e.value)||ir(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function ak(t){return ir(t.value)?{required:!0}:null}function ck(t){return t.value===!0?null:{required:!0}}function uk(t){return ir(t.value)||ik.test(t.value)?null:{email:!0}}function lk(t){return e=>ir(e.value)||!Uw(e.value)?null:e.value.lengthUw(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function fk(t){if(!t)return Bw;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),n=>{if(ir(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Bw(t){return null}function $w(t){return t!=null}function Hw(t){return Qn(t)?re(t):t}function zw(t){let e={};return t.forEach(r=>{e=r!=null?b(b({},e),r):e}),Object.keys(e).length===0?null:e}function Gw(t,e){return e.map(r=>r(t))}function hk(t){return!t.validate}function Ww(t){return t.map(e=>hk(e)?e:r=>e.validate(r))}function qw(t){if(!t)return null;let e=t.filter($w);return e.length==0?null:function(r){return zw(Gw(r,e))}}function zp(t){return t!=null?qw(Ww(t)):null}function Zw(t){if(!t)return null;let e=t.filter($w);return e.length==0?null:function(r){let n=Gw(r,e).map(Hw);return ao(n).pipe(C(zw))}}function Gp(t){return t!=null?Zw(Ww(t)):null}function Nw(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Yw(t){return t._rawValidators}function Kw(t){return t._rawAsyncValidators}function Vp(t){return t?Array.isArray(t)?t:[t]:[]}function Fu(t,e){return Array.isArray(t)?t.includes(e):t===e}function Rw(t,e){let r=Vp(e);return Vp(t).forEach(i=>{Fu(r,i)||r.push(i)}),r}function Ow(t,e){return Vp(e).filter(r=>!Fu(t,r))}var ku=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=zp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Gp(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}},Ge=class extends ku{get formDirective(){return null}get path(){return null}},An=class extends ku{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Pu=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}},pk={"[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"},G4=O(b({},pk),{"[class.ng-submitted]":"isSubmitted"}),W4=(()=>{let e=class e extends Pu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(An,2))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&we("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:[be]});let t=e;return t})(),q4=(()=>{let e=class e extends Pu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&we("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:[be]});let t=e;return t})();var _s="VALID",Ou="INVALID",$i="PENDING",ws="DISABLED",or=class{},Lu=class extends or{constructor(e,r){super(),this.value=e,this.source=r}},Is=class extends or{constructor(e,r){super(),this.pristine=e,this.source=r}},Cs=class extends or{constructor(e,r){super(),this.touched=e,this.source=r}},Hi=class extends or{constructor(e,r){super(),this.status=e,this.source=r}},Up=class extends or{constructor(e){super(),this.source=e}},Bp=class extends or{constructor(e){super(),this.source=e}};function Wp(t){return($u(t)?t.validators:t)||null}function mk(t){return Array.isArray(t)?zp(t):t||null}function qp(t,e){return($u(e)?e.asyncValidators:t)||null}function gk(t){return Array.isArray(t)?Gp(t):t||null}function $u(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Qw(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new I(1e3,"");if(!n[r])throw new I(1001,"")}function Xw(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new I(1002,"")})}var zi=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=rn(()=>this.statusReactive()),this.statusReactive=Dn(void 0),this._pristine=rn(()=>this.pristineReactive()),this.pristineReactive=Dn(!0),this._touched=rn(()=>this.touchedReactive()),this.touchedReactive=Dn(!1),this._events=new B,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 ct(this.statusReactive)}set status(e){ct(()=>this.statusReactive.set(e))}get valid(){return this.status===_s}get invalid(){return this.status===Ou}get pending(){return this.status==$i}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return ct(this.pristineReactive)}set pristine(e){ct(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ct(this.touchedReactive)}set touched(e){ct(()=>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(Rw(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Rw(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ow(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ow(e,this._rawAsyncValidators))}hasValidator(e){return Fu(this._rawValidators,e)}hasAsyncValidator(e){return Fu(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Cs(!0,n))}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 n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new Cs(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Is(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new Is(!0,n))}markAsPending(e={}){this.status=$i;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hi(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(O(b({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(i=>{i.disable(O(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Lu(this.value,n)),this._events.next(new Hi(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=_s,this._forEachChild(n=>{n.enable(O(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!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 n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_s||this.status===$i)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Lu(this.value,r)),this._events.next(new Hi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(O(b({},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()?ws:_s}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=$i,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Hw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{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((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.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,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Hi(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?Ou:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($i)?$i:this._anyControlsHaveStatus(Ou)?Ou:_s}_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 n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new Is(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Cs(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){$u(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=mk(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gk(this._rawAsyncValidators)}},Gi=class extends zi{constructor(e,r,n){super(Wp(r),qp(n,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,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.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,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){Xw(this,!0,e),Object.keys(e).forEach(n=>{Qw(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_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 $p=class extends Gi{};var Wi=new v("CallSetDisabledState",{providedIn:"root",factory:()=>Hu}),Hu="always";function zu(t,e){return[...e.path,t]}function Ms(t,e,r=Hu){Zp(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),bk(t,e),Dk(t,e),yk(t,e),vk(t,e)}function ju(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Uu(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Vu(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function vk(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Zp(t,e){let r=Yw(t);e.validator!==null?t.setValidators(Nw(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Kw(t);e.asyncValidator!==null?t.setAsyncValidators(Nw(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Vu(e._rawValidators,i),Vu(e._rawAsyncValidators,i)}function Uu(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Yw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Kw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Vu(e._rawValidators,n),Vu(e._rawAsyncValidators,n),r}function bk(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Jw(t,e)})}function yk(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Jw(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Jw(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Dk(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function eE(t,e){t==null,Zp(t,e)}function _k(t,e){return Uu(t,e)}function Yp(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function wk(t){return Object.getPrototypeOf(t.constructor)===ek}function tE(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Kp(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Vw?r=o:wk(o)?n=o:i=o}),i||n||r||null}function Ek(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var Ik={provide:Ge,useExisting:kt(()=>Ck)},Es=Promise.resolve(),Ck=(()=>{let e=class e extends Ge{get submitted(){return ct(this.submittedReactive)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=rn(()=>this.submittedReactive()),this.submittedReactive=Dn(!1),this._directives=new Set,this.ngSubmit=new X,this.form=new Gi({},zp(n),Gp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),Ms(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path),o=new Gi({});eE(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){Es.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),tE(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&En("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([Ik]),be]});let t=e;return t})();function Fw(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function kw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var xs=class extends zi{constructor(e=null,r,n){super(Wp(r),qp(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$u(r)&&(r.nonNullable||r.initialValueIsDefault)&&(kw(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(n=>n(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){Fw(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Fw(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){kw(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 xk=t=>t instanceof xs,Mk=(()=>{let e=class e extends Ge{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})();var Sk={provide:An,useExisting:kt(()=>Tk)},Pw=Promise.resolve(),Tk=(()=>{let e=class e extends An{constructor(n,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new xs,this._registered=!1,this.name="",this.update=new X,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Kp(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Yp(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Ms(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(n){Pw.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Ee(i);Pw.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?zu(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(y(Ge,9),y(Rr,10),y(Or,10),y(Bu,10),y(wt,8),y(Wi,8))},e.\u0275dir=G({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:[_t([Sk]),be,it]});let t=e;return t})(),Y4=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Qp=new v(""),Ak={provide:An,useExisting:kt(()=>Nk)},Nk=(()=>{let e=class e extends An{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new X,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Kp(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&ju(i,this,!1),Ms(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Yp(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ju(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Bu,10),y(Qp,8),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_t([Ak]),be,it]});let t=e;return t})(),Rk={provide:Ge,useExisting:kt(()=>nE)},nE=(()=>{let e=class e extends Ge{get submitted(){return ct(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=rn(()=>this._submittedReactive()),this._submittedReactive=Dn(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Uu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Ms(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){ju(n.control||null,n,!1),Ek(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this._submittedReactive.set(!0),tE(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Up(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Bp(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(ju(i||null,n),xk(o)&&(Ms(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);eE(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&_k(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zp(this.form,this),this._oldForm&&Uu(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&En("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([Rk]),be,it]});let t=e;return t})(),Ok={provide:Ge,useExisting:kt(()=>rE)},rE=(()=>{let e=class e extends Mk{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){oE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[_t([Ok]),be]});let t=e;return t})(),Fk={provide:Ge,useExisting:kt(()=>iE)},iE=(()=>{let e=class e extends Ge{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),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 zu(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){oE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[_t([Fk]),be]});let t=e;return t})();function oE(t){return!(t instanceof rE)&&!(t instanceof nE)&&!(t instanceof iE)}var kk={provide:An,useExisting:kt(()=>Pk)},Pk=(()=>{let e=class e extends An{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new X,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Kp(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Yp(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return zu(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(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10),y(Bu,10),y(Qp,8))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[_t([kk]),be,it]});let t=e;return t})();var sE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),Hp=class extends zi{constructor(e,r,n){super(Wp(r),qp(n,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,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){Xw(this,!1,e),e.forEach((n,i)=>{Qw(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{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,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_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 Lw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var K4=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,i=null){let o=this._reduceControls(n),s={};return Lw(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Gi(o,s)}record(n,i=null){let o=this._reduceControls(n);return new $p(o,i)}control(n,i,o){let s={};return this.useNonNullable?(Lw(i)?s=i:(s.validators=i,s.asyncValidators=o),new xs(n,O(b({},s),{nonNullable:!0}))):new xs(n,i,o)}array(n,i,o){let s=n.map(a=>this._createControl(a));return new Hp(s,i,o)}_reduceControls(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this._createControl(n[o])}),i}_createControl(n){if(n instanceof xs)return n;if(n instanceof zi)return n;if(Array.isArray(n)){let i=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(i,o,s)}else return this.control(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Q4=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Wi,useValue:n.callSetDisabledState??Hu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[sE]});let t=e;return t})(),X4=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Qp,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Wi,useValue:n.callSetDisabledState??Hu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[sE]});let t=e;return t})();var Jp;try{Jp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Jp=!1}var je=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?Vh(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||Jp)&&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(i){return new(i||e)(p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var qi,aE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function sG(){if(qi)return qi;if(typeof document!="object"||!document)return qi=new Set(aE),qi;let t=document.createElement("input");return qi=new Set(aE.filter(e=>(t.setAttribute("type",e),t.type===e))),qi}var Ss;function Lk(){if(Ss==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ss=!0}))}finally{Ss=Ss||!1}return Ss}function Zi(t){return Lk()?t:!!t.capture}var Fr;function aG(){if(Fr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Fr=!1,Fr;if("scrollBehavior"in document.documentElement.style)Fr=!0;else{let t=Element.prototype.scrollTo;t?Fr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Fr=!1}}return Fr}var Xp;function jk(){if(Xp==null){let t=typeof document<"u"?document.head:null;Xp=!!(t&&(t.createShadowRoot||t.attachShadow))}return Xp}function cE(t){if(jk()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Vk(){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 Nn(t){return t.composedPath?t.composedPath()[0]:t.target}function uE(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Wu(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Uk(t){return t!=null&&`${t}`!="false"}function Bk(t,e=0){return $k(t)?Number(t):e}function $k(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function em(t){return Array.isArray(t)?t:[t]}function lG(t){return t==null?"":typeof t=="string"?t:`${t}px`}function kr(t){return t instanceof ne?t.nativeElement:t}var Hk=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var lE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Hk]});let t=e;return t})();var dE=new Set,Pr,zk=(()=>{let e=class e{constructor(n,i){this._platform=n,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Wk}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&Gk(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(i){return new(i||e)(p(je),p(ko,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Gk(t,e){if(!dE.has(t))try{Pr||(Pr=document.createElement("style"),e&&Pr.setAttribute("nonce",e),Pr.setAttribute("type","text/css"),document.head.appendChild(Pr)),Pr.sheet&&(Pr.sheet.insertRule(`@media ${t} {body{ }}`,0),dE.add(t))}catch(r){console.error(r)}}function Wk(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var hE=(()=>{let e=class e{constructor(n,i){this._mediaMatcher=n,this._zone=i,this._queries=new Map,this._destroySubject=new B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return fE(em(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=fE(em(n)).map(a=>this._registerQuery(a).observable),s=dr(o);return s=zt(s.pipe(ge(1)),s.pipe(Jr(1),Kr(0))),s.pipe(C(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:l})=>{c.matches=c.matches||u,c.breakpoints[l]=u}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let i=this._mediaMatcher.matchMedia(n),s={observable:new N(a=>{let c=u=>this._zone.run(()=>a.next(u));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(po(i),C(({matches:a})=>({query:n,matches:a})),jn(this._destroySubject)),mql:i};return this._queries.set(n,s),s}};e.\u0275fac=function(i){return new(i||e)(p(zk),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fE(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var _G={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 yE=" ";function d1(t,e,r){let n=Ku(t,e);r=r.trim(),!n.some(i=>i.trim()===r)&&(n.push(r),t.setAttribute(e,n.join(yE)))}function f1(t,e,r){let n=Ku(t,e);r=r.trim();let i=n.filter(o=>o!==r);i.length?t.setAttribute(e,i.join(yE)):t.removeAttribute(e)}function Ku(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var DE="cdk-describedby-message",qu="cdk-describedby-host",rm=0,VG=(()=>{let e=class e{constructor(n,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${rm++}`,this._document=n,this._id=g(xr)+"-"+rm++}describe(n,i,o){if(!this._canBeDescribed(n,i))return;let s=tm(i,o);typeof i!="string"?(pE(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,i,o){if(!i||!this._isElementNode(n))return;let s=tm(i,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),typeof i=="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 n=this._document.querySelectorAll(`[${qu}="${this._id}"]`);for(let i=0;io.indexOf(DE)!=0);n.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(n,i){let o=this._messageRegistry.get(i);d1(n,"aria-describedby",o.messageElement.id),n.setAttribute(qu,this._id),o.referenceCount++}_removeMessageReference(n,i){let o=this._messageRegistry.get(i);o.referenceCount--,f1(n,"aria-describedby",o.messageElement.id),n.removeAttribute(qu)}_isElementDescribedByMessage(n,i){let o=Ku(n,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(n,i){if(!this._isElementNode(n))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),s=n.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(p(W),p(je))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tm(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function pE(t,e){t.id||(t.id=`${DE}-${e}-${rm++}`)}var Qu=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new B,this._typeaheadSubscription=ae.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new B,this.change=new B,e instanceof li?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Oc(e)&&(this._effectRef=qc(()=>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(ee(r=>this._pressedLetters.push(r)),Kr(e),le(()=>this._pressedLetters.length>0),C(()=>this._pressedLetters.join(""))).subscribe(r=>{let n=this._getItemsArray();for(let i=1;i!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){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(),n=typeof e=="number"?e:r.indexOf(e),i=r[n];this._activeItem=i??null,this._activeItemIndex=n}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 n=1;n<=r.length;n++){let i=(this._activeItemIndex+e*n+r.length)%r.length,o=r[i];if(!this._skipPredicateFn(o)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=r,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Oc(this._items)?this._items():this._items instanceof li?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},mE=class extends Qu{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},gE=class extends Qu{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 im(t){return t.buttons===0||t.detail===0}function om(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 h1=new v("cdk-input-modality-detector-options"),p1={ignoreKeys:[18,17,224,91,16]},_E=650,Yi=Zi({passive:!0,capture:!0}),m1=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,i,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new de(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Nn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<_E||(this._modality.next(im(a)?"keyboard":"mouse"),this._mostRecentTarget=Nn(a))},this._onTouchstart=a=>{if(om(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Nn(a)},this._options=b(b({},p1),s),this.modalityDetected=this._modality.pipe(Jr(1)),this.modalityChanged=this.modalityDetected.pipe(Qr()),n.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Yi),o.addEventListener("mousedown",this._onMousedown,Yi),o.addEventListener("touchstart",this._onTouchstart,Yi)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yi),document.removeEventListener("mousedown",this._onMousedown,Yi),document.removeEventListener("touchstart",this._onTouchstart,Yi))}};e.\u0275fac=function(i){return new(i||e)(p(je),p(P),p(W),p(h1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g1=new v("liveAnnouncerElement",{providedIn:"root",factory:v1});function v1(){return null}var b1=new v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),y1=0,UG=(()=>{let e=class e{constructor(n,i,o,s){this._ngZone=i,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...i){let o=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,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=n,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 n="cdk-live-announcer-element",i=this._document.getElementsByClassName(n),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(n,i,o,s,a){this._ngZone=n,this._platform=i,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 B,this._rootNodeFocusAndBlurListener=c=>{let u=Nn(c);for(let l=u;l;l=l.parentElement)c.type==="focus"?this._onFocus(c,l):this._onBlur(c,l)},this._document=s,this._detectionMode=a?.detectionMode||Yu.IMMEDIATE}monitor(n,i=!1){let o=kr(n);if(!this._platform.isBrowser||o.nodeType!==1)return x();let s=cE(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new B,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){let i=kr(n),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(n,i,o){let s=kr(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,u])=>this._originChanged(c,i,u)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Yu.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused",i==="touch"),n.classList.toggle("cdk-keyboard-focused",i==="keyboard"),n.classList.toggle("cdk-mouse-focused",i==="mouse"),n.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(n,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&i,this._detectionMode===Yu.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?_E:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,i){let o=this._elementInfo.get(i),s=Nn(n);!o||!o.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),o)}_onBlur(n,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(n,i){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(i))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let i=n.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zu)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(jn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,i,o){this._setClasses(n,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(n){let i=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&i.push([s,o])}),i}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let e=class e{constructor(n,i){this._platform=n,this._document=i,this._breakpointSubscription=g(hE).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Lr.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Lr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Lr.BLACK_ON_WHITE}return Lr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(nm,vE,bE),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Lr.BLACK_ON_WHITE?n.add(nm,vE):i===Lr.WHITE_ON_BLACK&&n.add(nm,bE)}}};e.\u0275fac=function(i){return new(i||e)(p(je),p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BG=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(p(sm))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[lE]});let t=e;return t})();var w1=new v("cdk-dir-doc",{providedIn:"root",factory:E1});function E1(){return g(W)}var I1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function C1(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?I1.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var XG=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new X,n){let i=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=C1(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(p(w1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var am=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();var S1=["*",[["mat-option"],["ng-container"]]],T1=["*","mat-option, ng-container"],A1=["text"],N1=[[["mat-icon"]],"*"],R1=["mat-icon","*"];function O1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",1),t&2){let r=Lc();Mi("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function F1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",3),t&2){let r=Lc();Mi("disabled",r.disabled)}}function k1(t,e){if(t&1&&(_n(0,"span",4),vh(1),wn()),t&2){let r=Lc();Ci(),Ho("(",r.group.label,")")}}var P1=["mat-internal-form-field",""],L1=["*"];var y5=(()=>{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})(),D5=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function j1(){return!0}var V1=new v("mat-sanity-checks",{providedIn:"root",factory:j1}),un=(()=>{let e=class e{constructor(n,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return uE()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(i){return new(i||e)(p(sm),p(V1,8),p(W))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[am,am]});let t=e;return t})();var EE=class{constructor(e,r,n,i,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=n,this._parentForm=i,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(i,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var _5=(()=>{let e=class e{isErrorState(n,i){return!!(n&&n.invalid&&(n.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xt=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}(xt||{}),lm=class{constructor(e,r,n,i=!1){this._renderer=e,this.element=r,this.config=n,this._animationForciblyDisabledThroughCss=i,this.state=xt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},IE=Zi({passive:!0,capture:!0}),dm=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=Nn(e);r&&this._events.get(e.type)?.forEach((n,i)=>{(i===r||i.contains(r))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,n,i){let o=this._events.get(r);if(o){let s=o.get(n);s?s.add(i):o.set(n,new Set([i]))}else this._events.set(r,new Map([[n,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,IE)})}removeHandler(e,r,n){let i=this._events.get(e);if(!i)return;let o=i.get(r);o&&(o.delete(n),o.size===0&&i.delete(r),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,IE)))}},CE={enterDuration:225,exitDuration:150},U1=800,xE=Zi({passive:!0,capture:!0}),ME=["mousedown","touchstart"],SE=["mouseup","mouseleave","touchend","touchcancel"],Ts=class Ts{constructor(e,r,n,i){this._target=e,this._ngZone=r,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=kr(n))}fadeInRipple(e,r,n={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=b(b({},CE),n.animation);n.centered&&(e=i.left+i.width/2,r=i.top+i.height/2);let s=n.radius||B1(e,r,i),a=e-i.left,c=r-i.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-s}px`,l.style.top=`${c-s}px`,l.style.height=`${s*2}px`,l.style.width=`${s*2}px`,n.color!=null&&(l.style.backgroundColor=n.color),l.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(l);let d=window.getComputedStyle(l),f=d.transitionProperty,h=d.transitionDuration,m=f==="none"||h==="0s"||h==="0s, 0s"||i.width===0&&i.height===0,_=new lm(this,l,n,m);l.style.transform="scale3d(1, 1, 1)",_.state=xt.FADING_IN,n.persistent||(this._mostRecentTransientRipple=_);let w=null;return!m&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let E=()=>{w&&(w.fallbackTimer=null),clearTimeout(q),this._finishRippleTransition(_)},k=()=>this._destroyRipple(_),q=setTimeout(k,u+100);l.addEventListener("transitionend",E),l.addEventListener("transitioncancel",k),w={onTransitionEnd:E,onTransitionCancel:k,fallbackTimer:q}}),this._activeRipples.set(_,w),(m||!u)&&this._finishRippleTransition(_),_}fadeOutRipple(e){if(e.state===xt.FADING_OUT||e.state===xt.HIDDEN)return;let r=e.element,n=b(b({},CE),e.config.animation);r.style.transitionDuration=`${n.exitDuration}ms`,r.style.opacity="0",e.state=xt.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.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=kr(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,ME.forEach(n=>{Ts._eventManager.addHandler(this._ngZone,n,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{SE.forEach(r=>{this._triggerElement.addEventListener(r,this,xE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===xt.FADING_IN?this._startFadeOutTransition(e):e.state===xt.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=xt.VISIBLE,!n&&(!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=xt.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=im(e),n=this._lastTouchStartEvent&&Date.now(){let r=e.state===xt.VISIBLE||e.config.terminateOnPointerUp&&e.state===xt.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(ME.forEach(r=>Ts._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(SE.forEach(r=>e.removeEventListener(r,this,xE)),this._pointerUpEventsRegistered=!1))}};Ts._eventManager=new dm;var fm=Ts;function B1(t,e,r){let n=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),i=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(n*n+i*i)}var RE=new v("mat-ripple-global-options"),OE=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,i,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new fm(this,i,n,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:b(b(b({},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(n,i=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,i,b(b({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(P),y(je),y(RE,8),y(Yn,8))},e.\u0275dir=G({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&we("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})(),pm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un,un]});let t=e;return t})(),$1=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&we("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:[at],decls:0,vars:0,template:function(i,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})(),H1=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un]});let t=e;return t})(),FE=new v("MAT_OPTION_PARENT_COMPONENT"),z1=0,kE=new v("MatOptgroup"),w5=(()=>{let e=class e{constructor(n){this.disabled=!1,this._labelId=`mat-optgroup-label-${z1++}`,this._inert=n?.inertGroups??!1}};e.\u0275fac=function(i){return new(i||e)(y(FE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,o){i&2&&Xe("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",Ee]},exportAs:["matOptgroup"],standalone:!0,features:[_t([{provide:kE,useExisting:e}]),st,at],ngContentSelectors:T1,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,o){i&1&&(tn(S1),_n(0,"span",0)(1,"span",1),vh(2),Le(3),wn()(),Le(4,1)),i&2&&(we("mdc-list-item--disabled",o.disabled),Mi("id",o._labelId),Ci(2),Ho("",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})(),G1=0,hm=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},E5=(()=>{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(n){this._disabled=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,i,o,s){this._element=n,this._changeDetectorRef=i,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${G1++}`,this.onSelectionChange=new X,this._stateChanges=new B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,i){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!Wu(n)&&(this._selectViaInteraction(),n.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 n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new hm(this,n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(wt),y(FE,8),y(kE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&MD(A1,7),i&2){let s;jc(s=Vc())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&En("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),i&2&&(mh("id",o.id),Xe("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),we("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",Ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[st,at],ngContentSelectors:R1,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(i,o){i&1&&(tn(N1),kc(0,O1,1,2,"mat-pseudo-checkbox",1),Le(1),_n(2,"span",2,0),Le(4,1),wn(),kc(5,F1,1,1,"mat-pseudo-checkbox",3)(6,k1,2,1,"span",4),Je(7,"div",5)),i&2&&(Pc(o.multiple?0:-1),Ci(5),Pc(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),Ci(),Pc(o.group&&o.group._inert?6:-1),Ci(),Mi("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[$1,OE],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 I5(t,e,r){if(r.length){let n=e.toArray(),i=r.toArray(),o=0;for(let s=0;sr+n?Math.max(0,t-n+e):r}var x5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[pm,un,H1]});let t=e;return t})(),TE={capture:!0},AE=["focus","mousedown","mouseenter","touchstart"],cm="mat-ripple-loader-uninitialized",um="mat-ripple-loader-class-name",NE="mat-ripple-loader-centered",Xu="mat-ripple-loader-disabled",PE=(()=>{let e=class e{constructor(){this._document=g(W,{optional:!0}),this._animationMode=g(Yn,{optional:!0}),this._globalRippleOptions=g(RE,{optional:!0}),this._platform=g(je),this._ngZone=g(P),this._hosts=new Map,this._onInteraction=n=>{let i=Nn(n);if(i instanceof HTMLElement){let o=i.closest(`[${cm}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let n of AE)this._document?.addEventListener(n,this._onInteraction,TE)})}ngOnDestroy(){let n=this._hosts.keys();for(let i of n)this.destroyRipple(i);for(let i of AE)this._document?.removeEventListener(i,this._onInteraction,TE)}configureRipple(n,i){n.setAttribute(cm,this._globalRippleOptions?.namespace??""),(i.className||!n.hasAttribute(um))&&n.setAttribute(um,i.className||""),i.centered&&n.setAttribute(NE,""),i.disabled&&n.setAttribute(Xu,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,i){let o=this._hosts.get(n);if(o){o.disabled=i;return}i?n.setAttribute(Xu,""):n.removeAttribute(Xu)}_createRipple(n){if(!this._document)return;let i=this._hosts.get(n);if(i)return i;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute(um)),n.append(o);let s=new OE(new ne(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(NE),s.disabled=n.hasAttribute(Xu),this.attachRipple(n,s),s}attachRipple(n,i){n.removeAttribute(cm),this._hosts.set(n,i)}destroyRipple(n){let i=this._hosts.get(n);i&&(i.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),M5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&we("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[at],attrs:P1,ngContentSelectors:L1,decls:1,vars:0,template:function(i,o){i&1&&(tn(),Le(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 LE=["mat-button",""],jE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],VE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],W1='.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)}',UE=".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 q1=["mat-icon-button",""],Z1=["*"];var Y1=new v("MAT_BUTTON_CONFIG");var K1=[{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"]}],mm=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,i,o,s){this._elementRef=n,this._platform=i,this._ngZone=o,this._animationMode=s,this._focusMonitor=g(wE),this._rippleLoader=g(PE),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=g(Y1,{optional:!0}),c=n.nativeElement,u=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:d}of K1)c.hasAttribute(l)&&u.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",i){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,i):this._elementRef.nativeElement.focus(i)}_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(i){Lo()},e.\u0275dir=G({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ee],disabled:[2,"disabled","disabled",Ee],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ee]},features:[st]});let t=e;return t})();var Q1=(()=>{let e=class e extends mm{constructor(n,i,o,s){super(n,i,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(i){Lo()},e.\u0275dir=G({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",n=>n==null?void 0:Eh(n)]},features:[st,be]});let t=e;return t})(),B5=(()=>{let e=class e extends mm{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("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:[be,at],attrs:LE,ngContentSelectors:VE,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(i,o){i&1&&(tn(jE),Je(0,"span",0),Le(1),_n(2,"span",1),Le(3,1),wn(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("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})(),$5=(()=>{let e=class e extends Q1{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),Si(o.color?"mat-"+o.color:""),we("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:[be,at],attrs:LE,ngContentSelectors:VE,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(i,o){i&1&&(tn(jE),Je(0,"span",0),Le(1),_n(2,"span",1),Le(3,1),wn(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[W1,UE],encapsulation:2,changeDetection:0});let t=e;return t})();var H5=(()=>{let e=class e extends mm{constructor(n,i,o,s){super(n,i,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("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:[be,at],attrs:q1,ngContentSelectors:Z1,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(i,o){i&1&&(tn(),Je(0,"span",0),Le(1),Je(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}',UE],encapsulation:2,changeDetection:0});let t=e;return t})();var z5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un,pm,un]});let t=e;return t})();var X1=["*"],Ju;function J1(){if(Ju===void 0&&(Ju=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(Ju=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Ju}function As(t){return J1()?.createHTML(t)||t}function BE(t){return Error(`Unable to find icon with the name "${t}"`)}function eP(){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 $E(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function HE(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Rn=class{constructor(e,r,n){this.url=e,this.svgText=r,this.options=n}},tP=(()=>{let e=class e{constructor(n,i,o,s){this._httpClient=n,this._sanitizer=i,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(n,i,o){return this.addSvgIconInNamespace("",n,i,o)}addSvgIconLiteral(n,i,o){return this.addSvgIconLiteralInNamespace("",n,i,o)}addSvgIconInNamespace(n,i,o,s){return this._addSvgIconConfig(n,i,new Rn(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,i,o,s){let a=this._sanitizer.sanitize(Pe.HTML,o);if(!a)throw HE(o);let c=As(a);return this._addSvgIconConfig(n,i,new Rn("",c,s))}addSvgIconSet(n,i){return this.addSvgIconSetInNamespace("",n,i)}addSvgIconSetLiteral(n,i){return this.addSvgIconSetLiteralInNamespace("",n,i)}addSvgIconSetInNamespace(n,i,o){return this._addSvgIconSetConfig(n,new Rn(i,null,o))}addSvgIconSetLiteralInNamespace(n,i,o){let s=this._sanitizer.sanitize(Pe.HTML,i);if(!s)throw HE(i);let a=As(s);return this._addSvgIconSetConfig(n,new Rn("",a,o))}registerFontClassAlias(n,i=n){return this._fontCssClassesByAlias.set(n,i),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let i=this._sanitizer.sanitize(Pe.RESOURCE_URL,n);if(!i)throw $E(n);let o=this._cachedIconsByUrl.get(i);return o?x(el(o)):this._loadSvgIconFromConfig(new Rn(n,null)).pipe(ee(s=>this._cachedIconsByUrl.set(i,s)),C(s=>el(s)))}getNamedSvgIcon(n,i=""){let o=zE(i,n),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(n,a):$t(BE(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?x(el(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(C(i=>el(i)))}_getSvgFromIconSetConfigs(n,i){let o=this._extractIconWithNameFromAnySet(n,i);if(o)return x(o);let s=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Re(c=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(Pe.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(l)),x(null)})));return ao(s).pipe(C(()=>{let a=this._extractIconWithNameFromAnySet(n,i);if(!a)throw BE(n);return a}))}_extractIconWithNameFromAnySet(n,i){for(let o=i.length-1;o>=0;o--){let s=i[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,n,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(ee(i=>n.svgText=i),C(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?x(null):this._fetchIcon(n).pipe(ee(i=>n.svgText=i))}_extractSvgIconFromSet(n,i,o){let s=n.querySelector(`[id="${i}"]`);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(As(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(n){let i=this._document.createElement("DIV");i.innerHTML=n;let o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){let i=this._svgElementFromString(As("")),o=n.attributes;for(let s=0;sAs(l)),ht(()=>this._inProgressUrlFetches.delete(a)),ho());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(n,i,o){return this._svgIconConfigs.set(zE(n,i),o),this}_addSvgIconSetConfig(n,i){let o=this._iconSetConfigs.get(n);return o?o.push(i):this._iconSetConfigs.set(n,[i]),this}_svgElementFromConfig(n){if(!n.svgElement){let i=this._svgElementFromString(n.svgText);this._setSvgAttributes(i,n.options),n.svgElement=i}return n.svgElement}_getIconConfigFromResolvers(n,i){for(let o=0;oe?e.pathname+e.search:""}}var GE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],sP=GE.map(t=>`[${t}]`).join(", "),aP=/^url\(['"]?#(.*?)['"]?\)$/,oW=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let i=this._cleanupFontValue(n);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let i=this._cleanupFontValue(n);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(n,i,o,s,a,c){this._elementRef=n,this._iconRegistry=i,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ae.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let i=n.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,i=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let o=n.childNodes[i];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),i.forEach(o=>n.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let i=this._elementsWithExternalReferences;i&&i.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let i=n.querySelectorAll(sP),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=i[s],u=c.getAttribute(a),l=u?u.match(aP):null;if(l){let d=o.get(c);d||(d=[],o.set(c,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[i,o]=this._splitIconName(n);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(ge(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${i}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(tP),Fo("aria-hidden"),y(iP),y(Te),y(rP,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(Xe("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),Si(o.color?"mat-"+o.color:""),we("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",Ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[st,at],ngContentSelectors:X1,decls:1,vars:0,template:function(i,o){i&1&&(tn(),Le(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})(),sW=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un,un]});let t=e;return t})();var Mt=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}(Mt||{}),cW="*";function uW(t,e){return{type:Mt.Trigger,name:t,definitions:e,options:{}}}function lW(t,e=null){return{type:Mt.Animate,styles:e,timings:t}}function dW(t,e=null){return{type:Mt.Group,steps:t,options:e}}function fW(t,e=null){return{type:Mt.Sequence,steps:t,options:e}}function hW(t){return{type:Mt.Style,styles:t,offset:null}}function pW(t,e,r){return{type:Mt.State,name:t,styles:e,options:r}}function mW(t){return{type:Mt.Keyframes,steps:t}}function gW(t,e,r=null){return{type:Mt.Transition,expr:t,animation:e,options:r}}function vW(t=null){return{type:Mt.AnimateChild,options:t}}function bW(t,e,r=null){return{type:Mt.Query,selector:t,animation:e,options:r}}function yW(t,e){return{type:Mt.Stagger,timings:t,animation:e}}var WE=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(n=>n()),r.length=0}},qE=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,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==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(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n: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(n=>n()),r.length=0}},DW="!";function gm(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Ao(gm);let n=r?e?.injector?.get(Cr)??g(Cr):null,i=cP(e?.equal),o;e?.requireSync?o=Dn({kind:0},{equal:i}):o=Dn({kind:1,value:e?.initialValue},{equal:i});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 n?.onDestroy(s.unsubscribe.bind(s)),rn(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new I(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:e?.equal})}function cP(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var Dm={};function Im(t,e){if(Dm[t]=(Dm[t]||0)+1,typeof e=="function")return vm(t,(...n)=>O(b({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return vm(t,()=>({type:t}));case"props":return vm(t,n=>O(b({},n),{type:t}));default:throw new Error("Unexpected config.")}}function Ki(){return{_as:"props",_p:void 0}}function vm(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}function uP(t){return t.charAt(0).toUpperCase()+t.substring(1)}function lP(t){return t.charAt(0).toLowerCase()+t.substring(1)}function u0(t){let{source:e,events:r}=t;return Object.keys(r).reduce((n,i)=>O(b({},n),{[dP(i)]:Im(fP(e,i),r[i])}),{})}function Cm(){return Ki()}function dP(t){return t.trim().split(" ").map((e,r)=>r===0?lP(e):uP(e)).join("")}function fP(t,e){return`[${t}] ${e}`}var l0="@ngrx/store/init",Qi=(()=>{let e=class e extends de{constructor(){super({type:l0})}next(n){if(typeof n=="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 n>"u")throw new TypeError("Actions must be objects");if(typeof n.type>"u")throw new TypeError("Actions must have a type property");super.next(n)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),mP=[Qi],h0=new v("@ngrx/store Internal Root Guard"),KE=new v("@ngrx/store Internal Initial State"),Mm=new v("@ngrx/store Initial State"),p0=new v("@ngrx/store Reducer Factory"),QE=new v("@ngrx/store Internal Reducer Factory Provider"),m0=new v("@ngrx/store Initial Reducers"),ym=new v("@ngrx/store Internal Initial Reducers"),XE=new v("@ngrx/store Store Features"),JE=new v("@ngrx/store Internal Store Reducers"),Dm=new v("@ngrx/store Internal Feature Reducers"),e0=new v("@ngrx/store Internal Feature Configs"),g0=new v("@ngrx/store Internal Store Features"),t0=new v("@ngrx/store Internal Feature Reducers Token"),v0=new v("@ngrx/store Feature Reducers"),n0=new v("@ngrx/store User Provided Meta Reducers"),nl=new v("@ngrx/store Meta Reducers"),r0=new v("@ngrx/store Internal Resolved Meta Reducers"),i0=new v("@ngrx/store User Runtime Checks Config"),o0=new v("@ngrx/store Internal User Runtime Checks Config"),Ns=new v("@ngrx/store Internal Runtime Checks"),Sm=new v("@ngrx/store Check if Action types are unique"),gP=new v("@ngrx/store Root Store Provider"),vP=new v("@ngrx/store Feature State Provider");function Tm(t,e={}){let r=Object.keys(t),n={};for(let o=0;or!==e).reduce((r,n)=>Object.assign(r,{[n]:t[n]}),{})}function b0(...t){return function(e){if(t.length===0)return e;let r=t[t.length-1];return t.slice(0,-1).reduceRight((i,o)=>o(i),r(e))}}function y0(t,e){return Array.isArray(e)&&e.length>0&&(t=b0.apply(null,[...e,t])),(r,n)=>{let i=t(r);return(o,s)=>(o=o===void 0?n:o,i(o,s))}}function yP(t){let e=Array.isArray(t)&&t.length>0?b0(...t):r=>r;return(r,n)=>(r=e(r),(i,o)=>(i=i===void 0?n:i,r(i,o)))}var Rs=class extends N{},rl=class extends Qi{},DP="@ngrx/store/update-reducers",il=(()=>{let e=class e extends de{get currentReducers(){return this.reducers}constructor(n,i,o,s){super(s(o,i)),this.dispatcher=n,this.initialState=i,this.reducers=o,this.reducerFactory=s}addFeature(n){this.addFeatures([n])}addFeatures(n){let i=n.reduce((o,{reducers:s,reducerFactory:a,metaReducers:c,initialState:u,key:l})=>{let d=typeof s=="function"?yP(c)(s,u):y0(a,c)(s,u);return o[l]=d,o},{});this.addReducers(i)}removeFeature(n){this.removeFeatures([n])}removeFeatures(n){this.removeReducers(n.map(i=>i.key))}addReducer(n,i){this.addReducers({[n]:i})}addReducers(n){this.reducers=b(b({},this.reducers),n),this.updateReducers(Object.keys(n))}removeReducer(n){this.removeReducers([n])}removeReducers(n){n.forEach(i=>{this.reducers=bP(this.reducers,i)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:DP,features:n})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(i){return new(i||e)(p(rl),p(Mm),p(m0),p(p0))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),_P=[il,{provide:Rs,useExisting:il},{provide:rl,useExisting:Qi}],Os=(()=>{let e=class e extends B{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),wP=[Os],ol=class extends N{},s0=(()=>{let e=class e extends de{constructor(n,i,o,s){super(s);let c=n.pipe(dr(Rl)).pipe(mo(i)),u={state:s},l=c.pipe(fo(EP,u));this.stateSubscription=l.subscribe(({state:d,action:f})=>{this.next(d),o.next(f)}),this.state=vm(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=f0,e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(Mm))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function EP(t={state:void 0},[e,r]){let{state:n}=t;return{state:r(n,e),action:e}}var IP=[s0,{provide:ol,useExisting:s0}],Ut=(()=>{let e=class e extends N{constructor(n,i,o){super(),this.actionsObserver=i,this.reducerManager=o,this.source=n,this.state=n.state}select(n,...i){return xP.call(null,n,...i)(this)}selectSignal(n,i){return on(()=>n(this.state()),i)}lift(n){let i=new e(this,this.actionsObserver,this.reducerManager);return i.operator=n,i}dispatch(n){this.actionsObserver.next(n)}next(n){this.actionsObserver.next(n)}error(n){this.actionsObserver.error(n)}complete(){this.actionsObserver.complete()}addReducer(n,i){this.reducerManager.addReducer(n,i)}removeReducer(n){this.reducerManager.removeReducer(n)}};e.\u0275fac=function(i){return new(i||e)(p(ol),p(Qi),p(il))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),CP=[Ut];function xP(t,e,...r){return function(i){let o;if(typeof t=="string"){let s=[e,...r].filter(Boolean);o=i.pipe(Bl(t,...s))}else if(typeof t=="function")o=i.pipe(C(s=>t(s,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return o.pipe(Qr())}}var Am="https://ngrx.io/guide/store/configuration/runtime-checks";function a0(t){return t===void 0}function c0(t){return t===null}function D0(t){return Array.isArray(t)}function MP(t){return typeof t=="string"}function SP(t){return typeof t=="boolean"}function TP(t){return typeof t=="number"}function _0(t){return typeof t=="object"&&t!==null}function AP(t){return _0(t)&&!D0(t)}function NP(t){if(!AP(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function wm(t){return typeof t=="function"}function RP(t){return wm(t)&&t.hasOwnProperty("\u0275cmp")}function OP(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var FP=!1;function kP(){return FP}function u0(t,e){return t===e}function PP(t,e,r){for(let n=0;ns(t));return n.memoized.apply(null,o)}let i=e.map(o=>o(t,r));return n.memoized.apply(null,[...i,r])}function jP(t,e={stateFn:LP}){return function(...r){let n=r;if(Array.isArray(n[0])){let[l,...d]=n;n=[...l,...d]}else n.length===1&&VP(n[0])&&(n=UP(n[0]));let i=n.slice(0,n.length-1),o=n[n.length-1],s=i.filter(l=>l.release&&typeof l.release=="function"),a=t(function(...l){return o.apply(null,l)}),c=w0(function(l,d){return e.stateFn.apply(null,[l,i,d,a])});function u(){c.reset(),a.reset(),s.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function E0(t){return sl(e=>{let r=e[t];return!kP()&&wh()&&!(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 VP(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function UP(t){let e=Object.values(t),r=Object.keys(t),n=(...i)=>r.reduce((o,s,a)=>O(b({},o),{[s]:i[a]}),{});return[...e,n]}function BP(t){return t instanceof v?g(t):t}function $P(t,e){return e.map((r,n)=>{if(t[n]instanceof v){let i=g(t[n]);return{key:r.key,reducerFactory:i.reducerFactory?i.reducerFactory:Tm,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return r})}function HP(t){return t.map(e=>e instanceof v?g(e):e)}function I0(t){return typeof t=="function"?t():t}function zP(t,e){return t.concat(e)}function GP(){if(g(Ut,{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 WP(t,e){return function(r,n){let i=e.action(n)?Em(n):n,o=t(r,i);return e.state()?Em(o):o}}function Em(t){Object.freeze(t);let e=wm(t);return Object.getOwnPropertyNames(t).forEach(r=>{if(!r.startsWith("\u0275")&&OP(t,r)&&(!e||r!=="caller"&&r!=="callee"&&r!=="arguments")){let n=t[r];(_0(n)||wm(n))&&!Object.isFrozen(n)&&Em(n)}}),t}function qP(t,e){return function(r,n){if(e.action(n)){let o=Im(n);l0(o,"action")}let i=t(r,n);if(e.state()){let o=Im(i);l0(o,"state")}return i}}function Im(t,e=[]){return(a0(t)||c0(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;let o=t[i];return RP(o)?n:a0(o)||c0(o)||TP(o)||SP(o)||MP(o)||D0(o)?!1:NP(o)?Im(o,[...e,i]):{path:[...e,i],value:o}},!1)}function l0(t,e){if(t===!1)return;let r=t.path.join("."),n=new Error(`Detected unserializable ${e} at "${r}". ${Am}#strict${e}serializability`);throw n.value=t.value,n.unserializablePath=r,n}function ZP(t,e){return function(r,n){if(e.action(n)&&!P.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${Am}#strictactionwithinngzone`);return t(r,n)}}function YP(t){return wh()?b({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 KP({strictActionSerializability:t,strictStateSerializability:e}){return r=>t||e?qP(r,{action:n=>t&&!Nm(n),state:()=>e}):r}function QP({strictActionImmutability:t,strictStateImmutability:e}){return r=>t||e?WP(r,{action:n=>t&&!Nm(n),state:()=>e}):r}function Nm(t){return t.type.startsWith("@ngrx")}function XP({strictActionWithinNgZone:t}){return e=>t?ZP(e,{action:r=>t&&!Nm(r)}):e}function JP(t){return[{provide:o0,useValue:t},{provide:i0,useFactory:eL,deps:[o0]},{provide:Ns,deps:[i0],useFactory:YP},{provide:nl,multi:!0,deps:[Ns],useFactory:QP},{provide:nl,multi:!0,deps:[Ns],useFactory:KP},{provide:nl,multi:!0,deps:[Ns],useFactory:XP}]}function C0(){return[{provide:Sm,multi:!0,deps:[Ns],useFactory:tL}]}function eL(t){return t}function tL(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(_m).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(", ")}. ${Am}#strictactiontypeuniqueness`)}function nL(t={},e={}){return[{provide:h0,useFactory:GP},{provide:KE,useValue:e.initialState},{provide:Mm,useFactory:I0,deps:[KE]},{provide:ym,useValue:t},{provide:JE,useExisting:t instanceof v?t:ym},{provide:m0,deps:[ym,[new xf(JE)]],useFactory:BP},{provide:n0,useValue:e.metaReducers?e.metaReducers:[]},{provide:r0,deps:[nl,n0],useFactory:zP},{provide:QE,useValue:e.reducerFactory?e.reducerFactory:Tm},{provide:p0,deps:[QE,r0],useFactory:y0},mP,_P,wP,IP,CP,JP(e.runtimeChecks),C0()]}function rL(t,e,r={}){return[{provide:e0,multi:!0,useValue:t instanceof Object?{}:r},{provide:XE,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(r instanceof v)&&r.reducerFactory?r.reducerFactory:Tm,metaReducers:!(r instanceof v)&&r.metaReducers?r.metaReducers:[],initialState:!(r instanceof v)&&r.initialState?r.initialState:void 0}},{provide:g0,deps:[e0,XE],useFactory:$P},{provide:Dm,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:t0,multi:!0,useExisting:e instanceof v?e:Dm},{provide:v0,multi:!0,deps:[Dm,[new xf(t0)]],useFactory:HP},C0()]}var Fs=(()=>{let e=class e{constructor(n,i,o,s,a,c){}};e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(Ut),p(h0,8),p(Sm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),al=(()=>{let e=class e{constructor(n,i,o,s,a){this.features=n,this.featureReducers=i,this.reducerManager=o;let c=n.map((u,l)=>{let f=i.shift()[l];return O(b({},u),{reducers:f,initialState:I0(u.initialState)})});o.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(i){return new(i||e)(p(g0),p(v0),p(il),p(Fs),p(Sm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),LW=(()=>{let e=class e{static forRoot(n,i){return{ngModule:Fs,providers:[...nL(n,i)]}}static forFeature(n,i,o={}){return{ngModule:al,providers:[...rL(n,i,o)]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function ks(...t){let e=t.pop(),r=t.map(n=>n.type);return{reducer:e,types:r}}function x0(t,...e){let r=new Map;for(let n of e)for(let i of n.types){let o=r.get(i);if(o){let s=(a,c)=>n.reducer(o(a,c),c);r.set(i,s)}else r.set(i,n.reducer)}return function(n=t,i){let o=r.get(i.type);return o?o(n,i):n}}var Om={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"},MULTI_MODAL:{ROOT:"multi-modal"},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 et=d0({source:"[Core -> Auth]",events:{Login:Ki(),"Login Success":Ki(),"Login Failure":Ki(),Logout:xm(),"Logout Success":xm(),"Logout Failure":Ki()}});var iL={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},ul="__@ngrx/effects_create__";function Ps(t,e={}){let r=e.functional?t:t(),n=b(b({},iL),e);return Object.defineProperty(r,ul,{value:n}),r}function oL(t){return Object.getOwnPropertyNames(t).filter(n=>t[n]&&t[n].hasOwnProperty(ul)?t[n][ul].hasOwnProperty("dispatch"):!1).map(n=>{let i=t[n][ul];return b({propertyName:n},i)})}function sL(t){return oL(t)}function A0(t){return Object.getPrototypeOf(t)}function aL(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function N0(t){return typeof t=="function"}function M0(t){return t.filter(N0)}function cL(t){return t instanceof v||N0(t)}function uL(t,e,r){let n=A0(t),o=!!n&&n.constructor.name!=="Object"?n.constructor.name:null,s=sL(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof t[a]=="function"?t[a]():t[a],d=u?r(l,e):l;return c===!1?d.pipe(uo()):d.pipe(Ul()).pipe(C(h=>({effect:t[a],notification:h,propertyName:a,sourceName:o,sourceInstance:t})))});return va(...s)}var lL=10;function R0(t,e,r=lL){return t.pipe(Re(n=>(e&&e.handleError(n),r<=1?t:R0(t,e,r-1))))}var O0=(()=>{let e=class e extends N{constructor(n){super(),n&&(this.source=n)}lift(n){let i=new e;return i.source=this,i.operator=n,i}};e.\u0275fac=function(i){return new(i||e)(p(Os))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ls(...t){return le(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var F0=new v("@ngrx/effects Internal Root Guard"),cl=new v("@ngrx/effects User Provided Effects"),Fm=new v("@ngrx/effects Internal Root Effects"),k0=new v("@ngrx/effects Internal Root Effects Instances"),S0=new v("@ngrx/effects Internal Feature Effects"),P0=new v("@ngrx/effects Internal Feature Effects Instance Groups"),dL=new v("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>R0}),L0="@ngrx/effects/init",KW=Cm(L0);function fL(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!hL(r)&&e.handleError(new Error(`Effect ${pL(t)} dispatched an invalid action: ${mL(r)}`))}}function hL(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function pL({propertyName:t,sourceInstance:e,sourceName:r}){let n=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${n?"()":""}"`:`"${String(t)}()"`}function mL(t){try{return JSON.stringify(t)}catch{return t}}var gL="ngrxOnIdentifyEffects";function vL(t){return km(t,gL)}var bL="ngrxOnRunEffects";function yL(t){return km(t,bL)}var DL="ngrxOnInitEffects";function _L(t){return km(t,DL)}function km(t,e){return t&&e in t&&typeof t[e]=="function"}var j0=(()=>{let e=class e extends B{constructor(n,i){super(),this.errorHandler=n,this.effectsErrorHandler=i}addEffects(n){this.next(n)}toActions(){return this.pipe(Da(n=>aL(n)?A0(n):n),Q(n=>n.pipe(Da(wL))),Q(n=>{let i=n.pipe(ya(s=>EL(this.errorHandler,this.effectsErrorHandler)(s)),C(s=>(fL(s,this.errorHandler),s.notification)),le(s=>s.kind==="N"&&s.value!=null),jl()),o=n.pipe(ge(1),le(_L),C(s=>s.ngrxOnInitEffects()));return va(i,o)}))}};e.\u0275fac=function(i){return new(i||e)(p(Te),p(dL))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function wL(t){return vL(t)?t.ngrxOnIdentifyEffects():""}function EL(t,e){return r=>{let n=uL(r,t,e);return yL(r)?r.ngrxOnRunEffects(n):n}}var V0=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(n,i){this.effectSources=n,this.store=i,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(i){return new(i||e)(p(j0),p(Ut))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),U0=(()=>{let e=class e{constructor(n,i,o,s,a,c,u){this.sources=n,i.start();for(let l of s)n.addEffects(l);o.dispatch({type:L0})}addEffects(n){this.sources.addEffects(n)}};e.\u0275fac=function(i){return new(i||e)(p(j0),p(V0),p(Ut),p(k0),p(Fs,8),p(al,8),p(F0,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),IL=(()=>{let e=class e{constructor(n,i,o,s){let a=i.flat();for(let c of a)n.addEffects(c)}};e.\u0275fac=function(i){return new(i||e)(p(U0),p(P0),p(Fs,8),p(al,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),QW=(()=>{let e=class e{static forFeature(...n){let i=n.flat(),o=M0(i);return{ngModule:IL,providers:[o,{provide:S0,multi:!0,useValue:i},{provide:cl,multi:!0,useValue:[]},{provide:P0,multi:!0,useFactory:T0,deps:[S0,cl]}]}}static forRoot(...n){let i=n.flat(),o=M0(i);return{ngModule:U0,providers:[o,{provide:Fm,useValue:[i]},{provide:F0,useFactory:CL},{provide:cl,multi:!0,useValue:[]},{provide:k0,useFactory:T0,deps:[Fm,cl]}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function T0(t,e){let r=[];for(let n of t)r.push(...n);for(let n of e)r.push(...n);return r.map(n=>cL(n)?g(n):n)}function CL(){let t=g(V0,{optional:!0,skipSelf:!0}),e=g(Fm,{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 Pm={production:!0,apiUrl:"rest",backendBaseUrl:"http://localhost:3000",websocketUrl:"ws://localhost:3000"};var js=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,n,i,o){this.mockDelay=0,this.options={},this.method=e,this.params=n,this.options=i||{},o&&(this.mock=o),this.url="",this.mock?this.url=`/mock/${r}`:this.url=`${Pm.backendBaseUrl}/${Pm.apiUrl}/${r}`}},B0=class extends js{constructor(e,r,n,i=!0){let o=new an;r&&(o=r),super("GET",e,o,n,i)}},ll=class extends js{constructor(e,r,n=!0){super("POST",e,void 0,void 0,n),this.body=r}},dl=class extends js{constructor(e,r=!0){super("PUT",e,void 0,void 0,r)}};var fl=class extends ll{constructor(e){super("login/authenticate",b({},e)),this.mock&&(this.url+="/post-response-body-200.json")}};var hl=class extends dl{constructor(){super("user/logout"),this.mock&&(this.url+="/put-response-body-200.json")}};var $0=new v("CLIENT");var Lm=E0("core");var pl=sl(Lm,t=>t.auth.isAuthenticated),H0=sl(Lm,t=>t.auth.user);var Eq=(()=>{let e=class e{constructor(n,i,o,s){this.apiClient=n,this.actions$=i,this.store=o,this.router=s,this.login$=Ps(()=>this.actions$.pipe(Ls(et.login),mo(this.store.select(pl)),le(([a,c])=>!c),Q(([a,c])=>this.apiClient.serviceCall(new fl({email:a.email,password:a.password})).pipe(C(u=>et.loginSuccess({user:u})),Re(u=>[et.loginFailure({error:u})]))))),this.loginRedirect$=Ps(()=>this.actions$.pipe(Ls(et.loginSuccess),ee(()=>this.router.navigate([`${Om.MODE_SELECT.ROOT}`]))),{dispatch:!1}),this.logout$=Ps(()=>this.actions$.pipe(Ls(et.logout),Q(()=>this.apiClient.serviceCall(new hl).pipe(C(()=>et.logoutSuccess()),Re(a=>[et.logoutFailure({error:a})]))))),this.logoutRedirect$=Ps(()=>this.actions$.pipe(Ls(et.logoutSuccess),ee(()=>this.router.navigate([`${Om.AUTH.ROOT}`]))),{dispatch:!1})}};e.\u0275fac=function(i){return new(i||e)(p($0),p(O0),p(Ut),p(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var ML={isAuthenticated:!1,user:{},error:null},Mq=x0(ML,ks(et.loginSuccess,(t,{user:e})=>O(b({},t),{isAuthenticated:!0,user:b({},e),error:null})),ks(et.loginFailure,(t,{error:e})=>O(b({},t),{error:e})),ks(et.logoutSuccess,()=>({isAuthenticated:!1,user:{},token:null,error:null})),ks(et.logoutFailure,(t,{error:e})=>O(b({},t),{error:e})));var Lq=(()=>{let e=class e{constructor(n){this.store=n,this.isAuthenticated$=this.store.select(pl),this.user$=this.store.select(H0)}dispatch(n){this.store.dispatch(n)}};e.\u0275fac=function(i){return new(i||e)(p(Ut))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();export{b as a,O as b,Um as c,SL as d,TL as e,Vr as f,ae as g,N as h,Gr as i,B as j,de as k,ro as l,pI as m,Rl as n,xe as o,AV as p,dr as q,re as r,x as s,Ht as t,kl as u,wI as v,II as w,C as x,fr as y,Q as z,so as A,Pl as B,co as C,va as D,le as E,UI as F,Re as G,Wt as H,Kr as I,ge as J,Rg as K,Qr as L,ht as M,fo as N,ho as O,HI as P,Jr as Q,po as R,Ve as S,Vn as T,zI as U,ee as V,mo as W,I as X,ye as Y,kt as Z,D as _,H as $,v as aa,XI as ba,p as ca,g as da,yi as ea,Mo as fa,hn as ga,nt as ha,z as ia,G as ja,pc as ka,yn as la,RC as ma,Fe as na,it as oa,jz as pa,Vz as qa,Uz as ra,Bz as sa,Yn as ta,Fo as ua,ke as va,Te as wa,ne as xa,X as ya,li as za,$z as Aa,Kn as Ba,Hz as Ca,zz as Da,Ci as Ea,y as Fa,bn as Ga,pi as Ha,mi as Ia,tn as Ja,P as Ka,hT as La,Bo as Ma,Pt as Na,be as Oa,st as Pa,kc as Qa,Xe as Ra,Mi as Sa,pD as Ta,we as Ua,qz as Va,Si as Wa,Zz as Xa,Pc as Ya,Yz as Za,Kz as _a,Qz as $a,wn as ab,En as bb,Je as cb,ED as db,ID as eb,MA as fb,Xz as gb,gh as hb,AA as ib,In as jb,LA as kb,Lc as lb,nn as mb,Le as nb,BA as ob,MD as pb,SD as qb,jc as rb,Vc as sb,Jz as tb,bh as ub,GA as vb,Ho as wb,WA as xb,e3 as yb,qA as zb,_t as Ab,at as Bb,t3 as Cb,n3 as Db,r3 as Eb,i3 as Fb,o3 as Gb,s3 as Hb,a3 as Ib,rn as Jb,wh as Kb,wt as Lb,Eh as Mb,Ee as Nb,Ih as Ob,ct as Pb,W as Qb,Ai as Rb,M3 as Sb,S3 as Tb,T3 as Ub,r_ as Vb,A3 as Wb,N3 as Xb,R3 as Yb,O3 as Zb,F3 as _b,k3 as $b,P3 as ac,o_ as bc,cn as cc,Wh as dc,pR as ec,Z3 as fc,Y3 as gc,A_ as hc,l4 as ic,d4 as jc,f4 as kc,Vt as lc,rr as mc,NO as nc,Ct as oc,Z_ as pc,A4 as qc,N4 as rc,R4 as sc,Mt as tc,fW as uc,hW as vc,pW as wc,mW as xc,gW as yc,vW as zc,bW as Ac,yW as Bc,DW as Cc,_W as Dc,wW as Ec,EW as Fc,ZE as Gc,YE as Hc,IW as Ic,vm as Jc,Ki as Kc,d0 as Lc,xm as Mc,f0 as Nc,Qi as Oc,Mm as Pc,Rs as Qc,rl as Rc,DP as Sc,Os as Tc,ol as Uc,Ut as Vc,sl as Wc,E0 as Xc,LW as Yc,ks as Zc,x0 as _c,Ps as $c,O0 as ad,Ls as bd,QW as cd,Om as dd,Lm as ed,$k as fd,Hk as gd,zk as hd,tm as id,pG as jd,kr as kd,je as ld,lG as md,Zi as nd,dG as od,Bk as pd,Rn as qd,dE as rd,qu as sd,fE as td,mE as ud,CG as vd,h1 as wd,p1 as xd,HG as yd,vE as zd,bE as Ad,om as Bd,sm as Cd,zG as Dd,IE as Ed,GG as Fd,n5 as Gd,cm as Hd,E5 as Id,I5 as Jd,ln as Kd,CE as Ld,C5 as Md,FE as Nd,kE as Od,mm as Pd,z1 as Qd,PE as Rd,LE as Sd,x5 as Td,M5 as Ud,S5 as Vd,T5 as Wd,A5 as Xd,jE as Yd,N5 as Zd,$u as _d,Bw as $d,Rr as ae,Rw as be,Ge as ce,Nn as de,K4 as ee,Q4 as fe,Gi as ge,Mk as he,xs as ie,Nk as je,J4 as ke,Ok as le,iE as me,oE as ne,sE as oe,jk as pe,zp as qe,eG as re,tG as se,nG as te,G5 as ue,W5 as ve,q5 as we,Z5 as xe,rP as ye,uW as ze,lW as Ae,et as Be,Pm as Ce,B0 as De,ll as Ee,$0 as Fe,Eq as Ge,Mq as He,Lq as Ie}; + before dispatching the action. For example, someAction should be someAction().`);if(typeof n>"u")throw new TypeError("Actions must be objects");if(typeof n.type>"u")throw new TypeError("Actions must have a type property");super.next(n)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),hP=[Qi],d0=new v("@ngrx/store Internal Root Guard"),ZE=new v("@ngrx/store Internal Initial State"),xm=new v("@ngrx/store Initial State"),f0=new v("@ngrx/store Reducer Factory"),YE=new v("@ngrx/store Internal Reducer Factory Provider"),h0=new v("@ngrx/store Initial Reducers"),bm=new v("@ngrx/store Internal Initial Reducers"),KE=new v("@ngrx/store Store Features"),QE=new v("@ngrx/store Internal Store Reducers"),ym=new v("@ngrx/store Internal Feature Reducers"),XE=new v("@ngrx/store Internal Feature Configs"),p0=new v("@ngrx/store Internal Store Features"),JE=new v("@ngrx/store Internal Feature Reducers Token"),m0=new v("@ngrx/store Feature Reducers"),e0=new v("@ngrx/store User Provided Meta Reducers"),tl=new v("@ngrx/store Meta Reducers"),t0=new v("@ngrx/store Internal Resolved Meta Reducers"),n0=new v("@ngrx/store User Runtime Checks Config"),r0=new v("@ngrx/store Internal User Runtime Checks Config"),Ns=new v("@ngrx/store Internal Runtime Checks"),Mm=new v("@ngrx/store Check if Action types are unique"),pP=new v("@ngrx/store Root Store Provider"),mP=new v("@ngrx/store Feature State Provider");function Sm(t,e={}){let r=Object.keys(t),n={};for(let o=0;or!==e).reduce((r,n)=>Object.assign(r,{[n]:t[n]}),{})}function g0(...t){return function(e){if(t.length===0)return e;let r=t[t.length-1];return t.slice(0,-1).reduceRight((i,o)=>o(i),r(e))}}function v0(t,e){return Array.isArray(e)&&e.length>0&&(t=g0.apply(null,[...e,t])),(r,n)=>{let i=t(r);return(o,s)=>(o=o===void 0?n:o,i(o,s))}}function vP(t){let e=Array.isArray(t)&&t.length>0?g0(...t):r=>r;return(r,n)=>(r=e(r),(i,o)=>(i=i===void 0?n:i,r(i,o)))}var Rs=class extends N{},nl=class extends Qi{},bP="@ngrx/store/update-reducers",rl=(()=>{let e=class e extends de{get currentReducers(){return this.reducers}constructor(n,i,o,s){super(s(o,i)),this.dispatcher=n,this.initialState=i,this.reducers=o,this.reducerFactory=s}addFeature(n){this.addFeatures([n])}addFeatures(n){let i=n.reduce((o,{reducers:s,reducerFactory:a,metaReducers:c,initialState:u,key:l})=>{let d=typeof s=="function"?vP(c)(s,u):v0(a,c)(s,u);return o[l]=d,o},{});this.addReducers(i)}removeFeature(n){this.removeFeatures([n])}removeFeatures(n){this.removeReducers(n.map(i=>i.key))}addReducer(n,i){this.addReducers({[n]:i})}addReducers(n){this.reducers=b(b({},this.reducers),n),this.updateReducers(Object.keys(n))}removeReducer(n){this.removeReducers([n])}removeReducers(n){n.forEach(i=>{this.reducers=gP(this.reducers,i)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:bP,features:n})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(i){return new(i||e)(p(nl),p(xm),p(h0),p(f0))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),yP=[rl,{provide:Rs,useExisting:rl},{provide:nl,useExisting:Qi}],Os=(()=>{let e=class e extends B{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),DP=[Os],il=class extends N{},i0=(()=>{let e=class e extends de{constructor(n,i,o,s){super(s);let c=n.pipe(lr(Nl)).pipe(mo(i)),u={state:s},l=c.pipe(fo(_P,u));this.stateSubscription=l.subscribe(({state:d,action:f})=>{this.next(d),o.next(f)}),this.state=gm(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=l0,e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(xm))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function _P(t={state:void 0},[e,r]){let{state:n}=t;return{state:r(n,e),action:e}}var wP=[i0,{provide:il,useExisting:i0}],Vt=(()=>{let e=class e extends N{constructor(n,i,o){super(),this.actionsObserver=i,this.reducerManager=o,this.source=n,this.state=n.state}select(n,...i){return IP.call(null,n,...i)(this)}selectSignal(n,i){return rn(()=>n(this.state()),i)}lift(n){let i=new e(this,this.actionsObserver,this.reducerManager);return i.operator=n,i}dispatch(n){this.actionsObserver.next(n)}next(n){this.actionsObserver.next(n)}error(n){this.actionsObserver.error(n)}complete(){this.actionsObserver.complete()}addReducer(n,i){this.reducerManager.addReducer(n,i)}removeReducer(n){this.reducerManager.removeReducer(n)}};e.\u0275fac=function(i){return new(i||e)(p(il),p(Qi),p(rl))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),EP=[Vt];function IP(t,e,...r){return function(i){let o;if(typeof t=="string"){let s=[e,...r].filter(Boolean);o=i.pipe(Ul(t,...s))}else if(typeof t=="function")o=i.pipe(C(s=>t(s,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return o.pipe(Qr())}}var Tm="https://ngrx.io/guide/store/configuration/runtime-checks";function o0(t){return t===void 0}function s0(t){return t===null}function b0(t){return Array.isArray(t)}function CP(t){return typeof t=="string"}function xP(t){return typeof t=="boolean"}function MP(t){return typeof t=="number"}function y0(t){return typeof t=="object"&&t!==null}function SP(t){return y0(t)&&!b0(t)}function TP(t){if(!SP(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function _m(t){return typeof t=="function"}function AP(t){return _m(t)&&t.hasOwnProperty("\u0275cmp")}function NP(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var RP=!1;function OP(){return RP}function a0(t,e){return t===e}function FP(t,e,r){for(let n=0;ns(t));return n.memoized.apply(null,o)}let i=e.map(o=>o(t,r));return n.memoized.apply(null,[...i,r])}function PP(t,e={stateFn:kP}){return function(...r){let n=r;if(Array.isArray(n[0])){let[l,...d]=n;n=[...l,...d]}else n.length===1&&LP(n[0])&&(n=jP(n[0]));let i=n.slice(0,n.length-1),o=n[n.length-1],s=i.filter(l=>l.release&&typeof l.release=="function"),a=t(function(...l){return o.apply(null,l)}),c=D0(function(l,d){return e.stateFn.apply(null,[l,i,d,a])});function u(){c.reset(),a.reset(),s.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function _0(t){return ol(e=>{let r=e[t];return!OP()&&_h()&&!(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 LP(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function jP(t){let e=Object.values(t),r=Object.keys(t),n=(...i)=>r.reduce((o,s,a)=>O(b({},o),{[s]:i[a]}),{});return[...e,n]}function VP(t){return t instanceof v?g(t):t}function UP(t,e){return e.map((r,n)=>{if(t[n]instanceof v){let i=g(t[n]);return{key:r.key,reducerFactory:i.reducerFactory?i.reducerFactory:Sm,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return r})}function BP(t){return t.map(e=>e instanceof v?g(e):e)}function w0(t){return typeof t=="function"?t():t}function $P(t,e){return t.concat(e)}function HP(){if(g(Vt,{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 zP(t,e){return function(r,n){let i=e.action(n)?wm(n):n,o=t(r,i);return e.state()?wm(o):o}}function wm(t){Object.freeze(t);let e=_m(t);return Object.getOwnPropertyNames(t).forEach(r=>{if(!r.startsWith("\u0275")&&NP(t,r)&&(!e||r!=="caller"&&r!=="callee"&&r!=="arguments")){let n=t[r];(y0(n)||_m(n))&&!Object.isFrozen(n)&&wm(n)}}),t}function GP(t,e){return function(r,n){if(e.action(n)){let o=Em(n);c0(o,"action")}let i=t(r,n);if(e.state()){let o=Em(i);c0(o,"state")}return i}}function Em(t,e=[]){return(o0(t)||s0(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;let o=t[i];return AP(o)?n:o0(o)||s0(o)||MP(o)||xP(o)||CP(o)||b0(o)?!1:TP(o)?Em(o,[...e,i]):{path:[...e,i],value:o}},!1)}function c0(t,e){if(t===!1)return;let r=t.path.join("."),n=new Error(`Detected unserializable ${e} at "${r}". ${Tm}#strict${e}serializability`);throw n.value=t.value,n.unserializablePath=r,n}function WP(t,e){return function(r,n){if(e.action(n)&&!P.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${Tm}#strictactionwithinngzone`);return t(r,n)}}function qP(t){return _h()?b({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 ZP({strictActionSerializability:t,strictStateSerializability:e}){return r=>t||e?GP(r,{action:n=>t&&!Am(n),state:()=>e}):r}function YP({strictActionImmutability:t,strictStateImmutability:e}){return r=>t||e?zP(r,{action:n=>t&&!Am(n),state:()=>e}):r}function Am(t){return t.type.startsWith("@ngrx")}function KP({strictActionWithinNgZone:t}){return e=>t?WP(e,{action:r=>t&&!Am(r)}):e}function QP(t){return[{provide:r0,useValue:t},{provide:n0,useFactory:XP,deps:[r0]},{provide:Ns,deps:[n0],useFactory:qP},{provide:tl,multi:!0,deps:[Ns],useFactory:YP},{provide:tl,multi:!0,deps:[Ns],useFactory:ZP},{provide:tl,multi:!0,deps:[Ns],useFactory:KP}]}function E0(){return[{provide:Mm,multi:!0,deps:[Ns],useFactory:JP}]}function XP(t){return t}function JP(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(Dm).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(", ")}. ${Tm}#strictactiontypeuniqueness`)}function eL(t={},e={}){return[{provide:d0,useFactory:HP},{provide:ZE,useValue:e.initialState},{provide:xm,useFactory:w0,deps:[ZE]},{provide:bm,useValue:t},{provide:QE,useExisting:t instanceof v?t:bm},{provide:h0,deps:[bm,[new Cf(QE)]],useFactory:VP},{provide:e0,useValue:e.metaReducers?e.metaReducers:[]},{provide:t0,deps:[tl,e0],useFactory:$P},{provide:YE,useValue:e.reducerFactory?e.reducerFactory:Sm},{provide:f0,deps:[YE,t0],useFactory:v0},hP,yP,DP,wP,EP,QP(e.runtimeChecks),E0()]}function tL(t,e,r={}){return[{provide:XE,multi:!0,useValue:t instanceof Object?{}:r},{provide:KE,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(r instanceof v)&&r.reducerFactory?r.reducerFactory:Sm,metaReducers:!(r instanceof v)&&r.metaReducers?r.metaReducers:[],initialState:!(r instanceof v)&&r.initialState?r.initialState:void 0}},{provide:p0,deps:[XE,KE],useFactory:UP},{provide:ym,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:JE,multi:!0,useExisting:e instanceof v?e:ym},{provide:m0,multi:!0,deps:[ym,[new Cf(JE)]],useFactory:BP},E0()]}var Fs=(()=>{let e=class e{constructor(n,i,o,s,a,c){}};e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(Vt),p(d0,8),p(Mm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),sl=(()=>{let e=class e{constructor(n,i,o,s,a){this.features=n,this.featureReducers=i,this.reducerManager=o;let c=n.map((u,l)=>{let f=i.shift()[l];return O(b({},u),{reducers:f,initialState:w0(u.initialState)})});o.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(i){return new(i||e)(p(p0),p(m0),p(rl),p(Fs),p(Mm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),OW=(()=>{let e=class e{static forRoot(n,i){return{ngModule:Fs,providers:[...eL(n,i)]}}static forFeature(n,i,o={}){return{ngModule:sl,providers:[...tL(n,i,o)]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function ks(...t){let e=t.pop(),r=t.map(n=>n.type);return{reducer:e,types:r}}function I0(t,...e){let r=new Map;for(let n of e)for(let i of n.types){let o=r.get(i);if(o){let s=(a,c)=>n.reducer(o(a,c),c);r.set(i,s)}else r.set(i,n.reducer)}return function(n=t,i){let o=r.get(i.type);return o?o(n,i):n}}var Rm={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"},MULTI_MODAL:{ROOT:"multi-modal"},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 et=u0({source:"[Core -> Auth]",events:{Login:Ki(),"Login Success":Ki(),"Login Failure":Ki(),Logout:Cm(),"Logout Success":Cm(),"Logout Failure":Ki()}});var nL={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},cl="__@ngrx/effects_create__";function Ps(t,e={}){let r=e.functional?t:t(),n=b(b({},nL),e);return Object.defineProperty(r,cl,{value:n}),r}function rL(t){return Object.getOwnPropertyNames(t).filter(n=>t[n]&&t[n].hasOwnProperty(cl)?t[n][cl].hasOwnProperty("dispatch"):!1).map(n=>{let i=t[n][cl];return b({propertyName:n},i)})}function iL(t){return rL(t)}function S0(t){return Object.getPrototypeOf(t)}function oL(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function T0(t){return typeof t=="function"}function C0(t){return t.filter(T0)}function sL(t){return t instanceof v||T0(t)}function aL(t,e,r){let n=S0(t),o=!!n&&n.constructor.name!=="Object"?n.constructor.name:null,s=iL(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof t[a]=="function"?t[a]():t[a],d=u?r(l,e):l;return c===!1?d.pipe(uo()):d.pipe(Vl()).pipe(C(h=>({effect:t[a],notification:h,propertyName:a,sourceName:o,sourceInstance:t})))});return va(...s)}var cL=10;function A0(t,e,r=cL){return t.pipe(Re(n=>(e&&e.handleError(n),r<=1?t:A0(t,e,r-1))))}var N0=(()=>{let e=class e extends N{constructor(n){super(),n&&(this.source=n)}lift(n){let i=new e;return i.source=this,i.operator=n,i}};e.\u0275fac=function(i){return new(i||e)(p(Os))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ls(...t){return le(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var R0=new v("@ngrx/effects Internal Root Guard"),al=new v("@ngrx/effects User Provided Effects"),Om=new v("@ngrx/effects Internal Root Effects"),O0=new v("@ngrx/effects Internal Root Effects Instances"),x0=new v("@ngrx/effects Internal Feature Effects"),F0=new v("@ngrx/effects Internal Feature Effects Instance Groups"),uL=new v("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>A0}),k0="@ngrx/effects/init",WW=Im(k0);function lL(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!dL(r)&&e.handleError(new Error(`Effect ${fL(t)} dispatched an invalid action: ${hL(r)}`))}}function dL(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function fL({propertyName:t,sourceInstance:e,sourceName:r}){let n=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${n?"()":""}"`:`"${String(t)}()"`}function hL(t){try{return JSON.stringify(t)}catch{return t}}var pL="ngrxOnIdentifyEffects";function mL(t){return Fm(t,pL)}var gL="ngrxOnRunEffects";function vL(t){return Fm(t,gL)}var bL="ngrxOnInitEffects";function yL(t){return Fm(t,bL)}function Fm(t,e){return t&&e in t&&typeof t[e]=="function"}var P0=(()=>{let e=class e extends B{constructor(n,i){super(),this.errorHandler=n,this.effectsErrorHandler=i}addEffects(n){this.next(n)}toActions(){return this.pipe(Da(n=>oL(n)?S0(n):n),Q(n=>n.pipe(Da(DL))),Q(n=>{let i=n.pipe(ya(s=>_L(this.errorHandler,this.effectsErrorHandler)(s)),C(s=>(lL(s,this.errorHandler),s.notification)),le(s=>s.kind==="N"&&s.value!=null),Ll()),o=n.pipe(ge(1),le(yL),C(s=>s.ngrxOnInitEffects()));return va(i,o)}))}};e.\u0275fac=function(i){return new(i||e)(p(Te),p(uL))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function DL(t){return mL(t)?t.ngrxOnIdentifyEffects():""}function _L(t,e){return r=>{let n=aL(r,t,e);return vL(r)?r.ngrxOnRunEffects(n):n}}var L0=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(n,i){this.effectSources=n,this.store=i,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(i){return new(i||e)(p(P0),p(Vt))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),j0=(()=>{let e=class e{constructor(n,i,o,s,a,c,u){this.sources=n,i.start();for(let l of s)n.addEffects(l);o.dispatch({type:k0})}addEffects(n){this.sources.addEffects(n)}};e.\u0275fac=function(i){return new(i||e)(p(P0),p(L0),p(Vt),p(O0),p(Fs,8),p(sl,8),p(R0,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),wL=(()=>{let e=class e{constructor(n,i,o,s){let a=i.flat();for(let c of a)n.addEffects(c)}};e.\u0275fac=function(i){return new(i||e)(p(j0),p(F0),p(Fs,8),p(sl,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),qW=(()=>{let e=class e{static forFeature(...n){let i=n.flat(),o=C0(i);return{ngModule:wL,providers:[o,{provide:x0,multi:!0,useValue:i},{provide:al,multi:!0,useValue:[]},{provide:F0,multi:!0,useFactory:M0,deps:[x0,al]}]}}static forRoot(...n){let i=n.flat(),o=C0(i);return{ngModule:j0,providers:[o,{provide:Om,useValue:[i]},{provide:R0,useFactory:EL},{provide:al,multi:!0,useValue:[]},{provide:O0,useFactory:M0,deps:[Om,al]}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function M0(t,e){let r=[];for(let n of t)r.push(...n);for(let n of e)r.push(...n);return r.map(n=>sL(n)?g(n):n)}function EL(){let t=g(L0,{optional:!0,skipSelf:!0}),e=g(Om,{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 km={production:!0,apiUrl:"rest",backendBaseUrl:"http://localhost:3000",websocketUrl:"ws://localhost:3000"};var js=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,n,i,o){this.mockDelay=0,this.options={},this.method=e,this.params=n,this.options=i||{},o&&(this.mock=o),this.url="",this.mock?this.url=`/mock/${r}`:this.url=`${km.backendBaseUrl}/${km.apiUrl}/${r}`}},V0=class extends js{constructor(e,r,n,i=!0){let o=new sn;r&&(o=r),super("GET",e,o,n,i)}},ul=class extends js{constructor(e,r,n=!0){super("POST",e,void 0,void 0,n),this.body=r}},ll=class extends js{constructor(e,r=!0){super("PUT",e,void 0,void 0,r)}};var dl=class extends ul{constructor(e){super("login/authenticate",b({},e)),this.mock&&(this.url+="/post-response-body-200.json")}};var fl=class extends ll{constructor(){super("user/logout"),this.mock&&(this.url+="/put-response-body-200.json")}};var U0=new v("CLIENT");var Pm=_0("core");var hl=ol(Pm,t=>t.auth.isAuthenticated),B0=ol(Pm,t=>t.auth.user);var yq=(()=>{let e=class e{constructor(n,i,o,s){this.apiClient=n,this.actions$=i,this.store=o,this.router=s,this.login$=Ps(()=>this.actions$.pipe(Ls(et.login),mo(this.store.select(hl)),le(([a,c])=>!c),Q(([a,c])=>this.apiClient.serviceCall(new dl({email:a.email,password:a.password})).pipe(C(u=>et.loginSuccess({user:u})),Re(u=>[et.loginFailure({error:u})]))))),this.loginRedirect$=Ps(()=>this.actions$.pipe(Ls(et.loginSuccess),ee(()=>this.router.navigate([`${Rm.MODE_SELECT.ROOT}`]))),{dispatch:!1}),this.logout$=Ps(()=>this.actions$.pipe(Ls(et.logout),Q(()=>this.apiClient.serviceCall(new fl).pipe(C(()=>et.logoutSuccess()),Re(a=>[et.logoutFailure({error:a})]))))),this.logoutRedirect$=Ps(()=>this.actions$.pipe(Ls(et.logoutSuccess),ee(()=>this.router.navigate([`${Rm.AUTH.ROOT}`]))),{dispatch:!1})}};e.\u0275fac=function(i){return new(i||e)(p(U0),p(N0),p(Vt),p(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var CL={isAuthenticated:!1,user:{},error:null},Eq=I0(CL,ks(et.loginSuccess,(t,{user:e})=>O(b({},t),{isAuthenticated:!0,user:b({},e),error:null})),ks(et.loginFailure,(t,{error:e})=>O(b({},t),{error:e})),ks(et.logoutSuccess,()=>({isAuthenticated:!1,user:{},token:null,error:null})),ks(et.logoutFailure,(t,{error:e})=>O(b({},t),{error:e})));var Oq=(()=>{let e=class e{constructor(n){this.store=n,this.isAuthenticated$=this.store.select(hl),this.user$=this.store.select(B0)}dispatch(n){this.store.dispatch(n)}};e.\u0275fac=function(i){return new(i||e)(p(Vt))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();export{b as a,O as b,Vm as c,xL as d,ML as e,Vr as f,ae as g,N as h,Gr as i,B as j,de as k,ro as l,fI as m,Nl as n,xe as o,SV as p,lr as q,re as r,x as s,$t as t,Fl as u,DI as v,wI as w,C as x,dr as y,Q as z,so as A,kl as B,co as C,va as D,le as E,jI as F,Re as G,Gt as H,Kr as I,ge as J,Ng as K,Qr as L,ht as M,fo as N,ho as O,BI as P,Jr as Q,po as R,Ve as S,jn as T,$I as U,ee as V,mo as W,I as X,ye as Y,kt as Z,D as _,H as $,v as aa,KI as ba,p as ca,g as da,yi as ea,Mo as fa,fn as ga,nt as ha,z as ia,G as ja,pc as ka,vn as la,AC as ma,Fe as na,it as oa,Pz as pa,Lz as qa,jz as ra,Vz as sa,Zn as ta,Fo as ua,ke as va,Te as wa,ne as xa,X as ya,li as za,Uz as Aa,Yn as Ba,Bz as Ca,$z as Da,Ci as Ea,y as Fa,wr as Ga,pi as Ha,mi as Ia,en as Ja,P as Ka,dT as La,Bo as Ma,yn as Na,be as Oa,st as Pa,kc as Qa,Xe as Ra,Mi as Sa,hD as Ta,we as Ua,Gz as Va,Si as Wa,Wz as Xa,Pc as Ya,qz as Za,Zz as _a,Yz as $a,_n as ab,wn as bb,Je as cb,wD as db,ED as eb,CA as fb,Kz as gb,mh as hb,SA as ib,En as jb,kA as kb,Lc as lb,tn as mb,Le as nb,VA as ob,xD as pb,MD as qb,jc as rb,Vc as sb,Qz as tb,vh as ub,HA as vb,Ho as wb,zA as xb,Xz as yb,GA as zb,_t as Ab,at as Bb,Jz as Cb,e3 as Db,t3 as Eb,n3 as Fb,r3 as Gb,i3 as Hb,o3 as Ib,nn as Jb,_h as Kb,wt as Lb,wh as Mb,Ee as Nb,Eh as Ob,ct as Pb,W as Qb,Ai as Rb,C3 as Sb,x3 as Tb,M3 as Ub,S3 as Vb,T3 as Wb,A3 as Xb,N3 as Yb,R3 as Zb,r_ as _b,an as $b,Gh as ac,fR as bc,z3 as cc,G3 as dc,S_ as ec,s4 as fc,a4 as gc,c4 as hc,jt as ic,nr as jc,TO as kc,Ct as lc,W_ as mc,x4 as nc,M4 as oc,S4 as pc,Mt as qc,cW as rc,uW as sc,lW as tc,dW as uc,fW as vc,hW as wc,pW as xc,mW as yc,gW as zc,vW as Ac,bW as Bc,yW as Cc,WE as Dc,qE as Ec,DW as Fc,gm as Gc,Ki as Hc,u0 as Ic,Cm as Jc,l0 as Kc,Qi as Lc,xm as Mc,Rs as Nc,nl as Oc,bP as Pc,Os as Qc,il as Rc,Vt as Sc,ol as Tc,_0 as Uc,OW as Vc,ks as Wc,I0 as Xc,Ps as Yc,N0 as Zc,Ls as _c,qW as $c,Rm as ad,Pm as bd,Uk as cd,Bk as dd,$k as ed,em as fd,lG as gd,kr as hd,je as id,sG as jd,Zi as kd,aG as ld,Vk as md,Nn as nd,uE as od,Wu as pd,lE as qd,hE as rd,_G as sd,d1 as td,f1 as ud,VG as vd,mE as wd,gE as xd,im as yd,om as zd,UG as Ad,wE as Bd,BG as Cd,XG as Dd,am as Ed,y5 as Fd,D5 as Gd,un as Hd,EE as Id,_5 as Jd,RE as Kd,OE as Ld,pm as Md,$1 as Nd,FE as Od,kE as Pd,w5 as Qd,E5 as Rd,I5 as Sd,C5 as Td,x5 as Ud,PE as Vd,M5 as Wd,Bu as Xd,Vw as Yd,Rr as Zd,Aw as _d,Ge as $d,An as ae,W4 as be,q4 as ce,Gi as de,Ck as ee,xs as fe,Tk as ge,Y4 as he,Nk as ie,nE as je,rE as ke,iE as le,Pk as me,Hp as ne,K4 as oe,Q4 as pe,X4 as qe,B5 as re,$5 as se,H5 as te,z5 as ue,tP as ve,oW as we,sW as xe,et as ye,km as ze,V0 as Ae,ul as Be,U0 as Ce,yq as De,Eq as Ee,Oq as Fe}; diff --git a/frontend/server/modelsmith-build/browser/chunk-IFJKZTSR.js b/frontend/server/modelsmith-build/browser/chunk-IFJKZTSR.js new file mode 100644 index 00000000..89d2bde8 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-IFJKZTSR.js @@ -0,0 +1 @@ +import{a as at,b as mt,c as lt}from"./chunk-KKBNVFSA.js";import{a as nt}from"./chunk-LSF6MDDG.js";import{a as de}from"./chunk-D4NO5T2F.js";import{b as Xe,c as et,e as ot,f as rt}from"./chunk-M3BJA4RX.js";import{b as Ye}from"./chunk-DFEVON6A.js";import"./chunk-HHI42NCD.js";import"./chunk-YTNKLUWY.js";import{a as se,b as pe}from"./chunk-A3HRP5BG.js";import"./chunk-VRD7QX3W.js";import{a as Ue,b as je}from"./chunk-452CEXFK.js";import"./chunk-SWEZDJOL.js";import{a as ce}from"./chunk-OMCAGIEN.js";import{a as G,c as V}from"./chunk-BY5EH3KZ.js";import"./chunk-W5GEUOC3.js";import{b as E,d as Ze,e as O,f as qe,g as p,h as Je,n as g,o as We}from"./chunk-W4U3FJPJ.js";import{a as K,b as le}from"./chunk-I4357ONH.js";import{a as me,b as D,d as tt,l as it}from"./chunk-KE2JE72J.js";import{a as I,b as d}from"./chunk-COKZMNNS.js";import"./chunk-LDDHJMMZ.js";import{h as oe,i as re}from"./chunk-RTK5DRKR.js";import{$ as z,$a as R,$d as h,Ab as Z,Bb as Re,E as P,Ea as n,Fa as s,Fb as A,Gb as b,Hb as we,I as ge,J as Fe,L as Ce,Q,Qa as C,Qd as Ve,R as Ne,Rd as J,Sa as c,Xb as ke,Ya as M,Yb as Le,Za as Ie,Zb as De,_a as x,_b as q,_d as W,a as Te,ab as m,ad as Ke,b as Se,bb as r,be as X,cb as f,ce as k,da as H,db as Pe,de as L,eb as be,fe as $,gb as Ee,ha as N,ia as Y,ie as $e,jb as _e,je as Be,ke as ee,lb as w,me as te,oa as Ae,p as S,pa as Me,pc as ve,pe as Qe,qa as ye,qb as Oe,qe as ie,rb as Ge,re as ze,sb as xe,ub as l,ue as He,wb as u,we as ne,x as F,xe as ae}from"./chunk-I5FNXPEQ.js";var Mt=(i,e)=>e.name;function yt(i,e){i&1&&f(0,"mat-icon",10)}function _t(i,e){if(i&1&&(m(0,"mat-option",8),l(1),C(2,yt,1,0,"mat-icon",10),r()),i&2){let t=e.$implicit;c("value",t.name),n(),u(" ",t.name," "),n(),M(t.isTrained?-1:2)}}function vt(i,e){i&1&&(m(0,"mat-option",9),l(1,"No results found"),r())}function Tt(i,e){if(i&1&&(x(0,_t,3,3,"mat-option",8,Mt),C(2,vt,2,0,"mat-option",9)),i&2){let t=e;R(t),n(2),M(t.length===0?2:-1)}}var y,U=(y=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,o,a){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=o,this.pageRunningScriptSpiningIndicatorService=a,this.controlKey="",this.PageKey=Xe,this.RoutesList=Ke,this.searchModel=new $,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(G.getModelsList({algorithmType:e})),e){case p.PRUNING:{this.modelsFacadeService.dispatch(G.getCurrentOrPreviousSelectedModel({algorithmType:g.PRUNING_TRAIN}));break}case p.QUANTIZATION:{this.modelsFacadeService.dispatch(G.getCurrentOrPreviousSelectedModel({algorithmType:g.QUANTIZATION_TRAIN}));break}case p.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(G.getCurrentOrPreviousSelectedModel({algorithmType:g.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(d(this)).subscribe(e=>{if(O(e))return;this.models.find(o=>o.name===e)&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(P(o=>!qe(o)),F(o=>[...o].sort((a,j)=>Number(j.isTrained)-Number(a.isTrained)))).subscribe(o=>{this.models=o,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.MODEL_CONTROL_NAME]:new $("",W.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(e=>{E(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(d(this),Ne(""),F(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(o=>o.name.toLowerCase().includes(t))}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},y.\u0275fac=function(t){return new(t||y)(s(h),s(V),s(D),s(et))},y.\u0275cmp=N({type:y,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Z([],[{provide:h,useFactory:()=>H(h,{skipSelf:!0})}]),Ae,Re],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"],[3,"value"],["disabled",""],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(t,o){if(t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),l(3,"Model"),r()(),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5)(7,"mat-optgroup",6)(8,"mat-option"),f(9,"ngx-mat-select-search",7),r(),C(10,Tt,3,1),A(11,"async"),r()()()()()),t&2){let a;n(4),c("formGroupName",o.controlKey),n(5),c("formControl",o.searchModel),n(),M((a=b(11,3,o.filteredModels))?10:-1,a)}},dependencies:[ie,X,k,$e,te,ee,le,K,re,oe,pe,se,J,Ve,ae,ne,q,ke,rt,ot,Ye],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}"]}),y);U=S([I()],U);var Nt=(i,e)=>e.key;function At(i,e){if(i&1&&(m(0,"mat-option",6),l(1),r()),i&2){let t=e.$implicit;c("value",t.key),n(),u(" ",t.value," ")}}var _,fe=(_=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=Je.filter(o=>o.key!==p.TRAIN&&o.key!==p.AWQ),this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),Fe(1),P(e=>!O(e?.algKey)),F(e=>e.algKey)).subscribe(e=>{switch(e){case g.PRUNING_TRAIN:{this.algorithmTypeFormControl.patchValue(p.PRUNING);break}case g.MACHINE_UNLEARNING_TRAIN:{this.algorithmTypeFormControl.patchValue(p.MACHINE_UNLEARNING);break}case g.QUANTIZATION_TRAIN:{this.algorithmTypeFormControl.patchValue(p.QUANTIZATION);break}default:this.algorithmTypeFormControl.patchValue(p.PRUNING)}}),this.scriptFacadeService.dispatch(me.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.ALGORITHM_TYPE_CONTROL_NAME]:new $(p.PRUNING,W.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(e=>{E(e)?this.algorithmTypeFormGroup.disable():this.algorithmTypeFormGroup.enable()})}},_.\u0275fac=function(t){return new(t||_)(s(h),s(D))},_.\u0275cmp=N({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Z([],[{provide:h,useFactory:()=>H(h,{skipSelf:!0})}])],decls:9,vars:2,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"]],template:function(t,o){t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Algorithm Type"),r(),Pe(3,2),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),x(7,At,2,2,"mat-option",6,Nt),r()()(),be(),r()),t&2&&(n(3),c("formGroupName",o.controlKey),n(3),c("formControlName",o.ALGORITHM_TYPE_CONTROL_NAME),n(),R(o.algorithmTypesOptions))},dependencies:[K,oe,se,J,X,k,te,ee]}),_);fe=S([I()],fe);function Pt(i,e){if(i&1&&(l(0),A(1,"adaptiveFileSize")),i&2){let t=w().$implicit;u(" ",b(1,1,t.value)," ")}}function bt(i,e){if(i&1&&(l(0),A(1,"date")),i&2){let t=w().$implicit;u(" ",we(1,1,t.value,"medium")," ")}}function Et(i,e){if(i&1&&(l(0),A(1,"readableDuration")),i&2){let t=w().$implicit;u(" ",b(1,1,t.value)," ")}}function Ot(i,e){if(i&1&&l(0),i&2){let t=w().$implicit;u(" ",t.value," ")}}function Gt(i,e){i&1&&(m(0,"div",8),f(1,"mat-divider"),r())}function xt(i,e){if(i&1&&(m(0,"div")(1,"div",5)(2,"div",6),l(3),A(4,"parametersLabel"),r(),m(5,"div",7),C(6,Pt,2,3)(7,bt,2,4)(8,Et,2,3)(9,Ot,1,1),r()(),C(10,Gt,2,0,"div",8),r()),i&2){let t,o=e.$implicit,a=e.$index,j=e.$count;n(3),u("",b(4,3,o.key),":"),n(3),M((t=o.key)==="file_size_bytes"?6:t==="creation_date"?7:t==="training_duration_seconds"?8:9),n(4),M(a!==j-1?10:-1)}}function Rt(i,e){if(i&1&&(m(0,"div",3),x(1,xt,11,5,"div",null,Ie),r()),i&2){let t=w();n(),R(t)}}function wt(i,e){i&1&&f(0,"ms-empty-state",4)}function kt(i,e){i&1&&(m(0,"div",2),C(1,Rt,3,0,"div",3)(2,wt,1,0,"ms-empty-state",4),r()),i&2&&(n(),M(e.length>0?1:2))}var v,ue=(v=class{constructor(e){this.modelsFacadeService=e,this.metadata={}}ngOnInit(){this.modelsFacadeService.modelMetadata$.pipe(Q(1),d(this)).subscribe(e=>{this.metadata=e})}},v.\u0275fac=function(t){return new(t||v)(s(V))},v.\u0275cmp=N({type:v,selectors:[["ms-panel-model-metadata"]],decls:5,vars:3,consts:[[1,"ms-card","metadata-card"],[1,"heading-sub-section-title"],[1,"metadata-wrapper"],[1,"key-value-container","single"],["title","No metadata available"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[1,"pt-2"]],template:function(t,o){if(t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Model Training Information"),r(),C(3,kt,3,1,"div",2),A(4,"keyvalue"),r()),t&2){let a;n(3),M((a=b(4,1,o.metadata))?3:-1,a)}},dependencies:[nt,K,Ue,Le,De,at,lt,mt],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),v);ue=S([I()],ue);var Dt=["panelParameters"],T,he=(T=class{constructor(e,t,o,a){this.navigationService=e,this.scriptFacadeService=t,this.snackbarService=o,this.modelsFacadeService=a,this.form=new L({}),this.isScriptActive=!1,this.selectedAlgorithmType=p.PRUNING,this.selectedAlgorithmKey=g.PRUNING_TRAIN}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges(),this.listenToFormChangesToLoadModelMetadata()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(ge(50),F(()=>{let e=this.form.getRawValue();return e.algorithmTypeGroup&&e.algorithmTypeGroup.algorithmType}),Ce(),P(e=>!!e),d(this)).subscribe(e=>{this.selectedAlgorithmType=e,this.selectedAlgorithmKey=We[e]})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(e=>{this.isScriptActive=E(e),E(e)?this.form.disable():this.form.enable()})}listenToFormChangesToLoadModelMetadata(){this.form.valueChanges.pipe(ge(50),F(e=>{let t=e.algorithmTypeGroup?.algorithmType,o=e.model?.model;return{algorithmType:t,model:o}}),Ce((e,t)=>JSON.stringify(e)===JSON.stringify(t)),P(({algorithmType:e,model:t})=>!O(e)&&!O(t)),d(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(G.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Ze(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,o={alg:this.selectedAlgorithmKey,params:Se(Te({},this.panelParametersComponent.parametersFormatted),{arch:t})};this.scriptFacadeService.dispatch(me.callScript({configs:o}))}},T.\u0275fac=function(t){return new(t||T)(s(it),s(D),s(tt),s(V))},T.\u0275cmp=N({type:T,selectors:[["ms-model-training"]],viewQuery:function(t,o){if(t&1&&Oe(Dt,5),t&2){let a;Ge(a=xe())&&(o.panelParametersComponent=a.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,o){if(t&1){let a=Ee();m(0,"p",1),l(1,"Model Training"),r(),m(2,"div",2)(3,"div",3),f(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),_e("click",function(){return Me(a),ye(o.submit())}),l(11," Run "),r(),m(12,"button",8),_e("click",function(){return Me(a),ye(o.navigationService.goToPreviousPage())}),f(13,"mat-icon",9),l(14," Go back "),r()()(),m(15,"div",10),f(16,"ms-terminal"),r()()}t&2&&(n(3),c("formGroup",o.form),n(2),c("algorithmType",o.selectedAlgorithmType),n(2),c("algorithm",o.selectedAlgorithmKey),n(3),c("disabled",o.isScriptActive||o.form.invalid))},dependencies:[ce,U,de,k,Be,ne,ze,fe,ue],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),T);he=S([I()],he);var Kt=[{path:"",component:he}],dt=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[ve.forChild(Kt),ve]});let i=e;return i})();var _o=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[q,dt,ce,U,de,le,je,pe,re,Qe,ie,ae,He]});let i=e;return i})();export{_o as ModelTrainingModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ITIPNJR4.js b/frontend/server/modelsmith-build/browser/chunk-ITIPNJR4.js deleted file mode 100644 index fb43e193..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-ITIPNJR4.js +++ /dev/null @@ -1,3 +0,0 @@ -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-2JZ6V3QN.js";import{a as xe}from"./chunk-3GNVUME3.js";import{a as ya,b as Ca}from"./chunk-W2GP6GR3.js";import"./chunk-TO7IPVMR.js";import{b as Ae,c as Ie,e as Pe,g as It}from"./chunk-W4U3FJPJ.js";import{a as Ee,b as _a}from"./chunk-2FJ2YO2M.js";import{a as te,b as Ut,e as yt,h as Wt,l as wa,n as Sa,p as Ma}from"./chunk-PSFPSLKI.js";import{a as _t,b as $t}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import{$ as pe,Ae as va,Db as ra,E as ot,Ea as S,Fa as W,Fb as we,Gb as Se,Ib as Me,J as Q,Ja as ta,Q as Z,Qa as J,Sa as M,Tb as oa,Ub as kt,Vb as sa,Wb as ca,_b as la,a as x,ab as w,ac as ha,b as T,bb as v,bc as da,cb as P,db as bt,eb as At,ee as ua,f as L,gb as _e,ha as G,ia as ge,jb as Ot,je as ma,ka as Zn,lb as ht,p as lt,pa as fe,qa as ve,qb as ea,rb as na,sb as aa,sc as sn,se as pa,tb as ye,te as ga,ub as A,ue as Le,vb as ia,wb as Ce,xa as Jn,xb as an,xe as fa,yb as rn,zb as on,ze as be}from"./chunk-NPZHNGVX.js";var Pi=Object.defineProperty,Ei=(s,n,a)=>n in s?Pi(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a,F=(s,n,a)=>Ei(s,typeof n!="symbol"?n+"":n,a),xi=class{requestAnimationFrame(s){return requestAnimationFrame(s)}cancelAnimationFrame(s){cancelAnimationFrame(s)}},Fi=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)}},Di=class{constructor(){F(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new xi:new Fi}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"}},Ti=(()=>{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=[],Mn=[];function ja(){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 Ln=t=>t.startsWith("data:application/octet-stream;base64,"),Tt;if(Tt="DotLottiePlayer.wasm",!Ln(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 za(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 za(t).then(r=>WebAssembly.instantiate(r,e)).then(i,r=>{Ft(`failed to asynchronously prepare wasm: ${r}`),ie(r)})}function Ba(t,e){var i=Tt;return zt||typeof WebAssembly.instantiateStreaming!="function"||Ln(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 Ha{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={},Lt={},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{Lt.hasOwnProperty(d)?o[g]=Lt[d]:(l.push(d),Rt.hasOwnProperty(d)||(Rt[d]=[]),Rt[d].push(()=>{o[g]=Lt[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 Ya(t,e,i={}){var r=e.name;if(!t)throw new b(`type "${r}" must have a positive integer typeid pointer`);if(Lt.hasOwnProperty(t)){if(i.ib)return;throw new b(`Cannot register type '${r}' twice`)}Lt[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 Ya(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={},Va=(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)},Ga=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 Xa(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 qa(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 Ka(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 Qa(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=Ka:(this.toWireType=r?qa:Qa,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,Za=(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),Ja=(t,e)=>(...i)=>Za(t,e,i),Y=(t,e)=>{t=N(t);var i=t.includes("j")?Ja(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]||Lt[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 ti(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=ti(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},ei=(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=Lt[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},ni=(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}`)}},ai=(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,ii=(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},ri=(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},oi=t=>2*t.length,si=(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},ci=(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},li=t=>{for(var e=0,i=0;i=r&&++i,e+=4}return e},Ze=[],hi=t=>{var e=Ze.length;return Ze.push(t),e},di=(t,e)=>{for(var i=Array(t),r=0;r>2],"parameter "+r);return i},ui=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,mi=[null,[],[]],pi=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);ie("initRandomDevice")},Hn=t=>(Hn=pi())(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 gi(t){var e=Array(xn(t)+1);return Fn(t,e,0,e.length),e}var fi=(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?Mt(O,m):""},i=i?Mt(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=gi(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=Va(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 vi={c:(t,e,i,r)=>{ie(`Assertion failed: ${t?Mt(O,t):""}, at: `+[e?e?Mt(O,e):"":"unknown filename",i,r?r?Mt(O,r):"":"unknown function"])},m:(t,e,i)=>{var r=new Ha(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=Ga(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 Xa(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:ei(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:ni(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:ai(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?Mt(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=ii,o=ri,l=oi,u=d=>Bt[d>>1];else e===4&&(r=si,o=ci,l=li,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=di(t,e),o=r.shift();t--;var l=Array(t);return e=`methodCaller<(${r.map(u=>u.name).join(", ")}) => ${o.name}>`,hi(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:Si,d:wi,e:Ci,p:Mi,y:Ai,b:_i,a:yi,h:bi,n:Li,G:Ii,K:(t,e,i,r)=>fi(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:vi};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 Ba(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 _i(t,e){var i=at();try{K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function yi(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 Ci(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 wi(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 Si(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 Mi(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 Li(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 bi(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 Ai(t){var e=at();try{K.get(t)()}catch(i){if(nt(e),i!==i+0)throw i;et(1,0)}}function Ii(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();Mn.unshift(e)}Ue(Mn)}}if(!(0s})})}static _loadWithBackup(){return L(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(s=>L(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 L(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 Ia=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 Oi(s){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(s)}function ki(s){if(!Oi(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},Pa=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 Ia,this._frameManager=new Di,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 L(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:ki(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',Ui=class{constructor(){F(this,"_workers",new Map),F(this,"_animationWorkerMap",new Map)}_createWorker(s){let n=new Blob([$i],{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 La(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 ba(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var Aa=class Pt{constructor(n){F(this,"_eventManager",new Ia),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-${ba()}`;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 L(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 L(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})},La(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 L(this,null,function*(){this._created&&(yield this._sendMessage("play",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}pause(){return L(this,null,function*(){this._created&&(yield this._sendMessage("pause",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}stop(){return L(this,null,function*(){this._created&&(yield this._sendMessage("stop",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSpeed(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setSpeed",{instanceId:this._id,speed:n}),yield this._updateDotLottieInstanceState())})}setMode(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setMode",{instanceId:this._id,mode:n}),yield this._updateDotLottieInstanceState())})}setFrame(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setFrame",{frame:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSegment(n,a){return L(this,null,function*(){this._created&&(yield this._sendMessage("setSegment",{instanceId:this._id,segment:[n,a]}),yield this._updateDotLottieInstanceState())})}setRenderConfig(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:n}),yield this._updateDotLottieInstanceState())})}setUseFrameInterpolation(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:n}),yield this._updateDotLottieInstanceState())})}loadTheme(n){return L(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 L(this,null,function*(){this._created&&(yield this._sendMessage("load",{config:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLoop(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setLoop",{instanceId:this._id,loop:n}),yield this._updateDotLottieInstanceState())})}resize(){return L(this,null,function*(){if(!this._created)return;let{height:n,width:a}=La(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 L(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 L(this,null,function*(){this._created&&(yield this._sendMessage("freeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}unfreeze(){return L(this,null,function*(){this._created&&(yield this._sendMessage("unfreeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setBackgroundColor(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:n}),yield this._updateDotLottieInstanceState())})}loadAnimation(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("loadAnimation",{animationId:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLayout(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setLayout",{instanceId:this._id,layout:n}),yield this._updateDotLottieInstanceState())})}_updateDotLottieInstanceState(){return L(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 L(this,null,function*(){this._created&&(yield this._sendMessage("setMarker",{instanceId:this._id,marker:n}),yield this._updateDotLottieInstanceState())})}loadThemeData(n){return L(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 L(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 L(this,null,function*(){let p={id:`dotlottie-request-${ba()}`,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 L(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 L(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 L(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}postStateMachineEvent(n){return L(this,null,function*(){return this._created?this._sendMessage("postStateMachineEvent",{event:n,instanceId:this._id}):!1})}getStateMachineListeners(){return L(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 L(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(Aa,"_workerManager",new Ui),F(Aa,"_wasmUrl","");function xa(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 Fa={[jt.PRUNING]:{path:"assets/animations/pruning.lottie",speed:.15,className:"pruning"},[jt.QUANTIZATION]:{path:"assets/animations/quantization.lottie",speed:.07,className:"quant"}};var Ni=["dotlottieCanvas"],dt,ee=(dt=class{constructor(n,a,c){this.scriptFacadeService=n,this.el=a,this.renderer=c}ngOnInit(){let n=Fa[this.animationType];if(!n)throw new Error(`Unknown animation type: ${this.animationType}`);this.initializeAnimation(n)}initializeAnimation(n){this.dotLottie=new Ea({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(Ni,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([xa],ee.prototype,"animationType",void 0);ee=lt([_t()],ee);var j=function(s){return s.ACCURACY="accuracy",s.LOSS="loss",s}(j||{}),zi=100,ne=(s,n,a=!1)=>s.map(c=>({datasetIndex:c.datasetIndex,values:(a?c.testing:c.steps).map(p=>p[n])||[]})),Da=s=>{let n=s.flatMap(a=>a.sparsity).filter(a=>a!=null);return[{datasetIndex:0,values:[zi,...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 Oa=(()=>{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),M("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),M("data",_.initialAccuracyTestingChartData)("settings",_.testingAccuracyChartDisplaySettings),S(5),M("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),M("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=Da(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),M("data",c.initialAccuracyChartData)("settings",c.accuracyChartDisplaySettings),S(4),M("data",c.initialAccuracyTestingChartData)("settings",c.testingAccuracyChartDisplaySettings),S(5),M("data",c.initialLossChartData)("settings",c.lossChartDisplaySettings),S(4),M("data",c.initialLossTestingChartData)("settings",c.testingLossChartDisplaySettings),S(4),M("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 ka=(()=>{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),M("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),M("data",_.initialAccuracyTestingChartData)("settings",_.accuracyTestingChartDisplaySettings),S(5),M("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),M("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 $a=(()=>{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 Ki=s=>({stats:s});function Qi(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 Zi(s,n){if(s&1&&(bt(0),w(1,"div",5),J(2,Qi,6,4,"div",6),v(),At()),s&2){let a=ht().ngIf;S(2),M("ngForOf",a.stats)}}function Ji(s,n){s&1&&P(0,"ms-empty-state",10)}function tr(s,n){if(s&1&&(bt(0),J(1,Zi,3,1,"ng-container",4)(2,Ji,1,0,"ng-template",null,0,Me),At()),s&2){let a=n.ngIf,c=ye(3);S(),M("ngIf",a.stats==null?null:a.stats.length)("ngIfElse",c)}}var Wa=(()=>{let n=class n{constructor(c){this.statisticsFacadeService=c,this.statistics$=this.statisticsFacadeService.statistics$}ngOnInit(){this.statisticsFacadeService.dispatch(Ma.getStatistics())}};n.\u0275fac=function(p){return new(p||n)(W(Sa))},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,tr,4,2,"ng-container",3),we(4,"async"),we(5,"keyvalue"),v()),p&2&&(S(3),M("ngIf",ra(5,Ki,Se(5,3,Se(4,1,_.statistics$)))))},dependencies:[oa,kt,xe,Ee,la,ha,$a]});let s=n;return s})();function ir(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 rr(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,ir,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,rr,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(),M("ngIf",c.isScriptActive),S(3),an("ngModel",c.enableTooltips),M("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(3),an("ngModel",c.enableZoom),M("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(15),M("ngIf",c.isSparsityVisible))},dependencies:[kt,be,Le,ua,ma,ya],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 sr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();M("animationType",a.AnimationType.QUANTIZATION)}}function cr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();M("animationType",a.AnimationType.PRUNING)}}function lr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();M("animationType",a.AnimationType.PRUNING)}}function hr(s,n){s&1&&P(0,"ms-running-quantization-charts")}function dr(s,n){s&1&&P(0,"ms-running-pruning-charts")}function ur(s,n){s&1&&P(0,"ms-running-machine-unlearning-charts")}function mr(s,n){if(s&1&&(bt(0)(1,2),J(2,hr,1,0,"ms-running-quantization-charts",11)(3,dr,1,0,"ms-running-pruning-charts",11)(4,ur,1,0,"ms-running-machine-unlearning-charts",11),At()()),s&2){let a=ht();S(),M("ngSwitch",a.scriptDetails==null?null:a.scriptDetails.type),S(),M("ngSwitchCase",a.AlgorithmType.QUANTIZATION),S(),M("ngSwitchCase",a.AlgorithmType.PRUNING),S(),M("ngSwitchCase",a.AlgorithmType.MACHINE_UNLEARNING)}}function pr(s,n){s&1&&P(0,"ms-empty-state",12)}function gr(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(wa),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,sr,1,1,"ms-running-animation",3)(4,cr,1,1,"ms-running-animation",3)(5,lr,1,1,"ms-running-animation",3),At(),w(6,"mat-card",4),P(7,"ms-running-status-bar"),J(8,mr,5,4,"ng-container",5)(9,pr,1,0,"ng-template",null,0,Me),v(),J(11,gr,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),M("ngSwitch",c.scriptDetails==null?null:c.scriptDetails.type),S(),M("ngSwitchCase",c.AlgorithmType.QUANTIZATION),S(),M("ngSwitchCase",c.AlgorithmType.PRUNING),S(),M("ngSwitchCase",c.AlgorithmType.MACHINE_UNLEARNING),S(3),M("ngIf",c.isChartVisible)("ngIfElse",p),S(3),M("ngIf",(c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.MACHINE_UNLEARNING)}},dependencies:[kt,sa,ca,xe,be,Le,Ee,Oe,ka,Oa,ee,Wa,ke]}),gt);$e=lt([_t()],$e);var fr=[{path:"",component:$e}],Na=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({imports:[sn.forChild(fr),sn]});let s=n;return s})();var cs=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({providers:[De],imports:[da,Na,Ct,va,fa,_a,pa,ga,Ca]});let s=n;return s})();export{cs as RunningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-W2GP6GR3.js b/frontend/server/modelsmith-build/browser/chunk-JI7UWE3B.js similarity index 98% rename from frontend/server/modelsmith-build/browser/chunk-W2GP6GR3.js rename to frontend/server/modelsmith-build/browser/chunk-JI7UWE3B.js index 75ca27e0..fb75a33e 100644 --- a/frontend/server/modelsmith-build/browser/chunk-W2GP6GR3.js +++ b/frontend/server/modelsmith-build/browser/chunk-JI7UWE3B.js @@ -1 +1 @@ -import{$ as C,Ab as U,Ba as M,Bb as Q,Ea as m,Ed as Y,Fa as o,Kd as y,Lb as $,Nb as n,Ob as H,Od as Z,Pa as S,Qa as F,Ra as _,Sa as w,Ua as v,Wa as O,Ya as x,Z as I,Zd as J,_d as K,aa as z,ab as s,ae as W,bb as r,cb as l,gb as q,ha as D,hb as V,ia as E,jb as k,mb as P,nb as j,oa as R,pa as p,qa as g,qb as N,ra as L,rb as G,sb as X,tb as B,ua as T,xa as A,ya as f}from"./chunk-NPZHNGVX.js";var ce=["switch"],ie=["*"];function de(d,c){d&1&&(s(0,"div",10),L(),s(1,"svg",12),l(2,"path",13),r(),s(3,"svg",14),l(4,"path",15),r()())}var ae=new z("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),se={provide:K,useExisting:I(()=>ee),multi:!0},b=class{constructor(c,te){this.source=c,this.checked=te}},re=0,ee=(()=>{let c=class c{_createChangeEvent(t){return new b(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,i,e,a,h,u){this._elementRef=t,this._focusMonitor=i,this._changeDetectorRef=e,this.defaults=h,this._onChange=oe=>{},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 f,this.toggleChange=new f,this.tabIndex=parseInt(a)||0,this.color=h.color||"accent",this._noopAnimations=u==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++re}`,this.hideIcon=h.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,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 b(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};c.\u0275fac=function(i){return new(i||c)(o(A),o(Y),o($),T("tabindex"),o(ae),o(M,8))},c.\u0275cmp=D({type:c,selectors:[["mat-slide-toggle"]],viewQuery:function(i,e){if(i&1&&N(ce,5),i&2){let a;G(a=X())&&(e._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,e){i&2&&(V("id",e.id),_("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),O(e.color?"mat-"+e.color:""),v("mat-mdc-slide-toggle-focused",e._focused)("mat-mdc-slide-toggle-checked",e.checked)("_mat-animation-noopable",e._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",n],color:"color",disabled:[2,"disabled","disabled",n],disableRipple:[2,"disableRipple","disableRipple",n],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:H(t)],checked:[2,"checked","checked",n],hideIcon:[2,"hideIcon","hideIcon",n]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[U([se,{provide:W,useExisting:c,multi:!0}]),S,R,Q],ngContentSelectors:ie,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(i,e){if(i&1){let a=q();P(),s(0,"div",1)(1,"button",2,0),k("click",function(){return p(a),g(e._handleClick())}),l(3,"div",3),s(4,"div",4)(5,"div",5)(6,"div",6),l(7,"div",7),r(),s(8,"div",8),l(9,"div",9),r(),F(10,de,5,0,"div",10),r()()(),s(11,"label",11),k("click",function(u){return p(a),g(u.stopPropagation())}),j(12),r()()}if(i&2){let a=B(2);w("labelPosition",e.labelPosition),m(),v("mdc-switch--selected",e.checked)("mdc-switch--unselected",!e.checked)("mdc-switch--checked",e.checked)("mdc-switch--disabled",e.disabled),w("tabIndex",e.disabled?-1:e.tabIndex)("disabled",e.disabled),_("id",e.buttonId)("name",e.name)("aria-label",e.ariaLabel)("aria-labelledby",e._getAriaLabelledBy())("aria-describedby",e.ariaDescribedby)("aria-required",e.required||null)("aria-checked",e.checked),m(8),w("matRippleTrigger",a)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0),m(),x(e.hideIcon?-1:10),m(),w("for",e.buttonId),_("id",e._labelId)}},dependencies:[Z,J],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 d=c;return d})();var Le=(()=>{let c=class c{};c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=E({type:c}),c.\u0275inj=C({imports:[ee,y,y]});let d=c;return d})();export{ee as a,Le as b}; +import{$ as C,Ab as U,Ba as M,Bb as Q,Bd as Y,Ea as m,Fa as o,Hd as y,Lb as $,Ld as Z,Nb as n,Ob as H,Pa as S,Qa as F,Ra as _,Sa as w,Ua as v,Wa as O,Wd as J,Xd as K,Ya as x,Z as I,Zd as W,aa as z,ab as s,bb as r,cb as l,gb as q,ha as D,hb as V,ia as E,jb as k,mb as P,nb as j,oa as R,pa as p,qa as g,qb as N,ra as L,rb as G,sb as X,tb as B,ua as T,xa as A,ya as f}from"./chunk-I5FNXPEQ.js";var ce=["switch"],ie=["*"];function de(d,c){d&1&&(s(0,"div",10),L(),s(1,"svg",12),l(2,"path",13),r(),s(3,"svg",14),l(4,"path",15),r()())}var ae=new z("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),se={provide:K,useExisting:I(()=>ee),multi:!0},b=class{constructor(c,te){this.source=c,this.checked=te}},re=0,ee=(()=>{let c=class c{_createChangeEvent(t){return new b(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,i,e,a,h,u){this._elementRef=t,this._focusMonitor=i,this._changeDetectorRef=e,this.defaults=h,this._onChange=oe=>{},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 f,this.toggleChange=new f,this.tabIndex=parseInt(a)||0,this.color=h.color||"accent",this._noopAnimations=u==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++re}`,this.hideIcon=h.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,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 b(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};c.\u0275fac=function(i){return new(i||c)(o(A),o(Y),o($),T("tabindex"),o(ae),o(M,8))},c.\u0275cmp=D({type:c,selectors:[["mat-slide-toggle"]],viewQuery:function(i,e){if(i&1&&N(ce,5),i&2){let a;G(a=X())&&(e._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,e){i&2&&(V("id",e.id),_("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),O(e.color?"mat-"+e.color:""),v("mat-mdc-slide-toggle-focused",e._focused)("mat-mdc-slide-toggle-checked",e.checked)("_mat-animation-noopable",e._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",n],color:"color",disabled:[2,"disabled","disabled",n],disableRipple:[2,"disableRipple","disableRipple",n],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:H(t)],checked:[2,"checked","checked",n],hideIcon:[2,"hideIcon","hideIcon",n]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[U([se,{provide:W,useExisting:c,multi:!0}]),S,R,Q],ngContentSelectors:ie,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(i,e){if(i&1){let a=q();P(),s(0,"div",1)(1,"button",2,0),k("click",function(){return p(a),g(e._handleClick())}),l(3,"div",3),s(4,"div",4)(5,"div",5)(6,"div",6),l(7,"div",7),r(),s(8,"div",8),l(9,"div",9),r(),F(10,de,5,0,"div",10),r()()(),s(11,"label",11),k("click",function(u){return p(a),g(u.stopPropagation())}),j(12),r()()}if(i&2){let a=B(2);w("labelPosition",e.labelPosition),m(),v("mdc-switch--selected",e.checked)("mdc-switch--unselected",!e.checked)("mdc-switch--checked",e.checked)("mdc-switch--disabled",e.disabled),w("tabIndex",e.disabled?-1:e.tabIndex)("disabled",e.disabled),_("id",e.buttonId)("name",e.name)("aria-label",e.ariaLabel)("aria-labelledby",e._getAriaLabelledBy())("aria-describedby",e.ariaDescribedby)("aria-required",e.required||null)("aria-checked",e.checked),m(8),w("matRippleTrigger",a)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0),m(),x(e.hideIcon?-1:10),m(),w("for",e.buttonId),_("id",e._labelId)}},dependencies:[Z,J],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 d=c;return d})();var Le=(()=>{let c=class c{};c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=E({type:c}),c.\u0275inj=C({imports:[ee,y,y]});let d=c;return d})();export{ee as a,Le as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-KE2JE72J.js b/frontend/server/modelsmith-build/browser/chunk-KE2JE72J.js new file mode 100644 index 00000000..9b3e7f67 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-KE2JE72J.js @@ -0,0 +1,2 @@ +import{b as ft,c as Vt,d as Kt,e as gt,r as Wt,s as Xt}from"./chunk-LDDHJMMZ.js";import{Ad as $t,Ae as y,Bb as q,C as bt,Ce as J,E as _t,Ea as I,Fa as _,G as M,Ga as It,Hc as o,Ic as D,Jc as C,Ka as wt,Lb as Mt,Oa as Dt,Qa as $,Qb as Ft,Ra as Et,S as F,Sc as b,T as vt,Tc as d,Wc as f,Xc as Z,Ya as K,Yc as B,Zc as Y,_ as l,_c as O,a as p,aa as st,ab as k,ad as Nt,b as h,bb as v,bd as g,ca as s,cb as Q,da as xt,f as St,gb as jt,ha as z,ib as Pt,ic as Bt,id as Lt,j as x,ja as V,jb as W,k as Ct,kb as Tt,lb as ot,lc as Ot,pa as kt,qa as yt,qb as ct,rb as lt,rd as zt,re as Qt,s as T,sb as mt,sc as Ut,sd as Gt,tc as ut,ub as w,va as G,vb as Rt,wb as pt,wc as X,we as qt,x as R,xa as At,xc as ht,xe as Ht,zc as dt,ze as Zt}from"./chunk-I5FNXPEQ.js";var Yt=D({source:"[Core -> Script]",events:{"Call Script":o(),"Call Script Success":C(),"Call Script Failure":o(),"Fetch Script Status":C(),"Update Script Status":o(),"Fetch Script Status Success":o(),"Fetch Script Status Failure":o(),"Stop Script":C(),"Stop Script Success":C(),"Stop Script Failure":o(),"Get Current or Last Active Script Details":C(),"Get Current or Last Active Script Details Success":o(),"Get Current or Last Active Script Details Failure":o()}});var Jt=d(g,i=>i.script.scriptStatus),te=d(g,i=>i.script.scriptDetails);var ee=(()=>{let t=class t{constructor(e){this.store=e,this.scriptStatus$=this.store.select(Jt),this.scriptDetails$=this.store.select(te)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var E=function(i){return i.SUCCESS="success",i.ERROR="error",i.INFO="info",i.WARNING="warning",i}(E||{});function _e(i,t){if(i&1){let j=jt();k(0,"div",1)(1,"button",2),W("click",function(){kt(j);let n=ot();return yt(n.action())}),w(2),v()()}if(i&2){let j=ot();I(2),pt(" ",j.data.action," ")}}var ve=["label"];function xe(i,t){}var ke=Math.pow(2,31)-1,U=class{constructor(t,j){this._overlayRef=j,this._afterDismissed=new x,this._afterOpened=new x,this._onAction=new x,this._dismissedByAction=!1,this.containerInstance=t,t._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(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,ke))}_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}},tt=new st("MatSnackBarData"),N=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},ye=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=V({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=t;return i})(),Ae=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=V({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=t;return i})(),Ie=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=V({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=t;return i})(),we=(()=>{let t=class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};t.\u0275fac=function(n){return new(n||t)(_(U),_(tt))},t.\u0275cmp=z({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[q],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(k(0,"div",0),w(1),v(),$(2,_e,3,1,"div",1)),n&2&&(I(),pt(" ",r.data.message,` +`),I(),K(r.hasAction?2:-1))},dependencies:[Qt,ye,Ae,Ie],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=t;return i})(),De={snackBarState:Ut("state",[ht("void, hidden",X({transform:"scale(0.8)",opacity:0})),ht("visible",X({transform:"scale(1)",opacity:1})),dt("* => visible",ut("150ms cubic-bezier(0, 0, 0.2, 1)")),dt("* => void, * => hidden",ut("75ms cubic-bezier(0.4, 0.0, 1, 1)",X({opacity:0})))])},Ee=0,je=(()=>{let t=class t extends Kt{constructor(e,n,r,a,c){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=a,this.snackBarConfig=c,this._document=xt(Ft),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x,this._onExit=new x,this._onEnter=new x,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${Ee++}`,this.attachDomPortal=u=>{this._assertNotAttached();let P=this._portalOutlet.attachDomPortal(u);return this._afterPortalAttached(),P},c.politeness==="assertive"&&!c.announcementMessage?this._live="assertive":c.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){let{fromState:n,toState:r}=e;if((r==="void"&&n!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.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 e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(c=>e.classList.add(c)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,a="mdc-snackbar__label";r.classList.toggle(a,!r.querySelector(`.${a}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};t.\u0275fac=function(n){return new(n||t)(_(wt),_(At),_(Mt),_(Lt),_(N))},t.\u0275cmp=z({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(ct(gt,7),ct(ve,7)),n&2){let a;lt(a=mt())&&(r._portalOutlet=a.first),lt(a=mt())&&(r._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,r){n&1&&Tt("@state.done",function(c){return r.onAnimationEnd(c)}),n&2&&Pt("@state",r._animationState)},standalone:!0,features:[Dt,q],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,r){n&1&&(k(0,"div",1)(1,"div",2,0)(3,"div",3),$(4,xe,0,0,"ng-template",4),v(),Q(5,"div"),v()()),n&2&&(I(5),Et("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[gt],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:[De.snackBarState]}});let i=t;return i})();function Pe(){return new N}var Te=new st("mat-snack-bar-default-options",{providedIn:"root",factory:Pe}),ie=(()=>{let t=class t{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,n,r,a,c,u){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=a,this._parentSnackBar=c,this._defaultConfig=u,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=we,this.snackBarContainerComponent=je,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let a=p(p({},this._defaultConfig),r);return a.data={message:e,action:n},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=G.create({parent:r||this._injector,providers:[{provide:N,useValue:n}]}),c=new ft(this.snackBarContainerComponent,n.viewContainerRef,a),u=e.attach(c);return u.instance.snackBarConfig=n,u.instance}_attach(e,n){let r=p(p(p({},new N),this._defaultConfig),n),a=this._createOverlay(r),c=this._attachSnackBarContainer(a,r),u=new U(c,a);if(e instanceof It){let P=new Vt(e,null,{$implicit:r.data,snackBarRef:u});u.instance=c.attachTemplatePortal(P)}else{let P=this._createInjector(r,u),Se=new ft(e,void 0,P),Ce=c.attachComponentPortal(Se);u.instance=Ce.instance}return this._breakpointObserver.observe(Gt.HandsetPortrait).pipe(vt(a.detachments())).subscribe(P=>{a.overlayElement.classList.toggle(this.handsetCssClass,P.matches)}),r.announcementMessage&&c._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(u,r),this._openedSnackBarRef=u,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){let n=new Wt;n.direction=e.direction;let r=this._overlay.position().global(),a=e.direction==="rtl",c=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!a||e.horizontalPosition==="end"&&a,u=!c&&e.horizontalPosition!=="center";return c?r.left("0"):u?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return G.create({parent:r||this._injector,providers:[{provide:U,useValue:n},{provide:tt,useValue:e.data}]})}};t.\u0275fac=function(n){return new(n||t)(s(Xt),s($t),s(G),s(zt),s(t,12),s(Te))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Re(i,t){i&1&&Q(0,"mat-icon",3)}function Me(i,t){i&1&&Q(0,"mat-icon",4)}function Fe(i,t){i&1&&(k(0,"mat-icon",5),w(1,"error_outline"),v())}function Be(i,t){i&1&&(k(0,"mat-icon",6),w(1,"warning"),v())}var re=(()=>{let t=class t{constructor(e,n){this.bannerRef=e,this.data=n,this.NotificationTypes=E}};t.\u0275fac=function(n){return new(n||t)(_(U),_(tt))},t.\u0275cmp=z({type:t,selectors:[["ms-banner"]],standalone:!0,features:[q],decls:13,vars:2,consts:[[1,"banner"],[1,"banner-left-container"],[1,"banner-content"],["fontSet","ms","fontIcon","icon-CheckCircle",1,"mat-success"],["fontSet","ms","fontIcon","icon-Info",1,"mat-primary"],[1,"mat-error"],[1,"mat-warn"],[1,"banner-middle-container"],[1,"banner-right-container"],[1,"mat-gray",3,"click"]],template:function(n,r){if(n&1&&(k(0,"div",0)(1,"div",1)(2,"div",2),$(3,Re,1,0,"mat-icon",3)(4,Me,1,0,"mat-icon",4)(5,Fe,2,0,"mat-icon",5)(6,Be,2,0,"mat-icon",6),v()(),k(7,"div",7)(8,"div"),w(9),v()(),k(10,"div",8)(11,"mat-icon",9),W("click",function(){return r.bannerRef.dismiss()}),w(12,"clear"),v()()()),n&2){let a;I(3),K((a=r.data.notificationType)===r.NotificationTypes.SUCCESS?3:a===r.NotificationTypes.INFO?4:a===r.NotificationTypes.ERROR?5:a===r.NotificationTypes.WARNING?6:-1),I(6),Rt(r.data.message)}},dependencies:[Ht,qt],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 i=t;return i})();var Oe=5e3,ae=5e3,Ue=1e4,se=(()=>{let t=class t{constructor(e){this.snackbar=e}showSuccess(e){this.showBanner(e,E.SUCCESS,Oe,"notification-panel-success")}showInfo(e){this.showBanner(e,E.INFO,ae,"notification-panel-info")}showError(e){this.showBanner(e,E.ERROR,Ue,"notification-panel-error")}showWarning(e){this.showBanner(e,E.WARNING,ae,"notification-panel-warning")}showBanner(e,n,r,a){this.snackbar.openFromComponent(re,{duration:r,data:{message:e,notificationType:n},panelClass:a})}};t.\u0275fac=function(n){return new(n||t)(s(ie))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var m=D({source:"[Core -> Charts]",events:{"Get Current Pruning Chart Data":C(),"Get Current Pruning Chart Data Success":o(),"Get Current Pruning Chart Data Failure":o(),"Get Current Quantization Chart Data":C(),"Get Current Quantization Chart Data Success":o(),"Get Current Quantization Chart Data Failure":o(),"Get Current Machine Unlearning Chart Data":C(),"Get Current Machine Unlearning Chart Data Success":o(),"Get Current Machine Unlearning Chart Data Failure":o(),"Get Chart Configuration Settings":o(),"Get Chart Configuration Settings Success":o(),"Get Chart Configuration Settings Failure":o()}});var et=class extends y{constructor(t){let j=`type=${t.join(",")}`;super(`chart-configuration-settings?${j}`,void 0,void 0,!1)}};var it=class extends y{constructor(){super("current-machine-unlearning-chart-data",void 0,void 0,!1)}};var nt=class extends y{constructor(){super("current-pruning-chart-data",void 0,void 0,!1)}};var rt=class extends y{constructor(){super("current-quantization-chart-data",void 0,void 0,!1)}};var tn=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getCurrentPruningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentPruningChartData),F(()=>this.apiClient.serviceCall(new nt).pipe(R(r=>m.getCurrentPruningChartDataSuccess({pruningProgress:r})),M(r=>T(m.getCurrentPruningChartDataFailure({error:r}))))))),this.getCurrentQuantizationChartData$=B(()=>this.actions$.pipe(O(m.getCurrentQuantizationChartData),F(()=>this.apiClient.serviceCall(new rt).pipe(R(r=>m.getCurrentQuantizationChartDataSuccess({quantizationProgress:r})),M(r=>T(m.getCurrentQuantizationChartDataFailure({error:r}))))))),this.getCurrentMachineUnlearningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentMachineUnlearningChartData),F(()=>this.apiClient.serviceCall(new it).pipe(R(r=>m.getCurrentMachineUnlearningChartDataSuccess({machineUnlearningProgress:r})),M(r=>T(m.getCurrentMachineUnlearningChartDataFailure({error:r}))))))),this.getChartConfigurationSettings$=B(()=>this.actions$.pipe(O(m.getChartConfigurationSettings),F(r=>this.apiClient.serviceCall(new et(r.chartTypes)).pipe(R(a=>m.getChartConfigurationSettingsSuccess({settings:a})),M(a=>T(m.getChartConfigurationSettingsFailure({error:a})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var ze={pruningProgress:[],machineUnlearningProgress:void 0,quantizationProgress:void 0,settings:{},error:null},an=Z(ze,f(m.getCurrentPruningChartDataSuccess,(i,{pruningProgress:t})=>h(p({},i),{pruningProgress:t,machineUnlearningProgress:void 0,quantizationProgress:void 0,error:null})),f(m.getCurrentPruningChartDataFailure,(i,{error:t})=>h(p({},i),{pruningProgress:[],error:t})),f(m.getCurrentQuantizationChartDataSuccess,(i,{quantizationProgress:t})=>h(p({},i),{pruningProgress:[],quantizationProgress:t,machineUnlearningProgress:void 0,error:null})),f(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>h(p({},i),{quantizationProgress:void 0,error:t})),f(m.getCurrentMachineUnlearningChartDataSuccess,(i,{machineUnlearningProgress:t})=>h(p({},i),{pruningProgress:[],quantizationProgress:void 0,machineUnlearningProgress:t,error:null})),f(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>h(p({},i),{quantizationProgress:void 0,error:t})),f(m.getCurrentPruningChartDataFailure,(i,{error:t})=>h(p({},i),{pruningProgress:[],error:t})),f(m.getChartConfigurationSettingsSuccess,(i,{settings:t})=>h(p({},i),{settings:p(p({},i.settings),t),error:null})),f(m.getChartConfigurationSettingsFailure,(i,{error:t})=>h(p({},i),{error:t})));var oe=d(g,i=>i.charts.pruningProgress),ce=d(g,i=>i.charts.quantizationProgress),le=d(g,i=>i.charts.machineUnlearningProgress),me=d(g,i=>i.charts.settings);var Cn=(()=>{let t=class t{constructor(e){this.store=e,this.pruningProgress=this.store.select(oe),this.quantizationProgress$=this.store.select(ce),this.machineUnlearningProgress$=this.store.select(le),this.settings$=this.store.select(me)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var pe=D({source:"[Core -> File]",events:{"Upload File":o(),"Upload File Success":o(),"Upload File Failure":o(),"Upload File and Call Script":o()}});var ue=(()=>{let t=class t{constructor(e){this.store=e}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var yn=(()=>{let t=class t{constructor(e,n){this.bannerService=e,this.fileFacadeService=n,this._fileSubject=new Ct(null)}get isFileLoaded(){return!!this._fileSubject.value}get file$(){return this._fileSubject.asObservable()}set file(e){this._fileSubject.next(e)}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(pe.uploadFile({file:this.file}))}};t.\u0275fac=function(n){return new(n||t)(s(se),s(ue))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var jn=(()=>{let t=class t{constructor(e){this.router=e,this.history=[]}trackNavigationHistory(){this.addInitialUrl(),this.router.events.pipe(_t(e=>e instanceof Bt)).subscribe(e=>{this.history.push(e.urlAfterRedirects)})}addInitialUrl(){let e=this.router.url;this.history.push(e)}goToPreviousPage(e=Nt.MODEL_COMPRESSION.ROOT){let n=this.getPreviousUrl();n==="/"?this.router.navigateByUrl(`/${e}`):this.router.navigateByUrl(n)}getPreviousUrl(){return this.history[this.history.length-2]||"/"}};t.\u0275fac=function(n){return new(n||t)(s(Ot))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var he=d(g,i=>i.parameters);var Bn=(()=>{let t=class t{constructor(e){this.store=e,this.parameters$=this.store.select(he)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var de=d(g,i=>i.statistics.statistics);var fe=(()=>{let t=class t{constructor(e){this.store=e,this.statistics$=this.store.select(de)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var ge=d(g,i=>i.terminal.messages);var Hn=(()=>{let t=class t{constructor(e){this.store=e,this.messages$=this.store.select(ge)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var A=D({source:"[Core -> Statistics]",events:{"Get Statistics":C(),"Get Statistics Success":o(),"Get Statistics Failure":o(),"Update Statistics":o()}});var at=class extends y{constructor(){super("statistics",void 0,void 0,!1)}};var nr=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getStatistics=B(()=>this.actions$.pipe(O(A.getStatistics),F(()=>this.apiClient.serviceCall(new at).pipe(R(r=>A.getStatisticsSuccess({statistics:r})),M(r=>T(A.getStatisticsFailure({error:r})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Qe={statistics:{},error:null},or=Z(Qe,f(A.getStatisticsSuccess,(i,{statistics:t})=>h(p({},i),{statistics:t,error:null})),f(A.getStatisticsFailure,(i,{error:t})=>h(p({},i),{error:t})),f(A.updateStatistics,(i,{statistics:t})=>h(p({},i),{statistics:t,error:null})));var L=function(i){return i.TERMINAL="terminal",i.SCRIPT_STATUS="script_status",i.STATISTICS="statistics",i.CHARTS_PREFIX="chart_",i}(L||{}),qe=function(i){return i.UPDATE_TESTING="chart_updateTesting",i.UPDATE_LATEST_VALUE="chart_updateLatestValue",i.ENHANCE_SINGLE_PHASE_X_AXIS="chart_enhanceSinglePhaseXAxis",i}(qe||{});var yr=(()=>{let t=class t{handleBeforeUnload(){this.close()}constructor(e,n){this.scriptFacadeService=e,this.statisticsFacadeService=n,this.terminalMessagesSubject=new x,this.chartsMessagesSubject=new x,this.connect()}connect(){this.close(),this.socket=new WebSocket(Zt.websocketUrl),this.socket.onopen=()=>{console.log("WebSocket connected!")},this.socket.onmessage=e=>St(this,null,function*(){let n=JSON.parse(e.data),{topic:r="",data:a}=n;switch(r){case L.TERMINAL:this.terminalMessagesSubject.next(a);break;case L.SCRIPT_STATUS:this.scriptFacadeService.dispatch(Yt.updateScriptStatus({status:a}));break;case L.STATISTICS:let{statistics:c}=a||{};this.statisticsFacadeService.dispatch(A.updateStatistics({statistics:c}));break;default:r.startsWith(L.CHARTS_PREFIX)?this.chartsMessagesSubject.next({topic:r,data:a}):console.warn("Unknown message type:",r)}}),this.socket.onerror=e=>{console.error("WebSocket Error:",e)},this.socket.onclose=e=>{e.wasClean?console.log(`Closed cleanly, code=${e.code}, reason=${e.reason}`):console.error("Connection died"),bt(5e3).subscribe(()=>this.connect())}}get terminalMessages$(){return this.terminalMessagesSubject.asObservable()}get chartsMessages$(){return this.chartsMessagesSubject.asObservable()}send(e){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(e)}close(){this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.close()}};t.\u0275fac=function(n){return new(n||t)(s(ee),s(fe))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();export{Yt as a,ee as b,E as c,se as d,m as e,tn as f,an as g,Cn as h,ue as i,pe as j,yn as k,jn as l,Bn as m,fe as n,Hn as o,A as p,nr as q,or as r,qe as s,yr as t}; diff --git a/frontend/server/modelsmith-build/browser/chunk-XD2XL32D.js b/frontend/server/modelsmith-build/browser/chunk-KKBNVFSA.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-XD2XL32D.js rename to frontend/server/modelsmith-build/browser/chunk-KKBNVFSA.js index 37df5495..0b7a2491 100644 --- a/frontend/server/modelsmith-build/browser/chunk-XD2XL32D.js +++ b/frontend/server/modelsmith-build/browser/chunk-KKBNVFSA.js @@ -1 +1 @@ -import{ka as o}from"./chunk-NPZHNGVX.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{ka as o}from"./chunk-I5FNXPEQ.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-L6S33FTX.js b/frontend/server/modelsmith-build/browser/chunk-L6S33FTX.js new file mode 100644 index 00000000..8177eaa8 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-L6S33FTX.js @@ -0,0 +1,3 @@ +import{a as B,b as Ut,c as tn,d as Le,e as H,f as U,h as be,i as wt}from"./chunk-O3X4WY4E.js";import{a as Me}from"./chunk-LSF6MDDG.js";import{a as ga,b as fa}from"./chunk-JI7UWE3B.js";import"./chunk-YTNKLUWY.js";import{b as ye,c as Ce,e as we,g as At}from"./chunk-W4U3FJPJ.js";import{a as Se,b as pa}from"./chunk-I4357ONH.js";import{a as Zt,b as kt,e as Ct,h as $t,l as va,n as _a,p as ya}from"./chunk-KE2JE72J.js";import{a as yt,b as Ot}from"./chunk-COKZMNNS.js";import"./chunk-LDDHJMMZ.js";import{$ as ue,$a as Zn,Db as ia,E as st,Ea as I,Fa as W,Fb as ge,Gb as fe,J as Q,Ja as qn,Q as Z,Qa as at,Sa as R,Xb as ra,Ya as it,Za as Kn,Zb as oa,_a as Qn,_b as sa,a as E,ab as w,b as D,bb as v,be as ca,cb as A,f as S,gb as Jn,ge as la,ha as X,ia as me,jb as Rt,ka as Yn,lb as dt,p as ht,pa as Gn,pc as Je,pe as ha,qa as Vn,qb as ta,qe as da,rb as ea,re as ve,sb as na,ub as L,ue as ua,vb as aa,wb as pe,we as _e,xa as Xn,xb as Ke,xe as ma,yb as Qe,zb as Ze}from"./chunk-I5FNXPEQ.js";var Mi=Object.defineProperty,Li=(s,n,a)=>n in s?Mi(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a,x=(s,n,a)=>Li(s,typeof n!="symbol"?n+"":n,a),bi=class{requestAnimationFrame(s){return requestAnimationFrame(s)}cancelAnimationFrame(s){cancelAnimationFrame(s)}},Ai=class{constructor(){x(this,"_lastHandleId",0),x(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)}},Ii=class{constructor(){x(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new bi:new Ai}requestAnimationFrame(s){return this._strategy.requestAnimationFrame(s)}cancelAnimationFrame(s){this._strategy.cancelAnimationFrame(s)}},Pt=typeof window<"u"&&typeof window.document<"u",Ae={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"}},Pi=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,c,p,y=new Promise((t,e)=>{c=t,p=e}),Y=Object.assign({},a),ot="./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,Y),Y=null,a.thisProgram&&(ot=a.thisProgram);var Nt;a.wasmBinary&&(Nt=a.wasmBinary);var ee,hn=!1,St,O,Ft,jt,z,F,dn,un;function mn(){var t=ee.buffer;a.HEAP8=St=new Int8Array(t),a.HEAP16=Ft=new Int16Array(t),a.HEAPU8=O=new Uint8Array(t),a.HEAPU16=jt=new Uint16Array(t),a.HEAP32=z=new Int32Array(t),a.HEAPU32=F=new Uint32Array(t),a.HEAPF32=dn=new Float32Array(t),a.HEAPF64=un=new Float64Array(t)}var pn=[],gn=[],fn=[];function ka(){var t=a.preRun.shift();pn.unshift(t)}var Mt=0,zt=null;function ne(t){throw a.onAbort?.(t),t="Aborted("+t+")",xt(t),hn=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),p(t),t}var vn=t=>t.startsWith("data:application/octet-stream;base64,"),Dt;if(Dt="DotLottiePlayer.wasm",!vn(Dt)){var _n=Dt;Dt=a.locateFile?a.locateFile(_n,V):V+_n}function yn(t){if(t==Dt&&Nt)return new Uint8Array(Nt);throw"both async and sync fetching of the wasm failed"}function $a(t){return Nt||typeof fetch!="function"?Promise.resolve().then(()=>yn(t)):fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>yn(t))}function Cn(t,e,i){return $a(t).then(r=>WebAssembly.instantiate(r,e)).then(i,r=>{xt(`failed to asynchronously prepare wasm: ${r}`),ne(r)})}function Ua(t,e){var i=Dt;return Nt||typeof WebAssembly.instantiateStreaming!="function"||vn(i)||typeof fetch!="function"?Cn(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"),Cn(i,t,e)}))}var Fe=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 Wa{constructor(e){this.ya=e-24}}var Sn=0,Mn=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},Ln=(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}},ae={},De=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Bt(t){return this.fromWireType(F[t>>2])}var Tt={},bt={},ie={},Ht,vt=(t,e,i)=>{function r(d){if(d=i(d),d.length!==t.length)throw new Ht("Mismatched type converter count");for(var g=0;g{bt.hasOwnProperty(d)?o[g]=bt[d]:(l.push(d),Tt.hasOwnProperty(d)||(Tt[d]=[]),Tt[d].push(()=>{o[g]=bt[d],++u,u===l.length&&r(o)}))}),l.length===0&&r(o)},bn,N=t=>{for(var e="";O[t];)e+=bn[O[t++]];return e},M;function Na(t,e,i={}){var r=e.name;if(!t)throw new M(`type "${r}" must have a positive integer typeid pointer`);if(bt.hasOwnProperty(t)){if(i.ib)return;throw new M(`Cannot register type '${r}' twice`)}bt[t]=e,delete ie[t],Tt.hasOwnProperty(t)&&(e=Tt[t],delete Tt[t],e.forEach(o=>o()))}function J(t,e,i={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Na(t,e,i)}var Te=t=>{throw new M(t.ma.za.xa.name+" instance already deleted")},Re=!1,An=()=>{},In=(t,e,i)=>e===i?t:i.Ca===void 0?null:(t=In(t,e,i.Ca),t===null?null:i.ab(t)),Pn={},Yt=[],Oe=()=>{for(;Yt.length;){var t=Yt.pop();t.ma.Ka=!1,t.delete()}},Gt,Vt={},ja=(t,e)=>{if(e===void 0)throw new M("ptr should not be undefined");for(;t.Ca;)e=t.Na(e),t=t.Ca;return Vt[e]},re=(t,e)=>{if(!e.za||!e.ya)throw new Ht("makeClassHandle requires ptr and ptrType");if(!!e.Da!=!!e.Aa)throw new Ht("Both smartPtrType and smartPtr must be specified");return e.count={value:1},Xt(Object.create(t,{ma:{value:e,writable:!0}}))},Xt=t=>typeof FinalizationRegistry>"u"?(Xt=e=>e,t):(Re=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))}),Xt=e=>{var i=e.ma;return i.Aa&&Re.register(e,{ma:i},e),e},An=e=>{Re.unregister(e)},Xt(t));function oe(){}var qt=(t,e)=>Object.defineProperty(e,"name",{value:t}),En=(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 M(`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}},ke=(t,e,i)=>{if(a.hasOwnProperty(t)){if(i===void 0||a[t].Ba!==void 0&&a[t].Ba[i]!==void 0)throw new M(`Cannot register public name '${t}' twice`);if(En(a,t,t),a.hasOwnProperty(i))throw new M(`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)},za=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 Ba(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 $e=(t,e,i)=>{for(;e!==i;){if(!e.Na)throw new M(`Expected null or instance of ${i.name}, got an instance of ${e.name}`);t=e.Na(t),e=e.Ca}return t};function Ha(t,e){if(e===null){if(this.Ta)throw new M(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new M(`Cannot pass "${He(e)}" as a ${this.name}`);if(!e.ma.ya)throw new M(`Cannot pass deleted object as a pointer of type ${this.name}`);return $e(e.ma.ya,e.ma.za.xa,this.xa)}function Ya(t,e){if(e===null){if(this.Ta)throw new M(`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 M(`Cannot pass "${He(e)}" as a ${this.name}`);if(!e.ma.ya)throw new M(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&e.ma.za.Pa)throw new M(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);if(i=$e(e.ma.ya,e.ma.za.xa,this.xa),this.Qa){if(e.ma.Aa===void 0)throw new M("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 M(`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,ce(()=>r.delete())),t!==null&&t.push(this.Fa,i)}break;default:throw new M("Unsupporting sharing policy")}}return i}function Ga(t,e){if(e===null){if(this.Ta)throw new M(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new M(`Cannot pass "${He(e)}" as a ${this.name}`);if(!e.ma.ya)throw new M(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.ma.za.Pa)throw new M(`Cannot convert argument of type ${e.ma.za.name} to parameter type ${this.name}`);return $e(e.ma.ya,e.ma.za.xa,this.xa)}function Kt(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=Ya:(this.toWireType=r?Ha:Ga,this.Ea=null)}var xn=(t,e,i)=>{if(!a.hasOwnProperty(t))throw new Ht("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,Va=(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),Xa=(t,e)=>(...i)=>Va(t,e,i),G=(t,e)=>{t=N(t);var i=t.includes("j")?Xa(t,e):K.get(e);if(typeof i!="function")throw new M(`unknown function pointer with signature ${t}: ${e}`);return i},Fn,Dn=t=>{t=jn(t);var e=N(t);return lt(t),e},se=(t,e)=>{function i(l){o[l]||bt[l]||(ie[l]?ie[l].forEach(i):(r.push(l),o[l]=!0))}var r=[],o={};throw e.forEach(i),new Fn(`${t}: `+r.map(Dn).join([", "]))},Ue=(t,e)=>{for(var i=[],r=0;r>2]);return i};function qa(t){for(var e=1;el)throw new M("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=e[1]!==null&&i!==null,d=qa(e),g=e[0].name!=="void",m=l-2,f=Array(m),b=[],P=[];return qt(t,function(...h){if(h.length!==m)throw new M(`function ${t} called with ${h.length} arguments, expected ${m}`);if(P.length=0,b.length=u?2:1,b[0]=o,u){var _=e[1].toWireType(P,this);b[1]=_}for(var C=0;C{t=t.trim();let e=t.indexOf("(");return e!==-1?t.substr(0,e):t},Ne=[],ct=[],je=t=>{9{if(!t)throw new M("Cannot use deleted val. handle = "+t);return ct[t]},ce=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let e=Ne.pop()||ct.length;return ct[e]=t,ct[e+1]=1,e}},Rn={name:"emscripten::val",fromWireType:t=>{var e=ze(t);return je(t),e},toWireType:(t,e)=>ce(e),argPackAdvance:8,readValueFromPointer:Bt,Ea:null},Ka=(t,e,i)=>{switch(e){case 1:return i?function(r){return this.fromWireType(St[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(jt[r>>1])};case 4:return i?function(r){return this.fromWireType(z[r>>2])}:function(r){return this.fromWireType(F[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Be=(t,e)=>{var i=bt[t];if(i===void 0)throw t=`${e} has unknown type ${Dn(t)}`,new M(t);return i},He=t=>{if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t},Qa=(t,e)=>{switch(e){case 4:return function(i){return this.fromWireType(dn[i>>2])};case 8:return function(i){return this.fromWireType(un[i>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Za=(t,e,i)=>{switch(e){case 1:return i?r=>St[r]:r=>O[r];case 2:return i?r=>Ft[r>>1]:r=>jt[r>>1];case 4:return i?r=>z[r>>2]:r=>F[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},On=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Ja=(t,e)=>{for(var i=t>>1,r=i+e/2;!(i>=r)&&jt[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},ti=(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},ei=t=>2*t.length,ni=(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},ai=(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},ii=t=>{for(var e=0,i=0;i=r&&++i,e+=4}return e},Ye=[],ri=t=>{var e=Ye.length;return Ye.push(t),e},oi=(t,e)=>{for(var i=Array(t),r=0;r>2],"parameter "+r);return i},si=Reflect.construct,Ge={},kn=()=>{if(!Ve){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",_:ot||"./this.program"},e;for(e in Ge)Ge[e]===void 0?delete t[e]:t[e]=Ge[e];var i=[];for(e in t)i.push(`${e}=${t[e]}`);Ve=i}return Ve},Ve,ci=[null,[],[]],li=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);ne("initRandomDevice")},$n=t=>($n=li())(t),le=t=>t%4===0&&(t%100!==0||t%400===0),Un=[31,29,31,30,31,30,31,31,30,31,30,31],Wn=[31,28,31,30,31,30,31,31,30,31,30,31];function hi(t){var e=Array(Mn(t)+1);return Ln(t,e,0,e.length),e}var di=(t,e,i,r)=>{function o(h,_,C){for(h=typeof h=="number"?h.toString():h||"";h.length<_;)h=C[0]+h;return h}function l(h,_){return o(h,_,"0")}function u(h,_){function C(_t){return 0>_t?-1:0<_t?1:0}var $;return($=C(h.getFullYear()-_.getFullYear()))===0&&($=C(h.getMonth()-_.getMonth()))===0&&($=C(h.getDate()-_.getDate())),$}function d(h){switch(h.getDay()){case 0:return new Date(h.getFullYear()-1,11,29);case 1:return h;case 2:return new Date(h.getFullYear(),0,3);case 3:return new Date(h.getFullYear(),0,2);case 4:return new Date(h.getFullYear(),0,1);case 5:return new Date(h.getFullYear()-1,11,31);case 6:return new Date(h.getFullYear()-1,11,30)}}function g(h){var _=h.Ia;for(h=new Date(new Date(h.Ja+1900,0,1).getTime());0<_;){var C=h.getMonth(),$=(le(h.getFullYear())?Un:Wn)[C];if(_>$-h.getDate())_-=$-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()+_);break}}return C=new Date(h.getFullYear()+1,0,4),_=d(new Date(h.getFullYear(),0,4)),C=d(C),0>=u(_,h)?0>=u(C,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var m=F[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 b="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),P="January February March April May June July August September October November December".split(" ");m={"%a":h=>b[h.Ga].substring(0,3),"%A":h=>b[h.Ga],"%b":h=>P[h.Sa].substring(0,3),"%B":h=>P[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 _=0,C=0;C<=h.Sa-1;_+=(le(h.Ja+1900)?Un:Wn)[C++]);return l(h.Va+_,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 _=Math.floor((h.Ia+7-(h.Ga+6)%7)/7);if(2>=(h.Ga+371-h.Ia-2)%7&&_++,_)_==53&&(C=(h.Ga+371-h.Ia)%7,C==4||C==3&&le(h.Ja)||(_=1));else{_=52;var C=(h.Ga+7-h.Ia-1)%7;(C==4||C==5&&le(h.Ja%400-1))&&_++}return l(_,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 _=0<=h;return h=Math.abs(h)/60,(_?"+":"-")+("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=hi(i),f.length>e?0:(St.set(f,t),f.length-1)};Ht=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}};for(var Nn=Array(256),he=0;256>he;++he)Nn[he]=String.fromCharCode(he);bn=Nn,M=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Object.assign(oe.prototype,{isAliasOf:function(t){if(!(this instanceof oe&&t instanceof oe))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||Te(this),this.ma.Ma)return this.ma.count.value+=1,this;var t=Xt,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||Te(this),this.ma.Ka&&!this.ma.Ma)throw new M("Object already scheduled for deletion");An(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||Te(this),this.ma.Ka&&!this.ma.Ma)throw new M("Object already scheduled for deletion");return Yt.push(this),Yt.length===1&&Gt&&Gt(Oe),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(Vt).length,a.getLiveInheritedInstances=()=>{var t=[],e;for(e in Vt)Vt.hasOwnProperty(e)&&t.push(Vt[e]);return t},a.flushPendingDeletes=Oe,a.setDelayFunction=t=>{Gt=t,Yt.length&&Gt&&Gt(Oe)},Object.assign(Kt.prototype,{eb(t){return this.Za&&(t=this.Za(t)),t},Xa(t){this.Fa?.(t)},argPackAdvance:8,readValueFromPointer:Bt,fromWireType:function(t){function e(){return this.Qa?re(this.xa.La,{za:this.jb,ya:i,Da:this,Aa:t}):re(this.xa.La,{za:this,ya:t})}var i=this.eb(t);if(!i)return this.Xa(t),null;var r=ja(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=Pn[r],!r)return e.call(this);r=this.Pa?r.$a:r.pointerType;var o=In(i,this.xa,r.xa);return o===null?e.call(this):this.Qa?re(r.xa.La,{za:r,ya:o,Da:this,Aa:t}):re(r.xa.La,{za:r,ya:o})}}),Fn=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"),ct.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>ct.length/2-5-Ne.length;var ui={c:(t,e,i,r)=>{ne(`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 Wa(t);throw F[r.ya+16>>2]=0,F[r.ya+4>>2]=e,F[r.ya+8>>2]=i,Sn=t,Sn},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:t=>{var e=ae[t];delete ae[t];var i=e.Ua,r=e.Fa,o=e.Ya,l=o.map(u=>u.hb).concat(o.map(u=>u.nb));vt([t],l,u=>{var d={};return o.forEach((g,m)=>{var f=u[m],b=g.fb,P=g.gb,h=u[m+o.length],_=g.mb,C=g.ob;d[g.bb]={read:$=>f.fromWireType(b(P,$)),write:($,_t)=>{var q=[];_(C,$,h.toWireType(q,_t)),De(q)}}}),[{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 b=i();for(f in d)d[f].write(b,m[f]);return g!==null&&g.push(r,b),b},argPackAdvance:8,readValueFromPointer:Bt,Ea:r}]})},I:()=>{},Y:(t,e,i,r)=>{e=N(e),J(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,b,P)=>{f=N(f),l=G(o,l),d&&(d=G(u,d)),m&&(m=G(g,m)),P=G(b,P);var h=za(f);ke(h,function(){se(`Cannot construct ${f} due to unbound types`,[r])}),vt([t,e,i],r?[r]:[],_=>{if(_=_[0],r)var C=_.xa,$=C.La;else $=oe.prototype;_=qt(f,function(...qe){if(Object.getPrototypeOf(this)!==_t)throw new M("Use 'new' to construct "+f);if(q.Ha===void 0)throw new M(f+" has no accessible constructor");var Hn=q.Ha[qe.length];if(Hn===void 0)throw new M(`Tried to invoke ctor of ${f} with invalid number of parameters (${qe.length}) - expected (${Object.keys(q.Ha).toString()}) parameters instead!`);return Hn.apply(this,qe)});var _t=Object.create($,{constructor:{value:_}});_.prototype=_t;var q=new Ba(f,_,_t,P,C,l,d,m);if(q.Ca){var Qt;(Qt=q.Ca).Wa??(Qt.Wa=[]),q.Ca.Wa.push(q)}return C=new Kt(f,q,!0,!1,!1),Qt=new Kt(f+"*",q,!1,!1,!1),$=new Kt(f+" const*",q,!1,!0,!1),Pn[t]={pointerType:Qt,$a:$},xn(h,_),[C,Qt,$]})},q:(t,e,i,r,o,l)=>{var u=Ue(e,i);o=G(r,o),vt([],[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 M(`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]=()=>{se(`Cannot construct ${d.name} due to unbound types`,u)},vt([],u,m=>(m.splice(1,0,null),d.xa.Ha[e-1]=We(g,m,null,o,l),[])),[]})},f:(t,e,i,r,o,l,u,d)=>{var g=Ue(i,r);e=N(e),e=Tn(e),l=G(o,l),vt([],[t],m=>{function f(){se(`Cannot call ${b} due to unbound types`,g)}m=m[0];var b=`${m.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),d&&m.xa.kb.push(e);var P=m.xa.La,h=P[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,P[e]=f):(En(P,e,b),P[e].Ba[i-2]=f),vt([],g,_=>(_=We(b,_,m,l,u),P[e].Ba===void 0?(_.Oa=i-2,P[e]=_):P[e].Ba[i-2]=_,[])),[]})},X:t=>J(t,Rn),x:(t,e,i,r)=>{function o(){}e=N(e),o.values={},J(t,{name:e,constructor:o,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,u)=>u.value,argPackAdvance:8,readValueFromPointer:Ka(e,i,r),Ea:null}),ke(e,o)},k:(t,e,i)=>{var r=Be(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),J(t,{name:e,fromWireType:r=>r,toWireType:(r,o)=>o,argPackAdvance:8,readValueFromPointer:Qa(e,i),Ea:null})},E:(t,e,i,r,o,l)=>{var u=Ue(e,i);t=N(t),t=Tn(t),o=G(r,o),ke(t,function(){se(`Cannot call ${t} due to unbound types`,u)},e-1),vt([],u,d=>(xn(t,We(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};J(t,{name:e,fromWireType:o,toWireType:u,argPackAdvance:8,readValueFromPointer:Za(e,i,r!==0),Ea:null})},g:(t,e,i)=>{function r(l){return new o(St.buffer,F[l+4>>2],F[l>>2])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];i=N(i),J(t,{name:i,fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ib:!0})},w:t=>{J(t,Rn)},ca:(t,e,i,r,o,l,u,d,g,m,f,b)=>{i=N(i),l=G(o,l),d=G(u,d),m=G(g,m),b=G(f,b),vt([t],[e],P=>(P=P[0],[new Kt(i,P.xa,!1,!1,!0,P,r,l,d,m,b)]))},D:(t,e)=>{e=N(e);var i=e==="std::string";J(t,{name:e,fromWireType:function(r){var o=F[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)Ln(o,O,g,u+1);else if(l)for(l=0;l{if(i=N(i),e===2)var r=Ja,o=ti,l=ei,u=d=>jt[d>>1];else e===4&&(r=ni,o=ai,l=ii,u=d=>F[d>>2]);J(t,{name:i,fromWireType:d=>{for(var g=F[d>>2],m,f=d+4,b=0;b<=g;++b){var P=d+4+b*e;(b==g||u(P)==0)&&(f=r(f,P-f),m===void 0?m=f:(m+="\0",m+=f),f=P+e)}return lt(d),m},toWireType:(d,g)=>{if(typeof g!="string")throw new M(`Cannot pass non-string to C++ string type ${i}`);var m=l(g),f=Xe(4+m+e);return F[f>>2]=m/e,o(g,f+4,m+e),d!==null&&d.push(lt,f),f},argPackAdvance:8,readValueFromPointer:Bt,Ea(d){lt(d)}})},s:(t,e,i,r,o,l)=>{ae[t]={name:N(e),Ua:G(i,r),Fa:G(o,l),Ya:[]}},j:(t,e,i,r,o,l,u,d,g,m)=>{ae[t].Ya.push({bb:N(e),hb:i,fb:G(r,o),gb:l,nb:u,mb:G(d,g),ob:m})},Z:(t,e)=>{e=N(e),J(t,{ub:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{throw 1/0},aa:(t,e,i,r)=>(t=Ye[t],e=ze(e),t(null,e,i,r)),F:je,$:(t,e,i)=>{var r=oi(t,e),o=r.shift();t--;var l=Array(t);return e=`methodCaller<(${r.map(u=>u.name).join(", ")}) => ${o.name}>`,ri(qt(e,(u,d,g,m)=>{for(var f=0,b=0;b>2]=ce(u)),d}))},ba:t=>{9{var e=ze(t);De(e),je(t)},o:(t,e)=>(t=Be(t,"_emval_take_value"),t=t.readValueFromPointer(e),ce(t)),W:()=>{ne("")},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)-ee.buffer.byteLength+65535)/65536;try{ee.grow(o),mn();var l=1;break t}catch{}l=void 0}if(l)return!0}return!1},S:(t,e)=>{var i=0;return kn().forEach((r,o)=>{var l=e+i;for(o=F[t+4*o>>2]=l,l=0;l{var i=kn();F[t>>2]=i.length;var r=0;return i.forEach(o=>r+=o.length+1),F[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=F[e+4>>2];e+=8;for(var g=0;g>2]=o,0},U:(t,e)=>($n(O.subarray(t,t+e)),0),i:vi,d:fi,e:gi,p:_i,y:wi,b:mi,a:pi,h:Ci,n:yi,G:Si,K:(t,e,i,r)=>di(t,e,i,r)},k=function(){function t(i){return k=i.exports,ee=k.da,mn(),K=k.ha,gn.unshift(k.ea),Mt--,a.monitorRunDependencies?.(Mt),Mt==0&&zt&&(i=zt,zt=null,i()),k}var e={a:ui};if(Mt++,a.monitorRunDependencies?.(Mt),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(i){xt(`Module.instantiateWasm callback failed with error: ${i}`),p(i)}return Ua(e,function(i){t(i.instance)}).catch(p),{}}(),Xe=t=>(Xe=k.fa)(t),jn=t=>(jn=k.ga)(t),lt=t=>(lt=k.ia)(t),tt=(t,e)=>(tt=k.ja)(t,e),et=t=>(et=k.ka)(t),nt=()=>(nt=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 zn=a.dynCall_viiij=(t,e,i,r,o,l)=>(zn=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 mi(t,e){var i=nt();try{K.get(t)(e)}catch(r){if(et(i),r!==r+0)throw r;tt(1,0)}}function pi(t,e,i){var r=nt();try{K.get(t)(e,i)}catch(o){if(et(r),o!==o+0)throw o;tt(1,0)}}function gi(t,e,i,r){var o=nt();try{return K.get(t)(e,i,r)}catch(l){if(et(o),l!==l+0)throw l;tt(1,0)}}function fi(t,e,i){var r=nt();try{return K.get(t)(e,i)}catch(o){if(et(r),o!==o+0)throw o;tt(1,0)}}function vi(t,e){var i=nt();try{return K.get(t)(e)}catch(r){if(et(i),r!==r+0)throw r;tt(1,0)}}function _i(t,e,i,r,o,l){var u=nt();try{return K.get(t)(e,i,r,o,l)}catch(d){if(et(u),d!==d+0)throw d;tt(1,0)}}function yi(t,e,i,r,o){var l=nt();try{K.get(t)(e,i,r,o)}catch(u){if(et(l),u!==u+0)throw u;tt(1,0)}}function Ci(t,e,i,r){var o=nt();try{K.get(t)(e,i,r)}catch(l){if(et(o),l!==l+0)throw l;tt(1,0)}}function wi(t){var e=nt();try{K.get(t)()}catch(i){if(et(e),i!==i+0)throw i;tt(1,0)}}function Si(t,e,i,r,o,l){var u=nt();try{zn(t,e,i,r,o,l)}catch(d){if(et(u),d!==d+0)throw d;tt(1,0)}}var de;zt=function t(){de||Bn(),de||(zt=t)};function Bn(){function t(){if(!de&&(de=!0,a.calledRun=!0,!hn)){if(Fe(gn),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();fn.unshift(e)}Fe(fn)}}if(!(0s})})}static _loadWithBackup(){return S(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(s=>S(this,null,function*(){let n=`https://unpkg.com/${Ae.name}@${Ae.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 S(this,null,function*(){return this._loadWithBackup()})}static setWasmUrl(s){this._wasmURL=s,this._ModulePromise=null}};x(Ie,"_ModulePromise",null),x(Ie,"_wasmURL",`https://cdn.jsdelivr.net/npm/${Ae.name}@${Ae.version}/dist/dotlottie-player.wasm`);var Ma=class{constructor(){x(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 xi(s){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(s)}function Fi(s){if(!xi(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var en=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,nn=(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,an=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},rn=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},La=class T{constructor(n){x(this,"_canvas"),x(this,"_context",null),x(this,"_eventManager"),x(this,"_animationFrameId",null),x(this,"_frameManager"),x(this,"_dotLottieCore",null),x(this,"_renderConfig",{}),x(this,"_isFrozen",!1),x(this,"_backgroundColor",null),this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new Ma,this._frameManager=new Ii,this._renderConfig=n.renderConfig??{},Ie.load().then(a=>{T._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:en(n.mode??"forward",a),segment:rn(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:an(n.layout.align,a),fit:nn(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 S(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(),y;return["application/json","text/plain"].some(Y=>p.startsWith(Y))?y=yield c.text():y=yield c.arrayBuffer(),y})}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 T._wasmModule?.Fit.Contain:return"contain";case T._wasmModule?.Fit.Cover:return"cover";case T._wasmModule?.Fit.Fill:return"fill";case T._wasmModule?.Fit.FitHeight:return"fit-height";case T._wasmModule?.Fit.FitWidth:return"fit-width";case T._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===T._wasmModule?.Mode.Reverse?"reverse":n===T._wasmModule?.Mode.Bounce?"bounce":n===T._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||T._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:en(n.mode??"forward",T._wasmModule),segment:rn(n.segment??[],T._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:an(n.layout.align,T._wasmModule),fit:nn(n.layout.fit,T._wasmModule)}:T._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(D(E({},this._dotLottieCore.config()),{speed:n}))}setBackgroundColor(n){this._dotLottieCore!==null&&(Pt&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{backgroundColor:Fi(n)})),this._backgroundColor=n)}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{loopAnimation:n}))}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(D(E({},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||T._wasmModule===null||this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{segment:rn([n,a],T._wasmModule)}))}setMode(n){this._dotLottieCore===null||T._wasmModule===null||this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{mode:en(n,T._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(D(E({},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',Ti=class{constructor(){x(this,"_workers",new Map),x(this,"_animationWorkerMap",new Map)}_createWorker(s){let n=new Blob([Di],{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){x(this,"_eventManager",new Ma),x(this,"_id"),x(this,"_worker"),x(this,"_canvas"),x(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}),x(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 S(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 S(this,null,function*(){let a;this._canvas instanceof HTMLCanvasElement?a=this._canvas.transferControlToOffscreen():a=this._canvas;let{instanceId:c}=yield this._sendMessage("create",E({instanceId:this._id,config:D(E({},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 S(this,null,function*(){this._created&&(yield this._sendMessage("play",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}pause(){return S(this,null,function*(){this._created&&(yield this._sendMessage("pause",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}stop(){return S(this,null,function*(){this._created&&(yield this._sendMessage("stop",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSpeed(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setSpeed",{instanceId:this._id,speed:n}),yield this._updateDotLottieInstanceState())})}setMode(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setMode",{instanceId:this._id,mode:n}),yield this._updateDotLottieInstanceState())})}setFrame(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setFrame",{frame:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSegment(n,a){return S(this,null,function*(){this._created&&(yield this._sendMessage("setSegment",{instanceId:this._id,segment:[n,a]}),yield this._updateDotLottieInstanceState())})}setRenderConfig(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:n}),yield this._updateDotLottieInstanceState())})}setUseFrameInterpolation(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:n}),yield this._updateDotLottieInstanceState())})}loadTheme(n){return S(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 S(this,null,function*(){this._created&&(yield this._sendMessage("load",{config:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLoop(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setLoop",{instanceId:this._id,loop:n}),yield this._updateDotLottieInstanceState())})}resize(){return S(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 S(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 S(this,null,function*(){this._created&&(yield this._sendMessage("freeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}unfreeze(){return S(this,null,function*(){this._created&&(yield this._sendMessage("unfreeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setBackgroundColor(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:n}),yield this._updateDotLottieInstanceState())})}loadAnimation(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("loadAnimation",{animationId:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLayout(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setLayout",{instanceId:this._id,layout:n}),yield this._updateDotLottieInstanceState())})}_updateDotLottieInstanceState(){return S(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 S(this,null,function*(){this._created&&(yield this._sendMessage("setMarker",{instanceId:this._id,marker:n}),yield this._updateDotLottieInstanceState())})}loadThemeData(n){return S(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 S(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 S(this,null,function*(){let p={id:`dotlottie-request-${wa()}`,method:n,params:a};return this._worker.postMessage(p,c||[]),new Promise((y,Y)=>{let ot=V=>{let Et=V.data;Et.id===p.id&&(this._worker.removeEventListener("message",ot),Et.error?Y(new Error(`Failed to execute method ${n}: ${Et.error}`)):y(Et.result))};this._worker.addEventListener("message",ot)})})}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 S(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 S(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 S(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}postStateMachineEvent(n){return S(this,null,function*(){return this._created?this._sendMessage("postStateMachineEvent",{event:n,instanceId:this._id}):!1})}getStateMachineListeners(){return S(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,y=this._dotLottieInstanceState.renderConfig.devicePixelRatio||window.devicePixelRatio||1,Y=(n.clientX-a.left)*c/y,ot=(n.clientY-a.top)*p/y;return{x:Y,y:ot}}_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 S(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)))}};x(Sa,"_workerManager",new Ti),x(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 Wt=function(s){return s.QUANTIZATION="quant",s.PRUNING="pruning",s}(Wt||{});var Ia={[Wt.PRUNING]:{path:"assets/animations/pruning.lottie",speed:.15,className:"pruning"},[Wt.QUANTIZATION]:{path:"assets/animations/quantization.lottie",speed:.07,className:"quant"}};var Oi=["dotlottieCanvas"],ut,Jt=(ut=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(Ot(this)).subscribe(n=>{ye(n)?this.playAnimation():this.stopAnimation()})}playAnimation(){this.dotLottie?.play()}stopAnimation(){this.dotLottie?.stop()}},ut.\u0275fac=function(a){return new(a||ut)(W(kt),W(Xn),W(qn))},ut.\u0275cmp=X({type:ut,selectors:[["ms-running-animation"]],viewQuery:function(a,c){if(a&1&&ta(Oi,7),a&2){let p;ea(p=na())&&(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),A(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}),ut);ht([Aa],Jt.prototype,"animationType",void 0);Jt=ht([yt()],Jt);var j=function(s){return s.ACCURACY="accuracy",s.LOSS="loss",s}(j||{}),$i=100,te=(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:[$i,...n]}]},on=(s,n)=>[{datasetIndex:0,values:s.steps.map(a=>a[n]).filter(a=>a!=null)}],sn=(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)}],cn=(s,n)=>s.epochs.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])})),ln=(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(Ct.getCurrentMachineUnlearningChartData())}loadLatestChartsData(){this.chartsFacadeService.machineUnlearningProgress$.pipe(Z(1),st(c=>!Ce(c)),Q(1)).subscribe(c=>{this.initialAccuracyChartData=cn(c,j.ACCURACY),this.initialLossChartData=cn(c,j.LOSS),this.initialAccuracyTestingChartData=ln(c,j.ACCURACY),this.initialLossTestingChartData=ln(c,j.LOSS)})}};n.\u0275fac=function(p){return new(p||n)(W($t))},n.\u0275cmp=X({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,y){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),L(4,"Accuracy Training"),v(),A(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),L(8,"Accuracy Test"),v(),A(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),L(13,"Loss Training"),v(),A(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),L(17,"Loss Test"),v(),A(18,"ms-line-chart",4),v()()()),p&2&&(I(5),R("data",y.initialAccuracyChartData)("settings",y.accuracyChartDisplaySettings),I(4),R("data",y.initialAccuracyTestingChartData)("settings",y.testingAccuracyChartDisplaySettings),I(5),R("data",y.initialLossChartData)("settings",y.lossChartDisplaySettings),I(4),R("data",y.initialLossTestingChartData)("settings",y.testingLossChartDisplaySettings))},dependencies:[wt],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 rt=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}(rt||{});var pt,Pe=(pt=class{constructor(n){this.chartsFacadeService=n,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.lossPruningChartSettings={},this.lossChartDisplaySettings=D(E({},Ut),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:tn,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS}),this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings=D(E({},Ut),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Le,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}),this.initialAccuracyChartData=[],this.accuracyPruningChartSettings={},this.accuracyChartDisplaySettings=D(E({},Ut),{chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:tn,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY}),this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings=D(E({},Ut),{yAxisTickInterval:20,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Le,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}),this.initialSparsityChartData=[],this.sparsityPruningChartSettings={},this.sparsityChartDisplaySettings=D(E({},Ut),{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[rt.ACCURACY_PRUNING]||{},this.accuracyChartDisplaySettings=D(E({},this.accuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.testingAccuracyChartDisplaySettings=D(E({},this.testingAccuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.lossPruningChartSettings=D(E({},n[rt.LOSS_PRUNING]||{}),{testingSteps:Le}),this.lossChartDisplaySettings=D(E({},this.lossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.testingLossChartDisplaySettings=D(E({},this.testingLossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.sparsityPruningChartSettings=E({},n[rt.SPARSITY_PRUNING]||{}),this.sparsityChartDisplaySettings=D(E({},this.sparsityChartDisplaySettings),{xAxisDataPointsCount:this.sparsityPruningChartSettings.pruningTimes+1}),this.chartsFacadeService.dispatch(Ct.getCurrentPruningChartData()))}),this.chartsFacadeService.dispatch(Ct.getChartConfigurationSettings({chartTypes:[rt.ACCURACY_PRUNING,rt.LOSS_PRUNING,rt.SPARSITY_PRUNING]}))}loadLatestChartsData(){this.chartsFacadeService.pruningProgress.pipe(Z(1),st(n=>!!n&&n.length>0),Q(1)).subscribe(n=>{this.initialLossChartData=te(n,j.LOSS),this.initialLossTestingChartData=te(n,j.LOSS,!0),this.initialAccuracyChartData=te(n,j.ACCURACY),this.initialAccuracyTestingChartData=te(n,j.ACCURACY,!0),this.initialSparsityChartData=Pa(n)})}},pt.\u0275fac=function(a){return new(a||pt)(W($t))},pt.\u0275cmp=X({type:pt,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),L(4,"Accuracy Training"),v(),A(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),L(8,"Accuracy Test"),v(),A(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),L(13,"Loss Training"),v(),A(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),L(17,"Loss Test"),v(),A(18,"ms-line-chart",4),v()(),w(19,"div",7)(20,"p",3),L(21,"Sparsity Training"),v(),A(22,"ms-line-chart",4),v()()),a&2&&(I(5),R("data",c.initialAccuracyChartData)("settings",c.accuracyChartDisplaySettings),I(4),R("data",c.initialAccuracyTestingChartData)("settings",c.testingAccuracyChartDisplaySettings),I(5),R("data",c.initialLossChartData)("settings",c.lossChartDisplaySettings),I(4),R("data",c.initialLossTestingChartData)("settings",c.testingLossChartDisplaySettings),I(4),R("data",c.initialSparsityChartData)("settings",c.sparsityChartDisplaySettings))},dependencies:[wt],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%}"]}),pt);Pe=ht([yt()],Pe);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=D(E({},this.accuracyChartDisplaySettings),{xAxisDataPointsCount:c[rt.ACCURACY_QUANTIZATION]?.reconstructions}),this.chartsFacadeService.dispatch(Ct.getCurrentQuantizationChartData()))}),this.chartsFacadeService.dispatch(Ct.getChartConfigurationSettings({chartTypes:[rt.ACCURACY_QUANTIZATION]}))}loadLatestChartsData(){this.chartsFacadeService.quantizationProgress$.pipe(Z(1),st(c=>!!c),Q(1)).subscribe(c=>this.processChartData(c))}processChartData(c){this.initialLossChartData=sn(c.reconstructions,j.LOSS),this.initialAccuracyChartData=sn(c.reconstructions,j.ACCURACY),this.initialLossTestingChartData=on(c.testing,j.LOSS),this.initialAccuracyTestingChartData=on(c.testing,j.ACCURACY)}};n.\u0275fac=function(p){return new(p||n)(W($t))},n.\u0275cmp=X({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,y){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),L(4,"Accuracy Training"),v(),A(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),L(8,"Accuracy Test"),v(),A(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),L(13,"Loss Training"),v(),A(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),L(17,"Loss Test"),v(),A(18,"ms-line-chart",4),v()()()),p&2&&(I(5),R("data",y.initialAccuracyChartData)("settings",y.accuracyChartDisplaySettings),I(4),R("data",y.initialAccuracyTestingChartData)("settings",y.accuracyTestingChartDisplaySettings),I(5),R("data",y.initialLossChartData)("settings",y.lossChartDisplaySettings),I(4),R("data",y.initialLossTestingChartData)("settings",y.lossTestingChartDisplaySettings))},dependencies:[wt],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 y=p.slice(0,-2).join("_"),Y=p[p.length-1];return`${this.keyMap[y]||y.split("_").map(V=>V.charAt(0).toUpperCase()+V.slice(1)).join(" ")} (Test #${Y})`}};n.\u0275fac=function(p){return new(p||n)},n.\u0275pipe=Yn({name:"readableStatisticsLabel",type:n,pure:!0});let s=n;return s})();var Yi=s=>({stats:s});function Gi(s,n){if(s&1&&(w(0,"div",4)(1,"span",5),L(2),ge(3,"readableStatisticsLabel"),v(),w(4,"span",6),L(5),v()()),s&2){let a=n.$implicit;I(2),pe("",fe(3,2,a.key),":"),I(3),aa(a.value)}}function Vi(s,n){if(s&1&&(w(0,"div",2),Qn(1,Gi,6,4,"div",4,Kn),v()),s&2){let a=dt();I(),Zn(a.stats)}}function Xi(s,n){s&1&&A(0,"ms-empty-state",3)}function qi(s,n){if(s&1&&at(0,Vi,3,0,"div",2)(1,Xi,1,0,"ms-empty-state",3),s&2){let a=n;it(a.stats!=null&&a.stats.length?0:1)}}var Ra=(()=>{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=X({type:n,selectors:[["ms-running-statistics"]],decls:6,vars:7,consts:[[1,"ms-card"],[1,"heading-section-title"],[1,"key-value-container","dense"],["title","No statistics available."],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"]],template:function(p,y){if(p&1&&(w(0,"mat-card",0)(1,"p",1),L(2,"Statistics"),v(),at(3,qi,2,1),ge(4,"async"),ge(5,"keyvalue"),v()),p&2){let Y;I(3),it((Y=ia(5,Yi,fe(5,3,fe(4,1,y.statistics$))))?3:-1,Y)}},dependencies:[Me,Se,ra,oa,Ta]});let s=n;return s})();function Ji(s,n){if(s&1){let a=Jn();w(0,"div",4)(1,"button",18),Rt("click",function(){Gn(a);let p=dt();return Vn(p.runStopScript())}),L(2," Stop "),v()()}}function tr(s,n){s&1&&(w(0,"div",16)(1,"div",13),L(2,"\u2014"),v(),w(3,"div",14),L(4,"Sparsity"),v()())}var gt,Ee=(gt=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(Zt.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),st(n=>!we(n?.algKey))).subscribe(n=>{this.scriptDetails=n}),this.scriptFacadeService.scriptStatus$.pipe(Ot(this)).subscribe(n=>{this.isScriptActive=ye(n)})}toggleTooltip(n){this.chartToolsGlobalSignalsService.toggleTooltips=n.checked}toggleZoom(n){this.chartToolsGlobalSignalsService.toggleZoom=n.checked}get isSparsityVisible(){return this.scriptDetails?.type===At.PRUNING}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(Ot(this)).subscribe(n=>{this.enableTooltips=n}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(Ot(this)).subscribe(n=>{this.enableZoom=n})}runStopScript(){this.scriptFacadeService.dispatch(Zt.stopScript())}},gt.\u0275fac=function(a){return new(a||gt)(W(kt),W(be))},gt.\u0275cmp=X({type:gt,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"],[1,"ml-2"],[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"],[1,"metric","sparsity"],[1,"metric","testing"],["mat-raised-button","","color","warn","matTooltip","Stop current process.",3,"click"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3),L(5),v(),at(6,Ji,3,0,"div",4),v(),w(7,"div",5)(8,"div")(9,"mat-slide-toggle",6),Ze("ngModelChange",function(y){return Qe(c.enableTooltips,y)||(c.enableTooltips=y),y}),Rt("change",function(y){return c.toggleTooltip(y)}),L(10," Enable tooltips "),v()(),w(11,"div",7)(12,"mat-slide-toggle",8),Ze("ngModelChange",function(y){return Qe(c.enableZoom,y)||(c.enableZoom=y),y}),Rt("change",function(y){return c.toggleZoom(y)}),L(13," Enable zoom "),v(),w(14,"div",9),A(15,"mat-icon",10),v()()()()(),w(16,"div",11)(17,"div",12)(18,"div",13),L(19,"\u2014"),v(),w(20,"div",14),L(21,"Accuracy"),v()(),w(22,"div",15)(23,"div",13),L(24,"\u2014"),v(),w(25,"div",14),L(26,"Loss"),v()(),at(27,tr,5,0,"div",16),w(28,"div",17)(29,"div",13),L(30,"\u2014"),v(),w(31,"div",14),L(32,"Test"),v()()()()),a&2&&(I(5),pe("Algorithm: ",(c.scriptDetails==null?null:c.scriptDetails.algKey)||"None",""),I(),it(c.isScriptActive?6:-1),I(3),Ke("ngModel",c.enableTooltips),R("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),I(3),Ke("ngModel",c.enableZoom),R("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),I(15),it(c.isSparsityVisible?27:-1))},dependencies:[_e,ve,ca,la,ga],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)}"]}),gt);Ee=ht([yt()],Ee);function nr(s,n){if(s&1&&A(0,"ms-running-animation",1),s&2){let a=dt();R("animationType",a.AnimationType.QUANTIZATION)}}function ar(s,n){if(s&1&&A(0,"ms-running-animation",1),s&2){let a=dt();R("animationType",a.AnimationType.PRUNING)}}function ir(s,n){if(s&1&&A(0,"ms-running-animation",1),s&2){let a=dt();R("animationType",a.AnimationType.PRUNING)}}function rr(s,n){s&1&&A(0,"ms-running-quantization-charts")}function or(s,n){s&1&&A(0,"ms-running-pruning-charts")}function sr(s,n){s&1&&A(0,"ms-running-machine-unlearning-charts")}function cr(s,n){if(s&1&&at(0,rr,1,0,"ms-running-quantization-charts")(1,or,1,0,"ms-running-pruning-charts")(2,sr,1,0,"ms-running-machine-unlearning-charts"),s&2){let a,c=dt();it((a=c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.QUANTIZATION?0:a===c.AlgorithmType.PRUNING?1:a===c.AlgorithmType.MACHINE_UNLEARNING?2:-1)}}function lr(s,n){s&1&&A(0,"ms-empty-state",3)}function hr(s,n){s&1&&(w(0,"div",4),A(1,"ms-running-statistics"),v())}var ft,xe=(ft=class{constructor(n,a){this.navigationService=n,this.scriptFacadeService=a,this.AlgorithmType=At,this.AnimationType=Wt}ngOnInit(){this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(Zt.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),st(n=>!we(n?.algKey))).subscribe(n=>{this.scriptDetails=n})}get isChartVisible(){return!Ce(this.scriptDetails?.algKey)&&this.scriptDetails?.type!==At.TRAIN&&this.scriptDetails?.type!==At.AWQ&&this.scriptDetails?.type!==At.MULTIFLOW}},ft.\u0275fac=function(a){return new(a||ft)(W(va),W(kt))},ft.\u0275cmp=X({type:ft,selectors:[["ms-running"]],decls:14,vars:3,consts:[[1,"heading-primary-title","title"],[3,"animationType"],[1,"ms-card","running-prunning"],["title","No Chart Data Available","message","Please run the appropriate script to generate chart data."],[1,"mt-2"],[1,"mt-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"]],template:function(a,c){if(a&1&&(w(0,"p",0),L(1,"Running"),v(),at(2,nr,1,1,"ms-running-animation",1)(3,ar,1,1,"ms-running-animation",1)(4,ir,1,1,"ms-running-animation",1),w(5,"mat-card",2),A(6,"ms-running-status-bar"),at(7,cr,3,1)(8,lr,1,0,"ms-empty-state",3),v(),at(9,hr,2,0,"div",4),w(10,"div",5)(11,"button",6),Rt("click",function(){return c.navigationService.goToPreviousPage()}),A(12,"mat-icon",7),L(13," Go back "),v()()),a&2){let p;I(2),it((p=c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.QUANTIZATION?2:p===c.AlgorithmType.PRUNING?3:p===c.AlgorithmType.MACHINE_UNLEARNING?4:-1),I(5),it(c.isChartVisible?7:8),I(2),it((c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.MACHINE_UNLEARNING?9:-1)}},dependencies:[Me,_e,ve,Se,Pe,Da,Fa,Jt,Ra,Ee]}),ft);xe=ht([yt()],xe);var dr=[{path:"",component:xe}],Oa=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ue({imports:[Je.forChild(dr),Je]});let s=n;return s})();var is=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ue({providers:[be],imports:[sa,Oa,wt,ma,ua,pa,ha,da,fa]});let s=n;return s})();export{is as RunningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NT2MTW7W.js b/frontend/server/modelsmith-build/browser/chunk-LDDHJMMZ.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-NT2MTW7W.js rename to frontend/server/modelsmith-build/browser/chunk-LDDHJMMZ.js index 40bd2edc..bb912b00 100644 --- a/frontend/server/modelsmith-build/browser/chunk-NT2MTW7W.js +++ b/frontend/server/modelsmith-build/browser/chunk-LDDHJMMZ.js @@ -1 +1 @@ -import{$ as k,B as Rt,Ba as Dt,D as kt,E as j,F as Q,Fa as w,Ga as z,Gd as ht,Ha as N,Hd as A,Jb as It,Ka as C,La as Pt,Ma as Mt,Na as I,Nb as x,Oa as it,Pa as st,Pb as At,Qb as y,Rb as Ft,T as J,U as Ot,Vc as Tt,Wc as nt,_ as g,a as B,aa as L,b as Ct,ca as c,da as tt,ed as ot,g as S,h as Et,i as St,ia as O,id as rt,j as v,ja as M,jd as u,kd as Bt,ld as D,na as xt,oa as et,od as jt,qd as Y,rd as at,s as K,sd as Lt,va as V,xa as R,ya as E}from"./chunk-NPZHNGVX.js";var Vt=nt(ot,o=>o.configs.defaultMode),zt=nt(ot,o=>o.configs.currentMode);var Re=(()=>{let t=class t{constructor(e){this.store=e,this.defaultMode$=this.store.select(Vt),this.currentMode$=this.store.select(zt)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(i){return new(i||t)(c(Tt))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let o=t;return o})();var F=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},lt=class extends F{constructor(t,s,e,i,n){super(),this.component=t,this.viewContainerRef=s,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=n}},T=class extends F{constructor(t,s,e,i){super(),this.templateRef=t,this.viewContainerRef=s,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,s=this.context){return this.context=s,super.attach(t)}detach(){return this.context=void 0,super.detach()}},ct=class extends F{constructor(t){super(),this.element=t instanceof R?t.nativeElement:t}},W=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof lt)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof T)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof ct)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var X=class extends W{constructor(t,s,e,i,n){super(),this.outletElement=t,this._componentFactoryResolver=s,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");a.parentNode.insertBefore(h,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||V.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let s=t.viewContainerRef,e=s.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=s.indexOf(e);i!==-1&&s.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Te=(()=>{let t=class t extends W{constructor(e,i,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new E,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(h,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(w(N),w(I),w(y))},t.\u0275dir=M({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[it]});let o=t;return o})();var Nt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})();var Yt=class{};function ze(o){return o&&typeof o.connect=="function"&&!(o instanceof St)}var Z=function(o){return o[o.REPLACED=0]="REPLACED",o[o.INSERTED=1]="INSERTED",o[o.MOVED=2]="MOVED",o[o.REMOVED=3]="REMOVED",o}(Z||{}),Ne=new L("_ViewRepeater"),Ht=class{applyChanges(t,s,e,i,n){t.forEachOperation((r,a,h)=>{let d,l;if(r.previousIndex==null){let f=e(r,a,h);d=s.createEmbeddedView(f.templateRef,f.context,f.index),l=Z.INSERTED}else h==null?(s.remove(a),l=Z.REMOVED):(d=s.get(a),s.move(d,h),l=Z.MOVED);n&&n({context:d?.context,operation:l,record:r})})}detach(){}};var Wt=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,s,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,s&&s.length&&(t?s.forEach(n=>this._markSelected(n)):this._markSelected(s[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}setSelection(...t){this._verifyValueAssignment(t);let s=this.selected,e=new Set(t);t.forEach(n=>this._markSelected(n)),s.filter(n=>!e.has(this._getConcreteValue(n,e))).forEach(n=>this._unmarkSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let s=this._hasQueuedChanges();return t&&this._emitChangeEvent(),s}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,s){if(this.compareWith){s=s??this._selection;for(let e of s)if(this.compareWith(t,e))return e;return t}else return t}};var Ye=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let n of this._listeners)n(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var re=20,dt=(()=>{let t=class t{constructor(e,i,n){this._ngZone=e,this._platform=i,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=re){return this._platform.isBrowser?new Et(i=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(Q(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):K()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let n=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(j(r=>!r||n.indexOf(r)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let n=Bt(i),r=e.getElementRef().nativeElement;do if(n==r)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Rt(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(D),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var ae=20,$=(()=>{let t=class t{constructor(e,i,n){this._platform=e,this._change=new v,this._changeListener=r=>{this._change.next(r)},this._document=n,i.runOutsideAngular(()=>{if(e.isBrowser){let r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+i,height:n,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect(),a=-r.top||e.body.scrollTop||i.scrollY||n.scrollTop||0,h=-r.left||e.body.scrollLeft||i.scrollX||n.scrollLeft||0;return{top:a,left:h}}change(e=ae){return e>0?this._change.pipe(Q(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(c(D),c(C),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var Xt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})(),ft=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({imports:[A,Xt,A,Xt]});let o=t;return o})();var Zt=jt(),ut=class{constructor(t,s){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=u(-this._previousScrollPosition.left),t.style.top=u(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,s=this._document.body,e=t.style,i=s.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Zt&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zt&&(e.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let s=this._document.body,e=this._viewportRuler.getViewportSize();return s.scrollHeight>e.height||s.scrollWidth>e.width}};var pt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._ngZone=s,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(j(s=>!s||!this._overlayRef.overlayElement.contains(s.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},U=class{enable(){}disable(){}attach(){}};function _t(o,t){return t.some(s=>{let e=o.bottoms.bottom,n=o.rights.right;return e||i||n||r})}function $t(o,t){return t.some(s=>{let e=o.tops.bottom,n=o.lefts.right;return e||i||n||r})}var gt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._viewportRuler=s,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();_t(s,[{width:e,height:i,bottom:i,right:e,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}},ce=(()=>{let t=class t{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=()=>new U,this.close=a=>new pt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ut(this._viewportRuler,this._document),this.reposition=a=>new gt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}};t.\u0275fac=function(i){return new(i||t)(c(dt),c($),c(C),c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),G=class{constructor(t){if(this.scrollStrategy=new U,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let s=Object.keys(t);for(let e of s)t[e]!==void 0&&(this[e]=t[e])}}};var mt=class{constructor(t,s){this.connectionPair=t,this.scrollableViewProperties=s}};var te=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),de=(()=>{let t=class t extends te{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=n=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){let h=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>h.next(n)):h.next(n);break}}}add(e){super.add(e),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)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),fe=(()=>{let t=class t extends te{constructor(e,i,n){super(e),this._platform=i,this._ngZone=n,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Y(r)},this._clickListener=r=>{let a=Y(r),h=r.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let l=d.length-1;l>-1;l--){let f=d[l];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(Ut(f.overlayElement,a)||Ut(f.overlayElement,h))break;let p=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(r)):p.next(r)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(D),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Ut(o,t){let s=typeof ShadowRoot<"u"&&ShadowRoot,e=t;for(;e;){if(e===o)return!0;e=s&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var ee=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||at()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new v,this._outsidePointerEvents=new v,this._renders=new v,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=At(()=>Pt(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let s=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Mt(()=>{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 s?.onDestroy=="function"&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=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,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=B(B({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Ct(B({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=u(this._config.width),t.height=u(this._config.height),t.minWidth=u(this._config.minWidth),t.minHeight=u(this._config.minHeight),t.maxWidth=u(this._config.maxWidth),t.maxHeight=u(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,s,e){let i=rt(s||[]).filter(n=>!!n);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(J(kt(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()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Gt="cdk-overlay-connected-position-bounding-box",ue=/([A-Za-z%]+)$/,yt=class{get positions(){return this._preferredPositions}constructor(t,s,e,i,n){this._viewportRuler=s,this._document=e,this._platform=i,this._overlayContainer=n,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 v,this._resizeSubscription=S.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Gt),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,s=this._overlayRect,e=this._viewportRect,i=this._containerRect,n=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(h,s,a),l=this._getOverlayFit(d,s,e,a);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(l,d,e)){n.push({position:a,origin:h,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleAreah&&(h=l,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&P(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Gt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let s=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,s)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,s,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?r:a}s.left<0&&(i-=s.left);let n;return e.originY=="center"?n=t.top+t.height/2:n=e.originY=="top"?t.top:t.bottom,s.top<0&&(n-=s.top),{x:i,y:n}}_getOverlayPoint(t,s,e){let i;e.overlayX=="center"?i=-s.width/2:e.overlayX==="start"?i=this._isRtl()?-s.width:0:i=this._isRtl()?0:-s.width;let n;return e.overlayY=="center"?n=-s.height/2:n=e.overlayY=="top"?0:-s.height,{x:t.x+i,y:t.y+n}}_getOverlayFit(t,s,e,i){let n=Kt(s),{x:r,y:a}=t,h=this._getOffset(i,"x"),d=this._getOffset(i,"y");h&&(r+=h),d&&(a+=d);let l=0-r,f=r+n.width-e.width,p=0-a,m=a+n.height-e.height,_=this._subtractOverflows(n.width,l,f),b=this._subtractOverflows(n.height,p,m),bt=_*b;return{visibleArea:bt,isCompletelyWithinViewport:n.width*n.height===bt,fitsInViewportVertically:b===n.height,fitsInViewportHorizontally:_==n.width}}_canFitWithFlexibleDimensions(t,s,e){if(this._hasFlexibleDimensions){let i=e.bottom-s.y,n=e.right-s.x,r=qt(this._overlayRef.getConfig().minHeight),a=qt(this._overlayRef.getConfig().minWidth),h=t.fitsInViewportVertically||r!=null&&r<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=n;return h&&d}return!1}_pushOverlayOnScreen(t,s,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=Kt(s),n=this._viewportRect,r=Math.max(t.x+i.width-n.width,0),a=Math.max(t.y+i.height-n.height,0),h=Math.max(n.top-e.top-t.y,0),d=Math.max(n.left-e.left-t.x,0),l=0,f=0;return i.width<=n.width?l=d||-r:l=t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-_/2)}let h=s.overlayX==="start"&&!i||s.overlayX==="end"&&i,d=s.overlayX==="end"&&!i||s.overlayX==="start"&&i,l,f,p;if(d)p=e.width-t.x+this._viewportMargin*2,l=t.x-this._viewportMargin;else if(h)f=t.x,l=e.right-t.x;else{let m=Math.min(e.right-t.x+e.left,t.x),_=this._lastBoundingBoxSize.width;l=m*2,f=t.x-m,l>_&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-_/2)}return{top:r,left:f,bottom:a,right:p,width:l,height:n}}_setBoundingBoxStyles(t,s){let e=this._calculateBoundingBoxRect(t,s);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=u(e.height),i.top=u(e.top),i.bottom=u(e.bottom),i.width=u(e.width),i.left=u(e.left),i.right=u(e.right),s.overlayX==="center"?i.alignItems="center":i.alignItems=s.overlayX==="end"?"flex-end":"flex-start",s.overlayY==="center"?i.justifyContent="center":i.justifyContent=s.overlayY==="bottom"?"flex-end":"flex-start",n&&(i.maxHeight=u(n)),r&&(i.maxWidth=u(r))}this._lastBoundingBoxSize=e,P(this._boundingBox.style,i)}_resetBoundingBoxStyles(){P(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){P(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,s){let e={},i=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){let l=this._viewportRuler.getViewportScrollPosition();P(e,this._getExactOverlayY(s,t,l)),P(e,this._getExactOverlayX(s,t,l))}else e.position="static";let a="",h=this._getOffset(s,"x"),d=this._getOffset(s,"y");h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(i?e.maxHeight=u(r.maxHeight):n&&(e.maxHeight="")),r.maxWidth&&(i?e.maxWidth=u(r.maxWidth):n&&(e.maxWidth="")),P(this._pane.style,e)}_getExactOverlayY(t,s,e){let i={top:"",bottom:""},n=this._getOverlayPoint(s,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;i.bottom=`${r-(n.y+this._overlayRect.height)}px`}else i.top=u(n.y);return i}_getExactOverlayX(t,s,e){let i={left:"",right:""},n=this._getOverlayPoint(s,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(n.x+this._overlayRect.width)}px`}else i.left=u(n.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),s=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:$t(t,e),isOriginOutsideView:_t(t,e),isOverlayClipped:$t(s,e),isOverlayOutsideView:_t(s,e)}}_subtractOverflows(t,...s){return s.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+s-this._viewportMargin,width:t-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,s){return s==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&rt(t).forEach(s=>{s!==""&&this._appliedPanelClasses.indexOf(s)===-1&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof R)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let s=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+s,height:e,width:s}}};function P(o,t){for(let s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);return o}function qt(o){if(typeof o!="number"&&o!=null){let[t,s]=o.split(ue);return!s||s==="px"?parseFloat(t):null}return o||null}function Kt(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function pe(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var Qt="cdk-global-overlay-wrapper",wt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let s=t.getConfig();this._overlayRef=t,this._width&&!s.width&&t.updateSize({width:this._width}),this._height&&!s.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Qt),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:n,maxWidth:r,maxHeight:a}=e,h=(i==="100%"||i==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),l=this._xPosition,f=this._xOffset,p=this._overlayRef.getConfig().direction==="rtl",m="",_="",b="";h?b="flex-start":l==="center"?(b="center",p?_=f:m=f):p?l==="left"||l==="end"?(b="flex-end",m=f):(l==="right"||l==="start")&&(b="flex-start",_=f):l==="left"||l==="start"?(b="flex-start",m=f):(l==="right"||l==="end")&&(b="flex-end",_=f),t.position=this._cssPosition,t.marginLeft=h?"0":m,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=h?"0":_,s.justifyContent=b,s.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,e=s.style;s.classList.remove(Qt),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},_e=(()=>{let t=class t{constructor(e,i,n,r){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}global(){return new wt}flexibleConnectedTo(e){return new yt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(c($),c(y),c(D),c(ee))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),ge=0,q=(()=>{let t=class t{constructor(e,i,n,r,a,h,d,l,f,p,m,_){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=h,this._ngZone=d,this._document=l,this._directionality=f,this._location=p,this._outsideClickDispatcher=m,this._animationsModuleType=_}create(e){let i=this._createHostElement(),n=this._createPaneElement(i),r=this._createPortalOutlet(n),a=new G(e);return a.direction=a.direction||this._directionality.value,new vt(r,i,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${ge++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(It)),new X(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(c(ce),c(ee),c(N),c(_e),c(de),c(V),c(C),c(y),c(ht),c(Ft),c(fe),c(Dt,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),me=[{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"}],ie=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=tt(q);return()=>o.scrollStrategies.reposition()}}),Jt=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(w(R))},t.\u0275dir=M({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let o=t;return o})(),Li=(()=>{let t=class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,n,r,a){this._overlay=e,this._dir=a,this._backdropSubscription=S.EMPTY,this._attachSubscription=S.EMPTY,this._detachSubscription=S.EMPTY,this._positionSubscription=S.EMPTY,this._disposeOnNavigation=!1,this._ngZone=tt(C),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 E,this.positionChange=new E,this.attach=new E,this.detach=new E,this.overlayKeydown=new E,this.overlayOutsideClick=new E,this._templatePortal=new T(i,n),this._scrollStrategyFactory=r,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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=me);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),r=Y(i);(!n||n!==r&&!n.contains(r))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new G({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Jt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Jt?this.origin.elementRef.nativeElement:this.origin instanceof R?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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Ot(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(w(q),w(z),w(I),w(ie),w(ht,8))},t.\u0275dir=M({type:t,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",x],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",x],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",x],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",x],push:[2,"cdkConnectedOverlayPush","push",x],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",x]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[st,et]});let o=t;return o})();function ve(o){return()=>o.scrollStrategies.reposition()}var ye={provide:ie,deps:[q],useFactory:ve},Vi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({providers:[q,ye],imports:[A,Nt,ft,ft]});let o=t;return o})();export{Re as a,lt as b,T as c,W as d,Te as e,Nt as f,Yt as g,ze as h,Z as i,Ne as j,Ht as k,Wt as l,Ye as m,dt as n,$ as o,Xt as p,ft as q,G as r,q as s,Jt as t,Li as u,Vi as v}; +import{$ as k,B as Rt,Ba as Dt,D as kt,Dd as ht,E as j,Ed as A,F as Q,Fa as w,Ga as z,Ha as N,Jb as It,Ka as C,La as Pt,Ma as Mt,Na as I,Nb as x,Oa as it,Pa as st,Pb as At,Qb as y,Rb as Ft,Sc as Tt,T as J,Tc as nt,U as Ot,_ as g,a as B,aa as L,b as Ct,bd as ot,ca as c,da as tt,fd as rt,g as S,gd as u,h as Et,hd as Bt,i as St,ia as O,id as D,j as v,ja as M,ld as jt,na as xt,nd as Y,oa as et,od as at,pd as Lt,s as K,va as V,xa as R,ya as E}from"./chunk-I5FNXPEQ.js";var Vt=nt(ot,o=>o.configs.defaultMode),zt=nt(ot,o=>o.configs.currentMode);var Re=(()=>{let t=class t{constructor(e){this.store=e,this.defaultMode$=this.store.select(Vt),this.currentMode$=this.store.select(zt)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(i){return new(i||t)(c(Tt))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let o=t;return o})();var F=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},lt=class extends F{constructor(t,s,e,i,n){super(),this.component=t,this.viewContainerRef=s,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=n}},T=class extends F{constructor(t,s,e,i){super(),this.templateRef=t,this.viewContainerRef=s,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,s=this.context){return this.context=s,super.attach(t)}detach(){return this.context=void 0,super.detach()}},ct=class extends F{constructor(t){super(),this.element=t instanceof R?t.nativeElement:t}},W=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof lt)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof T)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof ct)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var X=class extends W{constructor(t,s,e,i,n){super(),this.outletElement=t,this._componentFactoryResolver=s,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");a.parentNode.insertBefore(h,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||V.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let s=t.viewContainerRef,e=s.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=s.indexOf(e);i!==-1&&s.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Te=(()=>{let t=class t extends W{constructor(e,i,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new E,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(h,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(w(N),w(I),w(y))},t.\u0275dir=M({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[it]});let o=t;return o})();var Nt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})();var Yt=class{};function ze(o){return o&&typeof o.connect=="function"&&!(o instanceof St)}var Z=function(o){return o[o.REPLACED=0]="REPLACED",o[o.INSERTED=1]="INSERTED",o[o.MOVED=2]="MOVED",o[o.REMOVED=3]="REMOVED",o}(Z||{}),Ne=new L("_ViewRepeater"),Ht=class{applyChanges(t,s,e,i,n){t.forEachOperation((r,a,h)=>{let d,l;if(r.previousIndex==null){let f=e(r,a,h);d=s.createEmbeddedView(f.templateRef,f.context,f.index),l=Z.INSERTED}else h==null?(s.remove(a),l=Z.REMOVED):(d=s.get(a),s.move(d,h),l=Z.MOVED);n&&n({context:d?.context,operation:l,record:r})})}detach(){}};var Wt=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,s,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,s&&s.length&&(t?s.forEach(n=>this._markSelected(n)):this._markSelected(s[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}setSelection(...t){this._verifyValueAssignment(t);let s=this.selected,e=new Set(t);t.forEach(n=>this._markSelected(n)),s.filter(n=>!e.has(this._getConcreteValue(n,e))).forEach(n=>this._unmarkSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let s=this._hasQueuedChanges();return t&&this._emitChangeEvent(),s}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,s){if(this.compareWith){s=s??this._selection;for(let e of s)if(this.compareWith(t,e))return e;return t}else return t}};var Ye=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let n of this._listeners)n(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var re=20,dt=(()=>{let t=class t{constructor(e,i,n){this._ngZone=e,this._platform=i,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=re){return this._platform.isBrowser?new Et(i=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(Q(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):K()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let n=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(j(r=>!r||n.indexOf(r)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let n=Bt(i),r=e.getElementRef().nativeElement;do if(n==r)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Rt(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(D),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var ae=20,$=(()=>{let t=class t{constructor(e,i,n){this._platform=e,this._change=new v,this._changeListener=r=>{this._change.next(r)},this._document=n,i.runOutsideAngular(()=>{if(e.isBrowser){let r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+i,height:n,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect(),a=-r.top||e.body.scrollTop||i.scrollY||n.scrollTop||0,h=-r.left||e.body.scrollLeft||i.scrollX||n.scrollLeft||0;return{top:a,left:h}}change(e=ae){return e>0?this._change.pipe(Q(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(c(D),c(C),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var Xt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})(),ft=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({imports:[A,Xt,A,Xt]});let o=t;return o})();var Zt=jt(),ut=class{constructor(t,s){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=u(-this._previousScrollPosition.left),t.style.top=u(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,s=this._document.body,e=t.style,i=s.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Zt&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zt&&(e.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let s=this._document.body,e=this._viewportRuler.getViewportSize();return s.scrollHeight>e.height||s.scrollWidth>e.width}};var pt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._ngZone=s,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(j(s=>!s||!this._overlayRef.overlayElement.contains(s.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},U=class{enable(){}disable(){}attach(){}};function _t(o,t){return t.some(s=>{let e=o.bottoms.bottom,n=o.rights.right;return e||i||n||r})}function $t(o,t){return t.some(s=>{let e=o.tops.bottom,n=o.lefts.right;return e||i||n||r})}var gt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._viewportRuler=s,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();_t(s,[{width:e,height:i,bottom:i,right:e,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}},ce=(()=>{let t=class t{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=()=>new U,this.close=a=>new pt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ut(this._viewportRuler,this._document),this.reposition=a=>new gt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}};t.\u0275fac=function(i){return new(i||t)(c(dt),c($),c(C),c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),G=class{constructor(t){if(this.scrollStrategy=new U,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let s=Object.keys(t);for(let e of s)t[e]!==void 0&&(this[e]=t[e])}}};var mt=class{constructor(t,s){this.connectionPair=t,this.scrollableViewProperties=s}};var te=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),de=(()=>{let t=class t extends te{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=n=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){let h=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>h.next(n)):h.next(n);break}}}add(e){super.add(e),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)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),fe=(()=>{let t=class t extends te{constructor(e,i,n){super(e),this._platform=i,this._ngZone=n,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Y(r)},this._clickListener=r=>{let a=Y(r),h=r.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let l=d.length-1;l>-1;l--){let f=d[l];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(Ut(f.overlayElement,a)||Ut(f.overlayElement,h))break;let p=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(r)):p.next(r)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(D),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Ut(o,t){let s=typeof ShadowRoot<"u"&&ShadowRoot,e=t;for(;e;){if(e===o)return!0;e=s&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var ee=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||at()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new v,this._outsidePointerEvents=new v,this._renders=new v,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=At(()=>Pt(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let s=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Mt(()=>{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 s?.onDestroy=="function"&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=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,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=B(B({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Ct(B({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=u(this._config.width),t.height=u(this._config.height),t.minWidth=u(this._config.minWidth),t.minHeight=u(this._config.minHeight),t.maxWidth=u(this._config.maxWidth),t.maxHeight=u(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,s,e){let i=rt(s||[]).filter(n=>!!n);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(J(kt(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()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Gt="cdk-overlay-connected-position-bounding-box",ue=/([A-Za-z%]+)$/,yt=class{get positions(){return this._preferredPositions}constructor(t,s,e,i,n){this._viewportRuler=s,this._document=e,this._platform=i,this._overlayContainer=n,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 v,this._resizeSubscription=S.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Gt),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,s=this._overlayRect,e=this._viewportRect,i=this._containerRect,n=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(h,s,a),l=this._getOverlayFit(d,s,e,a);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(l,d,e)){n.push({position:a,origin:h,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleAreah&&(h=l,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&P(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Gt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let s=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,s)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,s,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?r:a}s.left<0&&(i-=s.left);let n;return e.originY=="center"?n=t.top+t.height/2:n=e.originY=="top"?t.top:t.bottom,s.top<0&&(n-=s.top),{x:i,y:n}}_getOverlayPoint(t,s,e){let i;e.overlayX=="center"?i=-s.width/2:e.overlayX==="start"?i=this._isRtl()?-s.width:0:i=this._isRtl()?0:-s.width;let n;return e.overlayY=="center"?n=-s.height/2:n=e.overlayY=="top"?0:-s.height,{x:t.x+i,y:t.y+n}}_getOverlayFit(t,s,e,i){let n=Kt(s),{x:r,y:a}=t,h=this._getOffset(i,"x"),d=this._getOffset(i,"y");h&&(r+=h),d&&(a+=d);let l=0-r,f=r+n.width-e.width,p=0-a,m=a+n.height-e.height,_=this._subtractOverflows(n.width,l,f),b=this._subtractOverflows(n.height,p,m),bt=_*b;return{visibleArea:bt,isCompletelyWithinViewport:n.width*n.height===bt,fitsInViewportVertically:b===n.height,fitsInViewportHorizontally:_==n.width}}_canFitWithFlexibleDimensions(t,s,e){if(this._hasFlexibleDimensions){let i=e.bottom-s.y,n=e.right-s.x,r=qt(this._overlayRef.getConfig().minHeight),a=qt(this._overlayRef.getConfig().minWidth),h=t.fitsInViewportVertically||r!=null&&r<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=n;return h&&d}return!1}_pushOverlayOnScreen(t,s,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=Kt(s),n=this._viewportRect,r=Math.max(t.x+i.width-n.width,0),a=Math.max(t.y+i.height-n.height,0),h=Math.max(n.top-e.top-t.y,0),d=Math.max(n.left-e.left-t.x,0),l=0,f=0;return i.width<=n.width?l=d||-r:l=t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-_/2)}let h=s.overlayX==="start"&&!i||s.overlayX==="end"&&i,d=s.overlayX==="end"&&!i||s.overlayX==="start"&&i,l,f,p;if(d)p=e.width-t.x+this._viewportMargin*2,l=t.x-this._viewportMargin;else if(h)f=t.x,l=e.right-t.x;else{let m=Math.min(e.right-t.x+e.left,t.x),_=this._lastBoundingBoxSize.width;l=m*2,f=t.x-m,l>_&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-_/2)}return{top:r,left:f,bottom:a,right:p,width:l,height:n}}_setBoundingBoxStyles(t,s){let e=this._calculateBoundingBoxRect(t,s);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=u(e.height),i.top=u(e.top),i.bottom=u(e.bottom),i.width=u(e.width),i.left=u(e.left),i.right=u(e.right),s.overlayX==="center"?i.alignItems="center":i.alignItems=s.overlayX==="end"?"flex-end":"flex-start",s.overlayY==="center"?i.justifyContent="center":i.justifyContent=s.overlayY==="bottom"?"flex-end":"flex-start",n&&(i.maxHeight=u(n)),r&&(i.maxWidth=u(r))}this._lastBoundingBoxSize=e,P(this._boundingBox.style,i)}_resetBoundingBoxStyles(){P(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){P(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,s){let e={},i=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){let l=this._viewportRuler.getViewportScrollPosition();P(e,this._getExactOverlayY(s,t,l)),P(e,this._getExactOverlayX(s,t,l))}else e.position="static";let a="",h=this._getOffset(s,"x"),d=this._getOffset(s,"y");h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(i?e.maxHeight=u(r.maxHeight):n&&(e.maxHeight="")),r.maxWidth&&(i?e.maxWidth=u(r.maxWidth):n&&(e.maxWidth="")),P(this._pane.style,e)}_getExactOverlayY(t,s,e){let i={top:"",bottom:""},n=this._getOverlayPoint(s,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;i.bottom=`${r-(n.y+this._overlayRect.height)}px`}else i.top=u(n.y);return i}_getExactOverlayX(t,s,e){let i={left:"",right:""},n=this._getOverlayPoint(s,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(n.x+this._overlayRect.width)}px`}else i.left=u(n.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),s=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:$t(t,e),isOriginOutsideView:_t(t,e),isOverlayClipped:$t(s,e),isOverlayOutsideView:_t(s,e)}}_subtractOverflows(t,...s){return s.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+s-this._viewportMargin,width:t-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,s){return s==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&rt(t).forEach(s=>{s!==""&&this._appliedPanelClasses.indexOf(s)===-1&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof R)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let s=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+s,height:e,width:s}}};function P(o,t){for(let s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);return o}function qt(o){if(typeof o!="number"&&o!=null){let[t,s]=o.split(ue);return!s||s==="px"?parseFloat(t):null}return o||null}function Kt(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function pe(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var Qt="cdk-global-overlay-wrapper",wt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let s=t.getConfig();this._overlayRef=t,this._width&&!s.width&&t.updateSize({width:this._width}),this._height&&!s.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Qt),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:n,maxWidth:r,maxHeight:a}=e,h=(i==="100%"||i==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),l=this._xPosition,f=this._xOffset,p=this._overlayRef.getConfig().direction==="rtl",m="",_="",b="";h?b="flex-start":l==="center"?(b="center",p?_=f:m=f):p?l==="left"||l==="end"?(b="flex-end",m=f):(l==="right"||l==="start")&&(b="flex-start",_=f):l==="left"||l==="start"?(b="flex-start",m=f):(l==="right"||l==="end")&&(b="flex-end",_=f),t.position=this._cssPosition,t.marginLeft=h?"0":m,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=h?"0":_,s.justifyContent=b,s.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,e=s.style;s.classList.remove(Qt),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},_e=(()=>{let t=class t{constructor(e,i,n,r){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}global(){return new wt}flexibleConnectedTo(e){return new yt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(c($),c(y),c(D),c(ee))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),ge=0,q=(()=>{let t=class t{constructor(e,i,n,r,a,h,d,l,f,p,m,_){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=h,this._ngZone=d,this._document=l,this._directionality=f,this._location=p,this._outsideClickDispatcher=m,this._animationsModuleType=_}create(e){let i=this._createHostElement(),n=this._createPaneElement(i),r=this._createPortalOutlet(n),a=new G(e);return a.direction=a.direction||this._directionality.value,new vt(r,i,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${ge++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(It)),new X(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(c(ce),c(ee),c(N),c(_e),c(de),c(V),c(C),c(y),c(ht),c(Ft),c(fe),c(Dt,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),me=[{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"}],ie=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=tt(q);return()=>o.scrollStrategies.reposition()}}),Jt=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(w(R))},t.\u0275dir=M({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let o=t;return o})(),Li=(()=>{let t=class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,n,r,a){this._overlay=e,this._dir=a,this._backdropSubscription=S.EMPTY,this._attachSubscription=S.EMPTY,this._detachSubscription=S.EMPTY,this._positionSubscription=S.EMPTY,this._disposeOnNavigation=!1,this._ngZone=tt(C),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 E,this.positionChange=new E,this.attach=new E,this.detach=new E,this.overlayKeydown=new E,this.overlayOutsideClick=new E,this._templatePortal=new T(i,n),this._scrollStrategyFactory=r,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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=me);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),r=Y(i);(!n||n!==r&&!n.contains(r))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new G({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Jt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Jt?this.origin.elementRef.nativeElement:this.origin instanceof R?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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Ot(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(w(q),w(z),w(I),w(ie),w(ht,8))},t.\u0275dir=M({type:t,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",x],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",x],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",x],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",x],push:[2,"cdkConnectedOverlayPush","push",x],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",x]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[st,et]});let o=t;return o})();function ve(o){return()=>o.scrollStrategies.reposition()}var ye={provide:ie,deps:[q],useFactory:ve},Vi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({providers:[q,ye],imports:[A,Nt,ft,ft]});let o=t;return o})();export{Re as a,lt as b,T as c,W as d,Te as e,Nt as f,Yt as g,ze as h,Z as i,Ne as j,Ht as k,Wt as l,Ye as m,dt as n,$ as o,Xt as p,ft as q,G as r,q as s,Jt as t,Li as u,Vi as v}; diff --git a/frontend/server/modelsmith-build/browser/chunk-EGVUKFEW.js b/frontend/server/modelsmith-build/browser/chunk-LNSXTUTD.js similarity index 70% rename from frontend/server/modelsmith-build/browser/chunk-EGVUKFEW.js rename to frontend/server/modelsmith-build/browser/chunk-LNSXTUTD.js index 4f69b6a0..49056543 100644 --- a/frontend/server/modelsmith-build/browser/chunk-EGVUKFEW.js +++ b/frontend/server/modelsmith-build/browser/chunk-LNSXTUTD.js @@ -1 +1 @@ -import{a as d}from"./chunk-QWPZ5EFE.js";import{a as u}from"./chunk-R5J4FM6S.js";import"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as f}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as A,g as K,m as T}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as q,b as Z}from"./chunk-PSFPSLKI.js";import{a as G,b as W}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as p,Ea as m,Fa as y,Sa as a,a as g,ab as s,b as v,bb as c,bc as j,cb as C,db as w,eb as I,fe as z,gb as N,ha as Q,ia as l,jb as E,me as D,p as b,pa as F,qa as P,qb as V,rb as L,re as O,sb as R,sc as M,se as _,te as U,ub as S,ue as k,xe as B}from"./chunk-NPZHNGVX.js";var H=["panelParameters"],r,h=(r=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(W(this)).subscribe(t=>{this.isScriptActive=A(t),A(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,o=v(g({},t),{params:v(g({},this.panelParametersComponent.parametersFormatted),{model:e})});this.scriptFacadeService.dispatch(q.callScript({configs:o}))}},r.\u0275fac=function(i){return new(i||r)(y(O),y(Z))},r.\u0275cmp=Q({type:r,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V(H,5),i&2){let o;L(o=R())&&(e.panelParametersComponent=o.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 o=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 F(o),P(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,u,f,z,D,k],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);h=b([G()],h);var J=[{path:"",component:h}],x=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[M.forChild(J),M]});let n=t;return n})();var bt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[j,x,d,u,f,U,_,B]});let n=t;return n})();export{bt as LlmQuantizationModule}; +import{a as d}from"./chunk-DKMMNZKM.js";import{a as u}from"./chunk-D4NO5T2F.js";import"./chunk-M3BJA4RX.js";import"./chunk-DFEVON6A.js";import"./chunk-HHI42NCD.js";import"./chunk-YTNKLUWY.js";import"./chunk-A3HRP5BG.js";import"./chunk-VRD7QX3W.js";import"./chunk-452CEXFK.js";import"./chunk-SWEZDJOL.js";import{a as f}from"./chunk-OMCAGIEN.js";import"./chunk-BY5EH3KZ.js";import"./chunk-W5GEUOC3.js";import{b as A,g as K,m as T}from"./chunk-W4U3FJPJ.js";import"./chunk-I4357ONH.js";import{a as q,b as Z}from"./chunk-KE2JE72J.js";import{a as G,b as W}from"./chunk-COKZMNNS.js";import"./chunk-LDDHJMMZ.js";import"./chunk-RTK5DRKR.js";import{$ as p,Ea as m,Fa as y,Sa as a,_b as j,a as g,ab as s,b as v,bb as c,cb as C,ce as z,db as w,eb as I,gb as N,ha as Q,ia as l,jb as E,je as D,oe as O,p as b,pa as F,pc as M,pe as _,qa as P,qb as V,qe as U,rb as L,re as k,sb as R,ub as S,ue as B}from"./chunk-I5FNXPEQ.js";var H=["panelParameters"],r,h=(r=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(W(this)).subscribe(t=>{this.isScriptActive=A(t),A(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,o=v(g({},t),{params:v(g({},this.panelParametersComponent.parametersFormatted),{model:e})});this.scriptFacadeService.dispatch(q.callScript({configs:o}))}},r.\u0275fac=function(i){return new(i||r)(y(O),y(Z))},r.\u0275cmp=Q({type:r,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V(H,5),i&2){let o;L(o=R())&&(e.panelParametersComponent=o.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 o=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 F(o),P(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,u,f,z,D,k],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);h=b([G()],h);var J=[{path:"",component:h}],x=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[M.forChild(J),M]});let n=t;return n})();var bt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[j,x,d,u,f,U,_,B]});let n=t;return n})();export{bt as LlmQuantizationModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-3GNVUME3.js b/frontend/server/modelsmith-build/browser/chunk-LSF6MDDG.js similarity index 92% rename from frontend/server/modelsmith-build/browser/chunk-3GNVUME3.js rename to frontend/server/modelsmith-build/browser/chunk-LSF6MDDG.js index b283fdcf..34559a0c 100644 --- a/frontend/server/modelsmith-build/browser/chunk-3GNVUME3.js +++ b/frontend/server/modelsmith-build/browser/chunk-LSF6MDDG.js @@ -1 +1 @@ -import{Bb as d,Ea as a,ab as i,bb as s,cb as c,ha as m,ub as l,vb as o}from"./chunk-NPZHNGVX.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{Bb as d,Ea as a,ab as i,bb as s,cb as c,ha as m,ub as l,vb as o}from"./chunk-I5FNXPEQ.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-DQ7AOZDA.js b/frontend/server/modelsmith-build/browser/chunk-M3BJA4RX.js similarity index 94% rename from frontend/server/modelsmith-build/browser/chunk-DQ7AOZDA.js rename to frontend/server/modelsmith-build/browser/chunk-M3BJA4RX.js index 672f00eb..68c67bfa 100644 --- a/frontend/server/modelsmith-build/browser/chunk-DQ7AOZDA.js +++ b/frontend/server/modelsmith-build/browser/chunk-M3BJA4RX.js @@ -1 +1 @@ -import{a as w,b as F}from"./chunk-3S6QBQVM.js";import{a as He}from"./chunk-G267DK6J.js";import{a as Ve,b as je}from"./chunk-GSC3HYC7.js";import{a as Me,b as ye}from"./chunk-VUPIOU6P.js";import{a as L,b as R}from"./chunk-SMKHMGDE.js";import{a as E,e as Le,g as f}from"./chunk-W4U3FJPJ.js";import{a as Fe,b as Re}from"./chunk-PSFPSLKI.js";import{o as we}from"./chunk-NT2MTW7W.js";import{h as Te}from"./chunk-HG2O7P4S.js";import{$ as te,$d as Oe,Ab as pe,Ae as De,Bb as he,E as y,Ea as c,Eb as me,Fa as d,Fb as ue,Gb as de,Ib as G,J as A,K as q,Lb as ge,Q as J,Qa as b,R as X,Ra as ae,S as I,Sa as s,Sb as fe,T as h,Ub as _e,Ud as be,V as O,Z as Y,_ as ee,_b as Se,_d as Ie,aa as ie,ab as g,bb as m,bc as Ce,ca as ne,cb as M,ee as ve,gb as T,ha as N,ia as oe,ie as xe,j as K,ja as j,jb as P,k,lb as u,le as Ee,mb as se,nb as D,pa as S,pb as W,qa as C,qb as Q,rb as v,s as Z,sb as x,tb as $,te as ke,ub as B,vb as le,wb as ce,we as Ae,x as _,xa as H,xe as Ne,y as z,ya as re,ze as Pe}from"./chunk-NPZHNGVX.js";var ct=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=N({type:n,selectors:[["ms-spining-indicator"]],standalone:!0,features:[he],decls:1,vars:1,consts:[["matTooltip","Task in progress",3,"diameter"]],template:function(o,r){o&1&&M(0,"mat-spinner",0),o&2&&s("diameter",25)},dependencies:[F,w,R,L]});let i=n;return i})();var p=function(i){return i.MODEL_COMPRESSION="MODEL_COMPRESSION",i.MACHINE_UNLEARNING="MACHINE_UNLEARNING",i.MODEL_TRAINING="MODEL_TRAINING",i.AWQ="AWQ",i.MODEL_SPECIALIZATION="MODEL_SPECIALIZATION",i.NONE="NONE",i}(p||{});var Ct=(()=>{let n=class n{get currentRunningPage$(){return this._currentRunningPage.asObservable()}constructor(t){this.scriptFacadeService=t,this._currentRunningPage=new k(p.NONE)}trackCurrentRunningPage(){this.scriptFacadeService.scriptStatus$.pipe(y(t=>t===E.RUNNING||t===E.STOPPING),O(()=>this.scriptFacadeService.dispatch(Fe.getCurrentOrLastActiveScriptDetails())),I(()=>this.scriptFacadeService.scriptDetails$.pipe(J(1),A(1),y(t=>!Le(t?.algKey)))),_(t=>t.type)).subscribe(t=>{switch(t){case f.PRUNING:case f.QUANTIZATION:this._currentRunningPage.next(p.MODEL_COMPRESSION);break;case f.MACHINE_UNLEARNING:{this._currentRunningPage.next(p.MACHINE_UNLEARNING);break}case f.AWQ:{this._currentRunningPage.next(p.AWQ);break}case f.TRAIN:{this._currentRunningPage.next(p.MODEL_TRAINING);break}case f.MULTIFLOW:{this._currentRunningPage.next(p.MODEL_SPECIALIZATION);break}default:{this._currentRunningPage.next(p.NONE);break}}}),this.scriptFacadeService.scriptStatus$.subscribe(t=>{t!==E.RUNNING&&t!==E.STOPPING&&this._currentRunningPage.next(p.NONE)})}};n.\u0275fac=function(o){return new(o||n)(ne(Re))},n.\u0275prov=ee({token:n,factory:n.\u0275fac});let i=n;return i})();var Be=["searchSelectInput"],Ge=["innerSelectSearch"],Ue=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Ke=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Ze=(i,n)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":n});function ze(i,n){if(i&1){let e=T();g(0,"mat-checkbox",12),P("change",function(o){S(e);let r=u();return C(r._emitSelectAllBooleanToParent(o.checked))}),m()}if(i&2){let e=u();s("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function qe(i,n){i&1&&M(0,"mat-spinner",13)}function Je(i,n){i&1&&D(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Xe(i,n){if(i&1&&(g(0,"mat-icon",16),B(1),m()),i&2){let e=u(2);s("svgIcon",e.closeSvgIcon),c(),ce(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function Ye(i,n){if(i&1){let e=T();g(0,"button",14),P("click",function(){S(e);let o=u();return C(o._reset(!0))}),b(1,Je,1,0,"ng-content",15)(2,Xe,2,2,"ng-template",null,2,G),m()}if(i&2){let e=$(3),t=u();c(),s("ngIf",t.clearIcon)("ngIfElse",e)}}function et(i,n){i&1&&D(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function tt(i,n){if(i&1&&B(0),i&2){let e=u(2);le(e.noEntriesFoundLabel)}}function it(i,n){if(i&1&&(g(0,"div",17),b(1,et,1,0,"ng-content",15)(2,tt,1,1,"ng-template",null,3,G),m()),i&2){let e=$(3),t=u();c(),s("ngIf",t.noEntriesFound)("ngIfElse",e)}}var nt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),ot=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],rt=new ie("mat-selectsearch-default-options"),at=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),ci=(()=>{class i{constructor(e,t,o,r=null,a=null,U){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=o,this.matOption=r,this.matFormField=a,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 re,this.onTouched=l=>{},this._options$=new k(null),this.optionsList$=this._options$.pipe(I(l=>l?l.changes.pipe(_(V=>V.toArray()),X(l.toArray())):Z(null))),this.optionsLength$=this.optionsList$.pipe(_(l=>l?l.length:0)),this._formControl=new xe(""),this._showNoEntriesFound$=z([this._formControl.valueChanges,this.optionsLength$]).pipe(_(([l,V])=>this.noEntriesFoundLabel&&l&&V===this.getOptionsLengthOffset())),this._onDestroy=new K,this.applyDefaultOptions(U)}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 ot)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(q(1),h(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(A(1),I(e=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(O(()=>{setTimeout(()=>{let o=this._options.toArray(),r=o[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&r&&((!t||!this.matSelect.compareWith(t.value,r.value)||!a.activeItem||!o.find(l=>this.matSelect.compareWith(l.value,a.activeItem.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=r})}))})).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(),o=this._options.toArray().findIndex(r=>r.id===t);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._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(y(t=>t!==this._lastExternalInputValue),O(()=>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 o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(e.push(r),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 i.\u0275fac=function(e){return new(e||i)(d(He),d(ge),d(we),d(be,8),d(Te,8),d(rt,8))},i.\u0275cmp=N({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,o){if(e&1&&(W(o,nt,5),W(o,at,5)),e&2){let r;v(r=x())&&(t.clearIcon=r.first),v(r=x())&&(t.noEntriesFound=r.first)}},viewQuery:function(e,t){if(e&1&&(Q(Be,7,H),Q(Ge,7,H)),e&2){let o;v(o=x())&&(t.searchSelectInput=o.first),v(o=x())&&(t.innerSelectSearch=o.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:[pe([{provide:Ie,useExisting:Y(()=>i),multi:!0}])],ngContentSelectors:Ke,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 o=T();se(Ue),M(0,"input",4),g(1,"div",5,0)(3,"div",6),b(4,ze,1,5,"mat-checkbox",7),g(5,"input",8,1),P("keydown",function(a){return S(o),C(t._handleKeydown(a))})("keyup",function(a){return S(o),C(t._handleKeyup(a))})("blur",function(){return S(o),C(t.onBlur())}),m(),b(7,qe,1,0,"mat-spinner",9)(8,Ye,4,2,"button",10),D(9),m(),M(10,"mat-divider"),m(),b(11,it,4,2,"div",11),ue(12,"async")}e&2&&(c(),s("ngClass",me(11,Ze,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),c(3),s("ngIf",t._isToggleAllCheckboxVisible()),c(),s("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ae("aria-label",t.ariaLabel),c(2),s("ngIf",t.searching),c(),s("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),c(3),s("ngIf",de(12,9,t._showNoEntriesFound$)))},dependencies:[fe,_e,Oe,ve,Ee,Ae,Ve,Pe,w,L,Me,Se],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}),i})();var pi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=oe({type:i}),i.\u0275inj=te({imports:[Ce,ke,Ne,je,De,F,R,ye]}),i})();export{ct as a,p as b,Ct as c,rt as d,ci as e,pi as f}; +import{a as w,b as F}from"./chunk-DFEVON6A.js";import{a as He}from"./chunk-A3HRP5BG.js";import{a as Ve,b as je}from"./chunk-VRD7QX3W.js";import{a as Me,b as ye}from"./chunk-452CEXFK.js";import{a as L,b as R}from"./chunk-W5GEUOC3.js";import{a as E,e as Le,g as f}from"./chunk-W4U3FJPJ.js";import{a as Fe,b as Re}from"./chunk-KE2JE72J.js";import{o as we}from"./chunk-LDDHJMMZ.js";import{h as Te}from"./chunk-RTK5DRKR.js";import{$ as te,Ab as pe,Bb as he,E as y,Ea as c,Eb as me,Fa as d,Fb as ue,Gb as de,Ib as G,J as A,K as q,Lb as ge,Q as J,Qa as b,R as X,Ra as ae,Rd as be,S as I,Sa as s,Sb as fe,T as h,Ub as _e,V as O,Xb as Se,Xd as Ie,Yd as Oe,Z as Y,_ as ee,_b as Ce,aa as ie,ab as g,bb as m,be as ve,ca as ne,cb as M,fe as xe,gb as T,ha as N,ia as oe,ie as Ee,j as K,ja as j,jb as P,k,lb as u,mb as se,nb as D,pa as S,pb as W,qa as C,qb as Q,qe as ke,rb as v,s as Z,sb as x,tb as $,te as Ae,ub as B,ue as Ne,vb as le,wb as ce,we as Pe,x as _,xa as H,xe as De,y as z,ya as re}from"./chunk-I5FNXPEQ.js";var ct=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=N({type:n,selectors:[["ms-spining-indicator"]],standalone:!0,features:[he],decls:1,vars:1,consts:[["matTooltip","Task in progress",3,"diameter"]],template:function(o,r){o&1&&M(0,"mat-spinner",0),o&2&&s("diameter",25)},dependencies:[F,w,R,L]});let i=n;return i})();var p=function(i){return i.MODEL_COMPRESSION="MODEL_COMPRESSION",i.MACHINE_UNLEARNING="MACHINE_UNLEARNING",i.MODEL_TRAINING="MODEL_TRAINING",i.AWQ="AWQ",i.MODEL_SPECIALIZATION="MODEL_SPECIALIZATION",i.NONE="NONE",i}(p||{});var Ct=(()=>{let n=class n{get currentRunningPage$(){return this._currentRunningPage.asObservable()}constructor(t){this.scriptFacadeService=t,this._currentRunningPage=new k(p.NONE)}trackCurrentRunningPage(){this.scriptFacadeService.scriptStatus$.pipe(y(t=>t===E.RUNNING||t===E.STOPPING),O(()=>this.scriptFacadeService.dispatch(Fe.getCurrentOrLastActiveScriptDetails())),I(()=>this.scriptFacadeService.scriptDetails$.pipe(J(1),A(1),y(t=>!Le(t?.algKey)))),_(t=>t.type)).subscribe(t=>{switch(t){case f.PRUNING:case f.QUANTIZATION:this._currentRunningPage.next(p.MODEL_COMPRESSION);break;case f.MACHINE_UNLEARNING:{this._currentRunningPage.next(p.MACHINE_UNLEARNING);break}case f.AWQ:{this._currentRunningPage.next(p.AWQ);break}case f.TRAIN:{this._currentRunningPage.next(p.MODEL_TRAINING);break}case f.MULTIFLOW:{this._currentRunningPage.next(p.MODEL_SPECIALIZATION);break}default:{this._currentRunningPage.next(p.NONE);break}}}),this.scriptFacadeService.scriptStatus$.subscribe(t=>{t!==E.RUNNING&&t!==E.STOPPING&&this._currentRunningPage.next(p.NONE)})}};n.\u0275fac=function(o){return new(o||n)(ne(Re))},n.\u0275prov=ee({token:n,factory:n.\u0275fac});let i=n;return i})();var Be=["searchSelectInput"],Ge=["innerSelectSearch"],Ue=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Ke=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Ze=(i,n)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":n});function ze(i,n){if(i&1){let e=T();g(0,"mat-checkbox",12),P("change",function(o){S(e);let r=u();return C(r._emitSelectAllBooleanToParent(o.checked))}),m()}if(i&2){let e=u();s("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function qe(i,n){i&1&&M(0,"mat-spinner",13)}function Je(i,n){i&1&&D(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Xe(i,n){if(i&1&&(g(0,"mat-icon",16),B(1),m()),i&2){let e=u(2);s("svgIcon",e.closeSvgIcon),c(),ce(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function Ye(i,n){if(i&1){let e=T();g(0,"button",14),P("click",function(){S(e);let o=u();return C(o._reset(!0))}),b(1,Je,1,0,"ng-content",15)(2,Xe,2,2,"ng-template",null,2,G),m()}if(i&2){let e=$(3),t=u();c(),s("ngIf",t.clearIcon)("ngIfElse",e)}}function et(i,n){i&1&&D(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function tt(i,n){if(i&1&&B(0),i&2){let e=u(2);le(e.noEntriesFoundLabel)}}function it(i,n){if(i&1&&(g(0,"div",17),b(1,et,1,0,"ng-content",15)(2,tt,1,1,"ng-template",null,3,G),m()),i&2){let e=$(3),t=u();c(),s("ngIf",t.noEntriesFound)("ngIfElse",e)}}var nt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),ot=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],rt=new ie("mat-selectsearch-default-options"),at=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),ci=(()=>{class i{constructor(e,t,o,r=null,a=null,U){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=o,this.matOption=r,this.matFormField=a,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 re,this.onTouched=l=>{},this._options$=new k(null),this.optionsList$=this._options$.pipe(I(l=>l?l.changes.pipe(_(V=>V.toArray()),X(l.toArray())):Z(null))),this.optionsLength$=this.optionsList$.pipe(_(l=>l?l.length:0)),this._formControl=new xe(""),this._showNoEntriesFound$=z([this._formControl.valueChanges,this.optionsLength$]).pipe(_(([l,V])=>this.noEntriesFoundLabel&&l&&V===this.getOptionsLengthOffset())),this._onDestroy=new K,this.applyDefaultOptions(U)}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 ot)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(q(1),h(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(A(1),I(e=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(O(()=>{setTimeout(()=>{let o=this._options.toArray(),r=o[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&r&&((!t||!this.matSelect.compareWith(t.value,r.value)||!a.activeItem||!o.find(l=>this.matSelect.compareWith(l.value,a.activeItem.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=r})}))})).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(),o=this._options.toArray().findIndex(r=>r.id===t);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._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(y(t=>t!==this._lastExternalInputValue),O(()=>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 o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(e.push(r),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 i.\u0275fac=function(e){return new(e||i)(d(He),d(ge),d(we),d(be,8),d(Te,8),d(rt,8))},i.\u0275cmp=N({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,o){if(e&1&&(W(o,nt,5),W(o,at,5)),e&2){let r;v(r=x())&&(t.clearIcon=r.first),v(r=x())&&(t.noEntriesFound=r.first)}},viewQuery:function(e,t){if(e&1&&(Q(Be,7,H),Q(Ge,7,H)),e&2){let o;v(o=x())&&(t.searchSelectInput=o.first),v(o=x())&&(t.innerSelectSearch=o.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:[pe([{provide:Ie,useExisting:Y(()=>i),multi:!0}])],ngContentSelectors:Ke,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 o=T();se(Ue),M(0,"input",4),g(1,"div",5,0)(3,"div",6),b(4,ze,1,5,"mat-checkbox",7),g(5,"input",8,1),P("keydown",function(a){return S(o),C(t._handleKeydown(a))})("keyup",function(a){return S(o),C(t._handleKeyup(a))})("blur",function(){return S(o),C(t.onBlur())}),m(),b(7,qe,1,0,"mat-spinner",9)(8,Ye,4,2,"button",10),D(9),m(),M(10,"mat-divider"),m(),b(11,it,4,2,"div",11),ue(12,"async")}e&2&&(c(),s("ngClass",me(11,Ze,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),c(3),s("ngIf",t._isToggleAllCheckboxVisible()),c(),s("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ae("aria-label",t.ariaLabel),c(2),s("ngIf",t.searching),c(),s("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),c(3),s("ngIf",de(12,9,t._showNoEntriesFound$)))},dependencies:[fe,_e,Oe,ve,Ee,Ae,Ve,Pe,w,L,Me,Se],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}),i})();var pi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=oe({type:i}),i.\u0275inj=te({imports:[Ce,ke,Ne,je,De,F,R,ye]}),i})();export{ct as a,p as b,Ct as c,rt as d,ci as e,pi as f}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MJO2RBYE.js b/frontend/server/modelsmith-build/browser/chunk-MJO2RBYE.js deleted file mode 100644 index 782b42dc..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-MJO2RBYE.js +++ /dev/null @@ -1 +0,0 @@ -import{a as dt,b as ut}from"./chunk-GMIVG7ET.js";import{b as Dt,g as Ct,h as ve,i as vt,j as ae,k as Re,o as Rt,q as bt,s as kt}from"./chunk-NT2MTW7W.js";import{$ as fe,Ab as C,Ae as _t,Bb as x,Ca as tt,D as Ne,Ea as w,Fa as c,Ga as E,Gd as mt,Ib as je,Ka as ie,Kd as Pe,Lb as rt,Ma as it,Mb as G,Na as q,Nb as F,Oa as f,Pa as B,Qa as j,Qb as st,Sa as L,T as ue,Ta as _e,Ua as De,Ub as at,Ya as Z,Zb as ct,_ as he,a as Oe,aa as $,ab as m,bb as p,bc as lt,ca as te,cb as nt,da as P,db as ne,eb as oe,fb as g,gb as Ce,ha as b,hd as ht,ia as me,j as U,ja as h,jb as re,k as Q,lb as k,ld as ft,mb as Y,nb as S,oa as pe,p as Ge,pa as ge,pb as M,qa as ye,rb as T,s as W,sb as I,ta as v,tb as Ae,u as Je,ua as et,ub as X,ue as pt,va as K,vb as ot,wb as se,we as gt,x as le,xa as A,xe as yt,y as de,ya as we,ze as wt}from"./chunk-NPZHNGVX.js";var jt=[[["caption"]],[["colgroup"],["col"]],"*"],Pt=["caption","colgroup, col","*"];function Bt(o,e){o&1&&S(0,2)}function Lt(o,e){o&1&&(m(0,"thead",0),g(1,1),p(),m(2,"tbody",0),g(3,2)(4,3),p(),m(5,"tfoot",0),g(6,4),p())}function Ht(o,e){o&1&&g(0,1)(1,2)(2,3)(3,4)}var R=new $("CDK_TABLE");var Me=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let o=e;return o})(),Te=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let o=e;return o})(),Et=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let o=e;return o})(),J=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(i){return new(i||e)(c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,n,a){if(i&1&&(M(a,Me,5),M(a,Te,5),M(a,Et,5)),i&2){let s;T(s=I())&&(n.cell=s.first),T(s=I())&&(n.headerCell=s.first),T(s=I())&&(n.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",F],stickyEnd:[2,"stickyEnd","stickyEnd",F]},standalone:!0,features:[C([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),B]});let o=e;return o})(),ke=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},Mt=(()=>{let e=class e extends ke{constructor(t,i){super(t,i)}};e.\u0275fac=function(i){return new(i||e)(c(J),c(A))},e.\u0275dir=h({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[f]});let o=e;return o})();var Tt=(()=>{let e=class e extends ke{constructor(t,i){super(t,i);let n=t._table?._getCellRole();n&&i.nativeElement.setAttribute("role",n)}};e.\u0275fac=function(i){return new(i||e)(c(J),c(A))},e.\u0275dir=h({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[f]});let o=e;return o})(),Se=class{constructor(){this.tasks=[],this.endTasks=[]}},xe=new $("_COALESCED_STYLE_SCHEDULER"),He=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=P(ie)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Se,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new Se;for(let i of t.tasks)i();for(let i of t.endTasks)i()}this._currentSchedule=null})))}};e.\u0275fac=function(i){return new(i||e)(te(ie))},e.\u0275prov=he({token:e,factory:e.\u0275fac});let o=e;return o})();var Ve=(()=>{let e=class e{constructor(t,i){this.template=t,this._differs=i}ngOnChanges(t){if(!this._columnsDiffer){let i=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof ce?t.headerCell.template:this instanceof ze?t.footerCell.template:t.cell.template}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G))},e.\u0275dir=h({type:e,features:[pe]});let o=e;return o})(),ce=(()=>{let e=class e extends Ve{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,n){super(t,i),this._table=n,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",F]},standalone:!0,features:[B,f,pe]});let o=e;return o})(),ze=(()=>{let e=class e extends Ve{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,n){super(t,i),this._table=n,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",F]},standalone:!0,features:[B,f,pe]});let o=e;return o})(),Ie=(()=>{let e=class e extends Ve{constructor(t,i,n){super(t,i),this._table=n}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[f]});let o=e;return o})(),H=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(i){return new(i||e)(c(q))},e.\u0275dir=h({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let o=e;return o})(),Ue=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var Qe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})(),It=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let o=e;return o})(),St=["top","bottom","left","right"],Be=class{constructor(e,r,t,i,n=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=i,this._isBrowser=n,this._needsPositionStickyOnElement=a,this._positionListener=s,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 t=[];for(let i of e)if(i.nodeType===i.ELEMENT_NODE){t.push(i);for(let n=0;n{for(let i of t)this._removeStickyStyle(i,r)})}updateStickyColumns(e,r,t,i=!0){if(!e.length||!this._isBrowser||!(r.some(n=>n)||t.some(n=>n))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let n=e[0],a=n.children.length,s=this._getCellWidths(n,i),l=this._getStickyStartColumnPositions(s,r),d=this._getStickyEndColumnPositions(s,t),u=r.lastIndexOf(!0),_=t.indexOf(!0),y=this.direction==="rtl",N=y?"right":"left",Ye=y?"left":"right";for(let ee of e)for(let D=0;Dr[D]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:s.slice(_).map((ee,D)=>t[D+_]?ee:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let i=t==="bottom"?e.slice().reverse():e,n=t==="bottom"?r.slice().reverse():r,a=[],s=[],l=[];for(let u=0,_=0;u{let t=e.querySelector("tfoot");t&&(r.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let i of r)e.style[i]="",e.classList.remove(this._borderCellCss[i]);St.some(i=>r.indexOf(i)===-1&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}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},t=0;for(let i of St)e.style[i]&&(t+=r[i]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=e.children;for(let n=0;n0;n--)r[n]&&(t[n]=i,i+=e[n]);return t}};var Ee=new $("CDK_SPL");var We=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._rowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let o=e;return o})(),$e=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._headerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let o=e;return o})(),Ke=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._footerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let o=e;return o})(),qe=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._noDataRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let o=e;return o})();var Ze=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),i=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,i,n,a,s,l,d,u,_,y,N,Ye){this._differs=t,this._changeDetectorRef=i,this._elementRef=n,this._dir=s,this._platform=d,this._viewRepeater=u,this._coalescedStyleScheduler=_,this._viewportRuler=y,this._stickyPositioningListener=N,this._onDestroy=new U,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 we,this.viewChange=new Q({start:0,end:Number.MAX_VALUE}),this._injector=P(K),a||n.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!d.isBrowser,this._isNativeHtmlTable=n.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(ue(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(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),ve(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,i,(n,a,s)=>this._getEmbeddedViewArgs(n.item,s),n=>n.item.data,n=>{n.operation===vt.INSERTED&&n.context&&this._renderCellTemplateForItem(n.record.item.rowDef,n.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(n=>{let a=i.get(n.currentIndex);a.context.$implicit=n.item.data}),this._updateNoDataRow(),it(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let n=xt(this._headerRowOutlet,"thead");n&&(n.style.display=t.length?"":"none")}let i=this._headerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let n=xt(this._footerRowOutlet,"tfoot");n&&(n.style.display=t.length?"":"none")}let i=this._footerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...i,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let t=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n{let l=n&&n.has(s)?n.get(s):[];if(l.length){let d=l.shift();return d.dataIndex=i,d}else return{data:t,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),be(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=be(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=be(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=be(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,l)=>s||!!l.getColumnsDiff(),i=this._rowDefs.reduce(t,!1);i&&this._forceRenderDataRows();let n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),i||n||a}_switchDataSource(t){this._data=[],ve(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;ve(this.dataSource)?t=this.dataSource.connect(this):Je(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=W(this.dataSource)),this._renderChangeSubscription=t.pipe(ue(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,i)=>this._renderRow(this._headerRowOutlet,t,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,i)=>this._renderRow(this._footerRowOutlet,t,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,i){let n=Array.from(i.columns||[]).map(l=>{let d=this._columnDefsByName.get(l);return d}),a=n.map(l=>l.sticky),s=n.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let i=[];for(let n=0;n!a.when||a.when(i,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(i,t))||this._defaultRowDef;a&&n.push(a)}return n.length,n}_getEmbeddedViewArgs(t,i){let n=t.rowDef,a={$implicit:t.data};return{templateRef:n.template,context:a,index:i}}_renderRow(t,i,n,a={}){let s=t.viewContainer.createEmbeddedView(i.template,a,n);return this._renderCellTemplateForItem(i,a),s}_renderCellTemplateForItem(t,i){for(let n of this._getCellTemplates(t))H.mostRecentCellOutlet&&H.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let i=0,n=t.length;i{let n=this._columnDefsByName.get(i);return t.extractCellTemplate(n)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(i,n)=>i||n.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new Be(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:W()).pipe(ue(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let n=this._noDataRowOutlet.viewContainer;if(i){let a=n.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else n.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)(c(G),c(rt),c(A),et("role"),c(mt,8),c(st),c(ft),c(ae),c(xe),c(Rt),c(Ee,12),c(ie,8))},e.\u0275cmp=b({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,n,a){if(i&1&&(M(a,It,5),M(a,J,5),M(a,Ie,5),M(a,ce,5),M(a,ze,5)),i&2){let s;T(s=I())&&(n._noDataRow=s.first),T(s=I())&&(n._contentColumnDefs=s),T(s=I())&&(n._contentRowDefs=s),T(s=I())&&(n._contentHeaderRowDefs=s),T(s=I())&&(n._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,n){i&2&&De("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",F],fixedLayout:[2,"fixedLayout","fixedLayout",F]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[C([{provide:R,useExisting:e},{provide:ae,useClass:Re},{provide:xe,useClass:He},{provide:Ee,useValue:null}]),B,x],ngContentSelectors:Pt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(Y(jt),S(0),S(1,1),j(2,Bt,1,0)(3,Lt,7,0)(4,Ht,4,0)),i&2&&(w(2),Z(n._isServer?2:-1),w(),Z(n._isNativeHtmlTable?3:4))},dependencies:[$e,We,qe,Ke],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let o=e;return o})();function be(o,e){return o.concat(Array.from(e))}function xt(o,e){let r=e.toUpperCase(),t=o.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===r)return t;if(i==="TABLE")break;t=t.parentNode}return null}var Ft=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=me({type:e}),e.\u0275inj=fe({imports:[bt]});let o=e;return o})();var Vt=[[["caption"]],[["colgroup"],["col"]],"*"],zt=["caption","colgroup, col","*"];function Ut(o,e){o&1&&S(0,2)}function Qt(o,e){o&1&&(m(0,"thead",0),g(1,1),p(),m(2,"tbody",2),g(3,3)(4,4),p(),m(5,"tfoot",0),g(6,5),p())}function Wt(o,e){o&1&&g(0,1)(1,3)(2,4)(3,5)}var Qi=(()=>{let e=class e extends Ze{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,n){i&2&&De("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[C([{provide:Ze,useExisting:e},{provide:R,useExisting:e},{provide:xe,useClass:He},{provide:ae,useClass:Re},{provide:Ee,useValue:null}]),f,x],ngContentSelectors:zt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(Y(Vt),S(0),S(1,1),j(2,Ut,1,0)(3,Qt,7,0)(4,Wt,4,0)),i&2&&(w(2),Z(n._isServer?2:-1),w(),Z(n._isNativeHtmlTable?3:4))},dependencies:[$e,We,qe,Ke],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 o=e;return o})(),Wi=(()=>{let e=class e extends Me{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[C([{provide:Me,useExisting:e}]),f]});let o=e;return o})(),$i=(()=>{let e=class e extends Te{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[C([{provide:Te,useExisting:e}]),f]});let o=e;return o})();var Ki=(()=>{let e=class e extends J{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[C([{provide:J,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),f]});let o=e;return o})(),qi=(()=>{let e=class e extends Mt{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({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:[f]});let o=e;return o})();var Zi=(()=>{let e=class e extends Tt{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[f]});let o=e;return o})();var Yi=(()=>{let e=class e extends ce{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",F]},standalone:!0,features:[C([{provide:ce,useExisting:e}]),B,f]});let o=e;return o})();var Xi=(()=>{let e=class e extends Ie{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[C([{provide:Ie,useExisting:e}]),f]});let o=e;return o})(),Gi=(()=>{let e=class e extends Ue{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({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:[C([{provide:Ue,useExisting:e}]),f,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var Ji=(()=>{let e=class e extends Qe{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[C([{provide:Qe,useExisting:e}]),f,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var en=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=me({type:e}),e.\u0275inj=fe({imports:[Pe,Ft,Pe]});let o=e;return o})(),$t=9007199254740991,Ot=class extends Ct{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 Q([]),this._filter=new Q(""),this._internalPageChanges=new U,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let i=r[t];if(ht(i)){let n=Number(i);return n<$t?n:i}return i},this.sortData=(r,t)=>{let i=t.active,n=t.direction;return!i||n==""?r:r.sort((a,s)=>{let l=this.sortingDataAccessor(a,i),d=this.sortingDataAccessor(s,i),u=typeof l,_=typeof d;u!==_&&(u==="number"&&(l+=""),_==="number"&&(d+=""));let y=0;return l!=null&&d!=null?l>d?y=1:l{let i=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),n=t.trim().toLowerCase();return i.indexOf(n)!=-1},this._data=new Q(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Ne(this._sort.sortChange,this._sort.initialized):W(null),r=this._paginator?Ne(this._paginator.page,this._internalPageChanges,this._paginator.initialized):W(null),t=this._data,i=de([t,this._filter]).pipe(le(([s])=>this._filterData(s))),n=de([i,e]).pipe(le(([s])=>this._orderData(s))),a=de([n,r]).pipe(le(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_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 t=Math.ceil(r.length/r.pageSize)-1||0,i=Math.min(r.pageIndex,t);i!==r.pageIndex&&(r.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var Fe=new $("DRAWER_DATA");var V=function(o){return o.OPEN="open",o.DISMISS="dismiss",o.SAVE="save",o.CLOSE="close",o}(V||{});var z=class{constructor(e){this.overlayRef=e,this.afterClosedSubject=new U}backdropClick(){return this.overlayRef.backdropClick()}close(e){this.overlayRef.dispose(),this.afterClosedSubject.next(e),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var qt=["*"];function Zt(o,e){o&1&&g(0)}function Yt(o,e){if(o&1){let r=Ce();m(0,"div",7)(1,"div",8),X(2),p(),m(3,"div",9)(4,"button",10),re("click",function(){ge(r);let i=k();return ye(i.onDismiss())}),nt(5,"mat-icon",11),p()()()}if(o&2){let r=k();w(2),ot(r.data.title)}}function Xt(o,e){o&1&&g(0)}function Gt(o,e){if(o&1){let r=Ce();ne(0),m(1,"button",14),re("click",function(){ge(r);let i=k(2);return ye(i.onClose())}),X(2),p(),oe()}if(o&2){let r=k(2);w(),L("disabled",r.isDismissDisabled),w(),se(" ",r.data.closeButtonLabel," ")}}function Jt(o,e){if(o&1){let r=Ce();ne(0),m(1,"button",15),re("click",function(){ge(r);let i=k(2);return ye(i.onSave())}),X(2),p(),oe()}if(o&2){let r=k(2);w(),L("disabled",r.isSaveDisabled),w(),se(" ",r.data.saveButtonLabel," ")}}function ei(o,e){if(o&1&&(m(0,"div",12),j(1,Gt,3,2,"ng-container",13)(2,Jt,3,2,"ng-container",13),p()),o&2){let r=k();w(),L("ngIf",r.data.showCloseButton),w(),L("ngIf",r.data.showSaveButton)}}var O,Nt=(O=class{constructor(e,r){this.drawerRef=e,this.data=r,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new we,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(V.CLOSE),this.drawerRef.close({status:V.CLOSE})}onSave(){this.actionEvent.emit(V.SAVE)}onDismiss(){this.actionEvent.emit(V.DISMISS),this.drawerRef.close({status:V.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.drawerRef.backdropClick().pipe(ut(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},O.\u0275fac=function(r){return new(r||O)(c(z),c(Fe))},O.\u0275cmp=b({type:O,selectors:[["ms-drawer"]],hostBindings:function(r,t){r&1&&re("keyup.esc",function(){return t.onEscKeyDown()},!1,tt)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[x],ngContentSelectors:qt,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(r,t){if(r&1&&(Y(),m(0,"div",2)(1,"div",3),j(2,Zt,1,0,"ng-container",4)(3,Yt,6,1,"ng-template",null,0,je),p(),m(5,"div",5),S(6),p(),m(7,"div",6),j(8,Xt,1,0,"ng-container",4)(9,ei,3,2,"ng-template",null,1,je),p()()),r&2){let i=Ae(4),n=Ae(10);_e("width",t.data.width,"px"),w(2),L("ngTemplateOutlet",t.headerTemplate||i),w(6),L("ngTemplateOutlet",t.actionsTemplate||n)}},dependencies:[lt,at,ct,yt,pt,gt,_t,wt],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}"]}),O);Nt=Ge([dt()],Nt);var Tn=(()=>{let e=class e{constructor(t,i){this.overlay=t,this.injector=i}open(t,i){let n=this.overlay.position().global().right(),a=this.overlay.create(Oe({positionStrategy:n,hasBackdrop:!0,backdropClass:"drawer-backdrop",height:"100vh",width:768},i)),s=new z(a),l=K.create({parent:this.injector,providers:[{provide:z,useValue:s},{provide:Fe,useValue:Oe({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:768},i)}]}),d=new Dt(t,null,l);return a.attach(d),s}};e.\u0275fac=function(i){return new(i||e)(te(kt),te(K))},e.\u0275prov=he({token:e,factory:e.\u0275fac});let o=e;return o})();export{Qi as a,Wi as b,$i as c,Ki as d,qi as e,Zi as f,Yi as g,Xi as h,Gi as i,Ji as j,en as k,Ot as l,Fe as m,V as n,z as o,Nt as p,Tn as q}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NG4KGRDN.js b/frontend/server/modelsmith-build/browser/chunk-NG4KGRDN.js deleted file mode 100644 index e7e4d759..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-NG4KGRDN.js +++ /dev/null @@ -1 +0,0 @@ -import{a as J,b as K,c as W,d as Y}from"./chunk-URO2J7UO.js";import{a as q,b as H}from"./chunk-PP7DOJYP.js";import{c as z,h as Q,i as X}from"./chunk-HG2O7P4S.js";import{$d as k,Ae as g,Bb as d,Be as Z,Ea as a,Fa as w,Fb as _,Gb as D,Ie as ee,Kc as S,Lc as N,Qa as F,Sa as s,Ta as b,Ub as P,_b as A,ab as i,bb as n,bc as B,cb as o,dd as U,ee as O,gb as E,ha as l,ie as j,jb as T,le as L,pa as x,qa as y,se as R,tb as M,te as V,ub as u,ue as G,vb as h,we as $,xe as f,ze as p}from"./chunk-NPZHNGVX.js";function re(t,e){if(t&1&&(i(0,"div",12)(1,"div",13),u(2),n(),i(3,"div",14),u(4),n()()),t&2){let I=e.ngIf;a(2),h(I.name),a(2),h(I.role)}}var te=(()=>{let e=class e{constructor(m){this.authFacadeService=m,this.RoutesList=U,this.user$=this.authFacadeService.user$}logout(){this.authFacadeService.dispatch(Z.logout())}};e.\u0275fac=function(r){return new(r||e)(w(ee))},e.\u0275cmp=l({type:e,selectors:[["ms-user-navigation"]],standalone:!0,features:[d],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(r,c){if(r&1){let v=E();i(0,"button",2,0)(2,"div",3)(3,"div",4),o(4,"mat-icon",5),n(),F(5,re,5,2,"div",6),_(6,"async"),i(7,"div",7),o(8,"mat-icon",8),n()()(),i(9,"mat-menu",9,1)(11,"button",10),T("click",function(){return x(v),y(c.logout())}),o(12,"mat-icon",11),u(13," Logout "),n()()}if(r&2){let v=M(1),C=M(10);s("matMenuTriggerFor",C),a(5),s("ngIf",D(6,4,c.user$)),a(3),b("transform",v.menuOpen?"rotate(180deg)":"rotate(0)")}},dependencies:[B,P,A,g,p,Y,K,J,W,f,G],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 be=(()=>{let e=class e{constructor(){this.search=new j}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=l({type:e,selectors:[["ms-header"]],standalone:!0,features:[d],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(r,c){r&1&&(i(0,"header",0)(1,"div",1)(2,"div",2)(3,"button",3),o(4,"mat-icon",4),n()(),i(5,"div",5),o(6,"img",6),n()(),i(7,"div",7)(8,"div",8)(9,"mat-form-field",9),o(10,"input",10)(11,"mat-icon",11),n()(),i(12,"div")(13,"button",3),o(14,"mat-icon",12),n()(),i(15,"div")(16,"button",3),o(17,"mat-icon",13),n()(),o(18,"div",14),i(19,"div"),o(20,"ms-user-navigation"),n(),i(21,"div",15)(22,"button",3),o(23,"mat-icon",4),n()()()()),r&2&&(a(10),s("formControl",c.search))},dependencies:[g,p,te,V,k,O,L,R,X,Q,z,f,$,H,q],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 _e=N({source:"[Core -> Configs]",events:{"Set Default Mode":S(),"Set Current Mode":S()}});var ae=function(t){return t.GUIDED="guided",t.EXPERT="expert",t}(ae||{});export{_e as a,ae as b,be as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-2JZ6V3QN.js b/frontend/server/modelsmith-build/browser/chunk-O3X4WY4E.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-2JZ6V3QN.js rename to frontend/server/modelsmith-build/browser/chunk-O3X4WY4E.js index af270095..fecde6b6 100644 --- a/frontend/server/modelsmith-build/browser/chunk-2JZ6V3QN.js +++ b/frontend/server/modelsmith-build/browser/chunk-O3X4WY4E.js @@ -1,4 +1,4 @@ -import{b as ca,c as he,e as ha}from"./chunk-W4U3FJPJ.js";import{b as fa,s as Ss,t as ua}from"./chunk-PSFPSLKI.js";import{a as la,b as qe}from"./chunk-GMIVG7ET.js";import{$ as qr,Ab as ra,Bb as aa,Ea as ta,Fa as ce,K as qn,Ka as ea,L as Gr,Sa as ia,_ as Ee,a as xs,ab as sa,b as _s,bb as na,ca as ys,cb as oa,d as Uf,e as Yf,ha as Kr,ia as Zr,j as Gn,ja as Qr,k as Mi,oa as vs,p as $r,qb as Zn,rb as Qn,sb as Jn,xa as Jr,ya as Kn}from"./chunk-NPZHNGVX.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-QVZ2CSJP.js b/frontend/server/modelsmith-build/browser/chunk-OMCAGIEN.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-QVZ2CSJP.js rename to frontend/server/modelsmith-build/browser/chunk-OMCAGIEN.js index b875fe33..9753e8ce 100644 --- a/frontend/server/modelsmith-build/browser/chunk-QVZ2CSJP.js +++ b/frontend/server/modelsmith-build/browser/chunk-OMCAGIEN.js @@ -1,4 +1,4 @@ -import{a as Oe,b as Ie,c as Le}from"./chunk-WHP5P3DQ.js";import{a as it,b as st}from"./chunk-SMKHMGDE.js";import{g as we,i as Ee,k as te,n as ke}from"./chunk-W4U3FJPJ.js";import{a as rt,b as ce,c as ve,o as nt,t as ot}from"./chunk-PSFPSLKI.js";import{a as Ye,b as Je}from"./chunk-GMIVG7ET.js";import{Ab as Xe,Ae as tt,Bb as ye,Fa as oe,J as $e,Q as ze,ab as ee,bb as ie,cb as le,d as Fe,e as We,f as Ne,gb as Ke,ha as ge,jb as ae,p as Ue,pa as me,qa as Se,qb as qe,rb as Ve,sb as Ge,ub as be,v as je,we as Ze,xe as Qe,ya as Ce,ze as et}from"./chunk-NPZHNGVX.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-BY5EH3KZ.js";import{a as it,b as st}from"./chunk-W5GEUOC3.js";import{g as we,i as Ee,k as te,n as ke}from"./chunk-W4U3FJPJ.js";import{a as rt,b as ce,c as ve,o as nt,t as ot}from"./chunk-KE2JE72J.js";import{a as Ye,b as Je}from"./chunk-COKZMNNS.js";import{Ab as Xe,Bb as ye,Fa as oe,J as $e,Q as ze,ab as ee,bb as ie,cb as le,d as Fe,e as We,f as Ne,gb as Ke,ha as ge,jb as ae,p as Ue,pa as me,qa as Se,qb as qe,rb as Ve,sb as Ge,te as Ze,ub as be,ue as Qe,v as je,we as et,xe as tt,ya as Ce}from"./chunk-I5FNXPEQ.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-PSFPSLKI.js b/frontend/server/modelsmith-build/browser/chunk-PSFPSLKI.js deleted file mode 100644 index 3be5f929..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-PSFPSLKI.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as ft,c as Zt,d as Yt,e as gt,r as Jt,s as te}from"./chunk-NT2MTW7W.js";import{$c as B,Ac as ut,Ae as Xt,Bb as H,C as _t,Cc as dt,Ce as ee,Dd as Vt,De as A,E as bt,Ea as C,Fa as v,Fe as J,G as M,Ga as wt,Ka as It,Kc as o,Lb as Ft,Lc as D,Mc as _,Oa as Dt,Qa as Q,Qb as Bt,Ra as Et,S as F,Sa as U,T as vt,Vb as Ot,Vc as b,Wb as Nt,Wc as d,Ya as jt,Zc as f,_ as l,_c as Z,a as p,aa as st,ab as y,ad as Y,b as u,bb as x,bc as Ut,bd as O,ca as s,cb as q,da as xt,dd as $t,ed as g,f as St,gb as Pt,ha as G,ib as Tt,j as k,ja as K,jb as W,k as Ct,kb as Rt,lb as ot,lc as Lt,ld as Qt,oc as zt,pa as kt,qa as yt,qb as ct,rb as lt,s as T,sb as mt,ub as I,ud as qt,ue as Kt,va as $,vb as Mt,vc as Gt,vd as Ht,wb as pt,wc as ht,x as R,xa as At,zc as X,ze as Wt}from"./chunk-NPZHNGVX.js";var ie=D({source:"[Core -> Script]",events:{"Call Script":o(),"Call Script Success":_(),"Call Script Failure":o(),"Fetch Script Status":_(),"Update Script Status":o(),"Fetch Script Status Success":o(),"Fetch Script Status Failure":o(),"Stop Script":_(),"Stop Script Success":_(),"Stop Script Failure":o(),"Get Current or Last Active Script Details":_(),"Get Current or Last Active Script Details Success":o(),"Get Current or Last Active Script Details Failure":o()}});var ne=d(g,i=>i.script.scriptStatus),re=d(g,i=>i.script.scriptDetails);var ae=(()=>{let t=class t{constructor(e){this.store=e,this.scriptStatus$=this.store.select(ne),this.scriptDetails$=this.store.select(re)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var E=function(i){return i.SUCCESS="success",i.ERROR="error",i.INFO="info",i.WARNING="warning",i}(E||{});function ye(i,t){if(i&1){let j=Pt();y(0,"div",1)(1,"button",2),W("click",function(){kt(j);let n=ot();return yt(n.action())}),I(2),x()()}if(i&2){let j=ot();C(2),pt(" ",j.data.action," ")}}var Ae=["label"];function we(i,t){}var Ie=Math.pow(2,31)-1,N=class{constructor(t,j){this._overlayRef=j,this._afterDismissed=new k,this._afterOpened=new k,this._onAction=new k,this._dismissedByAction=!1,this.containerInstance=t,t._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(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Ie))}_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}},tt=new st("MatSnackBarData"),L=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},De=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=K({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=t;return i})(),Ee=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=K({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=t;return i})(),je=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=K({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=t;return i})(),Pe=(()=>{let t=class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};t.\u0275fac=function(n){return new(n||t)(v(N),v(tt))},t.\u0275cmp=G({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[H],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(y(0,"div",0),I(1),x(),Q(2,ye,3,1,"div",1)),n&2&&(C(),pt(" ",r.data.message,` -`),C(),jt(r.hasAction?2:-1))},dependencies:[Kt,De,Ee,je],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=t;return i})(),Te={snackBarState:Gt("state",[ut("void, hidden",X({transform:"scale(0.8)",opacity:0})),ut("visible",X({transform:"scale(1)",opacity:1})),dt("* => visible",ht("150ms cubic-bezier(0, 0, 0.2, 1)")),dt("* => void, * => hidden",ht("75ms cubic-bezier(0.4, 0.0, 1, 1)",X({opacity:0})))])},Re=0,Me=(()=>{let t=class t extends Yt{constructor(e,n,r,a,c){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=a,this.snackBarConfig=c,this._document=xt(Bt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new k,this._onExit=new k,this._onEnter=new k,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${Re++}`,this.attachDomPortal=h=>{this._assertNotAttached();let P=this._portalOutlet.attachDomPortal(h);return this._afterPortalAttached(),P},c.politeness==="assertive"&&!c.announcementMessage?this._live="assertive":c.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){let{fromState:n,toState:r}=e;if((r==="void"&&n!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.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 e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(c=>e.classList.add(c)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,a="mdc-snackbar__label";r.classList.toggle(a,!r.querySelector(`.${a}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};t.\u0275fac=function(n){return new(n||t)(v(It),v(At),v(Ft),v(Qt),v(L))},t.\u0275cmp=G({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(ct(gt,7),ct(Ae,7)),n&2){let a;lt(a=mt())&&(r._portalOutlet=a.first),lt(a=mt())&&(r._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,r){n&1&&Rt("@state.done",function(c){return r.onAnimationEnd(c)}),n&2&&Tt("@state",r._animationState)},standalone:!0,features:[Dt,H],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,r){n&1&&(y(0,"div",1)(1,"div",2,0)(3,"div",3),Q(4,we,0,0,"ng-template",4),x(),q(5,"div"),x()()),n&2&&(C(5),Et("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[gt],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:[Te.snackBarState]}});let i=t;return i})();function Fe(){return new L}var Be=new st("mat-snack-bar-default-options",{providedIn:"root",factory:Fe}),se=(()=>{let t=class t{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,n,r,a,c,h){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=a,this._parentSnackBar=c,this._defaultConfig=h,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Pe,this.snackBarContainerComponent=Me,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let a=p(p({},this._defaultConfig),r);return a.data={message:e,action:n},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=$.create({parent:r||this._injector,providers:[{provide:L,useValue:n}]}),c=new ft(this.snackBarContainerComponent,n.viewContainerRef,a),h=e.attach(c);return h.instance.snackBarConfig=n,h.instance}_attach(e,n){let r=p(p(p({},new L),this._defaultConfig),n),a=this._createOverlay(r),c=this._attachSnackBarContainer(a,r),h=new N(c,a);if(e instanceof wt){let P=new Zt(e,null,{$implicit:r.data,snackBarRef:h});h.instance=c.attachTemplatePortal(P)}else{let P=this._createInjector(r,h),ve=new ft(e,void 0,P),xe=c.attachComponentPortal(ve);h.instance=xe.instance}return this._breakpointObserver.observe(Ht.HandsetPortrait).pipe(vt(a.detachments())).subscribe(P=>{a.overlayElement.classList.toggle(this.handsetCssClass,P.matches)}),r.announcementMessage&&c._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(h,r),this._openedSnackBarRef=h,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){let n=new Jt;n.direction=e.direction;let r=this._overlay.position().global(),a=e.direction==="rtl",c=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!a||e.horizontalPosition==="end"&&a,h=!c&&e.horizontalPosition!=="center";return c?r.left("0"):h?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return $.create({parent:r||this._injector,providers:[{provide:N,useValue:n},{provide:tt,useValue:e.data}]})}};t.\u0275fac=function(n){return new(n||t)(s(te),s(Vt),s($),s(qt),s(t,12),s(Be))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Oe(i,t){i&1&&q(0,"mat-icon",7)}function Ne(i,t){i&1&&q(0,"mat-icon",8)}function Ue(i,t){i&1&&(y(0,"mat-icon",9),I(1,"error_outline"),x())}function Le(i,t){i&1&&(y(0,"mat-icon",10),I(1,"warning"),x())}var ce=(()=>{let t=class t{constructor(e,n){this.bannerRef=e,this.data=n,this.NotificationTypes=E}};t.\u0275fac=function(n){return new(n||t)(v(N),v(tt))},t.\u0275cmp=G({type:t,selectors:[["ms-banner"]],standalone:!0,features:[H],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,r){n&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),Q(3,Oe,1,0,"ng-template",3)(4,Ne,1,0,"ng-template",3)(5,Ue,2,0,"ng-template",3)(6,Le,2,0,"ng-template",3),x()(),y(7,"div",4)(8,"div"),I(9),x()(),y(10,"div",5)(11,"mat-icon",6),W("click",function(){return r.bannerRef.dismiss()}),I(12,"clear"),x()()()),n&2&&(C(2),U("ngSwitch",r.data.notificationType),C(),U("ngSwitchCase",r.NotificationTypes.SUCCESS),C(),U("ngSwitchCase",r.NotificationTypes.INFO),C(),U("ngSwitchCase",r.NotificationTypes.ERROR),C(),U("ngSwitchCase",r.NotificationTypes.WARNING),C(3),Mt(r.data.message))},dependencies:[Ut,Ot,Nt,Xt,Wt],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 i=t;return i})();var ze=5e3,le=5e3,Ge=1e4,me=(()=>{let t=class t{constructor(e){this.snackbar=e}showSuccess(e){this.showBanner(e,E.SUCCESS,ze,"notification-panel-success")}showInfo(e){this.showBanner(e,E.INFO,le,"notification-panel-info")}showError(e){this.showBanner(e,E.ERROR,Ge,"notification-panel-error")}showWarning(e){this.showBanner(e,E.WARNING,le,"notification-panel-warning")}showBanner(e,n,r,a){this.snackbar.openFromComponent(ce,{duration:r,data:{message:e,notificationType:n},panelClass:a})}};t.\u0275fac=function(n){return new(n||t)(s(se))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var m=D({source:"[Core -> Charts]",events:{"Get Current Pruning Chart Data":_(),"Get Current Pruning Chart Data Success":o(),"Get Current Pruning Chart Data Failure":o(),"Get Current Quantization Chart Data":_(),"Get Current Quantization Chart Data Success":o(),"Get Current Quantization Chart Data Failure":o(),"Get Current Machine Unlearning Chart Data":_(),"Get Current Machine Unlearning Chart Data Success":o(),"Get Current Machine Unlearning Chart Data Failure":o(),"Get Chart Configuration Settings":o(),"Get Chart Configuration Settings Success":o(),"Get Chart Configuration Settings Failure":o()}});var et=class extends A{constructor(t){let j=`type=${t.join(",")}`;super(`chart-configuration-settings?${j}`,void 0,void 0,!1)}};var it=class extends A{constructor(){super("current-machine-unlearning-chart-data",void 0,void 0,!1)}};var nt=class extends A{constructor(){super("current-pruning-chart-data",void 0,void 0,!1)}};var rt=class extends A{constructor(){super("current-quantization-chart-data",void 0,void 0,!1)}};var on=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getCurrentPruningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentPruningChartData),F(()=>this.apiClient.serviceCall(new nt).pipe(R(r=>m.getCurrentPruningChartDataSuccess({pruningProgress:r})),M(r=>T(m.getCurrentPruningChartDataFailure({error:r}))))))),this.getCurrentQuantizationChartData$=B(()=>this.actions$.pipe(O(m.getCurrentQuantizationChartData),F(()=>this.apiClient.serviceCall(new rt).pipe(R(r=>m.getCurrentQuantizationChartDataSuccess({quantizationProgress:r})),M(r=>T(m.getCurrentQuantizationChartDataFailure({error:r}))))))),this.getCurrentMachineUnlearningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentMachineUnlearningChartData),F(()=>this.apiClient.serviceCall(new it).pipe(R(r=>m.getCurrentMachineUnlearningChartDataSuccess({machineUnlearningProgress:r})),M(r=>T(m.getCurrentMachineUnlearningChartDataFailure({error:r}))))))),this.getChartConfigurationSettings$=B(()=>this.actions$.pipe(O(m.getChartConfigurationSettings),F(r=>this.apiClient.serviceCall(new et(r.chartTypes)).pipe(R(a=>m.getChartConfigurationSettingsSuccess({settings:a})),M(a=>T(m.getChartConfigurationSettingsFailure({error:a})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var qe={pruningProgress:[],machineUnlearningProgress:void 0,quantizationProgress:void 0,settings:{},error:null},pn=Z(qe,f(m.getCurrentPruningChartDataSuccess,(i,{pruningProgress:t})=>u(p({},i),{pruningProgress:t,machineUnlearningProgress:void 0,quantizationProgress:void 0,error:null})),f(m.getCurrentPruningChartDataFailure,(i,{error:t})=>u(p({},i),{pruningProgress:[],error:t})),f(m.getCurrentQuantizationChartDataSuccess,(i,{quantizationProgress:t})=>u(p({},i),{pruningProgress:[],quantizationProgress:t,machineUnlearningProgress:void 0,error:null})),f(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>u(p({},i),{quantizationProgress:void 0,error:t})),f(m.getCurrentMachineUnlearningChartDataSuccess,(i,{machineUnlearningProgress:t})=>u(p({},i),{pruningProgress:[],quantizationProgress:void 0,machineUnlearningProgress:t,error:null})),f(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>u(p({},i),{quantizationProgress:void 0,error:t})),f(m.getCurrentPruningChartDataFailure,(i,{error:t})=>u(p({},i),{pruningProgress:[],error:t})),f(m.getChartConfigurationSettingsSuccess,(i,{settings:t})=>u(p({},i),{settings:p(p({},i.settings),t),error:null})),f(m.getChartConfigurationSettingsFailure,(i,{error:t})=>u(p({},i),{error:t})));var pe=d(g,i=>i.charts.pruningProgress),he=d(g,i=>i.charts.quantizationProgress),ue=d(g,i=>i.charts.machineUnlearningProgress),de=d(g,i=>i.charts.settings);var yn=(()=>{let t=class t{constructor(e){this.store=e,this.pruningProgress=this.store.select(pe),this.quantizationProgress$=this.store.select(he),this.machineUnlearningProgress$=this.store.select(ue),this.settings$=this.store.select(de)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var fe=D({source:"[Core -> File]",events:{"Upload File":o(),"Upload File Success":o(),"Upload File Failure":o(),"Upload File and Call Script":o()}});var ge=(()=>{let t=class t{constructor(e){this.store=e}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var jn=(()=>{let t=class t{constructor(e,n){this.bannerService=e,this.fileFacadeService=n,this._fileSubject=new Ct(null)}get isFileLoaded(){return!!this._fileSubject.value}get file$(){return this._fileSubject.asObservable()}set file(e){this._fileSubject.next(e)}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(fe.uploadFile({file:this.file}))}};t.\u0275fac=function(n){return new(n||t)(s(me),s(ge))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Bn=(()=>{let t=class t{constructor(e){this.router=e,this.history=[]}trackNavigationHistory(){this.addInitialUrl(),this.router.events.pipe(bt(e=>e instanceof Lt)).subscribe(e=>{this.history.push(e.urlAfterRedirects)})}addInitialUrl(){let e=this.router.url;this.history.push(e)}goToPreviousPage(e=$t.MODEL_COMPRESSION.ROOT){let n=this.getPreviousUrl();n==="/"?this.router.navigateByUrl(`/${e}`):this.router.navigateByUrl(n)}getPreviousUrl(){return this.history[this.history.length-2]||"/"}};t.\u0275fac=function(n){return new(n||t)(s(zt))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Se=d(g,i=>i.parameters);var Gn=(()=>{let t=class t{constructor(e){this.store=e,this.parameters$=this.store.select(Se)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Ce=d(g,i=>i.statistics.statistics);var _e=(()=>{let t=class t{constructor(e){this.store=e,this.statistics$=this.store.select(Ce)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var be=d(g,i=>i.terminal.messages);var Yn=(()=>{let t=class t{constructor(e){this.store=e,this.messages$=this.store.select(be)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var w=D({source:"[Core -> Statistics]",events:{"Get Statistics":_(),"Get Statistics Success":o(),"Get Statistics Failure":o(),"Update Statistics":o()}});var at=class extends A{constructor(){super("statistics",void 0,void 0,!1)}};var lr=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getStatistics=B(()=>this.actions$.pipe(O(w.getStatistics),F(()=>this.apiClient.serviceCall(new at).pipe(R(r=>w.getStatisticsSuccess({statistics:r})),M(r=>T(w.getStatisticsFailure({error:r})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Ke={statistics:{},error:null},ur=Z(Ke,f(w.getStatisticsSuccess,(i,{statistics:t})=>u(p({},i),{statistics:t,error:null})),f(w.getStatisticsFailure,(i,{error:t})=>u(p({},i),{error:t})),f(w.updateStatistics,(i,{statistics:t})=>u(p({},i),{statistics:t,error:null})));var z=function(i){return i.TERMINAL="terminal",i.SCRIPT_STATUS="script_status",i.STATISTICS="statistics",i.CHARTS_PREFIX="chart_",i}(z||{}),We=function(i){return i.UPDATE_TESTING="chart_updateTesting",i.UPDATE_LATEST_VALUE="chart_updateLatestValue",i.ENHANCE_SINGLE_PHASE_X_AXIS="chart_enhanceSinglePhaseXAxis",i}(We||{});var jr=(()=>{let t=class t{handleBeforeUnload(){this.close()}constructor(e,n){this.scriptFacadeService=e,this.statisticsFacadeService=n,this.terminalMessagesSubject=new k,this.chartsMessagesSubject=new k,this.connect()}connect(){this.close(),this.socket=new WebSocket(ee.websocketUrl),this.socket.onopen=()=>{console.log("WebSocket connected!")},this.socket.onmessage=e=>St(this,null,function*(){let n=JSON.parse(e.data),{topic:r="",data:a}=n;switch(r){case z.TERMINAL:this.terminalMessagesSubject.next(a);break;case z.SCRIPT_STATUS:this.scriptFacadeService.dispatch(ie.updateScriptStatus({status:a}));break;case z.STATISTICS:let{statistics:c}=a||{};this.statisticsFacadeService.dispatch(w.updateStatistics({statistics:c}));break;default:r.startsWith(z.CHARTS_PREFIX)?this.chartsMessagesSubject.next({topic:r,data:a}):console.warn("Unknown message type:",r)}}),this.socket.onerror=e=>{console.error("WebSocket Error:",e)},this.socket.onclose=e=>{e.wasClean?console.log(`Closed cleanly, code=${e.code}, reason=${e.reason}`):console.error("Connection died"),_t(5e3).subscribe(()=>this.connect())}}get terminalMessages$(){return this.terminalMessagesSubject.asObservable()}get chartsMessages$(){return this.chartsMessagesSubject.asObservable()}send(e){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(e)}close(){this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.close()}};t.\u0275fac=function(n){return new(n||t)(s(ae),s(_e))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();export{ie as a,ae as b,E as c,me as d,m as e,on as f,pn as g,yn as h,ge as i,fe as j,jn as k,Bn as l,Gn as m,_e as n,Yn as o,w as p,lr as q,ur as r,We as s,jr as t}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QWPZ5EFE.js b/frontend/server/modelsmith-build/browser/chunk-QWPZ5EFE.js deleted file mode 100644 index 332a1f26..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-QWPZ5EFE.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ie,b as ae,c as le,e as fe,f as ge}from"./chunk-DQ7AOZDA.js";import{b as te}from"./chunk-3S6QBQVM.js";import{a as ce,b as de}from"./chunk-G267DK6J.js";import{a as F,c as ue}from"./chunk-WHP5P3DQ.js";import{b as oe,e as ne,f as re}from"./chunk-W4U3FJPJ.js";import{a as me,b as pe}from"./chunk-2FJ2YO2M.js";import{b as se}from"./chunk-PSFPSLKI.js";import{a as A,b as h}from"./chunk-GMIVG7ET.js";import{h as Q,i as Y}from"./chunk-HG2O7P4S.js";import{Ab as E,Ae as ee,Bb as L,Db as R,E as b,Ea as n,Fa as p,Fb as S,Gb as y,Qa as l,R as I,Sa as r,Tb as G,Td as k,Ub as V,Ud as j,_b as D,ab as m,bb as a,bc as K,be as $,cb as u,ce as d,da as O,db as f,dd as B,eb as g,ee as z,fe as X,ge as q,ha as P,ie as v,lb as M,le as U,ne as W,oa as N,p as T,pc as w,pe as H,te as J,ub as c,wb as x,x as _,ze as Z}from"./chunk-NPZHNGVX.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=ae,this.RoutesList=B,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(ne(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=>!re(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 q({[this.MODEL_CONTROL_NAME]:new v("",$.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(h(this)).subscribe(e=>{oe(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(se),p(le))},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:[J,z,X,U,H,W,pe,me,Y,Q,de,ce,j,k,ee,Z,K,G,V,D,ge,fe,w,te,ie],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([A()],Me);export{Me as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-R5J4FM6S.js b/frontend/server/modelsmith-build/browser/chunk-R5J4FM6S.js deleted file mode 100644 index 38e6de6f..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-R5J4FM6S.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ue}from"./chunk-D2Y5ESR4.js";import{a as se,b as ce}from"./chunk-G267DK6J.js";import{a as ne,b as me}from"./chunk-GSC3HYC7.js";import{a as ee,b as te}from"./chunk-PP7DOJYP.js";import{d as fe}from"./chunk-QVZ2CSJP.js";import{a as re,b as ie}from"./chunk-SMKHMGDE.js";import{b as ae}from"./chunk-W4U3FJPJ.js";import{a as pe,b as le}from"./chunk-2FJ2YO2M.js";import{b as oe,m as de}from"./chunk-PSFPSLKI.js";import{a as D,b as F}from"./chunk-GMIVG7ET.js";import{a as J,d as Q,h as W,i as X}from"./chunk-HG2O7P4S.js";import{$d as k,Ab as E,Ae as Z,Bb as A,Ea as i,Fa as c,Ib as N,Q as M,Qa as d,Sa as n,Tb as O,Ub as G,Ud as $,ab as m,bb as o,bc as w,cb as v,ce as u,da as S,db as h,dd as K,eb as C,ee as L,fe as R,ge as V,ha as I,lb as f,ne as j,oa as P,ob as _,oe as U,p as y,pe as B,qe as H,re as q,tb as T,te as z,ub as s,vb as g,wb as b,x,ze as Y}from"./chunk-NPZHNGVX.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=K,this.alg=fe,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new V({parametersArray:new H([])}))}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=ae(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(q),c(u),c(de),c(oe))},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,te,ee,W,J,Q,z,k,L,R,B,j,U,le,pe,X,ce,se,$,ie,re,me,ne,Z,Y],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([D()],ve);export{ve as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-HG2O7P4S.js b/frontend/server/modelsmith-build/browser/chunk-RTK5DRKR.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-HG2O7P4S.js rename to frontend/server/modelsmith-build/browser/chunk-RTK5DRKR.js index 74196e21..a86a323c 100644 --- a/frontend/server/modelsmith-build/browser/chunk-HG2O7P4S.js +++ b/frontend/server/modelsmith-build/browser/chunk-RTK5DRKR.js @@ -1,4 +1,4 @@ -import{$ as W,Ab as O,Ac as ue,Ba as te,Bb as Y,Cc as pe,D as B,E as U,Ea as r,Fa as c,Gd as _e,Ib as ae,Ka as v,Kd as q,La as ie,Lb as re,P as $,Qa as u,Qb as ce,Ra as A,Sa as w,T,Ua as E,Ya as p,Zb as fe,_ as V,aa as z,ab as f,bb as m,bc as me,cb as L,da as C,fd as he,g as Q,gb as de,h as H,ha as S,hb as I,ia as Z,j as D,ja as g,jb as le,lb as _,ld as be,mb as P,nb as b,pa as G,pb as y,qa as K,qb as F,rb as s,sb as x,tb as N,td as ge,ua as J,ub as oe,va as ee,vb as ne,vc as se,wc as xe,xa as M,zc as j}from"./chunk-NPZHNGVX.js";var X=class{constructor(e){this._box=e,this._destroyed=new D,this._resizeSubject=new D,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(n=>this._resizeSubject.next(n)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new H(n=>{let t=this._resizeSubject.subscribe(n);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(U(n=>n.some(t=>t.target===e)),$({bufferSize:1,refCount:!0}),T(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},ve=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=C(v),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,l){let d=l?.box||"content-box";return this._observers.has(d)||this._observers.set(d,new X(d)),this._observers.get(d).observe(t)}};e.\u0275fac=function(l){return new(l||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Pe=["notch"],Ne=["matFormFieldNotchedOutline",""],Ye=["*"],je=["textField"],qe=["iconPrefixContainer"],Xe=["textPrefixContainer"],Qe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],He=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Be(i,e){i&1&&L(0,"span",19)}function Ue(i,e){if(i&1&&(f(0,"label",18),b(1,1),u(2,Be,1,0,"span",19),m()),i&2){let n=_(2);w("floating",n._shouldLabelFloat())("monitorResize",n._hasOutline())("id",n._labelId),A("for",n._control.disableAutomaticLabeling?null:n._control.id),r(2),p(!n.hideRequiredMarker&&n._control.required?2:-1)}}function $e(i,e){if(i&1&&u(0,Ue,3,5,"label",18),i&2){let n=_();p(n._hasFloatingLabel()?0:-1)}}function Ve(i,e){i&1&&L(0,"div",5)}function We(i,e){}function Ze(i,e){if(i&1&&u(0,We,0,0,"ng-template",11),i&2){_(2);let n=N(1);w("ngTemplateOutlet",n)}}function Ge(i,e){if(i&1&&(f(0,"div",7),u(1,Ze,1,1,null,11),m()),i&2){let n=_();w("matFormFieldNotchedOutlineOpen",n._shouldLabelFloat()),r(),p(n._forceDisplayInfixLabel()?-1:1)}}function Ke(i,e){i&1&&(f(0,"div",8,2),b(2,2),m())}function Je(i,e){i&1&&(f(0,"div",9,3),b(2,3),m())}function et(i,e){}function tt(i,e){if(i&1&&u(0,et,0,0,"ng-template",11),i&2){_();let n=N(1);w("ngTemplateOutlet",n)}}function it(i,e){i&1&&(f(0,"div",12),b(1,4),m())}function dt(i,e){i&1&&(f(0,"div",13),b(1,5),m())}function lt(i,e){i&1&&L(0,"div",14)}function ot(i,e){if(i&1&&(f(0,"div",16),b(1,6),m()),i&2){let n=_();w("@transitionMessages",n._subscriptAnimationState)}}function nt(i,e){if(i&1&&(f(0,"mat-hint",20),oe(1),m()),i&2){let n=_(2);w("id",n._hintLabelId),r(),ne(n.hintLabel)}}function at(i,e){if(i&1&&(f(0,"div",17),u(1,nt,2,2,"mat-hint",20),b(2,7),L(3,"div",21),b(4,8),m()),i&2){let n=_();w("@transitionMessages",n._subscriptAnimationState),r(),p(n.hintLabel?1:-1)}}var we=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})(),rt=0,Te=new z("MatError"),Bt=(()=>{let e=class e{constructor(t,l){this.id=`mat-mdc-error-${rt++}`,t||l.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(l){return new(l||e)(J("aria-live"),c(M))},e.\u0275dir=g({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(l,d){l&2&&I("id",d.id)},inputs:{id:"id"},standalone:!0,features:[O([{provide:Te,useExisting:e}])]});let i=e;return i})(),ct=0,ye=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${ct++}`}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(l,d){l&2&&(I("id",d.id),A("align",null),E("mat-mdc-form-field-hint-end",d.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),Oe=new z("MatPrefix"),Ut=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[O([{provide:Oe,useExisting:e}])]});let i=e;return i})(),ke=new z("MatSuffix"),$t=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[O([{provide:ke,useExisting:e}])]});let i=e;return i})(),Re=new z("FloatingLabelParent"),Fe=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=C(ve),this._ngZone=C(v),this._parent=C(Re),this._resizeSubscription=new Q}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return ft(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(l){return new(l||e)(c(M))},e.\u0275dir=g({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(l,d){l&2&&E("mdc-floating-label--float-above",d.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function ft(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);let t=n.scrollWidth;return n.remove(),t}var ze="mdc-line-ripple--active",k="mdc-line-ripple--deactivating",Ce=(()=>{let e=class e{constructor(t,l){this._elementRef=t,this._handleTransitionEnd=d=>{let o=this._elementRef.nativeElement.classList,a=o.contains(k);d.propertyName==="opacity"&&a&&o.remove(ze,k)},l.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(k),t.add(ze)}deactivate(){this._elementRef.nativeElement.classList.add(k)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(l){return new(l||e)(c(M),c(v))},e.\u0275dir=g({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),Ee=(()=>{let e=class e{constructor(t,l){this._elementRef=t,this._ngZone=l,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(l){return new(l||e)(c(M),c(v))},e.\u0275cmp=S({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(l,d){if(l&1&&F(Pe,5),l&2){let o;s(o=x())&&(d._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(l,d){l&2&&E("mdc-notched-outline--notched",d.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Y],attrs:Ne,ngContentSelectors:Ye,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(l,d){l&1&&(P(),L(0,"div",1),f(1,"div",2,0),b(3),m(),L(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),mt={transitionMessages:se("transitionMessages",[ue("enter",j({opacity:1,transform:"translateY(0%)"})),pe("void => enter",[j({opacity:0,transform:"translateY(-5px)"}),xe("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},st=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e});let i=e;return i})();var xt=new z("MatFormField"),ut=new z("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Le=0,Me="fill",pt="auto",De="fixed",ht="translateY(-50%)",Vt=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=he(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||pt}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let l=this._appearance,d=t||this._defaults?.appearance||Me;this._appearance=d,this._appearance==="outline"&&this._appearance!==l&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||De}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||De}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,l,d,o,a,h,R,Se){this._elementRef=t,this._changeDetectorRef=l,this._dir=o,this._platform=a,this._defaults=h,this._animationMode=R,this._hideRequiredMarker=!1,this.color="primary",this._appearance=Me,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${Le++}`,this._hintLabelId=`mat-mdc-hint-${Le++}`,this._subscriptAnimationState="",this._destroyed=new D,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=C(ee),h&&(h.appearance&&(this.appearance=h.appearance),this._hideRequiredMarker=!!h?.hideRequiredMarker,h.color&&(this.color=h.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 t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(T(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),B(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),ie(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(T(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(t){let l=this._control?this._control.ngControl:null;return l&&l[t]}_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 t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let l=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,d=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;l?t.push(l.id):this._hintLabel&&t.push(this._hintLabelId),d&&t.push(d.id)}else this._errorChildren&&t.push(...this._errorChildren.map(l=>l.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let l=this._iconPrefixContainer?.nativeElement,d=this._textPrefixContainer?.nativeElement,o=l?.getBoundingClientRect().width??0,a=d?.getBoundingClientRect().width??0,h=this._dir.value==="rtl"?"-1":"1",R=`${o+a}px`,Ae=`calc(${h} * (${R} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( +import{$ as W,Ab as O,Ba as te,Bb as Y,D as B,Dd as _e,E as U,Ea as r,Fa as c,Hd as q,Ib as ae,Ka as v,La as ie,Lb as re,P as $,Qa as u,Qb as ce,Ra as A,Sa as w,T,Ua as E,Wb as fe,Ya as p,_ as V,_b as me,aa as z,ab as f,bb as m,cb as L,cd as he,da as C,g as Q,gb as de,h as H,ha as S,hb as I,ia as Z,id as be,j as D,ja as g,jb as le,lb as _,mb as P,nb as b,pa as G,pb as y,qa as K,qb as F,qd as ge,rb as s,sb as x,sc as se,tb as N,tc as xe,ua as J,ub as oe,va as ee,vb as ne,wc as j,xa as M,xc as ue,zc as pe}from"./chunk-I5FNXPEQ.js";var X=class{constructor(e){this._box=e,this._destroyed=new D,this._resizeSubject=new D,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(n=>this._resizeSubject.next(n)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new H(n=>{let t=this._resizeSubject.subscribe(n);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(U(n=>n.some(t=>t.target===e)),$({bufferSize:1,refCount:!0}),T(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},ve=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=C(v),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,l){let d=l?.box||"content-box";return this._observers.has(d)||this._observers.set(d,new X(d)),this._observers.get(d).observe(t)}};e.\u0275fac=function(l){return new(l||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Pe=["notch"],Ne=["matFormFieldNotchedOutline",""],Ye=["*"],je=["textField"],qe=["iconPrefixContainer"],Xe=["textPrefixContainer"],Qe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],He=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Be(i,e){i&1&&L(0,"span",19)}function Ue(i,e){if(i&1&&(f(0,"label",18),b(1,1),u(2,Be,1,0,"span",19),m()),i&2){let n=_(2);w("floating",n._shouldLabelFloat())("monitorResize",n._hasOutline())("id",n._labelId),A("for",n._control.disableAutomaticLabeling?null:n._control.id),r(2),p(!n.hideRequiredMarker&&n._control.required?2:-1)}}function $e(i,e){if(i&1&&u(0,Ue,3,5,"label",18),i&2){let n=_();p(n._hasFloatingLabel()?0:-1)}}function Ve(i,e){i&1&&L(0,"div",5)}function We(i,e){}function Ze(i,e){if(i&1&&u(0,We,0,0,"ng-template",11),i&2){_(2);let n=N(1);w("ngTemplateOutlet",n)}}function Ge(i,e){if(i&1&&(f(0,"div",7),u(1,Ze,1,1,null,11),m()),i&2){let n=_();w("matFormFieldNotchedOutlineOpen",n._shouldLabelFloat()),r(),p(n._forceDisplayInfixLabel()?-1:1)}}function Ke(i,e){i&1&&(f(0,"div",8,2),b(2,2),m())}function Je(i,e){i&1&&(f(0,"div",9,3),b(2,3),m())}function et(i,e){}function tt(i,e){if(i&1&&u(0,et,0,0,"ng-template",11),i&2){_();let n=N(1);w("ngTemplateOutlet",n)}}function it(i,e){i&1&&(f(0,"div",12),b(1,4),m())}function dt(i,e){i&1&&(f(0,"div",13),b(1,5),m())}function lt(i,e){i&1&&L(0,"div",14)}function ot(i,e){if(i&1&&(f(0,"div",16),b(1,6),m()),i&2){let n=_();w("@transitionMessages",n._subscriptAnimationState)}}function nt(i,e){if(i&1&&(f(0,"mat-hint",20),oe(1),m()),i&2){let n=_(2);w("id",n._hintLabelId),r(),ne(n.hintLabel)}}function at(i,e){if(i&1&&(f(0,"div",17),u(1,nt,2,2,"mat-hint",20),b(2,7),L(3,"div",21),b(4,8),m()),i&2){let n=_();w("@transitionMessages",n._subscriptAnimationState),r(),p(n.hintLabel?1:-1)}}var we=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})(),rt=0,Te=new z("MatError"),Bt=(()=>{let e=class e{constructor(t,l){this.id=`mat-mdc-error-${rt++}`,t||l.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(l){return new(l||e)(J("aria-live"),c(M))},e.\u0275dir=g({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(l,d){l&2&&I("id",d.id)},inputs:{id:"id"},standalone:!0,features:[O([{provide:Te,useExisting:e}])]});let i=e;return i})(),ct=0,ye=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${ct++}`}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(l,d){l&2&&(I("id",d.id),A("align",null),E("mat-mdc-form-field-hint-end",d.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),Oe=new z("MatPrefix"),Ut=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[O([{provide:Oe,useExisting:e}])]});let i=e;return i})(),ke=new z("MatSuffix"),$t=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[O([{provide:ke,useExisting:e}])]});let i=e;return i})(),Re=new z("FloatingLabelParent"),Fe=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=C(ve),this._ngZone=C(v),this._parent=C(Re),this._resizeSubscription=new Q}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return ft(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(l){return new(l||e)(c(M))},e.\u0275dir=g({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(l,d){l&2&&E("mdc-floating-label--float-above",d.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function ft(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);let t=n.scrollWidth;return n.remove(),t}var ze="mdc-line-ripple--active",k="mdc-line-ripple--deactivating",Ce=(()=>{let e=class e{constructor(t,l){this._elementRef=t,this._handleTransitionEnd=d=>{let o=this._elementRef.nativeElement.classList,a=o.contains(k);d.propertyName==="opacity"&&a&&o.remove(ze,k)},l.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(k),t.add(ze)}deactivate(){this._elementRef.nativeElement.classList.add(k)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(l){return new(l||e)(c(M),c(v))},e.\u0275dir=g({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),Ee=(()=>{let e=class e{constructor(t,l){this._elementRef=t,this._ngZone=l,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(l){return new(l||e)(c(M),c(v))},e.\u0275cmp=S({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(l,d){if(l&1&&F(Pe,5),l&2){let o;s(o=x())&&(d._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(l,d){l&2&&E("mdc-notched-outline--notched",d.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Y],attrs:Ne,ngContentSelectors:Ye,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(l,d){l&1&&(P(),L(0,"div",1),f(1,"div",2,0),b(3),m(),L(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),mt={transitionMessages:se("transitionMessages",[ue("enter",j({opacity:1,transform:"translateY(0%)"})),pe("void => enter",[j({opacity:0,transform:"translateY(-5px)"}),xe("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},st=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e});let i=e;return i})();var xt=new z("MatFormField"),ut=new z("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Le=0,Me="fill",pt="auto",De="fixed",ht="translateY(-50%)",Vt=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=he(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||pt}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let l=this._appearance,d=t||this._defaults?.appearance||Me;this._appearance=d,this._appearance==="outline"&&this._appearance!==l&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||De}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||De}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,l,d,o,a,h,R,Se){this._elementRef=t,this._changeDetectorRef=l,this._dir=o,this._platform=a,this._defaults=h,this._animationMode=R,this._hideRequiredMarker=!1,this.color="primary",this._appearance=Me,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${Le++}`,this._hintLabelId=`mat-mdc-hint-${Le++}`,this._subscriptAnimationState="",this._destroyed=new D,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=C(ee),h&&(h.appearance&&(this.appearance=h.appearance),this._hideRequiredMarker=!!h?.hideRequiredMarker,h.color&&(this.color=h.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 t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(T(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),B(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),ie(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(T(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(t){let l=this._control?this._control.ngControl:null;return l&&l[t]}_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 t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let l=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,d=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;l?t.push(l.id):this._hintLabel&&t.push(this._hintLabelId),d&&t.push(d.id)}else this._errorChildren&&t.push(...this._errorChildren.map(l=>l.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let l=this._iconPrefixContainer?.nativeElement,d=this._textPrefixContainer?.nativeElement,o=l?.getBoundingClientRect().width??0,a=d?.getBoundingClientRect().width??0,h=this._dir.value==="rtl"?"-1":"1",R=`${o+a}px`,Ae=`calc(${h} * (${R} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( --mat-mdc-form-field-label-transform, ${ht} translateX(${Ae}) )`}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let l=t.getRootNode();return l&&l!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(l){return new(l||e)(c(M),c(re),c(v),c(_e),c(be),c(ut,8),c(te,8),c(ce))},e.\u0275cmp=S({type:e,selectors:[["mat-form-field"]],contentQueries:function(l,d,o){if(l&1&&(y(o,we,5),y(o,we,7),y(o,st,5),y(o,Oe,5),y(o,ke,5),y(o,Te,5),y(o,ye,5)),l&2){let a;s(a=x())&&(d._labelChildNonStatic=a.first),s(a=x())&&(d._labelChildStatic=a.first),s(a=x())&&(d._formFieldControl=a.first),s(a=x())&&(d._prefixChildren=a),s(a=x())&&(d._suffixChildren=a),s(a=x())&&(d._errorChildren=a),s(a=x())&&(d._hintChildren=a)}},viewQuery:function(l,d){if(l&1&&(F(je,5),F(qe,5),F(Xe,5),F(Fe,5),F(Ee,5),F(Ce,5)),l&2){let o;s(o=x())&&(d._textField=o.first),s(o=x())&&(d._iconPrefixContainer=o.first),s(o=x())&&(d._textPrefixContainer=o.first),s(o=x())&&(d._floatingLabel=o.first),s(o=x())&&(d._notchedOutline=o.first),s(o=x())&&(d._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(l,d){l&2&&E("mat-mdc-form-field-label-always-float",d._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",d._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",d._hasIconSuffix)("mat-form-field-invalid",d._control.errorState)("mat-form-field-disabled",d._control.disabled)("mat-form-field-autofilled",d._control.autofilled)("mat-form-field-no-animations",d._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",d.appearance=="fill")("mat-form-field-appearance-outline",d.appearance=="outline")("mat-form-field-hide-placeholder",d._hasFloatingLabel()&&!d._shouldLabelFloat())("mat-focused",d._control.focused)("mat-primary",d.color!=="accent"&&d.color!=="warn")("mat-accent",d.color==="accent")("mat-warn",d.color==="warn")("ng-untouched",d._shouldForward("untouched"))("ng-touched",d._shouldForward("touched"))("ng-pristine",d._shouldForward("pristine"))("ng-dirty",d._shouldForward("dirty"))("ng-valid",d._shouldForward("valid"))("ng-invalid",d._shouldForward("invalid"))("ng-pending",d._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[O([{provide:xt,useExisting:e},{provide:Re,useExisting:e}]),Y],ngContentSelectors:He,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(l,d){if(l&1){let o=de();P(Qe),u(0,$e,1,1,"ng-template",null,0,ae),f(2,"div",4,1),le("click",function(h){return G(o),K(d._control.onContainerClick(h))}),u(4,Ve,1,0,"div",5),f(5,"div",6),u(6,Ge,2,2,"div",7)(7,Ke,3,0,"div",8)(8,Je,3,0,"div",9),f(9,"div",10),u(10,tt,1,1,null,11),b(11),m(),u(12,it,2,0,"div",12)(13,dt,2,0,"div",13),m(),u(14,lt,1,0,"div",14),m(),f(15,"div",15),u(16,ot,2,1,"div",16)(17,at,5,2,"div",17),m()}if(l&2){let o;r(2),E("mdc-text-field--filled",!d._hasOutline())("mdc-text-field--outlined",d._hasOutline())("mdc-text-field--no-label",!d._hasFloatingLabel())("mdc-text-field--disabled",d._control.disabled)("mdc-text-field--invalid",d._control.errorState),r(2),p(!d._hasOutline()&&!d._control.disabled?4:-1),r(2),p(d._hasOutline()?6:-1),r(),p(d._hasIconPrefix?7:-1),r(),p(d._hasTextPrefix?8:-1),r(2),p(!d._hasOutline()||d._forceDisplayInfixLabel()?10:-1),r(2),p(d._hasTextSuffix?12:-1),r(),p(d._hasIconSuffix?13:-1),r(),p(d._hasOutline()?-1:14),r(),E("mat-mdc-form-field-subscript-dynamic-size",d.subscriptSizing==="dynamic"),r(),p((o=d._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[Fe,Ee,fe,Ce,ye],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:[mt.transitionMessages]},changeDetection:0});let i=e;return i})(),Wt=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=W({imports:[q,me,ge,q]});let i=e;return i})();export{we as a,Bt as b,Ut as c,$t as d,st as e,xt as f,ut as g,Vt as h,Wt as i}; diff --git a/frontend/server/modelsmith-build/browser/chunk-C3C4GFAG.js b/frontend/server/modelsmith-build/browser/chunk-RU3TG3QQ.js similarity index 71% rename from frontend/server/modelsmith-build/browser/chunk-C3C4GFAG.js rename to frontend/server/modelsmith-build/browser/chunk-RU3TG3QQ.js index 289b5428..2e30f052 100644 --- a/frontend/server/modelsmith-build/browser/chunk-C3C4GFAG.js +++ b/frontend/server/modelsmith-build/browser/chunk-RU3TG3QQ.js @@ -1 +1 @@ -import{a as u}from"./chunk-R5J4FM6S.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-PP7DOJYP.js";import{a as f}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as S,g as x,j as y}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as q,b as K}from"./chunk-PSFPSLKI.js";import{a as G,b as L}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as p,Ea as n,Fa as g,Sa as s,a as h,ab as a,b as F,bb as c,bc as D,cb as v,db as E,eb as P,fe as U,gb as I,ha as w,ia as l,jb as N,me as V,p as b,pa as A,qa as T,qb as O,rb as R,re as _,sb as j,sc as C,se as Q,te as k,ub as M,ue as B,xe as W}from"./chunk-NPZHNGVX.js";var z=["panelParameters"],r,d=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=x,this.MultiflowAlgorithmsEnum=y,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(y.MULTIFLOW_PRUNE)},0)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(L(this)).subscribe(t=>{this.isScriptActive=S(t),S(t)?this.form.disable():this.form.enable()})}submit(){if(this.isScriptActive)return;let{algorithm:t}=this.form.getRawValue(),i=F(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(q.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(_),g(K))},r.\u0275cmp=w({type:r,selectors:[["ms-multi-modal"]],viewQuery:function(i,e){if(i&1&&O(z,5),i&2){let o;R(o=j())&&(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();a(0,"p",1),M(1,"Multi-modal"),c(),a(2,"div",2)(3,"div",3),E(4,4),v(5,"ms-panel-parameters",5,0),P(),a(7,"div")(8,"button",6),N("click",function(){return A(o),T(e.submit())}),M(9," Run "),c()()(),a(10,"div",7),v(11,"ms-terminal"),c()()}i&2&&(n(2),s("formGroup",e.form),n(2),s("formGroup",e.form),n(),s("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),n(3),s("disabled",e.isScriptActive||e.form.invalid))},dependencies:[u,f,U,V,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);d=b([G()],d);var H=[{path:"",component:d}],$=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(H),C]});let m=t;return m})();var yt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[D,u,f,$,Q,k,W]});let m=t;return m})();export{yt as MultiModalModule}; +import{a as u}from"./chunk-D4NO5T2F.js";import"./chunk-HHI42NCD.js";import"./chunk-YTNKLUWY.js";import"./chunk-A3HRP5BG.js";import"./chunk-VRD7QX3W.js";import"./chunk-SWEZDJOL.js";import{a as f}from"./chunk-OMCAGIEN.js";import"./chunk-BY5EH3KZ.js";import"./chunk-W5GEUOC3.js";import{b as S,g as x,j as y}from"./chunk-W4U3FJPJ.js";import"./chunk-I4357ONH.js";import{a as q,b as K}from"./chunk-KE2JE72J.js";import{a as G,b as L}from"./chunk-COKZMNNS.js";import"./chunk-LDDHJMMZ.js";import"./chunk-RTK5DRKR.js";import{$ as p,Ea as n,Fa as g,Sa as s,_b as D,a as h,ab as a,b as F,bb as c,cb as v,ce as U,db as E,eb as P,gb as I,ha as w,ia as l,jb as N,je as V,oe as _,p as b,pa as A,pc as C,pe as Q,qa as T,qb as O,qe as k,rb as R,re as B,sb as j,ub as M,ue as W}from"./chunk-I5FNXPEQ.js";var z=["panelParameters"],r,d=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=x,this.MultiflowAlgorithmsEnum=y,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(y.MULTIFLOW_PRUNE)},0)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(L(this)).subscribe(t=>{this.isScriptActive=S(t),S(t)?this.form.disable():this.form.enable()})}submit(){if(this.isScriptActive)return;let{algorithm:t}=this.form.getRawValue(),i=F(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(q.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(_),g(K))},r.\u0275cmp=w({type:r,selectors:[["ms-multi-modal"]],viewQuery:function(i,e){if(i&1&&O(z,5),i&2){let o;R(o=j())&&(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();a(0,"p",1),M(1,"Multi-modal"),c(),a(2,"div",2)(3,"div",3),E(4,4),v(5,"ms-panel-parameters",5,0),P(),a(7,"div")(8,"button",6),N("click",function(){return A(o),T(e.submit())}),M(9," Run "),c()()(),a(10,"div",7),v(11,"ms-terminal"),c()()}i&2&&(n(2),s("formGroup",e.form),n(2),s("formGroup",e.form),n(),s("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),n(3),s("disabled",e.isScriptActive||e.form.invalid))},dependencies:[u,f,U,V,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);d=b([G()],d);var H=[{path:"",component:d}],$=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(H),C]});let m=t;return m})();var yt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[D,u,f,$,Q,k,W]});let m=t;return m})();export{yt as MultiModalModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-PP7DOJYP.js b/frontend/server/modelsmith-build/browser/chunk-SWEZDJOL.js similarity index 95% rename from frontend/server/modelsmith-build/browser/chunk-PP7DOJYP.js rename to frontend/server/modelsmith-build/browser/chunk-SWEZDJOL.js index 350d9778..a1099e2d 100644 --- a/frontend/server/modelsmith-build/browser/chunk-PP7DOJYP.js +++ b/frontend/server/modelsmith-build/browser/chunk-SWEZDJOL.js @@ -1 +1 @@ -import{e as U,f as Z,i as C}from"./chunk-HG2O7P4S.js";import{$ as u,Ab as D,Fa as r,Ka as f,Kd as w,Ld as P,Md as O,Ra as k,Ua as L,_ as T,aa as A,be as B,ca as y,de as V,fd as _,hb as N,he as z,ia as m,j as c,ja as E,jb as b,kd as I,ld as p,md as M,me as q,nd as j,o as S,oa as F,xa as x}from"./chunk-NPZHNGVX.js";var $=j({passive:!0}),K=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return S;let t=I(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new c,a="cdk-text-field-autofilled",d=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,$),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",d,$)}}),o}stopMonitoring(e){let t=I(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ee=new A("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ie=0,we=(()=>{let i=class i{get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(B.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,s,o,a,d,l,Y,G,H){this._elementRef=e,this._platform=t,this.ngControl=s,this._autofillMonitor=Y,this._formField=H,this._uid=`mat-input-${ie++}`,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(v=>M().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,R=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&G.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new P(d,s,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=R==="select",this._isTextarea=R==="textarea",this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){te.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(V,10),r(z,8),r(q,8),r(O),r(ee,10),r(K),r(f),r(Z,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&b("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(N("id",s.id)("disabled",s.disabled)("required",s.required),k("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),L("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._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:[D([{provide:U,useExisting:i}]),F]});let n=i;return n})(),Ce=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[w,C,C,W,w]});let n=i;return n})();export{we as a,Ce as b}; +import{e as U,f as Z,i as C}from"./chunk-RTK5DRKR.js";import{$ as u,Ab as D,Fa as r,Hd as w,Id as P,Jd as O,Ka as f,Ra as k,Ua as L,_ as T,_d as B,aa as A,ae as V,ca as y,cd as _,ee as z,hb as N,hd as I,ia as m,id as p,j as c,ja as E,jb as b,jd as M,je as q,kd as j,o as S,oa as F,xa as x}from"./chunk-I5FNXPEQ.js";var $=j({passive:!0}),K=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return S;let t=I(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new c,a="cdk-text-field-autofilled",d=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,$),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",d,$)}}),o}stopMonitoring(e){let t=I(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ee=new A("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ie=0,we=(()=>{let i=class i{get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(B.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,s,o,a,d,l,Y,G,H){this._elementRef=e,this._platform=t,this.ngControl=s,this._autofillMonitor=Y,this._formField=H,this._uid=`mat-input-${ie++}`,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(v=>M().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,R=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&G.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new P(d,s,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=R==="select",this._isTextarea=R==="textarea",this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){te.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(V,10),r(z,8),r(q,8),r(O),r(ee,10),r(K),r(f),r(Z,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&b("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(N("id",s.id)("disabled",s.disabled)("required",s.required),k("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),L("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._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:[D([{provide:U,useExisting:i}]),F]});let n=i;return n})(),Ce=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[w,C,C,W,w]});let n=i;return n})();export{we as a,Ce as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-TTPGYBAP.js b/frontend/server/modelsmith-build/browser/chunk-TTPGYBAP.js deleted file mode 100644 index 9841f879..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-TTPGYBAP.js +++ /dev/null @@ -1 +0,0 @@ -import{a as _i,b as vi}from"./chunk-2FJ2YO2M.js";import{$ as q,Ab as ni,Ad as di,Ba as Y,Bb as I,D as T,Ea as m,Ed as si,Fa as r,Gd as hi,Ka as J,Kd as V,Lb as z,Ma as ii,Md as li,Nb as u,Nd as pi,Ob as R,Pa as D,Pd as mi,Qa as y,Qb as oi,R as S,Ra as F,S as N,Sa as M,T as g,Tb as ri,Ua as w,Wa as ti,Ya as j,Yd as ui,aa as _,ab as d,bb as l,cb as O,da as B,gb as ei,ha as f,hb as ci,ia as G,j as k,ja as K,jb as v,lb as A,mb as P,nb as C,pa as W,pb as p,qa as U,qb as ai,rb as s,sb as h,ua as $,ub as L,va as Z,vb as H,xa as E,ya as b,za as X}from"./chunk-NPZHNGVX.js";var Si=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ei=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Di(a,c){a&1&&(d(0,"span",3),C(1,1),l())}function Fi(a,c){a&1&&(d(0,"span",6),C(1,2),l())}var Mi=["*"];var Ai=new _("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),gi=new _("MatChipAvatar"),fi=new _("MatChipTrailingIcon"),bi=new _("MatChipRemove"),Ci=new _("MatChip"),yi=(()=>{let c=class c{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,t){this._elementRef=i,this._parentChip=t,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())}};c.\u0275fac=function(t){return new(t||c)(r(E),r(Ci))},c.\u0275dir=K({type:c,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(t,e){t&1&&v("click",function(n){return e._handleClick(n)})("keydown",function(n){return e._handleKeydown(n)}),t&2&&(F("tabindex",e._getTabindex())("disabled",e._getDisabledAttribute())("aria-disabled",e.disabled),w("mdc-evolution-chip__action--primary",e._isPrimary)("mdc-evolution-chip__action--presentational",!e.isInteractive)("mdc-evolution-chip__action--trailing",!e._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:R(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[D]});let a=c;return a})();var Ri=0,Ti=(()=>{let c=class c{_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,t,e,o,n,Ii,xi,Q){this._changeDetectorRef=i,this._elementRef=t,this._ngZone=e,this._focusMonitor=o,this._globalRippleOptions=xi,this._onFocus=new k,this._onBlur=new k,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${Ri++}`,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(ui),this._injector=B(Z),this._document=n,this._animationsDisabled=Ii==="NoopAnimations",Q!=null&&(this.tabIndex=parseInt(Q)??-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=T(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(t=>{let e=t._elementRef.nativeElement;return e===i||e.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 t=i!==null;t!==this._hasFocusInternal&&(this._hasFocusInternal=t,t?this._onFocus.next({chip:this}):ii(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};c.\u0275fac=function(t){return new(t||c)(r(z),r(E),r(J),r(si),r(oi),r(Y,8),r(pi,8),$("tabindex"))},c.\u0275cmp=f({type:c,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,o){if(t&1&&(p(o,gi,5),p(o,fi,5),p(o,bi,5),p(o,gi,5),p(o,fi,5),p(o,bi,5)),t&2){let n;s(n=h())&&(e.leadingIcon=n.first),s(n=h())&&(e.trailingIcon=n.first),s(n=h())&&(e.removeIcon=n.first),s(n=h())&&(e._allLeadingIcons=n),s(n=h())&&(e._allTrailingIcons=n),s(n=h())&&(e._allRemoveIcons=n)}},viewQuery:function(t,e){if(t&1&&ai(yi,5),t&2){let o;s(o=h())&&(e.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&(ci("id",e.id),F("role",e.role)("tabindex",e._getTabIndex())("aria-label",e.ariaLabel),ti("mat-"+(e.color||"primary")),w("mdc-evolution-chip",!e._isBasicChip)("mdc-evolution-chip--disabled",e.disabled)("mdc-evolution-chip--with-trailing-action",e._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",e.leadingIcon)("mdc-evolution-chip--with-primary-icon",e.leadingIcon)("mdc-evolution-chip--with-avatar",e.leadingIcon)("mat-mdc-chip-with-avatar",e.leadingIcon)("mat-mdc-chip-highlighted",e.highlighted)("mat-mdc-chip-disabled",e.disabled)("mat-mdc-basic-chip",e._isBasicChip)("mat-mdc-standard-chip",!e._isBasicChip)("mat-mdc-chip-with-trailing-icon",e._hasTrailingIcon())("_mat-animation-noopable",e._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",u],highlighted:[2,"highlighted","highlighted",u],disableRipple:[2,"disableRipple","disableRipple",u],disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:R(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[ni([{provide:Ci,useExisting:c}]),D,I],ngContentSelectors:Ei,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(t,e){t&1&&(P(Si),O(0,"span",0),d(1,"span",1)(2,"span",2),y(3,Di,2,0,"span",3),d(4,"span",4),C(5),O(6,"span",5),l()()(),y(7,Fi,2,0,"span",6)),t&2&&(m(2),M("isInteractive",!1),m(),j(e.leadingIcon?3:-1),m(4),j(e._hasTrailingIcon()?7:-1))},dependencies:[yi],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 a=c;return a})();var pt=(()=>{let c=class c{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,t,e){this._elementRef=i,this._changeDetectorRef=t,this._dir=e,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new k,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new X}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(S(null),N(()=>T(...this._chips.map(i))))}_originatesFromChip(i){let t=i.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-mdc-chip"))return!0;t=t.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(S(this._chips)).subscribe(i=>{let t=[];i.forEach(e=>e._getActions().forEach(o=>t.push(o))),this._chipActions.reset(t),this._chipActions.notifyOnChanges()}),this._keyManager=new di(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(g(this._destroyed)).subscribe(({chip:i})=>{let t=i._getSourceAction(document.activeElement);t&&this._keyManager.updateActiveItem(t)}),this._dir?.change.pipe(g(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(S(null),g(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(g(this._destroyed)).subscribe(i=>{let e=this._chips.toArray().indexOf(i.chip);this._isValidIndex(e)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=e)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),t=this._chips.toArray()[i];t.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():t.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};c.\u0275fac=function(t){return new(t||c)(r(E),r(z),r(hi,8))},c.\u0275cmp=f({type:c,selectors:[["mat-chip-set"]],contentQueries:function(t,e,o){if(t&1&&p(o,Ti,5),t&2){let n;s(n=h())&&(e._chips=n)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&F("role",e.role)},inputs:{disabled:[2,"disabled","disabled",u],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:R(i)]},standalone:!0,features:[D,I],ngContentSelectors:Mi,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,e){t&1&&(P(),d(0,"div",0),C(1),l())},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 a=c;return a})();var mt=(()=>{let c=class c{};c.\u0275fac=function(t){return new(t||c)},c.\u0275mod=G({type:c}),c.\u0275inj=q({providers:[li,{provide:Ai,useValue:{separatorKeyCodes:[13]}}],imports:[V,mi,V]});let a=c;return a})();function Bi(a,c){if(a&1){let x=ei();d(0,"mat-card",2),v("click",function(){let t=W(x).$implicit,e=A();return U(e.selectCard(t))}),d(1,"span",3),L(2),l()()}if(a&2){let x=c.$implicit,i=A();w("selected",i.activeCard===x),m(2),H(x)}}var Ct=(()=>{let c=class c{constructor(){this.options=[],this.selectedOption=new b,this.activeCard=null}selectCard(i){this.activeCard=this.activeCard===i?null:i,this.selectedOption.emit(this.activeCard)}trackByOption(i,t){return t}};c.\u0275fac=function(t){return new(t||c)},c.\u0275cmp=f({type:c,selectors:[["ms-card-selector"]],inputs:{options:"options"},outputs:{selectedOption:"selectedOption"},standalone:!0,features:[I],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(t,e){t&1&&(d(0,"div",0),y(1,Bi,3,3,"mat-card",1),l()),t&2&&(m(),M("ngForOf",e.options)("ngForTrackBy",e.trackByOption))},dependencies:[ri,vi,_i],styles:[".cards-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]});let a=c;return a})();export{Ti as a,pt as b,mt as c,Ct as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-V6EH3YHO.js b/frontend/server/modelsmith-build/browser/chunk-VJRM3LPA.js similarity index 88% rename from frontend/server/modelsmith-build/browser/chunk-V6EH3YHO.js rename to frontend/server/modelsmith-build/browser/chunk-VJRM3LPA.js index c404e8f9..6ce961ee 100644 --- a/frontend/server/modelsmith-build/browser/chunk-V6EH3YHO.js +++ b/frontend/server/modelsmith-build/browser/chunk-VJRM3LPA.js @@ -1 +1 @@ -import{Bb as d,ab as i,bb as o,ha as r,mb as a,nb as c}from"./chunk-NPZHNGVX.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{Bb as d,ab as i,bb as o,ha as r,mb as a,nb as c}from"./chunk-I5FNXPEQ.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-GSC3HYC7.js b/frontend/server/modelsmith-build/browser/chunk-VRD7QX3W.js similarity index 98% rename from frontend/server/modelsmith-build/browser/chunk-GSC3HYC7.js rename to frontend/server/modelsmith-build/browser/chunk-VRD7QX3W.js index c5cbcaf8..334d227b 100644 --- a/frontend/server/modelsmith-build/browser/chunk-GSC3HYC7.js +++ b/frontend/server/modelsmith-build/browser/chunk-VRD7QX3W.js @@ -1 +1 @@ -import{$ as z,Ab as K,Ba as j,Bb as Z,Ea as x,Fa as l,Ka as q,Kd as E,Lb as G,Nb as k,Ob as Y,Od as T,Pa as U,Ra as C,Sa as u,Ua as I,Wa as N,Z as w,Zd as $,_d as J,aa as D,ab as r,ae as W,bb as d,cb as _,gb as S,ha as R,hb as B,ia as F,jb as p,mb as X,nb as Q,oa as M,pa as h,qa as s,qb as f,ra as O,rb as g,sa as V,sb as v,tb as H,ua as L,xa as P,ya as y}from"./chunk-NPZHNGVX.js";var ie=["input"],oe=["label"],ne=["*"],ae=new D("mat-checkbox-default-options",{providedIn:"root",factory:ce});function ce(){return{color:"accent",clickAction:"check-indeterminate"}}var n=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(n||{}),re={provide:J,useExisting:w(()=>te),multi:!0},A=class{},de=0,ee=ce(),te=(()=>{let a=class a{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new A;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,c,o,m,b){this._elementRef=e,this._changeDetectorRef=t,this._ngZone=c,this._animationMode=m,this._options=b,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 y,this.indeterminateChange=new y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=n.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ee,this.color=this._options.color||ee.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++de}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(n.Indeterminate):this._transitionCheckState(this.checked?n.Checked:n.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,c=this._getAnimationTargetElement();if(!(t===e||!c)&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{c.classList.remove(o)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?n.Checked:n.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case n.Init:if(t===n.Checked)return this._animationClasses.uncheckedToChecked;if(t==n.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case n.Unchecked:return t===n.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case n.Checked:return t===n.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case n.Indeterminate:return t===n.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}};a.\u0275fac=function(t){return new(t||a)(l(P),l(G),l(q),L("tabindex"),l(j,8),l(ae,8))},a.\u0275cmp=R({type:a,selectors:[["mat-checkbox"]],viewQuery:function(t,c){if(t&1&&(f(ie,5),f(oe,5),f(T,5)),t&2){let o;g(o=v())&&(c._inputElement=o.first),g(o=v())&&(c._labelElement=o.first),g(o=v())&&(c.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(t,c){t&2&&(B("id",c.id),C("tabindex",null)("aria-label",null)("aria-labelledby",null),N(c.color?"mat-"+c.color:"mat-accent"),I("_mat-animation-noopable",c._animationMode==="NoopAnimations")("mdc-checkbox--disabled",c.disabled)("mat-mdc-checkbox-disabled",c.disabled)("mat-mdc-checkbox-checked",c.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",k],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",k],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Y(e)],color:"color",checked:[2,"checked","checked",k],disabled:[2,"disabled","disabled",k],indeterminate:[2,"indeterminate","indeterminate",k]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[K([re,{provide:W,useExisting:a,multi:!0}]),U,M,Z],ngContentSelectors:ne,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(t,c){if(t&1){let o=S();X(),r(0,"div",3),p("click",function(b){return h(o),s(c._preventBubblingFromLabel(b))}),r(1,"div",4,0)(3,"div",5),p("click",function(){return h(o),s(c._onTouchTargetClick())}),d(),r(4,"input",6,1),p("blur",function(){return h(o),s(c._onBlur())})("click",function(){return h(o),s(c._onInputClick())})("change",function(b){return h(o),s(c._onInteractionEvent(b))}),d(),_(6,"div",7),r(7,"div",8),O(),r(8,"svg",9),_(9,"path",10),d(),V(),_(10,"div",11),d(),_(11,"div",12),d(),r(12,"label",13,2),Q(14),d()()}if(t&2){let o=H(2);u("labelPosition",c.labelPosition),x(4),I("mdc-checkbox--selected",c.checked),u("checked",c.checked)("indeterminate",c.indeterminate)("disabled",c.disabled)("id",c.inputId)("required",c.required)("tabIndex",c.disabled?-1:c.tabIndex),C("aria-label",c.ariaLabel||null)("aria-labelledby",c.ariaLabelledby)("aria-describedby",c.ariaDescribedby)("aria-checked",c.indeterminate?"mixed":null)("name",c.name)("value",c.value),x(7),u("matRippleTrigger",o)("matRippleDisabled",c.disableRipple||c.disabled)("matRippleCentered",!0),x(),u("for",c.inputId)}},dependencies:[T,$],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 i=a;return i})();var we=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=F({type:a}),a.\u0275inj=z({imports:[te,E,E]});let i=a;return i})();export{te as a,we as b}; +import{$ as z,Ab as K,Ba as j,Bb as Z,Ea as x,Fa as l,Hd as E,Ka as q,Lb as G,Ld as T,Nb as k,Ob as Y,Pa as U,Ra as C,Sa as u,Ua as I,Wa as N,Wd as $,Xd as J,Z as w,Zd as W,aa as D,ab as r,bb as d,cb as _,gb as S,ha as R,hb as B,ia as F,jb as p,mb as X,nb as Q,oa as M,pa as h,qa as s,qb as f,ra as O,rb as g,sa as V,sb as v,tb as H,ua as L,xa as P,ya as y}from"./chunk-I5FNXPEQ.js";var ie=["input"],oe=["label"],ne=["*"],ae=new D("mat-checkbox-default-options",{providedIn:"root",factory:ce});function ce(){return{color:"accent",clickAction:"check-indeterminate"}}var n=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(n||{}),re={provide:J,useExisting:w(()=>te),multi:!0},A=class{},de=0,ee=ce(),te=(()=>{let a=class a{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new A;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,c,o,m,b){this._elementRef=e,this._changeDetectorRef=t,this._ngZone=c,this._animationMode=m,this._options=b,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 y,this.indeterminateChange=new y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=n.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ee,this.color=this._options.color||ee.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++de}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(n.Indeterminate):this._transitionCheckState(this.checked?n.Checked:n.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,c=this._getAnimationTargetElement();if(!(t===e||!c)&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{c.classList.remove(o)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?n.Checked:n.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case n.Init:if(t===n.Checked)return this._animationClasses.uncheckedToChecked;if(t==n.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case n.Unchecked:return t===n.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case n.Checked:return t===n.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case n.Indeterminate:return t===n.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}};a.\u0275fac=function(t){return new(t||a)(l(P),l(G),l(q),L("tabindex"),l(j,8),l(ae,8))},a.\u0275cmp=R({type:a,selectors:[["mat-checkbox"]],viewQuery:function(t,c){if(t&1&&(f(ie,5),f(oe,5),f(T,5)),t&2){let o;g(o=v())&&(c._inputElement=o.first),g(o=v())&&(c._labelElement=o.first),g(o=v())&&(c.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(t,c){t&2&&(B("id",c.id),C("tabindex",null)("aria-label",null)("aria-labelledby",null),N(c.color?"mat-"+c.color:"mat-accent"),I("_mat-animation-noopable",c._animationMode==="NoopAnimations")("mdc-checkbox--disabled",c.disabled)("mat-mdc-checkbox-disabled",c.disabled)("mat-mdc-checkbox-checked",c.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",k],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",k],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Y(e)],color:"color",checked:[2,"checked","checked",k],disabled:[2,"disabled","disabled",k],indeterminate:[2,"indeterminate","indeterminate",k]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[K([re,{provide:W,useExisting:a,multi:!0}]),U,M,Z],ngContentSelectors:ne,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(t,c){if(t&1){let o=S();X(),r(0,"div",3),p("click",function(b){return h(o),s(c._preventBubblingFromLabel(b))}),r(1,"div",4,0)(3,"div",5),p("click",function(){return h(o),s(c._onTouchTargetClick())}),d(),r(4,"input",6,1),p("blur",function(){return h(o),s(c._onBlur())})("click",function(){return h(o),s(c._onInputClick())})("change",function(b){return h(o),s(c._onInteractionEvent(b))}),d(),_(6,"div",7),r(7,"div",8),O(),r(8,"svg",9),_(9,"path",10),d(),V(),_(10,"div",11),d(),_(11,"div",12),d(),r(12,"label",13,2),Q(14),d()()}if(t&2){let o=H(2);u("labelPosition",c.labelPosition),x(4),I("mdc-checkbox--selected",c.checked),u("checked",c.checked)("indeterminate",c.indeterminate)("disabled",c.disabled)("id",c.inputId)("required",c.required)("tabIndex",c.disabled?-1:c.tabIndex),C("aria-label",c.ariaLabel||null)("aria-labelledby",c.ariaLabelledby)("aria-describedby",c.ariaDescribedby)("aria-checked",c.indeterminate?"mixed":null)("name",c.name)("value",c.value),x(7),u("matRippleTrigger",o)("matRippleDisabled",c.disableRipple||c.disabled)("matRippleCentered",!0),x(),u("for",c.inputId)}},dependencies:[T,$],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 i=a;return i})();var we=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=F({type:a}),a.\u0275inj=z({imports:[te,E,E]});let i=a;return i})();export{te as a,we as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-SMKHMGDE.js b/frontend/server/modelsmith-build/browser/chunk-W5GEUOC3.js similarity index 96% rename from frontend/server/modelsmith-build/browser/chunk-SMKHMGDE.js rename to frontend/server/modelsmith-build/browser/chunk-W5GEUOC3.js index 2f598993..d7f0591a 100644 --- a/frontend/server/modelsmith-build/browser/chunk-SMKHMGDE.js +++ b/frontend/server/modelsmith-build/browser/chunk-W5GEUOC3.js @@ -1 +1 @@ -import{b as st,n as nt,p as rt,s as m,v as at}from"./chunk-NT2MTW7W.js";import{$ as C,Ba as M,Bb as B,Ea as S,Ed as it,Fa as r,Fd as et,Gd as ot,Ka as x,Kd as w,Lb as Z,Ma as N,Na as k,Qb as $,Sa as V,Sb as Q,T as h,Ta as Y,Ua as v,a as d,aa as u,ab as y,bb as j,bc as W,da as g,fd as T,gb as H,gd as I,ha as P,ia as E,j as f,ja as R,jb as b,ld as q,nd as K,pa as A,qa as O,qb as z,rb as F,sb as X,sd as J,ub as G,va as L,vb as U,xa as p,yd as tt}from"./chunk-NPZHNGVX.js";var ut=["tooltip"],ct=20;var dt=new u("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(m);return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}});function gt(a){return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}var vt={provide:dt,deps:[m],useFactory:gt};function yt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var bt=new u("mat-tooltip-default-options",{providedIn:"root",factory:yt});var lt="tooltip-panel",ht=K({passive:!0}),Tt=8,It=8,wt=24,Dt=200,Kt=(()=>{let s=class s{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=T(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=T(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=I(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=I(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=t!=null?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,e,o,n,c,_,pt,mt,D,l,_t){this._overlay=t,this._elementRef=i,this._scrollDispatcher=e,this._viewContainerRef=o,this._ngZone=n,this._platform=c,this._ariaDescriber=_,this._focusMonitor=pt,this._dir=D,this._defaultOptions=l,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Ct,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new f,this._injector=g(L),this._scrollStrategy=mt,this._document=_t,l&&(this._showDelay=l.showDelay,this._hideDelay=l.hideDelay,l.position&&(this.position=l.position),l.positionAtOrigin&&(this.positionAtOrigin=l.positionAtOrigin),l.touchGestures&&(this.touchGestures=l.touchGestures)),D.change.pipe(h(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Tt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(h(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,e])=>{t.removeEventListener(i,e,ht)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let e=this._createOverlay(i);this._detach(),this._portal=this._portal||new st(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=e.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof p)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return e.positionChanges.pipe(h(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${lt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(h(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(h(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!J(o)&&(o.preventDefault(),o.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(t){let i=t.getConfig().positionStrategy,e=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(d(d({},e.main),o.main)),this._addOffset(d(d({},e.fallback),o.fallback))])}_addOffset(t){let i=It,e=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-i:t.originY==="bottom"?t.offsetY=i:t.originX==="start"?t.offsetX=e?-i:i:t.originX==="end"&&(t.offsetX=e?i:-i),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"||i=="below"?e={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={originX:"start",originY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={originX:"end",originY:"center"});let{x:o,y:n}=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:o,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"?e={overlayX:"center",overlayY:"bottom"}:i=="below"?e={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={overlayX:"start",overlayY:"center"});let{x:o,y:n}=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:o,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),N(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){let{overlayY:i,originX:e,originY:o}=t,n;if(i==="center"?this._dir&&this._dir.value==="rtl"?n=e==="end"?"left":"right":n=e==="start"?"left":"right":n=i==="bottom"&&o==="top"?"above":"below",n!==this._currentPosition){let c=this._overlayRef;if(c){let _=`${this._cssClassPrefix}-${lt}-`;c.removePanelClass(_+this._currentPosition),c.addPanelClass(_+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let i;t.x!==void 0&&t.y!==void 0&&(i=t),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let i=t.targetTouches?.[0],e=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,e),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{let e=i.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,e])=>{this._elementRef.nativeElement.addEventListener(i,e,ht)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(t.clientX,t.clientY),e=this._elementRef.nativeElement;i!==e&&!e.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let i=this._elementRef.nativeElement,e=i.style;(t==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),(t==="on"||!i.draggable)&&(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent"}}};s.\u0275fac=function(i){return new(i||s)(r(m),r(p),r(nt),r(k),r(x),r(q),r(tt),r(it),r(dt),r(ot),r(bt,8),r($))},s.\u0275dir=R({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,e){i&2&&v("mat-mdc-tooltip-disabled",e.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 a=s;return a})(),Ct=(()=>{let s=class s{constructor(t,i,e){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new f,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=e==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}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:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>wt&&t.width>=Dt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let i=this._tooltip.nativeElement,e=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:e),i.classList.add(t?e:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(i);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};s.\u0275fac=function(i){return new(i||s)(r(Z),r(p),r(M,8))},s.\u0275cmp=P({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(i,e){if(i&1&&z(ut,7),i&2){let o;F(o=X())&&(e._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,e){i&1&&b("mouseleave",function(n){return e._handleMouseLeave(n)}),i&2&&Y("zoom",e.isVisible()?1:null)},standalone:!0,features:[B],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(i,e){if(i&1){let o=H();y(0,"div",1,0),b("animationend",function(c){return A(o),O(e._handleAnimationEnd(c))}),y(2,"div",2),G(3),j()()}i&2&&(v("mdc-tooltip--multiline",e._isMultiline),V("ngClass",e.tooltipClass),S(3),U(e.message))},dependencies:[Q],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 a=s;return a})();var Jt=(()=>{let s=class s{};s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=E({type:s}),s.\u0275inj=C({providers:[vt],imports:[et,W,at,w,w,rt]});let a=s;return a})();export{Kt as a,Jt as b}; +import{b as st,n as nt,p as rt,s as m,v as at}from"./chunk-LDDHJMMZ.js";import{$ as C,Ba as M,Bb as B,Bd as it,Cd as et,Dd as ot,Ea as S,Fa as r,Hd as w,Ka as x,Lb as Z,Ma as N,Na as k,Qb as $,Sa as V,Sb as Q,T as h,Ta as Y,Ua as v,_b as W,a as d,aa as u,ab as y,bb as j,cd as T,da as g,dd as I,gb as H,ha as P,ia as E,id as q,j as f,ja as R,jb as b,kd as K,pa as A,pd as J,qa as O,qb as z,rb as F,sb as X,ub as G,va as L,vb as U,vd as tt,xa as p}from"./chunk-I5FNXPEQ.js";var ut=["tooltip"],ct=20;var dt=new u("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(m);return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}});function gt(a){return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}var vt={provide:dt,deps:[m],useFactory:gt};function yt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var bt=new u("mat-tooltip-default-options",{providedIn:"root",factory:yt});var lt="tooltip-panel",ht=K({passive:!0}),Tt=8,It=8,wt=24,Dt=200,Kt=(()=>{let s=class s{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=T(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=T(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=I(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=I(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=t!=null?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,e,o,n,c,_,pt,mt,D,l,_t){this._overlay=t,this._elementRef=i,this._scrollDispatcher=e,this._viewContainerRef=o,this._ngZone=n,this._platform=c,this._ariaDescriber=_,this._focusMonitor=pt,this._dir=D,this._defaultOptions=l,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Ct,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new f,this._injector=g(L),this._scrollStrategy=mt,this._document=_t,l&&(this._showDelay=l.showDelay,this._hideDelay=l.hideDelay,l.position&&(this.position=l.position),l.positionAtOrigin&&(this.positionAtOrigin=l.positionAtOrigin),l.touchGestures&&(this.touchGestures=l.touchGestures)),D.change.pipe(h(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Tt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(h(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,e])=>{t.removeEventListener(i,e,ht)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let e=this._createOverlay(i);this._detach(),this._portal=this._portal||new st(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=e.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof p)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return e.positionChanges.pipe(h(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${lt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(h(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(h(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!J(o)&&(o.preventDefault(),o.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(t){let i=t.getConfig().positionStrategy,e=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(d(d({},e.main),o.main)),this._addOffset(d(d({},e.fallback),o.fallback))])}_addOffset(t){let i=It,e=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-i:t.originY==="bottom"?t.offsetY=i:t.originX==="start"?t.offsetX=e?-i:i:t.originX==="end"&&(t.offsetX=e?i:-i),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"||i=="below"?e={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={originX:"start",originY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={originX:"end",originY:"center"});let{x:o,y:n}=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:o,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"?e={overlayX:"center",overlayY:"bottom"}:i=="below"?e={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={overlayX:"start",overlayY:"center"});let{x:o,y:n}=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:o,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),N(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){let{overlayY:i,originX:e,originY:o}=t,n;if(i==="center"?this._dir&&this._dir.value==="rtl"?n=e==="end"?"left":"right":n=e==="start"?"left":"right":n=i==="bottom"&&o==="top"?"above":"below",n!==this._currentPosition){let c=this._overlayRef;if(c){let _=`${this._cssClassPrefix}-${lt}-`;c.removePanelClass(_+this._currentPosition),c.addPanelClass(_+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let i;t.x!==void 0&&t.y!==void 0&&(i=t),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let i=t.targetTouches?.[0],e=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,e),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{let e=i.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,e])=>{this._elementRef.nativeElement.addEventListener(i,e,ht)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(t.clientX,t.clientY),e=this._elementRef.nativeElement;i!==e&&!e.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let i=this._elementRef.nativeElement,e=i.style;(t==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),(t==="on"||!i.draggable)&&(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent"}}};s.\u0275fac=function(i){return new(i||s)(r(m),r(p),r(nt),r(k),r(x),r(q),r(tt),r(it),r(dt),r(ot),r(bt,8),r($))},s.\u0275dir=R({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,e){i&2&&v("mat-mdc-tooltip-disabled",e.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 a=s;return a})(),Ct=(()=>{let s=class s{constructor(t,i,e){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new f,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=e==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}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:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>wt&&t.width>=Dt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let i=this._tooltip.nativeElement,e=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:e),i.classList.add(t?e:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(i);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};s.\u0275fac=function(i){return new(i||s)(r(Z),r(p),r(M,8))},s.\u0275cmp=P({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(i,e){if(i&1&&z(ut,7),i&2){let o;F(o=X())&&(e._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,e){i&1&&b("mouseleave",function(n){return e._handleMouseLeave(n)}),i&2&&Y("zoom",e.isVisible()?1:null)},standalone:!0,features:[B],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(i,e){if(i&1){let o=H();y(0,"div",1,0),b("animationend",function(c){return A(o),O(e._handleAnimationEnd(c))}),y(2,"div",2),G(3),j()()}i&2&&(v("mdc-tooltip--multiline",e._isMultiline),V("ngClass",e.tooltipClass),S(3),U(e.message))},dependencies:[Q],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 a=s;return a})();var Jt=(()=>{let s=class s{};s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=E({type:s}),s.\u0275inj=C({providers:[vt],imports:[et,W,at,w,w,rt]});let a=s;return a})();export{Kt as a,Jt as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NI65ARYN.js b/frontend/server/modelsmith-build/browser/chunk-WDMLGHEL.js similarity index 96% rename from frontend/server/modelsmith-build/browser/chunk-NI65ARYN.js rename to frontend/server/modelsmith-build/browser/chunk-WDMLGHEL.js index cc938704..d5a56f44 100644 --- a/frontend/server/modelsmith-build/browser/chunk-NI65ARYN.js +++ b/frontend/server/modelsmith-build/browser/chunk-WDMLGHEL.js @@ -1 +1 @@ -import{$ as O,Ad as B,Bb as P,Fa as o,Ga as m,Gd as V,Hd as U,Lb as L,Nb as l,Ob as j,Pa as v,Qa as A,R as p,T as f,Z as M,aa as k,ha as R,hb as E,ia as S,j as x,ja as c,jb as D,mb as T,nb as F,oa as w,pb as y,pd as H,qb as N,rb as h,s as b,sb as u,sd as Q,xa as g,ya as _,za as I}from"./chunk-NPZHNGVX.js";var K=["*"];function $(r,i){r&1&&F(0)}var W=(()=>{let i=class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}};i.\u0275fac=function(t){return new(t||i)(o(g))},i.\u0275dir=c({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let r=i;return r})(),z=(()=>{let i=class i{constructor(e){this.template=e}};i.\u0275fac=function(t){return new(t||i)(o(m))},i.\u0275dir=c({type:i,selectors:[["","cdkStepLabel",""]],standalone:!0});let r=i;return r})(),J=0;var a={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},X=new k("STEPPER_GLOBAL_OPTIONS"),Y=(()=>{let i=class i{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new _,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},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}};i.\u0275fac=function(t){return new(t||i)(o(M(()=>C)),o(X,8))},i.\u0275cmp=R({type:i,selectors:[["cdk-step"]],contentQueries:function(t,s,n){if(t&1&&y(n,z,5),t&2){let d;h(d=u())&&(s.stepLabel=d.first)}},viewQuery:function(t,s){if(t&1&&N(m,7),t&2){let n;h(n=u())&&(s.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",l],optional:[2,"optional","optional",l],completed:[2,"completed","completed",l],hasError:[2,"hasError","hasError",l]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[v,w,P],ngContentSelectors:K,decls:1,vars:0,template:function(t,s){t&1&&(T(),A(0,$,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let r=i;return r})(),C=(()=>{let i=class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}constructor(e,t,s){this._dir=e,this._changeDetectorRef=t,this._elementRef=s,this._destroyed=new x,this.steps=new I,this._sortedHeaders=new I,this.linear=!1,this._selectedIndex=0,this.selectionChange=new _,this.selectedIndexChange=new _,this._orientation="horizontal",this._groupId=J++}ngAfterContentInit(){this._steps.changes.pipe(p(this._steps),f(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(p(this._stepHeader),f(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,s)=>t._elementRef.nativeElement.compareDocumentPosition(s._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:b()).pipe(p(this._layoutDirection()),f(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),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(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=a.NUMBER){let s=this.steps.toArray()[e],n=this._isCurrentStep(e);return s._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(s,n):this._getGuidelineLogic(s,n,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?a.ERROR:!e.completed||t?a.NUMBER:e.editable?a.EDIT:a.DONE}_getGuidelineLogic(e,t,s=a.NUMBER){return e._showError()&&e.hasError&&!t?a.ERROR:e.completed&&!t?a.DONE:e.completed&&t?s:e.editable&&t?a.EDIT:s}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Q(e),s=e.keyCode,n=this._keyManager;n.activeItemIndex!=null&&!t&&(s===32||s===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let s=t.stepControl;return(s?s.invalid||s.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=H();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{let i=class i{constructor(e){this._stepper=e,this.type="submit"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.next()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),Ee=(()=>{let i=class i{constructor(e){this._stepper=e,this.type="button"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.previous()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),De=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=S({type:i}),i.\u0275inj=O({imports:[U]});let r=i;return r})();export{W as a,z as b,X as c,Y as d,C as e,ve as f,Ee as g,De as h}; +import{$ as O,Bb as P,Dd as V,Ed as U,Fa as o,Ga as m,Lb as L,Nb as l,Ob as j,Pa as v,Qa as A,R as p,T as f,Z as M,aa as k,ha as R,hb as E,ia as S,j as x,ja as c,jb as D,mb as T,md as H,nb as F,oa as w,pb as y,pd as Q,qb as N,rb as h,s as b,sb as u,xa as g,xd as B,ya as _,za as I}from"./chunk-I5FNXPEQ.js";var K=["*"];function $(r,i){r&1&&F(0)}var W=(()=>{let i=class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}};i.\u0275fac=function(t){return new(t||i)(o(g))},i.\u0275dir=c({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let r=i;return r})(),z=(()=>{let i=class i{constructor(e){this.template=e}};i.\u0275fac=function(t){return new(t||i)(o(m))},i.\u0275dir=c({type:i,selectors:[["","cdkStepLabel",""]],standalone:!0});let r=i;return r})(),J=0;var a={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},X=new k("STEPPER_GLOBAL_OPTIONS"),Y=(()=>{let i=class i{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new _,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},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}};i.\u0275fac=function(t){return new(t||i)(o(M(()=>C)),o(X,8))},i.\u0275cmp=R({type:i,selectors:[["cdk-step"]],contentQueries:function(t,s,n){if(t&1&&y(n,z,5),t&2){let d;h(d=u())&&(s.stepLabel=d.first)}},viewQuery:function(t,s){if(t&1&&N(m,7),t&2){let n;h(n=u())&&(s.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",l],optional:[2,"optional","optional",l],completed:[2,"completed","completed",l],hasError:[2,"hasError","hasError",l]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[v,w,P],ngContentSelectors:K,decls:1,vars:0,template:function(t,s){t&1&&(T(),A(0,$,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let r=i;return r})(),C=(()=>{let i=class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}constructor(e,t,s){this._dir=e,this._changeDetectorRef=t,this._elementRef=s,this._destroyed=new x,this.steps=new I,this._sortedHeaders=new I,this.linear=!1,this._selectedIndex=0,this.selectionChange=new _,this.selectedIndexChange=new _,this._orientation="horizontal",this._groupId=J++}ngAfterContentInit(){this._steps.changes.pipe(p(this._steps),f(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(p(this._stepHeader),f(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,s)=>t._elementRef.nativeElement.compareDocumentPosition(s._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:b()).pipe(p(this._layoutDirection()),f(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),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(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=a.NUMBER){let s=this.steps.toArray()[e],n=this._isCurrentStep(e);return s._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(s,n):this._getGuidelineLogic(s,n,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?a.ERROR:!e.completed||t?a.NUMBER:e.editable?a.EDIT:a.DONE}_getGuidelineLogic(e,t,s=a.NUMBER){return e._showError()&&e.hasError&&!t?a.ERROR:e.completed&&!t?a.DONE:e.completed&&t?s:e.editable&&t?a.EDIT:s}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Q(e),s=e.keyCode,n=this._keyManager;n.activeItemIndex!=null&&!t&&(s===32||s===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let s=t.stepControl;return(s?s.invalid||s.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=H();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{let i=class i{constructor(e){this._stepper=e,this.type="submit"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.next()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),Ee=(()=>{let i=class i{constructor(e){this._stepper=e,this.type="button"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.previous()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),De=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=S({type:i}),i.\u0275inj=O({imports:[U]});let r=i;return r})();export{W as a,z as b,X as c,Y as d,C as e,ve as f,Ee as g,De as h}; diff --git a/frontend/server/modelsmith-build/browser/chunk-TO7IPVMR.js b/frontend/server/modelsmith-build/browser/chunk-YTNKLUWY.js similarity index 92% rename from frontend/server/modelsmith-build/browser/chunk-TO7IPVMR.js rename to frontend/server/modelsmith-build/browser/chunk-YTNKLUWY.js index 1270719d..2620b3b2 100644 --- a/frontend/server/modelsmith-build/browser/chunk-TO7IPVMR.js +++ b/frontend/server/modelsmith-build/browser/chunk-YTNKLUWY.js @@ -1 +1 @@ -import{a as L}from"./chunk-W4U3FJPJ.js";import{a as r}from"./chunk-PSFPSLKI.js";import{$c as n,De as f,Ee as m,Fe as w,G as l,S as o,Zc as p,_ as O,_c as D,a as c,ad as T,b as s,bd as u,ca as $,s as a,x as S}from"./chunk-NPZHNGVX.js";var h=class extends f{constructor(){super("current-or-last-active-script-details",void 0,void 0,!1)}};var C=class extends f{constructor(){super("script-status",void 0,void 0,!1)}};var d=class extends m{constructor(e){super("run-script",e,!1)}};var x=class extends m{constructor(){super("stop-script",{},!1)}};var Q=(()=>{let e=class e{constructor(A,v){this.apiClient=A,this.actions$=v,this.callScript$=n(()=>this.actions$.pipe(u(r.callScript),o(({configs:i})=>this.apiClient.serviceCall(new d(i)).pipe(o(()=>[r.callScriptSuccess(),r.fetchScriptStatus()]),l(F=>a(r.callScriptFailure({error:F}))))))),this.fetchScriptStatus$=n(()=>this.actions$.pipe(u(r.fetchScriptStatus),o(()=>this.apiClient.serviceCall(new C).pipe(S(i=>{let{status:F}=i;return r.fetchScriptStatusSuccess({status:F})}),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.getCurrentOrLastActiveScriptDetails$=n(()=>this.actions$.pipe(u(r.getCurrentOrLastActiveScriptDetails),o(()=>this.apiClient.serviceCall(new h).pipe(S(i=>r.getCurrentOrLastActiveScriptDetailsSuccess({scriptDetails:i})),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.stopScript$=n(()=>this.actions$.pipe(u(r.stopScript),o(()=>this.apiClient.serviceCall(new x).pipe(S(()=>r.stopScriptSuccess()),l(i=>a(r.stopScriptFailure({error:i})))))))}};e.\u0275fac=function(v){return new(v||e)($(w),$(T))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let t=e;return t})();var g={scriptStatus:L.NOT_RUNNING,scriptDetails:{},error:""},Z=D(g,p(r.callScriptSuccess,t=>s(c({},t),{error:null})),p(r.callScriptFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.getCurrentOrLastActiveScriptDetailsSuccess,(t,{scriptDetails:e})=>s(c({},t),{scriptDetails:e,error:null})),p(r.getCurrentOrLastActiveScriptDetailsFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.fetchScriptStatusSuccess,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.fetchScriptStatusFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.updateScriptStatus,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.stopScript,t=>s(c({},t),{error:null})),p(r.stopScriptSuccess,t=>s(c({},t),{error:null})),p(r.stopScriptFailure,(t,{error:e})=>s(c({},t),{error:e})));export{Q as a,Z as b}; +import{a as L}from"./chunk-W4U3FJPJ.js";import{a as r}from"./chunk-KE2JE72J.js";import{Ae as f,Be as m,Ce as w,G as l,S as o,Wc as p,Xc as D,Yc as n,Zc as T,_ as O,_c as u,a as c,b as s,ca as $,s as a,x as S}from"./chunk-I5FNXPEQ.js";var h=class extends f{constructor(){super("current-or-last-active-script-details",void 0,void 0,!1)}};var C=class extends f{constructor(){super("script-status",void 0,void 0,!1)}};var d=class extends m{constructor(e){super("run-script",e,!1)}};var x=class extends m{constructor(){super("stop-script",{},!1)}};var Q=(()=>{let e=class e{constructor(A,v){this.apiClient=A,this.actions$=v,this.callScript$=n(()=>this.actions$.pipe(u(r.callScript),o(({configs:i})=>this.apiClient.serviceCall(new d(i)).pipe(o(()=>[r.callScriptSuccess(),r.fetchScriptStatus()]),l(F=>a(r.callScriptFailure({error:F}))))))),this.fetchScriptStatus$=n(()=>this.actions$.pipe(u(r.fetchScriptStatus),o(()=>this.apiClient.serviceCall(new C).pipe(S(i=>{let{status:F}=i;return r.fetchScriptStatusSuccess({status:F})}),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.getCurrentOrLastActiveScriptDetails$=n(()=>this.actions$.pipe(u(r.getCurrentOrLastActiveScriptDetails),o(()=>this.apiClient.serviceCall(new h).pipe(S(i=>r.getCurrentOrLastActiveScriptDetailsSuccess({scriptDetails:i})),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.stopScript$=n(()=>this.actions$.pipe(u(r.stopScript),o(()=>this.apiClient.serviceCall(new x).pipe(S(()=>r.stopScriptSuccess()),l(i=>a(r.stopScriptFailure({error:i})))))))}};e.\u0275fac=function(v){return new(v||e)($(w),$(T))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let t=e;return t})();var g={scriptStatus:L.NOT_RUNNING,scriptDetails:{},error:""},Z=D(g,p(r.callScriptSuccess,t=>s(c({},t),{error:null})),p(r.callScriptFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.getCurrentOrLastActiveScriptDetailsSuccess,(t,{scriptDetails:e})=>s(c({},t),{scriptDetails:e,error:null})),p(r.getCurrentOrLastActiveScriptDetailsFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.fetchScriptStatusSuccess,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.fetchScriptStatusFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.updateScriptStatus,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.stopScript,t=>s(c({},t),{error:null})),p(r.stopScriptSuccess,t=>s(c({},t),{error:null})),p(r.stopScriptFailure,(t,{error:e})=>s(c({},t),{error:e})));export{Q as a,Z as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ZBNB4MEN.js b/frontend/server/modelsmith-build/browser/chunk-ZBNB4MEN.js new file mode 100644 index 00000000..e451b268 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-ZBNB4MEN.js @@ -0,0 +1,4 @@ +import{a as Ei,b as Ci,c as wi,d as Mi,e as Di,f as yi,g as Ii,h as Oi,i as ki,j as Ti,k as Pi,l as Ai,m as O,n as Ri,o as k,p as w,q as Ge}from"./chunk-HK67ULYP.js";import{a as gi,b as fi}from"./chunk-JI7UWE3B.js";import{a as hi,b as vi,c as bi,d as ct,e as pt,f as Si,g as xi,h as _i}from"./chunk-WDMLGHEL.js";import{a as ai}from"./chunk-A5OSDHA4.js";import{a as ti,b as ii,c as ni,d as oi}from"./chunk-6USI7MSU.js";import{a as si,b as di,c as ci,d as ge}from"./chunk-5CZGCFN5.js";import{a as pi,b as ui}from"./chunk-A3HRP5BG.js";import{a as ri,b as li}from"./chunk-VRD7QX3W.js";import{a as b,b as Vt}from"./chunk-452CEXFK.js";import{a as je,b as Yt}from"./chunk-SWEZDJOL.js";import{a as ue,b as mi}from"./chunk-I4357ONH.js";import{d as Fi}from"./chunk-KE2JE72J.js";import{a as Lt}from"./chunk-COKZMNNS.js";import{c as Zt,e as Jt,f as ei,l as He}from"./chunk-LDDHJMMZ.js";import{a as ze,b as Kt,h as Ve,i as Xt}from"./chunk-RTK5DRKR.js";import{$ as G,$a as re,Ab as _e,Ac as st,Bb as le,Bc as dt,Bd as Oe,Cb as me,Db as D,Dd as ke,Ea as d,Eb as Ee,Fa as u,Ga as tt,Hd as ce,Ib as se,J as q,Jd as we,L as xt,Lb as de,Ld as Te,Md as Pe,Na as Ot,Nb as j,Nd as qt,Oa as Y,Pa as it,Qa as x,R as _t,Ra as z,Rd as zt,S as Et,Sa as p,T as Je,Ua as N,Wa as kt,Wb as ot,Xa as Tt,Xd as Wt,Ya as P,Yd as Ae,Z as Me,Za as oe,_ as Ct,_a as ae,_b as Ie,_d as $,aa as et,ab as t,ad as y,bb as e,be as pe,cb as l,ce as Re,da as wt,db as ve,de as jt,ea as Mt,eb as be,fa as Dt,fb as Z,g as vt,gb as T,ge as Ht,ha as g,hb as nt,he as Fe,ia as U,id as Bt,j as Ze,ja as Q,jb as f,je as Ne,kc as Ft,lb as v,mb as Se,mc as Nt,me as Le,nb as xe,oe as Be,p as bt,pa as E,pb as J,pc as Ce,pe as Gt,qa as C,qb as ye,qe as Ut,rb as V,re as I,sb as W,sc as at,se as Qt,ta as De,tb as _,tc as rt,te as qe,ua as yt,ub as i,uc as lt,ue as $t,vb as B,wb as R,wc as ee,we as F,x as St,xa as he,xb as Pt,xc as te,xe as We,ya as ne,yb as At,za as It,zb as Rt,zc as mt}from"./chunk-I5FNXPEQ.js";var kn=["button"],Tn=["*"];function Pn(r,n){if(r&1&&l(0,"mat-pseudo-checkbox",3),r&2){let s=v();p("disabled",s.disabled)}}function An(r,n){if(r&1&&l(0,"mat-pseudo-checkbox",3),r&2){let s=v();p("disabled",s.disabled)}}var Ni=new et("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Rn});function Rn(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var Li=new et("MatButtonToggleGroup"),Fn={provide:Wt,useExisting:Me(()=>ut),multi:!0},Bi=0,Ue=class{constructor(n,s){this.source=n,this.value=s}},ut=(()=>{let n=class n{get name(){return this._name}set name(o){this._name=o,this._markButtonsForCheck()}get value(){let o=this._selectionModel?this._selectionModel.selected:[];return this.multiple?o.map(a=>a.value):o[0]?o[0].value:void 0}set value(o){this._setSelectionByValue(o),this.valueChange.emit(this.value)}get selected(){let o=this._selectionModel?this._selectionModel.selected:[];return this.multiple?o:o[0]||null}get multiple(){return this._multiple}set multiple(o){this._multiple=o,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(o){this._disabled=o,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(o){this._hideSingleSelectionIndicator=o,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(o){this._hideMultipleSelectionIndicator=o,this._markButtonsForCheck()}constructor(o,a,m){this._changeDetector=o,this._dir=m,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${Bi++}`,this.valueChange=new ne,this.change=new ne,this.appearance=a&&a.appearance?a.appearance:"standard",this.hideSingleSelectionIndicator=a?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=a?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new He(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(o=>o.checked)),this.multiple||this._initializeTabIndex()}writeValue(o){this.value=o,this._changeDetector.markForCheck()}registerOnChange(o){this._controlValueAccessorChangeFn=o}registerOnTouched(o){this._onTouched=o}setDisabledState(o){this.disabled=o}_keydown(o){if(this.multiple||this.disabled)return;let m=o.target.id,c=this._buttonToggles.toArray().findIndex(M=>M.buttonId===m),h=null;switch(o.keyCode){case 32:case 13:h=this._buttonToggles.get(c)||null;break;case 38:h=this._getNextButton(c,-1);break;case 37:h=this._getNextButton(c,this.dir==="ltr"?-1:1);break;case 40:h=this._getNextButton(c,1);break;case 39:h=this._getNextButton(c,this.dir==="ltr"?1:-1);break;default:return}h&&(o.preventDefault(),h._onButtonClick(),h.focus())}_emitChangeEvent(o){let a=new Ue(o,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(o,a,m=!1,c=!1){!this.multiple&&this.selected&&!o.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(o):this._selectionModel.deselect(o):c=!0,c?Promise.resolve().then(()=>this._updateModelValue(o,m)):this._updateModelValue(o,m)}_isSelected(o){return this._selectionModel&&this._selectionModel.isSelected(o)}_isPrechecked(o){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>o.value!=null&&a===o.value):o.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(o=>{o.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let o=0;othis._selectValue(a))):(this._clearSelection(),this._selectValue(o)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(o=>{o.checked=!1,this.multiple||(o.tabIndex=-1)})}_selectValue(o){let a=this._buttonToggles.find(m=>m.value!=null&&m.value===o);a&&(a.checked=!0,this._selectionModel.select(a),this.multiple||(a.tabIndex=0))}_updateModelValue(o,a){a&&this._emitChangeEvent(o),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(o=>o._markForCheck())}};n.\u0275fac=function(a){return new(a||n)(u(de),u(Ni,8),u(ke,8))},n.\u0275dir=Q({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,m,c){if(a&1&&J(c,Qe,5),a&2){let h;V(h=W())&&(m._buttonToggles=h)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,m){a&1&&f("keydown",function(h){return m._keydown(h)}),a&2&&(z("role",m.multiple?"group":"radiogroup")("aria-disabled",m.disabled),N("mat-button-toggle-vertical",m.vertical)("mat-button-toggle-group-appearance-standard",m.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",j],value:"value",multiple:[2,"multiple","multiple",j],disabled:[2,"disabled","disabled",j],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",j],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",j]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[_e([Fn,{provide:Li,useExisting:n}]),it]});let r=n;return r})(),Qe=(()=>{let n=class n{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(o){this._tabIndex=o,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(o){this._appearance=o}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(o){o!==this._checked&&(this._checked=o,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(o){this._disabled=o}constructor(o,a,m,c,h,M){this._changeDetectorRef=a,this._elementRef=m,this._focusMonitor=c,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new ne;let fe=Number(h);this.tabIndex=fe||fe===0?fe:null,this.buttonToggleGroup=o,this.appearance=M&&M.appearance?M.appearance:"standard"}ngOnInit(){let o=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${Bi++}`,o&&(o._isPrechecked(this)?this.checked=!0:o._isSelected(this)!==this._checked&&o._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let o=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),o&&o._isSelected(this)&&o._syncButtonToggle(this,!1,!1,!0)}focus(o){this._buttonElement.nativeElement.focus(o)}_onButtonClick(){let o=this.isSingleSelector()?!0:!this._checked;if(o!==this._checked&&(this._checked=o,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(m=>m.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new Ue(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};n.\u0275fac=function(a){return new(a||n)(u(Li,8),u(de),u(he),u(Oe),yt("tabindex"),u(Ni,8))},n.\u0275cmp=g({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(a,m){if(a&1&&ye(kn,5),a&2){let c;V(c=W())&&(m._buttonElement=c.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(a,m){a&1&&f("focus",function(){return m.focus()}),a&2&&(z("aria-label",null)("aria-labelledby",null)("id",m.id)("name",null),N("mat-button-toggle-standalone",!m.buttonToggleGroup)("mat-button-toggle-checked",m.checked)("mat-button-toggle-disabled",m.disabled)("mat-button-toggle-appearance-standard",m.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",j],appearance:"appearance",checked:[2,"checked","checked",j],disabled:[2,"disabled","disabled",j]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[it,le],ngContentSelectors:Tn,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(a,m){if(a&1){let c=T();Se(),t(0,"button",1,0),f("click",function(){return E(c),C(m._onButtonClick())}),t(2,"span",2),x(3,Pn,1,1,"mat-pseudo-checkbox",3)(4,An,1,1,"mat-pseudo-checkbox",3),xe(5),e()(),l(6,"span",4)(7,"span",5)}if(a&2){let c=_(1);p("id",m.buttonId)("disabled",m.disabled||null),z("role",m.isSingleSelector()?"radio":"button")("tabindex",m.disabled?-1:m.tabIndex)("aria-pressed",m.isSingleSelector()?null:m.checked)("aria-checked",m.isSingleSelector()?m.checked:null)("name",m._getButtonName())("aria-label",m.ariaLabel)("aria-labelledby",m.ariaLabelledby),d(3),P(m.buttonToggleGroup&&m.checked&&!m.buttonToggleGroup.multiple&&!m.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),d(),P(m.buttonToggleGroup&&m.checked&&m.buttonToggleGroup.multiple&&!m.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),d(3),p("matRippleTrigger",c)("matRippleDisabled",m.disableRipple||m.disabled)}},dependencies:[Te,qt],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 r=n;return r})(),qi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({imports:[ce,Pe,Qe,ce]});let r=n;return r})();function Bn(r,n){if(r&1&&Z(0,2),r&2){let s=v();p("ngTemplateOutlet",s.iconOverrides[s.state])("ngTemplateOutletContext",s._getIconContext())}}function qn(r,n){if(r&1&&(t(0,"span",7),i(1),e()),r&2){let s=v(2);d(),B(s._getDefaultTextForState(s.state))}}function zn(r,n){if(r&1&&(t(0,"span",8),i(1),e()),r&2){let s=v(3);d(),B(s._intl.completedLabel)}}function Vn(r,n){if(r&1&&(t(0,"span",8),i(1),e()),r&2){let s=v(3);d(),B(s._intl.editableLabel)}}function Wn(r,n){if(r&1&&(x(0,zn,2,1,"span",8)(1,Vn,2,1,"span",8),t(2,"mat-icon",7),i(3),e()),r&2){let s=v(2);P(s.state==="done"?0:s.state==="edit"?1:-1),d(3),B(s._getDefaultTextForState(s.state))}}function jn(r,n){if(r&1&&x(0,qn,2,1,"span",7)(1,Wn,4,2,"mat-icon",7),r&2){let s,o=v();P((s=o.state)==="number"?0:1)}}function Hn(r,n){r&1&&(t(0,"div",4),Z(1,9),e()),r&2&&(d(),p("ngTemplateOutlet",n.template))}function Gn(r,n){if(r&1&&(t(0,"div",4),i(1),e()),r&2){let s=v();d(),B(s.label)}}function Un(r,n){if(r&1&&(t(0,"div",5),i(1),e()),r&2){let s=v();d(),B(s._intl.optionalLabel)}}function Qn(r,n){if(r&1&&(t(0,"div",6),i(1),e()),r&2){let s=v();d(),B(s.errorMessage)}}var Vi=["*"];function $n(r,n){}function Kn(r,n){if(r&1&&(xe(0),x(1,$n,0,0,"ng-template",0)),r&2){let s=v();d(),p("cdkPortalOutlet",s._portal)}}var Wi=(r,n)=>({step:r,i:n}),ji=r=>({animationDuration:r}),Hi=(r,n)=>({value:r,params:n});function Xn(r,n){r&1&&xe(0)}function Yn(r,n){r&1&&l(0,"div",6)}function Zn(r,n){if(r&1&&(Z(0,5),x(1,Yn,1,0,"div",6)),r&2){let s=n.$implicit,o=n.$index,a=n.$count;v(2);let m=_(4);p("ngTemplateOutlet",m)("ngTemplateOutletContext",Ee(3,Wi,s,o)),d(),P(o!==a-1?1:-1)}}function Jn(r,n){if(r&1){let s=T();t(0,"div",7),f("@horizontalStepTransition.done",function(a){E(s);let m=v(2);return C(m._animationDone.next(a))}),Z(1,8),e()}if(r&2){let s=n.$implicit,o=n.$index,a=v(2);N("mat-horizontal-stepper-content-inactive",a.selectedIndex!==o),p("@horizontalStepTransition",Ee(8,Hi,a._getAnimationDirection(o),D(6,ji,a._getAnimationDuration())))("id",a._getStepContentId(o)),z("aria-labelledby",a._getStepLabelId(o)),d(),p("ngTemplateOutlet",s.content)}}function eo(r,n){if(r&1&&(t(0,"div",1)(1,"div",2),ae(2,Zn,2,6,null,null,oe),e(),t(4,"div",3),ae(5,Jn,2,11,"div",4,oe),e()()),r&2){let s=v();d(2),re(s.steps),d(3),re(s.steps)}}function to(r,n){if(r&1){let s=T();t(0,"div",9),Z(1,5),t(2,"div",10)(3,"div",11),f("@verticalStepTransition.done",function(a){E(s);let m=v(2);return C(m._animationDone.next(a))}),t(4,"div",12),Z(5,8),e()()()()}if(r&2){let s=n.$implicit,o=n.$index,a=n.$count,m=v(2),c=_(4);d(),p("ngTemplateOutlet",c)("ngTemplateOutletContext",Ee(10,Wi,s,o)),d(),N("mat-stepper-vertical-line",o!==a-1),d(),N("mat-vertical-stepper-content-inactive",m.selectedIndex!==o),p("@verticalStepTransition",Ee(15,Hi,m._getAnimationDirection(o),D(13,ji,m._getAnimationDuration())))("id",m._getStepContentId(o)),z("aria-labelledby",m._getStepLabelId(o)),d(2),p("ngTemplateOutlet",s.content)}}function io(r,n){if(r&1&&ae(0,to,6,18,"div",9,oe),r&2){let s=v();re(s.steps)}}function no(r,n){if(r&1){let s=T();t(0,"mat-step-header",13),f("click",function(){let a=E(s).step;return C(a.select())})("keydown",function(a){E(s);let m=v();return C(m._onKeydown(a))}),e()}if(r&2){let s=n.step,o=n.i,a=v();N("mat-horizontal-stepper-header",a.orientation==="horizontal")("mat-vertical-stepper-header",a.orientation==="vertical"),p("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,s.state))("label",s.stepLabel||s.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,s))("optional",s.optional)("errorMessage",s.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,s))("color",s.color||a.color),z("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",s.ariaLabel||null)("aria-labelledby",!s.ariaLabel&&s.ariaLabelledby?s.ariaLabelledby:null)("aria-disabled",a._stepIsNavigable(o,s)?null:!0)}}var gt=(()=>{let n=class n extends vi{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=De(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["","matStepLabel",""]],standalone:!0,features:[Y]});let r=n;return r})(),$e=(()=>{let n=class n{constructor(){this.changes=new Ze,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=Ct({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();function oo(r){return r||new $e}var ao={provide:$e,deps:[[new Mt,new Dt,$e]],useFactory:oo},ft=(()=>{let n=class n extends hi{constructor(o,a,m,c){super(m),this._intl=o,this._focusMonitor=a,this._intlSubscription=o.changes.subscribe(()=>c.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(o,a){o?this._focusMonitor.focusVia(this._elementRef,o,a):this._elementRef.nativeElement.focus(a)}_stringLabel(){return this.label instanceof gt?null:this.label}_templateLabel(){return this.label instanceof gt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(o){return o=="number"?`${this.index+1}`:o=="edit"?"create":o=="error"?"warning":o}};n.\u0275fac=function(a){return new(a||n)(u($e),u(Oe),u(he),u(de))},n.\u0275cmp=g({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(a,m){a&2&&kt("mat-"+(m.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:[Y,le],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(a,m){if(a&1&&(l(0,"div",0),t(1,"div")(2,"div",1),x(3,Bn,1,2,"ng-container",2)(4,jn,2,1),e()(),t(5,"div",3),x(6,Hn,2,1,"div",4)(7,Gn,2,1,"div",4)(8,Un,2,1,"div",5)(9,Qn,2,1,"div",6),e()),a&2){let c;p("matRippleTrigger",m._getHostElement())("matRippleDisabled",m.disableRipple),d(),Tt("mat-step-icon-state-",m.state," mat-step-icon"),N("mat-step-icon-selected",m.selected),d(2),P(m.iconOverrides&&m.iconOverrides[m.state]?3:4),d(2),N("mat-step-label-active",m.active)("mat-step-label-selected",m.selected)("mat-step-label-error",m.state=="error"),d(),P((c=m._templateLabel())?6:m._stringLabel()?7:-1,c),d(2),P(m.optional&&m.state!="error"?8:-1),d(),P(m.state==="error"?9:-1)}},dependencies:[Te,ot,F],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 r=n;return r})(),Gi="500ms",Ui="225ms",zi={horizontalStepTransition:at("horizontalStepTransition",[te("previous",ee({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),te("current",ee({transform:"none",visibility:"inherit"})),te("next",ee({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),mt("* => *",lt([rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),dt("@*",st(),{optional:!0})]),{params:{animationDuration:Gi}})]),verticalStepTransition:at("verticalStepTransition",[te("previous",ee({height:"0px",visibility:"hidden"})),te("next",ee({height:"0px",visibility:"hidden"})),te("current",ee({height:"*",visibility:"inherit"})),mt("* <=> current",lt([rt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),dt("@*",st(),{optional:!0})]),{params:{animationDuration:Ui}})])},ro=(()=>{let n=class n{constructor(o){this.templateRef=o}};n.\u0275fac=function(a){return new(a||n)(u(tt))},n.\u0275dir=Q({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let r=n;return r})(),lo=(()=>{let n=class n{constructor(o){this._template=o}};n.\u0275fac=function(a){return new(a||n)(u(tt))},n.\u0275dir=Q({type:n,selectors:[["ng-template","matStepContent",""]],standalone:!0});let r=n;return r})(),ht=(()=>{let n=class n extends ct{constructor(o,a,m,c){super(o,c),this._errorStateMatcher=a,this._viewContainerRef=m,this._isSelected=vt.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Et(()=>this._stepper.selectionChange.pipe(St(o=>o.selectedStep===this),_t(this._stepper.selected===this)))).subscribe(o=>{o&&this._lazyContent&&!this._portal&&(this._portal=new Zt(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(o,a){let m=this._errorStateMatcher.isErrorState(o,a),c=!!(o&&o.invalid&&this.interacted);return m||c}};n.\u0275fac=function(a){return new(a||n)(u(Me(()=>Ke)),u(we,4),u(Ot),u(bi,8))},n.\u0275cmp=g({type:n,selectors:[["mat-step"]],contentQueries:function(a,m,c){if(a&1&&(J(c,gt,5),J(c,lo,5)),a&2){let h;V(h=W())&&(m.stepLabel=h.first),V(h=W())&&(m._lazyContent=h.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[_e([{provide:we,useExisting:n},{provide:ct,useExisting:n}]),Y,le],ngContentSelectors:Vi,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a,m){a&1&&(Se(),x(0,Kn,2,1,"ng-template"))},dependencies:[Jt],encapsulation:2,changeDetection:0});let r=n;return r})(),Ke=(()=>{let n=class n extends pt{get animationDuration(){return this._animationDuration}set animationDuration(o){this._animationDuration=/^\d+$/.test(o)?o+"ms":o}constructor(o,a,m){super(o,a,m),this._stepHeader=void 0,this._steps=void 0,this.steps=new It,this.animationDone=new ne,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Ze,this._animationDuration="",this._isServer=!wt(Bt).isBrowser;let c=m.nativeElement.nodeName.toLowerCase();this.orientation=c==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:o,templateRef:a})=>this._iconOverrides[o]=a),this.steps.changes.pipe(Je(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(xt((o,a)=>o.fromState===a.fromState&&o.toState===a.toState),Je(this._destroyed)).subscribe(o=>{o.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(o,a){return a.completed||this.selectedIndex===o||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?Gi:Ui}};n.\u0275fac=function(a){return new(a||n)(u(ke,8),u(de),u(he))},n.\u0275cmp=g({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,m,c){if(a&1&&(J(c,ht,5),J(c,ro,5)),a&2){let h;V(h=W())&&(m._steps=h),V(h=W())&&(m._icons=h)}},viewQuery:function(a,m){if(a&1&&ye(ft,5),a&2){let c;V(c=W())&&(m._stepHeader=c)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(a,m){a&2&&(z("aria-orientation",m.orientation),N("mat-stepper-horizontal",m.orientation==="horizontal")("mat-stepper-vertical",m.orientation==="vertical")("mat-stepper-label-position-end",m.orientation==="horizontal"&&m.labelPosition=="end")("mat-stepper-label-position-bottom",m.orientation==="horizontal"&&m.labelPosition=="bottom")("mat-stepper-header-position-bottom",m.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[_e([{provide:pt,useExisting:n}]),Y,le],ngContentSelectors:Vi,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(a,m){if(a&1&&(Se(),x(0,Xn,1,0)(1,eo,7,0,"div",1)(2,io,2,0)(3,no,1,23,"ng-template",null,0,se)),a&2){let c;P(m._isServer?0:-1),d(),P((c=m.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[ot,ft],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:[zi.horizontalStepTransition,zi.verticalStepTransition]},changeDetection:0});let r=n;return r})(),Qi=(()=>{let n=class n extends Si{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=De(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,m){a&2&&nt("type",m.type)},standalone:!0,features:[Y]});let r=n;return r})(),$i=(()=>{let n=class n extends xi{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=De(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,m){a&2&&nt("type",m.type)},standalone:!0,features:[Y]});let r=n;return r})(),Ki=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({providers:[ao,we],imports:[ce,Ie,ei,_i,We,Pe,Ke,ft,ce]});let r=n;return r})();var Xi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Buttons"),e(),t(2,"div",0),l(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),l(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),l(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),l(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),l(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),l(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),l(219,"mat-divider"),e())},dependencies:[F,b,Qt,I,qe,gi],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 r=n;return r})();var co=()=>["Option 1","Option 2","Option 3"],Zi=(()=>{let n=class n{constructor(){}ngOnInit(){}handleSelected(o){console.log("Selected option:",o)}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Cards"),e(),t(2,"div",0),l(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()()(),l(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()(),l(23,"mat-divider"),t(24,"div",5)(25,"div",6),i(26,"Key 2"),e(),t(27,"div",7),i(28,"Value 2"),e()(),l(29,"mat-divider"),t(30,"div",5)(31,"div",6),i(32,"Key 1"),e(),t(33,"div",7),i(34,"Value 1"),e()()()()(),l(35,"br"),t(36,"h2"),i(37,"Option Card Selector"),e(),t(38,"ms-card-selector",8),f("selectedOption",function(h){return m.handleSelected(h)}),e()),a&2&&(d(38),p("options",me(1,co)))},dependencies:[ge,b,ue],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 r=n;return r})();function po(r,n){if(r&1){let s=T();t(0,"li")(1,"mat-checkbox",5),Rt("ngModelChange",function(a){let m=E(s).$implicit;return At(m.completed,a)||(m.completed=a),C(a)}),f("ngModelChange",function(){E(s);let a=v();return C(a.updateAllComplete())}),i(2),e()()}if(r&2){let s=n.$implicit;d(),Pt("ngModel",s.completed),p("color",s.color),d(),R(" ",s.name," ")}}var en=(()=>{let n=class n{updateAllComplete(){this.allComplete=this.task.subtasks!=null&&this.task.subtasks.every(o=>o.completed)}someComplete(){return this.task.subtasks==null?!1:this.task.subtasks.filter(o=>o.completed).length>0&&!this.allComplete}setAll(o){this.allComplete=o,this.task.subtasks!=null&&this.task.subtasks.forEach(a=>a.completed=o)}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(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-checkboxes-demo"]],decls:18,vars:5,consts:[[1,"line"],[1,"ms-card"],[3,"disabled"],[3,"change","checked","color","indeterminate"],[1,"list-none"],[3,"ngModelChange","ngModel","color"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Checkboxes"),e(),t(2,"div",0),l(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),f("change",function(h){return m.setAll(h.checked)}),i(13),e()(),t(14,"span")(15,"ul",4),ae(16,po,3,3,"li",null,oe),e()()()()),a&2&&(d(8),p("disabled",!0),d(4),p("checked",m.allComplete)("color",m.task.color)("indeterminate",m.someComplete()),d(),R(" ",m.task.name," "),d(3),re(m.task.subtasks))},dependencies:[b,pe,Ht,ue,ri],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 r=n;return r})();var tn=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Chips"),e(),t(2,"div",0),l(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:[b,si,di],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 r=n;return r})();var A=r=>[r],nn=(()=>{let n=class n{constructor(){this.RoutesList=y}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&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),l(30,"router-outlet"),e()()),a&2&&(d(3),p("routerLink",D(13,A,m.RoutesList.DEMO)),d(2),p("routerLink",D(15,A,m.RoutesList.DEMO.TYPOGRAPHY)),d(2),p("routerLink",D(17,A,m.RoutesList.DEMO.FORM_FIELDS)),d(2),p("routerLink",D(19,A,m.RoutesList.DEMO.CHECKBOXES)),d(2),p("routerLink",D(21,A,m.RoutesList.DEMO.MENU)),d(2),p("routerLink",D(23,A,m.RoutesList.DEMO.TABLE)),d(2),p("routerLink",D(25,A,m.RoutesList.DEMO.ICONS)),d(2),p("routerLink",D(27,A,m.RoutesList.DEMO.CARDS)),d(2),p("routerLink",D(29,A,m.RoutesList.DEMO.CHIPS)),d(2),p("routerLink",D(31,A,m.RoutesList.DEMO.NOTIFICATIONS)),d(2),p("routerLink",D(33,A,m.RoutesList.DEMO.WIZARD)),d(2),p("routerLink",D(35,A,m.RoutesList.DEMO.DRAWER)),d(2),p("routerLink",D(37,A,"/"+m.RoutesList.AUTH.ROOT)))},dependencies:[Ft,Nt,I,ut,Qe],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 r=n;return r})();var on=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-run-drawer-actions"]],decls:2,vars:0,template:function(a,m){a&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:[w],changeDetection:0});let r=n;return r})();function uo(r,n){if(r&1){let s=T();t(0,"div",2)(1,"button",3),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(2,"Button 1"),e(),t(3,"button",4),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(4,"Button 2"),e(),t(5,"button",5),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(6,"Button 3"),e()()}}var an=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}onDismiss(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,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(a,m){if(a&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(),x(2,uo,7,0,"ng-template",null,0,se)),a&2){let c=_(3);p("actionsTemplate",c)}},dependencies:[w,I],styles:[".buttons-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-child){margin-left:20px}"]});let r=n;return r})();function go(r,n){if(r&1){let s=T();t(0,"div",2)(1,"div",3)(2,"button",4),f("click",function(){E(s);let a=v();return C(a.close())}),l(3,"mat-icon",5),e()(),t(4,"h3",6),i(5,"Different Header Style"),e()()}}var rn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,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(a,m){if(a&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(),x(2,go,6,0,"ng-template",null,0,se)),a&2){let c=_(3);p("headerTemplate",c)}},dependencies:[w,F,qe],styles:[".header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}"],changeDetection:0});let r=n;return r})();var ln=(()=>{let n=class n{constructor(o,a,m){this.drawerRef=o,this.drawerConfig=a,this.fb=m}ngOnInit(){this.form=this.fb.group({name:["",[$.required]],address:["",[$.required]]})}save(o){o===Ri.SAVE&&this.drawerRef.close({result:this.form.getRawValue(),status:o})}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O),u(Be))},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"ms-drawer",0),f("actionEvent",function(h){return m.save(h)}),t(1,"form",1)(2,"div",2)(3,"mat-label"),i(4,"Name"),e(),t(5,"mat-form-field",3),l(6,"input",4),e()(),t(7,"div",2)(8,"mat-label"),i(9,"Address"),e(),t(10,"mat-form-field",3),l(11,"input",5),e()()()()),a&2&&(p("isSaveDisabled",m.form.invalid),d(),p("formGroup",m.form))},dependencies:[w,Fe,Ae,pe,Re,Ne,Le,Ve,ze,je]});let r=n;return r})();var mn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-customizable-width"]],decls:1,vars:0,template:function(a,m){a&1&&l(0,"ms-drawer")},dependencies:[w]});let r=n;return r})();var sn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a,this.isSaveDisabled=!0}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-disabled-buttons-actions"]],decls:3,vars:2,consts:[[3,"isSaveDisabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(a,m){a&1&&(t(0,"ms-drawer",0)(1,"button",1),f("click",function(){return m.isSaveDisabled=!m.isSaveDisabled}),i(2),e()()),a&2&&(p("isSaveDisabled",m.isSaveDisabled),d(2),R(" Click here to ",m.isSaveDisabled?"enable":"disable"," button "))},dependencies:[w,I]});let r=n;return r})();var dn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerData=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-injected-data"]],decls:5,vars:2,template:function(a,m){a&1&&(t(0,"ms-drawer")(1,"p"),i(2),e(),t(3,"p"),i(4),e()()),a&2&&(d(2),R("Field 1: ",m.drawerData.data.field1,""),d(2),R("Field 2: ",m.drawerData.data.field2,""))},dependencies:[w],changeDetection:0});let r=n;return r})();var cn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerData=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-only-one-button"]],decls:1,vars:0,template:function(a,m){a&1&&l(0,"ms-drawer")},dependencies:[w],changeDetection:0});let r=n;return r})();var pn=(()=>{let n=class n{constructor(o){this.drawerService=o}ngOnInit(){}openDrawer(){this.drawerService.open(on,{title:"Lorem Ipsum"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithInjectedData(){let o={field1:"value1",field2:"value2"};this.drawerService.open(dn,{title:"Drawer with injected data",data:o}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeHeader(){this.drawerService.open(rn).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithOnlyOneButton(){this.drawerService.open(cn,{title:"Only one button",showSaveButton:!1,closeButtonLabel:"Close"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeActions(){this.drawerService.open(an,{title:"Alternative Footer"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithDisabledButtons(){this.drawerService.open(sn,{title:"Disabled buttons"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithButtonsActions(){this.drawerService.open(ln,{title:"Buttons Actions"}).afterClosed().pipe(q(1)).subscribe(a=>{alert(`Clicked on ${a.status}, name = ${a.result.name}, address = ${a.result.address}`)})}openDrawerWithCustomizableWidth(){this.drawerService.open(mn,{title:"Drawer With Customizable Width",width:500}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}};n.\u0275fac=function(a){return new(a||n)(u(Ge))},n.\u0275cmp=g({type:n,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(a,m){a&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(),l(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. "),l(15,"br"),t(16,"b"),i(17,"title?: string;"),e(),i(18," | Dialog title "),l(19,"br"),t(20,"b"),i(21,"showSaveButton?: boolean;"),e(),i(22," | Option to configure the show/hide of the save button. "),l(23,"br"),t(24,"b"),i(25,"showDismissButton?: boolean;"),e(),i(26," | Option to configure the show/hide of the dismiss button. "),l(27,"br"),t(28,"b"),i(29,"saveButtonLabel?: string;"),e(),i(30," | Option to configure the save button label."),l(31,"br"),t(32,"b"),i(33,"dismissButtonLabel?: string;"),e(),i(34," | Option to configure the dismiss button label."),l(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),f("click",function(){return m.openDrawer()}),i(56,"Open Drawer"),e()(),t(57,"div")(58,"button",2),f("click",function(){return m.openDrawerWithInjectedData()}),i(59,"Open Drawer"),e()(),t(60,"div")(61,"button",2),f("click",function(){return m.openDrawerWithOnlyOneButton()}),i(62,"Open Drawer"),e()(),t(63,"div")(64,"button",2),f("click",function(){return m.openDrawerWithDisabledButtons()}),i(65,"Open Drawer"),e()(),t(66,"div")(67,"button",2),f("click",function(){return m.openDrawerWithCustomizableWidth()}),i(68,"Open Drawer"),e()()(),t(69,"div",3),l(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(),l(79,"div")(80,"div")(81,"div"),t(82,"div")(83,"button",2),f("click",function(){return m.openDrawerWithAlternativeHeader()}),i(84,"Open Drawer"),e()(),t(85,"div")(86,"button",2),f("click",function(){return m.openDrawerWithAlternativeActions()}),i(87,"Open Drawer"),e()(),l(88,"div")(89,"div")(90,"div"),e(),t(91,"div",3),l(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(),l(99,"div")(100,"div")(101,"div")(102,"div"),t(103,"div")(104,"button",2),f("click",function(){return m.openDrawerWithButtonsActions()}),i(105,"Open Drawer"),e()(),l(106,"div")(107,"div")(108,"div")(109,"div"),e(),t(110,"div",3),l(111,"mat-divider"),e()())},dependencies:[b,I],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 r=n;return r})();var H,Ye=(H=class{constructor(n){this.fb=n,this.form=new jt({})}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,[$.required]],icon:[null],iconPrefilled:["Lorem Ipsum"],iconDisabled:[{value:null,disabled:!0}],iconPrefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],iconError:[null,[$.required]],required:[null,[$.required]],textarea:[null],textareaPrefilled:["Lorem Ipsum"],textareaDisabled:[{value:null,disabled:!0}],textareaPrefilledAndDisabled:[{value:"Lorem Ipsum",disabled:!0}],textareaError:[null,[$.required]],dropdown:[null],dropdownPreselected:["option1"],dropdownDisabled:[{value:null,disabled:!0}],dropdownPreselectedAndDisabled:[{value:"option1",disabled:!0}]})}},H.\u0275fac=function(s){return new(s||H)(u(Be))},H.\u0275cmp=g({type:H,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(s,o){s&1&&(t(0,"h1"),i(1,"Form Fields"),e(),t(2,"div",0),l(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"),l(14,"input",5),e()(),t(15,"div",6)(16,"mat-label"),i(17," Default White "),e(),t(18,"mat-form-field"),l(19,"input",5),e()(),t(20,"div",4)(21,"mat-label"),i(22," Prefilled "),e(),t(23,"mat-form-field"),l(24,"input",7),e()(),t(25,"div",4)(26,"mat-label"),i(27," Disabled "),e(),t(28,"mat-form-field"),l(29,"input",8),e()(),t(30,"div",4)(31,"mat-label"),i(32," Prefilled & disabled "),e(),t(33,"mat-form-field"),l(34,"input",9),e()(),t(35,"div",4)(36,"mat-label"),i(37," Error "),e(),t(38,"mat-form-field"),l(39,"input",10),e()()(),t(40,"div",0),l(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(),l(49,"input",12),e()(),t(50,"div",4)(51,"mat-form-field",11)(52,"mat-label"),i(53," Prefilled "),e(),l(54,"input",13),e()(),t(55,"div",4)(56,"mat-form-field",11)(57,"mat-label"),i(58," Disabled "),e(),l(59,"input",14),e()(),t(60,"div",4)(61,"mat-form-field",11)(62,"mat-label"),i(63," Prefilled & disabled "),e(),l(64,"input",15),e()(),t(65,"div",4)(66,"mat-form-field",11)(67,"mat-label"),i(68," Error "),e(),l(69,"input",16),t(70,"mat-error"),i(71,"Test"),e()()()(),t(72,"div",0),l(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(),l(82,"input",5),e()(),t(83,"div")(84,"mat-form-field",17)(85,"mat-label"),i(86," Prefilled "),e(),l(87,"input",7),e()(),t(88,"div",4)(89,"mat-form-field",17)(90,"mat-label"),i(91," Disabled "),e(),l(92,"input",8),e()(),t(93,"div",4)(94,"mat-form-field",17)(95,"mat-label"),i(96," Prefilled & disabled "),e(),l(97,"input",9),e()(),t(98,"div",4)(99,"mat-form-field",17)(100,"mat-label"),i(101," Error "),e(),l(102,"input",10),e()()(),t(103,"div",0),l(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(),l(113,"input",5),e()(),t(114,"div",4)(115,"mat-form-field",18)(116,"mat-label"),i(117," Prefilled "),e(),l(118,"input",7),e()(),t(119,"div",4)(120,"mat-form-field",18)(121,"mat-label"),i(122," Disabled "),e(),l(123,"input",8),e()(),t(124,"div",4)(125,"mat-form-field",18)(126,"mat-label"),i(127," Prefilled & disabled "),e(),l(128,"input",9),e()(),t(129,"div",4)(130,"mat-form-field",18)(131,"mat-label"),i(132," Error "),e(),l(133,"input",10),e()()(),t(134,"div",0),l(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(),l(144,"input",20),e()(),l(145,"div")(146,"div"),e(),t(147,"div",0),l(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(),l(157,"textarea",21),e()(),t(158,"div",4)(159,"mat-form-field",19)(160,"mat-label"),i(161,"Prefilled"),e(),l(162,"textarea",22),e()(),t(163,"div",4)(164,"mat-form-field",19)(165,"mat-label"),i(166,"Disabled"),e(),l(167,"textarea",23),e()(),t(168,"div",4)(169,"mat-form-field",19)(170,"mat-label"),i(171,"Prefilled and disabled"),e(),l(172,"textarea",24),e()(),t(173,"div",4)(174,"mat-form-field",19)(175,"mat-label"),i(176,"Error"),e(),l(177,"textarea",25),e()()(),t(178,"div",0),l(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),l(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),l(252,"input",36),e()()(),t(253,"div",0),l(254,"mat-divider"),e()()()),s&2&&(d(4),p("formGroup",o.form))},dependencies:[b,Fe,Ae,pe,Re,Ne,Le,Ve,ze,Kt,je,pi,zt,ai],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}),H);Ye=bt([Lt()],Ye);var un=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Icons"),e(),t(2,"div",0),l(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(),l(12,"div"),t(13,"div"),l(14,"mat-icon",3),e(),t(15,"div")(16,"mat-icon"),i(17,"delete"),e()(),l(18,"div"),e(),t(19,"div",0),l(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"),l(42,"mat-icon",5),e(),t(43,"div"),l(44,"mat-icon",6),e(),t(45,"div"),l(46,"mat-icon",7),e(),t(47,"div"),l(48,"mat-icon",8),e(),t(49,"div"),l(50,"mat-icon",9),e(),t(51,"div"),l(52,"mat-icon",10),e(),t(53,"div"),l(54,"mat-icon",11),e(),t(55,"div"),l(56,"mat-icon",12),e()(),t(57,"div",0),l(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"),l(84,"mat-icon",14),e(),t(85,"div"),l(86,"mat-icon",15),e(),t(87,"div"),l(88,"mat-icon",16),e(),t(89,"div"),l(90,"mat-icon",17),e(),t(91,"div"),l(92,"mat-icon",18),e(),t(93,"div"),l(94,"mat-icon",19),e(),t(95,"div"),l(96,"mat-icon",20),e(),t(97,"div"),l(98,"mat-icon",21),e(),t(99,"div"),l(100,"mat-icon",22),e(),t(101,"div"),l(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"),l(124,"mat-icon",24),e(),t(125,"div"),l(126,"mat-icon",25),e(),t(127,"div"),l(128,"mat-icon",26),e(),t(129,"div"),l(130,"mat-icon",27),e(),t(131,"div"),l(132,"mat-icon",28),e(),t(133,"div"),l(134,"mat-icon",29),e(),t(135,"div"),l(136,"mat-icon",30),e(),t(137,"div"),l(138,"mat-icon",31),e(),t(139,"div"),l(140,"mat-icon",32),e(),t(141,"div"),l(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"),l(164,"mat-icon",34),e(),t(165,"div"),l(166,"mat-icon",35),e(),t(167,"div"),l(168,"mat-icon",36),e(),t(169,"div"),l(170,"mat-icon",37),e(),t(171,"div"),l(172,"mat-icon",38),e(),t(173,"div"),l(174,"mat-icon",39),e(),t(175,"div"),l(176,"mat-icon",40),e(),t(177,"div"),l(178,"mat-icon",41),e(),t(179,"div"),l(180,"mat-icon",42),e(),t(181,"div"),l(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"),l(204,"mat-icon",44),e(),t(205,"div"),l(206,"mat-icon",45),e(),t(207,"div"),l(208,"mat-icon",46),e(),t(209,"div"),l(210,"mat-icon",47),e(),t(211,"div"),l(212,"mat-icon",48),e(),t(213,"div"),l(214,"mat-icon",49),e(),t(215,"div"),l(216,"mat-icon",50),e(),t(217,"div"),l(218,"mat-icon",51),e(),t(219,"div"),l(220,"mat-icon",52),e(),t(221,"div"),l(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"),l(244,"mat-icon",54),e(),t(245,"div"),l(246,"mat-icon",55),e(),t(247,"div"),l(248,"mat-icon",56),e(),t(249,"div"),l(250,"mat-icon",57),e(),t(251,"div"),l(252,"mat-icon",58),e(),t(253,"div"),l(254,"mat-icon",59),e(),t(255,"div"),l(256,"mat-icon",60),e(),t(257,"div"),l(258,"mat-icon",61),e(),t(259,"div"),l(260,"mat-icon",62),e(),t(261,"div"),l(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"),l(284,"mat-icon",64),e(),t(285,"div"),l(286,"mat-icon",65),e(),t(287,"div"),l(288,"mat-icon",66),e(),t(289,"div"),l(290,"mat-icon",67),e(),t(291,"div"),l(292,"mat-icon",68),e(),t(293,"div"),l(294,"mat-icon",69),e(),t(295,"div"),l(296,"mat-icon",70),e(),t(297,"div"),l(298,"mat-icon",71),e(),t(299,"div"),l(300,"mat-icon",72),e(),t(301,"div"),l(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"),l(324,"mat-icon",74),e(),t(325,"div"),l(326,"mat-icon",75),e(),t(327,"div"),l(328,"mat-icon",76),e(),t(329,"div"),l(330,"mat-icon",77),e(),t(331,"div"),l(332,"mat-icon",78),e(),t(333,"div"),l(334,"mat-icon",79),e(),t(335,"div"),l(336,"mat-icon",80),e(),t(337,"div"),l(338,"mat-icon",81),e(),t(339,"div"),l(340,"mat-icon",82),e(),t(341,"div"),l(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(),l(359,"div")(360,"div"),t(361,"div"),l(362,"mat-icon",84),e(),t(363,"div"),l(364,"mat-icon",85),e(),t(365,"div"),l(366,"mat-icon",86),e(),t(367,"div"),l(368,"mat-icon",87),e(),t(369,"div"),l(370,"mat-icon",88),e(),t(371,"div"),l(372,"mat-icon",89),e(),t(373,"div"),l(374,"mat-icon",90),e(),t(375,"div"),l(376,"mat-icon",91),e(),l(377,"div")(378,"div"),t(379,"div",92),l(380,"mat-divider"),e()()())},dependencies:[F,b],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 r=n;return r})();var gn=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){if(a&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),l(10,"mat-icon",16),i(11,"Vertebrates "),e(),t(12,"button",15),l(13,"mat-icon",16),i(14,"Invertebrates "),e()(),t(15,"mat-menu",14,1)(17,"button",15),l(18,"mat-icon",16),i(19,"Fishes "),e(),t(20,"button",15),l(21,"mat-icon",16),i(22,"Amphibians "),e(),t(23,"button",15),l(24,"mat-icon",16),i(25,"Reptiles "),e(),t(26,"button",17),l(27,"mat-icon",16),i(28,"Birds"),e(),t(29,"button",17),l(30,"mat-icon",16),i(31,"Mammals"),e()(),t(32,"mat-menu",14,2)(34,"button",17),l(35,"mat-icon",16),i(36,"Insects"),e(),t(37,"button",17),l(38,"mat-icon",16),i(39,"Molluscs"),e(),t(40,"button",17),l(41,"mat-icon",16),i(42,"Crustaceans"),e(),t(43,"button",17),l(44,"mat-icon",16),i(45,"Corals"),e(),t(46,"button",17),l(47,"mat-icon",16),i(48,"Arachnids"),e(),t(49,"button",17),l(50,"mat-icon",16),i(51,"Velvet worms"),e(),t(52,"button",17),l(53,"mat-icon",16),i(54,"Horseshoe crabs"),e()(),t(55,"mat-menu",14,3)(57,"button",17),l(58,"mat-icon",16),i(59,"Baikal oilfish"),e(),t(60,"button",17),l(61,"mat-icon",16),i(62,"Bala shark"),e(),t(63,"button",17),l(64,"mat-icon",16),i(65,"Ballan wrasse"),e(),t(66,"button",17),l(67,"mat-icon",16),i(68,"Bamboo shark"),e(),t(69,"button",17),l(70,"mat-icon",16),i(71,"Banded killifish"),e()(),t(72,"mat-menu",14,4)(74,"button",17),l(75,"mat-icon",16),i(76,"Sonoran desert toad"),e(),t(77,"button",17),l(78,"mat-icon",16),i(79,"Western toad"),e(),t(80,"button",17),l(81,"mat-icon",16),i(82,"Arroyo toad"),e(),t(83,"button",17),l(84,"mat-icon",16),i(85,"Yosemite toad"),e()(),t(86,"mat-menu",14,5)(88,"button",17),l(89,"mat-icon",16),i(90,"Banded Day Gecko"),e(),t(91,"button",17),l(92,"mat-icon",16),i(93,"Banded Gila Monster"),e(),t(94,"button",17),l(95,"mat-icon",16),i(96,"Black Tree Monitor"),e(),t(97,"button",17),l(98,"mat-icon",16),i(99,"Blue Spiny Lizard"),e(),t(100,"button",18),l(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),l(109,"mat-icon",16),i(110,"Item 1"),e(),t(111,"button",17),l(112,"mat-icon",16),i(113,"Item 2"),e()()()(),t(114,"div",19),l(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),l(154,"mat-divider"),e()),a&2){let c=_(8),h=_(16),M=_(33),fe=_(56),_n=_(73),En=_(87),Cn=_(107),wn=_(121),Mn=_(130),Dn=_(139),yn=_(148);d(5),p("matMenuTriggerFor",c),d(4),p("matMenuTriggerFor",h),d(3),p("matMenuTriggerFor",M),d(5),p("matMenuTriggerFor",fe),d(3),p("matMenuTriggerFor",_n),d(3),p("matMenuTriggerFor",En),d(81),p("matMenuTriggerFor",Cn),d(14),p("matMenuTriggerFor",wn),d(9),p("matMenuTriggerFor",Mn),d(9),p("matMenuTriggerFor",Dn),d(9),p("matMenuTriggerFor",yn)}},dependencies:[F,b,I,ii,ti,ni],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 r=n;return r})();var fn=(()=>{let n=class n{constructor(o){this.snackbarService=o}};n.\u0275fac=function(a){return new(a||n)(u(Fi))},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Notifications"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Banners"),e(),t(7,"div",2)(8,"div")(9,"button",3),f("click",function(){return m.snackbarService.showSuccess("Example Success")}),i(10," Open Success "),e()(),t(11,"div")(12,"button",3),f("click",function(){return m.snackbarService.showError("Example Error")}),i(13,"Open Error"),e()(),t(14,"div")(15,"button",3),f("click",function(){return m.snackbarService.showInfo("Example Info")}),i(16,"Open Info"),e()(),t(17,"div")(18,"button",3),f("click",function(){return m.snackbarService.showWarning("Example Warning")}),i(19," Open Warning "),e()()()())},dependencies:[b,I],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 r=n;return r})();function vo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," No. "),e())}function bo(r,n){if(r&1&&(t(0,"mat-cell")(1,"b"),i(2),e()()),r&2){let s=n.$implicit;d(2),B(s.position)}}function So(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Name "),e())}function xo(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.name," ")}}function _o(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Weight "),e())}function Eo(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.weight," ")}}function Co(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Symbol "),e())}function wo(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.symbol," ")}}function Mo(r,n){r&1&&l(0,"mat-header-row")}function Do(r,n){r&1&&l(0,"mat-row")}var hn=[{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"}],vn=(()=>{let n=class n{constructor(){this.displayedColumnsSimple=["position","name","weight","symbol"],this.dataSourceSimple=hn,this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=new Ai(hn),this.selection=new He(!0,[])}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Tables"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"p",2),i(6,"History"),e(),t(7,"mat-table",3),ve(8,4),x(9,vo,2,0,"mat-header-cell",5)(10,bo,3,1,"mat-cell",6),be(),ve(11,7),x(12,So,2,0,"mat-header-cell",5)(13,xo,2,1,"mat-cell",6),be(),ve(14,8),x(15,_o,2,0,"mat-header-cell",5)(16,Eo,2,1,"mat-cell",6),be(),ve(17,9),x(18,Co,2,0,"mat-header-cell",5)(19,wo,2,1,"mat-cell",6),be(),x(20,Mo,1,0,"mat-header-row",10)(21,Do,1,0,"mat-row",11),e()()),a&2&&(d(7),p("dataSource",m.dataSourceSimple),d(13),p("matHeaderRowDef",m.displayedColumnsSimple),d(),p("matRowDefColumns",m.displayedColumnsSimple))},dependencies:[b,Ei,wi,Ii,Mi,Ci,Oi,Di,yi,ki,Ti,ue],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 r=n;return r})();var bn=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){a&1&&(t(0,"h1"),i(1,"Typograpghy"),e(),t(2,"div",0),l(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(),l(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()()(),l(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(),l(63,"br"),t(64,"p",18),i(65,"subtitle-1"),e(),t(66,"p",19),i(67,"subtitle-2"),e(),l(68,"br"),t(69,"p",20),i(70,"mat-body-1"),e(),t(71,"p",21),i(72,"mat-body-2"),e(),l(73,"br"),t(74,"p",22),i(75,"mat-caption"),e())},dependencies:[b],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 r=n;return r})();var yo=()=>["Iterative Magnitude Pruning","One-shot Magnitude Pruning"],Io=()=>["Yes","No"],Oo=()=>["Option 1","Option 2","Option 3","Option 4"],Sn=(()=>{let n=class n{constructor(){}handleSelected(o){console.log("Selected option:",o)}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,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(a,m){if(a&1){let c=T();t(0,"h1"),i(1,"Wizard"),e(),t(2,"div",1),l(3,"mat-divider"),e(),l(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),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),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),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),e(),t(19,"div",6)(20,"button",8),l(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),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),e(),t(29,"div",6)(30,"button",8),l(31,"mat-icon",9),i(32," Previous "),e()()()()()}a&2&&(d(11),p("options",me(3,yo)),d(7),p("options",me(4,Io)),d(10),p("options",me(5,Oo)))},dependencies:[ge,F,ht,Ke,Qi,$i,b,I]});let r=n;return r})();var ko=[{path:"",component:nn,children:[{path:"",redirectTo:y.DEMO.BUTTONS,pathMatch:"full"},{path:y.DEMO.BUTTONS,component:Xi},{path:y.DEMO.FORM_FIELDS,component:Ye},{path:y.DEMO.CHECKBOXES,component:en},{path:y.DEMO.TYPOGRAPHY,component:bn},{path:y.DEMO.TABLE,component:vn},{path:y.DEMO.ICONS,component:un},{path:y.DEMO.MENU,component:gn},{path:y.DEMO.CARDS,component:Zi},{path:y.DEMO.CHIPS,component:tn},{path:y.DEMO.NOTIFICATIONS,component:fn},{path:y.DEMO.WIZARD,component:Sn},{path:y.DEMO.DRAWER,component:pn}]}],xn=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({imports:[Ce.forChild(ko),Ce]});let r=n;return r})();var Ql=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({providers:[Ge],imports:[Ce,Ie,xn,ge,w,We,Ki,Vt,Gt,Ut,$t,Pi,mi,oi,Xt,Yt,ui,qi,ci,li,fi]});let r=n;return r})();export{Ql as DemoModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ZKC6ZYY5.js b/frontend/server/modelsmith-build/browser/chunk-ZKC6ZYY5.js new file mode 100644 index 00000000..adf46d0b --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-ZKC6ZYY5.js @@ -0,0 +1 @@ +import{a as J,b as K,c as W,d as Y}from"./chunk-6USI7MSU.js";import{a as q,b as H}from"./chunk-SWEZDJOL.js";import{c as z,h as Q,i as X}from"./chunk-RTK5DRKR.js";import{Bb as p,Ea as a,Fa as w,Fb as D,Fe as ee,Gb as P,Hc as S,Ic as U,Qa as F,Sa as u,Ta as b,Xb as A,Ya as E,Yd as N,_b as B,ab as i,ad as k,bb as n,be as O,cb as o,fe as j,gb as _,ha as l,ie as L,jb as T,pa as I,pe as R,qa as y,qe as V,re as G,tb as M,te as $,ub as d,ue as f,vb as h,we as g,xe as v,ye as Z}from"./chunk-I5FNXPEQ.js";function ae(t,e){if(t&1&&(i(0,"div",6)(1,"div",12),d(2),n(),i(3,"div",13),d(4),n()()),t&2){let C=e;a(2),h(C.name),a(2),h(C.role)}}var te=(()=>{let e=class e{constructor(m){this.authFacadeService=m,this.RoutesList=k,this.user$=this.authFacadeService.user$}logout(){this.authFacadeService.dispatch(Z.logout())}};e.\u0275fac=function(r){return new(r||e)(w(ee))},e.\u0275cmp=l({type:e,selectors:[["ms-user-navigation"]],standalone:!0,features:[p],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"],[1,"content-2","right","text-left","ml-2"],[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,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p3-default"]],template:function(r,s){if(r&1){let c=_();i(0,"button",2,0)(2,"div",3)(3,"div",4),o(4,"mat-icon",5),n(),F(5,ae,5,2,"div",6),D(6,"async"),i(7,"div",7),o(8,"mat-icon",8),n()()(),i(9,"mat-menu",9,1)(11,"button",10),T("click",function(){return I(c),y(s.logout())}),o(12,"mat-icon",11),d(13," Logout "),n()()}if(r&2){let c,x=M(1),ie=M(10);u("matMenuTriggerFor",ie),a(5),E((c=P(6,4,s.user$))?5:-1,c),a(3),b("transform",x.menuOpen?"rotate(180deg)":"rotate(0)")}},dependencies:[B,A,v,g,Y,K,J,W,f,G],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 Ee=(()=>{let e=class e{constructor(){this.search=new j}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=l({type:e,selectors:[["ms-header"]],standalone:!0,features:[p],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(r,s){r&1&&(i(0,"header",0)(1,"div",1)(2,"div",2)(3,"button",3),o(4,"mat-icon",4),n()(),i(5,"div",5),o(6,"img",6),n()(),i(7,"div",7)(8,"div",8)(9,"mat-form-field",9),o(10,"input",10)(11,"mat-icon",11),n()(),i(12,"div")(13,"button",3),o(14,"mat-icon",12),n()(),i(15,"div")(16,"button",3),o(17,"mat-icon",13),n()(),o(18,"div",14),i(19,"div"),o(20,"ms-user-navigation"),n(),i(21,"div",15)(22,"button",3),o(23,"mat-icon",4),n()()()()),r&2&&(a(10),u("formControl",s.search))},dependencies:[v,g,te,V,N,O,L,R,X,Q,z,f,$,H,q],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 De=U({source:"[Core -> Configs]",events:{"Set Default Mode":S(),"Set Current Mode":S()}});var me=function(t){return t.GUIDED="guided",t.EXPERT="expert",t}(me||{});export{De as a,me as b,Ee as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ZNUYT5NW.js b/frontend/server/modelsmith-build/browser/chunk-ZNUYT5NW.js deleted file mode 100644 index 0a8b7d34..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-ZNUYT5NW.js +++ /dev/null @@ -1 +0,0 @@ -import{a as pt,b as ct,c as dt}from"./chunk-XD2XL32D.js";import{a as st}from"./chunk-3GNVUME3.js";import{a as fe}from"./chunk-R5J4FM6S.js";import{b as ot,c as rt,e as mt,f as lt}from"./chunk-DQ7AOZDA.js";import{b as We}from"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import{a as pe,b as ce}from"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import{a as Qe,b as ze}from"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as de}from"./chunk-QVZ2CSJP.js";import{a as w,c as V}from"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as O,d as Xe,e as G,f as et,g as c,h as tt,n as y,o as it}from"./chunk-W4U3FJPJ.js";import{a as K,b as se}from"./chunk-2FJ2YO2M.js";import{a as le,b as L,d as nt,l as at}from"./chunk-PSFPSLKI.js";import{a as P,b as f}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import{h as re,i as ne}from"./chunk-HG2O7P4S.js";import{$ as z,$b as Ue,Ab as Z,Ae as me,Bb as xe,E as b,Ea as r,Fa as p,Fb as A,Gb as E,Hb as Re,I as ye,Ib as ke,J as Ie,L as Me,Q,Qa as d,R as Ae,Sa as n,Tb as R,Td as $e,Ub as q,Ud as W,Vb as De,Wb as Le,Xb as Ke,_b as Ve,a as Fe,ab as m,ac as Be,b as Ne,bb as a,bc as J,be as X,cb as g,ce as v,da as H,db as u,dd as je,eb as h,ee,fe as k,gb as be,ge as D,ha as I,ia as Y,ie as j,jb as Te,lb as M,le as He,me as Ye,ne as te,oa as Pe,p as F,pa as Ce,pe as ie,qa as _e,qb as Ee,rb as Oe,sb as Ge,sc as Se,se as Ze,tb as we,te as oe,ub as l,ue as qe,vb as B,wb as x,x as N,xe as Je,ze as ae}from"./chunk-NPZHNGVX.js";function Tt(o,e){o&1&&g(0,"mat-icon",13)}function St(o,e){if(o&1&&(m(0,"mat-option",11),l(1),d(2,Tt,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 Ft(o,e){o&1&&(m(0,"mat-option",14),l(1,"No results found"),a())}function Nt(o,e){if(o&1&&(u(0),d(1,St,3,3,"mat-option",9)(2,Ft,2,0,"mat-option",10),h()),o&2){let t=e.ngIf,i=M();r(),n("ngForOf",t)("ngForTrackBy",i.trackByModel),r(),n("ngIf",t.length===0)}}var C,U=(C=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=ot,this.RoutesList=je,this.searchModel=new j,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=>!et(i)),N(i=>[...i].sort((s,ve)=>Number(ve.isTrained)-Number(s.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new D({[this.MODEL_CONTROL_NAME]:new j("",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),Ae(""),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)}},C.\u0275fac=function(t){return new(t||C)(p(v),p(V),p(L),p(rt))},C.\u0275cmp=I({type:C,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}]),Pe,xe],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,Nt,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:[oe,ee,k,He,ie,te,se,K,ne,re,ce,pe,W,$e,me,ae,J,R,q,Ve,lt,mt,We],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}"]}),C);U=F([P()],U);function Pt(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 _,ge=(_=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=tt.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),Ie(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(le.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new D({[this.ALGORITHM_TYPE_CONTROL_NAME]:new j(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(L))},_.\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(),u(3,2),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),d(7,Pt,2,2,"mat-option",6),a()()(),h(),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,pe,W,ee,k,ie,te]}),_);ge=F([P()],ge);function Et(o,e){if(o&1&&(u(0),l(1),A(2,"adaptiveFileSize"),h()),o&2){let t=M().$implicit;r(),B(E(2,1,t.value))}}function Ot(o,e){if(o&1&&(u(0),l(1),A(2,"date"),h()),o&2){let t=M().$implicit;r(),B(Re(2,1,t.value,"medium"))}}function Gt(o,e){if(o&1&&(u(0),l(1),A(2,"readableDuration"),h()),o&2){let t=M().$implicit;r(),B(E(2,1,t.value))}}function wt(o,e){if(o&1&&(u(0),l(1),h()),o&2){let t=M().$implicit;r(),B(t.value)}}function xt(o,e){o&1&&(m(0,"div",15),g(1,"mat-divider"),a())}function Rt(o,e){if(o&1&&(m(0,"div")(1,"div",8)(2,"div",9),l(3),A(4,"parametersLabel"),a(),m(5,"div",10),u(6,11),d(7,Et,3,3,"ng-container",12)(8,Ot,3,4,"ng-container",12)(9,Gt,3,3,"ng-container",12)(10,wt,2,1,"ng-container",13),h(),a()(),d(11,xt,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 kt(o,e){if(o&1&&(m(0,"div",6),d(1,Rt,12,8,"div",7),a()),o&2){let t=M().$implicit;r(),n("ngForOf",t)}}function Dt(o,e){if(o&1&&(m(0,"div",4),d(1,kt,2,1,"div",5),a()),o&2){let t=e.$implicit;M();let i=we(6);r(),n("ngIf",t.length>0)("ngIfElse",i)}}function Lt(o,e){o&1&&g(0,"ms-empty-state",16)}var T,ue=(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,Dt,2,2,"div",3),A(4,"keyvalue"),d(5,Lt,1,0,"ng-template",null,0,ke),a()),t&2&&(r(3),n("ngIf",E(4,1,i.metadata)))},dependencies:[R,q,De,Le,Ke,st,K,Qe,Ue,Be,pt,dt,ct],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),T);ue=F([P()],ue);var Vt=["panelParameters"],S,he=(S=class{constructor(e,t,i,s){this.navigationService=e,this.scriptFacadeService=t,this.snackbarService=i,this.modelsFacadeService=s,this.form=new D({}),this.isScriptActive=!1,this.selectedAlgorithmType=c.PRUNING,this.selectedAlgorithmKey=y.PRUNING_TRAIN}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges(),this.listenToFormChangesToLoadModelMetadata()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(ye(50),N(()=>{let e=this.form.getRawValue();return e.algorithmTypeGroup&&e.algorithmTypeGroup.algorithmType}),Me(),b(e=>!!e),f(this)).subscribe(e=>{this.selectedAlgorithmType=e,this.selectedAlgorithmKey=it[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(ye(50),N(e=>{let t=e.algorithmTypeGroup?.algorithmType,i=e.model?.model;return{algorithmType:t,model:i}}),Me((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(Xe(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:Ne(Fe({},this.panelParametersComponent.parametersFormatted),{arch:t})};this.scriptFacadeService.dispatch(le.callScript({configs:i}))}},S.\u0275fac=function(t){return new(t||S)(p(at),p(L),p(nt),p(V))},S.\u0275cmp=I({type:S,selectors:[["ms-model-training"]],viewQuery:function(t,i){if(t&1&&Ee(Vt,5),t&2){let s;Oe(s=Ge())&&(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=be();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),Te("click",function(){return Ce(s),_e(i.submit())}),l(11," Run "),a(),m(12,"button",8),Te("click",function(){return Ce(s),_e(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:[de,U,fe,k,Ye,ae,qe,ge,ue],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),S);he=F([P()],he);var Ut=[{path:"",component:he}],vt=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[Se.forChild(Ut),Se]});let o=e;return o})();var To=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[J,vt,de,U,fe,se,ze,ce,ne,Ze,oe,me,Je]});let o=e;return o})();export{To as ModelTrainingModule}; diff --git a/frontend/server/modelsmith-build/browser/index.html b/frontend/server/modelsmith-build/browser/index.html index a5418139..eb4cd7e9 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-AZ5EULM7.js b/frontend/server/modelsmith-build/browser/main-AZ5EULM7.js new file mode 100644 index 00000000..3c404301 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/main-AZ5EULM7.js @@ -0,0 +1 @@ +import{b as xr,c as Dr,h as Wr}from"./chunk-7MWYDZ4E.js";import{a as he,b as ge,c as Pr}from"./chunk-ZKC6ZYY5.js";import{a as Mr}from"./chunk-CRARU3EW.js";import{c as Fr}from"./chunk-WDMLGHEL.js";import"./chunk-6USI7MSU.js";import{a as Ir,b as nt,c as rt,d as Hr}from"./chunk-M3BJA4RX.js";import"./chunk-DFEVON6A.js";import{a as Pe}from"./chunk-HHI42NCD.js";import{a as Rr,b as Nr}from"./chunk-YTNKLUWY.js";import"./chunk-A3HRP5BG.js";import"./chunk-VRD7QX3W.js";import{a as _r,b as Tr}from"./chunk-452CEXFK.js";import"./chunk-SWEZDJOL.js";import{a as G,b as oe,c as Vr}from"./chunk-BY5EH3KZ.js";import"./chunk-W5GEUOC3.js";import{g as it}from"./chunk-W4U3FJPJ.js";import{a as Dt,b as Ci,d as Ft,f as kr,g as Lr,h as jr,i as zr,j as se,k as $r,l as Ai,m as Ur,n as Kr,o as Br,q as qr,r as Qr,t as Gr}from"./chunk-KE2JE72J.js";import{a as Ot,b as ur}from"./chunk-COKZMNNS.js";import{a as Qe}from"./chunk-LDDHJMMZ.js";import{g as wr}from"./chunk-RTK5DRKR.js";import{$ as Si,$a as Tt,$b as Jn,$c as tt,Ae as fe,Ba as Ei,Bb as Oe,Be as xt,Ce as me,D as yi,Dc as qe,De as Or,E as Ke,Ea as W,Ec as wi,Ee as Cr,Fa as Ye,Fb as Hn,Fc as Ct,Fe as Ar,G as H,Gb as Wn,Gc as hr,H as Dn,I as Fn,Ia as Gn,J as kn,K as Ln,Ka as Et,Kb as Mt,Kc as bi,Lc as At,Mc as gr,N as jn,Nc as yr,O as zn,Oc as Sr,Pc as Oi,Q as $n,Qa as Me,Qb as Zn,Qc as vr,Rc as Er,S as q,Sa as we,T as vt,Tc as Pt,Vc as et,W as Un,Wc as z,X as C,Xb as Xn,Xc as de,Ya as be,Yc as te,Zc as Ae,_ as x,_a as _t,_b as Yn,_c as ie,a as T,aa as Xe,ab as F,ac as er,ad as P,b as A,bb as k,bc as Ti,bd as It,c as Cn,ca as E,cb as $,cc as tr,d as Co,da as De,dc as ir,e as Ao,ec as nr,fc as rr,ga as Kn,gc as sr,h as gi,ha as _e,hc as or,ia as vi,jb as _i,kc as wt,l as An,la as Bn,lb as ce,lc as Ce,ma as Te,mc as ar,n as Pn,nc as lr,o as In,oc as cr,p as St,pc as bt,q as Rn,qc as w,rc as ue,s as Q,sc as dr,t as Nn,ta as qn,tc as fr,ub as Fe,vb as Vn,vc as mr,ve as br,w as xn,wa as Qn,wb as Je,wc as Be,we as Rt,x as B,xc as Mi,xe as Nt,zc as pr}from"./chunk-I5FNXPEQ.js";var lo=Co((Ed,ao)=>{"use strict";var Fl=function(e){return kl(e)&&!Ll(e)};function kl(n){return!!n&&typeof n=="object"}function Ll(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||$l(n)}var jl=typeof Symbol=="function"&&Symbol.for,zl=jl?Symbol.for("react.element"):60103;function $l(n){return n.$$typeof===zl}function Ul(n){return Array.isArray(n)?[]:{}}function ht(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Ze(Ul(n),n,e):n}function Kl(n,e,t){return n.concat(e).map(function(i){return ht(i,t)})}function Bl(n,e){if(!e.customMerge)return Ze;var t=e.customMerge(n);return typeof t=="function"?t:Ze}function ql(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function so(n){return Object.keys(n).concat(ql(n))}function oo(n,e){try{return e in n}catch{return!1}}function Ql(n,e){return oo(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Gl(n,e,t){var i={};return t.isMergeableObject(n)&&so(n).forEach(function(r){i[r]=ht(n[r],t)}),so(e).forEach(function(r){Ql(n,r)||(oo(n,r)&&t.isMergeableObject(e[r])?i[r]=Bl(r,t)(n[r],e[r],t):i[r]=ht(e[r],t))}),i}function Ze(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Kl,t.isMergeableObject=t.isMergeableObject||Fl,t.cloneUnlessOtherwiseSpecified=ht;var i=Array.isArray(e),r=Array.isArray(n),s=i===r;return s?i?t.arrayMerge(n,e,t):Gl(n,e,t):ht(e,t)}Ze.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return Ze(i,r,t)},{})};var Vl=Ze;ao.exports=Vl});var ye,kt=(ye=class{constructor(){this.title="modelsmith"}ngOnInit(){}},ye.\u0275fac=function(t){return new(t||ye)},ye.\u0275cmp=_e({type:ye,selectors:[["app-root"]],standalone:!0,features:[Oe],decls:1,vars:0,template:function(t,i){t&1&&$(0,"router-outlet")},dependencies:[wt]}),ye);kt=St([Ot()],kt);function Zr(n){return new C(3e3,!1)}function Po(){return new C(3100,!1)}function Io(){return new C(3101,!1)}function Ro(n){return new C(3001,!1)}function No(n){return new C(3003,!1)}function xo(n){return new C(3004,!1)}function Do(n,e){return new C(3005,!1)}function Fo(){return new C(3006,!1)}function ko(){return new C(3007,!1)}function Lo(n,e){return new C(3008,!1)}function jo(n){return new C(3002,!1)}function zo(n,e,t,i,r){return new C(3010,!1)}function $o(){return new C(3011,!1)}function Uo(){return new C(3012,!1)}function Ko(){return new C(3200,!1)}function Bo(){return new C(3202,!1)}function qo(){return new C(3013,!1)}function Qo(n){return new C(3014,!1)}function Go(n){return new C(3015,!1)}function Vo(n){return new C(3016,!1)}function Ho(n,e){return new C(3404,!1)}function Wo(n){return new C(3502,!1)}function Zo(n){return new C(3503,!1)}function Xo(){return new C(3300,!1)}function Yo(n){return new C(3504,!1)}function Jo(n){return new C(3301,!1)}function ea(n,e){return new C(3302,!1)}function ta(n){return new C(3303,!1)}function ia(n,e){return new C(3400,!1)}function na(n){return new C(3401,!1)}function ra(n){return new C(3402,!1)}function sa(n,e){return new C(3505,!1)}function Ie(n){switch(n.length){case 0:return new qe;case 1:return n[0];default:return new wi(n)}}function us(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((p,g)=>{let f=g,m=p;if(g!=="offset")switch(f=n.normalizePropertyName(f,r),m){case Ct:m=t.get(g);break;case ue:m=i.get(g);break;default:m=n.normalizeStyleValue(g,f,m,r);break}u.set(f,m)}),d||s.push(u),a=u,o=c}),r.length)throw Wo(r);return s}function Xi(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Pi(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Pi(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Pi(t,"destroy",n)));break}}function Pi(n,e,t){let i=t.totalTime,r=!!t.disabled,s=Yi(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function Yi(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function J(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function Xr(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var oa=typeof document>"u"?null:document.documentElement;function Ji(n){let e=n.parentNode||n.host||null;return e===oa?null:e}function aa(n){return n.substring(1,6)=="ebkit"}var ke=null,Yr=!1;function la(n){ke||(ke=ca()||{},Yr=ke.style?"WebkitAppearance"in ke.style:!1);let e=!0;return ke.style&&!aa(n)&&(e=n in ke.style,!e&&Yr&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ke.style)),e}function ca(){return typeof document<"u"?document.body:null}function ds(n,e){for(;e;){if(e===n)return!0;e=Ji(e)}return!1}function fs(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var en=(()=>{let e=class e{validateStyleProperty(i){return la(i)}containsElement(i,r){return ds(i,r)}getParentElement(i){return Ji(i)}query(i,r,s){return fs(i,r,s)}computeStyle(i,r,s){return s||""}animate(i,r,s,o,a,l=[],c){return new qe(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),sn=class sn{};sn.NOOP=new en;var ze=sn,$e=class{};var ua=1e3,ms="{{",da="}}",ps="ng-enter",Fi="ng-leave",Lt="ng-trigger",Kt=".ng-trigger",Jr="ng-animating",ki=".ng-animating";function Se(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Li(parseFloat(e[1]),e[2])}function Li(n,e){switch(e){case"s":return n*ua;default:return n}}function Bt(n,e,t){return n.hasOwnProperty("duration")?n:fa(n,e,t)}function fa(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(Zr(n)),{duration:0,delay:0,easing:""};r=Li(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Li(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Po()),a=!0),s<0&&(e.push(Io()),a=!0),a&&e.splice(l,0,Zr(n))}return{duration:r,delay:s,easing:o}}function ma(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function pe(n,e,t){e.forEach((i,r)=>{let s=tn(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function je(n,e){e.forEach((t,i)=>{let r=tn(i);n.style[r]=""})}function st(n){return Array.isArray(n)?n.length==1?n[0]:mr(n):n}function pa(n,e,t){let i=e.params||{},r=hs(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(Ro(s))})}var ji=new RegExp(`${ms}\\s*(.+?)\\s*${da}`,"g");function hs(n){let e=[];if(typeof n=="string"){let t;for(;t=ji.exec(n);)e.push(t[1]);ji.lastIndex=0}return e}function at(n,e,t){let i=`${n}`,r=i.replace(ji,(s,o)=>{let a=e[o];return a==null&&(t.push(No(o)),a=""),a.toString()});return r==i?n:r}var ha=/-+([a-z0-9])/g;function tn(n){return n.replace(ha,(...e)=>e[1].toUpperCase())}function ga(n,e){return n===0||e===0}function ya(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;so.set(a,nn(n,a)))}}return e}function Y(n,e,t){switch(e.type){case w.Trigger:return n.visitTrigger(e,t);case w.State:return n.visitState(e,t);case w.Transition:return n.visitTransition(e,t);case w.Sequence:return n.visitSequence(e,t);case w.Group:return n.visitGroup(e,t);case w.Animate:return n.visitAnimate(e,t);case w.Keyframes:return n.visitKeyframes(e,t);case w.Style:return n.visitStyle(e,t);case w.Reference:return n.visitReference(e,t);case w.AnimateChild:return n.visitAnimateChild(e,t);case w.AnimateRef:return n.visitAnimateRef(e,t);case w.Query:return n.visitQuery(e,t);case w.Stagger:return n.visitStagger(e,t);default:throw xo(e.type)}}function nn(n,e){return window.getComputedStyle(n)[e]}var Sa=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"]),qt=class extends $e{normalizePropertyName(e,t){return tn(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(Sa.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Do(e,i))}return o+s}};var Qt="*";function va(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>Ea(i,t,e)):t.push(n),t}function Ea(n,e,t){if(n[0]==":"){let l=_a(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Go(n)),e;let r=i[1],s=i[2],o=i[3];e.push(es(r,o));let a=r==Qt&&o==Qt;s[0]=="<"&&!a&&e.push(es(o,r))}function _a(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var jt=new Set(["true","1"]),zt=new Set(["false","0"]);function es(n,e){let t=jt.has(n)||zt.has(n),i=jt.has(e)||zt.has(e);return(r,s)=>{let o=n==Qt||n==r,a=e==Qt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?jt.has(n):zt.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?jt.has(e):zt.has(e)),o&&a}}var gs=":self",Ta=new RegExp(`s*${gs}s*,?`,"g");function ys(n,e,t,i){return new zi(n).build(e,t,i)}var ts="",zi=class{constructor(e){this._driver=e}build(e,t,i){let r=new $i(t);return this._resetContextStyleTimingState(r),Y(this,st(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=ts,e.collectedStyles=new Map,e.collectedStyles.set(ts,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Fo()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==w.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==w.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(ko())}),{type:w.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{hs(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(Lo(e.name,[...s.values()]))}return{type:w.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Y(this,st(e.animation),t),r=va(e.expr,t.errors);return{type:w.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Le(e.options)}}visitSequence(e,t){return{type:w.Sequence,steps:e.steps.map(i=>Y(this,i,t)),options:Le(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=Y(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:w.Group,steps:s,options:Le(e.options)}}visitAnimate(e,t){let i=Oa(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Be({});if(s.type==w.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=Be(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:w.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===ue?i.push(a):t.errors.push(jo(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(ms)>=0){s=!0;break}}}),{type:w.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(zo(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&pa(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:w.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push($o()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(b=>{let I=this._makeStyleAst(b,t),j=I.offset!=null?I.offset:ba(I.styles),v=0;return j!=null&&(s++,v=I.offset=j),l=l||v<0||v>1,a=a||v0&&s{let j=p>0?I==g?1:p*I:o[I],v=j*M;t.currentTime=f+m.delay+v,m.duration=v,this._validateStyleAst(b,t),b.offset=j,i.styles.push(b)}),i}visitReference(e,t){return{type:w.Reference,animation:Y(this,st(e.animation),t),options:Le(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:w.AnimateChild,options:Le(e.options)}}visitAnimateRef(e,t){return{type:w.AnimateRef,animation:this.visitReference(e.animation,t),options:Le(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Ma(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,J(t.collectedStyles,t.currentQuerySelector,new Map);let a=Y(this,st(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:w.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Le(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(qo());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Bt(e.timings,t.errors,!0);return{type:w.Stagger,animation:Y(this,st(e.animation),t),timings:i,options:null}}};function Ma(n){let e=!!n.split(/\s*,\s*/).find(t=>t==gs);return e&&(n=n.replace(Ta,"")),n=n.replace(/@\*/g,Kt).replace(/@\w+/g,t=>Kt+"-"+t.slice(1)).replace(/:animating/g,ki),[n,e]}function wa(n){return n?T({},n):null}var $i=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 ba(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Oa(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Bt(n,e).duration;return Ii(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ii(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Bt(t,e);return Ii(r.duration,r.delay,r.easing)}function Le(n){return n?(n=T({},n),n.params&&(n.params=wa(n.params))):n={},n}function Ii(n,e,t){return{duration:n,delay:e,easing:t}}function rn(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var lt=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ca=1,Aa=":enter",Pa=new RegExp(Aa,"g"),Ia=":leave",Ra=new RegExp(Ia,"g");function Ss(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new Ui().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var Ui=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new lt;let u=new Ki(e,t,c,r,s,d,[]);u.options=l;let p=l.delay?Se(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),Y(this,i,u);let g=u.timelines.filter(f=>f.containsAnimation());if(g.length&&a.size){let f;for(let m=g.length-1;m>=0;m--){let M=g[m];if(M.element===t){f=M;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return g.length?g.map(f=>f.buildKeyframes()):[rn(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Se(at(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?Se(i.duration):null,a=i.delay!=null?Se(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Y(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==w.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Gt);let o=Se(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Y(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?Se(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),Y(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?at(i,t.params,t.errors):i;return Bt(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==w.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Se(r.delay):0;s&&(t.previousNode.type===w.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Gt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),Y(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 i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;Y(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},Gt={},Ki=class n{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Vt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=Se(i.duration)),i.delay!=null&&(r.delay=Se(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=at(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Gt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new Bi(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Pa,"."+this._enterClassName),e=e.replace(Ra,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(Qo(t)),a}},Vt=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ca,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||ue),this._currentKeyframe.set(t,ue);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=Na(e,this._globalTimelineStyles);for(let[a,l]of o){let c=at(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ue),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,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Ct?e.add(u):d===ue&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return rn(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Bi=class extends Vt{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,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:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",is(a)),s.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let p=new Map(e[u]),g=p.get("offset"),f=t+g*i;p.set("offset",is(f/o)),s.push(p)}i=o,t=0,r="",e=s}return rn(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function is(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Na(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,ue)}else for(let[s,o]of r)t.set(s,o)}),t}function ns(n,e,t,i,r,s,o,a,l,c,d,u,p){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:p}}var Ri={},Ht=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return xa(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,d){let u=[],p=this.ast.options&&this.ast.options.params||Ri,g=a&&a.params||Ri,f=this.buildStyles(i,g,u),m=l&&l.params||Ri,M=this.buildStyles(r,m,u),b=new Set,I=new Map,j=new Map,v=r==="void",R={params:vs(m,p),delay:this.ast.options?.delay},_=d?[]:Ss(e,t,this.ast.animation,s,o,f,M,R,c,u),D=0;return _.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),u.length?ns(t,this._triggerName,i,r,v,f,M,[],[],I,j,D,u):(_.forEach(N=>{let re=N.element,Ue=J(I,re,new Set);N.preStyleProps.forEach(Ne=>Ue.add(Ne));let Mn=J(j,re,new Set);N.postStyleProps.forEach(Ne=>Mn.add(Ne)),re!==t&&b.add(re)}),ns(t,this._triggerName,i,r,v,f,M,_,[...b.values()],I,j,D))}};function xa(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function vs(n,e){let t=T({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var qi=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=vs(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=at(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Da(n,e,t){return new Qi(n,e,t)}var Qi=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new qi(r.style,s,i))}),rs(this.states,"true","1"),rs(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ht(e,r,this.states))}),this.fallbackTransition=Fa(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Fa(n,e,t){let i=[(o,a)=>!0],r={type:w.Sequence,steps:[],options:null},s={type:w.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ht(n,s,e)}function rs(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ka=new lt,Gi=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],s=ys(this._driver,t,i,r);if(i.length)throw Zo(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=us(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Ss(this._driver,t,s,ps,Fi,new Map,new Map,i,ka,r),o.forEach(d=>{let u=J(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(Xo()),o=[]),r.length)throw Yo(r);a.forEach((d,u)=>{d.forEach((p,g)=>{d.set(g,this._driver.computeStyle(u,g,ue))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Ie(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 i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Jo(e);return t}listen(e,t,i,r){let s=Yi(t,"","","");return Xi(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},ss="ng-animate-queued",La=".ng-animate-queued",Ni="ng-animate-disabled",ja=".ng-animate-disabled",za="ng-star-inserted",$a=".ng-star-inserted",Ua=[],Es={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ka={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ae="__ng_removed",ct=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=qa(r),i){let s=e,{value:o}=s,a=Cn(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},ot="void",xi=new ct(ot),Vi=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ne(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw ea(i,t);if(i==null||i.length==0)throw ta(t);if(!Qa(i))throw ia(i,t);let s=J(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=J(this._engine.statesByElement,e,new Map);return a.has(t)||(ne(e,Lt),ne(e,Lt+"-"+t),a.set(t,xi)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.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 na(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new ut(this.id,t,e),a=this._engine.statesByElement.get(e);a||(ne(e,Lt),ne(e,Lt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ct(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=xi),!(c.value===ot)&&l.value===c.value){if(!Ha(l.params,c.params)){let m=[],M=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{je(e,M),pe(e,b)})}return}let p=J(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let g=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!g){if(!r)return;g=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(ne(e,ss),o.onStart(()=>{Ge(e,ss)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let M=this._engine.playersByElement.get(e);if(M){let b=M.indexOf(o);b>=0&&M.splice(b,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,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Kt,!0);i.forEach(r=>{if(r[ae])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ot,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Ie(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||xi,d=new ct(ot),u=new ut(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[ae];(!s||s===Es)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){ne(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Yi(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Xi(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Hi=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Vi(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if($t(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!$t(t))return;let s=t[ae];if(s&&s.setForRemoval){s.setForRemoval=!1,s.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,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ne(e,Ni)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ge(e,Ni))}removeNode(e,t,i){if($t(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[ae]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return $t(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Kt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ki,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ie(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ae];if(t&&t.setForRemoval){if(e[ae]=Es,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ni)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ja,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ie(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw ra(e)}_flushAnimations(e,t){let i=new lt,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let y=this.driver.query(h,La,!0);for(let S=0;S{let S=ps+m++;f.set(y,S),h.forEach(O=>ne(O,S))});let M=[],b=new Set,I=new Set;for(let h=0;hb.add(O)):I.add(y))}let j=new Map,v=ls(p,Array.from(b));v.forEach((h,y)=>{let S=Fi+m++;j.set(y,S),h.forEach(O=>ne(O,S))}),e.push(()=>{g.forEach((h,y)=>{let S=f.get(y);h.forEach(O=>Ge(O,S))}),v.forEach((h,y)=>{let S=j.get(y);h.forEach(O=>Ge(O,S))}),M.forEach(h=>{this.processLeaveNode(h)})});let R=[],_=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(S=>{let O=S.player,K=S.element;if(R.push(O),this.collectedEnterElements.length){let V=K[ae];if(V&&V.setForMove){if(V.previousTriggersValues&&V.previousTriggersValues.has(S.triggerName)){let xe=V.previousTriggersValues.get(S.triggerName),ee=this.statesByElement.get(S.element);if(ee&&ee.has(S.triggerName)){let yt=ee.get(S.triggerName);yt.value=xe,ee.set(S.triggerName,yt)}}O.destroy();return}}let le=!u||!this.driver.containsElement(u,K),X=j.get(K),Ee=f.get(K),L=this._buildInstruction(S,i,Ee,X,le);if(L.errors&&L.errors.length){_.push(L);return}if(le){O.onStart(()=>je(K,L.fromStyles)),O.onDestroy(()=>pe(K,L.toStyles)),r.push(O);return}if(S.isFallbackTransition){O.onStart(()=>je(K,L.fromStyles)),O.onDestroy(()=>pe(K,L.toStyles)),r.push(O);return}let On=[];L.timelines.forEach(V=>{V.stretchStartingKeyframe=!0,this.disabledNodes.has(V.element)||On.push(V)}),L.timelines=On,i.append(K,L.timelines);let Oo={instruction:L,player:O,element:K};o.push(Oo),L.queriedElements.forEach(V=>J(a,V,[]).push(O)),L.preStyleProps.forEach((V,xe)=>{if(V.size){let ee=l.get(xe);ee||l.set(xe,ee=new Set),V.forEach((yt,hi)=>ee.add(hi))}}),L.postStyleProps.forEach((V,xe)=>{let ee=c.get(xe);ee||c.set(xe,ee=new Set),V.forEach((yt,hi)=>ee.add(hi))})});if(_.length){let h=[];_.forEach(y=>{h.push(sa(y.triggerName,y.errors))}),R.forEach(y=>y.destroy()),this.reportError(h)}let D=new Map,N=new Map;o.forEach(h=>{let y=h.element;i.has(y)&&(N.set(y,y),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,D))}),r.forEach(h=>{let y=h.element;this._getPreviousPlayers(y,!1,h.namespaceId,h.triggerName,null).forEach(O=>{J(D,y,[]).push(O),O.destroy()})});let re=M.filter(h=>cs(h,l,c)),Ue=new Map;as(Ue,this.driver,I,c,ue).forEach(h=>{cs(h,l,c)&&re.push(h)});let Ne=new Map;g.forEach((h,y)=>{as(Ne,this.driver,new Set(h),l,Ct)}),re.forEach(h=>{let y=Ue.get(h),S=Ne.get(h);Ue.set(h,new Map([...y?.entries()??[],...S?.entries()??[]]))});let pi=[],wn=[],bn={};o.forEach(h=>{let{element:y,player:S,instruction:O}=h;if(i.has(y)){if(d.has(y)){S.onDestroy(()=>pe(y,O.toStyles)),S.disabled=!0,S.overrideTotalTime(O.totalTime),r.push(S);return}let K=bn;if(N.size>1){let X=y,Ee=[];for(;X=X.parentNode;){let L=N.get(X);if(L){K=L;break}Ee.push(X)}Ee.forEach(L=>N.set(L,K))}let le=this._buildAnimation(S.namespaceId,O,D,s,Ne,Ue);if(S.setRealPlayer(le),K===bn)pi.push(S);else{let X=this.playersByElement.get(K);X&&X.length&&(S.parentPlayer=Ie(X)),r.push(S)}}else je(y,O.fromStyles),S.onDestroy(()=>pe(y,O.toStyles)),wn.push(S),d.has(y)&&r.push(S)}),wn.forEach(h=>{let y=s.get(h.element);if(y&&y.length){let S=Ie(y);h.setRealPlayer(S)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h!le.destroyed);K.length?Ga(this,y,K):this.processLeaveNode(y)}return M.length=0,pi.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let y=this.players.indexOf(h);this.players.splice(y,1)}),h.play()}),pi}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==ot;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,u=J(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(g=>{let f=g.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),g.destroy(),u.push(g)})}je(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,p=t.timelines.map(f=>{let m=f.element;d.add(m);let M=m[ae];if(M&&M.removedBeforeQueried)return new qe(f.duration,f.delay);let b=m!==l,I=Va((i.get(m)||Ua).map(D=>D.getRealPlayer())).filter(D=>{let N=D;return N.element?N.element===m:!1}),j=s.get(m),v=o.get(m),R=us(this._normalizer,f.keyframes,j,v),_=this._buildPlayer(f,R,I);if(f.subTimeline&&r&&u.add(m),b){let D=new ut(e,a,m);D.setRealPlayer(_),c.push(D)}return _});c.forEach(f=>{J(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ba(this.playersByQueriedElement,f.element,f))}),d.forEach(f=>ne(f,Jr));let g=Ie(p);return g.onDestroy(()=>{d.forEach(f=>Ge(f,Jr)),pe(l,t.toStyles)}),u.forEach(f=>{J(r,f,[]).push(g)}),g}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new qe(e.duration,e.delay)}},ut=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new qe,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,i)=>{t.forEach(r=>Xi(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){J(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 Ba(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function qa(n){return n??null}function $t(n){return n&&n.nodeType===1}function Qa(n){return n=="start"||n=="done"}function os(n,e){let t=n.style.display;return n.style.display=e??"none",t}function as(n,e,t,i,r){let s=[];t.forEach(l=>s.push(os(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,r);d.set(u,p),(!p||p.length==0)&&(c[ae]=Ka,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>os(l,s[a++])),o}function ls(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function ne(n,e){n.classList?.add(e)}function Ge(n,e){n.classList?.remove(e)}function Ga(n,e,t){Ie(t).onDone(()=>n.processLeaveNode(e))}function Va(n){let e=[];return _s(n,e),e}function _s(n,e){for(let t=0;tr.add(s)):e.set(n,i),t.delete(n),!0}var He=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Hi(e.body,t,i),this._timelineEngine=new Gi(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=ys(this._driver,s,l,c);if(l.length)throw Ho(r,l);c.length&&void 0,a=Da(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=Xr(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=Xr(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}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 Wa(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Di(e[0]),e.length>1&&(i=Di(e[e.length-1]))):e instanceof Map&&(t=Di(e)),t||i?new Wi(n,t,i):null}var Ve=class Ve{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=Ve.initialStylesByElement.get(e);r||Ve.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&pe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(pe(this._element,this._initialStyles),this._endStyles&&(pe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ve.initialStylesByElement.delete(this._element),this._startStyles&&(je(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(je(this._element,this._endStyles),this._endStyles=null),pe(this._element,this._initialStyles),this._state=3)}};Ve.initialStylesByElement=new WeakMap;var Wi=Ve;function Di(n){let e=null;return n.forEach((t,i)=>{Za(i)&&(e=e||new Map,e.set(i,t))}),e}function Za(n){return n==="display"||n==="position"}var Wt=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.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(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:nn(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Zt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return ds(e,t)}getParentElement(e){return Ji(e)}query(e,t,i){return fs(e,t,i)}computeStyle(e,t,i){return nn(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(g=>g instanceof Wt);ga(i,r)&&d.forEach(g=>{g.currentSnapshot.forEach((f,m)=>c.set(m,f))});let u=ma(t).map(g=>new Map(g));u=ya(e,u,c);let p=Wa(e,u);return new Wt(e,u,l,p)}};var Ut="@",Ts="@.disabled",Xt=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){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,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Ut&&t==Ts?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Zi=class extends Xt{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Ut?t.charAt(1)=="."&&t==Ts?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Ut){let r=Xa(e),s=t.slice(1),o="";return s.charAt(0)!=Ut&&([s,o]=Ya(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function Xa(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ya(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Yt=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new Xt(i,r,this.engine,u),c.set(r,d)}return d}let s=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(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Zi(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}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 el=(()=>{let e=class e extends He{constructor(i,r,s){super(i,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(E(Zn),E(ze),E($e))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function tl(){return new qt}function il(n,e,t){return new Yt(n,e,t)}var ws=[{provide:$e,useFactory:tl},{provide:He,useClass:el},{provide:Gn,useFactory:il,deps:[nr,He,Et]}],Ms=[{provide:ze,useFactory:()=>new Zt},{provide:Ei,useValue:"BrowserAnimations"},...ws],nl=[{provide:ze,useClass:en},{provide:Ei,useValue:"NoopAnimations"},...ws],bs=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?nl:Ms}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=vi({type:e}),e.\u0275inj=Si({providers:Ms,imports:[sr]});let n=e;return n})();var Re=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 i=this.getItem(e);return i?this.getNestedProperty(i,t):null}static removeItem(e){localStorage.removeItem(e)}static clear(){localStorage.clear()}static getNestedProperty(e,t){if(!t)return e;let i=t.split(".");for(let r=0;r{let e=class e{constructor(i){this.router=i}canActivate(){return Re.getNestedItem(U.CORE.ROOT,`${U.AUTH.ROOT}.${U.AUTH.USER.ROOT}.${U.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${P.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(r){return new(r||e)(E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var Jt=(()=>{let e=class e{constructor(i,r){this.router=i,this.configFacadeService=r}canActivate(){let i=Re.getNestedItem(U.CORE.ROOT,`${U.CONFIGS.ROOT}.${U.CONFIGS.DEFAULT_MODE}`);return i&&(i===ge.GUIDED?(this.router.navigate([`/${P.WIZARD.ROOT}`]),this.configFacadeService.dispatch(he.setCurrentMode({mode:ge.GUIDED}))):(this.router.navigate([`/${P.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(he.setCurrentMode({mode:ge.EXPERT})))),!0}};e.\u0275fac=function(r){return new(r||e)(E(Ce),E(Qe))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var ei=(()=>{let e=class e{constructor(i){this.router=i}canActivate(){return Re.getNestedItem(U.CORE.ROOT,`${U.AUTH.ROOT}.${U.AUTH.USER.ROOT}.${U.AUTH.USER.JWT}`)?(this.router.navigate([`/${P.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(r){return new(r||e)(E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function ol(n,e){if(n&1&&(F(0,"div")(1,"div",5),Fe(2),k()()),n&2){let t=ce();W(2),Je(" ",t.item.label," ")}}function al(n,e){n&1&&(F(0,"div"),$(1,"ms-spining-indicator"),k())}function ll(n,e){if(n&1&&Me(0,al,2,0,"div"),n&2){let t=ce();be(t.isExpanded&&e===(t.item==null?null:t.item.key)?0:-1)}}var Os=(()=>{let e=class e{constructor(i){this.pageRunningScriptSpiningIndicatorService=i,this.itemStyle="accent",this.isExpanded=!0}};e.\u0275fac=function(r){return new(r||e)(Ye(rt))},e.\u0275cmp=_e({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},standalone:!0,features:[Oe],decls:8,vars:6,consts:[["routerLinkActive","active-route",1,"sidenav-item",3,"routerLink"],[1,"left-side"],[1,"item-icon"],["fontSet","ms",3,"fontIcon"],[1,"right-side"],[1,"item-label","paragraph-semibold-p3-small-emphasis"]],template:function(r,s){if(r&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),$(3,"mat-icon",3),k(),Me(4,ol,3,1,"div"),k(),F(5,"div",4),Me(6,ll,1,1),Hn(7,"async"),k()()),r&2){let o;we("routerLink",s.item.route),W(3),we("fontIcon",s.item.icon),W(),be(s.isExpanded?4:-1),W(2),be((o=Wn(7,4,s.pageRunningScriptSpiningIndicatorService.currentRunningPage$))?6:-1,o)}},dependencies:[Yn,Xn,Nt,Rt,Ir,bt,ar,lr],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 n=e;return n})();var cl=[{route:"admin",label:"Admin",icon:"icon-Admin"}],ul=[{route:P.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],dl=[{route:P.MODEL_COMPRESSION.ROOT,label:"Model Compression",icon:"icon-GearSix",key:nt.MODEL_COMPRESSION},{route:P.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:nt.MACHINE_UNLEARNING},{route:P.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:nt.AWQ},{route:P.MULTI_MODAL.ROOT,label:"Multi-modal",icon:"icon-Environmental",key:nt.MODEL_SPECIALIZATION},{route:P.MODEL_SPECIALIZATION.ROOT,label:"Model Specialization",icon:"icon-MapTrifold"},{route:P.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],Cs={guided:ul,expert:dl,common:cl};var on=(n,e)=>e.route;function fl(n,e){if(n&1&&(F(0,"div",5)(1,"div",13),Fe(2),k(),F(3,"div",14),Fe(4),$(5,"mat-icon",15),k()()),n&2){let t=ce();W(2),Je(" ",t.currentMode===t.Modes.GUIDED?"Guided mode":"Expert mode"," "),W(2),Je(" ",t.currentMode===t.Modes.GUIDED?"Switch to expert mode":"Switch to guided mode"," ")}}function ml(n,e){if(n&1&&(F(0,"div",8),$(1,"ms-sidenav-item",16),k()),n&2){let t=e.$implicit,i=ce(2);W(),we("item",t)("isExpanded",i.isExpanded)}}function pl(n,e){if(n&1&&_t(0,ml,2,2,"div",8,on),n&2){let t=ce();Tt(t.SidenavConstants.guided)}}function hl(n,e){if(n&1&&(F(0,"div",8),$(1,"ms-sidenav-item",16),k()),n&2){let t=e.$implicit,i=ce(2);W(),we("item",t)("isExpanded",i.isExpanded)}}function gl(n,e){if(n&1&&_t(0,hl,2,2,"div",8,on),n&2){let t=ce();Tt(t.SidenavConstants.expert)}}function yl(n,e){if(n&1&&(F(0,"div",8),$(1,"ms-sidenav-item",17),k()),n&2){let t=e.$implicit,i=ce();W(),we("item",t)("isExpanded",i.isExpanded)}}function Sl(n,e){n&1&&(F(0,"span",12),Fe(1,"Collapse"),k())}var ve,ti=(ve=class{constructor(e,t){this.router=e,this.configFacadeService=t,this.SidenavConstants=Cs,this.Modes=ge,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(ur(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===ge.GUIDED?(this.router.navigate([`/${P.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(he.setCurrentMode({mode:ge.EXPERT}))):(this.router.navigate([`/${P.WIZARD.ROOT}`]),this.configFacadeService.dispatch(he.setCurrentMode({mode:ge.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}},ve.\u0275fac=function(t){return new(t||ve)(Ye(Ce),Ye(Qe))},ve.\u0275cmp=_e({type:ve,selectors:[["ms-sidenav"]],standalone:!0,features:[Oe],decls:21,vars:5,consts:[[1,"sidenav-wrapper"],[1,"top-section-items"],[1,"switch",3,"click"],[1,"left"],["fontSet","ms","fontIcon","icon-User"],[1,"right"],[1,"mt-3"],[1,"mt-5"],[1,"sidenav-items-wrapper"],[1,"mt-2","mb-4"],[1,"bottom-section-items"],[1,"sidebar-toggle",3,"click"],[1,"paragraph-semibold-p3-small-emphasis"],[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"],["itemStyle","grey",3,"item","isExpanded"],["itemStyle","accent",3,"item","isExpanded"]],template:function(t,i){t&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),_i("click",function(){return i.toggleMode()}),F(3,"div",3),$(4,"mat-icon",4),k(),Me(5,fl,6,2,"div",5),k(),F(6,"div",6),$(7,"mat-divider"),k(),Me(8,pl,2,0)(9,gl,2,0),F(10,"div",7),$(11,"mat-divider"),k(),_t(12,yl,2,2,"div",8,on),k(),F(14,"div",9),$(15,"mat-divider"),k(),F(16,"div",10)(17,"div",11),_i("click",function(){return i.toggleSidebar()}),F(18,"mat-icon"),Fe(19),k(),Me(20,Sl,2,0,"span",12),k()()()),t&2&&(we("@expandCollapse",i.isExpanded?"expanded":"collapsed"),W(5),be(i.isExpanded?5:-1),W(3),be(i.currentMode===i.Modes.GUIDED?8:9),W(4),Tt(i.SidenavConstants.common),W(7),Vn(i.isExpanded?"chevron_left":"chevron_right"),W(),be(i.isExpanded?20:-1))},dependencies:[Os,Nt,Rt,Tr,_r],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:[dr("expandCollapse",[Mi("expanded",Be({width:"230px"})),Mi("collapsed",Be({width:"40px"})),pr("expanded <=> collapsed",fr("300ms ease-in-out"))])]}}),ve);ti=St([Ot()],ti);var As=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=_e({type:e,selectors:[["ms-main-layout"]],standalone:!0,features:[Oe],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(r,s){r&1&&(F(0,"div",0),$(1,"ms-header"),F(2,"div",1),$(3,"ms-sidenav"),F(4,"div",2)(5,"div",3),$(6,"router-outlet"),k(),F(7,"div",4),$(8,"ms-footer",5),k()()()())},dependencies:[Mr,Pr,ti,bt,wt],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 n=e;return n})();var Ps={records:Dr};var Is=[{path:P.AUTH.ROOT,loadChildren:()=>import("./chunk-BYA6346Q.js").then(n=>n.AuthModule),canActivate:[ei]},{path:P.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-AQCNYKBR.js").then(n=>n.ModeSelectModule),canActivate:[ft,Jt]},{path:P.DEMO.ROOT,loadChildren:()=>import("./chunk-ZBNB4MEN.js").then(n=>n.DemoModule)},{path:"",pathMatch:"full",redirectTo:P.AUTH.ROOT},{path:"",component:As,canActivate:[ft],children:[{path:"",redirectTo:P.WIZARD.ROOT,pathMatch:"full"},{path:P.WIZARD.ROOT,loadChildren:()=>import("./chunk-GG2NWTMU.js").then(n=>n.WizardModule)},{path:P.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-BKOEUR5B.js").then(n=>n.ModelCompressionModule)},{path:P.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-6RJJ2MSN.js").then(n=>n.MachineUnlearningModule)},{path:P.AWQ.ROOT,loadChildren:()=>import("./chunk-LNSXTUTD.js").then(n=>n.LlmQuantizationModule)},{path:P.RUNNING.ROOT,loadChildren:()=>import("./chunk-L6S33FTX.js").then(n=>n.RunningModule)},{path:P.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-IFJKZTSR.js").then(n=>n.ModelTrainingModule)},{path:P.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-7RGFGF2N.js").then(n=>n.AlgorithmComparisonModule),providers:[Te(et.forFeature("runRecords",Ps)),Te(tt.forFeature([xr]))]},{path:P.MULTI_MODAL.ROOT,loadChildren:()=>import("./chunk-RU3TG3QQ.js").then(n=>n.MultiModalModule)}]}];function Rs(){return[Gr,ft,Ai,ei,Jt,Ci,Qe,Ar,$r,zr,jr,Ur,Br,Kr,rt,Vr,{provide:Kn,multi:!0,useValue(){let n=De(Ai),e=De(rt),t=De(br),i=De(Ci);n.trackNavigationHistory(),e.trackCurrentRunningPage(),t.registerFontClassAlias("icomoon","ms"),i.dispatch(Dt.fetchScriptStatus())}}]}function Ns(){return[{provide:wr,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:Fr,useValue:{displayDefaultIndicatorType:!0,showError:!1}},{provide:Hr,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}}]}var ii=class{constructor(e){this.httpClient=e}get httpHeaders(){return new Jn}getRequestOptions(e){let t=e.getParams||void 0;return{headers:this.httpHeaders,params:t}}serviceCall(e){return Mt()&&console.log(`serviceCall@Client - ${e.getMethod} - ${e.getUrl}`),Q(e).pipe(q(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(Ln(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}`)}}))}};function xs(){return[{provide:me,useFactory:n=>new ii(n),deps:[er]}]}var vl=(()=>{let e=class e{constructor(i){this.bannerService=i}handleError(i,r){let s=r.error,{error:o}=s;switch(r.status){case 400:case 404:case 500:case 503:this.spawnNotification(o);break;case 504:this.spawnNotification(s);break;default:this.spawnNotification(o);break}return Nn(()=>r)}spawnNotification(i){this.bannerService.showError(i)}};e.\u0275fac=function(r){return new(r||e)(E(Ft))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ds=(()=>{let e=class e{constructor(i){this.errorHandler=i}intercept(i,r){return r.handle(i).pipe(H(s=>this.errorHandler.handleError(i,s)))}};e.\u0275fac=function(r){return new(r||e)(E(vl))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function Fs(){return[{provide:Ti,useClass:Ds,multi:!0},{provide:Ti,useClass:Wr,multi:!0}]}var pt="PERFORM_ACTION",El="REFRESH",Us="RESET",Ks="ROLLBACK",Bs="COMMIT",qs="SWEEP",Qs="TOGGLE_ACTION",_l="SET_ACTIONS_ACTIVE",Gs="JUMP_TO_STATE",Vs="JUMP_TO_ACTION",vn="IMPORT_STATE",Hs="LOCK_CHANGES",Ws="PAUSE_RECORDING",We=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=pt,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},an=class{constructor(){this.type=El}},ln=class{constructor(e){this.timestamp=e,this.type=Us}},cn=class{constructor(e){this.timestamp=e,this.type=Ks}},un=class{constructor(e){this.timestamp=e,this.type=Bs}},dn=class{constructor(){this.type=qs}},fn=class{constructor(e){this.id=e,this.type=Qs}};var mn=class{constructor(e){this.index=e,this.type=Gs}},pn=class{constructor(e){this.actionId=e,this.type=Vs}},hn=class{constructor(e){this.nextLiftedState=e,this.type=vn}},gn=class{constructor(e){this.status=e,this.type=Hs}},yn=class{constructor(e){this.status=e,this.type=Ws}};var oi=new Xe("@ngrx/store-devtools Options"),ks=new Xe("@ngrx/store-devtools Initial Config");function Zs(){return null}var Tl="NgRx Store DevTools";function Ml(n){let e={maxAge:!1,monitor:Zs,actionSanitizer:void 0,stateSanitizer:void 0,name:Tl,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 n=="function"?n():n,i=t.logOnly?{pause:!0,export:!0,test:!0}:!1,r=t.features||i||e.features;r.import===!0&&(r.import="custom");let s=Object.assign({},e,{features:r},t);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function Ls(n,e){return n.filter(t=>e.indexOf(t)<0)}function Xs(n){let{computedStates:e,currentStateIndex:t}=n;if(t>=e.length){let{state:r}=e[e.length-1];return r}let{state:i}=e[t];return i}function mt(n){return new We(n,+Date.now())}function wl(n,e){return Object.keys(e).reduce((t,i)=>{let r=Number(i);return t[r]=Ys(n,e[r],r),t},{})}function Ys(n,e,t){return A(T({},e),{action:n(e.action,t)})}function bl(n,e){return e.map((t,i)=>({state:Js(n,t.state,i),error:t.error}))}function Js(n,e,t){return n(e,t)}function eo(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function Ol(n,e,t,i){let r=[],s={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&En(n.computedStates[l],c,e,t,i)||(s[a]=c,r.push(a),o.push(n.computedStates[l])))}),A(T({},n),{stagedActionIds:r,actionsById:s,computedStates:o})}function En(n,e,t,i,r){let s=t&&!t(n,e.action),o=i&&!e.action.type.match(i.map(l=>js(l)).join("|")),a=r&&e.action.type.match(r.map(l=>js(l)).join("|"));return s||o||a}function js(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function to(n){return{ngZone:n?De(Et):null,connectInZone:n}}var ai=(()=>{let e=class e extends At{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=qn(e)))(s||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),ni={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},Sn=new Xe("@ngrx/store-devtools Redux Devtools Extension"),io=(()=>{let e=class e{constructor(i,r,s){this.config=r,this.dispatcher=s,this.zoneConfig=to(this.config.connectInZone),this.devtoolsExtension=i,this.createActionStreams()}notify(i,r){if(this.devtoolsExtension)if(i.type===pt){if(r.isLocked||r.isPaused)return;let s=Xs(r);if(eo(this.config)&&En(s,i,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?Js(this.config.stateSanitizer,s,r.currentStateIndex):s,a=this.config.actionSanitizer?Ys(this.config.actionSanitizer,i,r.nextActionId):i;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let s=A(T({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?wl(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?bl(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,s,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new gi(i=>{let r=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=r,r.init(),r.subscribe(s=>i.next(s)),r.unsubscribe}):In}createActionStreams(){let i=this.createChangesObservable().pipe(zn()),r=i.pipe(Ke(d=>d.type===ni.START)),s=i.pipe(Ke(d=>d.type===ni.STOP)),o=i.pipe(Ke(d=>d.type===ni.DISPATCH),B(d=>this.unwrapAction(d.payload)),Dn(d=>d.type===vn?this.dispatcher.pipe(Ke(u=>u.type===Oi),xn(1e3),Fn(1e3),B(()=>d),H(()=>Q(d)),kn(1)):Q(d))),l=i.pipe(Ke(d=>d.type===ni.ACTION),B(d=>this.unwrapAction(d.payload))).pipe(vt(s)),c=o.pipe(vt(s));this.start$=r.pipe(vt(s)),this.actions$=this.start$.pipe(q(()=>l)),this.liftedActions$=this.start$.pipe(q(()=>c))}unwrapAction(i){return typeof i=="string"?(0,eval)(`(${i})`):i}getExtensionConfig(i){let r={name:i.name,features:i.features,serialize:i.serialize,autoPause:i.autoPause??!1,trace:i.trace??!1,traceLimit:i.traceLimit??75};return i.maxAge!==!1&&(r.maxAge=i.maxAge),r}sendToReduxDevtools(i){try{i()}catch(r){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",r)}}};e.\u0275fac=function(r){return new(r||e)(E(Sn),E(oi),E(ai))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),si={type:bi},Cl="@ngrx/store-devtools/recompute",Al={type:Cl};function no(n,e,t,i,r){if(i)return{state:t,error:"Interrupted by an error up the chain"};let s=t,o;try{s=n(t,e)}catch(a){o=a.toString(),r.handleError(a)}return{state:s,error:o}}function ri(n,e,t,i,r,s,o,a,l){if(e>=n.length&&n.length===s.length)return n;let c=n.slice(0,e),d=s.length-(l?1:0);for(let u=e;u-1?f:no(t,g,m,M,a);c.push(I)}return l&&c.push(n[n.length-1]),c}function Pl(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:mt(si)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Il(n,e,t,i,r={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:M,isPaused:b}=o||e;o||(c=Object.create(c));function I(R){let _=R,D=u.slice(1,_+1);for(let N=0;ND.indexOf(N)===-1),u=[0,...u.slice(_+1)],g=m[_].state,m=m.slice(_),f=f>_?f-_:0}function j(){c={0:mt(si)},d=1,u=[0],p=[],g=m[f].state,f=0,m=[]}let v=0;switch(a.type){case Hs:{M=a.status,v=1/0;break}case Ws:{b=a.status,b?(u=[...u,d],c[d]=new We({type:"@ngrx/devtools/pause"},+Date.now()),d++,v=u.length-1,m=m.concat(m[m.length-1]),f===u.length-2&&f++,v=1/0):j();break}case Us:{c={0:mt(si)},d=1,u=[0],p=[],g=n,f=0,m=[];break}case Bs:{j();break}case Ks:{c={0:mt(si)},d=1,u=[0],p=[],f=0,m=[];break}case Qs:{let{id:R}=a;p.indexOf(R)===-1?p=[R,...p]:p=p.filter(D=>D!==R),v=u.indexOf(R);break}case _l:{let{start:R,end:_,active:D}=a,N=[];for(let re=R;re<_;re++)N.push(re);D?p=Ls(p,N):p=[...p,...N],v=u.indexOf(R);break}case Gs:{f=a.index,v=1/0;break}case Vs:{let R=u.indexOf(a.actionId);R!==-1&&(f=R),v=1/0;break}case qs:{u=Ls(u,p),p=[],f=Math.min(f,u.length-1);break}case pt:{if(M)return o||e;if(b||o&&En(o.computedStates[f],a,r.predicate,r.actionsSafelist,r.actionsBlocklist)){let _=m[m.length-1];m=[...m.slice(0,-1),no(s,a.action,_.state,_.error,t)],v=1/0;break}r.maxAge&&u.length===r.maxAge&&I(1),f===u.length-1&&f++;let R=d++;c[R]=a,u=[...u,R],v=u.length-1;break}case vn:{({monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:M,isPaused:b}=a.nextLiftedState);break}case bi:{v=0,r.maxAge&&u.length>r.maxAge&&(m=ri(m,v,s,g,c,u,p,t,b),I(u.length-r.maxAge),v=1/0);break}case Oi:{if(m.filter(_=>_.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=ri(m,v,s,g,c,u,p,t,b),I(u.length-r.maxAge),v=1/0);else{if(!b&&!M){f===u.length-1&&f++;let _=d++;c[_]=new We(a,+Date.now()),u=[...u,_],v=u.length-1,m=ri(m,v,s,g,c,u,p,t,b)}m=m.map(_=>A(T({},_),{state:s(_.state,Al)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&I(u.length-r.maxAge),v=1/0}break}default:{v=1/0;break}}return m=ri(m,v,s,g,c,u,p,t,b),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:M,isPaused:b}}}var zs=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d){let u=Pl(c,d.monitor),p=Il(c,u,l,d.monitor,d),g=yi(yi(r.asObservable().pipe($n(1)),o.actions$).pipe(B(mt)),i,o.liftedActions$).pipe(Rn(Pn)),f=s.pipe(B(p)),m=to(d.connectInZone),M=new An(1);this.liftedStateSubscription=g.pipe(Un(f),$s(m),jn(({state:j},[v,R])=>{let _=R(j,v);return v.type!==pt&&eo(d)&&(_=Ol(_,d.predicate,d.actionsSafelist,d.actionsBlocklist)),o.notify(v,_),{state:_,action:v}},{state:u,action:null})).subscribe(({state:j,action:v})=>{if(M.next(j),v.type===pt){let R=v.action;a.next(R)}}),this.extensionStartSubscription=o.start$.pipe($s(m)).subscribe(()=>{this.refresh()});let b=M.asObservable(),I=b.pipe(B(Xs));Object.defineProperty(I,"state",{value:hr(I,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=i,this.liftedState=b,this.state=I}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(i){this.dispatcher.next(i)}next(i){this.dispatcher.next(i)}error(i){}complete(){}performAction(i){this.dispatch(new We(i,+Date.now()))}refresh(){this.dispatch(new an)}reset(){this.dispatch(new ln(+Date.now()))}rollback(){this.dispatch(new cn(+Date.now()))}commit(){this.dispatch(new un(+Date.now()))}sweep(){this.dispatch(new dn)}toggleAction(i){this.dispatch(new fn(i))}jumpToAction(i){this.dispatch(new pn(i))}jumpToState(i){this.dispatch(new mn(i))}importState(i){this.dispatch(new hn(i))}lockChanges(i){this.dispatch(new gn(i))}pauseRecording(i){this.dispatch(new yn(i))}};e.\u0275fac=function(r){return new(r||e)(E(ai),E(At),E(yr),E(io),E(vr),E(Qn),E(gr),E(oi))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function $s({ngZone:n,connectInZone:e}){return t=>e?new gi(i=>t.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):t}var Rl=new Xe("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Nl(n,e){return!!n||e.monitor!==Zs}function xl(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function ro(n={}){return Bn([io,ai,zs,{provide:ks,useValue:n},{provide:Rl,deps:[Sn,oi],useFactory:Nl},{provide:Sn,useFactory:xl},{provide:oi,deps:[ks],useFactory:Ml},{provide:Er,deps:[zs],useFactory:Dl},{provide:Sr,useExisting:ai}])}function Dl(n){return n.state}var co=Ao(lo(),1);var _n="@ngrx/store/init",Hl="@ngrx/store/update-reducers",Wl=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Zl=(n,e)=>typeof e=="string"&&Wl.test(e)?new Date(e):e,Xl=(n,e)=>e,Yl=()=>typeof window<"u",Jl=n=>n.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}),ec=(n,e,t,i)=>n.reduce((r,s)=>{let o=s,a=i?Zl:Xl,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof s[o]=="function"?a=s[o]:(s[o].reviver&&(a=s[o].reviver),s[o].deserialize&&(l=s[o].deserialize)),s[o].encrypt&&s[o].decrypt?typeof s[o].encrypt=="function"&&typeof s[o].decrypt=="function"?c=s[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${s[o]}' key object.`):(s[o].encrypt||s[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${s[o]}' key object.`)),e!==void 0){let d=e.getItem(t(o));if(d){c&&(d=c(d));let u=new RegExp("{|\\["),p=d;return(d==="null"||d==="true"||d==="false"||u.test(d.charAt(0)))&&(p=JSON.parse(d,a)),Object.assign({},r,{[o]:l?l(p):p})}}return r},{});function uo(n,e){return e.reduce((t,i)=>{if(typeof i=="string"||typeof i=="number"){let r=n?.[i];r!==void 0&&(t[i]=r)}else for(let r in i)if(Object.prototype.hasOwnProperty.call(i,r)){let s=i[r];t[r]=uo(n[r],s)}return t},{})}var tc=(n,e,t,i,r,s)=>{if(s)try{if(s(n)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=n[o],l,c,d;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=n[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=uo(a,p)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(d=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{d&&(a=d(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(i(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"&&r&&t!==void 0)try{t.removeItem(i(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},ic=(n,e,t)=>((t.type===_n||t.type===Hl)&&e&&(n=(0,co.default)(n,e,{arrayMerge:(s,o,a)=>o})),n),fo=n=>e=>{(n.storage===void 0&&!n.checkStorageAvailability||n.checkStorageAvailability&&Yl())&&(n.storage=localStorage||window.localStorage),n.storageKeySerializer===void 0&&(n.storageKeySerializer=s=>s),n.restoreDates===void 0&&(n.restoreDates=!0);let t=n.mergeReducer;(t===void 0||typeof t!="function")&&(t=ic);let i=Jl(n.keys),r=n.rehydrate?ec(i,n.storage,n.storageKeySerializer,n.restoreDates):void 0;return function(s,o){let a;return o.type===_n&&!s?a=e(s,o):a=T({},s),a=t(a,r,o),a=e(a,o),o.type!==_n&&tc(a,i,n.storage,n.storageKeySerializer,n.removeOnUndefined,n.syncCondition),a}};function nc(n){let t={keys:[{[U.CORE.ROOT]:[U.AUTH.ROOT,U.CONFIGS.ROOT,U.SCRIPT.ROOT]}],rehydrate:!0};return fo(t)(n)}var mo=[nc];var rc={defaultMode:void 0,currentMode:void 0},po=de(rc,z(he.setDefaultMode,(n,{mode:e})=>A(T({},n),{defaultMode:e})),z(he.setCurrentMode,(n,{mode:e})=>A(T({},n),{currentMode:e})));var gt=class extends xt{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var ho=(()=>{let e=class e{constructor(i,r,s){this.apiClient=i,this.bannerService=r,this.actions$=s,this.uploadFile$=te(()=>this.actions$.pipe(ie(se.uploadFile),q(o=>this.apiClient.serviceCall(new gt(o.file)).pipe(B(a=>se.uploadFileSuccess({data:a})),H(a=>Q(se.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=te(()=>this.actions$.pipe(ie(se.uploadFileAndCallScript),q(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new gt(o.file)).pipe(q(a=>(this.bannerService.showSuccess("File uploaded successfully."),[se.uploadFileSuccess({data:a}),Dt.callScript({configs:o.configs})])),H(a=>Q(se.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(r){return new(r||e)(E(me),E(Ft),E(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var sc={uploading:!1},go=de(sc,z(se.uploadFile,n=>A(T({},n),{uploading:!0})),z(se.uploadFileSuccess,(n,{data:e})=>A(T({},n),{uploading:!1,uploadedData:e})),z(se.uploadFileFailure,(n,{error:e})=>A(T({},n),{uploading:!1,error:e})));var Yd=Pt(It,({fileState:n})=>n.uploading),Jd=Pt(It,({fileState:n})=>n.uploadedData),ef=Pt(It,({fileState:n})=>n.error);var oc={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},yo=de(oc,z(G.getModelsListSuccess,(n,{algorithmType:e,models:t})=>{switch(e){case it.QUANTIZATION:return A(T({},n),{quantizationModels:t,error:void 0});case it.PRUNING:return A(T({},n),{pruningModels:t,error:void 0});case it.MACHINE_UNLEARNING:return A(T({},n),{machineUnlearningModels:t,error:void 0});case it.AWQ:return A(T({},n),{awqModels:t,error:void 0});default:return n}}),z(G.getModelsListFailure,(n,{error:e})=>A(T({},n),{error:e})),z(G.getCurrentOrPreviousSelectedModelSuccess,(n,{model:e})=>A(T({},n),{currentModel:e})),z(G.getCurrentOrPreviousSelectedModelFailure,(n,{error:e})=>A(T({},n),{error:e})),z(G.getModelMetadataSuccess,(n,{metadata:e})=>A(T({},n),{modelMetadata:e,error:void 0})),z(G.getModelMetadataFailure,(n,{error:e})=>A(T({},n),{modelMetadata:{},error:e})));var li=class extends fe{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var So=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadParameters$=te(()=>this.actions$.pipe(ie(Pe.loadParameters),q(({arg:s})=>this.apiClient.serviceCall(new li(s)).pipe(B(o=>Pe.loadParametersSuccess({arg:s,parameters:o.parameters})),H(o=>Q(Pe.loadParametersFailure({arg:s,error:o})))))))}};e.\u0275fac=function(r){return new(r||e)(E(me),E(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var ac={},vo=de(ac,z(Pe.loadParameters,(n,{arg:e})=>A(T({},n),{[e]:A(T({},n[e]),{loaded:!1,error:null})})),z(Pe.loadParametersSuccess,(n,{arg:e,parameters:t})=>A(T({},n),{[e]:{data:t,error:null,loaded:!0}})),z(Pe.loadParametersFailure,(n,{arg:e,error:t})=>A(T({},n),{[e]:A(T({},n[e]),{error:t,loaded:!0})})));var ci=class extends fe{constructor(){super("latest-messages",void 0,void 0,!1)}};var ui=class extends xt{constructor(){super("clear-history",{},!1)}};var Eo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.getLatestMessages$=te(()=>this.actions$.pipe(ie(oe.getLatestMessages),q(()=>this.apiClient.serviceCall(new ci).pipe(B(s=>oe.getLatestMessagesSuccess({messages:s})),H(s=>Q(oe.getLatestMessagesFailure({error:s}))))))),this.postClearHistory$=te(()=>this.actions$.pipe(ie(oe.postClearHistory),q(()=>this.apiClient.serviceCall(new ui).pipe(B(()=>oe.postClearHistorySuccess()),H(s=>Q(oe.postClearHistoryFailure({error:s})))))))}};e.\u0275fac=function(r){return new(r||e)(E(me),E(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var lc={messages:[],error:null},_o=de(lc,z(oe.getLatestMessagesSuccess,(n,{messages:e})=>A(T({},n),{messages:e,error:null})),z(oe.getLatestMessagesFailure,(n,{error:e})=>A(T({},n),{error:e})),z(oe.postClearHistoryFailure,(n,{error:e})=>A(T({},n),{error:e})));var To={auth:Cr,configs:po,script:Nr,uploadFile:go,charts:Lr,parameters:vo,terminal:_o,statistics:Qr,models:yo};var di=class extends fe{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var fi=class extends fe{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var mi=class extends fe{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var Mo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadModels$=te(()=>this.actions$.pipe(ie(G.getModelsList),q(s=>{let{algorithmType:o}=s;return this.apiClient.serviceCall(new mi(o)).pipe(B(a=>G.getModelsListSuccess({algorithmType:o,models:a})),H(a=>Q(G.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=te(()=>this.actions$.pipe(ie(G.getCurrentOrPreviousSelectedModel),q(s=>this.apiClient.serviceCall(new di(s.algorithmType)).pipe(B(o=>G.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),H(o=>Q(G.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=te(()=>this.actions$.pipe(ie(G.getModelMetadata),q(s=>{let{algorithmType:o,modelName:a}=s;return this.apiClient.serviceCall(new fi(o,a)).pipe(B(l=>G.getModelMetadataSuccess({metadata:l})),H(l=>Q(G.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(r){return new(r||e)(E(me),E(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function wo(){return[ro({maxAge:25,logOnly:Mt(),connectInZone:!0}),Te([et.forRoot({},{metaReducers:mo}),tt.forRoot([]),et.forFeature("core",To)]),Te(tt.forFeature([Or,Rr,ho,kr,So,Eo,qr,Mo]))]}var bo={providers:[Te(bs),cr(Is),Ns(),wo(),xs(),Rs(),Fs(),or(),tr(ir())]};rr(kt,bo).catch(n=>console.error(n)); diff --git a/frontend/server/modelsmith-build/browser/main-YHQFGFTY.js b/frontend/server/modelsmith-build/browser/main-YHQFGFTY.js deleted file mode 100644 index e5862105..00000000 --- a/frontend/server/modelsmith-build/browser/main-YHQFGFTY.js +++ /dev/null @@ -1 +0,0 @@ -import{b as jr,c as zr,h as es}from"./chunk-LBD5Y7YA.js";import{a as ye,b as Se,c as Dr}from"./chunk-NG4KGRDN.js";import{a as Ar}from"./chunk-7IMKJ6YK.js";import{c as $r}from"./chunk-NI65ARYN.js";import"./chunk-URO2J7UO.js";import{a as Fr,b as it,c as nt,d as Jr}from"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import{a as Ae}from"./chunk-D2Y5ESR4.js";import{a as kr,b as Lr}from"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import{a as Or,b as Cr}from"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as H,b as le,c as Yr}from"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{g as tt}from"./chunk-W4U3FJPJ.js";import{a as Dt,b as Pi,d as Ft,f as Ur,g as Br,h as Kr,i as qr,j as ae,k as Qr,l as Ii,m as Vr,n as Gr,o as Hr,q as Wr,r as Zr,t as Xr}from"./chunk-PSFPSLKI.js";import{a as Ot,b as hr}from"./chunk-GMIVG7ET.js";import{a as qe}from"./chunk-NT2MTW7W.js";import{g as Pr}from"./chunk-HG2O7P4S.js";import{$ as Si,$c as ie,Ac as bi,Ae as Nt,Ba as Ti,Bb as be,Cc as vr,D as yi,De as pe,E as Ue,Ea as Q,Ee as xt,Fa as Xe,Fb as Xn,Fe as he,G as Z,Gb as Yn,Gc as Ke,Ge as Rr,H as Fn,Hc as Oi,He as Nr,I as kn,Ia as Gn,Ib as Jn,Ic as Ct,Ie as xr,J as Ln,Jc as Er,K as jn,Ka as vt,Kb as Tt,N as zn,Nc as Ci,O as $n,Oc as At,Pc as _r,Q as Un,Qa as oe,Qb as er,Qc as Tr,Rc as wr,S as q,Sa as G,Sc as Ai,T as St,Tb as tr,Tc as Mr,Ub as wt,Uc as br,W as Bn,Wc as Pt,X as C,Yc as Je,Zc as z,_ as x,_b as ir,_c as me,a as T,aa as Ze,ab as F,ad as Ce,b as A,bb as k,bc as nr,bd as ne,c as An,ca as E,cb as $,cc as rr,cd as et,d as No,da as xe,db as Et,dc as sr,dd as P,e as xo,eb as _t,ec as Mi,ed as It,fc as or,ga as Kn,gb as Hn,gc as ar,h as gi,ha as we,hc as lr,ia as vi,ic as cr,jb as wi,jc as ur,kc as dr,l as Pn,la as qn,lb as de,ma as Me,n as In,nc as Mt,o as Rn,oc as Oe,p as yt,pa as Ei,pc as fr,q as Nn,qa as _i,qc as mr,rc as pr,s as V,sc as bt,t as xn,ta as Qn,tb as Wn,tc as M,ub as De,uc as fe,vb as Zn,vc as gr,w as Dn,wa as Vn,wb as Ye,wc as yr,x as K,yc as Sr,ye as Ir,zc as Be,ze as Rt}from"./chunk-NPZHNGVX.js";var po=No((Od,mo)=>{"use strict";var $l=function(e){return Ul(e)&&!Bl(e)};function Ul(n){return!!n&&typeof n=="object"}function Bl(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||Ql(n)}var Kl=typeof Symbol=="function"&&Symbol.for,ql=Kl?Symbol.for("react.element"):60103;function Ql(n){return n.$$typeof===ql}function Vl(n){return Array.isArray(n)?[]:{}}function pt(n,e){return e.clone!==!1&&e.isMergeableObject(n)?We(Vl(n),n,e):n}function Gl(n,e,t){return n.concat(e).map(function(i){return pt(i,t)})}function Hl(n,e){if(!e.customMerge)return We;var t=e.customMerge(n);return typeof t=="function"?t:We}function Wl(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function uo(n){return Object.keys(n).concat(Wl(n))}function fo(n,e){try{return e in n}catch{return!1}}function Zl(n,e){return fo(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Xl(n,e,t){var i={};return t.isMergeableObject(n)&&uo(n).forEach(function(r){i[r]=pt(n[r],t)}),uo(e).forEach(function(r){Zl(n,r)||(fo(n,r)&&t.isMergeableObject(e[r])?i[r]=Hl(r,t)(n[r],e[r],t):i[r]=pt(e[r],t))}),i}function We(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Gl,t.isMergeableObject=t.isMergeableObject||$l,t.cloneUnlessOtherwiseSpecified=pt;var i=Array.isArray(e),r=Array.isArray(n),s=i===r;return s?i?t.arrayMerge(n,e,t):Xl(n,e,t):pt(e,t)}We.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return We(i,r,t)},{})};var Yl=We;mo.exports=Yl});var ve,kt=(ve=class{constructor(){this.title="modelsmith"}ngOnInit(){}},ve.\u0275fac=function(t){return new(t||ve)},ve.\u0275cmp=we({type:ve,selectors:[["app-root"]],standalone:!0,features:[be],decls:1,vars:0,template:function(t,i){t&1&&$(0,"router-outlet")},dependencies:[Mt]}),ve);kt=yt([Ot()],kt);function ts(n){return new C(3e3,!1)}function Do(){return new C(3100,!1)}function Fo(){return new C(3101,!1)}function ko(n){return new C(3001,!1)}function Lo(n){return new C(3003,!1)}function jo(n){return new C(3004,!1)}function zo(n,e){return new C(3005,!1)}function $o(){return new C(3006,!1)}function Uo(){return new C(3007,!1)}function Bo(n,e){return new C(3008,!1)}function Ko(n){return new C(3002,!1)}function qo(n,e,t,i,r){return new C(3010,!1)}function Qo(){return new C(3011,!1)}function Vo(){return new C(3012,!1)}function Go(){return new C(3200,!1)}function Ho(){return new C(3202,!1)}function Wo(){return new C(3013,!1)}function Zo(n){return new C(3014,!1)}function Xo(n){return new C(3015,!1)}function Yo(n){return new C(3016,!1)}function Jo(n,e){return new C(3404,!1)}function ea(n){return new C(3502,!1)}function ta(n){return new C(3503,!1)}function ia(){return new C(3300,!1)}function na(n){return new C(3504,!1)}function ra(n){return new C(3301,!1)}function sa(n,e){return new C(3302,!1)}function oa(n){return new C(3303,!1)}function aa(n,e){return new C(3400,!1)}function la(n){return new C(3401,!1)}function ca(n){return new C(3402,!1)}function ua(n,e){return new C(3505,!1)}function Pe(n){switch(n.length){case 0:return new Ke;case 1:return n[0];default:return new Oi(n)}}function hs(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((p,g)=>{let f=g,m=p;if(g!=="offset")switch(f=n.normalizePropertyName(f,r),m){case Ct:m=t.get(g);break;case fe:m=i.get(g);break;default:m=n.normalizeStyleValue(g,f,m,r);break}u.set(f,m)}),d||s.push(u),a=u,o=c}),r.length)throw ea(r);return s}function Ji(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ri(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ri(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ri(t,"destroy",n)));break}}function Ri(n,e,t){let i=t.totalTime,r=!!t.disabled,s=en(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function en(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function ee(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function is(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var da=typeof document>"u"?null:document.documentElement;function tn(n){let e=n.parentNode||n.host||null;return e===da?null:e}function fa(n){return n.substring(1,6)=="ebkit"}var Fe=null,ns=!1;function ma(n){Fe||(Fe=pa()||{},ns=Fe.style?"WebkitAppearance"in Fe.style:!1);let e=!0;return Fe.style&&!fa(n)&&(e=n in Fe.style,!e&&ns&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Fe.style)),e}function pa(){return typeof document<"u"?document.body:null}function gs(n,e){for(;e;){if(e===n)return!0;e=tn(e)}return!1}function ys(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var nn=(()=>{let e=class e{validateStyleProperty(i){return ma(i)}containsElement(i,r){return gs(i,r)}getParentElement(i){return tn(i)}query(i,r,s){return ys(i,r,s)}computeStyle(i,r,s){return s||""}animate(i,r,s,o,a,l=[],c){return new Ke(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),an=class an{};an.NOOP=new nn;var je=an,ze=class{};var ha=1e3,Ss="{{",ga="}}",vs="ng-enter",Li="ng-leave",Lt="ng-trigger",Bt=".ng-trigger",rs="ng-animating",ji=".ng-animating";function Ee(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:zi(parseFloat(e[1]),e[2])}function zi(n,e){switch(e){case"s":return n*ha;default:return n}}function Kt(n,e,t){return n.hasOwnProperty("duration")?n:ya(n,e,t)}function ya(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(ts(n)),{duration:0,delay:0,easing:""};r=zi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=zi(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Do()),a=!0),s<0&&(e.push(Fo()),a=!0),a&&e.splice(l,0,ts(n))}return{duration:r,delay:s,easing:o}}function Sa(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function ge(n,e,t){e.forEach((i,r)=>{let s=rn(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function Le(n,e){e.forEach((t,i)=>{let r=rn(i);n.style[r]=""})}function rt(n){return Array.isArray(n)?n.length==1?n[0]:Sr(n):n}function va(n,e,t){let i=e.params||{},r=Es(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(ko(s))})}var $i=new RegExp(`${Ss}\\s*(.+?)\\s*${ga}`,"g");function Es(n){let e=[];if(typeof n=="string"){let t;for(;t=$i.exec(n);)e.push(t[1]);$i.lastIndex=0}return e}function ot(n,e,t){let i=`${n}`,r=i.replace($i,(s,o)=>{let a=e[o];return a==null&&(t.push(Lo(o)),a=""),a.toString()});return r==i?n:r}var Ea=/-+([a-z0-9])/g;function rn(n){return n.replace(Ea,(...e)=>e[1].toUpperCase())}function _a(n,e){return n===0||e===0}function Ta(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;so.set(a,sn(n,a)))}}return e}function J(n,e,t){switch(e.type){case M.Trigger:return n.visitTrigger(e,t);case M.State:return n.visitState(e,t);case M.Transition:return n.visitTransition(e,t);case M.Sequence:return n.visitSequence(e,t);case M.Group:return n.visitGroup(e,t);case M.Animate:return n.visitAnimate(e,t);case M.Keyframes:return n.visitKeyframes(e,t);case M.Style:return n.visitStyle(e,t);case M.Reference:return n.visitReference(e,t);case M.AnimateChild:return n.visitAnimateChild(e,t);case M.AnimateRef:return n.visitAnimateRef(e,t);case M.Query:return n.visitQuery(e,t);case M.Stagger:return n.visitStagger(e,t);default:throw jo(e.type)}}function sn(n,e){return window.getComputedStyle(n)[e]}var wa=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"]),qt=class extends ze{normalizePropertyName(e,t){return rn(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(wa.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(zo(e,i))}return o+s}};var Qt="*";function Ma(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>ba(i,t,e)):t.push(n),t}function ba(n,e,t){if(n[0]==":"){let l=Oa(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Xo(n)),e;let r=i[1],s=i[2],o=i[3];e.push(ss(r,o));let a=r==Qt&&o==Qt;s[0]=="<"&&!a&&e.push(ss(o,r))}function Oa(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var jt=new Set(["true","1"]),zt=new Set(["false","0"]);function ss(n,e){let t=jt.has(n)||zt.has(n),i=jt.has(e)||zt.has(e);return(r,s)=>{let o=n==Qt||n==r,a=e==Qt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?jt.has(n):zt.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?jt.has(e):zt.has(e)),o&&a}}var _s=":self",Ca=new RegExp(`s*${_s}s*,?`,"g");function Ts(n,e,t,i){return new Ui(n).build(e,t,i)}var os="",Ui=class{constructor(e){this._driver=e}build(e,t,i){let r=new Bi(t);return this._resetContextStyleTimingState(r),J(this,rt(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=os,e.collectedStyles=new Map,e.collectedStyles.set(os,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push($o()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==M.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==M.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(Uo())}),{type:M.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Es(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(Bo(e.name,[...s.values()]))}return{type:M.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=J(this,rt(e.animation),t),r=Ma(e.expr,t.errors);return{type:M.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:ke(e.options)}}visitSequence(e,t){return{type:M.Sequence,steps:e.steps.map(i=>J(this,i,t)),options:ke(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=J(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:M.Group,steps:s,options:ke(e.options)}}visitAnimate(e,t){let i=Ra(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Be({});if(s.type==M.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=Be(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:M.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===fe?i.push(a):t.errors.push(Ko(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Ss)>=0){s=!0;break}}}),{type:M.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(qo(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&va(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:M.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Qo()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(b=>{let I=this._makeStyleAst(b,t),j=I.offset!=null?I.offset:Ia(I.styles),v=0;return j!=null&&(s++,v=I.offset=j),l=l||v<0||v>1,a=a||v0&&s{let j=p>0?I==g?1:p*I:o[I],v=j*w;t.currentTime=f+m.delay+v,m.duration=v,this._validateStyleAst(b,t),b.offset=j,i.styles.push(b)}),i}visitReference(e,t){return{type:M.Reference,animation:J(this,rt(e.animation),t),options:ke(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:M.AnimateChild,options:ke(e.options)}}visitAnimateRef(e,t){return{type:M.AnimateRef,animation:this.visitReference(e.animation,t),options:ke(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Aa(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,ee(t.collectedStyles,t.currentQuerySelector,new Map);let a=J(this,rt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:M.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:ke(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Wo());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Kt(e.timings,t.errors,!0);return{type:M.Stagger,animation:J(this,rt(e.animation),t),timings:i,options:null}}};function Aa(n){let e=!!n.split(/\s*,\s*/).find(t=>t==_s);return e&&(n=n.replace(Ca,"")),n=n.replace(/@\*/g,Bt).replace(/@\w+/g,t=>Bt+"-"+t.slice(1)).replace(/:animating/g,ji),[n,e]}function Pa(n){return n?T({},n):null}var Bi=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 Ia(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ra(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Kt(n,e).duration;return Ni(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ni(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Kt(t,e);return Ni(r.duration,r.delay,r.easing)}function ke(n){return n?(n=T({},n),n.params&&(n.params=Pa(n.params))):n={},n}function Ni(n,e,t){return{duration:n,delay:e,easing:t}}function on(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var at=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Na=1,xa=":enter",Da=new RegExp(xa,"g"),Fa=":leave",ka=new RegExp(Fa,"g");function ws(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new Ki().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var Ki=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new at;let u=new qi(e,t,c,r,s,d,[]);u.options=l;let p=l.delay?Ee(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),J(this,i,u);let g=u.timelines.filter(f=>f.containsAnimation());if(g.length&&a.size){let f;for(let m=g.length-1;m>=0;m--){let w=g[m];if(w.element===t){f=w;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return g.length?g.map(f=>f.buildKeyframes()):[on(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Ee(ot(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?Ee(i.duration):null,a=i.delay!=null?Ee(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),J(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==M.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Vt);let o=Ee(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>J(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?Ee(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),J(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?ot(i,t.params,t.errors):i;return Kt(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==M.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ee(r.delay):0;s&&(t.previousNode.type===M.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Vt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),J(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 i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;J(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},Vt={},qi=class n{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Gt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=Ee(i.duration)),i.delay!=null&&(r.delay=Ee(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ot(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Vt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new Qi(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Da,"."+this._enterClassName),e=e.replace(ka,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(Zo(t)),a}},Gt=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Na,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||fe),this._currentKeyframe.set(t,fe);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=La(e,this._globalTimelineStyles);for(let[a,l]of o){let c=ot(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??fe),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,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Ct?e.add(u):d===fe&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return on(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Qi=class extends Gt{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,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:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",as(a)),s.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let p=new Map(e[u]),g=p.get("offset"),f=t+g*i;p.set("offset",as(f/o)),s.push(p)}i=o,t=0,r="",e=s}return on(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function as(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function La(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,fe)}else for(let[s,o]of r)t.set(s,o)}),t}function ls(n,e,t,i,r,s,o,a,l,c,d,u,p){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:p}}var xi={},Ht=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return ja(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,d){let u=[],p=this.ast.options&&this.ast.options.params||xi,g=a&&a.params||xi,f=this.buildStyles(i,g,u),m=l&&l.params||xi,w=this.buildStyles(r,m,u),b=new Set,I=new Map,j=new Map,v=r==="void",R={params:Ms(m,p),delay:this.ast.options?.delay},_=d?[]:ws(e,t,this.ast.animation,s,o,f,w,R,c,u),D=0;return _.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),u.length?ls(t,this._triggerName,i,r,v,f,w,[],[],I,j,D,u):(_.forEach(N=>{let se=N.element,$e=ee(I,se,new Set);N.preStyleProps.forEach(Re=>$e.add(Re));let Mn=ee(j,se,new Set);N.postStyleProps.forEach(Re=>Mn.add(Re)),se!==t&&b.add(se)}),ls(t,this._triggerName,i,r,v,f,w,_,[...b.values()],I,j,D))}};function ja(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function Ms(n,e){let t=T({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var Vi=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=Ms(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=ot(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function za(n,e,t){return new Gi(n,e,t)}var Gi=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Vi(r.style,s,i))}),cs(this.states,"true","1"),cs(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ht(e,r,this.states))}),this.fallbackTransition=$a(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function $a(n,e,t){let i=[(o,a)=>!0],r={type:M.Sequence,steps:[],options:null},s={type:M.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ht(n,s,e)}function cs(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Ua=new at,Hi=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],s=Ts(this._driver,t,i,r);if(i.length)throw ta(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=hs(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=ws(this._driver,t,s,vs,Li,new Map,new Map,i,Ua,r),o.forEach(d=>{let u=ee(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(ia()),o=[]),r.length)throw na(r);a.forEach((d,u)=>{d.forEach((p,g)=>{d.set(g,this._driver.computeStyle(u,g,fe))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Pe(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 i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw ra(e);return t}listen(e,t,i,r){let s=en(t,"","","");return Ji(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},us="ng-animate-queued",Ba=".ng-animate-queued",Di="ng-animate-disabled",Ka=".ng-animate-disabled",qa="ng-star-inserted",Qa=".ng-star-inserted",Va=[],bs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ga={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ce="__ng_removed",lt=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=Wa(r),i){let s=e,{value:o}=s,a=An(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},st="void",Fi=new lt(st),Wi=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,re(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw sa(i,t);if(i==null||i.length==0)throw oa(t);if(!Za(i))throw aa(i,t);let s=ee(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=ee(this._engine.statesByElement,e,new Map);return a.has(t)||(re(e,Lt),re(e,Lt+"-"+t),a.set(t,Fi)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.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 la(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new ct(this.id,t,e),a=this._engine.statesByElement.get(e);a||(re(e,Lt),re(e,Lt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new lt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Fi),!(c.value===st)&&l.value===c.value){if(!Ja(l.params,c.params)){let m=[],w=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Le(e,w),ge(e,b)})}return}let p=ee(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let g=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!g){if(!r)return;g=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(re(e,us),o.onStart(()=>{Qe(e,us)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let w=this._engine.playersByElement.get(e);if(w){let b=w.indexOf(o);b>=0&&w.splice(b,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,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Bt,!0);i.forEach(r=>{if(r[ce])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,st,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Pe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Fi,d=new lt(st),u=new ct(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[ce];(!s||s===bs)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){re(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=en(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Ji(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Zi=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Wi(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if($t(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!$t(t))return;let s=t[ce];if(s&&s.setForRemoval){s.setForRemoval=!1,s.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,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),re(e,Di)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Qe(e,Di))}removeNode(e,t,i){if($t(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[ce]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return $t(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Bt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ji,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Pe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ce];if(t&&t.setForRemoval){if(e[ce]=bs,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Di)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ka,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Pe(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw ca(e)}_flushAnimations(e,t){let i=new at,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let y=this.driver.query(h,Ba,!0);for(let S=0;S{let S=vs+m++;f.set(y,S),h.forEach(O=>re(O,S))});let w=[],b=new Set,I=new Set;for(let h=0;hb.add(O)):I.add(y))}let j=new Map,v=ms(p,Array.from(b));v.forEach((h,y)=>{let S=Li+m++;j.set(y,S),h.forEach(O=>re(O,S))}),e.push(()=>{g.forEach((h,y)=>{let S=f.get(y);h.forEach(O=>Qe(O,S))}),v.forEach((h,y)=>{let S=j.get(y);h.forEach(O=>Qe(O,S))}),w.forEach(h=>{this.processLeaveNode(h)})});let R=[],_=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(S=>{let O=S.player,B=S.element;if(R.push(O),this.collectedEnterElements.length){let W=B[ce];if(W&&W.setForMove){if(W.previousTriggersValues&&W.previousTriggersValues.has(S.triggerName)){let Ne=W.previousTriggersValues.get(S.triggerName),te=this.statesByElement.get(S.element);if(te&&te.has(S.triggerName)){let gt=te.get(S.triggerName);gt.value=Ne,te.set(S.triggerName,gt)}}O.destroy();return}}let ue=!u||!this.driver.containsElement(u,B),Y=j.get(B),Te=f.get(B),L=this._buildInstruction(S,i,Te,Y,ue);if(L.errors&&L.errors.length){_.push(L);return}if(ue){O.onStart(()=>Le(B,L.fromStyles)),O.onDestroy(()=>ge(B,L.toStyles)),r.push(O);return}if(S.isFallbackTransition){O.onStart(()=>Le(B,L.fromStyles)),O.onDestroy(()=>ge(B,L.toStyles)),r.push(O);return}let Cn=[];L.timelines.forEach(W=>{W.stretchStartingKeyframe=!0,this.disabledNodes.has(W.element)||Cn.push(W)}),L.timelines=Cn,i.append(B,L.timelines);let Ro={instruction:L,player:O,element:B};o.push(Ro),L.queriedElements.forEach(W=>ee(a,W,[]).push(O)),L.preStyleProps.forEach((W,Ne)=>{if(W.size){let te=l.get(Ne);te||l.set(Ne,te=new Set),W.forEach((gt,hi)=>te.add(hi))}}),L.postStyleProps.forEach((W,Ne)=>{let te=c.get(Ne);te||c.set(Ne,te=new Set),W.forEach((gt,hi)=>te.add(hi))})});if(_.length){let h=[];_.forEach(y=>{h.push(ua(y.triggerName,y.errors))}),R.forEach(y=>y.destroy()),this.reportError(h)}let D=new Map,N=new Map;o.forEach(h=>{let y=h.element;i.has(y)&&(N.set(y,y),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,D))}),r.forEach(h=>{let y=h.element;this._getPreviousPlayers(y,!1,h.namespaceId,h.triggerName,null).forEach(O=>{ee(D,y,[]).push(O),O.destroy()})});let se=w.filter(h=>ps(h,l,c)),$e=new Map;fs($e,this.driver,I,c,fe).forEach(h=>{ps(h,l,c)&&se.push(h)});let Re=new Map;g.forEach((h,y)=>{fs(Re,this.driver,new Set(h),l,Ct)}),se.forEach(h=>{let y=$e.get(h),S=Re.get(h);$e.set(h,new Map([...y?.entries()??[],...S?.entries()??[]]))});let pi=[],bn=[],On={};o.forEach(h=>{let{element:y,player:S,instruction:O}=h;if(i.has(y)){if(d.has(y)){S.onDestroy(()=>ge(y,O.toStyles)),S.disabled=!0,S.overrideTotalTime(O.totalTime),r.push(S);return}let B=On;if(N.size>1){let Y=y,Te=[];for(;Y=Y.parentNode;){let L=N.get(Y);if(L){B=L;break}Te.push(Y)}Te.forEach(L=>N.set(L,B))}let ue=this._buildAnimation(S.namespaceId,O,D,s,Re,$e);if(S.setRealPlayer(ue),B===On)pi.push(S);else{let Y=this.playersByElement.get(B);Y&&Y.length&&(S.parentPlayer=Pe(Y)),r.push(S)}}else Le(y,O.fromStyles),S.onDestroy(()=>ge(y,O.toStyles)),bn.push(S),d.has(y)&&r.push(S)}),bn.forEach(h=>{let y=s.get(h.element);if(y&&y.length){let S=Pe(y);h.setRealPlayer(S)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h!ue.destroyed);B.length?Xa(this,y,B):this.processLeaveNode(y)}return w.length=0,pi.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let y=this.players.indexOf(h);this.players.splice(y,1)}),h.play()}),pi}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==st;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,u=ee(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(g=>{let f=g.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),g.destroy(),u.push(g)})}Le(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,p=t.timelines.map(f=>{let m=f.element;d.add(m);let w=m[ce];if(w&&w.removedBeforeQueried)return new Ke(f.duration,f.delay);let b=m!==l,I=Ya((i.get(m)||Va).map(D=>D.getRealPlayer())).filter(D=>{let N=D;return N.element?N.element===m:!1}),j=s.get(m),v=o.get(m),R=hs(this._normalizer,f.keyframes,j,v),_=this._buildPlayer(f,R,I);if(f.subTimeline&&r&&u.add(m),b){let D=new ct(e,a,m);D.setRealPlayer(_),c.push(D)}return _});c.forEach(f=>{ee(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ha(this.playersByQueriedElement,f.element,f))}),d.forEach(f=>re(f,rs));let g=Pe(p);return g.onDestroy(()=>{d.forEach(f=>Qe(f,rs)),ge(l,t.toStyles)}),u.forEach(f=>{ee(r,f,[]).push(g)}),g}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Ke(e.duration,e.delay)}},ct=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Ke,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,i)=>{t.forEach(r=>Ji(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){ee(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 Ha(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function Wa(n){return n??null}function $t(n){return n&&n.nodeType===1}function Za(n){return n=="start"||n=="done"}function ds(n,e){let t=n.style.display;return n.style.display=e??"none",t}function fs(n,e,t,i,r){let s=[];t.forEach(l=>s.push(ds(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,r);d.set(u,p),(!p||p.length==0)&&(c[ce]=Ga,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>ds(l,s[a++])),o}function ms(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function re(n,e){n.classList?.add(e)}function Qe(n,e){n.classList?.remove(e)}function Xa(n,e,t){Pe(t).onDone(()=>n.processLeaveNode(e))}function Ya(n){let e=[];return Os(n,e),e}function Os(n,e){for(let t=0;tr.add(s)):e.set(n,i),t.delete(n),!0}var Ge=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Zi(e.body,t,i),this._timelineEngine=new Hi(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Ts(this._driver,s,l,c);if(l.length)throw Jo(r,l);c.length&&void 0,a=za(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=is(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=is(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}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 el(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ki(e[0]),e.length>1&&(i=ki(e[e.length-1]))):e instanceof Map&&(t=ki(e)),t||i?new Xi(n,t,i):null}var Ve=class Ve{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=Ve.initialStylesByElement.get(e);r||Ve.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ge(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ge(this._element,this._initialStyles),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ve.initialStylesByElement.delete(this._element),this._startStyles&&(Le(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Le(this._element,this._endStyles),this._endStyles=null),ge(this._element,this._initialStyles),this._state=3)}};Ve.initialStylesByElement=new WeakMap;var Xi=Ve;function ki(n){let e=null;return n.forEach((t,i)=>{tl(i)&&(e=e||new Map,e.set(i,t))}),e}function tl(n){return n==="display"||n==="position"}var Wt=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.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(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:sn(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Zt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return gs(e,t)}getParentElement(e){return tn(e)}query(e,t,i){return ys(e,t,i)}computeStyle(e,t,i){return sn(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(g=>g instanceof Wt);_a(i,r)&&d.forEach(g=>{g.currentSnapshot.forEach((f,m)=>c.set(m,f))});let u=Sa(t).map(g=>new Map(g));u=Ta(e,u,c);let p=el(e,u);return new Wt(e,u,l,p)}};var Ut="@",Cs="@.disabled",Xt=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){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,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Ut&&t==Cs?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Yi=class extends Xt{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Ut?t.charAt(1)=="."&&t==Cs?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Ut){let r=il(e),s=t.slice(1),o="";return s.charAt(0)!=Ut&&([s,o]=nl(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function il(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function nl(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Yt=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new Xt(i,r,this.engine,u),c.set(r,d)}return d}let s=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(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Yi(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}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 sl=(()=>{let e=class e extends Ge{constructor(i,r,s){super(i,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(E(er),E(je),E(ze))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function ol(){return new qt}function al(n,e,t){return new Yt(n,e,t)}var Ps=[{provide:ze,useFactory:ol},{provide:Ge,useClass:sl},{provide:Gn,useFactory:al,deps:[lr,Ge,vt]}],As=[{provide:je,useFactory:()=>new Zt},{provide:Ti,useValue:"BrowserAnimations"},...Ps],ll=[{provide:je,useClass:nn},{provide:Ti,useValue:"NoopAnimations"},...Ps],Is=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?ll:As}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=vi({type:e}),e.\u0275inj=Si({providers:As,imports:[ur]});let n=e;return n})();var Ie=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 i=this.getItem(e);return i?this.getNestedProperty(i,t):null}static removeItem(e){localStorage.removeItem(e)}static clear(){localStorage.clear()}static getNestedProperty(e,t){if(!t)return e;let i=t.split(".");for(let r=0;r{let e=class e{constructor(i){this.router=i}canActivate(){return Ie.getNestedItem(U.CORE.ROOT,`${U.AUTH.ROOT}.${U.AUTH.USER.ROOT}.${U.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${P.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(r){return new(r||e)(E(Oe))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var Jt=(()=>{let e=class e{constructor(i,r){this.router=i,this.configFacadeService=r}canActivate(){let i=Ie.getNestedItem(U.CORE.ROOT,`${U.CONFIGS.ROOT}.${U.CONFIGS.DEFAULT_MODE}`);return i&&(i===Se.GUIDED?(this.router.navigate([`/${P.WIZARD.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.GUIDED}))):(this.router.navigate([`/${P.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.EXPERT})))),!0}};e.\u0275fac=function(r){return new(r||e)(E(Oe),E(qe))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var ei=(()=>{let e=class e{constructor(i){this.router=i}canActivate(){return Ie.getNestedItem(U.CORE.ROOT,`${U.AUTH.ROOT}.${U.AUTH.USER.ROOT}.${U.AUTH.USER.JWT}`)?(this.router.navigate([`/${P.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(r){return new(r||e)(E(Oe))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function dl(n,e){if(n&1&&(F(0,"div")(1,"div",6),De(2),k()()),n&2){let t=de();Q(2),Ye(" ",t.item.label," ")}}function fl(n,e){n&1&&(F(0,"div"),$(1,"ms-spining-indicator"),k())}function ml(n,e){if(n&1&&(Et(0),oe(1,fl,2,0,"div",4),_t()),n&2){let t=e.ngIf,i=de();Q(),G("ngIf",i.isExpanded&&t===(i.item==null?null:i.item.key))}}var Rs=(()=>{let e=class e{constructor(i){this.pageRunningScriptSpiningIndicatorService=i,this.itemStyle="accent",this.isExpanded=!0}};e.\u0275fac=function(r){return new(r||e)(Xe(nt))},e.\u0275cmp=we({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},standalone:!0,features:[be],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(r,s){r&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),$(3,"mat-icon",3),k(),oe(4,dl,3,1,"div",4),k(),F(5,"div",5),oe(6,ml,2,1,"ng-container",4),Xn(7,"async"),k()()),r&2&&(G("routerLink",s.item.route),Q(3),G("fontIcon",s.item.icon),Q(),G("ngIf",s.isExpanded),Q(2),G("ngIf",Yn(7,4,s.pageRunningScriptSpiningIndicatorService.currentRunningPage$)))},dependencies:[nr,wt,ir,Nt,Rt,Fr,bt,fr,mr],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 n=e;return n})();var pl=[{route:"admin",label:"Admin",icon:"icon-Admin"}],hl=[{route:P.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],gl=[{route:P.MODEL_COMPRESSION.ROOT,label:"Model Compression",icon:"icon-GearSix",key:it.MODEL_COMPRESSION},{route:P.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:it.MACHINE_UNLEARNING},{route:P.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:it.AWQ},{route:P.MULTI_MODAL.ROOT,label:"Multi-modal",icon:"icon-Environmental",key:it.MODEL_SPECIALIZATION},{route:P.MODEL_SPECIALIZATION.ROOT,label:"Model Specialization",icon:"icon-MapTrifold"},{route:P.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],Ns={guided:hl,expert:gl,common:pl};function yl(n,e){if(n&1&&(F(0,"div",15)(1,"div",16),De(2),k(),F(3,"div",17),De(4),$(5,"mat-icon",18),k()()),n&2){let t=de();Q(2),Ye(" ",t.currentMode===t.Modes.GUIDED?"Guided mode":"Expert mode"," "),Q(2),Ye(" ",t.currentMode===t.Modes.GUIDED?"Switch to expert mode":"Switch to guided mode"," ")}}function Sl(n,e){if(n&1&&(F(0,"div",19),$(1,"ms-sidenav-item",20),k()),n&2){let t=e.$implicit,i=de(2);Q(),G("item",t)("isExpanded",i.isExpanded)}}function vl(n,e){if(n&1&&(Et(0),oe(1,Sl,2,2,"div",10),_t()),n&2){let t=de();Q(),G("ngForOf",t.SidenavConstants.guided)("ngForTrackBy",t.trackByRoute)}}function El(n,e){if(n&1&&(F(0,"div",19),$(1,"ms-sidenav-item",20),k()),n&2){let t=e.$implicit,i=de(2);Q(),G("item",t)("isExpanded",i.isExpanded)}}function _l(n,e){if(n&1&&oe(0,El,2,2,"div",10),n&2){let t=de();G("ngForOf",t.SidenavConstants.expert)("ngForTrackBy",t.trackByRoute)}}function Tl(n,e){if(n&1&&(F(0,"div",19),$(1,"ms-sidenav-item",21),k()),n&2){let t=e.$implicit,i=de();Q(),G("item",t)("isExpanded",i.isExpanded)}}function wl(n,e){n&1&&(F(0,"span",22),De(1,"Collapse"),k())}var _e,ti=(_e=class{constructor(e,t){this.router=e,this.configFacadeService=t,this.SidenavConstants=Ns,this.Modes=Se,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(hr(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===Se.GUIDED?(this.router.navigate([`/${P.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.EXPERT}))):(this.router.navigate([`/${P.WIZARD.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}trackByRoute(e,t){return t.route}},_e.\u0275fac=function(t){return new(t||_e)(Xe(Oe),Xe(qe))},_e.\u0275cmp=we({type:_e,selectors:[["ms-sidenav"]],standalone:!0,features:[be],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(t,i){if(t&1){let r=Hn();F(0,"div",1)(1,"div",2)(2,"div",3),wi("click",function(){return Ei(r),_i(i.toggleMode())}),F(3,"div",4),$(4,"mat-icon",5),k(),oe(5,yl,6,2,"div",6),k(),F(6,"div",7),$(7,"mat-divider"),k(),oe(8,vl,2,2,"ng-container",8)(9,_l,1,2,"ng-template",null,0,Jn),F(11,"div",9),$(12,"mat-divider"),k(),oe(13,Tl,2,2,"div",10),k(),F(14,"div",11),$(15,"mat-divider"),k(),F(16,"div",12)(17,"div",13),wi("click",function(){return Ei(r),_i(i.toggleSidebar())}),F(18,"mat-icon"),De(19),k(),oe(20,wl,2,0,"span",14),k()()()}if(t&2){let r=Wn(10);G("@expandCollapse",i.isExpanded?"expanded":"collapsed"),Q(5),G("ngIf",i.isExpanded),Q(3),G("ngIf",i.currentMode===i.Modes.GUIDED)("ngIfElse",r),Q(5),G("ngForOf",i.SidenavConstants.common)("ngForTrackBy",i.trackByRoute),Q(6),Zn(i.isExpanded?"chevron_left":"chevron_right"),Q(),G("ngIf",i.isExpanded)}},dependencies:[Rs,Nt,Rt,wt,tr,Cr,Or],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:[gr("expandCollapse",[bi("expanded",Be({width:"230px"})),bi("collapsed",Be({width:"40px"})),vr("expanded <=> collapsed",yr("300ms ease-in-out"))])]}}),_e);ti=yt([Ot()],ti);var xs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=we({type:e,selectors:[["ms-main-layout"]],standalone:!0,features:[be],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(r,s){r&1&&(F(0,"div",0),$(1,"ms-header"),F(2,"div",1),$(3,"ms-sidenav"),F(4,"div",2)(5,"div",3),$(6,"router-outlet"),k(),F(7,"div",4),$(8,"ms-footer",5),k()()()())},dependencies:[Ar,Dr,ti,bt,Mt],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 n=e;return n})();var Ds={records:zr};var Fs=[{path:P.AUTH.ROOT,loadChildren:()=>import("./chunk-KXYM3VZW.js").then(n=>n.AuthModule),canActivate:[ei]},{path:P.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-GU66N7RS.js").then(n=>n.ModeSelectModule),canActivate:[dt,Jt]},{path:P.DEMO.ROOT,loadChildren:()=>import("./chunk-FAKCSLDT.js").then(n=>n.DemoModule)},{path:"",pathMatch:"full",redirectTo:P.AUTH.ROOT},{path:"",component:xs,canActivate:[dt],children:[{path:"",redirectTo:P.WIZARD.ROOT,pathMatch:"full"},{path:P.WIZARD.ROOT,loadChildren:()=>import("./chunk-QBB4CRI5.js").then(n=>n.WizardModule)},{path:P.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-3RQYPCLL.js").then(n=>n.ModelCompressionModule)},{path:P.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-KR5OA5AZ.js").then(n=>n.MachineUnlearningModule)},{path:P.AWQ.ROOT,loadChildren:()=>import("./chunk-EGVUKFEW.js").then(n=>n.LlmQuantizationModule)},{path:P.RUNNING.ROOT,loadChildren:()=>import("./chunk-ITIPNJR4.js").then(n=>n.RunningModule)},{path:P.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-ZNUYT5NW.js").then(n=>n.ModelTrainingModule)},{path:P.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-GRATYYX3.js").then(n=>n.AlgorithmComparisonModule),providers:[Me(Je.forFeature("runRecords",Ds)),Me(et.forFeature([jr]))]},{path:P.MULTI_MODAL.ROOT,loadChildren:()=>import("./chunk-C3C4GFAG.js").then(n=>n.MultiModalModule)}]}];function ks(){return[Xr,dt,Ii,ei,Jt,Pi,qe,xr,Qr,qr,Kr,Vr,Hr,Gr,nt,Yr,{provide:Kn,multi:!0,useValue(){let n=xe(Ii),e=xe(nt),t=xe(Ir),i=xe(Pi);n.trackNavigationHistory(),e.trackCurrentRunningPage(),t.registerFontClassAlias("icomoon","ms"),i.dispatch(Dt.fetchScriptStatus())}}]}function Ls(){return[{provide:Pr,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:$r,useValue:{displayDefaultIndicatorType:!0,showError:!1}},{provide:Jr,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}}]}var ii=class{constructor(e){this.httpClient=e}get httpHeaders(){return new rr}getRequestOptions(e){let t=e.getParams||void 0;return{headers:this.httpHeaders,params:t}}serviceCall(e){return Tt()&&console.log(`serviceCall@Client - ${e.getMethod} - ${e.getUrl}`),V(e).pipe(q(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(jn(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}`)}}))}};function js(){return[{provide:he,useFactory:n=>new ii(n),deps:[sr]}]}var Ml=(()=>{let e=class e{constructor(i){this.bannerService=i}handleError(i,r){let s=r.error,{error:o}=s;switch(r.status){case 400:case 404:case 500:case 503:this.spawnNotification(o);break;case 504:this.spawnNotification(s);break;default:this.spawnNotification(o);break}return xn(()=>r)}spawnNotification(i){this.bannerService.showError(i)}};e.\u0275fac=function(r){return new(r||e)(E(Ft))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),zs=(()=>{let e=class e{constructor(i){this.errorHandler=i}intercept(i,r){return r.handle(i).pipe(Z(s=>this.errorHandler.handleError(i,s)))}};e.\u0275fac=function(r){return new(r||e)(E(Ml))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function $s(){return[{provide:Mi,useClass:zs,multi:!0},{provide:Mi,useClass:es,multi:!0}]}var mt="PERFORM_ACTION",bl="REFRESH",Vs="RESET",Gs="ROLLBACK",Hs="COMMIT",Ws="SWEEP",Zs="TOGGLE_ACTION",Ol="SET_ACTIONS_ACTIVE",Xs="JUMP_TO_STATE",Ys="JUMP_TO_ACTION",En="IMPORT_STATE",Js="LOCK_CHANGES",eo="PAUSE_RECORDING",He=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=mt,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},ln=class{constructor(){this.type=bl}},cn=class{constructor(e){this.timestamp=e,this.type=Vs}},un=class{constructor(e){this.timestamp=e,this.type=Gs}},dn=class{constructor(e){this.timestamp=e,this.type=Hs}},fn=class{constructor(){this.type=Ws}},mn=class{constructor(e){this.id=e,this.type=Zs}};var pn=class{constructor(e){this.index=e,this.type=Xs}},hn=class{constructor(e){this.actionId=e,this.type=Ys}},gn=class{constructor(e){this.nextLiftedState=e,this.type=En}},yn=class{constructor(e){this.status=e,this.type=Js}},Sn=class{constructor(e){this.status=e,this.type=eo}};var oi=new Ze("@ngrx/store-devtools Options"),Us=new Ze("@ngrx/store-devtools Initial Config");function to(){return null}var Cl="NgRx Store DevTools";function Al(n){let e={maxAge:!1,monitor:to,actionSanitizer:void 0,stateSanitizer:void 0,name:Cl,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 n=="function"?n():n,i=t.logOnly?{pause:!0,export:!0,test:!0}:!1,r=t.features||i||e.features;r.import===!0&&(r.import="custom");let s=Object.assign({},e,{features:r},t);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function Bs(n,e){return n.filter(t=>e.indexOf(t)<0)}function io(n){let{computedStates:e,currentStateIndex:t}=n;if(t>=e.length){let{state:r}=e[e.length-1];return r}let{state:i}=e[t];return i}function ft(n){return new He(n,+Date.now())}function Pl(n,e){return Object.keys(e).reduce((t,i)=>{let r=Number(i);return t[r]=no(n,e[r],r),t},{})}function no(n,e,t){return A(T({},e),{action:n(e.action,t)})}function Il(n,e){return e.map((t,i)=>({state:ro(n,t.state,i),error:t.error}))}function ro(n,e,t){return n(e,t)}function so(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function Rl(n,e,t,i){let r=[],s={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&_n(n.computedStates[l],c,e,t,i)||(s[a]=c,r.push(a),o.push(n.computedStates[l])))}),A(T({},n),{stagedActionIds:r,actionsById:s,computedStates:o})}function _n(n,e,t,i,r){let s=t&&!t(n,e.action),o=i&&!e.action.type.match(i.map(l=>Ks(l)).join("|")),a=r&&e.action.type.match(r.map(l=>Ks(l)).join("|"));return s||o||a}function Ks(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oo(n){return{ngZone:n?xe(vt):null,connectInZone:n}}var ai=(()=>{let e=class e extends At{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=Qn(e)))(s||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),ni={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},vn=new Ze("@ngrx/store-devtools Redux Devtools Extension"),ao=(()=>{let e=class e{constructor(i,r,s){this.config=r,this.dispatcher=s,this.zoneConfig=oo(this.config.connectInZone),this.devtoolsExtension=i,this.createActionStreams()}notify(i,r){if(this.devtoolsExtension)if(i.type===mt){if(r.isLocked||r.isPaused)return;let s=io(r);if(so(this.config)&&_n(s,i,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?ro(this.config.stateSanitizer,s,r.currentStateIndex):s,a=this.config.actionSanitizer?no(this.config.actionSanitizer,i,r.nextActionId):i;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let s=A(T({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?Pl(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?Il(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,s,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new gi(i=>{let r=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=r,r.init(),r.subscribe(s=>i.next(s)),r.unsubscribe}):Rn}createActionStreams(){let i=this.createChangesObservable().pipe($n()),r=i.pipe(Ue(d=>d.type===ni.START)),s=i.pipe(Ue(d=>d.type===ni.STOP)),o=i.pipe(Ue(d=>d.type===ni.DISPATCH),K(d=>this.unwrapAction(d.payload)),Fn(d=>d.type===En?this.dispatcher.pipe(Ue(u=>u.type===Ai),Dn(1e3),kn(1e3),K(()=>d),Z(()=>V(d)),Ln(1)):V(d))),l=i.pipe(Ue(d=>d.type===ni.ACTION),K(d=>this.unwrapAction(d.payload))).pipe(St(s)),c=o.pipe(St(s));this.start$=r.pipe(St(s)),this.actions$=this.start$.pipe(q(()=>l)),this.liftedActions$=this.start$.pipe(q(()=>c))}unwrapAction(i){return typeof i=="string"?(0,eval)(`(${i})`):i}getExtensionConfig(i){let r={name:i.name,features:i.features,serialize:i.serialize,autoPause:i.autoPause??!1,trace:i.trace??!1,traceLimit:i.traceLimit??75};return i.maxAge!==!1&&(r.maxAge=i.maxAge),r}sendToReduxDevtools(i){try{i()}catch(r){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",r)}}};e.\u0275fac=function(r){return new(r||e)(E(vn),E(oi),E(ai))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),si={type:Ci},Nl="@ngrx/store-devtools/recompute",xl={type:Nl};function lo(n,e,t,i,r){if(i)return{state:t,error:"Interrupted by an error up the chain"};let s=t,o;try{s=n(t,e)}catch(a){o=a.toString(),r.handleError(a)}return{state:s,error:o}}function ri(n,e,t,i,r,s,o,a,l){if(e>=n.length&&n.length===s.length)return n;let c=n.slice(0,e),d=s.length-(l?1:0);for(let u=e;u-1?f:lo(t,g,m,w,a);c.push(I)}return l&&c.push(n[n.length-1]),c}function Dl(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:ft(si)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Fl(n,e,t,i,r={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:w,isPaused:b}=o||e;o||(c=Object.create(c));function I(R){let _=R,D=u.slice(1,_+1);for(let N=0;ND.indexOf(N)===-1),u=[0,...u.slice(_+1)],g=m[_].state,m=m.slice(_),f=f>_?f-_:0}function j(){c={0:ft(si)},d=1,u=[0],p=[],g=m[f].state,f=0,m=[]}let v=0;switch(a.type){case Js:{w=a.status,v=1/0;break}case eo:{b=a.status,b?(u=[...u,d],c[d]=new He({type:"@ngrx/devtools/pause"},+Date.now()),d++,v=u.length-1,m=m.concat(m[m.length-1]),f===u.length-2&&f++,v=1/0):j();break}case Vs:{c={0:ft(si)},d=1,u=[0],p=[],g=n,f=0,m=[];break}case Hs:{j();break}case Gs:{c={0:ft(si)},d=1,u=[0],p=[],f=0,m=[];break}case Zs:{let{id:R}=a;p.indexOf(R)===-1?p=[R,...p]:p=p.filter(D=>D!==R),v=u.indexOf(R);break}case Ol:{let{start:R,end:_,active:D}=a,N=[];for(let se=R;se<_;se++)N.push(se);D?p=Bs(p,N):p=[...p,...N],v=u.indexOf(R);break}case Xs:{f=a.index,v=1/0;break}case Ys:{let R=u.indexOf(a.actionId);R!==-1&&(f=R),v=1/0;break}case Ws:{u=Bs(u,p),p=[],f=Math.min(f,u.length-1);break}case mt:{if(w)return o||e;if(b||o&&_n(o.computedStates[f],a,r.predicate,r.actionsSafelist,r.actionsBlocklist)){let _=m[m.length-1];m=[...m.slice(0,-1),lo(s,a.action,_.state,_.error,t)],v=1/0;break}r.maxAge&&u.length===r.maxAge&&I(1),f===u.length-1&&f++;let R=d++;c[R]=a,u=[...u,R],v=u.length-1;break}case En:{({monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:w,isPaused:b}=a.nextLiftedState);break}case Ci:{v=0,r.maxAge&&u.length>r.maxAge&&(m=ri(m,v,s,g,c,u,p,t,b),I(u.length-r.maxAge),v=1/0);break}case Ai:{if(m.filter(_=>_.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=ri(m,v,s,g,c,u,p,t,b),I(u.length-r.maxAge),v=1/0);else{if(!b&&!w){f===u.length-1&&f++;let _=d++;c[_]=new He(a,+Date.now()),u=[...u,_],v=u.length-1,m=ri(m,v,s,g,c,u,p,t,b)}m=m.map(_=>A(T({},_),{state:s(_.state,xl)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&I(u.length-r.maxAge),v=1/0}break}default:{v=1/0;break}}return m=ri(m,v,s,g,c,u,p,t,b),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:w,isPaused:b}}}var qs=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d){let u=Dl(c,d.monitor),p=Fl(c,u,l,d.monitor,d),g=yi(yi(r.asObservable().pipe(Un(1)),o.actions$).pipe(K(ft)),i,o.liftedActions$).pipe(Nn(In)),f=s.pipe(K(p)),m=oo(d.connectInZone),w=new Pn(1);this.liftedStateSubscription=g.pipe(Bn(f),Qs(m),zn(({state:j},[v,R])=>{let _=R(j,v);return v.type!==mt&&so(d)&&(_=Rl(_,d.predicate,d.actionsSafelist,d.actionsBlocklist)),o.notify(v,_),{state:_,action:v}},{state:u,action:null})).subscribe(({state:j,action:v})=>{if(w.next(j),v.type===mt){let R=v.action;a.next(R)}}),this.extensionStartSubscription=o.start$.pipe(Qs(m)).subscribe(()=>{this.refresh()});let b=w.asObservable(),I=b.pipe(K(io));Object.defineProperty(I,"state",{value:Er(I,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=i,this.liftedState=b,this.state=I}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(i){this.dispatcher.next(i)}next(i){this.dispatcher.next(i)}error(i){}complete(){}performAction(i){this.dispatch(new He(i,+Date.now()))}refresh(){this.dispatch(new ln)}reset(){this.dispatch(new cn(+Date.now()))}rollback(){this.dispatch(new un(+Date.now()))}commit(){this.dispatch(new dn(+Date.now()))}sweep(){this.dispatch(new fn)}toggleAction(i){this.dispatch(new mn(i))}jumpToAction(i){this.dispatch(new hn(i))}jumpToState(i){this.dispatch(new pn(i))}importState(i){this.dispatch(new gn(i))}lockChanges(i){this.dispatch(new yn(i))}pauseRecording(i){this.dispatch(new Sn(i))}};e.\u0275fac=function(r){return new(r||e)(E(ai),E(At),E(Tr),E(ao),E(Mr),E(Vn),E(_r),E(oi))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function Qs({ngZone:n,connectInZone:e}){return t=>e?new gi(i=>t.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):t}var kl=new Ze("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Ll(n,e){return!!n||e.monitor!==to}function jl(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function co(n={}){return qn([ao,ai,qs,{provide:Us,useValue:n},{provide:kl,deps:[vn,oi],useFactory:Ll},{provide:vn,useFactory:jl},{provide:oi,deps:[Us],useFactory:Al},{provide:br,deps:[qs],useFactory:zl},{provide:wr,useExisting:ai}])}function zl(n){return n.state}var ho=xo(po(),1);var Tn="@ngrx/store/init",Jl="@ngrx/store/update-reducers",ec=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,tc=(n,e)=>typeof e=="string"&&ec.test(e)?new Date(e):e,ic=(n,e)=>e,nc=()=>typeof window<"u",rc=n=>n.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}),sc=(n,e,t,i)=>n.reduce((r,s)=>{let o=s,a=i?tc:ic,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof s[o]=="function"?a=s[o]:(s[o].reviver&&(a=s[o].reviver),s[o].deserialize&&(l=s[o].deserialize)),s[o].encrypt&&s[o].decrypt?typeof s[o].encrypt=="function"&&typeof s[o].decrypt=="function"?c=s[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${s[o]}' key object.`):(s[o].encrypt||s[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${s[o]}' key object.`)),e!==void 0){let d=e.getItem(t(o));if(d){c&&(d=c(d));let u=new RegExp("{|\\["),p=d;return(d==="null"||d==="true"||d==="false"||u.test(d.charAt(0)))&&(p=JSON.parse(d,a)),Object.assign({},r,{[o]:l?l(p):p})}}return r},{});function go(n,e){return e.reduce((t,i)=>{if(typeof i=="string"||typeof i=="number"){let r=n?.[i];r!==void 0&&(t[i]=r)}else for(let r in i)if(Object.prototype.hasOwnProperty.call(i,r)){let s=i[r];t[r]=go(n[r],s)}return t},{})}var oc=(n,e,t,i,r,s)=>{if(s)try{if(s(n)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=n[o],l,c,d;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=n[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=go(a,p)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(d=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{d&&(a=d(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(i(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"&&r&&t!==void 0)try{t.removeItem(i(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},ac=(n,e,t)=>((t.type===Tn||t.type===Jl)&&e&&(n=(0,ho.default)(n,e,{arrayMerge:(s,o,a)=>o})),n),yo=n=>e=>{(n.storage===void 0&&!n.checkStorageAvailability||n.checkStorageAvailability&&nc())&&(n.storage=localStorage||window.localStorage),n.storageKeySerializer===void 0&&(n.storageKeySerializer=s=>s),n.restoreDates===void 0&&(n.restoreDates=!0);let t=n.mergeReducer;(t===void 0||typeof t!="function")&&(t=ac);let i=rc(n.keys),r=n.rehydrate?sc(i,n.storage,n.storageKeySerializer,n.restoreDates):void 0;return function(s,o){let a;return o.type===Tn&&!s?a=e(s,o):a=T({},s),a=t(a,r,o),a=e(a,o),o.type!==Tn&&oc(a,i,n.storage,n.storageKeySerializer,n.removeOnUndefined,n.syncCondition),a}};function lc(n){let t={keys:[{[U.CORE.ROOT]:[U.AUTH.ROOT,U.CONFIGS.ROOT,U.SCRIPT.ROOT]}],rehydrate:!0};return yo(t)(n)}var So=[lc];var cc={defaultMode:void 0,currentMode:void 0},vo=me(cc,z(ye.setDefaultMode,(n,{mode:e})=>A(T({},n),{defaultMode:e})),z(ye.setCurrentMode,(n,{mode:e})=>A(T({},n),{currentMode:e})));var ht=class extends xt{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var Eo=(()=>{let e=class e{constructor(i,r,s){this.apiClient=i,this.bannerService=r,this.actions$=s,this.uploadFile$=ie(()=>this.actions$.pipe(ne(ae.uploadFile),q(o=>this.apiClient.serviceCall(new ht(o.file)).pipe(K(a=>ae.uploadFileSuccess({data:a})),Z(a=>V(ae.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=ie(()=>this.actions$.pipe(ne(ae.uploadFileAndCallScript),q(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new ht(o.file)).pipe(q(a=>(this.bannerService.showSuccess("File uploaded successfully."),[ae.uploadFileSuccess({data:a}),Dt.callScript({configs:o.configs})])),Z(a=>V(ae.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ft),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var uc={uploading:!1},_o=me(uc,z(ae.uploadFile,n=>A(T({},n),{uploading:!0})),z(ae.uploadFileSuccess,(n,{data:e})=>A(T({},n),{uploading:!1,uploadedData:e})),z(ae.uploadFileFailure,(n,{error:e})=>A(T({},n),{uploading:!1,error:e})));var sf=Pt(It,({fileState:n})=>n.uploading),of=Pt(It,({fileState:n})=>n.uploadedData),af=Pt(It,({fileState:n})=>n.error);var dc={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},To=me(dc,z(H.getModelsListSuccess,(n,{algorithmType:e,models:t})=>{switch(e){case tt.QUANTIZATION:return A(T({},n),{quantizationModels:t,error:void 0});case tt.PRUNING:return A(T({},n),{pruningModels:t,error:void 0});case tt.MACHINE_UNLEARNING:return A(T({},n),{machineUnlearningModels:t,error:void 0});case tt.AWQ:return A(T({},n),{awqModels:t,error:void 0});default:return n}}),z(H.getModelsListFailure,(n,{error:e})=>A(T({},n),{error:e})),z(H.getCurrentOrPreviousSelectedModelSuccess,(n,{model:e})=>A(T({},n),{currentModel:e})),z(H.getCurrentOrPreviousSelectedModelFailure,(n,{error:e})=>A(T({},n),{error:e})),z(H.getModelMetadataSuccess,(n,{metadata:e})=>A(T({},n),{modelMetadata:e,error:void 0})),z(H.getModelMetadataFailure,(n,{error:e})=>A(T({},n),{modelMetadata:{},error:e})));var li=class extends pe{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var wo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadParameters$=ie(()=>this.actions$.pipe(ne(Ae.loadParameters),q(({arg:s})=>this.apiClient.serviceCall(new li(s)).pipe(K(o=>Ae.loadParametersSuccess({arg:s,parameters:o.parameters})),Z(o=>V(Ae.loadParametersFailure({arg:s,error:o})))))))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var fc={},Mo=me(fc,z(Ae.loadParameters,(n,{arg:e})=>A(T({},n),{[e]:A(T({},n[e]),{loaded:!1,error:null})})),z(Ae.loadParametersSuccess,(n,{arg:e,parameters:t})=>A(T({},n),{[e]:{data:t,error:null,loaded:!0}})),z(Ae.loadParametersFailure,(n,{arg:e,error:t})=>A(T({},n),{[e]:A(T({},n[e]),{error:t,loaded:!0})})));var ci=class extends pe{constructor(){super("latest-messages",void 0,void 0,!1)}};var ui=class extends xt{constructor(){super("clear-history",{},!1)}};var bo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.getLatestMessages$=ie(()=>this.actions$.pipe(ne(le.getLatestMessages),q(()=>this.apiClient.serviceCall(new ci).pipe(K(s=>le.getLatestMessagesSuccess({messages:s})),Z(s=>V(le.getLatestMessagesFailure({error:s}))))))),this.postClearHistory$=ie(()=>this.actions$.pipe(ne(le.postClearHistory),q(()=>this.apiClient.serviceCall(new ui).pipe(K(()=>le.postClearHistorySuccess()),Z(s=>V(le.postClearHistoryFailure({error:s})))))))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var mc={messages:[],error:null},Oo=me(mc,z(le.getLatestMessagesSuccess,(n,{messages:e})=>A(T({},n),{messages:e,error:null})),z(le.getLatestMessagesFailure,(n,{error:e})=>A(T({},n),{error:e})),z(le.postClearHistoryFailure,(n,{error:e})=>A(T({},n),{error:e})));var Co={auth:Nr,configs:vo,script:Lr,uploadFile:_o,charts:Br,parameters:Mo,terminal:Oo,statistics:Zr,models:To};var di=class extends pe{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var fi=class extends pe{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var mi=class extends pe{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var Ao=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadModels$=ie(()=>this.actions$.pipe(ne(H.getModelsList),q(s=>{let{algorithmType:o}=s;return this.apiClient.serviceCall(new mi(o)).pipe(K(a=>H.getModelsListSuccess({algorithmType:o,models:a})),Z(a=>V(H.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=ie(()=>this.actions$.pipe(ne(H.getCurrentOrPreviousSelectedModel),q(s=>this.apiClient.serviceCall(new di(s.algorithmType)).pipe(K(o=>H.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Z(o=>V(H.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=ie(()=>this.actions$.pipe(ne(H.getModelMetadata),q(s=>{let{algorithmType:o,modelName:a}=s;return this.apiClient.serviceCall(new fi(o,a)).pipe(K(l=>H.getModelMetadataSuccess({metadata:l})),Z(l=>V(H.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function Po(){return[co({maxAge:25,logOnly:Tt(),connectInZone:!0}),Me([Je.forRoot({},{metaReducers:So}),et.forRoot([]),Je.forFeature("core",Co)]),Me(et.forFeature([Rr,kr,Eo,Ur,wo,bo,Wr,Ao]))]}var Io={providers:[Me(Is),pr(Fs),Ls(),Po(),js(),ks(),$s(),dr(),or(ar())]};cr(kt,Io).catch(n=>console.error(n));