diff --git a/frontend/server/modelsmith-build/browser/chunk-JBMCLD5I.js b/frontend/server/modelsmith-build/browser/chunk-3KDKVO3G.js similarity index 94% rename from frontend/server/modelsmith-build/browser/chunk-JBMCLD5I.js rename to frontend/server/modelsmith-build/browser/chunk-3KDKVO3G.js index f87b0c1..ddd7f57 100644 --- a/frontend/server/modelsmith-build/browser/chunk-JBMCLD5I.js +++ b/frontend/server/modelsmith-build/browser/chunk-3KDKVO3G.js @@ -1 +1 @@ -import{a as u}from"./chunk-XSACZZU3.js";import{a as g}from"./chunk-FRHX5LPN.js";import"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import"./chunk-NAEQPCWM.js";import{a as d}from"./chunk-Q66S2TM6.js";import"./chunk-PGXHYGLR.js";import"./chunk-OFT53ARB.js";import"./chunk-HOFUFSNV.js";import{b as N,c as x,g as w}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as q,b as $}from"./chunk-3IJULEGV.js";import{a as k,b as D}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as s,$c as O,Da as m,Ea as f,Ra as a,Zb as V,_ as l,a as v,ab as p,b as M,bb as b,be as Q,cb as P,db as E,fb as I,ga as F,ha as c,ib as T,ie as B,kc as j,ne as L,oa as y,oc as A,oe as H,p as U,pa as S,pb as R,pe as K,qb as _,qe as W,rb as G,tb as h,te as X}from"./chunk-DL2LTWBU.js";var Z=["panelParameters"],o,C=(o=class{constructor(t,i,e){this.fb=t,this.scriptFacadeService=i,this.router=e,this.AlgorithmType=x,this.MachineUnlearningAlgorithmsEnum=w,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(D(this)).subscribe(t=>{this.isScriptActive=N(t),N(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(w.MU)},0)}submit(){if(this.isScriptActive)return;let{algorithm:t,model:i}=this.form.getRawValue(),{model:e}=i,r=M(v({},t),{params:M(v({},this.panelParametersComponent.parametersFormatted),{arch:e})});this.scriptFacadeService.dispatch(q.callScript({configs:r}))}goToChartPage(){this.router.navigate([O.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(L),f($),f(j))},o.\u0275cmp=F({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,e){if(i&1&&R(Z,5),i&2){let r;_(r=G())&&(e.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,e){if(i&1){let r=I();s(0,"p",1),h(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(e.submit())}),h(10," Run "),p(),s(11,"button",8),T("click",function(){return y(r),S(e.goToChartPage())}),h(12,"View Chart"),p()()(),s(13,"div",9),b(14,"ms-terminal-xterm-with-toolbar"),p()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithmType",e.AlgorithmType.MACHINE_UNLEARNING),m(),a("algorithm",e.MachineUnlearningAlgorithmsEnum.MU),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[d,g,u,W,Q,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=U([k()],C);var tt=[{path:"",component:C}],J=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=c({type:t}),t.\u0275inj=l({imports:[A.forChild(tt),A]});let n=t;return n})();var Ft=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=c({type:t}),t.\u0275inj=l({imports:[V,J,d,g,u,X,H,K]});let n=t;return n})();export{Ft as MachineUnlearningModule}; +import{a as u}from"./chunk-XSACZZU3.js";import{a as g}from"./chunk-AFSEUXQ2.js";import"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import"./chunk-NAEQPCWM.js";import{a as d}from"./chunk-ETXCQYCR.js";import"./chunk-PGXHYGLR.js";import"./chunk-SXRVK6GR.js";import"./chunk-HOFUFSNV.js";import{b as N,c as x,g as w}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as q,b as $}from"./chunk-3IJULEGV.js";import{a as k,b as D}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as s,$c as O,Da as m,Ea as f,Ra as a,Zb as V,_ as l,a as v,ab as p,b as M,bb as b,be as Q,cb as P,db as E,fb as I,ga as F,ha as c,ib as T,ie as B,kc as j,ne as L,oa as y,oc as A,oe as H,p as U,pa as S,pb as R,pe as K,qb as _,qe as W,rb as G,tb as h,te as X}from"./chunk-DL2LTWBU.js";var Z=["panelParameters"],o,C=(o=class{constructor(t,i,e){this.fb=t,this.scriptFacadeService=i,this.router=e,this.AlgorithmType=x,this.MachineUnlearningAlgorithmsEnum=w,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(D(this)).subscribe(t=>{this.isScriptActive=N(t),N(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(w.MU)},0)}submit(){if(this.isScriptActive)return;let{algorithm:t,model:i}=this.form.getRawValue(),{model:e}=i,r=M(v({},t),{params:M(v({},this.panelParametersComponent.parametersFormatted),{arch:e})});this.scriptFacadeService.dispatch(q.callScript({configs:r}))}goToChartPage(){this.router.navigate([O.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(L),f($),f(j))},o.\u0275cmp=F({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,e){if(i&1&&R(Z,5),i&2){let r;_(r=G())&&(e.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,e){if(i&1){let r=I();s(0,"p",1),h(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(e.submit())}),h(10," Run "),p(),s(11,"button",8),T("click",function(){return y(r),S(e.goToChartPage())}),h(12,"View Chart"),p()()(),s(13,"div",9),b(14,"ms-terminal-xterm-with-toolbar"),p()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithmType",e.AlgorithmType.MACHINE_UNLEARNING),m(),a("algorithm",e.MachineUnlearningAlgorithmsEnum.MU),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[d,g,u,W,Q,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=U([k()],C);var tt=[{path:"",component:C}],J=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=c({type:t}),t.\u0275inj=l({imports:[A.forChild(tt),A]});let n=t;return n})();var Ft=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=c({type:t}),t.\u0275inj=l({imports:[V,J,d,g,u,X,H,K]});let n=t;return n})();export{Ft as MachineUnlearningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-SG3NCASL.js b/frontend/server/modelsmith-build/browser/chunk-3ZZITZTT.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-SG3NCASL.js rename to frontend/server/modelsmith-build/browser/chunk-3ZZITZTT.js index bae11a6..093cb60 100644 --- a/frontend/server/modelsmith-build/browser/chunk-SG3NCASL.js +++ b/frontend/server/modelsmith-build/browser/chunk-3ZZITZTT.js @@ -1,4 +1,4 @@ -import{a as E,b as P,c as te,d as _}from"./chunk-VVXFBAG6.js";import{a as x,e as I,f as ie}from"./chunk-Q66S2TM6.js";import"./chunk-PGXHYGLR.js";import"./chunk-OFT53ARB.js";import"./chunk-HOFUFSNV.js";import{b as J,d as z,f as N}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as K,b as ee}from"./chunk-3IJULEGV.js";import{a as V,b as Z}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as i,$c as O,Bb as y,Da as d,Ea as p,Ra as u,Z as F,Zb as W,_ as j,ab as o,ba as H,bb as f,ga as h,ha as q,ib as c,ic as S,jc as Y,kc as g,oc as G,p as Q,qe as v,tb as r,te as $,ve as C,we as X}from"./chunk-DL2LTWBU.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 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_BASIC_PTQ],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_BRECQ],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-higher-accuracy"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you need relatively higher accuracy?"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Short PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,fe)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var Se=()=>["Yes","No"],ne=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pretrained-model"]],decls:6,vars:3,consts:[[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you have a pre-trained model?"),o(),i(2,"ms-card-selector",1),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",y(2,Se)),d(2),u("disabled",!t.selectedOption))},dependencies:[_,v]});let l=e;return l})();var ge=()=>["Yes","No"],re=(()=>{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 E,b as P,c as te,d as _}from"./chunk-VVXFBAG6.js";import{a as x,e as I,f as ie}from"./chunk-ETXCQYCR.js";import"./chunk-PGXHYGLR.js";import"./chunk-SXRVK6GR.js";import"./chunk-HOFUFSNV.js";import{b as J,d as z,f as N}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as K,b as ee}from"./chunk-3IJULEGV.js";import{a as V,b as Z}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as i,$c as O,Bb as y,Da as d,Ea as p,Ra as u,Z as F,Zb as W,_ as j,ab as o,ba as H,bb as f,ga as h,ha as q,ib as c,ic as S,jc as Y,kc as g,oc as G,p as Q,qe as v,tb as r,te as $,ve as C,we as X}from"./chunk-DL2LTWBU.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 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_BASIC_PTQ],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_BRECQ],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-higher-accuracy"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you need relatively higher accuracy?"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Short PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,fe)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var Se=()=>["Yes","No"],ne=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pretrained-model"]],decls:6,vars:3,consts:[[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you have a pre-trained model?"),o(),i(2,"ms-card-selector",1),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",y(2,Se)),d(2),u("disabled",!t.selectedOption))},dependencies:[_,v]});let l=e;return l})();var ge=()=>["Yes","No"],re=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.wizardSteps=s,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pruning-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long pruning time?"),o(),i(2,"p",1),r(3,` The model pruning phase may require a similar or even longer duration compared to the model training period. `),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Pruning "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,ge)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var ve=()=>["Yes","No"],ce=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_MINMAX],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-ptq-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long PTQ time?"),o(),i(2,"p",1),r(3,` Our system supports processing times ranging from minutes (short) to several hours (long), ensuring consistent efficiency and reliability for tasks of any duration. `),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Post-training quantization "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,ve)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var D,R=(D=class{constructor(e){this.scriptFacadeService=e,this.isScriptActive=!1,this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Z(this)).subscribe(e=>{this.isScriptActive=J(e)})}ctaCallScript(e){if(!e)return;let L=ie(e);L&&this.scriptFacadeService.dispatch(K.callScript({configs:{alg:L}}))}},D.\u0275fac=function(L){return new(L||D)(H(ee))},D.\u0275prov=F({token:D,factory:D.\u0275fac}),D);R=Q([V()],R);var ae=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-basic-ptq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," High Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var me=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BRECQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-brecq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Low Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var se=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IPG,N.IPR,N.IPM])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-grasp"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Short pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Init pruning "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var le=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP,N.OMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative-one-shot"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Long pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Higher accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var pe=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long pruning time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var de=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.MINMAXPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-minmax"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var Te=()=>["Yes","No"],ue=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE_ONE_SHOT],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_GRASP],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-similar-accuracy"]],decls:16,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you want to have a similar or higher accuracy?\xA0"),o(),i(2,"p",1),r(3,` Expectations for compressed model performance: Anticipate achieving comparable or enhanced accuracy relative to the original model. `),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPretrainedPage()}),r(6," Pruning "),o(),i(7,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(8," Short pruning time "),o()(),i(9,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",5)(11,"button",6),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",7),r(13," Previous "),o(),i(14,"button",8),c("click",function(){return t.handleSelection()}),r(15,"Next"),o()()),n&2&&(d(9),u("options",y(2,Te)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var he=(()=>{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-xterm-with-toolbar"),o()())},dependencies:[Y,x],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 Ce=[{path:"",component:he,children:[{path:"",redirectTo:s.PRETRAINED_MODEL,pathMatch:"full"},{path:s.PRETRAINED_MODEL,component:ne},{path:s.PRUNING_TIME,component:re},{path:s.PTQ_TIME,component:ce},{path:s.SIMILAR_ACCURACY,component:ue},{path:s.HIGHER_ACCURACY,component:oe},{path:s.RECOMMENDED_BASIC_PTQ,component:ae},{path:s.RECOMMENDED_BRECQ,component:me},{path:s.RECOMMENDED_GRASP,component:se},{path:s.RECOMMENDED_ITERATIVE,component:pe},{path:s.RECOMMENDED_MINMAX,component:de},{path:s.RECOMMENDED_ITERATIVE_ONE_SHOT,component:le}]}],_e=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({imports:[G.forChild(Ce),G]});let l=e;return l})();var li=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({providers:[R],imports:[W,_e,x,_,X,te,$]});let l=e;return l})();export{li as WizardModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-FRHX5LPN.js b/frontend/server/modelsmith-build/browser/chunk-AFSEUXQ2.js similarity index 98% rename from frontend/server/modelsmith-build/browser/chunk-FRHX5LPN.js rename to frontend/server/modelsmith-build/browser/chunk-AFSEUXQ2.js index 4922f71..d7689de 100644 --- a/frontend/server/modelsmith-build/browser/chunk-FRHX5LPN.js +++ b/frontend/server/modelsmith-build/browser/chunk-AFSEUXQ2.js @@ -1 +1 @@ -import{a as Me}from"./chunk-BTI2I76F.js";import{a as ye,b as Fe}from"./chunk-GACPU6QS.js";import{a as he,b as _e}from"./chunk-6JSLXF7X.js";import{d as ge}from"./chunk-Q66S2TM6.js";import{a as Ce,b as ve}from"./chunk-PGXHYGLR.js";import{b as ae}from"./chunk-LRK34XDC.js";import{a as ne,b as me,c as pe,d as se,e as le,f as ce,g as de,h as ue,i as fe}from"./chunk-2CKK74GJ.js";import{a as re,b as ie}from"./chunk-GWFXRHCV.js";import{b as oe,l as xe}from"./chunk-3IJULEGV.js";import{a as L,b as M}from"./chunk-QJ55TOIV.js";import{a as Y,d as z,h as J,i as Q,j as ee,k as te}from"./chunk-HULQWYRR.js";import{$a as n,$c as O,Ab as V,Da as a,Ea as d,P as A,Pa as y,Qd as R,Ra as c,Xa as u,Xd as G,Ya as F,Za as x,Zd as p,_a as g,_d as h,ab as o,ae as $,bb as _,be as w,ca as T,cb as P,ce as K,db as D,ga as b,je as j,kb as f,ke as q,le as B,me as U,na as E,nb as C,ne as H,p as S,pe as X,tb as l,ub as v,vb as N,ve as W,w as I,we as Z,zb as k}from"./chunk-DL2LTWBU.js";var Se=i=>{let e=[];if(i.validators)for(let[t,r]of Object.entries(i.validators))switch(t){case"required":r&&e.push(p.required);break;case"min":e.push(p.min(r));break;case"max":e.push(p.max(r));break;case"minLength":e.push(p.minLength(r));break;case"maxLength":e.push(p.maxLength(r));break;case"pattern":e.push(p.pattern(r));break;case"requiredTrue":r&&e.push(p.requiredTrue);break;case"email":r&&e.push(p.email);break;case le:e.push(ce(r));break;case de:e.push(ue());break;case ne:e.push(me());break;case pe:Array.isArray(r)&&r.length===2&&e.push(se(r));break}return e};function Ae(i,e){if(i&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8),_(4,"input",9)(5,"mat-icon",10),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(2),v(r.label),a(2),c("formControlName",m)("placeholder",r.placeholder)("type",r.inputType)("step",r.inputArrowsStepRate||1),a(),C("matTooltip",r.help)}}function Te(i,e){if(i&1&&(n(0,"mat-option",12),l(1),o()),i&2){let t=e.$implicit;c("value",t.value),a(),N(" ",t.viewValue," ")}}function be(i,e){if(i&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8)(4,"mat-select",11),x(5,Te,2,2,"mat-option",12,F),o(),_(7,"mat-icon",10),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(2),v(r.label),a(2),c("formControlName",m),a(),g(r.options),a(2),C("matTooltip",r.help)}}function Ee(i,e){if(i&1&&(n(0,"div",7)(1,"mat-checkbox",13),l(2),o(),n(3,"div",14),_(4,"mat-icon",15),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(),c("formControlName",m),a(),v(r.label),a(2),C("matTooltip",r.help)}}function Pe(i,e){if(i&1&&y(0,Ae,6,6,"div",6)(1,be,8,3,"div",6)(2,Ee,5,3,"div",7),i&2){let t=e.$implicit;u(t.inputType==="text"||t.inputType==="number"?0:-1),a(),u(t.inputType==="select"?1:-1),a(),u(t.inputType==="checkbox"?2:-1)}}function De(i,e){if(i&1&&(n(0,"div",2),P(1,4),n(2,"div",5),x(3,Pe,3,3,null,null,F),o(),D(),o()),i&2){let t=f();a(),c("formGroupName",t.controlKey),a(2),g(t.parameters)}}function Ne(i,e){i&1&&(n(0,"p",3),l(1,"No parameters configured."),o())}var s,Ie=(s=class{ngOnChanges(e){e.algorithm&&e.algorithm.currentValue&&(this.alg=e.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(e,t,r,m){this.fb=e,this.controlContainer=t,this.parametersFacadeService=r,this.scriptFacadeService=m,this.controlKey="",this.RoutesList=O,this.alg=ge,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new K({parametersArray:new U([])}))}loadParametersForAlgorithm(e){this.parametersFacadeService.dispatch(Me.loadParameters({arg:e})),this.parametersFacadeService.parameters$.pipe(I(t=>t[e]?.data||[]),A(1),M(this)).subscribe(t=>{this.buildFormArray(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(M(this)).subscribe(e=>{this.isScriptActive=ae(e)})}buildFormArray(e){this.parametersFormArray.clear(),e.forEach(t=>{let r=this.fb.control(t.defaultValue,Se(t));this.parametersFormArray.push(r)}),this.isScriptActive?this.paramsFormGroup.disable():this.paramsFormGroup.enable(),this.parameters=e}get parametersFormatted(){let e={},t=this.parametersFormArray.getRawValue();return this.parameters.forEach((r,m)=>{e[r.argName]=t[m]}),e}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},s.\u0275fac=function(t){return new(t||s)(d(H),d(h),d(xe),d(oe))},s.\u0275cmp=b({type:s,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[k([],[{provide:h,useFactory:()=>T(h,{skipSelf:!0})}]),E,V],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","","msErrorDisplay","",3,"formControlName","placeholder","type","step"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],["msErrorDisplay","",3,"formControlName"],[3,"value"],[3,"formControlName"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"]],template:function(t,r){t&1&&(n(0,"mat-card",0)(1,"p",1),l(2,"Parameters"),o(),y(3,De,5,1,"div",2)(4,Ne,2,0,"p",3),o()),t&2&&(a(3),u(r.parameters.length?3:4))},dependencies:[te,ee,J,Y,z,X,G,$,w,B,j,q,ve,Ce,Q,Fe,ye,R,ie,re,_e,he,Z,W,fe],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}"]}),s);Ie=S([L()],Ie);export{Ie as a}; +import{a as Me}from"./chunk-BTI2I76F.js";import{a as ye,b as Fe}from"./chunk-GACPU6QS.js";import{a as he,b as _e}from"./chunk-6JSLXF7X.js";import{d as ge}from"./chunk-ETXCQYCR.js";import{a as Ce,b as ve}from"./chunk-PGXHYGLR.js";import{b as ae}from"./chunk-LRK34XDC.js";import{a as ne,b as me,c as pe,d as se,e as le,f as ce,g as de,h as ue,i as fe}from"./chunk-2CKK74GJ.js";import{a as re,b as ie}from"./chunk-GWFXRHCV.js";import{b as oe,l as xe}from"./chunk-3IJULEGV.js";import{a as L,b as M}from"./chunk-QJ55TOIV.js";import{a as Y,d as z,h as J,i as Q,j as ee,k as te}from"./chunk-HULQWYRR.js";import{$a as n,$c as O,Ab as V,Da as a,Ea as d,P as A,Pa as y,Qd as R,Ra as c,Xa as u,Xd as G,Ya as F,Za as x,Zd as p,_a as g,_d as h,ab as o,ae as $,bb as _,be as w,ca as T,cb as P,ce as K,db as D,ga as b,je as j,kb as f,ke as q,le as B,me as U,na as E,nb as C,ne as H,p as S,pe as X,tb as l,ub as v,vb as N,ve as W,w as I,we as Z,zb as k}from"./chunk-DL2LTWBU.js";var Se=i=>{let e=[];if(i.validators)for(let[t,r]of Object.entries(i.validators))switch(t){case"required":r&&e.push(p.required);break;case"min":e.push(p.min(r));break;case"max":e.push(p.max(r));break;case"minLength":e.push(p.minLength(r));break;case"maxLength":e.push(p.maxLength(r));break;case"pattern":e.push(p.pattern(r));break;case"requiredTrue":r&&e.push(p.requiredTrue);break;case"email":r&&e.push(p.email);break;case le:e.push(ce(r));break;case de:e.push(ue());break;case ne:e.push(me());break;case pe:Array.isArray(r)&&r.length===2&&e.push(se(r));break}return e};function Ae(i,e){if(i&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8),_(4,"input",9)(5,"mat-icon",10),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(2),v(r.label),a(2),c("formControlName",m)("placeholder",r.placeholder)("type",r.inputType)("step",r.inputArrowsStepRate||1),a(),C("matTooltip",r.help)}}function Te(i,e){if(i&1&&(n(0,"mat-option",12),l(1),o()),i&2){let t=e.$implicit;c("value",t.value),a(),N(" ",t.viewValue," ")}}function be(i,e){if(i&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8)(4,"mat-select",11),x(5,Te,2,2,"mat-option",12,F),o(),_(7,"mat-icon",10),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(2),v(r.label),a(2),c("formControlName",m),a(),g(r.options),a(2),C("matTooltip",r.help)}}function Ee(i,e){if(i&1&&(n(0,"div",7)(1,"mat-checkbox",13),l(2),o(),n(3,"div",14),_(4,"mat-icon",15),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(),c("formControlName",m),a(),v(r.label),a(2),C("matTooltip",r.help)}}function Pe(i,e){if(i&1&&y(0,Ae,6,6,"div",6)(1,be,8,3,"div",6)(2,Ee,5,3,"div",7),i&2){let t=e.$implicit;u(t.inputType==="text"||t.inputType==="number"?0:-1),a(),u(t.inputType==="select"?1:-1),a(),u(t.inputType==="checkbox"?2:-1)}}function De(i,e){if(i&1&&(n(0,"div",2),P(1,4),n(2,"div",5),x(3,Pe,3,3,null,null,F),o(),D(),o()),i&2){let t=f();a(),c("formGroupName",t.controlKey),a(2),g(t.parameters)}}function Ne(i,e){i&1&&(n(0,"p",3),l(1,"No parameters configured."),o())}var s,Ie=(s=class{ngOnChanges(e){e.algorithm&&e.algorithm.currentValue&&(this.alg=e.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(e,t,r,m){this.fb=e,this.controlContainer=t,this.parametersFacadeService=r,this.scriptFacadeService=m,this.controlKey="",this.RoutesList=O,this.alg=ge,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new K({parametersArray:new U([])}))}loadParametersForAlgorithm(e){this.parametersFacadeService.dispatch(Me.loadParameters({arg:e})),this.parametersFacadeService.parameters$.pipe(I(t=>t[e]?.data||[]),A(1),M(this)).subscribe(t=>{this.buildFormArray(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(M(this)).subscribe(e=>{this.isScriptActive=ae(e)})}buildFormArray(e){this.parametersFormArray.clear(),e.forEach(t=>{let r=this.fb.control(t.defaultValue,Se(t));this.parametersFormArray.push(r)}),this.isScriptActive?this.paramsFormGroup.disable():this.paramsFormGroup.enable(),this.parameters=e}get parametersFormatted(){let e={},t=this.parametersFormArray.getRawValue();return this.parameters.forEach((r,m)=>{e[r.argName]=t[m]}),e}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},s.\u0275fac=function(t){return new(t||s)(d(H),d(h),d(xe),d(oe))},s.\u0275cmp=b({type:s,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[k([],[{provide:h,useFactory:()=>T(h,{skipSelf:!0})}]),E,V],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","","msErrorDisplay","",3,"formControlName","placeholder","type","step"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],["msErrorDisplay","",3,"formControlName"],[3,"value"],[3,"formControlName"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"]],template:function(t,r){t&1&&(n(0,"mat-card",0)(1,"p",1),l(2,"Parameters"),o(),y(3,De,5,1,"div",2)(4,Ne,2,0,"p",3),o()),t&2&&(a(3),u(r.parameters.length?3:4))},dependencies:[te,ee,J,Y,z,X,G,$,w,B,j,q,ve,Ce,Q,Fe,ye,R,ie,re,_e,he,Z,W,fe],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}"]}),s);Ie=S([L()],Ie);export{Ie as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ETXCQYCR.js b/frontend/server/modelsmith-build/browser/chunk-ETXCQYCR.js new file mode 100644 index 0000000..5e51f1a --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-ETXCQYCR.js @@ -0,0 +1,2 @@ +import{a as C,b as E,c as x,d as A}from"./chunk-SXRVK6GR.js";import{d as T,f as i}from"./chunk-LRK34XDC.js";import{a as S}from"./chunk-QJ55TOIV.js";import{$a as _,Ab as b,Ea as d,Ia as M,ab as u,bb as I,fb as w,ga as y,ib as P,oa as a,p as g,pa as s,pb as v,qb as f,rb as h,sb as m,tb as k}from"./chunk-DL2LTWBU.js";var B=["terminalWrapper"],Q=["popoverElement"],o,O=(o=class{constructor(e,r){this.renderer=e,this.popoverManager=r}ngOnInit(){this.listenToOutsideClickEvents()}listenToOutsideClickEvents(){this.clickListener=this.renderer.listen("document","click",e=>{this.handleClickOutside(e)})}handleClickOutside(e){let r=e.target.closest(".popover-element");this.terminalWrapper&&!this.terminalWrapper.nativeElement.contains(e.target)&&!r&&this.popoverManager.hasActivePopover("terminal-popover")&&this.popoverManager.closePopoverById("terminal-popover",{result:{},status:C.CLOSE})}ngOnDestroy(){this.clickListener&&this.clickListener()}},o.\u0275fac=function(r){return new(r||o)(d(M),d(E))},o.\u0275cmp=y({type:o,selectors:[["ms-terminal-xterm-with-toolbar"]],viewQuery:function(r,l){if(r&1&&(v(B,5),v(Q,5)),r&2){let t;f(t=h())&&(l.terminalWrapper=t.first),f(t=h())&&(l.popoverElement=t.first)}},standalone:!0,features:[b],decls:9,vars:0,consts:[["terminalWrapper",""],["terminal",""],[1,"ms-terminal-wrapper"],[1,"top-terminal-section"],[1,"heading-section-title","mb-1","flex","items-center"],["popoverId","terminal-popover",3,"clearTerminal","scrollToTopTerminal","scrollToBottomTerminal","searchTerminal","disposeSearch"]],template:function(r,l){if(r&1){let t=w();_(0,"div",2,0)(2,"div",3)(3,"div",4),k(4,"Terminal"),u(),_(5,"div")(6,"ms-terminal-toolbar",5),P("clearTerminal",function(){a(t);let n=m(8);return s(n.clearTerminal())})("scrollToTopTerminal",function(){a(t);let n=m(8);return s(n.scrollToTop())})("scrollToBottomTerminal",function(){a(t);let n=m(8);return s(n.scrollToBottom())})("searchTerminal",function(n){a(t);let W=m(8);return s(W.search(n))})("disposeSearch",function(){a(t);let n=m(8);return s(n.clearSearch())}),u()()(),I(7,"ms-terminal-xterm",null,1),u()}},dependencies:[A,x],styles:[`.ms-terminal-wrapper{overflow-x:auto}.ms-terminal-wrapper .terminal-wrapper{border:10px solid var(--terminal-color);background-color:var(--terminal-color);border-radius:10px}.ms-terminal-wrapper .top-terminal-section{display:flex;justify-content:space-between} +`],encapsulation:2}),o);O=g([S()],O);var L=[{key:i.IPG,value:"GraSP pruning"},{key:i.IPM,value:"Magnitude-based init pruning"},{key:i.IPR,value:"Random init pruning"},{key:i.IMP,value:"Iterative Magnitude Pruning"},{key:i.OMP,value:"One-shot Magnitude Pruning"},{key:i.IPS,value:"Init Pruning Snip"},{key:i.IPSY,value:"Init Pruning Synflow"},{key:i.IPMB,value:"Init Pruning Magnitude Both"}],V=[{key:T.BPTQ,value:"Basic PTQ"},{key:T.BRECQ,value:"Brec-q"},{key:T.MINMAXPTQ,value:"Minmax-ptq"}],R=[...L,...V],z=i.IMP,K=p=>R.filter(e=>p.includes(e.key)).map(e=>e.value),Y=p=>{let e=L.find(l=>l.value===p);if(e)return e.key;let r=V.find(l=>l.value===p);return r?r.key:null};export{O as a,L as b,V as c,z as d,K as e,Y as f}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MOD743A5.js b/frontend/server/modelsmith-build/browser/chunk-J5KT46WB.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-MOD743A5.js rename to frontend/server/modelsmith-build/browser/chunk-J5KT46WB.js index 5ed8ca8..a5d6c94 100644 --- a/frontend/server/modelsmith-build/browser/chunk-MOD743A5.js +++ b/frontend/server/modelsmith-build/browser/chunk-J5KT46WB.js @@ -1 +1 @@ -import{a as b,b as V,c as x,d as y}from"./chunk-OFT53ARB.js";import"./chunk-HOFUFSNV.js";import"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import{b as F,c as P}from"./chunk-XLEDMSNZ.js";import"./chunk-3IJULEGV.js";import{a as D}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as p,Ab as C,Da as T,Ea as c,Ra as d,Zb as h,ab as s,bb as g,fb as v,ga as f,ib as M,oa as o,p as u,pa as t,sb as l,tb as w}from"./chunk-DL2LTWBU.js";var r,S=(r=class{constructor(m,n){this.dialogRef=m,this.popoverManager=n,this.fullscreenPopoverId="popover-fullscreen"}closeDialog(){this.popoverManager.hasActivePopover(this.fullscreenPopoverId)&&this.popoverManager.closePopoverById(this.fullscreenPopoverId,{result:{},status:b.CLOSE},!1),this.dialogRef.close()}},r.\u0275fac=function(n){return new(n||r)(c(F),c(V))},r.\u0275cmp=f({type:r,selectors:[["ms-terminal-fullscreen-dialog"]],standalone:!0,features:[C],decls:8,vars:2,consts:[["terminal",""],[1,"ms-terminal-wrapper"],[1,"top-terminal-section"],[1,"heading-section-title","mb-1","flex","items-center"],[3,"clearTerminal","scrollToTopTerminal","scrollToBottomTerminal","searchTerminal","disposeSearch","exitFullscreen","isFullscreen","popoverId"]],template:function(n,_){if(n&1){let i=v();p(0,"ms-dialog")(1,"div",1)(2,"div",2)(3,"div",3),w(4,"Terminal"),s(),p(5,"ms-terminal-toolbar",4),M("clearTerminal",function(){o(i);let e=l(7);return t(e.clearTerminal())})("scrollToTopTerminal",function(){o(i);let e=l(7);return t(e.scrollToTop())})("scrollToBottomTerminal",function(){o(i);let e=l(7);return t(e.scrollToBottom())})("searchTerminal",function(e){o(i);let I=l(7);return t(I.search(e))})("disposeSearch",function(){o(i);let e=l(7);return t(e.clearSearch())})("exitFullscreen",function(){return o(i),t(_.closeDialog())}),s()(),g(6,"ms-terminal-xterm",null,0),s()()}n&2&&(T(5),d("isFullscreen",!0)("popoverId",_.fullscreenPopoverId))},dependencies:[h,P,y,x],styles:[".ms-terminal-wrapper[_ngcontent-%COMP%]{overflow-x:auto}.ms-terminal-wrapper[_ngcontent-%COMP%] .terminal-wrapper[_ngcontent-%COMP%]{border:10px solid var(--terminal-color);background-color:var(--terminal-color);border-radius:10px}.ms-terminal-wrapper[_ngcontent-%COMP%] .xterm-viewport[_ngcontent-%COMP%]{overflow-y:auto!important}.ms-terminal-wrapper[_ngcontent-%COMP%] .top-terminal-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),r);S=u([D({})],S);export{S as MsTerminalFullscreenDialogComponent}; +import{a as b,b as V,c as x,d as y}from"./chunk-SXRVK6GR.js";import"./chunk-HOFUFSNV.js";import"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import{b as F,c as P}from"./chunk-XLEDMSNZ.js";import"./chunk-3IJULEGV.js";import{a as D}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as p,Ab as C,Da as T,Ea as c,Ra as d,Zb as h,ab as s,bb as g,fb as v,ga as f,ib as M,oa as o,p as u,pa as t,sb as l,tb as w}from"./chunk-DL2LTWBU.js";var r,S=(r=class{constructor(m,n){this.dialogRef=m,this.popoverManager=n,this.fullscreenPopoverId="popover-fullscreen"}closeDialog(){this.popoverManager.hasActivePopover(this.fullscreenPopoverId)&&this.popoverManager.closePopoverById(this.fullscreenPopoverId,{result:{},status:b.CLOSE},!1),this.dialogRef.close()}},r.\u0275fac=function(n){return new(n||r)(c(F),c(V))},r.\u0275cmp=f({type:r,selectors:[["ms-terminal-fullscreen-dialog"]],standalone:!0,features:[C],decls:8,vars:2,consts:[["terminal",""],[1,"ms-terminal-wrapper"],[1,"top-terminal-section"],[1,"heading-section-title","mb-1","flex","items-center"],[3,"clearTerminal","scrollToTopTerminal","scrollToBottomTerminal","searchTerminal","disposeSearch","exitFullscreen","isFullscreen","popoverId"]],template:function(n,_){if(n&1){let i=v();p(0,"ms-dialog")(1,"div",1)(2,"div",2)(3,"div",3),w(4,"Terminal"),s(),p(5,"ms-terminal-toolbar",4),M("clearTerminal",function(){o(i);let e=l(7);return t(e.clearTerminal())})("scrollToTopTerminal",function(){o(i);let e=l(7);return t(e.scrollToTop())})("scrollToBottomTerminal",function(){o(i);let e=l(7);return t(e.scrollToBottom())})("searchTerminal",function(e){o(i);let I=l(7);return t(I.search(e))})("disposeSearch",function(){o(i);let e=l(7);return t(e.clearSearch())})("exitFullscreen",function(){return o(i),t(_.closeDialog())}),s()(),g(6,"ms-terminal-xterm",null,0),s()()}n&2&&(T(5),d("isFullscreen",!0)("popoverId",_.fullscreenPopoverId))},dependencies:[h,P,y,x],styles:[".ms-terminal-wrapper[_ngcontent-%COMP%]{overflow-x:auto}.ms-terminal-wrapper[_ngcontent-%COMP%] .terminal-wrapper[_ngcontent-%COMP%]{border:10px solid var(--terminal-color);background-color:var(--terminal-color);border-radius:10px}.ms-terminal-wrapper[_ngcontent-%COMP%] .xterm-viewport[_ngcontent-%COMP%]{overflow-y:auto!important}.ms-terminal-wrapper[_ngcontent-%COMP%] .top-terminal-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),r);S=u([D({})],S);export{S as MsTerminalFullscreenDialogComponent}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QLPOWT64.js b/frontend/server/modelsmith-build/browser/chunk-KMXD6IIQ.js similarity index 93% rename from frontend/server/modelsmith-build/browser/chunk-QLPOWT64.js rename to frontend/server/modelsmith-build/browser/chunk-KMXD6IIQ.js index c1c0acb..cfc248c 100644 --- a/frontend/server/modelsmith-build/browser/chunk-QLPOWT64.js +++ b/frontend/server/modelsmith-build/browser/chunk-KMXD6IIQ.js @@ -1 +1 @@ -import{a as u}from"./chunk-FRHX5LPN.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import{a as f}from"./chunk-Q66S2TM6.js";import"./chunk-PGXHYGLR.js";import"./chunk-OFT53ARB.js";import"./chunk-HOFUFSNV.js";import{b as S,c as X,e as y}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as x,b as q}from"./chunk-3IJULEGV.js";import{a as G,b as L}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as s,Da as n,Ea as g,Ra as a,Zb as D,_ as p,a as h,ab as c,b,bb as v,be as U,cb as E,db as P,fb as I,ga as w,ha as l,ib as N,ie as V,ne as _,oa as T,oc as C,oe as Q,p as F,pa as A,pb as O,pe as W,qb as R,qe as k,rb as j,tb as M,te as B}from"./chunk-DL2LTWBU.js";var $=["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=b(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(x.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(_),g(q))},r.\u0275cmp=w({type:r,selectors:[["ms-multi-modal"]],viewQuery:function(i,e){if(i&1&&O($,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();s(0,"p",1),M(1,"Multi-modal"),c(),s(2,"div",2)(3,"div",3),E(4,4),v(5,"ms-panel-parameters",5,0),P(),s(7,"div")(8,"button",6),N("click",function(){return T(o),A(e.submit())}),M(9," Run "),c()()(),s(10,"div",7),v(11,"ms-terminal-xterm-with-toolbar"),c()()}i&2&&(n(2),a("formGroup",e.form),n(2),a("formGroup",e.form),n(),a("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),n(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[u,f,U,V,k],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);d=F([G()],d);var z=[{path:"",component:d}],Z=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(z),C]});let 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,Z,Q,W,B]});let m=t;return m})();export{yt as MultiModalModule}; +import{a as u}from"./chunk-AFSEUXQ2.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import{a as f}from"./chunk-ETXCQYCR.js";import"./chunk-PGXHYGLR.js";import"./chunk-SXRVK6GR.js";import"./chunk-HOFUFSNV.js";import{b as S,c as X,e as y}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as x,b as q}from"./chunk-3IJULEGV.js";import{a as G,b as L}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as s,Da as n,Ea as g,Ra as a,Zb as D,_ as p,a as h,ab as c,b,bb as v,be as U,cb as E,db as P,fb as I,ga as w,ha as l,ib as N,ie as V,ne as _,oa as T,oc as C,oe as Q,p as F,pa as A,pb as O,pe as W,qb as R,qe as k,rb as j,tb as M,te as B}from"./chunk-DL2LTWBU.js";var $=["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=b(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(x.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(_),g(q))},r.\u0275cmp=w({type:r,selectors:[["ms-multi-modal"]],viewQuery:function(i,e){if(i&1&&O($,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();s(0,"p",1),M(1,"Multi-modal"),c(),s(2,"div",2)(3,"div",3),E(4,4),v(5,"ms-panel-parameters",5,0),P(),s(7,"div")(8,"button",6),N("click",function(){return T(o),A(e.submit())}),M(9," Run "),c()()(),s(10,"div",7),v(11,"ms-terminal-xterm-with-toolbar"),c()()}i&2&&(n(2),a("formGroup",e.form),n(2),a("formGroup",e.form),n(),a("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),n(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[u,f,U,V,k],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);d=F([G()],d);var z=[{path:"",component:d}],Z=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(z),C]});let 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,Z,Q,W,B]});let m=t;return m})();export{yt as MultiModalModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OFT53ARB.js b/frontend/server/modelsmith-build/browser/chunk-OFT53ARB.js deleted file mode 100644 index 78b128b..0000000 --- a/frontend/server/modelsmith-build/browser/chunk-OFT53ARB.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Je,b as J}from"./chunk-HOFUFSNV.js";import{b as Ge}from"./chunk-LRK34XDC.js";import{i as Qe}from"./chunk-2CKK74GJ.js";import{a as St,b as Tt,c as gt}from"./chunk-VLO6NL53.js";import{a as Ye,b as We}from"./chunk-GWFXRHCV.js";import{b as Q,c as Ke}from"./chunk-XX6ZYDLH.js";import{d as qe}from"./chunk-XLEDMSNZ.js";import{a as $e,b as q}from"./chunk-3IJULEGV.js";import{a as M,b as f}from"./chunk-QJ55TOIV.js";import{b as ze,n as Xe,s as Le}from"./chunk-CYUWMGXJ.js";import{a as Be,d as Ne,h as Ue,i as W,j as He,k as K}from"./chunk-HULQWYRR.js";import{$ as fe,$a as s,Ab as C,Ba as ue,D as pe,Da as I,Ea as a,Eb as Ce,Gb as Me,I as V,J as B,Ra as P,Rb as we,Ub as De,Xd as Ie,Z as _,Zb as A,a as k,ab as l,ae as _e,ba as O,bb as c,be as Ee,ce as Ae,e as re,ee as xe,f as ne,fb as ve,ga as b,ia as he,ib as m,ie as ke,j as se,ja as de,lb as Se,le as Re,mb as Te,ne as je,oa as y,oe as Ve,p as g,pa as F,pb as ge,pe as X,qb as be,rb as ye,rc as Oe,sb as Fe,sc as ae,se as L,tb as E,te as Y,ua as N,ub as Pe,vc as R,ve as $,wa as U,wc as z,we as G,xa as h,yc as le,zb as H}from"./chunk-DL2LTWBU.js";var w=function(r){return r.OPEN="open",r.DISMISS="dismiss",r.SAVE="save",r.CLOSE="close",r}(w||{});var Ze="200px",et="80px",ce="top";var tt={top:{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-24,offsetX:-9},bottom:{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:4,offsetX:-7},left:{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-22,offsetY:-12},right:{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:8,offsetY:-10}};var d=class{constructor(e){this.overlayRef=e,this.isClosing=!1,this.afterClosedSubject=new se,this.dataSubject=new se,this.data$=this.dataSubject.asObservable()}emitData(e){this.dataSubject.next(e)}backdropClick(){return this.overlayRef.backdropClick()}close(e,o=!0){this.isClosing=!0,this.afterClosedSubject.next(e),this.afterClosedSubject.complete(),this.dataSubject.complete(),setTimeout(()=>{this.overlayRef.dispose()},o?150:0)}afterClosed(){return this.afterClosedSubject.asObservable()}updatePosition(){this.overlayRef.updatePosition()}};var x=new fe("POPOVER");var ot=(()=>{let e=class e{constructor(){this.activePopovers=new Map}registerPopover(t,i){this.activePopovers.set(t,i)}deregisterPopover(t){this.activePopovers.delete(t)}closePopoverById(t,i,n=!0){let p=this.activePopovers.get(t);p&&(p.close(i,n),this.activePopovers.delete(t))}closeAllPopovers(){this.activePopovers.forEach(t=>t.close()),this.activePopovers.clear()}hasActivePopover(t){return this.activePopovers.has(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var rt=re(St()),nt=re(Tt()),st=re(gt());var Ct=["terminal"],u,it=(u=class{constructor(e){this.terminalWebSocketService=e,this.fitAddon=new rt.FitAddon,this.searchAddon=new nt.SearchAddon}ngOnInit(){this.initializeTerminal(),this.subscribeToWebSocketMessages()}ngAfterViewInit(){requestAnimationFrame(()=>{this.adjustTerminalContainer()})}initializeTerminal(){this.terminal=new st.Terminal(k({cursorBlink:!0,theme:{background:"#D0D4D9",foreground:"#000000",cursor:"#000000",selectionBackground:"#FFDD00",selectionForeground:"#000000"},allowProposedApi:!0},this.options)),this.terminal.loadAddon(this.fitAddon),this.terminal.loadAddon(this.searchAddon),this.terminal.open(this.terminalDiv.nativeElement),this.setupResizeObserver(),this.terminal.onData(e=>{this.terminalWebSocketService.sendMessage(e)})}subscribeToWebSocketMessages(){this.terminalWebSocketService.messages$.pipe(f(this)).subscribe(e=>{this.terminal.write(e)})}setupResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.adjustTerminalContainer()}),this.resizeObserver.observe(this.terminalDiv.nativeElement)}adjustTerminalContainer(){this.adjustHeightToParent(),this.fitAddon.fit()}adjustHeightToParent(){let e=this.terminalDiv.nativeElement.parentElement.parentElement.parentElement.parentElement;if(e){this.terminalDiv.nativeElement.style.height="auto";let i=e.offsetHeight-100;this.terminalDiv.nativeElement.style.height=`${i}px`}}ngOnDestroy(){this.resizeObserver?.disconnect(),this.terminal.dispose()}search(e){this.searchAddon.findNext(e,{decorations:{matchBackground:"#FFFF00",matchBorder:"#FFFF00",matchOverviewRuler:"#FFFF00",activeMatchBackground:"#FFFF00",activeMatchBorder:"#FFFF00",activeMatchColorOverviewRuler:"#FFFF00"}})}clearSearch(){this.searchAddon.clearDecorations(),this.searchAddon.findNext("")}clearTerminal(){this.terminal.clear()}scrollToTop(){this.terminal.scrollToTop()}scrollToBottom(){this.terminal.scrollToBottom()}},u.\u0275fac=function(o){return new(o||u)(a(J))},u.\u0275cmp=b({type:u,selectors:[["ms-terminal-xterm"]],viewQuery:function(o,t){if(o&1&&ge(Ct,7),o&2){let i;be(i=ye())&&(t.terminalDiv=i.first)}},inputs:{options:"options"},standalone:!0,features:[H([q,Je]),C],decls:2,vars:0,consts:[["terminal",""],[1,"terminal-wrapper"]],template:function(o,t){o&1&&c(0,"div",1,0)}}),u);it=g([M({})],it);var lt=(r,e)=>{let o={};return r&&at(o,r,"width"),e&&at(o,e,"height"),o},at=(r,e,o)=>{let t=Mt(e);t==="px"||t==="rem"||t==="em"?r[`${o}.${t}`]=parseFloat(e):r[o]=e},Mt=r=>{let o=(typeof r=="string"?r:"").match(/(px|rem|em|vw|vh|%)$/);return o?o[0]:"px"},ct=()=>"popover-"+Math.random().toString(36).slice(2,11);var ee=(()=>{let e=class e{constructor(t,i,n,p){this.overlay=t,this.injector=i,this.scrollDispatcher=n,this.popoverManager=p}open(t,i,n,p){let ht=this.getPositionStrategy(i,n?.position??ce),me=this.overlay.create(k({positionStrategy:ht},n||{})),j=new d(me),dt=N.create({parent:this.injector,providers:[{provide:d,useValue:j},{provide:x,useValue:k({position:ce,closePopoverOnBackdropClick:!1,closePopoverOnEscKeyUp:!0,width:n?.width||Ze,height:n?.height||et},n)}]}),ut=new ze(t,null,dt);me.attach(ut);let vt=p??ct();return this.popoverManager.registerPopover(vt,j),this.scrollDispatcher.scrolled().subscribe(()=>{j.updatePosition()}),j}getPositionStrategy(t,i){let n=t instanceof U?t.nativeElement:t,p=tt[i];return this.overlay.position().flexibleConnectedTo(n).withFlexibleDimensions(!1).withPush(!1).withPositions([p]).withViewportMargin(0)}};e.\u0275fac=function(i){return new(i||e)(O(Le),O(N),O(Xe),O(ot))},e.\u0275prov=_({token:e,factory:e.\u0275fac});let r=e;return r})();var mt=(()=>{let e=class e{constructor(t){this.el=t}ngAfterViewInit(){setTimeout(()=>{this.el.nativeElement.focus()},0)}};e.\u0275fac=function(i){return new(i||e)(a(U))},e.\u0275dir=he({type:e,selectors:[["","msAutofocus",""]],standalone:!0});let r=e;return r})();var te=(()=>{let e=class e{constructor(t){this.dialogService=t}openFullScreenDialog(t){return ne(this,null,function*(){if(t)return;let{MsTerminalFullscreenDialogComponent:i}=yield import("./chunk-MOD743A5.js");document.body.classList.add("no-scroll"),this.dialogService.open(i,{showHeader:!1,showFooter:!1,showSaveButton:!1,width:"100vw",height:"100vh"}).afterClosed().pipe(V(1)).subscribe(()=>{document.body.classList.remove("no-scroll")})})}openMessagesHistoryDialog(){return ne(this,null,function*(){let{MsTerminalMessagesHistoryDialogComponent:t}=yield import("./chunk-U6KQ3SSJ.js");this.dialogService.open(t,{title:"Terminal history",showSaveButton:!1,width:"60vw",height:"75vh"})})}};e.\u0275fac=function(i){return new(i||e)(O(qe))},e.\u0275prov=_({token:e,factory:e.\u0275fac});let r=e;return r})();var pt=(()=>{let e=class e{transform(t,i){return lt(t,i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=de({name:"iconPanelSizeStyles",type:e,pure:!0,standalone:!0});let r=e;return r})();var _t=["*"],v,oe=(v=class{constructor(e,o){this.popoverRef=e,this.data=o,this.actionEvent=new h,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(w.CLOSE),this.popoverRef.close({status:w.CLOSE})}onSave(){this.actionEvent.emit(w.SAVE),this.popoverRef.close({status:w.SAVE})}onDismiss(){this.actionEvent.emit(w.DISMISS),this.popoverRef.close({status:w.DISMISS})}closeDrawerOnBackdropClick(){this.data.closePopoverOnBackdropClick&&this.popoverRef.backdropClick().pipe(f(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.data.closePopoverOnEscKeyUp&&this.onDismiss()}},v.\u0275fac=function(o){return new(o||v)(a(d),a(x))},v.\u0275cmp=b({type:v,selectors:[["ms-popover"]],hostBindings:function(o,t){o&1&&m("keyup.esc",function(){return t.onEscKeyDown()},!1,ue)},inputs:{contentTemplate:"contentTemplate"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[C],ngContentSelectors:_t,decls:8,vars:6,consts:[[1,"tooltip-container","popover-element",3,"ngClass","ngStyle"],[1,"tooltip-arrow"],[1,"popover-content"],[1,"close-button"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X",1,"mat-error","size-20"]],template:function(o,t){o&1&&(Se(),s(0,"div",0),Ce(1,"iconPanelSizeStyles"),c(2,"div",1),s(3,"div",2),Te(4),l(),s(5,"div",3)(6,"button",4),m("click",function(){return t.onClose()}),c(7,"mat-icon",5),l()()()),o&2&&P("ngClass",t.data.position)("ngStyle",Me(1,3,t.data.width,t.data.height))("@fadeInOut",t.popoverRef.isClosing)},dependencies:[A,we,De,G,$,Y,L,pt],styles:[".tooltip-container[_ngcontent-%COMP%]{position:relative;background-color:var(--tooltip);color:var(--terminal-color);border-radius:6px;box-shadow:0 4px 8px #0000001a;padding:10px 8px}.tooltip-arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0;border-style:solid}.tooltip-content[_ngcontent-%COMP%]{padding:12px}.tooltip-container.top[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{bottom:-10px;left:50%;transform:translate(-50%);border-width:10px 10px 0 10px;border-color:var(--tooltip) transparent transparent transparent}.tooltip-container.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{top:-10px;left:50%;transform:translate(-50%);border-width:0 10px 10px 10px;border-color:transparent transparent var(--tooltip) transparent}.tooltip-container.left[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{right:-10px;top:50%;transform:translateY(-50%);border-width:10px 0 10px 10px;border-color:transparent transparent transparent var(--tooltip)}.tooltip-container.right[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{left:-10px;top:50%;transform:translateY(-50%);border-width:10px 10px 10px 0;border-color:transparent var(--tooltip) transparent transparent}.close-button[_ngcontent-%COMP%]{position:absolute;right:0;top:0}"],data:{animation:[Oe("fadeInOut",[z("void",R({opacity:0})),z("true",R({opacity:0})),z("false",R({opacity:1})),le(":enter",[ae(`${150}ms ease-in`,R({opacity:1}))]),le("false => true",[ae(`${150}ms ease-out`)])])]}}),v);oe=g([M()],oe);var S,ie=(S=class{get searchFormControl(){return this.searchForm.get("search")}constructor(e,o,t){this.popoverRef=e,this.iconPanelConfig=o,this.fb=t,this.searchForm=new Ae({})}ngOnInit(){this.initForm(),this.listenToSearchFormControlValueChanges()}initForm(){this.searchForm=this.fb.group({search:[""]})}listenToSearchFormControlValueChanges(){this.searchFormControl.valueChanges.pipe(f(this),B(200)).subscribe(e=>{this.popoverRef.emitData(e)})}},S.\u0275fac=function(o){return new(o||S)(a(d),a(x),a(je))},S.\u0275cmp=b({type:S,selectors:[["ms-terminal-toolbar-search-popover"]],standalone:!0,features:[C],decls:7,vars:1,consts:[[1,"form-field-container","dark",3,"formGroup"],["subscriptSizing","dynamic"],["msErrorDisplay","","matInput","","msAutofocus","","formControlName","search"],["fontSet","ms","fontIcon","icon-MagnifyingGlass","matSuffix",""]],template:function(o,t){o&1&&(s(0,"ms-popover")(1,"div",0)(2,"mat-label"),E(3," Search... "),l(),s(4,"mat-form-field",1),c(5,"input",2)(6,"mat-icon",3),l()()()),o&2&&(I(),P("formGroup",t.searchForm))},dependencies:[A,K,He,Ue,Be,Ne,W,X,Ie,_e,Ee,ke,Re,oe,Qe,mt]}),S);ie=g([M({})],ie);var T,ft=(T=class{constructor(e,o,t,i){this.scriptFacadeService=e,this.terminalWebSocketService=o,this.terminalDialogService=t,this.popoverService=i,this.isFullscreen=!1,this.isScriptActive=!1,this.popoverId="",this.clearTerminal=new h,this.scrollToTopTerminal=new h,this.scrollToBottomTerminal=new h,this.searchTerminal=new h,this.disposeSearch=new h,this.exitFullscreen=new h,this.searchFormControl=new xe("")}ngOnInit(){this.listenToScriptStateChanges(),this.listenToSearchFormControlChanges()}clearTerminalScreen(){this.terminalWebSocketService.clearScreen()}openPanel(e){Q(this.searchPanelRef)&&(this.searchPanelRef=this.popoverService.open(ie,e._elementRef,{position:this.isFullscreen?"bottom":"top",width:"200px",height:"60px"},this.popoverId??""),this.searchPanelRef.data$.pipe(f(this)).subscribe(o=>{this.searchTerminal.emit(o)}),this.searchPanelRef.afterClosed().pipe(V(1)).subscribe(()=>{this.searchPanelRef=void 0,this.disposeSearch.emit()}))}listenToSearchFormControlChanges(){this.searchFormControl.valueChanges.pipe(f(this),B(300),pe(e=>!Ke(e))).subscribe(e=>{this.searchTerminal.emit(e)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{this.isScriptActive=Ge(e)})}ctaStopScript(){this.scriptFacadeService.dispatch($e.stopScript())}openTerminalMessagesHistoryDialog(){Q(this.searchPanelRef)||this.searchPanelRef?.close(),this.terminalDialogService.openMessagesHistoryDialog()}openFullScreenMode(){if(this.isFullscreen){this.exitFullscreen.emit();return}this.searchPanelRef?.close(),this.terminalDialogService.openFullScreenDialog(this.isFullscreen)}ngOnDestroy(){Q(this.searchPanelRef)||this.searchPanelRef?.close()}},T.\u0275fac=function(o){return new(o||T)(a(q),a(J),a(te),a(ee))},T.\u0275cmp=b({type:T,selectors:[["ms-terminal-toolbar"]],inputs:{isFullscreen:"isFullscreen",isScriptActive:"isScriptActive",popoverId:"popoverId"},outputs:{clearTerminal:"clearTerminal",scrollToTopTerminal:"scrollToTopTerminal",scrollToBottomTerminal:"scrollToBottomTerminal",searchTerminal:"searchTerminal",disposeSearch:"disposeSearch",exitFullscreen:"exitFullscreen"},standalone:!0,features:[H([te,ee]),C],decls:19,vars:4,consts:[["searchTooltip",""],[1,"buttons-wrapper"],["mat-icon-button","","color","primary","matTooltip","Search terminal",3,"click"],["fontSet","ms","fontIcon","icon-MagnifyingGlass"],["mat-icon-button","","color","primary","matTooltip","Terminal history",3,"click"],["mat-icon-button","","color","primary","matTooltip","Scroll to top",3,"click"],["fontSet","ms","fontIcon","icon-ArrowUp"],["mat-icon-button","","color","primary","matTooltip","Scroll to bottom",3,"click"],["fontSet","ms","fontIcon","icon-ArrowDown"],["mat-icon-button","","color","primary","matTooltip","Clear terminal",3,"click","disabled"],["mat-icon-button","","color","primary",3,"click","matTooltip"],["mat-icon-button","","color","warn","matTooltip","Stop current process",3,"click","disabled"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(o,t){if(o&1){let i=ve();s(0,"div",1)(1,"button",2,0),m("click",function(){y(i);let p=Fe(2);return F(t.openPanel(p))}),c(3,"mat-icon",3),l(),s(4,"button",4),m("click",function(){return y(i),F(t.openTerminalMessagesHistoryDialog())}),s(5,"mat-icon"),E(6,"history"),l()(),s(7,"button",5),m("click",function(){return y(i),F(t.scrollToTopTerminal.emit())}),c(8,"mat-icon",6),l(),s(9,"button",7),m("click",function(){return y(i),F(t.scrollToBottomTerminal.emit())}),c(10,"mat-icon",8),l(),s(11,"button",9),m("click",function(){return y(i),F(t.clearTerminalScreen())}),s(12,"mat-icon"),E(13," clear_all"),l()(),s(14,"button",10),m("click",function(){return y(i),F(t.openFullScreenMode())}),s(15,"mat-icon"),E(16),l()(),s(17,"button",11),m("click",function(){return y(i),F(t.ctaStopScript())}),c(18,"mat-icon",12),l()()}o&2&&(I(11),P("disabled",t.isScriptActive),I(3),P("matTooltip",t.isFullscreen?"Exit fullscreen":"Enter fullscreen"),I(2),Pe(t.isFullscreen?"fullscreen_exit":"fullscreen"),I(),P("disabled",!t.isScriptActive))},dependencies:[A,Y,L,G,$,We,Ye,Ve,X,W,K]}),T);ft=g([M({})],ft);export{w as a,ot as b,it as c,ft as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-Q66S2TM6.js b/frontend/server/modelsmith-build/browser/chunk-Q66S2TM6.js deleted file mode 100644 index 670a6c8..0000000 --- a/frontend/server/modelsmith-build/browser/chunk-Q66S2TM6.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as C,b as x,c as A,d as E}from"./chunk-OFT53ARB.js";import{d as T,f as i}from"./chunk-LRK34XDC.js";import{a as S}from"./chunk-QJ55TOIV.js";import{$a as _,Ab as k,Ea as d,Ia as M,ab as u,bb as I,fb as w,ga as y,ib as P,oa as l,p as g,pa as m,pb as f,qb as v,rb as h,sb as s,tb as b}from"./chunk-DL2LTWBU.js";var B=["terminalWrapper"],Q=["popoverElement"],o,L=(o=class{constructor(e,r){this.renderer=e,this.popoverManager=r}ngOnInit(){this.clickListener=this.renderer.listen("document","click",e=>{this.handleClickOutside(e)})}handleClickOutside(e){let r=e.target.closest(".popover-element");this.terminalWrapper&&!this.terminalWrapper.nativeElement.contains(e.target)&&!r&&this.popoverManager.hasActivePopover("terminal-popover")&&this.popoverManager.closePopoverById("terminal-popover",{result:{},status:C.CLOSE})}ngOnDestroy(){this.clickListener&&this.clickListener()}},o.\u0275fac=function(r){return new(r||o)(d(M),d(x))},o.\u0275cmp=y({type:o,selectors:[["ms-terminal-xterm-with-toolbar"]],viewQuery:function(r,a){if(r&1&&(f(B,5),f(Q,5)),r&2){let t;v(t=h())&&(a.terminalWrapper=t.first),v(t=h())&&(a.popoverElement=t.first)}},standalone:!0,features:[k],decls:9,vars:0,consts:[["terminalWrapper",""],["terminal",""],[1,"ms-terminal-wrapper"],[1,"top-terminal-section"],[1,"heading-section-title","mb-1","flex","items-center"],["popoverId","terminal-popover",3,"clearTerminal","scrollToTopTerminal","scrollToBottomTerminal","searchTerminal","disposeSearch"]],template:function(r,a){if(r&1){let t=w();_(0,"div",2,0)(2,"div",3)(3,"div",4),b(4,"Terminal"),u(),_(5,"div")(6,"ms-terminal-toolbar",5),P("clearTerminal",function(){l(t);let n=s(8);return m(n.clearTerminal())})("scrollToTopTerminal",function(){l(t);let n=s(8);return m(n.scrollToTop())})("scrollToBottomTerminal",function(){l(t);let n=s(8);return m(n.scrollToBottom())})("searchTerminal",function(n){l(t);let W=s(8);return m(W.search(n))})("disposeSearch",function(){l(t);let n=s(8);return m(n.clearSearch())}),u()()(),I(7,"ms-terminal-xterm",null,1),u()}},dependencies:[E,A],styles:[`.ms-terminal-wrapper{overflow-x:auto}.ms-terminal-wrapper .terminal-wrapper{border:10px solid var(--terminal-color);background-color:var(--terminal-color);border-radius:10px}.ms-terminal-wrapper .top-terminal-section{display:flex;justify-content:space-between} -`],encapsulation:2}),o);L=g([S()],L);var O=[{key:i.IPG,value:"GraSP pruning"},{key:i.IPM,value:"Magnitude-based init pruning"},{key:i.IPR,value:"Random init pruning"},{key:i.IMP,value:"Iterative Magnitude Pruning"},{key:i.OMP,value:"One-shot Magnitude Pruning"},{key:i.IPS,value:"Init Pruning Snip"},{key:i.IPSY,value:"Init Pruning Synflow"},{key:i.IPMB,value:"Init Pruning Magnitude Both"}],V=[{key:T.BPTQ,value:"Basic PTQ"},{key:T.BRECQ,value:"Brec-q"},{key:T.MINMAXPTQ,value:"Minmax-ptq"}],R=[...O,...V],z=i.IMP,K=p=>R.filter(e=>p.includes(e.key)).map(e=>e.value),Y=p=>{let e=O.find(a=>a.value===p);if(e)return e.key;let r=V.find(a=>a.value===p);return r?r.key:null};export{L as a,O as b,V as c,z as d,K as e,Y as f}; diff --git a/frontend/server/modelsmith-build/browser/chunk-I2I5FVDK.js b/frontend/server/modelsmith-build/browser/chunk-S56EWILF.js similarity index 97% rename from frontend/server/modelsmith-build/browser/chunk-I2I5FVDK.js rename to frontend/server/modelsmith-build/browser/chunk-S56EWILF.js index d15da92..c70e761 100644 --- a/frontend/server/modelsmith-build/browser/chunk-I2I5FVDK.js +++ b/frontend/server/modelsmith-build/browser/chunk-S56EWILF.js @@ -1 +1 @@ -import{a as O}from"./chunk-XSACZZU3.js";import{a as b}from"./chunk-FRHX5LPN.js";import"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import{a as Ot,b as bt}from"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import"./chunk-NAEQPCWM.js";import{a as _,b as Et,c as Rt,d as x}from"./chunk-Q66S2TM6.js";import{a as Nt,b as _t}from"./chunk-PGXHYGLR.js";import"./chunk-OFT53ARB.js";import"./chunk-HOFUFSNV.js";import{b as g,c as d,f as Ft,k as Pt}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import{b as z,c as Mt}from"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as P,b as N,c as It,j as Gt}from"./chunk-3IJULEGV.js";import{a as T,b as f}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import{h as At,i as Tt}from"./chunk-HULQWYRR.js";import{$a as a,$c as st,D as C,Da as n,Ea as c,H as B,I as Z,K as W,P as X,Pd as lt,Qd as pt,Ra as m,Za as D,Zb as at,Zd as ct,_ as v,_a as k,_d as u,a as R,ab as s,ae as ht,b as L,bb as U,be as M,ca as J,cb as Y,ce as F,db as tt,ee as dt,fb as et,ga as y,ha as A,ib as K,ie as ft,je as ut,kc as mt,le as gt,oa as w,oc as Q,oe as St,p as S,pa as j,pb as it,pe as Ct,qb as rt,qe as vt,rb as ot,tb as h,te as yt,vb as V,w as q,zb as nt}from"./chunk-DL2LTWBU.js";var Lt=(r,t)=>t.key;function Ut(r,t){if(r&1&&(a(0,"mat-option",6),h(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),h(1),s()),r&2){let e=t.$implicit;m("value",e.key),n(),V(" ",e.value," ")}}var l,I=(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(X(1),Z(1),C(t=>!Mt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===d.PRUNING||e===d.QUANTIZATION?t.algKey:x;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(P.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new F({[this.ALGORITHM_CONTROL_NAME]:new dt(x,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:()=>J(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),h(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,ht,M,gt,ut]}),l);I=S([T()],I);var $="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=d,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Ft.IMP,this.selectedAlgorithmType=d.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}),W(),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===$&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===$?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(It),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),h(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())}),h(12," Run "),s(),a(13,"button",10),K("click",function(){return w(o),j(i.goToChartPage())}),h(14,"View Chart"),s()()(),a(15,"div",11),U(16,"ms-terminal-xterm-with-toolbar"),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,b,M,ft,vt,I],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 He=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,jt,_,O,b,_t,Tt,bt,St,Ct,yt]});let r=t;return r})();export{He as ModelCompressionModule}; +import{a as O}from"./chunk-XSACZZU3.js";import{a as b}from"./chunk-AFSEUXQ2.js";import"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import{a as Ot,b as bt}from"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import"./chunk-NAEQPCWM.js";import{a as _,b as Et,c as Rt,d as x}from"./chunk-ETXCQYCR.js";import{a as Nt,b as _t}from"./chunk-PGXHYGLR.js";import"./chunk-SXRVK6GR.js";import"./chunk-HOFUFSNV.js";import{b as g,c as d,f as Ft,k as Pt}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import{b as z,c as Mt}from"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as P,b as N,c as It,j as Gt}from"./chunk-3IJULEGV.js";import{a as T,b as f}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import{h as At,i as Tt}from"./chunk-HULQWYRR.js";import{$a as a,$c as st,D as C,Da as n,Ea as c,H as B,I as Z,K as W,P as X,Pd as lt,Qd as pt,Ra as m,Za as D,Zb as at,Zd as ct,_ as v,_a as k,_d as u,a as R,ab as s,ae as ht,b as L,bb as U,be as M,ca as J,cb as Y,ce as F,db as tt,ee as dt,fb as et,ga as y,ha as A,ib as K,ie as ft,je as ut,kc as mt,le as gt,oa as w,oc as Q,oe as St,p as S,pa as j,pb as it,pe as Ct,qb as rt,qe as vt,rb as ot,tb as h,te as yt,vb as V,w as q,zb as nt}from"./chunk-DL2LTWBU.js";var Lt=(r,t)=>t.key;function Ut(r,t){if(r&1&&(a(0,"mat-option",6),h(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),h(1),s()),r&2){let e=t.$implicit;m("value",e.key),n(),V(" ",e.value," ")}}var l,I=(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(X(1),Z(1),C(t=>!Mt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===d.PRUNING||e===d.QUANTIZATION?t.algKey:x;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(P.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new F({[this.ALGORITHM_CONTROL_NAME]:new dt(x,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:()=>J(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),h(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,ht,M,gt,ut]}),l);I=S([T()],I);var $="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=d,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Ft.IMP,this.selectedAlgorithmType=d.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}),W(),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===$&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===$?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(It),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),h(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())}),h(12," Run "),s(),a(13,"button",10),K("click",function(){return w(o),j(i.goToChartPage())}),h(14,"View Chart"),s()()(),a(15,"div",11),U(16,"ms-terminal-xterm-with-toolbar"),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,b,M,ft,vt,I],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 He=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,jt,_,O,b,_t,Tt,bt,St,Ct,yt]});let r=t;return r})();export{He as ModelCompressionModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-SXRVK6GR.js b/frontend/server/modelsmith-build/browser/chunk-SXRVK6GR.js new file mode 100644 index 0000000..83405e2 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-SXRVK6GR.js @@ -0,0 +1 @@ +import{a as Ze,b as ee}from"./chunk-HOFUFSNV.js";import{b as Ke}from"./chunk-LRK34XDC.js";import{i as qe}from"./chunk-2CKK74GJ.js";import{a as Tt,b as gt,c as bt}from"./chunk-VLO6NL53.js";import{a as We,b as Ge}from"./chunk-GWFXRHCV.js";import{b as J,c as Qe}from"./chunk-XX6ZYDLH.js";import{d as Je}from"./chunk-XLEDMSNZ.js";import{a as $e,b as Z}from"./chunk-3IJULEGV.js";import{a as M,b as f}from"./chunk-QJ55TOIV.js";import{b as Xe,n as Le,s as Ye}from"./chunk-CYUWMGXJ.js";import{a as Ne,d as Ue,h as He,i as $,j as ze,k as q}from"./chunk-HULQWYRR.js";import{$ as he,$a as s,Ab as C,Ba as ve,D as fe,Da as I,Ea as a,Eb as Me,Gb as Oe,I as N,J as U,Ra as P,Rb as we,Ub as De,Xd as Ee,Z as E,Zb as A,a as R,ab as l,ae as _e,ba as D,bb as c,be as Ae,ce as xe,e as ne,ee as ke,f as se,fb as Se,ga as b,ia as de,ib as m,ie as Re,j as ae,ja as ue,lb as Te,le as je,mb as ge,ne as Ve,oa as y,oe as Be,p as g,pa as F,pb as be,pe as Y,qb as ye,rb as Fe,rc as Ie,sb as Pe,sc as le,se as W,tb as _,te as G,ua as H,ub as Ce,vc as j,ve as K,wa as z,wc as L,we as Q,xa as h,yc as ce,zb as X}from"./chunk-DL2LTWBU.js";var O=function(i){return i.OPEN="open",i.DISMISS="dismiss",i.SAVE="save",i.CLOSE="close",i}(O||{});var x=function(i){return i.TOP="top",i.LEFT="left",i.RIGHT="right",i.BOTTOM="bottom",i}(x||{});var et="200px",tt="80px",me=x.TOP,V=150,ot={top:{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-24,offsetX:-9},bottom:{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:4,offsetX:-7},left:{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-22,offsetY:-12},right:{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:8,offsetY:-10}};var d=class{constructor(e){this.overlayRef=e,this.isClosing=!1,this.afterClosedSubject=new ae,this.dataSubject=new ae,this.data$=this.dataSubject.asObservable()}emitData(e){this.dataSubject.next(e)}backdropClick(){return this.overlayRef.backdropClick()}close(e,o=!0){this.isClosing=!0,this.afterClosedSubject.next(e),this.afterClosedSubject.complete(),this.dataSubject.complete(),setTimeout(()=>{this.overlayRef.dispose()},o?V:0)}afterClosed(){return this.afterClosedSubject.asObservable()}updatePosition(){this.overlayRef.updatePosition()}};var k=new he("POPOVER");var it=(()=>{let e=class e{constructor(){this.activePopovers=new Map}registerPopover(t,r){this.activePopovers.set(t,r)}deregisterPopover(t){this.activePopovers.delete(t)}closePopoverById(t,r,n=!0){let p=this.activePopovers.get(t);p&&(p.close(r,n),this.activePopovers.delete(t))}closeAllPopovers(){this.activePopovers.forEach(t=>t.close()),this.activePopovers.clear()}hasActivePopover(t){return this.activePopovers.has(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var nt=ne(Tt()),st=ne(gt()),at=ne(bt());var Mt=["terminal"],u,rt=(u=class{constructor(e){this.terminalWebSocketService=e,this.fitAddon=new nt.FitAddon,this.searchAddon=new st.SearchAddon}ngOnInit(){this.initializeTerminal(),this.subscribeToWebSocketMessages()}ngAfterViewInit(){requestAnimationFrame(()=>{this.adjustTerminalContainer()})}initializeTerminal(){this.terminal=new at.Terminal(R({cursorBlink:!0,theme:{background:"#D0D4D9",foreground:"#000000",cursor:"#000000",selectionBackground:"#FFDD00",selectionForeground:"#000000"},allowProposedApi:!0,scrollback:1e3},this.options)),this.terminal.loadAddon(this.fitAddon),this.terminal.loadAddon(this.searchAddon),this.terminal.open(this.terminalDiv.nativeElement),this.setupResizeObserver(),this.terminal.onData(e=>{this.terminalWebSocketService.sendMessage(e)})}subscribeToWebSocketMessages(){this.terminalWebSocketService.messages$.pipe(f(this)).subscribe(e=>{this.terminal.write(e)})}setupResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.adjustTerminalContainer()}),this.resizeObserver.observe(this.terminalDiv.nativeElement)}adjustTerminalContainer(){this.adjustHeightToParent(),this.fitAddon.fit()}adjustHeightToParent(){let e=this.terminalDiv.nativeElement.parentElement.parentElement.parentElement.parentElement;if(e){this.terminalDiv.nativeElement.style.height="auto";let r=e.offsetHeight-100;this.terminalDiv.nativeElement.style.height=`${r}px`}}ngOnDestroy(){this.resizeObserver?.disconnect(),this.terminal.dispose()}search(e){this.searchAddon.findNext(e,{decorations:{matchBackground:"#FFFF00",matchBorder:"#FFFF00",matchOverviewRuler:"#FFFF00",activeMatchBackground:"#FFFF00",activeMatchBorder:"#FFFF00",activeMatchColorOverviewRuler:"#FFFF00"}})}clearSearch(){this.searchAddon.clearDecorations(),this.searchAddon.findNext("")}clearTerminal(){this.terminal.clear()}scrollToTop(){this.terminal.scrollToTop()}scrollToBottom(){this.terminal.scrollToBottom()}},u.\u0275fac=function(o){return new(o||u)(a(ee))},u.\u0275cmp=b({type:u,selectors:[["ms-terminal-xterm"]],viewQuery:function(o,t){if(o&1&&be(Mt,7),o&2){let r;ye(r=Fe())&&(t.terminalDiv=r.first)}},inputs:{options:"options"},standalone:!0,features:[X([Z,Ze]),C],decls:2,vars:0,consts:[["terminal",""],[1,"terminal-wrapper"]],template:function(o,t){o&1&&c(0,"div",1,0)}}),u);rt=g([M({})],rt);var ct=(i,e)=>{let o={};return i&<(o,i,"width"),e&<(o,e,"height"),o},lt=(i,e,o)=>{let t=Ot(e);t==="px"||t==="rem"||t==="em"?i[`${o}.${t}`]=parseFloat(e):i[o]=e},Ot=i=>{let o=(typeof i=="string"?i:"").match(/(px|rem|em|vw|vh|%)$/);return o?o[0]:"px"},mt=()=>"popover-"+Math.random().toString(36).slice(2,11);var te=(()=>{let e=class e{constructor(t,r,n,p){this.overlay=t,this.injector=r,this.scrollDispatcher=n,this.popoverManager=p}open(t,r,n,p){let dt=this.getPositionStrategy(r,n?.position??me),pe=this.overlay.create(R({positionStrategy:dt},n||{})),B=new d(pe),ut=H.create({parent:this.injector,providers:[{provide:d,useValue:B},{provide:k,useValue:R({position:me,closePopoverOnBackdropClick:!1,closePopoverOnEscKeyUp:!0,width:n?.width||et,height:n?.height||tt},n)}]}),vt=new Xe(t,null,ut);pe.attach(vt);let St=p??mt();return this.popoverManager.registerPopover(St,B),this.scrollDispatcher.scrolled().subscribe(()=>{B.updatePosition()}),B}getPositionStrategy(t,r){let n=t instanceof z?t.nativeElement:t,p=ot[r];return this.overlay.position().flexibleConnectedTo(n).withFlexibleDimensions(!1).withPush(!1).withPositions([p]).withViewportMargin(0)}};e.\u0275fac=function(r){return new(r||e)(D(Ye),D(H),D(Le),D(it))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let i=e;return i})();var pt=(()=>{let e=class e{constructor(t){this.el=t}ngAfterViewInit(){setTimeout(()=>{this.el.nativeElement.focus()},0)}};e.\u0275fac=function(r){return new(r||e)(a(z))},e.\u0275dir=de({type:e,selectors:[["","msAutofocus",""]],standalone:!0});let i=e;return i})();var oe=(()=>{let e=class e{constructor(t){this.dialogService=t}openFullScreenDialog(t){return se(this,null,function*(){if(t)return;let{MsTerminalFullscreenDialogComponent:r}=yield import("./chunk-J5KT46WB.js");document.body.classList.add("no-scroll"),this.dialogService.open(r,{showHeader:!1,showFooter:!1,showSaveButton:!1,width:"100vw",height:"100vh"}).afterClosed().pipe(N(1)).subscribe(()=>{document.body.classList.remove("no-scroll")})})}openMessagesHistoryDialog(){return se(this,null,function*(){let{MsTerminalMessagesHistoryDialogComponent:t}=yield import("./chunk-U6KQ3SSJ.js");this.dialogService.open(t,{title:"Terminal history",showSaveButton:!1,width:"60vw",height:"75vh"})})}};e.\u0275fac=function(r){return new(r||e)(D(Je))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let i=e;return i})();var ft=(()=>{let e=class e{transform(t,r){return ct(t,r)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=ue({name:"iconPanelSizeStyles",type:e,pure:!0,standalone:!0});let i=e;return i})();var _t=["*"],v,ie=(v=class{constructor(e,o){this.popoverRef=e,this.data=o,this.actionEvent=new h,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(O.CLOSE),this.popoverRef.close({status:O.CLOSE})}onSave(){this.actionEvent.emit(O.SAVE),this.popoverRef.close({status:O.SAVE})}onDismiss(){this.actionEvent.emit(O.DISMISS),this.popoverRef.close({status:O.DISMISS})}closeDrawerOnBackdropClick(){this.data.closePopoverOnBackdropClick&&this.popoverRef.backdropClick().pipe(f(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.data.closePopoverOnEscKeyUp&&this.onDismiss()}},v.\u0275fac=function(o){return new(o||v)(a(d),a(k))},v.\u0275cmp=b({type:v,selectors:[["ms-popover"]],hostBindings:function(o,t){o&1&&m("keyup.esc",function(){return t.onEscKeyDown()},!1,ve)},inputs:{contentTemplate:"contentTemplate"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[C],ngContentSelectors:_t,decls:8,vars:6,consts:[[1,"tooltip-container","popover-element",3,"ngClass","ngStyle"],[1,"tooltip-arrow"],[1,"popover-content"],[1,"close-button"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X",1,"mat-error","size-20"]],template:function(o,t){o&1&&(Te(),s(0,"div",0),Me(1,"iconPanelSizeStyles"),c(2,"div",1),s(3,"div",2),ge(4),l(),s(5,"div",3)(6,"button",4),m("click",function(){return t.onClose()}),c(7,"mat-icon",5),l()()()),o&2&&P("ngClass",t.data.position)("ngStyle",Oe(1,3,t.data.width,t.data.height))("@fadeInOut",t.popoverRef.isClosing)},dependencies:[A,we,De,Q,K,G,W,ft],styles:[".tooltip-container[_ngcontent-%COMP%]{position:relative;background-color:var(--tooltip);color:var(--terminal-color);border-radius:6px;box-shadow:0 4px 8px #0000001a;padding:10px 8px}.tooltip-arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0;border-style:solid}.tooltip-content[_ngcontent-%COMP%]{padding:12px}.tooltip-container.top[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{bottom:-10px;left:50%;transform:translate(-50%);border-width:10px 10px 0 10px;border-color:var(--tooltip) transparent transparent transparent}.tooltip-container.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{top:-10px;left:50%;transform:translate(-50%);border-width:0 10px 10px 10px;border-color:transparent transparent var(--tooltip) transparent}.tooltip-container.left[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{right:-10px;top:50%;transform:translateY(-50%);border-width:10px 0 10px 10px;border-color:transparent transparent transparent var(--tooltip)}.tooltip-container.right[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{left:-10px;top:50%;transform:translateY(-50%);border-width:10px 10px 10px 0;border-color:transparent var(--tooltip) transparent transparent}.close-button[_ngcontent-%COMP%]{position:absolute;right:0;top:0}"],data:{animation:[Ie("fadeInOut",[L("void",j({opacity:0})),L("true",j({opacity:0})),L("false",j({opacity:1})),ce(":enter",[le(`${V}ms ease-in`,j({opacity:1}))]),ce("false => true",[le(`${V}ms ease-out`)])])]}}),v);ie=g([M()],ie);var S,re=(S=class{get searchFormControl(){return this.searchForm.get("search")}constructor(e,o,t){this.popoverRef=e,this.iconPanelConfig=o,this.fb=t,this.searchForm=new xe({})}ngOnInit(){this.initForm(),this.listenToSearchFormControlValueChanges()}initForm(){this.searchForm=this.fb.group({search:[""]})}listenToSearchFormControlValueChanges(){this.searchFormControl.valueChanges.pipe(f(this),U(200)).subscribe(e=>{this.popoverRef.emitData(e)})}},S.\u0275fac=function(o){return new(o||S)(a(d),a(k),a(Ve))},S.\u0275cmp=b({type:S,selectors:[["ms-terminal-toolbar-search-popover"]],standalone:!0,features:[C],decls:7,vars:1,consts:[[1,"form-field-container","dark",3,"formGroup"],["subscriptSizing","dynamic"],["msErrorDisplay","","matInput","","msAutofocus","","formControlName","search"],["fontSet","ms","fontIcon","icon-MagnifyingGlass","matSuffix",""]],template:function(o,t){o&1&&(s(0,"ms-popover")(1,"div",0)(2,"mat-label"),_(3," Search... "),l(),s(4,"mat-form-field",1),c(5,"input",2)(6,"mat-icon",3),l()()()),o&2&&(I(),P("formGroup",t.searchForm))},dependencies:[A,q,ze,He,Ne,Ue,$,Y,Ee,_e,Ae,Re,je,ie,qe,pt]}),S);re=g([M({})],re);var T,ht=(T=class{constructor(e,o,t,r){this.scriptFacadeService=e,this.terminalWebSocketService=o,this.terminalDialogService=t,this.popoverService=r,this.isFullscreen=!1,this.isScriptActive=!1,this.popoverId="",this.clearTerminal=new h,this.scrollToTopTerminal=new h,this.scrollToBottomTerminal=new h,this.searchTerminal=new h,this.disposeSearch=new h,this.exitFullscreen=new h,this.searchFormControl=new ke("")}ngOnInit(){this.listenToScriptStateChanges(),this.listenToSearchFormControlChanges()}clearTerminalScreen(){this.terminalWebSocketService.clearScreen()}openPanel(e){J(this.searchPanelRef)&&(this.searchPanelRef=this.popoverService.open(re,e._elementRef,{position:this.isFullscreen?x.BOTTOM:x.TOP,width:"200px",height:"60px"},this.popoverId??""),this.searchPanelRef.data$.pipe(f(this)).subscribe(o=>{this.searchTerminal.emit(o)}),this.searchPanelRef.afterClosed().pipe(N(1)).subscribe(()=>{this.searchPanelRef=void 0,this.disposeSearch.emit()}))}listenToSearchFormControlChanges(){this.searchFormControl.valueChanges.pipe(f(this),U(300),fe(e=>!Qe(e))).subscribe(e=>{this.searchTerminal.emit(e)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{this.isScriptActive=Ke(e)})}ctaStopScript(){this.scriptFacadeService.dispatch($e.stopScript())}openTerminalMessagesHistoryDialog(){J(this.searchPanelRef)||this.searchPanelRef?.close(),this.terminalDialogService.openMessagesHistoryDialog()}openFullScreenMode(){if(this.isFullscreen){this.exitFullscreen.emit();return}this.searchPanelRef?.close(),this.terminalDialogService.openFullScreenDialog(this.isFullscreen)}ngOnDestroy(){J(this.searchPanelRef)||this.searchPanelRef?.close()}},T.\u0275fac=function(o){return new(o||T)(a(Z),a(ee),a(oe),a(te))},T.\u0275cmp=b({type:T,selectors:[["ms-terminal-toolbar"]],inputs:{isFullscreen:"isFullscreen",isScriptActive:"isScriptActive",popoverId:"popoverId"},outputs:{clearTerminal:"clearTerminal",scrollToTopTerminal:"scrollToTopTerminal",scrollToBottomTerminal:"scrollToBottomTerminal",searchTerminal:"searchTerminal",disposeSearch:"disposeSearch",exitFullscreen:"exitFullscreen"},standalone:!0,features:[X([oe,te]),C],decls:19,vars:4,consts:[["searchTooltip",""],[1,"buttons-wrapper"],["mat-icon-button","","color","primary","matTooltip","Search terminal",3,"click"],["fontSet","ms","fontIcon","icon-MagnifyingGlass"],["mat-icon-button","","color","primary","matTooltip","Terminal history",3,"click"],["mat-icon-button","","color","primary","matTooltip","Scroll to top",3,"click"],["fontSet","ms","fontIcon","icon-ArrowUp"],["mat-icon-button","","color","primary","matTooltip","Scroll to bottom",3,"click"],["fontSet","ms","fontIcon","icon-ArrowDown"],["mat-icon-button","","color","primary","matTooltip","Clear terminal",3,"click","disabled"],["mat-icon-button","","color","primary",3,"click","matTooltip"],["mat-icon-button","","color","warn","matTooltip","Stop current process",3,"click","disabled"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(o,t){if(o&1){let r=Se();s(0,"div",1)(1,"button",2,0),m("click",function(){y(r);let p=Pe(2);return F(t.openPanel(p))}),c(3,"mat-icon",3),l(),s(4,"button",4),m("click",function(){return y(r),F(t.openTerminalMessagesHistoryDialog())}),s(5,"mat-icon"),_(6,"history"),l()(),s(7,"button",5),m("click",function(){return y(r),F(t.scrollToTopTerminal.emit())}),c(8,"mat-icon",6),l(),s(9,"button",7),m("click",function(){return y(r),F(t.scrollToBottomTerminal.emit())}),c(10,"mat-icon",8),l(),s(11,"button",9),m("click",function(){return y(r),F(t.clearTerminalScreen())}),s(12,"mat-icon"),_(13," clear_all"),l()(),s(14,"button",10),m("click",function(){return y(r),F(t.openFullScreenMode())}),s(15,"mat-icon"),_(16),l()(),s(17,"button",11),m("click",function(){return y(r),F(t.ctaStopScript())}),c(18,"mat-icon",12),l()()}o&2&&(I(11),P("disabled",t.isScriptActive),I(3),P("matTooltip",t.isFullscreen?"Exit fullscreen":"Enter fullscreen"),I(2),Ce(t.isFullscreen?"fullscreen_exit":"fullscreen"),I(),P("disabled",!t.isScriptActive))},dependencies:[A,G,W,Q,K,Ge,We,Be,Y,$,q]}),T);ht=g([M({})],ht);export{O as a,it as b,rt as c,ht as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-SBOBA6VE.js b/frontend/server/modelsmith-build/browser/chunk-TKFHUNOZ.js similarity index 98% rename from frontend/server/modelsmith-build/browser/chunk-SBOBA6VE.js rename to frontend/server/modelsmith-build/browser/chunk-TKFHUNOZ.js index 8bf018a..2fbd20a 100644 --- a/frontend/server/modelsmith-build/browser/chunk-SBOBA6VE.js +++ b/frontend/server/modelsmith-build/browser/chunk-TKFHUNOZ.js @@ -1 +1 @@ -import{a as nt,b as at,c as mt}from"./chunk-7PEG3RXI.js";import{a as rt}from"./chunk-XK5WXYJA.js";import{a as de}from"./chunk-FRHX5LPN.js";import{b as Xe,c as Je,e as it,f as ot,g as O}from"./chunk-DSSER6OZ.js";import{b as Ze}from"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import{a as se,b as pe}from"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import{a as Ve,b as je}from"./chunk-NAEQPCWM.js";import{a as ce}from"./chunk-Q66S2TM6.js";import{a as U,b as le}from"./chunk-PGXHYGLR.js";import"./chunk-OFT53ARB.js";import{a as K}from"./chunk-HOFUFSNV.js";import{b as E,c as p,i as g,j as We}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import{b as Ye,c as G,d as qe}from"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as me,b as D,c as et,k as tt}from"./chunk-3IJULEGV.js";import{a as A,b as d}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import{h as oe,i as re}from"./chunk-HULQWYRR.js";import{$a as m,$c as Ue,Ab as Re,D as P,Da as n,Ea as s,Eb as I,Fb as b,Gb as we,H as ge,I as Ne,K as Ce,P as Q,Pa as C,Pd as Ke,Q as Fe,Qd as W,Ra as c,Wb as ke,Xa as M,Xb as Le,Ya as Ae,Yb as De,Za as x,Zb as q,Zd as X,_ as z,_a as R,_d as h,a as Te,ab as r,ae as J,b as Se,bb as u,be as k,ca as H,cb as Pe,ce as L,db as be,ee as $,fb as Ee,ga as F,ha as Z,he as $e,ib as _e,ie as Be,je as ee,kb as w,le as te,na as Ie,oa as Me,oc as ve,oe as Qe,p as S,pa as ye,pb as Ge,pe as ie,qb as Oe,qe as ze,rb as xe,tb as l,te as He,vb as f,ve as ne,w as N,we as ae,zb as Y}from"./chunk-DL2LTWBU.js";var Ct=(i,e)=>e.name;function Mt(i,e){i&1&&u(0,"mat-icon",10)}function yt(i,e){if(i&1&&(m(0,"mat-option",8),l(1),C(2,Mt,1,0,"mat-icon",10),r()),i&2){let t=e.$implicit;c("value",t.name),n(),f(" ",t.name," "),n(),M(t.isTrained?-1:2)}}function _t(i,e){i&1&&(m(0,"mat-option",9),l(1,"No results found"),r())}function vt(i,e){if(i&1&&(x(0,yt,3,3,"mat-option",8,Ct),C(2,_t,2,0,"mat-option",9)),i&2){let t=e;R(t),n(2),M(t.length===0?2:-1)}}var y,V=(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=Ue,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(O.getModelsList({algorithmType:e})),e){case p.PRUNING:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.PRUNING_TRAIN}));break}case p.QUANTIZATION:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.QUANTIZATION_TRAIN}));break}case p.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(d(this)).subscribe(e=>{if(G(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)),N(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 $("",X.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),Fe(""),N(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(K),s(D),s(Je))},y.\u0275cmp=F({type:y,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Y([],[{provide:h,useFactory:()=>H(h,{skipSelf:!0})}]),Ie,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..."],[3,"formControl"],["label","Predefined Models"],[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-option"),u(8,"ngx-mat-select-search",6),r(),m(9,"mat-optgroup",7),C(10,vt,3,1),I(11,"async"),r()()()()()),t&2){let a;n(4),c("formGroupName",o.controlKey),n(4),c("formControl",o.searchModel),n(2),M((a=b(11,3,o.filteredModels))?10:-1,a)}},dependencies:[ie,J,k,$e,te,ee,le,U,re,oe,pe,se,W,Ke,ae,ne,q,ke,ot,it,Ze],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);V=S([A()],V);var Nt=(i,e)=>e.key;function Ft(i,e){if(i&1&&(m(0,"mat-option",6),l(1),r()),i&2){let t=e.$implicit;c("value",t.key),n(),f(" ",t.value," ")}}var _,ue=(_=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=[{key:p.QUANTIZATION,value:"Quantization"},{key:p.PRUNING,value:"Pruning"},{key:p.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),Ne(1),P(e=>!G(e?.algKey)),N(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,X.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=F({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Y([],[{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,Ft,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:[U,oe,se,W,J,k,te,ee]}),_);ue=S([A()],ue);function At(i,e){if(i&1&&(l(0),I(1,"adaptiveFileSize")),i&2){let t=w().$implicit;f(" ",b(1,1,t.value)," ")}}function Pt(i,e){if(i&1&&(l(0),I(1,"date")),i&2){let t=w().$implicit;f(" ",we(1,1,t.value,"medium")," ")}}function bt(i,e){if(i&1&&(l(0),I(1,"readableDuration")),i&2){let t=w().$implicit;f(" ",b(1,1,t.value)," ")}}function Et(i,e){if(i&1&&l(0),i&2){let t=w().$implicit;f(" ",t.value," ")}}function Gt(i,e){i&1&&(m(0,"div",8),u(1,"mat-divider"),r())}function Ot(i,e){if(i&1&&(m(0,"div")(1,"div",5)(2,"div",6),l(3),I(4,"parametersLabel"),r(),m(5,"div",7),C(6,At,2,3)(7,Pt,2,4)(8,bt,2,3)(9,Et,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),f("",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 xt(i,e){if(i&1&&(m(0,"div",3),x(1,Ot,11,5,"div",null,Ae),r()),i&2){let t=w();n(),R(t)}}function Rt(i,e){i&1&&u(0,"ms-empty-state",4)}function wt(i,e){i&1&&(m(0,"div",2),C(1,xt,3,0,"div",3)(2,Rt,1,0,"ms-empty-state",4),r()),i&2&&(n(),M(e.length>0?1:2))}var v,fe=(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(K))},v.\u0275cmp=F({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,wt,3,1,"div",2),I(4,"keyvalue"),r()),t&2){let a;n(3),M((a=b(4,1,o.metadata))?3:-1,a)}},dependencies:[rt,U,Ve,Le,De,nt,mt,at],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),v);fe=S([A()],fe);var Lt=["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),N(()=>{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),N(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})=>!G(e)&&!G(t)),d(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(O.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Ye(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,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(tt),s(D),s(et),s(K))},T.\u0275cmp=F({type:T,selectors:[["ms-model-training"]],viewQuery:function(t,o){if(t&1&&Ge(Lt,5),t&2){let a;Oe(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),u(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())}),u(13,"mat-icon",9),l(14," Go back "),r()()(),m(15,"div",10),u(16,"ms-terminal-xterm-with-toolbar"),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,V,de,k,Be,ne,ze,ue,fe],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),T);he=S([A()],he);var Dt=[{path:"",component:he}],ct=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=z({imports:[ve.forChild(Dt),ve]});let i=e;return i})();var yo=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=z({imports:[q,ct,ce,V,de,le,je,pe,re,Qe,ie,ae,He]});let i=e;return i})();export{yo as ModelTrainingModule}; +import{a as nt,b as at,c as mt}from"./chunk-7PEG3RXI.js";import{a as rt}from"./chunk-XK5WXYJA.js";import{a as de}from"./chunk-AFSEUXQ2.js";import{b as Xe,c as Je,e as it,f as ot,g as O}from"./chunk-DSSER6OZ.js";import{b as Ze}from"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import{a as se,b as pe}from"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import{a as Ve,b as je}from"./chunk-NAEQPCWM.js";import{a as ce}from"./chunk-ETXCQYCR.js";import{a as U,b as le}from"./chunk-PGXHYGLR.js";import"./chunk-SXRVK6GR.js";import{a as K}from"./chunk-HOFUFSNV.js";import{b as E,c as p,i as g,j as We}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import{b as Ye,c as G,d as qe}from"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as me,b as D,c as et,k as tt}from"./chunk-3IJULEGV.js";import{a as A,b as d}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import{h as oe,i as re}from"./chunk-HULQWYRR.js";import{$a as m,$c as Ue,Ab as Re,D as P,Da as n,Ea as s,Eb as I,Fb as b,Gb as we,H as ge,I as Ne,K as Ce,P as Q,Pa as C,Pd as Ke,Q as Fe,Qd as W,Ra as c,Wb as ke,Xa as M,Xb as Le,Ya as Ae,Yb as De,Za as x,Zb as q,Zd as X,_ as z,_a as R,_d as h,a as Te,ab as r,ae as J,b as Se,bb as u,be as k,ca as H,cb as Pe,ce as L,db as be,ee as $,fb as Ee,ga as F,ha as Z,he as $e,ib as _e,ie as Be,je as ee,kb as w,le as te,na as Ie,oa as Me,oc as ve,oe as Qe,p as S,pa as ye,pb as Ge,pe as ie,qb as Oe,qe as ze,rb as xe,tb as l,te as He,vb as f,ve as ne,w as N,we as ae,zb as Y}from"./chunk-DL2LTWBU.js";var Ct=(i,e)=>e.name;function Mt(i,e){i&1&&u(0,"mat-icon",10)}function yt(i,e){if(i&1&&(m(0,"mat-option",8),l(1),C(2,Mt,1,0,"mat-icon",10),r()),i&2){let t=e.$implicit;c("value",t.name),n(),f(" ",t.name," "),n(),M(t.isTrained?-1:2)}}function _t(i,e){i&1&&(m(0,"mat-option",9),l(1,"No results found"),r())}function vt(i,e){if(i&1&&(x(0,yt,3,3,"mat-option",8,Ct),C(2,_t,2,0,"mat-option",9)),i&2){let t=e;R(t),n(2),M(t.length===0?2:-1)}}var y,V=(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=Ue,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(O.getModelsList({algorithmType:e})),e){case p.PRUNING:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.PRUNING_TRAIN}));break}case p.QUANTIZATION:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.QUANTIZATION_TRAIN}));break}case p.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(d(this)).subscribe(e=>{if(G(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)),N(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 $("",X.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),Fe(""),N(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(K),s(D),s(Je))},y.\u0275cmp=F({type:y,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Y([],[{provide:h,useFactory:()=>H(h,{skipSelf:!0})}]),Ie,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..."],[3,"formControl"],["label","Predefined Models"],[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-option"),u(8,"ngx-mat-select-search",6),r(),m(9,"mat-optgroup",7),C(10,vt,3,1),I(11,"async"),r()()()()()),t&2){let a;n(4),c("formGroupName",o.controlKey),n(4),c("formControl",o.searchModel),n(2),M((a=b(11,3,o.filteredModels))?10:-1,a)}},dependencies:[ie,J,k,$e,te,ee,le,U,re,oe,pe,se,W,Ke,ae,ne,q,ke,ot,it,Ze],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);V=S([A()],V);var Nt=(i,e)=>e.key;function Ft(i,e){if(i&1&&(m(0,"mat-option",6),l(1),r()),i&2){let t=e.$implicit;c("value",t.key),n(),f(" ",t.value," ")}}var _,ue=(_=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=[{key:p.QUANTIZATION,value:"Quantization"},{key:p.PRUNING,value:"Pruning"},{key:p.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),Ne(1),P(e=>!G(e?.algKey)),N(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,X.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=F({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Y([],[{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,Ft,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:[U,oe,se,W,J,k,te,ee]}),_);ue=S([A()],ue);function At(i,e){if(i&1&&(l(0),I(1,"adaptiveFileSize")),i&2){let t=w().$implicit;f(" ",b(1,1,t.value)," ")}}function Pt(i,e){if(i&1&&(l(0),I(1,"date")),i&2){let t=w().$implicit;f(" ",we(1,1,t.value,"medium")," ")}}function bt(i,e){if(i&1&&(l(0),I(1,"readableDuration")),i&2){let t=w().$implicit;f(" ",b(1,1,t.value)," ")}}function Et(i,e){if(i&1&&l(0),i&2){let t=w().$implicit;f(" ",t.value," ")}}function Gt(i,e){i&1&&(m(0,"div",8),u(1,"mat-divider"),r())}function Ot(i,e){if(i&1&&(m(0,"div")(1,"div",5)(2,"div",6),l(3),I(4,"parametersLabel"),r(),m(5,"div",7),C(6,At,2,3)(7,Pt,2,4)(8,bt,2,3)(9,Et,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),f("",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 xt(i,e){if(i&1&&(m(0,"div",3),x(1,Ot,11,5,"div",null,Ae),r()),i&2){let t=w();n(),R(t)}}function Rt(i,e){i&1&&u(0,"ms-empty-state",4)}function wt(i,e){i&1&&(m(0,"div",2),C(1,xt,3,0,"div",3)(2,Rt,1,0,"ms-empty-state",4),r()),i&2&&(n(),M(e.length>0?1:2))}var v,fe=(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(K))},v.\u0275cmp=F({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,wt,3,1,"div",2),I(4,"keyvalue"),r()),t&2){let a;n(3),M((a=b(4,1,o.metadata))?3:-1,a)}},dependencies:[rt,U,Ve,Le,De,nt,mt,at],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),v);fe=S([A()],fe);var Lt=["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),N(()=>{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),N(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})=>!G(e)&&!G(t)),d(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(O.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Ye(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,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(tt),s(D),s(et),s(K))},T.\u0275cmp=F({type:T,selectors:[["ms-model-training"]],viewQuery:function(t,o){if(t&1&&Ge(Lt,5),t&2){let a;Oe(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),u(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())}),u(13,"mat-icon",9),l(14," Go back "),r()()(),m(15,"div",10),u(16,"ms-terminal-xterm-with-toolbar"),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,V,de,k,Be,ne,ze,ue,fe],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),T);he=S([A()],he);var Dt=[{path:"",component:he}],ct=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=z({imports:[ve.forChild(Dt),ve]});let i=e;return i})();var yo=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=z({imports:[q,ct,ce,V,de,le,je,pe,re,Qe,ie,ae,He]});let i=e;return i})();export{yo as ModelTrainingModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-AZJD3UNA.js b/frontend/server/modelsmith-build/browser/chunk-ZN5LCWIB.js similarity index 94% rename from frontend/server/modelsmith-build/browser/chunk-AZJD3UNA.js rename to frontend/server/modelsmith-build/browser/chunk-ZN5LCWIB.js index c57cace..2e42761 100644 --- a/frontend/server/modelsmith-build/browser/chunk-AZJD3UNA.js +++ b/frontend/server/modelsmith-build/browser/chunk-ZN5LCWIB.js @@ -1 +1 @@ -import{a as d}from"./chunk-XSACZZU3.js";import{a as u}from"./chunk-FRHX5LPN.js";import"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import"./chunk-NAEQPCWM.js";import{a as f}from"./chunk-Q66S2TM6.js";import"./chunk-PGXHYGLR.js";import"./chunk-OFT53ARB.js";import"./chunk-HOFUFSNV.js";import{b as A,c as K,h as T}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as q,b as X}from"./chunk-3IJULEGV.js";import{a as j,b as G}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as s,Da as m,Ea as y,Ra as a,Zb as R,_ as p,a as g,ab as c,b as v,bb as C,be as z,cb as w,db as I,fb as N,ga as Q,ha as l,ib as E,ie as D,ne as O,oa as F,oc as M,oe as _,p as b,pa as P,pb as V,pe as U,qb as W,qe as k,rb as L,tb as S,te as B}from"./chunk-DL2LTWBU.js";var $=["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(G(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(X))},r.\u0275cmp=Q({type:r,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V($,5),i&2){let o;W(o=L())&&(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-xterm-with-toolbar"),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([j()],h);var H=[{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(H),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:[R,x,d,u,f,U,_,B]});let n=t;return n})();export{bt as LlmQuantizationModule}; +import{a as d}from"./chunk-XSACZZU3.js";import{a as u}from"./chunk-AFSEUXQ2.js";import"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import"./chunk-BTI2I76F.js";import"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import"./chunk-NAEQPCWM.js";import{a as f}from"./chunk-ETXCQYCR.js";import"./chunk-PGXHYGLR.js";import"./chunk-SXRVK6GR.js";import"./chunk-HOFUFSNV.js";import{b as A,c as K,h as T}from"./chunk-LRK34XDC.js";import"./chunk-2CKK74GJ.js";import"./chunk-VLO6NL53.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import"./chunk-XLEDMSNZ.js";import{a as q,b as X}from"./chunk-3IJULEGV.js";import{a as j,b as G}from"./chunk-QJ55TOIV.js";import"./chunk-CYUWMGXJ.js";import"./chunk-HULQWYRR.js";import{$a as s,Da as m,Ea as y,Ra as a,Zb as R,_ as p,a as g,ab as c,b as v,bb as C,be as z,cb as w,db as I,fb as N,ga as Q,ha as l,ib as E,ie as D,ne as O,oa as F,oc as M,oe as _,p as b,pa as P,pb as V,pe as U,qb as W,qe as k,rb as L,tb as S,te as B}from"./chunk-DL2LTWBU.js";var $=["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(G(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(X))},r.\u0275cmp=Q({type:r,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V($,5),i&2){let o;W(o=L())&&(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-xterm-with-toolbar"),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([j()],h);var H=[{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(H),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:[R,x,d,u,f,U,_,B]});let n=t;return n})();export{bt as LlmQuantizationModule}; diff --git a/frontend/server/modelsmith-build/browser/index.html b/frontend/server/modelsmith-build/browser/index.html index 8125a52..b47fb9b 100644 --- a/frontend/server/modelsmith-build/browser/index.html +++ b/frontend/server/modelsmith-build/browser/index.html @@ -28,8 +28,8 @@ - + - + diff --git a/frontend/server/modelsmith-build/browser/main-QKR3GMXW.js b/frontend/server/modelsmith-build/browser/main-PYYJGHNV.js similarity index 99% rename from frontend/server/modelsmith-build/browser/main-QKR3GMXW.js rename to frontend/server/modelsmith-build/browser/main-PYYJGHNV.js index 8819915..63b3819 100644 --- a/frontend/server/modelsmith-build/browser/main-QKR3GMXW.js +++ b/frontend/server/modelsmith-build/browser/main-PYYJGHNV.js @@ -1 +1 @@ -import{b as Rr,c as Nr,h as Hr}from"./chunk-V2KM6V6H.js";import{a as Zr}from"./chunk-4PRKP63F.js";import{a as Cr}from"./chunk-YGMM67YV.js";import{a as Be,b as fe}from"./chunk-P2GS2NFW.js";import{a as Er}from"./chunk-P6DGDYT5.js";import{c as Dr}from"./chunk-Y56BMHRM.js";import"./chunk-DCK4WYKK.js";import{b as Gr,c as Vr}from"./chunk-UHYTAY7O.js";import{a as Ar,b as it,c as nt,d as Wr,g as K}from"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import{a as Oe}from"./chunk-BTI2I76F.js";import{a as Pr,b as Ir}from"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import{a as Sr,b as vr}from"./chunk-NAEQPCWM.js";import{a as Qr,b as Oi}from"./chunk-HOFUFSNV.js";import{c as tt}from"./chunk-LRK34XDC.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import{d as xr}from"./chunk-XLEDMSNZ.js";import{a as Nt,b as bi,c as Dt,e as Fr,f as kr,g as Lr,h as jr,i as ne,j as zr,k as wi,l as $r,m as Ur,n as Kr,p as Br,q as qr,s as Mi}from"./chunk-3IJULEGV.js";import{a as Mt,b as ar}from"./chunk-QJ55TOIV.js";import{a as qe}from"./chunk-CYUWMGXJ.js";import{g as _r}from"./chunk-HULQWYRR.js";import{$ as Ze,$a as x,$b as Xn,$c as C,Aa as gi,Ab as Te,Ae as br,Be as Me,C as mi,Cc as $e,Ce as wr,D as je,Da as q,Dc as Ei,De as Mr,Ea as Xe,Eb as Qn,Ec as Ot,Ee as Or,F as Z,Fb as Gn,Fc as fr,G as Rn,H as Nn,Ha as Bn,I as Dn,J as xn,Ja as vt,Jb as Tt,Jc as _i,Kc as Ct,Lc as mr,M as Fn,Mc as pr,N as kn,Nc as hr,Oc as Ti,P as Ln,Pa as ve,Pb as Vn,Pc as gr,Qc as yr,R as G,Ra as Ee,S as St,Sc as At,Uc as Je,V as jn,Vc as V,W as O,Wb as Wn,Wc as Ue,Xa as _e,Xc as ue,Yc as Ke,Z as L,Za as Et,Zb as Hn,Zc as de,_ as pi,_a as _t,_b as Zn,_c as et,a as A,ab as F,ac as Si,ad as Pt,b as N,ba as _,bb as z,bc as Yn,c as wn,ca as ce,cc as Jn,d as Oo,dc as er,e as Co,ec as tr,fa as zn,fc as ir,ga as ye,gc as nr,h as fi,ha as hi,ib as yi,jc as bt,ka as $n,kb as oe,kc as be,l as Mn,la as Se,lc as rr,mc as sr,n as On,nc as or,o as Cn,oc as wt,p as yt,pc as b,q as An,qc as ae,rc as lr,s as W,sa as Un,sc as cr,t as Pn,tb as Re,ub as qn,uc as ur,ue as Tr,v as In,va as Kn,vb as Ye,vc as ze,ve as It,w as Q,wc as vi,we as Rt,yc as dr,ze as we}from"./chunk-DL2LTWBU.js";var co=Oo((vd,lo)=>{"use strict";var xl=function(e){return Fl(e)&&!kl(e)};function Fl(n){return!!n&&typeof n=="object"}function kl(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||zl(n)}var Ll=typeof Symbol=="function"&&Symbol.for,jl=Ll?Symbol.for("react.element"):60103;function zl(n){return n.$$typeof===jl}function $l(n){return Array.isArray(n)?[]:{}}function pt(n,e){return e.clone!==!1&&e.isMergeableObject(n)?He($l(n),n,e):n}function Ul(n,e,t){return n.concat(e).map(function(i){return pt(i,t)})}function Kl(n,e){if(!e.customMerge)return He;var t=e.customMerge(n);return typeof t=="function"?t:He}function Bl(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function oo(n){return Object.keys(n).concat(Bl(n))}function ao(n,e){try{return e in n}catch{return!1}}function ql(n,e){return ao(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Ql(n,e,t){var i={};return t.isMergeableObject(n)&&oo(n).forEach(function(r){i[r]=pt(n[r],t)}),oo(e).forEach(function(r){ql(n,r)||(ao(n,r)&&t.isMergeableObject(e[r])?i[r]=Kl(r,t)(n[r],e[r],t):i[r]=pt(e[r],t))}),i}function He(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Ul,t.isMergeableObject=t.isMergeableObject||xl,t.cloneUnlessOtherwiseSpecified=pt;var i=Array.isArray(e),r=Array.isArray(n),s=i===r;return s?i?t.arrayMerge(n,e,t):Ql(n,e,t):pt(e,t)}He.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return He(i,r,t)},{})};var Gl=He;lo.exports=Gl});var me,xt=(me=class{constructor(){this.title="modelsmith"}ngOnInit(){}},me.\u0275fac=function(t){return new(t||me)},me.\u0275cmp=ye({type:me,selectors:[["app-root"]],standalone:!0,features:[Te],decls:1,vars:0,template:function(t,i){t&1&&z(0,"router-outlet")},dependencies:[bt]}),me);xt=yt([Mt()],xt);function Xr(n){return new O(3e3,!1)}function Ao(){return new O(3100,!1)}function Po(){return new O(3101,!1)}function Io(n){return new O(3001,!1)}function Ro(n){return new O(3003,!1)}function No(n){return new O(3004,!1)}function Do(n,e){return new O(3005,!1)}function xo(){return new O(3006,!1)}function Fo(){return new O(3007,!1)}function ko(n,e){return new O(3008,!1)}function Lo(n){return new O(3002,!1)}function jo(n,e,t,i,r){return new O(3010,!1)}function zo(){return new O(3011,!1)}function $o(){return new O(3012,!1)}function Uo(){return new O(3200,!1)}function Ko(){return new O(3202,!1)}function Bo(){return new O(3013,!1)}function qo(n){return new O(3014,!1)}function Qo(n){return new O(3015,!1)}function Go(n){return new O(3016,!1)}function Vo(n,e){return new O(3404,!1)}function Wo(n){return new O(3502,!1)}function Ho(n){return new O(3503,!1)}function Zo(){return new O(3300,!1)}function Xo(n){return new O(3504,!1)}function Yo(n){return new O(3301,!1)}function Jo(n,e){return new O(3302,!1)}function ea(n){return new O(3303,!1)}function ta(n,e){return new O(3400,!1)}function ia(n){return new O(3401,!1)}function na(n){return new O(3402,!1)}function ra(n,e){return new O(3505,!1)}function Ce(n){switch(n.length){case 0:return new $e;case 1:return n[0];default:return new Ei(n)}}function ds(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 Ot:m=t.get(g);break;case ae: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 Hi(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ci(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ci(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ci(t,"destroy",n)));break}}function Ci(n,e,t){let i=t.totalTime,r=!!t.disabled,s=Zi(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 Zi(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 Yr(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var sa=typeof document>"u"?null:document.documentElement;function Xi(n){let e=n.parentNode||n.host||null;return e===sa?null:e}function oa(n){return n.substring(1,6)=="ebkit"}var Ne=null,Jr=!1;function aa(n){Ne||(Ne=la()||{},Jr=Ne.style?"WebkitAppearance"in Ne.style:!1);let e=!0;return Ne.style&&!oa(n)&&(e=n in Ne.style,!e&&Jr&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ne.style)),e}function la(){return typeof document<"u"?document.body:null}function fs(n,e){for(;e;){if(e===n)return!0;e=Xi(e)}return!1}function ms(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Yi=(()=>{let e=class e{validateStyleProperty(i){return aa(i)}containsElement(i,r){return fs(i,r)}getParentElement(i){return Xi(i)}query(i,r,s){return ms(i,r,s)}computeStyle(i,r,s){return s||""}animate(i,r,s,o,a,l=[],c){return new $e(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),nn=class nn{};nn.NOOP=new Yi;var Fe=nn,ke=class{};var ca=1e3,ps="{{",ua="}}",hs="ng-enter",Di="ng-leave",Ft="ng-trigger",$t=".ng-trigger",es="ng-animating",xi=".ng-animating";function pe(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Fi(parseFloat(e[1]),e[2])}function Fi(n,e){switch(e){case"s":return n*ca;default:return n}}function Ut(n,e,t){return n.hasOwnProperty("duration")?n:da(n,e,t)}function da(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(Xr(n)),{duration:0,delay:0,easing:""};r=Fi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Fi(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(Ao()),a=!0),s<0&&(e.push(Po()),a=!0),a&&e.splice(l,0,Xr(n))}return{duration:r,delay:s,easing:o}}function fa(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function le(n,e,t){e.forEach((i,r)=>{let s=Ji(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function xe(n,e){e.forEach((t,i)=>{let r=Ji(i);n.style[r]=""})}function rt(n){return Array.isArray(n)?n.length==1?n[0]:ur(n):n}function ma(n,e,t){let i=e.params||{},r=gs(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(Io(s))})}var ki=new RegExp(`${ps}\\s*(.+?)\\s*${ua}`,"g");function gs(n){let e=[];if(typeof n=="string"){let t;for(;t=ki.exec(n);)e.push(t[1]);ki.lastIndex=0}return e}function ot(n,e,t){let i=`${n}`,r=i.replace(ki,(s,o)=>{let a=e[o];return a==null&&(t.push(Ro(o)),a=""),a.toString()});return r==i?n:r}var pa=/-+([a-z0-9])/g;function Ji(n){return n.replace(pa,(...e)=>e[1].toUpperCase())}function ha(n,e){return n===0||e===0}function ga(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,en(n,a)))}}return e}function Y(n,e,t){switch(e.type){case b.Trigger:return n.visitTrigger(e,t);case b.State:return n.visitState(e,t);case b.Transition:return n.visitTransition(e,t);case b.Sequence:return n.visitSequence(e,t);case b.Group:return n.visitGroup(e,t);case b.Animate:return n.visitAnimate(e,t);case b.Keyframes:return n.visitKeyframes(e,t);case b.Style:return n.visitStyle(e,t);case b.Reference:return n.visitReference(e,t);case b.AnimateChild:return n.visitAnimateChild(e,t);case b.AnimateRef:return n.visitAnimateRef(e,t);case b.Query:return n.visitQuery(e,t);case b.Stagger:return n.visitStagger(e,t);default:throw No(e.type)}}function en(n,e){return window.getComputedStyle(n)[e]}var ya=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"]),Kt=class extends ke{normalizePropertyName(e,t){return Ji(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(ya.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 Bt="*";function Sa(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>va(i,t,e)):t.push(n),t}function va(n,e,t){if(n[0]==":"){let l=Ea(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(Qo(n)),e;let r=i[1],s=i[2],o=i[3];e.push(ts(r,o));let a=r==Bt&&o==Bt;s[0]=="<"&&!a&&e.push(ts(o,r))}function Ea(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 kt=new Set(["true","1"]),Lt=new Set(["false","0"]);function ts(n,e){let t=kt.has(n)||Lt.has(n),i=kt.has(e)||Lt.has(e);return(r,s)=>{let o=n==Bt||n==r,a=e==Bt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?kt.has(n):Lt.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?kt.has(e):Lt.has(e)),o&&a}}var ys=":self",_a=new RegExp(`s*${ys}s*,?`,"g");function Ss(n,e,t,i){return new Li(n).build(e,t,i)}var is="",Li=class{constructor(e){this._driver=e}build(e,t,i){let r=new ji(t);return this._resetContextStyleTimingState(r),Y(this,rt(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=is,e.collectedStyles=new Map,e.collectedStyles.set(is,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(xo()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==b.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==b.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(Fo())}),{type:b.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=>{gs(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(ko(e.name,[...s.values()]))}return{type:b.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Y(this,rt(e.animation),t),r=Sa(e.expr,t.errors);return{type:b.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:De(e.options)}}visitSequence(e,t){return{type:b.Sequence,steps:e.steps.map(i=>Y(this,i,t)),options:De(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:b.Group,steps:s,options:De(e.options)}}visitAnimate(e,t){let i=Ma(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:ze({});if(s.type==b.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=ze(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:b.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===ae?i.push(a):t.errors.push(Lo(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(ps)>=0){s=!0;break}}}),{type:b.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(jo(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&ma(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:b.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(zo()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(w=>{let P=this._makeStyleAst(w,t),j=P.offset!=null?P.offset:wa(P.styles),v=0;return j!=null&&(s++,v=P.offset=j),l=l||v<0||v>1,a=a||v0&&s{let j=p>0?P==g?1:p*P:o[P],v=j*T;t.currentTime=f+m.delay+v,m.duration=v,this._validateStyleAst(w,t),w.offset=j,i.styles.push(w)}),i}visitReference(e,t){return{type:b.Reference,animation:Y(this,rt(e.animation),t),options:De(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:b.AnimateChild,options:De(e.options)}}visitAnimateRef(e,t){return{type:b.AnimateRef,animation:this.visitReference(e.animation,t),options:De(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Ta(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,J(t.collectedStyles,t.currentQuerySelector,new Map);let a=Y(this,rt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:b.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:De(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Bo());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ut(e.timings,t.errors,!0);return{type:b.Stagger,animation:Y(this,rt(e.animation),t),timings:i,options:null}}};function Ta(n){let e=!!n.split(/\s*,\s*/).find(t=>t==ys);return e&&(n=n.replace(_a,"")),n=n.replace(/@\*/g,$t).replace(/@\w+/g,t=>$t+"-"+t.slice(1)).replace(/:animating/g,xi),[n,e]}function ba(n){return n?A({},n):null}var ji=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 wa(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 Ma(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Ut(n,e).duration;return Ai(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ai(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Ut(t,e);return Ai(r.duration,r.delay,r.easing)}function De(n){return n?(n=A({},n),n.params&&(n.params=ba(n.params))):n={},n}function Ai(n,e,t){return{duration:n,delay:e,easing:t}}function tn(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()}},Oa=1,Ca=":enter",Aa=new RegExp(Ca,"g"),Pa=":leave",Ia=new RegExp(Pa,"g");function vs(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new zi().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var zi=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new at;let u=new $i(e,t,c,r,s,d,[]);u.options=l;let p=l.delay?pe(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 T=g[m];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return g.length?g.map(f=>f.buildKeyframes()):[tn(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:pe(ot(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?pe(i.duration):null,a=i.delay!=null?pe(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==b.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=qt);let o=pe(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?pe(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?ot(i,t.params,t.errors):i;return Ut(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==b.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?pe(r.delay):0;s&&(t.previousNode.type===b.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=qt);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)}},qt={},$i=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=qt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qt(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=pe(i.duration)),i.delay!=null&&(r.delay=pe(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=qt,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 Ui(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(Aa,"."+this._enterClassName),e=e.replace(Ia,"."+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}},Qt=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+=Oa,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||ae),this._currentKeyframe.set(t,ae);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=Ra(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)??ae),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===Ot?e.add(u):d===ae&&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 tn(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Ui=class extends Qt{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",ns(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",ns(f/o)),s.push(p)}i=o,t=0,r="",e=s}return tn(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function ns(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Ra(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,ae)}else for(let[s,o]of r)t.set(s,o)}),t}function rs(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 Pi={},Gt=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return Na(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||Pi,g=a&&a.params||Pi,f=this.buildStyles(i,g,u),m=l&&l.params||Pi,T=this.buildStyles(r,m,u),w=new Set,P=new Map,j=new Map,v=r==="void",I={params:Es(m,p),delay:this.ast.options?.delay},E=d?[]:vs(e,t,this.ast.animation,s,o,f,T,I,c,u),D=0;return E.forEach(R=>{D=Math.max(R.duration+R.delay,D)}),u.length?rs(t,this._triggerName,i,r,v,f,T,[],[],P,j,D,u):(E.forEach(R=>{let ie=R.element,Le=J(P,ie,new Set);R.preStyleProps.forEach(Pe=>Le.add(Pe));let En=J(j,ie,new Set);R.postStyleProps.forEach(Pe=>En.add(Pe)),ie!==t&&w.add(ie)}),rs(t,this._triggerName,i,r,v,f,T,E,[...w.values()],P,j,D))}};function Na(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function Es(n,e){let t=A({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var Ki=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=Es(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 Da(n,e,t){return new Bi(n,e,t)}var Bi=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 Ki(r.style,s,i))}),ss(this.states,"true","1"),ss(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Gt(e,r,this.states))}),this.fallbackTransition=xa(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 xa(n,e,t){let i=[(o,a)=>!0],r={type:b.Sequence,steps:[],options:null},s={type:b.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Gt(n,s,e)}function ss(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 Fa=new at,qi=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=Ss(this._driver,t,i,r);if(i.length)throw Ho(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=ds(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=vs(this._driver,t,s,hs,Di,new Map,new Map,i,Fa,r),o.forEach(d=>{let u=J(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(Zo()),o=[]),r.length)throw Xo(r);a.forEach((d,u)=>{d.forEach((p,g)=>{d.set(g,this._driver.computeStyle(u,g,ae))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Ce(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 Yo(e);return t}listen(e,t,i,r){let s=Zi(t,"","","");return Hi(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}}},os="ng-animate-queued",ka=".ng-animate-queued",Ii="ng-animate-disabled",La=".ng-animate-disabled",ja="ng-star-inserted",za=".ng-star-inserted",$a=[],_s={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ua={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},re="__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=Ba(r),i){let s=e,{value:o}=s,a=wn(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",Ri=new lt(st),Qi=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,te(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw Jo(i,t);if(i==null||i.length==0)throw ea(t);if(!qa(i))throw ta(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)||(te(e,Ft),te(e,Ft+"-"+t),a.set(t,Ri)),()=>{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 ia(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||(te(e,Ft),te(e,Ft+"-"+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=Ri),!(c.value===st)&&l.value===c.value){if(!Va(l.params,c.params)){let m=[],T=s.matchStyles(l.value,l.params,m),w=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{xe(e,T),le(e,w)})}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||(te(e,os),o.onStart(()=>{Qe(e,os)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,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,$t,!0);i.forEach(r=>{if(r[re])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&&Ce(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)||Ri,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[re];(!s||s===_s)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){te(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=Zi(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Hi(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)}},Gi=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 Qi(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(jt(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!jt(t))return;let s=t[re];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),te(e,Ii)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Qe(e,Ii))}removeNode(e,t,i){if(jt(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[re]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return jt(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,$t,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,xi,!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 Ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[re];if(t&&t.setForRemoval){if(e[re]=_s,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ii)&&this.markElementAsDisabled(e,!1),this.driver.query(e,La,!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?Ce(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw na(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,ka,!0);for(let S=0;S{let S=hs+m++;f.set(y,S),h.forEach(M=>te(M,S))});let T=[],w=new Set,P=new Set;for(let h=0;hw.add(M)):P.add(y))}let j=new Map,v=cs(p,Array.from(w));v.forEach((h,y)=>{let S=Di+m++;j.set(y,S),h.forEach(M=>te(M,S))}),e.push(()=>{g.forEach((h,y)=>{let S=f.get(y);h.forEach(M=>Qe(M,S))}),v.forEach((h,y)=>{let S=j.get(y);h.forEach(M=>Qe(M,S))}),T.forEach(h=>{this.processLeaveNode(h)})});let I=[],E=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(S=>{let M=S.player,U=S.element;if(I.push(M),this.collectedEnterElements.length){let B=U[re];if(B&&B.setForMove){if(B.previousTriggersValues&&B.previousTriggersValues.has(S.triggerName)){let Ie=B.previousTriggersValues.get(S.triggerName),ee=this.statesByElement.get(S.element);if(ee&&ee.has(S.triggerName)){let gt=ee.get(S.triggerName);gt.value=Ie,ee.set(S.triggerName,gt)}}M.destroy();return}}let se=!u||!this.driver.containsElement(u,U),H=j.get(U),ge=f.get(U),k=this._buildInstruction(S,i,ge,H,se);if(k.errors&&k.errors.length){E.push(k);return}if(se){M.onStart(()=>xe(U,k.fromStyles)),M.onDestroy(()=>le(U,k.toStyles)),r.push(M);return}if(S.isFallbackTransition){M.onStart(()=>xe(U,k.fromStyles)),M.onDestroy(()=>le(U,k.toStyles)),r.push(M);return}let bn=[];k.timelines.forEach(B=>{B.stretchStartingKeyframe=!0,this.disabledNodes.has(B.element)||bn.push(B)}),k.timelines=bn,i.append(U,k.timelines);let Mo={instruction:k,player:M,element:U};o.push(Mo),k.queriedElements.forEach(B=>J(a,B,[]).push(M)),k.preStyleProps.forEach((B,Ie)=>{if(B.size){let ee=l.get(Ie);ee||l.set(Ie,ee=new Set),B.forEach((gt,di)=>ee.add(di))}}),k.postStyleProps.forEach((B,Ie)=>{let ee=c.get(Ie);ee||c.set(Ie,ee=new Set),B.forEach((gt,di)=>ee.add(di))})});if(E.length){let h=[];E.forEach(y=>{h.push(ra(y.triggerName,y.errors))}),I.forEach(y=>y.destroy()),this.reportError(h)}let D=new Map,R=new Map;o.forEach(h=>{let y=h.element;i.has(y)&&(R.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(M=>{J(D,y,[]).push(M),M.destroy()})});let ie=T.filter(h=>us(h,l,c)),Le=new Map;ls(Le,this.driver,P,c,ae).forEach(h=>{us(h,l,c)&&ie.push(h)});let Pe=new Map;g.forEach((h,y)=>{ls(Pe,this.driver,new Set(h),l,Ot)}),ie.forEach(h=>{let y=Le.get(h),S=Pe.get(h);Le.set(h,new Map([...y?.entries()??[],...S?.entries()??[]]))});let ui=[],_n=[],Tn={};o.forEach(h=>{let{element:y,player:S,instruction:M}=h;if(i.has(y)){if(d.has(y)){S.onDestroy(()=>le(y,M.toStyles)),S.disabled=!0,S.overrideTotalTime(M.totalTime),r.push(S);return}let U=Tn;if(R.size>1){let H=y,ge=[];for(;H=H.parentNode;){let k=R.get(H);if(k){U=k;break}ge.push(H)}ge.forEach(k=>R.set(k,U))}let se=this._buildAnimation(S.namespaceId,M,D,s,Pe,Le);if(S.setRealPlayer(se),U===Tn)ui.push(S);else{let H=this.playersByElement.get(U);H&&H.length&&(S.parentPlayer=Ce(H)),r.push(S)}}else xe(y,M.fromStyles),S.onDestroy(()=>le(y,M.toStyles)),_n.push(S),d.has(y)&&r.push(S)}),_n.forEach(h=>{let y=s.get(h.element);if(y&&y.length){let S=Ce(y);h.setRealPlayer(S)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h!se.destroyed);U.length?Qa(this,y,U):this.processLeaveNode(y)}return T.length=0,ui.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let y=this.players.indexOf(h);this.players.splice(y,1)}),h.play()}),ui}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=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)})}xe(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 T=m[re];if(T&&T.removedBeforeQueried)return new $e(f.duration,f.delay);let w=m!==l,P=Ga((i.get(m)||$a).map(D=>D.getRealPlayer())).filter(D=>{let R=D;return R.element?R.element===m:!1}),j=s.get(m),v=o.get(m),I=ds(this._normalizer,f.keyframes,j,v),E=this._buildPlayer(f,I,P);if(f.subTimeline&&r&&u.add(m),w){let D=new ct(e,a,m);D.setRealPlayer(E),c.push(D)}return E});c.forEach(f=>{J(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ka(this.playersByQueriedElement,f.element,f))}),d.forEach(f=>te(f,es));let g=Ce(p);return g.onDestroy(()=>{d.forEach(f=>Qe(f,es)),le(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 $e(e.duration,e.delay)}},ct=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new $e,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=>Hi(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 Ka(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 Ba(n){return n??null}function jt(n){return n&&n.nodeType===1}function qa(n){return n=="start"||n=="done"}function as(n,e){let t=n.style.display;return n.style.display=e??"none",t}function ls(n,e,t,i,r){let s=[];t.forEach(l=>s.push(as(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[re]=Ua,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>as(l,s[a++])),o}function cs(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 te(n,e){n.classList?.add(e)}function Qe(n,e){n.classList?.remove(e)}function Qa(n,e,t){Ce(t).onDone(()=>n.processLeaveNode(e))}function Ga(n){let e=[];return Ts(n,e),e}function Ts(n,e){for(let t=0;tr.add(s)):e.set(n,i),t.delete(n),!0}var Ve=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Gi(e.body,t,i),this._timelineEngine=new qi(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=Ss(this._driver,s,l,c);if(l.length)throw Vo(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]=Yr(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]=Yr(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=Ni(e[0]),e.length>1&&(i=Ni(e[e.length-1]))):e instanceof Map&&(t=Ni(e)),t||i?new Vi(n,t,i):null}var Ge=class Ge{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=Ge.initialStylesByElement.get(e);r||Ge.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&le(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(le(this._element,this._initialStyles),this._endStyles&&(le(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ge.initialStylesByElement.delete(this._element),this._startStyles&&(xe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xe(this._element,this._endStyles),this._endStyles=null),le(this._element,this._initialStyles),this._state=3)}};Ge.initialStylesByElement=new WeakMap;var Vi=Ge;function Ni(n){let e=null;return n.forEach((t,i)=>{Ha(i)&&(e=e||new Map,e.set(i,t))}),e}function Ha(n){return n==="display"||n==="position"}var Vt=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:en(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Wt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return fs(e,t)}getParentElement(e){return Xi(e)}query(e,t,i){return ms(e,t,i)}computeStyle(e,t,i){return en(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 Vt);ha(i,r)&&d.forEach(g=>{g.currentSnapshot.forEach((f,m)=>c.set(m,f))});let u=fa(t).map(g=>new Map(g));u=ga(e,u,c);let p=Wa(e,u);return new Vt(e,u,l,p)}};var zt="@",bs="@.disabled",Ht=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)==zt&&t==bs?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)}},Wi=class extends Ht{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==zt?t.charAt(1)=="."&&t==bs?(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)==zt){let r=Za(e),s=t.slice(1),o="";return s.charAt(0)!=zt&&([s,o]=Xa(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 Za(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Xa(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Zt=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 Ht(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 Wi(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 Ja=(()=>{let e=class e extends Ve{constructor(i,r,s){super(i,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(_(Vn),_(Fe),_(ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function el(){return new Kt}function tl(n,e,t){return new Zt(n,e,t)}var Ms=[{provide:ke,useFactory:el},{provide:Ve,useClass:Ja},{provide:Bn,useFactory:tl,deps:[er,Ve,vt]}],ws=[{provide:Fe,useFactory:()=>new Wt},{provide:gi,useValue:"BrowserAnimations"},...Ms],il=[{provide:Fe,useClass:Yi},{provide:gi,useValue:"NoopAnimations"},...Ms],Os=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?il:ws}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=hi({type:e}),e.\u0275inj=pi({providers:ws,imports:[ir]});let n=e;return n})();var Ae=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 Ae.getNestedItem($.CORE.ROOT,`${$.AUTH.ROOT}.${$.AUTH.USER.ROOT}.${$.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${C.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(r){return new(r||e)(_(be))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var Xt=(()=>{let e=class e{constructor(i,r){this.router=i,this.configFacadeService=r}canActivate(){let i=Ae.getNestedItem($.CORE.ROOT,`${$.CONFIGS.ROOT}.${$.CONFIGS.DEFAULT_MODE}`);return i&&(i===fe.GUIDED?(this.router.navigate([`/${C.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.GUIDED}))):(this.router.navigate([`/${C.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.EXPERT})))),!0}};e.\u0275fac=function(r){return new(r||e)(_(be),_(qe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var Yt=(()=>{let e=class e{constructor(i){this.router=i}canActivate(){return Ae.getNestedItem($.CORE.ROOT,`${$.AUTH.ROOT}.${$.AUTH.USER.ROOT}.${$.AUTH.USER.JWT}`)?(this.router.navigate([`/${C.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(r){return new(r||e)(_(be))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function sl(n,e){if(n&1&&(x(0,"div")(1,"div",5),Re(2),F()()),n&2){let t=oe();q(2),Ye(" ",t.item.label," ")}}function ol(n,e){n&1&&(x(0,"div"),z(1,"ms-spining-indicator"),F())}function al(n,e){if(n&1&&ve(0,ol,2,0,"div"),n&2){let t=oe();_e(t.isExpanded&&e===t.item.key?0:-1)}}var Cs=(()=>{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=ye({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},standalone:!0,features:[Te],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&&(x(0,"div",0)(1,"div",1)(2,"div",2),z(3,"mat-icon",3),F(),ve(4,sl,3,1,"div"),F(),x(5,"div",4),ve(6,al,1,1),Qn(7,"async"),F()()),r&2){let o;Ee("routerLink",s.item.route),q(3),Ee("fontIcon",s.item.icon),q(),_e(s.isExpanded?4:-1),q(2),_e((o=Gn(7,4,s.pageRunningScriptSpiningIndicatorService.currentRunningPage$))?6:-1,o)}},dependencies:[Hn,Wn,Rt,It,Ar,wt,rr,sr],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 ll=[{route:C.ADMIN.ROOT,label:"Admin",icon:"icon-Admin"}],cl=[{route:C.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],ul=[{route:C.MODEL_COMPRESSION.ROOT,label:"Clasic Model Compression",icon:"icon-GearSix",key:it.MODEL_COMPRESSION},{route:C.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:it.MACHINE_UNLEARNING},{route:C.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:it.AWQ},{route:C.MULTI_MODAL.ROOT,label:"Multi-modal",icon:"icon-Environmental",key:it.MODEL_SPECIALIZATION},{route:C.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],As={guided:cl,expert:ul,common:ll};var rn=(n,e)=>e.route;function dl(n,e){if(n&1&&(x(0,"div",5)(1,"div",13),Re(2),F(),x(3,"div",14),Re(4),z(5,"mat-icon",15),F()()),n&2){let t=oe();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 fl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",16),F()),n&2){let t=e.$implicit,i=oe(2);q(),Ee("item",t)("isExpanded",i.isExpanded)}}function ml(n,e){if(n&1&&Et(0,fl,2,2,"div",8,rn),n&2){let t=oe();_t(t.SidenavConstants.guided)}}function pl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",16),F()),n&2){let t=e.$implicit,i=oe(2);q(),Ee("item",t)("isExpanded",i.isExpanded)}}function hl(n,e){if(n&1&&Et(0,pl,2,2,"div",8,rn),n&2){let t=oe();_t(t.SidenavConstants.expert)}}function gl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",17),F()),n&2){let t=e.$implicit,i=oe();q(),Ee("item",t)("isExpanded",i.isExpanded)}}function yl(n,e){n&1&&(x(0,"span",12),Re(1,"Collapse"),F())}var he,Jt=(he=class{constructor(e,t){this.router=e,this.configFacadeService=t,this.SidenavConstants=As,this.Modes=fe,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(ar(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===fe.GUIDED?(this.router.navigate([`/${C.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.EXPERT}))):(this.router.navigate([`/${C.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}},he.\u0275fac=function(t){return new(t||he)(Xe(be),Xe(qe))},he.\u0275cmp=ye({type:he,selectors:[["ms-sidenav"]],standalone:!0,features:[Te],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&&(x(0,"div",0)(1,"div",1)(2,"div",2),yi("click",function(){return i.toggleMode()}),x(3,"div",3),z(4,"mat-icon",4),F(),ve(5,dl,6,2,"div",5),F(),x(6,"div",6),z(7,"mat-divider"),F(),ve(8,ml,2,0)(9,hl,2,0),x(10,"div",7),z(11,"mat-divider"),F(),Et(12,gl,2,2,"div",8,rn),F(),x(14,"div",9),z(15,"mat-divider"),F(),x(16,"div",10)(17,"div",11),yi("click",function(){return i.toggleSidebar()}),x(18,"mat-icon"),Re(19),F(),ve(20,yl,2,0,"span",12),F()()()),t&2&&(Ee("@expandCollapse",i.isExpanded?"expanded":"collapsed"),q(5),_e(i.isExpanded?5:-1),q(3),_e(i.currentMode===i.Modes.GUIDED?8:9),q(4),_t(i.SidenavConstants.common),q(7),qn(i.isExpanded?"chevron_left":"chevron_right"),q(),_e(i.isExpanded?20:-1))},dependencies:[Cs,Rt,It,vr,Sr],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:[lr("expandCollapse",[vi("expanded",ze({width:"270px"})),vi("collapsed",ze({width:"40px"})),dr("expanded <=> collapsed",cr("300ms ease-in-out"))])]}}),he);Jt=yt([Mt()],Jt);var Ps=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=ye({type:e,selectors:[["ms-main-layout"]],standalone:!0,features:[Te],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(r,s){r&1&&(x(0,"div",0),z(1,"ms-header"),x(2,"div",1),z(3,"ms-sidenav"),x(4,"div",2)(5,"div",3),z(6,"router-outlet"),F(),x(7,"div",4),z(8,"ms-footer",5),F()()()())},dependencies:[Er,Cr,Jt,wt,bt],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 Is={records:Nr};var Rs=[{path:C.AUTH.ROOT,loadChildren:()=>import("./chunk-TNFH2H5N.js").then(n=>n.AuthModule),canActivate:[Yt]},{path:C.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-BHT4CU75.js").then(n=>n.ModeSelectModule),canActivate:[dt,Xt]},{path:C.DEMO.ROOT,loadChildren:()=>import("./chunk-7P5Y4YYT.js").then(n=>n.DemoModule)},{path:"",pathMatch:"full",redirectTo:C.AUTH.ROOT},{path:"",component:Ps,canActivate:[dt],children:[{path:"",redirectTo:C.WIZARD.ROOT,pathMatch:"full"},{path:C.WIZARD.ROOT,loadChildren:()=>import("./chunk-SG3NCASL.js").then(n=>n.WizardModule)},{path:C.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-I2I5FVDK.js").then(n=>n.ModelCompressionModule)},{path:C.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-JBMCLD5I.js").then(n=>n.MachineUnlearningModule)},{path:C.AWQ.ROOT,loadChildren:()=>import("./chunk-AZJD3UNA.js").then(n=>n.LlmQuantizationModule)},{path:C.RUNNING.ROOT,loadChildren:()=>import("./chunk-6VUZT3BW.js").then(n=>n.RunningModule)},{path:C.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-SBOBA6VE.js").then(n=>n.ModelTrainingModule)},{path:C.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-SYCAHEDK.js").then(n=>n.AlgorithmComparisonModule),providers:[Se(Je.forFeature("runRecords",Is)),Se(et.forFeature([Rr]))]},{path:C.MULTI_MODAL.ROOT,loadChildren:()=>import("./chunk-QLPOWT64.js").then(n=>n.MultiModalModule)},{path:C.ADMIN.ROOT,loadChildren:()=>import("./chunk-EXJWLBV7.js").then(n=>n.AdminModule)}]}];function Ns(){return[Mi,Oi,dt,wi,Yt,Xt,bi,qe,Or,zr,jr,Lr,$r,Kr,Ur,nt,Qr,xr,{provide:zn,multi:!0,useValue(){let n=ce(wi),e=ce(nt),t=ce(Tr),i=ce(bi),r=ce(Mi),s=ce(Oi);r.connect(),s.connect(),n.trackNavigationHistory(),e.trackCurrentRunningPage(),t.registerFontClassAlias("icomoon","ms"),i.dispatch(Nt.fetchScriptStatus())}}]}function Ds(){return[{provide:_r,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:Dr,useValue:{displayDefaultIndicatorType:!0,showError:!1}},{provide:Wr,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}}]}var ei=class{constructor(e){this.httpClient=e}get httpHeaders(){return new Zn}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}`),W(e).pipe(G(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(xn(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 ei(n),deps:[Xn]}]}var Sl=(()=>{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 Pn(()=>r)}spawnNotification(i){this.bannerService.showError(i)}};e.\u0275fac=function(r){return new(r||e)(_(Dt))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Fs=(()=>{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)(_(Sl))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function ks(){return[{provide:Si,useClass:Fs,multi:!0},{provide:Si,useClass:Hr,multi:!0}]}var mt="PERFORM_ACTION",vl="REFRESH",Ks="RESET",Bs="ROLLBACK",qs="COMMIT",Qs="SWEEP",Gs="TOGGLE_ACTION",El="SET_ACTIONS_ACTIVE",Vs="JUMP_TO_STATE",Ws="JUMP_TO_ACTION",yn="IMPORT_STATE",Hs="LOCK_CHANGES",Zs="PAUSE_RECORDING",We=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?')}},sn=class{constructor(){this.type=vl}},on=class{constructor(e){this.timestamp=e,this.type=Ks}},an=class{constructor(e){this.timestamp=e,this.type=Bs}},ln=class{constructor(e){this.timestamp=e,this.type=qs}},cn=class{constructor(){this.type=Qs}},un=class{constructor(e){this.id=e,this.type=Gs}};var dn=class{constructor(e){this.index=e,this.type=Vs}},fn=class{constructor(e){this.actionId=e,this.type=Ws}},mn=class{constructor(e){this.nextLiftedState=e,this.type=yn}},pn=class{constructor(e){this.status=e,this.type=Hs}},hn=class{constructor(e){this.status=e,this.type=Zs}};var ri=new Ze("@ngrx/store-devtools Options"),Ls=new Ze("@ngrx/store-devtools Initial Config");function Xs(){return null}var _l="NgRx Store DevTools";function Tl(n){let e={maxAge:!1,monitor:Xs,actionSanitizer:void 0,stateSanitizer:void 0,name:_l,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 js(n,e){return n.filter(t=>e.indexOf(t)<0)}function Ys(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 We(n,+Date.now())}function bl(n,e){return Object.keys(e).reduce((t,i)=>{let r=Number(i);return t[r]=Js(n,e[r],r),t},{})}function Js(n,e,t){return N(A({},e),{action:n(e.action,t)})}function wl(n,e){return e.map((t,i)=>({state:eo(n,t.state,i),error:t.error}))}function eo(n,e,t){return n(e,t)}function to(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function Ml(n,e,t,i){let r=[],s={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&Sn(n.computedStates[l],c,e,t,i)||(s[a]=c,r.push(a),o.push(n.computedStates[l])))}),N(A({},n),{stagedActionIds:r,actionsById:s,computedStates:o})}function Sn(n,e,t,i,r){let s=t&&!t(n,e.action),o=i&&!e.action.type.match(i.map(l=>zs(l)).join("|")),a=r&&e.action.type.match(r.map(l=>zs(l)).join("|"));return s||o||a}function zs(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function io(n){return{ngZone:n?ce(vt):null,connectInZone:n}}var si=(()=>{let e=class e extends Ct{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=Un(e)))(s||e)}})(),e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),ti={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},gn=new Ze("@ngrx/store-devtools Redux Devtools Extension"),no=(()=>{let e=class e{constructor(i,r,s){this.config=r,this.dispatcher=s,this.zoneConfig=io(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=Ys(r);if(to(this.config)&&Sn(s,i,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?eo(this.config.stateSanitizer,s,r.currentStateIndex):s,a=this.config.actionSanitizer?Js(this.config.actionSanitizer,i,r.nextActionId):i;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let s=N(A({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?bl(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?wl(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,s,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new fi(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}):Cn}createActionStreams(){let i=this.createChangesObservable().pipe(kn()),r=i.pipe(je(d=>d.type===ti.START)),s=i.pipe(je(d=>d.type===ti.STOP)),o=i.pipe(je(d=>d.type===ti.DISPATCH),Q(d=>this.unwrapAction(d.payload)),Rn(d=>d.type===yn?this.dispatcher.pipe(je(u=>u.type===Ti),In(1e3),Nn(1e3),Q(()=>d),Z(()=>W(d)),Dn(1)):W(d))),l=i.pipe(je(d=>d.type===ti.ACTION),Q(d=>this.unwrapAction(d.payload))).pipe(St(s)),c=o.pipe(St(s));this.start$=r.pipe(St(s)),this.actions$=this.start$.pipe(G(()=>l)),this.liftedActions$=this.start$.pipe(G(()=>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)(_(gn),_(ri),_(si))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),ni={type:_i},Ol="@ngrx/store-devtools/recompute",Cl={type:Ol};function ro(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 ii(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:ro(t,g,m,T,a);c.push(P)}return l&&c.push(n[n.length-1]),c}function Al(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:ft(ni)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Pl(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:T,isPaused:w}=o||e;o||(c=Object.create(c));function P(I){let E=I,D=u.slice(1,E+1);for(let R=0;RD.indexOf(R)===-1),u=[0,...u.slice(E+1)],g=m[E].state,m=m.slice(E),f=f>E?f-E:0}function j(){c={0:ft(ni)},d=1,u=[0],p=[],g=m[f].state,f=0,m=[]}let v=0;switch(a.type){case Hs:{T=a.status,v=1/0;break}case Zs:{w=a.status,w?(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 Ks:{c={0:ft(ni)},d=1,u=[0],p=[],g=n,f=0,m=[];break}case qs:{j();break}case Bs:{c={0:ft(ni)},d=1,u=[0],p=[],f=0,m=[];break}case Gs:{let{id:I}=a;p.indexOf(I)===-1?p=[I,...p]:p=p.filter(D=>D!==I),v=u.indexOf(I);break}case El:{let{start:I,end:E,active:D}=a,R=[];for(let ie=I;ier.maxAge&&(m=ii(m,v,s,g,c,u,p,t,w),P(u.length-r.maxAge),v=1/0);break}case Ti:{if(m.filter(E=>E.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=ii(m,v,s,g,c,u,p,t,w),P(u.length-r.maxAge),v=1/0);else{if(!w&&!T){f===u.length-1&&f++;let E=d++;c[E]=new We(a,+Date.now()),u=[...u,E],v=u.length-1,m=ii(m,v,s,g,c,u,p,t,w)}m=m.map(E=>N(A({},E),{state:s(E.state,Cl)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&P(u.length-r.maxAge),v=1/0}break}default:{v=1/0;break}}return m=ii(m,v,s,g,c,u,p,t,w),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:T,isPaused:w}}}var $s=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d){let u=Al(c,d.monitor),p=Pl(c,u,l,d.monitor,d),g=mi(mi(r.asObservable().pipe(Ln(1)),o.actions$).pipe(Q(ft)),i,o.liftedActions$).pipe(An(On)),f=s.pipe(Q(p)),m=io(d.connectInZone),T=new Mn(1);this.liftedStateSubscription=g.pipe(jn(f),Us(m),Fn(({state:j},[v,I])=>{let E=I(j,v);return v.type!==mt&&to(d)&&(E=Ml(E,d.predicate,d.actionsSafelist,d.actionsBlocklist)),o.notify(v,E),{state:E,action:v}},{state:u,action:null})).subscribe(({state:j,action:v})=>{if(T.next(j),v.type===mt){let I=v.action;a.next(I)}}),this.extensionStartSubscription=o.start$.pipe(Us(m)).subscribe(()=>{this.refresh()});let w=T.asObservable(),P=w.pipe(Q(Ys));Object.defineProperty(P,"state",{value:fr(P,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=i,this.liftedState=w,this.state=P}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 sn)}reset(){this.dispatch(new on(+Date.now()))}rollback(){this.dispatch(new an(+Date.now()))}commit(){this.dispatch(new ln(+Date.now()))}sweep(){this.dispatch(new cn)}toggleAction(i){this.dispatch(new un(i))}jumpToAction(i){this.dispatch(new fn(i))}jumpToState(i){this.dispatch(new dn(i))}importState(i){this.dispatch(new mn(i))}lockChanges(i){this.dispatch(new pn(i))}pauseRecording(i){this.dispatch(new hn(i))}};e.\u0275fac=function(r){return new(r||e)(_(si),_(Ct),_(pr),_(no),_(gr),_(Kn),_(mr),_(ri))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function Us({ngZone:n,connectInZone:e}){return t=>e?new fi(i=>t.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):t}var Il=new Ze("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Rl(n,e){return!!n||e.monitor!==Xs}function Nl(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function so(n={}){return $n([no,si,$s,{provide:Ls,useValue:n},{provide:Il,deps:[gn,ri],useFactory:Rl},{provide:gn,useFactory:Nl},{provide:ri,deps:[Ls],useFactory:Tl},{provide:yr,deps:[$s],useFactory:Dl},{provide:hr,useExisting:si}])}function Dl(n){return n.state}var uo=Co(co(),1);var vn="@ngrx/store/init",Vl="@ngrx/store/update-reducers",Wl=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Hl=(n,e)=>typeof e=="string"&&Wl.test(e)?new Date(e):e,Zl=(n,e)=>e,Xl=()=>typeof window<"u",Yl=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}),Jl=(n,e,t,i)=>n.reduce((r,s)=>{let o=s,a=i?Hl:Zl,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 fo(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]=fo(n[r],s)}return t},{})}var ec=(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=fo(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)}})},tc=(n,e,t)=>((t.type===vn||t.type===Vl)&&e&&(n=(0,uo.default)(n,e,{arrayMerge:(s,o,a)=>o})),n),mo=n=>e=>{(n.storage===void 0&&!n.checkStorageAvailability||n.checkStorageAvailability&&Xl())&&(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=tc);let i=Yl(n.keys),r=n.rehydrate?Jl(i,n.storage,n.storageKeySerializer,n.restoreDates):void 0;return function(s,o){let a;return o.type===vn&&!s?a=e(s,o):a=A({},s),a=t(a,r,o),a=e(a,o),o.type!==vn&&ec(a,i,n.storage,n.storageKeySerializer,n.removeOnUndefined,n.syncCondition),a}};function ic(n){let t={keys:[{[$.CORE.ROOT]:[$.AUTH.ROOT,$.CONFIGS.ROOT,$.SCRIPT.ROOT]}],rehydrate:!0};return mo(t)(n)}var po=[ic];var ht=class extends br{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var go=(()=>{let e=class e{constructor(i,r,s){this.apiClient=i,this.bannerService=r,this.actions$=s,this.uploadFile$=ue(()=>this.actions$.pipe(de(ne.uploadFile),G(o=>this.apiClient.serviceCall(new ht(o.file)).pipe(Q(a=>ne.uploadFileSuccess({data:a})),Z(a=>W(ne.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=ue(()=>this.actions$.pipe(de(ne.uploadFileAndCallScript),G(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new ht(o.file)).pipe(G(a=>(this.bannerService.showSuccess("File uploaded successfully."),[ne.uploadFileSuccess({data:a}),Nt.callScript({configs:o.configs})])),Z(a=>W(ne.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(r){return new(r||e)(_(Me),_(Dt),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var nc={uploading:!1},yo=Ue(nc,V(ne.uploadFile,n=>N(A({},n),{uploading:!0})),V(ne.uploadFileSuccess,(n,{data:e})=>N(A({},n),{uploading:!1,uploadedData:e})),V(ne.uploadFileFailure,(n,{error:e})=>N(A({},n),{uploading:!1,error:e})));var Kd=At(Pt,({fileState:n})=>n.uploading),Bd=At(Pt,({fileState:n})=>n.uploadedData),qd=At(Pt,({fileState:n})=>n.error);var rc={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},So=Ue(rc,V(K.getModelsListSuccess,(n,{algorithmType:e,models:t})=>{switch(e){case tt.QUANTIZATION:return N(A({},n),{quantizationModels:t,error:void 0});case tt.PRUNING:return N(A({},n),{pruningModels:t,error:void 0});case tt.MACHINE_UNLEARNING:return N(A({},n),{machineUnlearningModels:t,error:void 0});case tt.AWQ:return N(A({},n),{awqModels:t,error:void 0});default:return n}}),V(K.getModelsListFailure,(n,{error:e})=>N(A({},n),{error:e})),V(K.getCurrentOrPreviousSelectedModelSuccess,(n,{model:e})=>N(A({},n),{currentModel:e})),V(K.getCurrentOrPreviousSelectedModelFailure,(n,{error:e})=>N(A({},n),{error:e})),V(K.getModelMetadataSuccess,(n,{metadata:e})=>N(A({},n),{modelMetadata:e,error:void 0})),V(K.getModelMetadataFailure,(n,{error:e})=>N(A({},n),{modelMetadata:{},error:e})));var oi=class extends we{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var vo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadParameters$=ue(()=>this.actions$.pipe(de(Oe.loadParameters),G(({arg:s})=>this.apiClient.serviceCall(new oi(s)).pipe(Q(o=>Oe.loadParametersSuccess({arg:s,parameters:o.parameters})),Z(o=>W(Oe.loadParametersFailure({arg:s,error:o})))))))}};e.\u0275fac=function(r){return new(r||e)(_(Me),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var sc={},Eo=Ue(sc,V(Oe.loadParameters,(n,{arg:e})=>N(A({},n),{[e]:N(A({},n[e]),{loaded:!1,error:null})})),V(Oe.loadParametersSuccess,(n,{arg:e,parameters:t})=>N(A({},n),{[e]:{data:t,error:null,loaded:!0}})),V(Oe.loadParametersFailure,(n,{arg:e,error:t})=>N(A({},n),{[e]:N(A({},n[e]),{error:t,loaded:!0})})));var _o={auth:Mr,configs:Zr,script:Ir,uploadFile:yo,charts:kr,parameters:Eo,terminal:Vr,statistics:qr,models:So};var ai=class extends we{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var li=class extends we{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var ci=class extends we{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var To=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadModels$=ue(()=>this.actions$.pipe(de(K.getModelsList),G(s=>{let{algorithmType:o}=s;return this.apiClient.serviceCall(new ci(o)).pipe(Q(a=>K.getModelsListSuccess({algorithmType:o,models:a})),Z(a=>W(K.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=ue(()=>this.actions$.pipe(de(K.getCurrentOrPreviousSelectedModel),G(s=>this.apiClient.serviceCall(new ai(s.algorithmType)).pipe(Q(o=>K.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Z(o=>W(K.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=ue(()=>this.actions$.pipe(de(K.getModelMetadata),G(s=>{let{algorithmType:o,modelName:a}=s;return this.apiClient.serviceCall(new li(o,a)).pipe(Q(l=>K.getModelMetadataSuccess({metadata:l})),Z(l=>W(K.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(r){return new(r||e)(_(Me),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function bo(){return[so({maxAge:25,logOnly:Tt(),connectInZone:!0}),Se([Je.forRoot({},{metaReducers:po}),et.forRoot([]),Je.forFeature("core",_o)]),Se(et.forFeature([wr,Pr,go,Fr,vo,Gr,Br,To]))]}var wo={providers:[Se(Os),or(Rs),Ds(),bo(),xs(),Ns(),ks(),nr(),Yn(Jn())]};tr(xt,wo).catch(n=>console.error(n)); +import{b as Rr,c as Nr,h as Hr}from"./chunk-V2KM6V6H.js";import{a as Zr}from"./chunk-4PRKP63F.js";import{a as Cr}from"./chunk-YGMM67YV.js";import{a as Be,b as fe}from"./chunk-P2GS2NFW.js";import{a as Er}from"./chunk-P6DGDYT5.js";import{c as Dr}from"./chunk-Y56BMHRM.js";import"./chunk-DCK4WYKK.js";import{b as Gr,c as Vr}from"./chunk-UHYTAY7O.js";import{a as Ar,b as it,c as nt,d as Wr,g as K}from"./chunk-DSSER6OZ.js";import"./chunk-OWJBZ7BL.js";import{a as Oe}from"./chunk-BTI2I76F.js";import{a as Pr,b as Ir}from"./chunk-SLUK3QXN.js";import"./chunk-GACPU6QS.js";import"./chunk-6JSLXF7X.js";import{a as Sr,b as vr}from"./chunk-NAEQPCWM.js";import{a as Qr,b as Oi}from"./chunk-HOFUFSNV.js";import{c as tt}from"./chunk-LRK34XDC.js";import"./chunk-GWFXRHCV.js";import"./chunk-XX6ZYDLH.js";import{d as xr}from"./chunk-XLEDMSNZ.js";import{a as Nt,b as bi,c as Dt,e as Fr,f as kr,g as Lr,h as jr,i as ne,j as zr,k as wi,l as $r,m as Ur,n as Kr,p as Br,q as qr,s as Mi}from"./chunk-3IJULEGV.js";import{a as Mt,b as ar}from"./chunk-QJ55TOIV.js";import{a as qe}from"./chunk-CYUWMGXJ.js";import{g as _r}from"./chunk-HULQWYRR.js";import{$ as Ze,$a as x,$b as Xn,$c as C,Aa as gi,Ab as Te,Ae as br,Be as Me,C as mi,Cc as $e,Ce as wr,D as je,Da as q,Dc as Ei,De as Mr,Ea as Xe,Eb as Qn,Ec as Ot,Ee as Or,F as Z,Fb as Gn,Fc as fr,G as Rn,H as Nn,Ha as Bn,I as Dn,J as xn,Ja as vt,Jb as Tt,Jc as _i,Kc as Ct,Lc as mr,M as Fn,Mc as pr,N as kn,Nc as hr,Oc as Ti,P as Ln,Pa as ve,Pb as Vn,Pc as gr,Qc as yr,R as G,Ra as Ee,S as St,Sc as At,Uc as Je,V as jn,Vc as V,W as O,Wb as Wn,Wc as Ue,Xa as _e,Xc as ue,Yc as Ke,Z as L,Za as Et,Zb as Hn,Zc as de,_ as pi,_a as _t,_b as Zn,_c as et,a as A,ab as F,ac as Si,ad as Pt,b as N,ba as _,bb as z,bc as Yn,c as wn,ca as ce,cc as Jn,d as Oo,dc as er,e as Co,ec as tr,fa as zn,fc as ir,ga as ye,gc as nr,h as fi,ha as hi,ib as yi,jc as bt,ka as $n,kb as oe,kc as be,l as Mn,la as Se,lc as rr,mc as sr,n as On,nc as or,o as Cn,oc as wt,p as yt,pc as b,q as An,qc as ae,rc as lr,s as W,sa as Un,sc as cr,t as Pn,tb as Re,ub as qn,uc as ur,ue as Tr,v as In,va as Kn,vb as Ye,vc as ze,ve as It,w as Q,wc as vi,we as Rt,yc as dr,ze as we}from"./chunk-DL2LTWBU.js";var co=Oo((vd,lo)=>{"use strict";var xl=function(e){return Fl(e)&&!kl(e)};function Fl(n){return!!n&&typeof n=="object"}function kl(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||zl(n)}var Ll=typeof Symbol=="function"&&Symbol.for,jl=Ll?Symbol.for("react.element"):60103;function zl(n){return n.$$typeof===jl}function $l(n){return Array.isArray(n)?[]:{}}function pt(n,e){return e.clone!==!1&&e.isMergeableObject(n)?He($l(n),n,e):n}function Ul(n,e,t){return n.concat(e).map(function(i){return pt(i,t)})}function Kl(n,e){if(!e.customMerge)return He;var t=e.customMerge(n);return typeof t=="function"?t:He}function Bl(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function oo(n){return Object.keys(n).concat(Bl(n))}function ao(n,e){try{return e in n}catch{return!1}}function ql(n,e){return ao(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Ql(n,e,t){var i={};return t.isMergeableObject(n)&&oo(n).forEach(function(r){i[r]=pt(n[r],t)}),oo(e).forEach(function(r){ql(n,r)||(ao(n,r)&&t.isMergeableObject(e[r])?i[r]=Kl(r,t)(n[r],e[r],t):i[r]=pt(e[r],t))}),i}function He(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Ul,t.isMergeableObject=t.isMergeableObject||xl,t.cloneUnlessOtherwiseSpecified=pt;var i=Array.isArray(e),r=Array.isArray(n),s=i===r;return s?i?t.arrayMerge(n,e,t):Ql(n,e,t):pt(e,t)}He.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return He(i,r,t)},{})};var Gl=He;lo.exports=Gl});var me,xt=(me=class{constructor(){this.title="modelsmith"}ngOnInit(){}},me.\u0275fac=function(t){return new(t||me)},me.\u0275cmp=ye({type:me,selectors:[["app-root"]],standalone:!0,features:[Te],decls:1,vars:0,template:function(t,i){t&1&&z(0,"router-outlet")},dependencies:[bt]}),me);xt=yt([Mt()],xt);function Xr(n){return new O(3e3,!1)}function Ao(){return new O(3100,!1)}function Po(){return new O(3101,!1)}function Io(n){return new O(3001,!1)}function Ro(n){return new O(3003,!1)}function No(n){return new O(3004,!1)}function Do(n,e){return new O(3005,!1)}function xo(){return new O(3006,!1)}function Fo(){return new O(3007,!1)}function ko(n,e){return new O(3008,!1)}function Lo(n){return new O(3002,!1)}function jo(n,e,t,i,r){return new O(3010,!1)}function zo(){return new O(3011,!1)}function $o(){return new O(3012,!1)}function Uo(){return new O(3200,!1)}function Ko(){return new O(3202,!1)}function Bo(){return new O(3013,!1)}function qo(n){return new O(3014,!1)}function Qo(n){return new O(3015,!1)}function Go(n){return new O(3016,!1)}function Vo(n,e){return new O(3404,!1)}function Wo(n){return new O(3502,!1)}function Ho(n){return new O(3503,!1)}function Zo(){return new O(3300,!1)}function Xo(n){return new O(3504,!1)}function Yo(n){return new O(3301,!1)}function Jo(n,e){return new O(3302,!1)}function ea(n){return new O(3303,!1)}function ta(n,e){return new O(3400,!1)}function ia(n){return new O(3401,!1)}function na(n){return new O(3402,!1)}function ra(n,e){return new O(3505,!1)}function Ce(n){switch(n.length){case 0:return new $e;case 1:return n[0];default:return new Ei(n)}}function ds(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 Ot:m=t.get(g);break;case ae: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 Hi(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ci(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ci(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ci(t,"destroy",n)));break}}function Ci(n,e,t){let i=t.totalTime,r=!!t.disabled,s=Zi(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 Zi(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 Yr(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var sa=typeof document>"u"?null:document.documentElement;function Xi(n){let e=n.parentNode||n.host||null;return e===sa?null:e}function oa(n){return n.substring(1,6)=="ebkit"}var Ne=null,Jr=!1;function aa(n){Ne||(Ne=la()||{},Jr=Ne.style?"WebkitAppearance"in Ne.style:!1);let e=!0;return Ne.style&&!oa(n)&&(e=n in Ne.style,!e&&Jr&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ne.style)),e}function la(){return typeof document<"u"?document.body:null}function fs(n,e){for(;e;){if(e===n)return!0;e=Xi(e)}return!1}function ms(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Yi=(()=>{let e=class e{validateStyleProperty(i){return aa(i)}containsElement(i,r){return fs(i,r)}getParentElement(i){return Xi(i)}query(i,r,s){return ms(i,r,s)}computeStyle(i,r,s){return s||""}animate(i,r,s,o,a,l=[],c){return new $e(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),nn=class nn{};nn.NOOP=new Yi;var Fe=nn,ke=class{};var ca=1e3,ps="{{",ua="}}",hs="ng-enter",Di="ng-leave",Ft="ng-trigger",$t=".ng-trigger",es="ng-animating",xi=".ng-animating";function pe(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Fi(parseFloat(e[1]),e[2])}function Fi(n,e){switch(e){case"s":return n*ca;default:return n}}function Ut(n,e,t){return n.hasOwnProperty("duration")?n:da(n,e,t)}function da(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(Xr(n)),{duration:0,delay:0,easing:""};r=Fi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Fi(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(Ao()),a=!0),s<0&&(e.push(Po()),a=!0),a&&e.splice(l,0,Xr(n))}return{duration:r,delay:s,easing:o}}function fa(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function le(n,e,t){e.forEach((i,r)=>{let s=Ji(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function xe(n,e){e.forEach((t,i)=>{let r=Ji(i);n.style[r]=""})}function rt(n){return Array.isArray(n)?n.length==1?n[0]:ur(n):n}function ma(n,e,t){let i=e.params||{},r=gs(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(Io(s))})}var ki=new RegExp(`${ps}\\s*(.+?)\\s*${ua}`,"g");function gs(n){let e=[];if(typeof n=="string"){let t;for(;t=ki.exec(n);)e.push(t[1]);ki.lastIndex=0}return e}function ot(n,e,t){let i=`${n}`,r=i.replace(ki,(s,o)=>{let a=e[o];return a==null&&(t.push(Ro(o)),a=""),a.toString()});return r==i?n:r}var pa=/-+([a-z0-9])/g;function Ji(n){return n.replace(pa,(...e)=>e[1].toUpperCase())}function ha(n,e){return n===0||e===0}function ga(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,en(n,a)))}}return e}function Y(n,e,t){switch(e.type){case b.Trigger:return n.visitTrigger(e,t);case b.State:return n.visitState(e,t);case b.Transition:return n.visitTransition(e,t);case b.Sequence:return n.visitSequence(e,t);case b.Group:return n.visitGroup(e,t);case b.Animate:return n.visitAnimate(e,t);case b.Keyframes:return n.visitKeyframes(e,t);case b.Style:return n.visitStyle(e,t);case b.Reference:return n.visitReference(e,t);case b.AnimateChild:return n.visitAnimateChild(e,t);case b.AnimateRef:return n.visitAnimateRef(e,t);case b.Query:return n.visitQuery(e,t);case b.Stagger:return n.visitStagger(e,t);default:throw No(e.type)}}function en(n,e){return window.getComputedStyle(n)[e]}var ya=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"]),Kt=class extends ke{normalizePropertyName(e,t){return Ji(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(ya.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 Bt="*";function Sa(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>va(i,t,e)):t.push(n),t}function va(n,e,t){if(n[0]==":"){let l=Ea(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(Qo(n)),e;let r=i[1],s=i[2],o=i[3];e.push(ts(r,o));let a=r==Bt&&o==Bt;s[0]=="<"&&!a&&e.push(ts(o,r))}function Ea(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 kt=new Set(["true","1"]),Lt=new Set(["false","0"]);function ts(n,e){let t=kt.has(n)||Lt.has(n),i=kt.has(e)||Lt.has(e);return(r,s)=>{let o=n==Bt||n==r,a=e==Bt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?kt.has(n):Lt.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?kt.has(e):Lt.has(e)),o&&a}}var ys=":self",_a=new RegExp(`s*${ys}s*,?`,"g");function Ss(n,e,t,i){return new Li(n).build(e,t,i)}var is="",Li=class{constructor(e){this._driver=e}build(e,t,i){let r=new ji(t);return this._resetContextStyleTimingState(r),Y(this,rt(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=is,e.collectedStyles=new Map,e.collectedStyles.set(is,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(xo()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==b.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==b.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(Fo())}),{type:b.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=>{gs(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(ko(e.name,[...s.values()]))}return{type:b.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Y(this,rt(e.animation),t),r=Sa(e.expr,t.errors);return{type:b.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:De(e.options)}}visitSequence(e,t){return{type:b.Sequence,steps:e.steps.map(i=>Y(this,i,t)),options:De(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:b.Group,steps:s,options:De(e.options)}}visitAnimate(e,t){let i=Ma(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:ze({});if(s.type==b.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=ze(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:b.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===ae?i.push(a):t.errors.push(Lo(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(ps)>=0){s=!0;break}}}),{type:b.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(jo(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&ma(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:b.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(zo()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(w=>{let P=this._makeStyleAst(w,t),j=P.offset!=null?P.offset:wa(P.styles),v=0;return j!=null&&(s++,v=P.offset=j),l=l||v<0||v>1,a=a||v0&&s{let j=p>0?P==g?1:p*P:o[P],v=j*T;t.currentTime=f+m.delay+v,m.duration=v,this._validateStyleAst(w,t),w.offset=j,i.styles.push(w)}),i}visitReference(e,t){return{type:b.Reference,animation:Y(this,rt(e.animation),t),options:De(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:b.AnimateChild,options:De(e.options)}}visitAnimateRef(e,t){return{type:b.AnimateRef,animation:this.visitReference(e.animation,t),options:De(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Ta(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,J(t.collectedStyles,t.currentQuerySelector,new Map);let a=Y(this,rt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:b.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:De(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Bo());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ut(e.timings,t.errors,!0);return{type:b.Stagger,animation:Y(this,rt(e.animation),t),timings:i,options:null}}};function Ta(n){let e=!!n.split(/\s*,\s*/).find(t=>t==ys);return e&&(n=n.replace(_a,"")),n=n.replace(/@\*/g,$t).replace(/@\w+/g,t=>$t+"-"+t.slice(1)).replace(/:animating/g,xi),[n,e]}function ba(n){return n?A({},n):null}var ji=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 wa(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 Ma(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Ut(n,e).duration;return Ai(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ai(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Ut(t,e);return Ai(r.duration,r.delay,r.easing)}function De(n){return n?(n=A({},n),n.params&&(n.params=ba(n.params))):n={},n}function Ai(n,e,t){return{duration:n,delay:e,easing:t}}function tn(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()}},Oa=1,Ca=":enter",Aa=new RegExp(Ca,"g"),Pa=":leave",Ia=new RegExp(Pa,"g");function vs(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new zi().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var zi=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new at;let u=new $i(e,t,c,r,s,d,[]);u.options=l;let p=l.delay?pe(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 T=g[m];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return g.length?g.map(f=>f.buildKeyframes()):[tn(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:pe(ot(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?pe(i.duration):null,a=i.delay!=null?pe(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==b.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=qt);let o=pe(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?pe(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?ot(i,t.params,t.errors):i;return Ut(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==b.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?pe(r.delay):0;s&&(t.previousNode.type===b.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=qt);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)}},qt={},$i=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=qt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qt(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=pe(i.duration)),i.delay!=null&&(r.delay=pe(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=qt,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 Ui(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(Aa,"."+this._enterClassName),e=e.replace(Ia,"."+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}},Qt=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+=Oa,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||ae),this._currentKeyframe.set(t,ae);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=Ra(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)??ae),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===Ot?e.add(u):d===ae&&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 tn(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Ui=class extends Qt{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",ns(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",ns(f/o)),s.push(p)}i=o,t=0,r="",e=s}return tn(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function ns(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Ra(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,ae)}else for(let[s,o]of r)t.set(s,o)}),t}function rs(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 Pi={},Gt=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return Na(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||Pi,g=a&&a.params||Pi,f=this.buildStyles(i,g,u),m=l&&l.params||Pi,T=this.buildStyles(r,m,u),w=new Set,P=new Map,j=new Map,v=r==="void",I={params:Es(m,p),delay:this.ast.options?.delay},E=d?[]:vs(e,t,this.ast.animation,s,o,f,T,I,c,u),D=0;return E.forEach(R=>{D=Math.max(R.duration+R.delay,D)}),u.length?rs(t,this._triggerName,i,r,v,f,T,[],[],P,j,D,u):(E.forEach(R=>{let ie=R.element,Le=J(P,ie,new Set);R.preStyleProps.forEach(Pe=>Le.add(Pe));let En=J(j,ie,new Set);R.postStyleProps.forEach(Pe=>En.add(Pe)),ie!==t&&w.add(ie)}),rs(t,this._triggerName,i,r,v,f,T,E,[...w.values()],P,j,D))}};function Na(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function Es(n,e){let t=A({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var Ki=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=Es(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 Da(n,e,t){return new Bi(n,e,t)}var Bi=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 Ki(r.style,s,i))}),ss(this.states,"true","1"),ss(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Gt(e,r,this.states))}),this.fallbackTransition=xa(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 xa(n,e,t){let i=[(o,a)=>!0],r={type:b.Sequence,steps:[],options:null},s={type:b.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Gt(n,s,e)}function ss(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 Fa=new at,qi=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=Ss(this._driver,t,i,r);if(i.length)throw Ho(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=ds(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=vs(this._driver,t,s,hs,Di,new Map,new Map,i,Fa,r),o.forEach(d=>{let u=J(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(Zo()),o=[]),r.length)throw Xo(r);a.forEach((d,u)=>{d.forEach((p,g)=>{d.set(g,this._driver.computeStyle(u,g,ae))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Ce(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 Yo(e);return t}listen(e,t,i,r){let s=Zi(t,"","","");return Hi(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}}},os="ng-animate-queued",ka=".ng-animate-queued",Ii="ng-animate-disabled",La=".ng-animate-disabled",ja="ng-star-inserted",za=".ng-star-inserted",$a=[],_s={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ua={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},re="__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=Ba(r),i){let s=e,{value:o}=s,a=wn(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",Ri=new lt(st),Qi=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,te(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw Jo(i,t);if(i==null||i.length==0)throw ea(t);if(!qa(i))throw ta(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)||(te(e,Ft),te(e,Ft+"-"+t),a.set(t,Ri)),()=>{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 ia(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||(te(e,Ft),te(e,Ft+"-"+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=Ri),!(c.value===st)&&l.value===c.value){if(!Va(l.params,c.params)){let m=[],T=s.matchStyles(l.value,l.params,m),w=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{xe(e,T),le(e,w)})}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||(te(e,os),o.onStart(()=>{Qe(e,os)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,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,$t,!0);i.forEach(r=>{if(r[re])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&&Ce(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)||Ri,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[re];(!s||s===_s)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){te(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=Zi(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Hi(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)}},Gi=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 Qi(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(jt(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!jt(t))return;let s=t[re];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),te(e,Ii)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Qe(e,Ii))}removeNode(e,t,i){if(jt(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[re]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return jt(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,$t,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,xi,!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 Ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[re];if(t&&t.setForRemoval){if(e[re]=_s,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ii)&&this.markElementAsDisabled(e,!1),this.driver.query(e,La,!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?Ce(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw na(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,ka,!0);for(let S=0;S{let S=hs+m++;f.set(y,S),h.forEach(M=>te(M,S))});let T=[],w=new Set,P=new Set;for(let h=0;hw.add(M)):P.add(y))}let j=new Map,v=cs(p,Array.from(w));v.forEach((h,y)=>{let S=Di+m++;j.set(y,S),h.forEach(M=>te(M,S))}),e.push(()=>{g.forEach((h,y)=>{let S=f.get(y);h.forEach(M=>Qe(M,S))}),v.forEach((h,y)=>{let S=j.get(y);h.forEach(M=>Qe(M,S))}),T.forEach(h=>{this.processLeaveNode(h)})});let I=[],E=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(S=>{let M=S.player,U=S.element;if(I.push(M),this.collectedEnterElements.length){let B=U[re];if(B&&B.setForMove){if(B.previousTriggersValues&&B.previousTriggersValues.has(S.triggerName)){let Ie=B.previousTriggersValues.get(S.triggerName),ee=this.statesByElement.get(S.element);if(ee&&ee.has(S.triggerName)){let gt=ee.get(S.triggerName);gt.value=Ie,ee.set(S.triggerName,gt)}}M.destroy();return}}let se=!u||!this.driver.containsElement(u,U),H=j.get(U),ge=f.get(U),k=this._buildInstruction(S,i,ge,H,se);if(k.errors&&k.errors.length){E.push(k);return}if(se){M.onStart(()=>xe(U,k.fromStyles)),M.onDestroy(()=>le(U,k.toStyles)),r.push(M);return}if(S.isFallbackTransition){M.onStart(()=>xe(U,k.fromStyles)),M.onDestroy(()=>le(U,k.toStyles)),r.push(M);return}let bn=[];k.timelines.forEach(B=>{B.stretchStartingKeyframe=!0,this.disabledNodes.has(B.element)||bn.push(B)}),k.timelines=bn,i.append(U,k.timelines);let Mo={instruction:k,player:M,element:U};o.push(Mo),k.queriedElements.forEach(B=>J(a,B,[]).push(M)),k.preStyleProps.forEach((B,Ie)=>{if(B.size){let ee=l.get(Ie);ee||l.set(Ie,ee=new Set),B.forEach((gt,di)=>ee.add(di))}}),k.postStyleProps.forEach((B,Ie)=>{let ee=c.get(Ie);ee||c.set(Ie,ee=new Set),B.forEach((gt,di)=>ee.add(di))})});if(E.length){let h=[];E.forEach(y=>{h.push(ra(y.triggerName,y.errors))}),I.forEach(y=>y.destroy()),this.reportError(h)}let D=new Map,R=new Map;o.forEach(h=>{let y=h.element;i.has(y)&&(R.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(M=>{J(D,y,[]).push(M),M.destroy()})});let ie=T.filter(h=>us(h,l,c)),Le=new Map;ls(Le,this.driver,P,c,ae).forEach(h=>{us(h,l,c)&&ie.push(h)});let Pe=new Map;g.forEach((h,y)=>{ls(Pe,this.driver,new Set(h),l,Ot)}),ie.forEach(h=>{let y=Le.get(h),S=Pe.get(h);Le.set(h,new Map([...y?.entries()??[],...S?.entries()??[]]))});let ui=[],_n=[],Tn={};o.forEach(h=>{let{element:y,player:S,instruction:M}=h;if(i.has(y)){if(d.has(y)){S.onDestroy(()=>le(y,M.toStyles)),S.disabled=!0,S.overrideTotalTime(M.totalTime),r.push(S);return}let U=Tn;if(R.size>1){let H=y,ge=[];for(;H=H.parentNode;){let k=R.get(H);if(k){U=k;break}ge.push(H)}ge.forEach(k=>R.set(k,U))}let se=this._buildAnimation(S.namespaceId,M,D,s,Pe,Le);if(S.setRealPlayer(se),U===Tn)ui.push(S);else{let H=this.playersByElement.get(U);H&&H.length&&(S.parentPlayer=Ce(H)),r.push(S)}}else xe(y,M.fromStyles),S.onDestroy(()=>le(y,M.toStyles)),_n.push(S),d.has(y)&&r.push(S)}),_n.forEach(h=>{let y=s.get(h.element);if(y&&y.length){let S=Ce(y);h.setRealPlayer(S)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h!se.destroyed);U.length?Qa(this,y,U):this.processLeaveNode(y)}return T.length=0,ui.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let y=this.players.indexOf(h);this.players.splice(y,1)}),h.play()}),ui}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=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)})}xe(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 T=m[re];if(T&&T.removedBeforeQueried)return new $e(f.duration,f.delay);let w=m!==l,P=Ga((i.get(m)||$a).map(D=>D.getRealPlayer())).filter(D=>{let R=D;return R.element?R.element===m:!1}),j=s.get(m),v=o.get(m),I=ds(this._normalizer,f.keyframes,j,v),E=this._buildPlayer(f,I,P);if(f.subTimeline&&r&&u.add(m),w){let D=new ct(e,a,m);D.setRealPlayer(E),c.push(D)}return E});c.forEach(f=>{J(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ka(this.playersByQueriedElement,f.element,f))}),d.forEach(f=>te(f,es));let g=Ce(p);return g.onDestroy(()=>{d.forEach(f=>Qe(f,es)),le(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 $e(e.duration,e.delay)}},ct=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new $e,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=>Hi(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 Ka(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 Ba(n){return n??null}function jt(n){return n&&n.nodeType===1}function qa(n){return n=="start"||n=="done"}function as(n,e){let t=n.style.display;return n.style.display=e??"none",t}function ls(n,e,t,i,r){let s=[];t.forEach(l=>s.push(as(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[re]=Ua,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>as(l,s[a++])),o}function cs(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 te(n,e){n.classList?.add(e)}function Qe(n,e){n.classList?.remove(e)}function Qa(n,e,t){Ce(t).onDone(()=>n.processLeaveNode(e))}function Ga(n){let e=[];return Ts(n,e),e}function Ts(n,e){for(let t=0;tr.add(s)):e.set(n,i),t.delete(n),!0}var Ve=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Gi(e.body,t,i),this._timelineEngine=new qi(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=Ss(this._driver,s,l,c);if(l.length)throw Vo(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]=Yr(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]=Yr(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=Ni(e[0]),e.length>1&&(i=Ni(e[e.length-1]))):e instanceof Map&&(t=Ni(e)),t||i?new Vi(n,t,i):null}var Ge=class Ge{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=Ge.initialStylesByElement.get(e);r||Ge.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&le(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(le(this._element,this._initialStyles),this._endStyles&&(le(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ge.initialStylesByElement.delete(this._element),this._startStyles&&(xe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xe(this._element,this._endStyles),this._endStyles=null),le(this._element,this._initialStyles),this._state=3)}};Ge.initialStylesByElement=new WeakMap;var Vi=Ge;function Ni(n){let e=null;return n.forEach((t,i)=>{Ha(i)&&(e=e||new Map,e.set(i,t))}),e}function Ha(n){return n==="display"||n==="position"}var Vt=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:en(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Wt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return fs(e,t)}getParentElement(e){return Xi(e)}query(e,t,i){return ms(e,t,i)}computeStyle(e,t,i){return en(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 Vt);ha(i,r)&&d.forEach(g=>{g.currentSnapshot.forEach((f,m)=>c.set(m,f))});let u=fa(t).map(g=>new Map(g));u=ga(e,u,c);let p=Wa(e,u);return new Vt(e,u,l,p)}};var zt="@",bs="@.disabled",Ht=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)==zt&&t==bs?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)}},Wi=class extends Ht{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==zt?t.charAt(1)=="."&&t==bs?(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)==zt){let r=Za(e),s=t.slice(1),o="";return s.charAt(0)!=zt&&([s,o]=Xa(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 Za(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Xa(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Zt=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 Ht(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 Wi(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 Ja=(()=>{let e=class e extends Ve{constructor(i,r,s){super(i,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(_(Vn),_(Fe),_(ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function el(){return new Kt}function tl(n,e,t){return new Zt(n,e,t)}var Ms=[{provide:ke,useFactory:el},{provide:Ve,useClass:Ja},{provide:Bn,useFactory:tl,deps:[er,Ve,vt]}],ws=[{provide:Fe,useFactory:()=>new Wt},{provide:gi,useValue:"BrowserAnimations"},...Ms],il=[{provide:Fe,useClass:Yi},{provide:gi,useValue:"NoopAnimations"},...Ms],Os=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?il:ws}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=hi({type:e}),e.\u0275inj=pi({providers:ws,imports:[ir]});let n=e;return n})();var Ae=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 Ae.getNestedItem($.CORE.ROOT,`${$.AUTH.ROOT}.${$.AUTH.USER.ROOT}.${$.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${C.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(r){return new(r||e)(_(be))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var Xt=(()=>{let e=class e{constructor(i,r){this.router=i,this.configFacadeService=r}canActivate(){let i=Ae.getNestedItem($.CORE.ROOT,`${$.CONFIGS.ROOT}.${$.CONFIGS.DEFAULT_MODE}`);return i&&(i===fe.GUIDED?(this.router.navigate([`/${C.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.GUIDED}))):(this.router.navigate([`/${C.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.EXPERT})))),!0}};e.\u0275fac=function(r){return new(r||e)(_(be),_(qe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var Yt=(()=>{let e=class e{constructor(i){this.router=i}canActivate(){return Ae.getNestedItem($.CORE.ROOT,`${$.AUTH.ROOT}.${$.AUTH.USER.ROOT}.${$.AUTH.USER.JWT}`)?(this.router.navigate([`/${C.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(r){return new(r||e)(_(be))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function sl(n,e){if(n&1&&(x(0,"div")(1,"div",5),Re(2),F()()),n&2){let t=oe();q(2),Ye(" ",t.item.label," ")}}function ol(n,e){n&1&&(x(0,"div"),z(1,"ms-spining-indicator"),F())}function al(n,e){if(n&1&&ve(0,ol,2,0,"div"),n&2){let t=oe();_e(t.isExpanded&&e===t.item.key?0:-1)}}var Cs=(()=>{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=ye({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},standalone:!0,features:[Te],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&&(x(0,"div",0)(1,"div",1)(2,"div",2),z(3,"mat-icon",3),F(),ve(4,sl,3,1,"div"),F(),x(5,"div",4),ve(6,al,1,1),Qn(7,"async"),F()()),r&2){let o;Ee("routerLink",s.item.route),q(3),Ee("fontIcon",s.item.icon),q(),_e(s.isExpanded?4:-1),q(2),_e((o=Gn(7,4,s.pageRunningScriptSpiningIndicatorService.currentRunningPage$))?6:-1,o)}},dependencies:[Hn,Wn,Rt,It,Ar,wt,rr,sr],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 ll=[{route:C.ADMIN.ROOT,label:"Admin",icon:"icon-Admin"}],cl=[{route:C.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],ul=[{route:C.MODEL_COMPRESSION.ROOT,label:"Clasic Model Compression",icon:"icon-GearSix",key:it.MODEL_COMPRESSION},{route:C.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:it.MACHINE_UNLEARNING},{route:C.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:it.AWQ},{route:C.MULTI_MODAL.ROOT,label:"Multi-modal",icon:"icon-Environmental",key:it.MODEL_SPECIALIZATION},{route:C.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],As={guided:cl,expert:ul,common:ll};var rn=(n,e)=>e.route;function dl(n,e){if(n&1&&(x(0,"div",5)(1,"div",13),Re(2),F(),x(3,"div",14),Re(4),z(5,"mat-icon",15),F()()),n&2){let t=oe();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 fl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",16),F()),n&2){let t=e.$implicit,i=oe(2);q(),Ee("item",t)("isExpanded",i.isExpanded)}}function ml(n,e){if(n&1&&Et(0,fl,2,2,"div",8,rn),n&2){let t=oe();_t(t.SidenavConstants.guided)}}function pl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",16),F()),n&2){let t=e.$implicit,i=oe(2);q(),Ee("item",t)("isExpanded",i.isExpanded)}}function hl(n,e){if(n&1&&Et(0,pl,2,2,"div",8,rn),n&2){let t=oe();_t(t.SidenavConstants.expert)}}function gl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",17),F()),n&2){let t=e.$implicit,i=oe();q(),Ee("item",t)("isExpanded",i.isExpanded)}}function yl(n,e){n&1&&(x(0,"span",12),Re(1,"Collapse"),F())}var he,Jt=(he=class{constructor(e,t){this.router=e,this.configFacadeService=t,this.SidenavConstants=As,this.Modes=fe,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(ar(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===fe.GUIDED?(this.router.navigate([`/${C.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.EXPERT}))):(this.router.navigate([`/${C.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:fe.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}},he.\u0275fac=function(t){return new(t||he)(Xe(be),Xe(qe))},he.\u0275cmp=ye({type:he,selectors:[["ms-sidenav"]],standalone:!0,features:[Te],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&&(x(0,"div",0)(1,"div",1)(2,"div",2),yi("click",function(){return i.toggleMode()}),x(3,"div",3),z(4,"mat-icon",4),F(),ve(5,dl,6,2,"div",5),F(),x(6,"div",6),z(7,"mat-divider"),F(),ve(8,ml,2,0)(9,hl,2,0),x(10,"div",7),z(11,"mat-divider"),F(),Et(12,gl,2,2,"div",8,rn),F(),x(14,"div",9),z(15,"mat-divider"),F(),x(16,"div",10)(17,"div",11),yi("click",function(){return i.toggleSidebar()}),x(18,"mat-icon"),Re(19),F(),ve(20,yl,2,0,"span",12),F()()()),t&2&&(Ee("@expandCollapse",i.isExpanded?"expanded":"collapsed"),q(5),_e(i.isExpanded?5:-1),q(3),_e(i.currentMode===i.Modes.GUIDED?8:9),q(4),_t(i.SidenavConstants.common),q(7),qn(i.isExpanded?"chevron_left":"chevron_right"),q(),_e(i.isExpanded?20:-1))},dependencies:[Cs,Rt,It,vr,Sr],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:[lr("expandCollapse",[vi("expanded",ze({width:"270px"})),vi("collapsed",ze({width:"40px"})),dr("expanded <=> collapsed",cr("300ms ease-in-out"))])]}}),he);Jt=yt([Mt()],Jt);var Ps=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=ye({type:e,selectors:[["ms-main-layout"]],standalone:!0,features:[Te],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(r,s){r&1&&(x(0,"div",0),z(1,"ms-header"),x(2,"div",1),z(3,"ms-sidenav"),x(4,"div",2)(5,"div",3),z(6,"router-outlet"),F(),x(7,"div",4),z(8,"ms-footer",5),F()()()())},dependencies:[Er,Cr,Jt,wt,bt],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 Is={records:Nr};var Rs=[{path:C.AUTH.ROOT,loadChildren:()=>import("./chunk-TNFH2H5N.js").then(n=>n.AuthModule),canActivate:[Yt]},{path:C.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-BHT4CU75.js").then(n=>n.ModeSelectModule),canActivate:[dt,Xt]},{path:C.DEMO.ROOT,loadChildren:()=>import("./chunk-7P5Y4YYT.js").then(n=>n.DemoModule)},{path:"",pathMatch:"full",redirectTo:C.AUTH.ROOT},{path:"",component:Ps,canActivate:[dt],children:[{path:"",redirectTo:C.WIZARD.ROOT,pathMatch:"full"},{path:C.WIZARD.ROOT,loadChildren:()=>import("./chunk-3ZZITZTT.js").then(n=>n.WizardModule)},{path:C.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-S56EWILF.js").then(n=>n.ModelCompressionModule)},{path:C.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-3KDKVO3G.js").then(n=>n.MachineUnlearningModule)},{path:C.AWQ.ROOT,loadChildren:()=>import("./chunk-ZN5LCWIB.js").then(n=>n.LlmQuantizationModule)},{path:C.RUNNING.ROOT,loadChildren:()=>import("./chunk-6VUZT3BW.js").then(n=>n.RunningModule)},{path:C.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-TKFHUNOZ.js").then(n=>n.ModelTrainingModule)},{path:C.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-SYCAHEDK.js").then(n=>n.AlgorithmComparisonModule),providers:[Se(Je.forFeature("runRecords",Is)),Se(et.forFeature([Rr]))]},{path:C.MULTI_MODAL.ROOT,loadChildren:()=>import("./chunk-KMXD6IIQ.js").then(n=>n.MultiModalModule)},{path:C.ADMIN.ROOT,loadChildren:()=>import("./chunk-EXJWLBV7.js").then(n=>n.AdminModule)}]}];function Ns(){return[Mi,Oi,dt,wi,Yt,Xt,bi,qe,Or,zr,jr,Lr,$r,Kr,Ur,nt,Qr,xr,{provide:zn,multi:!0,useValue(){let n=ce(wi),e=ce(nt),t=ce(Tr),i=ce(bi),r=ce(Mi),s=ce(Oi);r.connect(),s.connect(),n.trackNavigationHistory(),e.trackCurrentRunningPage(),t.registerFontClassAlias("icomoon","ms"),i.dispatch(Nt.fetchScriptStatus())}}]}function Ds(){return[{provide:_r,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:Dr,useValue:{displayDefaultIndicatorType:!0,showError:!1}},{provide:Wr,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}}]}var ei=class{constructor(e){this.httpClient=e}get httpHeaders(){return new Zn}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}`),W(e).pipe(G(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(xn(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 ei(n),deps:[Xn]}]}var Sl=(()=>{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 Pn(()=>r)}spawnNotification(i){this.bannerService.showError(i)}};e.\u0275fac=function(r){return new(r||e)(_(Dt))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Fs=(()=>{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)(_(Sl))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function ks(){return[{provide:Si,useClass:Fs,multi:!0},{provide:Si,useClass:Hr,multi:!0}]}var mt="PERFORM_ACTION",vl="REFRESH",Ks="RESET",Bs="ROLLBACK",qs="COMMIT",Qs="SWEEP",Gs="TOGGLE_ACTION",El="SET_ACTIONS_ACTIVE",Vs="JUMP_TO_STATE",Ws="JUMP_TO_ACTION",yn="IMPORT_STATE",Hs="LOCK_CHANGES",Zs="PAUSE_RECORDING",We=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?')}},sn=class{constructor(){this.type=vl}},on=class{constructor(e){this.timestamp=e,this.type=Ks}},an=class{constructor(e){this.timestamp=e,this.type=Bs}},ln=class{constructor(e){this.timestamp=e,this.type=qs}},cn=class{constructor(){this.type=Qs}},un=class{constructor(e){this.id=e,this.type=Gs}};var dn=class{constructor(e){this.index=e,this.type=Vs}},fn=class{constructor(e){this.actionId=e,this.type=Ws}},mn=class{constructor(e){this.nextLiftedState=e,this.type=yn}},pn=class{constructor(e){this.status=e,this.type=Hs}},hn=class{constructor(e){this.status=e,this.type=Zs}};var ri=new Ze("@ngrx/store-devtools Options"),Ls=new Ze("@ngrx/store-devtools Initial Config");function Xs(){return null}var _l="NgRx Store DevTools";function Tl(n){let e={maxAge:!1,monitor:Xs,actionSanitizer:void 0,stateSanitizer:void 0,name:_l,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 js(n,e){return n.filter(t=>e.indexOf(t)<0)}function Ys(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 We(n,+Date.now())}function bl(n,e){return Object.keys(e).reduce((t,i)=>{let r=Number(i);return t[r]=Js(n,e[r],r),t},{})}function Js(n,e,t){return N(A({},e),{action:n(e.action,t)})}function wl(n,e){return e.map((t,i)=>({state:eo(n,t.state,i),error:t.error}))}function eo(n,e,t){return n(e,t)}function to(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function Ml(n,e,t,i){let r=[],s={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&Sn(n.computedStates[l],c,e,t,i)||(s[a]=c,r.push(a),o.push(n.computedStates[l])))}),N(A({},n),{stagedActionIds:r,actionsById:s,computedStates:o})}function Sn(n,e,t,i,r){let s=t&&!t(n,e.action),o=i&&!e.action.type.match(i.map(l=>zs(l)).join("|")),a=r&&e.action.type.match(r.map(l=>zs(l)).join("|"));return s||o||a}function zs(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function io(n){return{ngZone:n?ce(vt):null,connectInZone:n}}var si=(()=>{let e=class e extends Ct{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=Un(e)))(s||e)}})(),e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),ti={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},gn=new Ze("@ngrx/store-devtools Redux Devtools Extension"),no=(()=>{let e=class e{constructor(i,r,s){this.config=r,this.dispatcher=s,this.zoneConfig=io(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=Ys(r);if(to(this.config)&&Sn(s,i,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?eo(this.config.stateSanitizer,s,r.currentStateIndex):s,a=this.config.actionSanitizer?Js(this.config.actionSanitizer,i,r.nextActionId):i;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let s=N(A({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?bl(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?wl(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,s,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new fi(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}):Cn}createActionStreams(){let i=this.createChangesObservable().pipe(kn()),r=i.pipe(je(d=>d.type===ti.START)),s=i.pipe(je(d=>d.type===ti.STOP)),o=i.pipe(je(d=>d.type===ti.DISPATCH),Q(d=>this.unwrapAction(d.payload)),Rn(d=>d.type===yn?this.dispatcher.pipe(je(u=>u.type===Ti),In(1e3),Nn(1e3),Q(()=>d),Z(()=>W(d)),Dn(1)):W(d))),l=i.pipe(je(d=>d.type===ti.ACTION),Q(d=>this.unwrapAction(d.payload))).pipe(St(s)),c=o.pipe(St(s));this.start$=r.pipe(St(s)),this.actions$=this.start$.pipe(G(()=>l)),this.liftedActions$=this.start$.pipe(G(()=>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)(_(gn),_(ri),_(si))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),ni={type:_i},Ol="@ngrx/store-devtools/recompute",Cl={type:Ol};function ro(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 ii(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:ro(t,g,m,T,a);c.push(P)}return l&&c.push(n[n.length-1]),c}function Al(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:ft(ni)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Pl(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:T,isPaused:w}=o||e;o||(c=Object.create(c));function P(I){let E=I,D=u.slice(1,E+1);for(let R=0;RD.indexOf(R)===-1),u=[0,...u.slice(E+1)],g=m[E].state,m=m.slice(E),f=f>E?f-E:0}function j(){c={0:ft(ni)},d=1,u=[0],p=[],g=m[f].state,f=0,m=[]}let v=0;switch(a.type){case Hs:{T=a.status,v=1/0;break}case Zs:{w=a.status,w?(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 Ks:{c={0:ft(ni)},d=1,u=[0],p=[],g=n,f=0,m=[];break}case qs:{j();break}case Bs:{c={0:ft(ni)},d=1,u=[0],p=[],f=0,m=[];break}case Gs:{let{id:I}=a;p.indexOf(I)===-1?p=[I,...p]:p=p.filter(D=>D!==I),v=u.indexOf(I);break}case El:{let{start:I,end:E,active:D}=a,R=[];for(let ie=I;ier.maxAge&&(m=ii(m,v,s,g,c,u,p,t,w),P(u.length-r.maxAge),v=1/0);break}case Ti:{if(m.filter(E=>E.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=ii(m,v,s,g,c,u,p,t,w),P(u.length-r.maxAge),v=1/0);else{if(!w&&!T){f===u.length-1&&f++;let E=d++;c[E]=new We(a,+Date.now()),u=[...u,E],v=u.length-1,m=ii(m,v,s,g,c,u,p,t,w)}m=m.map(E=>N(A({},E),{state:s(E.state,Cl)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&P(u.length-r.maxAge),v=1/0}break}default:{v=1/0;break}}return m=ii(m,v,s,g,c,u,p,t,w),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:T,isPaused:w}}}var $s=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d){let u=Al(c,d.monitor),p=Pl(c,u,l,d.monitor,d),g=mi(mi(r.asObservable().pipe(Ln(1)),o.actions$).pipe(Q(ft)),i,o.liftedActions$).pipe(An(On)),f=s.pipe(Q(p)),m=io(d.connectInZone),T=new Mn(1);this.liftedStateSubscription=g.pipe(jn(f),Us(m),Fn(({state:j},[v,I])=>{let E=I(j,v);return v.type!==mt&&to(d)&&(E=Ml(E,d.predicate,d.actionsSafelist,d.actionsBlocklist)),o.notify(v,E),{state:E,action:v}},{state:u,action:null})).subscribe(({state:j,action:v})=>{if(T.next(j),v.type===mt){let I=v.action;a.next(I)}}),this.extensionStartSubscription=o.start$.pipe(Us(m)).subscribe(()=>{this.refresh()});let w=T.asObservable(),P=w.pipe(Q(Ys));Object.defineProperty(P,"state",{value:fr(P,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=i,this.liftedState=w,this.state=P}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 sn)}reset(){this.dispatch(new on(+Date.now()))}rollback(){this.dispatch(new an(+Date.now()))}commit(){this.dispatch(new ln(+Date.now()))}sweep(){this.dispatch(new cn)}toggleAction(i){this.dispatch(new un(i))}jumpToAction(i){this.dispatch(new fn(i))}jumpToState(i){this.dispatch(new dn(i))}importState(i){this.dispatch(new mn(i))}lockChanges(i){this.dispatch(new pn(i))}pauseRecording(i){this.dispatch(new hn(i))}};e.\u0275fac=function(r){return new(r||e)(_(si),_(Ct),_(pr),_(no),_(gr),_(Kn),_(mr),_(ri))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function Us({ngZone:n,connectInZone:e}){return t=>e?new fi(i=>t.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):t}var Il=new Ze("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Rl(n,e){return!!n||e.monitor!==Xs}function Nl(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function so(n={}){return $n([no,si,$s,{provide:Ls,useValue:n},{provide:Il,deps:[gn,ri],useFactory:Rl},{provide:gn,useFactory:Nl},{provide:ri,deps:[Ls],useFactory:Tl},{provide:yr,deps:[$s],useFactory:Dl},{provide:hr,useExisting:si}])}function Dl(n){return n.state}var uo=Co(co(),1);var vn="@ngrx/store/init",Vl="@ngrx/store/update-reducers",Wl=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Hl=(n,e)=>typeof e=="string"&&Wl.test(e)?new Date(e):e,Zl=(n,e)=>e,Xl=()=>typeof window<"u",Yl=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}),Jl=(n,e,t,i)=>n.reduce((r,s)=>{let o=s,a=i?Hl:Zl,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 fo(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]=fo(n[r],s)}return t},{})}var ec=(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=fo(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)}})},tc=(n,e,t)=>((t.type===vn||t.type===Vl)&&e&&(n=(0,uo.default)(n,e,{arrayMerge:(s,o,a)=>o})),n),mo=n=>e=>{(n.storage===void 0&&!n.checkStorageAvailability||n.checkStorageAvailability&&Xl())&&(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=tc);let i=Yl(n.keys),r=n.rehydrate?Jl(i,n.storage,n.storageKeySerializer,n.restoreDates):void 0;return function(s,o){let a;return o.type===vn&&!s?a=e(s,o):a=A({},s),a=t(a,r,o),a=e(a,o),o.type!==vn&&ec(a,i,n.storage,n.storageKeySerializer,n.removeOnUndefined,n.syncCondition),a}};function ic(n){let t={keys:[{[$.CORE.ROOT]:[$.AUTH.ROOT,$.CONFIGS.ROOT,$.SCRIPT.ROOT]}],rehydrate:!0};return mo(t)(n)}var po=[ic];var ht=class extends br{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var go=(()=>{let e=class e{constructor(i,r,s){this.apiClient=i,this.bannerService=r,this.actions$=s,this.uploadFile$=ue(()=>this.actions$.pipe(de(ne.uploadFile),G(o=>this.apiClient.serviceCall(new ht(o.file)).pipe(Q(a=>ne.uploadFileSuccess({data:a})),Z(a=>W(ne.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=ue(()=>this.actions$.pipe(de(ne.uploadFileAndCallScript),G(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new ht(o.file)).pipe(G(a=>(this.bannerService.showSuccess("File uploaded successfully."),[ne.uploadFileSuccess({data:a}),Nt.callScript({configs:o.configs})])),Z(a=>W(ne.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(r){return new(r||e)(_(Me),_(Dt),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var nc={uploading:!1},yo=Ue(nc,V(ne.uploadFile,n=>N(A({},n),{uploading:!0})),V(ne.uploadFileSuccess,(n,{data:e})=>N(A({},n),{uploading:!1,uploadedData:e})),V(ne.uploadFileFailure,(n,{error:e})=>N(A({},n),{uploading:!1,error:e})));var Kd=At(Pt,({fileState:n})=>n.uploading),Bd=At(Pt,({fileState:n})=>n.uploadedData),qd=At(Pt,({fileState:n})=>n.error);var rc={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},So=Ue(rc,V(K.getModelsListSuccess,(n,{algorithmType:e,models:t})=>{switch(e){case tt.QUANTIZATION:return N(A({},n),{quantizationModels:t,error:void 0});case tt.PRUNING:return N(A({},n),{pruningModels:t,error:void 0});case tt.MACHINE_UNLEARNING:return N(A({},n),{machineUnlearningModels:t,error:void 0});case tt.AWQ:return N(A({},n),{awqModels:t,error:void 0});default:return n}}),V(K.getModelsListFailure,(n,{error:e})=>N(A({},n),{error:e})),V(K.getCurrentOrPreviousSelectedModelSuccess,(n,{model:e})=>N(A({},n),{currentModel:e})),V(K.getCurrentOrPreviousSelectedModelFailure,(n,{error:e})=>N(A({},n),{error:e})),V(K.getModelMetadataSuccess,(n,{metadata:e})=>N(A({},n),{modelMetadata:e,error:void 0})),V(K.getModelMetadataFailure,(n,{error:e})=>N(A({},n),{modelMetadata:{},error:e})));var oi=class extends we{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var vo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadParameters$=ue(()=>this.actions$.pipe(de(Oe.loadParameters),G(({arg:s})=>this.apiClient.serviceCall(new oi(s)).pipe(Q(o=>Oe.loadParametersSuccess({arg:s,parameters:o.parameters})),Z(o=>W(Oe.loadParametersFailure({arg:s,error:o})))))))}};e.\u0275fac=function(r){return new(r||e)(_(Me),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var sc={},Eo=Ue(sc,V(Oe.loadParameters,(n,{arg:e})=>N(A({},n),{[e]:N(A({},n[e]),{loaded:!1,error:null})})),V(Oe.loadParametersSuccess,(n,{arg:e,parameters:t})=>N(A({},n),{[e]:{data:t,error:null,loaded:!0}})),V(Oe.loadParametersFailure,(n,{arg:e,error:t})=>N(A({},n),{[e]:N(A({},n[e]),{error:t,loaded:!0})})));var _o={auth:Mr,configs:Zr,script:Ir,uploadFile:yo,charts:kr,parameters:Eo,terminal:Vr,statistics:qr,models:So};var ai=class extends we{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var li=class extends we{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var ci=class extends we{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var To=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadModels$=ue(()=>this.actions$.pipe(de(K.getModelsList),G(s=>{let{algorithmType:o}=s;return this.apiClient.serviceCall(new ci(o)).pipe(Q(a=>K.getModelsListSuccess({algorithmType:o,models:a})),Z(a=>W(K.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=ue(()=>this.actions$.pipe(de(K.getCurrentOrPreviousSelectedModel),G(s=>this.apiClient.serviceCall(new ai(s.algorithmType)).pipe(Q(o=>K.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Z(o=>W(K.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=ue(()=>this.actions$.pipe(de(K.getModelMetadata),G(s=>{let{algorithmType:o,modelName:a}=s;return this.apiClient.serviceCall(new li(o,a)).pipe(Q(l=>K.getModelMetadataSuccess({metadata:l})),Z(l=>W(K.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(r){return new(r||e)(_(Me),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function bo(){return[so({maxAge:25,logOnly:Tt(),connectInZone:!0}),Se([Je.forRoot({},{metaReducers:po}),et.forRoot([]),Je.forFeature("core",_o)]),Se(et.forFeature([wr,Pr,go,Fr,vo,Gr,Br,To]))]}var wo={providers:[Se(Os),or(Rs),Ds(),bo(),xs(),Ns(),ks(),nr(),Yn(Jn())]};tr(xt,wo).catch(n=>console.error(n)); diff --git a/frontend/server/modelsmith-build/browser/styles-7Z3MN5VN.css b/frontend/server/modelsmith-build/browser/styles-M6JMWTAV.css similarity index 91% rename from frontend/server/modelsmith-build/browser/styles-7Z3MN5VN.css rename to frontend/server/modelsmith-build/browser/styles-M6JMWTAV.css index 5da1a15..b2a4abe 100644 --- a/frontend/server/modelsmith-build/browser/styles-7Z3MN5VN.css +++ b/frontend/server/modelsmith-build/browser/styles-M6JMWTAV.css @@ -1 +1 @@ -.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}html{color:var(--foregrounds-800)}.text-hint{color:var(--foregrounds-700)}.heading-primary-title{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}button.ms-white-stroked-button.mat-mdc-outlined-button{font-size:1rem;line-height:1.375rem;font-weight:400;border-color:var(--backgrounds-50);color:var(--backgrounds-50)}.mat-mdc-button.mat-unthemed{color:var(--foregrounds-700)!important;font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.mat-mdc-outlined-button{border-radius:6px;border-width:1px!important;font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.mat-mdc-outlined-button:not(:disabled).mat-primary{border-color:var(--primary-800)}.mat-mdc-outlined-button:not(:disabled).mat-accent{border-color:var(--accent-400);font-weight:700}.mat-mdc-outlined-button:not(:disabled).mat-warn{border-color:var(--error-500);font-weight:700}.mat-button-toggle-group .mat-button-toggle{margin:0 5px;font-size:.875rem}:root{--mat-divider-width: 2px;--mat-divider-color: var(--foregrounds-300)}.vertical-divider{height:100%;width:1px;background-color:var(--backgrounds-50);margin:0 12px}mat-card.ms-card{border-radius:8px;padding:24px;box-shadow:0 3px 8px #00000014;border:2px solid transparent;transition:transform .3s cubic-bezier(.25,.8,.25,1),box-shadow .3s cubic-bezier(.25,.8,.25,1),border-color .3s cubic-bezier(.25,.8,.25,1)}mat-card.ms-card.action-card{cursor:pointer}mat-card.ms-card.action-card:hover{box-shadow:0 5px 15px #0000001f;background-color:var(--backgrounds-80)}mat-card.ms-card.action-card.selected{background-color:var(--backgrounds-80);box-shadow:inset 0 3px 8px #0000001a;border-color:var(--accent-400)}:root{--mat-option-label-text-size: .75rem;--mat-optgroup-label-text-size: .75rem;--background-color: #ffffff;--border-color: #dcdcdc;--text-color: #000000;--placeholder-color: #888888;--hover-border-color: #bcbcbc;--dark-background-color: #121212;--dark-border-color: #2c2c2c;--dark-text-color: #e0e0e0;--dark-placeholder-color: #757575;--dark-hover-border-color: #5e5e5e}.form-field-container{display:flex;flex-direction:column;color:var(--text-color)}.form-field-container.inline-container{flex-direction:row;align-items:center}.form-field-container .mat-mdc-form-field-hint-wrapper,.form-field-container .mat-mdc-form-field-error-wrapper{padding:0}.form-field-container .mat-mdc-text-field-wrapper{background-color:var(--background-color);border:1px solid var(--border-color)}.form-field-container .mat-mdc-text-field-wrapper:hover{border-color:var(--hover-border-color)}.form-field-container .mat-mdc-text-field-wrapper .mdc-text-field__input{color:var(--text-color)}.form-field-container .mat-mdc-text-field-wrapper ::placeholder{color:var(--placeholder-color)}.form-field-container.dark{color:var(--dark-text-color)}.form-field-container.dark mat-label{color:var(--dark-text-color)}.form-field-container.dark .mat-mdc-text-field-wrapper{background-color:var(--dark-background-color);border:1px solid var(--dark-border-color)}.form-field-container.dark .mat-mdc-text-field-wrapper:hover{border-color:var(--dark-hover-border-color)}.form-field-container.dark .mat-mdc-text-field-wrapper .mdc-text-field__input{color:var(--dark-text-color)}.form-field-container.dark .mat-mdc-text-field-wrapper ::placeholder{color:var(--dark-placeholder-color)}.form-field-container.dark mat-icon{color:var(--dark-text-color)}.form-field-container mat-label{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;color:var(--text-color)}.form-field-container mat-label.dark{color:var(--dark-text-color)}.form-field-container mat-form-field .mat-mdc-form-field-icon-prefix>.mat-icon,.form-field-container mat-form-field .mat-mdc-form-field-icon-suffix>.mat-icon{padding:8.5px}.form-field-container mat-form-field .mdc-notched-outline{display:none}.form-field-container mat-form-field .mat-mdc-text-field-wrapper{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:6px}.form-field-container mat-form-field .mat-mdc-text-field-wrapper:hover{border-color:var(--hover-border-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-select-value,.form-field-container mat-form-field .mat-mdc-text-field-wrapper .mdc-text-field__input{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400;color:var(--text-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark{background-color:var(--dark-background-color);border:1px solid var(--dark-border-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark:hover{border-color:var(--dark-hover-border-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark .mat-mdc-select-value,.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark .mdc-text-field__input{color:var(--dark-text-color)}mat-table.ms-table .mat-mdc-header-row{background:transparent;font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem;text-align:left;color:var(--foregrounds-800)}mat-table.ms-table .mdc-data-table__cell,mat-table.ms-table .mdc-data-table__header-cell{padding-left:0}mat-table.ms-table .mat-mdc-cell{background:transparent;font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;text-align:left;color:var(--foregrounds-750)}mat-stepper.ms-wizard{background-color:transparent}mat-stepper.ms-wizard .mat-horizontal-stepper-header-container{display:none}.mat-mdc-chip.ms-chip .mdc-evolution-chip__text-label{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.mat-mdc-chip.ms-chip.mat-accent.mat-mdc-standard-chip{background-color:var(--accent-50)}.mat-mdc-chip.ms-chip.mat-primary.mat-mdc-standard-chip{background-color:var(--primary-100)}.mat-mdc-chip.ms-chip.mat-warn.mat-mdc-standard-chip{background-color:var(--error-200)}.ms-mat-menu{--mat-menu-item-label-text-size: .875rem}.mdc-label{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.ms-checkbox-white{--mdc-checkbox-unselected-hover-icon-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-focus-icon-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-pressed-state-layer-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-icon-color: var(--backgrounds-50) !important}.ms-checkbox-white .mdc-label{color:var(--backgrounds-50)}.mat-mdc-tooltip:before{background-color:var(--tooltip);height:12px;width:12px;rotate:45deg;right:50%!important;left:auto!important;transform:translate(4px,-4px)}.mdc-tooltip__surface{background-color:var(--tooltip)!important}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip:before{top:auto;bottom:-6px!important}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip:before{top:-6px!important;bottom:auto}.mat-mdc-snack-bar-container{--mdc-snackbar-container-color: rgba(255, 255, 255, 1) !important;--mdc-snackbar-supporting-text-color: rgba(35, 40, 46, 1) !important}.notification-panel-success .mdc-snackbar__surface{border-left:6px solid var(--success-500)}.notification-panel-error .mdc-snackbar__surface{border-left:6px solid var(--error-500)}.notification-panel-warning .mdc-snackbar__surface{border-left:6px solid var(--warning-500)}.notification-panel-info .mdc-snackbar__surface{border-left:6px solid var(--primary-800)}.dialog-backdrop,.drawer-backdrop{background-color:var(--foregrounds-500-alpha)}.mdc-list-item__primary-text{width:100%}.mat-mdc-optgroup-label{padding:5px 16px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element,.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.mat-h1,.mat-headline-5,body .mat-h1,body .mat-headline-5,body h1{font:700 1.5rem/2.125rem Montserrat;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,body .mat-h2,body .mat-headline-6,body h2{font:500 1.25rem/2rem Montserrat;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,body .mat-h3,body .mat-subtitle-1,body h3{font:400 1rem/1.75rem Montserrat;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,body .mat-h4,body .mat-body-1,body h4{font:400 1rem/1.5rem Montserrat;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,body .mat-h5,body h5{font:400 .72625rem/1.25rem Montserrat;margin:0 0 12px}.mat-h6,body .mat-h6,body h6{font:400 .58625rem/1.25rem Montserrat;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,body .mat-body-strong,body .mat-subtitle-2{font:500 .875rem/1.375rem Montserrat;letter-spacing:.0071428571em}.mat-body,.mat-body-2,body .mat-body,body .mat-body-2,body{font:400 .875rem/1.25rem Montserrat;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,body .mat-body p,body .mat-body-2 p,body p{margin:0 0 12px}.mat-small,.mat-caption,body .mat-small,body .mat-caption{font:400 .75rem/1.25rem Montserrat;letter-spacing:.0333333333em}.mat-headline-1,body .mat-headline-1{font:300 7rem/7rem Montserrat;letter-spacing:-.05em;margin:0 0 56px}.mat-headline-2,body .mat-headline-2{font:400 3.5rem/3.5rem Montserrat;letter-spacing:-.02em;margin:0 0 64px}.mat-headline-3,body .mat-headline-3{font:400 2.8125rem/3rem Montserrat;letter-spacing:-.005em;margin:0 0 64px}.mat-headline-4,body .mat-headline-4{font:400 2.125rem/2.5rem Montserrat;letter-spacing:normal;margin:0 0 64px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--backgrounds-100)}::-webkit-scrollbar-thumb{background:var(--backgrounds-500);border-radius:16px}::-webkit-scrollbar-thumb:hover{background:var(--backgrounds-700)}@font-face{font-family:icomoon;src:url("./media/icomoon-N4UB7WA7.eot?39lrb6");src:url("./media/icomoon-N4UB7WA7.eot?39lrb6#iefix") format("embedded-opentype"),url("./media/icomoon-ALHP4THO.ttf?39lrb6") format("truetype"),url("./media/icomoon-FCELVRZF.woff?39lrb6") format("woff"),url("./media/icomoon-JVEKTUSA.svg?39lrb6#icomoon") format("svg");font-weight:400;font-style:normal;font-display:block}[class^=icon-],[class*=" icon-"]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-Admin:before{content:"\e955"}.icon-Environmental:before{content:"\e956"}.icon-Inventory:before{content:"\e957"}.icon-Systems-Manager:before{content:"\e958"}.icon-SelectedFalse:before{content:"\e958"}.icon-Alerts-Info .path1:before{content:"\e900";color:#5b92f0}.icon-Alerts-Info .path2:before{content:"\e901";margin-left:-1em;color:#fff}.icon-Alerts-Info .path3:before{content:"\e902";margin-left:-1em;color:#fff}.icon-Alerts-Negative .path1:before{content:"\e903";color:#c24632}.icon-Alerts-Negative .path2:before{content:"\e904";margin-left:-1em;color:#fff}.icon-Alerts-Negative .path3:before{content:"\e905";margin-left:-1em;color:#fff}.icon-Alerts-Positive .path1:before{content:"\e906";color:#45991f}.icon-Alerts-Positive .path2:before{content:"\e907";margin-left:-1em;color:#fff}.icon-Alerts-Warning .path1:before{content:"\e908";color:#d9b216}.icon-Alerts-Warning .path2:before{content:"\e909";margin-left:-1em;color:#464c54}.icon-Alerts-Warning .path3:before{content:"\e90a";margin-left:-1em;color:#464c54}.icon-ArrowDown:before{content:"\e90b"}.icon-ArrowLeft:before{content:"\e90c"}.icon-ArrowRight:before{content:"\e90d"}.icon-ArrowSquareOut:before{content:"\e90e"}.icon-ArrowUp:before{content:"\e90f"}.icon-Bell:before{content:"\e910"}.icon-CalendarBlank:before{content:"\e911"}.icon-CaretDoubleLeft:before{content:"\e912"}.icon-CaretDoubleRight:before{content:"\e913"}.icon-CaretDown:before{content:"\e914"}.icon-CaretLeft:before{content:"\e915"}.icon-CaretRight:before{content:"\e916"}.icon-CaretUp:before{content:"\e917"}.icon-Check:before{content:"\e918"}.icon-CheckCircle:before{content:"\e919"}.icon-Clock:before{content:"\e91a"}.icon-Copy:before{content:"\e91b"}.icon-Crosshair:before{content:"\e91c"}.icon-DotsSix:before{content:"\e91d"}.icon-DotsThree:before{content:"\e91e"}.icon-DotsThreeVertical:before{content:"\e91f"}.icon-DownloadSimple:before{content:"\e920"}.icon-DropdownCaretDown:before{content:"\e921"}.icon-DropdownCaretRight:before{content:"\e922"}.icon-DropdownCaretUp:before{content:"\e923"}.icon-EnvelopeSimple:before{content:"\e924"}.icon-Eye:before{content:"\e925"}.icon-EyeSlash:before{content:"\e926"}.icon-FunnelSimple:before{content:"\e927"}.icon-GearSix:before{content:"\e928"}.icon-Info:before{content:"\e929"}.icon-Lightning:before{content:"\e92a"}.icon-ListBullets:before{content:"\e92b"}.icon-Loader:before{content:"\e92c"}.icon-Lock:before{content:"\e92d"}.icon-MagicWand:before{content:"\e92e"}.icon-Magnet:before{content:"\e92f"}.icon-MagnifyingGlass:before{content:"\e930"}.icon-MapTrifold:before{content:"\e931"}.icon-Minus:before{content:"\e932"}.icon-Nav:before{content:"\e933"}.icon-Paperclip:before{content:"\e934"}.icon-Passthrough:before{content:"\e935"}.icon-PencilSimple:before{content:"\e936"}.icon-Placeholder:before{content:"\e937"}.icon-Plus:before{content:"\e938"}.icon-Printer:before{content:"\e939"}.icon-Prohibit:before{content:"\e93a"}.icon-Question:before{content:"\e93b"}.icon-Refresh:before{content:"\e93c"}.icon-Rocket:before{content:"\e93d"}.icon-SignOut:before{content:"\e93e"}.icon-Sort:before{content:"\e93f"}.icon-SortDown .path1:before{content:"\e940";color:#000}.icon-SortDown .path2:before{content:"\e941";margin-left:-1em;color:#232323}.icon-SortUp .path1:before{content:"\e942";color:#232323}.icon-SortUp .path2:before{content:"\e943";margin-left:-1em;color:#000}.icon-Stack:before{content:"\e944"}.icon-StackPort:before{content:"\e945"}.icon-TrashSimple:before{content:"\e946"}.icon-TrendDown:before{content:"\e947"}.icon-TrendUp:before{content:"\e948"}.icon-UploadSimple:before{content:"\e949"}.icon-User:before{content:"\e94a"}.icon-Users:before{content:"\e94b"}.icon-WifiHigh:before{content:"\e94c"}.icon-WifiLightning:before{content:"\e94d"}.icon-WifiLow:before{content:"\e94e"}.icon-WifiMedium:before{content:"\e94f"}.icon-WifiNone:before{content:"\e950"}.icon-WifiSlash:before{content:"\e951"}.icon-WifiX:before{content:"\e952"}.icon-X:before{content:"\e953"}.icon-XCircle:before{content:"\e954"}.mat-icon.size-18{font-size:1.125rem;width:1.125rem;height:1.125rem}.mat-icon.size-20{font-size:1.25rem;width:1.25rem;height:1.25rem}.mat-icon.size-24{font-size:1.5rem;width:1.5rem;height:1.5rem}.mat-icon.size-32{font-size:2rem;width:2rem;height:2rem}.mat-icon.size-48{font-size:3rem;width:3rem;height:3rem}mat-icon{font-size:1.5rem}mat-icon.mat-primary{color:var(--primary-800)!important}mat-icon.mat-complementary{color:var(--complementary-800)!important}mat-icon.mat-gray{color:var(--foregrounds-600)!important}mat-icon.mat-white{color:var(--backgrounds-50)!important}mat-icon.mat-accent{color:var(--accent-400)!important}mat-icon.mat-success{color:var(--success-500)!important}mat-icon.mat-warn{color:var(--warning-500)!important}mat-icon.mat-error{color:var(--error-500)!important}button[disabled] mat-icon{color:var(--backgroudns-800)!important}button[disabled] .scale-on-hover:hover{transform:none}.scale-on-hover{cursor:pointer;transition:transform .3s ease;display:inline-flex;align-items:center;justify-content:center}.scale-on-hover:hover{transform:scale(1.1);transform-origin:center}.key-value-container.single{display:grid;grid-template-columns:repeat(1,1fr)}.key-value-container.two-per-row{display:grid;grid-template-columns:repeat(2,1fr)}.key-value-container.three-per-row{display:grid;grid-template-columns:repeat(3,1fr)}.key-value-container.flexible{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.key-value-container.dense{display:flex;flex-wrap:wrap;justify-content:space-between}.key-value-container.dense .key-value-pair{flex-basis:calc(50% - 6px);margin-bottom:12px}@media (max-width: 768px){.key-value-container.dense .key-value-pair{flex-basis:100%}}.key-value-pair{display:flex;align-items:center;padding:6px 0}.key-value-pair.space-between{display:flex;justify-content:space-between;align-items:center}.key-value-key{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.key-value-value{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400;margin-left:5px}a{cursor:pointer;color:var(--primary-800);text-decoration:none;font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}a:hover{color:var(--primary-600)}.page-wrapper{display:flex;justify-content:space-between;gap:20px;height:100%}.page-wrapper .left{display:flex;flex-direction:column;width:45%;gap:20px}.page-wrapper .right{display:flex;flex-direction:column;width:55%;height:100%}.xterm-viewport{overflow-y:auto!important}.static{position:static}.fixed{position:fixed}.relative{position:relative}.col-span-1{grid-column:span 1 / span 1}.col-span-10{grid-column:span 10 / span 10}.col-span-12{grid-column:span 12 / span 12}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-\[22px\]{margin-bottom:22px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-\[-8px\]{margin-left:-8px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-\[2px\]{margin-top:2px}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-9{height:2.25rem}.w-56{width:14rem}.w-full{width:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.border{border-width:1px}.p-2{padding:.5rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-base{font-size:1rem;line-height:1.5rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}html,body{height:100%;background-color:var(--backgrounds-100)}body{margin:0}.no-scroll{overflow:hidden} +.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}html{color:var(--foregrounds-800)}.text-hint{color:var(--foregrounds-700)}.heading-primary-title{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}button.ms-white-stroked-button.mat-mdc-outlined-button{font-size:1rem;line-height:1.375rem;font-weight:400;border-color:var(--backgrounds-50);color:var(--backgrounds-50)}.mat-mdc-button.mat-unthemed{color:var(--foregrounds-700)!important;font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.mat-mdc-outlined-button{border-radius:6px;border-width:1px!important;font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.mat-mdc-outlined-button:not(:disabled).mat-primary{border-color:var(--primary-800)}.mat-mdc-outlined-button:not(:disabled).mat-accent{border-color:var(--accent-400);font-weight:700}.mat-mdc-outlined-button:not(:disabled).mat-warn{border-color:var(--error-500);font-weight:700}.mat-button-toggle-group .mat-button-toggle{margin:0 5px;font-size:.875rem}:root{--mat-divider-width: 2px;--mat-divider-color: var(--foregrounds-300)}.vertical-divider{height:100%;width:1px;background-color:var(--backgrounds-50);margin:0 12px}mat-card.ms-card{border-radius:8px;padding:24px;box-shadow:0 3px 8px #00000014;border:2px solid transparent;transition:transform .3s cubic-bezier(.25,.8,.25,1),box-shadow .3s cubic-bezier(.25,.8,.25,1),border-color .3s cubic-bezier(.25,.8,.25,1)}mat-card.ms-card.action-card{cursor:pointer}mat-card.ms-card.action-card:hover{box-shadow:0 5px 15px #0000001f;background-color:var(--backgrounds-80)}mat-card.ms-card.action-card.selected{background-color:var(--backgrounds-80);box-shadow:inset 0 3px 8px #0000001a;border-color:var(--accent-400)}:root{--mat-option-label-text-size: .75rem;--mat-optgroup-label-text-size: .75rem;--background-color: #ffffff;--border-color: #dcdcdc;--text-color: #000000;--placeholder-color: #888888;--hover-border-color: #bcbcbc;--dark-background-color: #121212;--dark-border-color: #2c2c2c;--dark-text-color: #e0e0e0;--dark-placeholder-color: #757575;--dark-hover-border-color: #5e5e5e}.form-field-container{display:flex;flex-direction:column;color:var(--text-color)}.form-field-container.inline-container{flex-direction:row;align-items:center}.form-field-container .mat-mdc-form-field-hint-wrapper,.form-field-container .mat-mdc-form-field-error-wrapper{padding:0}.form-field-container .mat-mdc-text-field-wrapper{background-color:var(--background-color);border:1px solid var(--border-color)}.form-field-container .mat-mdc-text-field-wrapper:hover{border-color:var(--hover-border-color)}.form-field-container .mat-mdc-text-field-wrapper .mdc-text-field__input{color:var(--text-color)}.form-field-container .mat-mdc-text-field-wrapper ::placeholder{color:var(--placeholder-color)}.form-field-container.dark{color:var(--dark-text-color)}.form-field-container.dark mat-label{color:var(--dark-text-color)}.form-field-container.dark .mat-mdc-text-field-wrapper{background-color:var(--dark-background-color);border:1px solid var(--dark-border-color)}.form-field-container.dark .mat-mdc-text-field-wrapper:hover{border-color:var(--dark-hover-border-color)}.form-field-container.dark .mat-mdc-text-field-wrapper .mdc-text-field__input{color:var(--dark-text-color)}.form-field-container.dark .mat-mdc-text-field-wrapper ::placeholder{color:var(--dark-placeholder-color)}.form-field-container.dark mat-icon{color:var(--dark-text-color)}.form-field-container mat-label{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;color:var(--text-color)}.form-field-container mat-label.dark{color:var(--dark-text-color)}.form-field-container mat-form-field .mat-mdc-form-field-icon-prefix>.mat-icon,.form-field-container mat-form-field .mat-mdc-form-field-icon-suffix>.mat-icon{padding:8.5px}.form-field-container mat-form-field .mdc-notched-outline{display:none}.form-field-container mat-form-field .mat-mdc-text-field-wrapper{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:6px}.form-field-container mat-form-field .mat-mdc-text-field-wrapper:hover{border-color:var(--hover-border-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-select-value,.form-field-container mat-form-field .mat-mdc-text-field-wrapper .mdc-text-field__input{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400;color:var(--text-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark{background-color:var(--dark-background-color);border:1px solid var(--dark-border-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark:hover{border-color:var(--dark-hover-border-color)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark .mat-mdc-select-value,.form-field-container mat-form-field .mat-mdc-text-field-wrapper.dark .mdc-text-field__input{color:var(--dark-text-color)}mat-table.ms-table .mat-mdc-header-row{background:transparent;font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem;text-align:left;color:var(--foregrounds-800)}mat-table.ms-table .mdc-data-table__cell,mat-table.ms-table .mdc-data-table__header-cell{padding-left:0}mat-table.ms-table .mat-mdc-cell{background:transparent;font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;text-align:left;color:var(--foregrounds-750)}mat-stepper.ms-wizard{background-color:transparent}mat-stepper.ms-wizard .mat-horizontal-stepper-header-container{display:none}.mat-mdc-chip.ms-chip .mdc-evolution-chip__text-label{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.mat-mdc-chip.ms-chip.mat-accent.mat-mdc-standard-chip{background-color:var(--accent-50)}.mat-mdc-chip.ms-chip.mat-primary.mat-mdc-standard-chip{background-color:var(--primary-100)}.mat-mdc-chip.ms-chip.mat-warn.mat-mdc-standard-chip{background-color:var(--error-200)}.ms-mat-menu{--mat-menu-item-label-text-size: .875rem}.mdc-label{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.ms-checkbox-white{--mdc-checkbox-unselected-hover-icon-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-focus-icon-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-pressed-state-layer-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-icon-color: var(--backgrounds-50) !important}.ms-checkbox-white .mdc-label{color:var(--backgrounds-50)}.mat-mdc-tooltip:before{background-color:var(--tooltip);height:12px;width:12px;rotate:45deg;right:50%!important;left:auto!important;transform:translate(4px,-4px)}.mdc-tooltip__surface{background-color:var(--tooltip)!important}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip:before{top:auto;bottom:-6px!important}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip:before{top:-6px!important;bottom:auto}.mat-mdc-snack-bar-container{--mdc-snackbar-container-color: rgba(255, 255, 255, 1) !important;--mdc-snackbar-supporting-text-color: rgba(35, 40, 46, 1) !important}.notification-panel-success .mdc-snackbar__surface{border-left:6px solid var(--success-500)}.notification-panel-error .mdc-snackbar__surface{border-left:6px solid var(--error-500)}.notification-panel-warning .mdc-snackbar__surface{border-left:6px solid var(--warning-500)}.notification-panel-info .mdc-snackbar__surface{border-left:6px solid var(--primary-800)}.dialog-backdrop,.drawer-backdrop{background-color:var(--foregrounds-500-alpha)}.mdc-list-item__primary-text{width:100%}.mat-mdc-optgroup-label{padding:5px 16px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element,.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.mat-h1,.mat-headline-5,body .mat-h1,body .mat-headline-5,body h1{font:700 1.5rem/2.125rem Montserrat;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,body .mat-h2,body .mat-headline-6,body h2{font:500 1.25rem/2rem Montserrat;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,body .mat-h3,body .mat-subtitle-1,body h3{font:400 1rem/1.75rem Montserrat;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,body .mat-h4,body .mat-body-1,body h4{font:400 1rem/1.5rem Montserrat;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,body .mat-h5,body h5{font:400 .72625rem/1.25rem Montserrat;margin:0 0 12px}.mat-h6,body .mat-h6,body h6{font:400 .58625rem/1.25rem Montserrat;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,body .mat-body-strong,body .mat-subtitle-2{font:500 .875rem/1.375rem Montserrat;letter-spacing:.0071428571em}.mat-body,.mat-body-2,body .mat-body,body .mat-body-2,body{font:400 .875rem/1.25rem Montserrat;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,body .mat-body p,body .mat-body-2 p,body p{margin:0 0 12px}.mat-small,.mat-caption,body .mat-small,body .mat-caption{font:400 .75rem/1.25rem Montserrat;letter-spacing:.0333333333em}.mat-headline-1,body .mat-headline-1{font:300 7rem/7rem Montserrat;letter-spacing:-.05em;margin:0 0 56px}.mat-headline-2,body .mat-headline-2{font:400 3.5rem/3.5rem Montserrat;letter-spacing:-.02em;margin:0 0 64px}.mat-headline-3,body .mat-headline-3{font:400 2.8125rem/3rem Montserrat;letter-spacing:-.005em;margin:0 0 64px}.mat-headline-4,body .mat-headline-4{font:400 2.125rem/2.5rem Montserrat;letter-spacing:normal;margin:0 0 64px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--backgrounds-100)}::-webkit-scrollbar-thumb{background:var(--backgrounds-500);border-radius:16px}::-webkit-scrollbar-thumb:hover{background:var(--backgrounds-700)}@font-face{font-family:icomoon;src:url("./media/icomoon-N4UB7WA7.eot?39lrb6");src:url("./media/icomoon-N4UB7WA7.eot?39lrb6#iefix") format("embedded-opentype"),url("./media/icomoon-ALHP4THO.ttf?39lrb6") format("truetype"),url("./media/icomoon-FCELVRZF.woff?39lrb6") format("woff"),url("./media/icomoon-JVEKTUSA.svg?39lrb6#icomoon") format("svg");font-weight:400;font-style:normal;font-display:block}[class^=icon-],[class*=" icon-"]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-Admin:before{content:"\e955"}.icon-Environmental:before{content:"\e956"}.icon-Inventory:before{content:"\e957"}.icon-Systems-Manager:before{content:"\e958"}.icon-SelectedFalse:before{content:"\e958"}.icon-Alerts-Info .path1:before{content:"\e900";color:#5b92f0}.icon-Alerts-Info .path2:before{content:"\e901";margin-left:-1em;color:#fff}.icon-Alerts-Info .path3:before{content:"\e902";margin-left:-1em;color:#fff}.icon-Alerts-Negative .path1:before{content:"\e903";color:#c24632}.icon-Alerts-Negative .path2:before{content:"\e904";margin-left:-1em;color:#fff}.icon-Alerts-Negative .path3:before{content:"\e905";margin-left:-1em;color:#fff}.icon-Alerts-Positive .path1:before{content:"\e906";color:#45991f}.icon-Alerts-Positive .path2:before{content:"\e907";margin-left:-1em;color:#fff}.icon-Alerts-Warning .path1:before{content:"\e908";color:#d9b216}.icon-Alerts-Warning .path2:before{content:"\e909";margin-left:-1em;color:#464c54}.icon-Alerts-Warning .path3:before{content:"\e90a";margin-left:-1em;color:#464c54}.icon-ArrowDown:before{content:"\e90b"}.icon-ArrowLeft:before{content:"\e90c"}.icon-ArrowRight:before{content:"\e90d"}.icon-ArrowSquareOut:before{content:"\e90e"}.icon-ArrowUp:before{content:"\e90f"}.icon-Bell:before{content:"\e910"}.icon-CalendarBlank:before{content:"\e911"}.icon-CaretDoubleLeft:before{content:"\e912"}.icon-CaretDoubleRight:before{content:"\e913"}.icon-CaretDown:before{content:"\e914"}.icon-CaretLeft:before{content:"\e915"}.icon-CaretRight:before{content:"\e916"}.icon-CaretUp:before{content:"\e917"}.icon-Check:before{content:"\e918"}.icon-CheckCircle:before{content:"\e919"}.icon-Clock:before{content:"\e91a"}.icon-Copy:before{content:"\e91b"}.icon-Crosshair:before{content:"\e91c"}.icon-DotsSix:before{content:"\e91d"}.icon-DotsThree:before{content:"\e91e"}.icon-DotsThreeVertical:before{content:"\e91f"}.icon-DownloadSimple:before{content:"\e920"}.icon-DropdownCaretDown:before{content:"\e921"}.icon-DropdownCaretRight:before{content:"\e922"}.icon-DropdownCaretUp:before{content:"\e923"}.icon-EnvelopeSimple:before{content:"\e924"}.icon-Eye:before{content:"\e925"}.icon-EyeSlash:before{content:"\e926"}.icon-FunnelSimple:before{content:"\e927"}.icon-GearSix:before{content:"\e928"}.icon-Info:before{content:"\e929"}.icon-Lightning:before{content:"\e92a"}.icon-ListBullets:before{content:"\e92b"}.icon-Loader:before{content:"\e92c"}.icon-Lock:before{content:"\e92d"}.icon-MagicWand:before{content:"\e92e"}.icon-Magnet:before{content:"\e92f"}.icon-MagnifyingGlass:before{content:"\e930"}.icon-MapTrifold:before{content:"\e931"}.icon-Minus:before{content:"\e932"}.icon-Nav:before{content:"\e933"}.icon-Paperclip:before{content:"\e934"}.icon-Passthrough:before{content:"\e935"}.icon-PencilSimple:before{content:"\e936"}.icon-Placeholder:before{content:"\e937"}.icon-Plus:before{content:"\e938"}.icon-Printer:before{content:"\e939"}.icon-Prohibit:before{content:"\e93a"}.icon-Question:before{content:"\e93b"}.icon-Refresh:before{content:"\e93c"}.icon-Rocket:before{content:"\e93d"}.icon-SignOut:before{content:"\e93e"}.icon-Sort:before{content:"\e93f"}.icon-SortDown .path1:before{content:"\e940";color:#000}.icon-SortDown .path2:before{content:"\e941";margin-left:-1em;color:#232323}.icon-SortUp .path1:before{content:"\e942";color:#232323}.icon-SortUp .path2:before{content:"\e943";margin-left:-1em;color:#000}.icon-Stack:before{content:"\e944"}.icon-StackPort:before{content:"\e945"}.icon-TrashSimple:before{content:"\e946"}.icon-TrendDown:before{content:"\e947"}.icon-TrendUp:before{content:"\e948"}.icon-UploadSimple:before{content:"\e949"}.icon-User:before{content:"\e94a"}.icon-Users:before{content:"\e94b"}.icon-WifiHigh:before{content:"\e94c"}.icon-WifiLightning:before{content:"\e94d"}.icon-WifiLow:before{content:"\e94e"}.icon-WifiMedium:before{content:"\e94f"}.icon-WifiNone:before{content:"\e950"}.icon-WifiSlash:before{content:"\e951"}.icon-WifiX:before{content:"\e952"}.icon-X:before{content:"\e953"}.icon-XCircle:before{content:"\e954"}.mat-icon.size-18{font-size:1.125rem;width:1.125rem;height:1.125rem}.mat-icon.size-20{font-size:1.25rem;width:1.25rem;height:1.25rem}.mat-icon.size-24{font-size:1.5rem;width:1.5rem;height:1.5rem}.mat-icon.size-32{font-size:2rem;width:2rem;height:2rem}.mat-icon.size-48{font-size:3rem;width:3rem;height:3rem}mat-icon{font-size:1.5rem}mat-icon.mat-primary{color:var(--primary-800)!important}mat-icon.mat-complementary{color:var(--complementary-800)!important}mat-icon.mat-gray{color:var(--foregrounds-600)!important}mat-icon.mat-white{color:var(--backgrounds-50)!important}mat-icon.mat-accent{color:var(--accent-400)!important}mat-icon.mat-success{color:var(--success-500)!important}mat-icon.mat-warn{color:var(--warning-500)!important}mat-icon.mat-error{color:var(--error-500)!important}button[disabled] mat-icon{color:var(--backgroudns-800)!important}button[disabled] .scale-on-hover:hover{transform:none}.scale-on-hover{cursor:pointer;transition:transform .3s ease;display:inline-flex;align-items:center;justify-content:center}.scale-on-hover:hover{transform:scale(1.1);transform-origin:center}.key-value-container.single{display:grid;grid-template-columns:repeat(1,1fr)}.key-value-container.two-per-row{display:grid;grid-template-columns:repeat(2,1fr)}.key-value-container.three-per-row{display:grid;grid-template-columns:repeat(3,1fr)}.key-value-container.flexible{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.key-value-container.dense{display:flex;flex-wrap:wrap;justify-content:space-between}.key-value-container.dense .key-value-pair{flex-basis:calc(50% - 6px);margin-bottom:12px}@media (max-width: 768px){.key-value-container.dense .key-value-pair{flex-basis:100%}}.key-value-pair{display:flex;align-items:center;padding:6px 0}.key-value-pair.space-between{display:flex;justify-content:space-between;align-items:center}.key-value-key{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.key-value-value{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400;margin-left:5px}a{cursor:pointer;color:var(--primary-800);text-decoration:none;font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}a:hover{color:var(--primary-600)}.page-wrapper{display:flex;justify-content:space-between;gap:20px;height:100%}.page-wrapper .left{display:flex;flex-direction:column;width:45%;gap:20px}.page-wrapper .right{display:flex;flex-direction:column;width:55%;height:100%}.xterm-viewport{overflow-y:auto!important}.xterm-selection{overflow:hidden}.static{position:static}.fixed{position:fixed}.relative{position:relative}.col-span-1{grid-column:span 1 / span 1}.col-span-10{grid-column:span 10 / span 10}.col-span-12{grid-column:span 12 / span 12}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-\[22px\]{margin-bottom:22px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-\[-8px\]{margin-left:-8px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-\[2px\]{margin-top:2px}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-9{height:2.25rem}.w-56{width:14rem}.w-full{width:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.border{border-width:1px}.p-2{padding:.5rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-base{font-size:1rem;line-height:1.5rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}html,body{height:100%;background-color:var(--backgrounds-100)}body{margin:0}.no-scroll{overflow:hidden}