diff --git a/server/src/uds/static/modern/main.js b/server/src/uds/static/modern/main.js
index 686acf074..2b5cb7967 100644
--- a/server/src/uds/static/modern/main.js
+++ b/server/src/uds/static/modern/main.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{6498:(qe,ye,C)=>{C.d(ye,{z:()=>g});var c=C(4893),o=C(2313);let g=(()=>{class Y{constructor(q){this.sanitizer=q}transform(q,De){return q=(q=(q=q.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(q)}}return Y.\u0275fac=function(q){return new(q||Y)(c.Y36(o.H7,16))},Y.\u0275pipe=c.Yjl({name:"safeHtml",type:Y,pure:!0}),Y})()},5928:(qe,ye,C)=>{C.d(ye,{h:()=>Be});var c=C(8966),o=C(8306),g=C(4986),Y=C(5963),q=C(4893),De=C(9808),Ce=C(7423),ue=C(7918),te=C(6498);function se(Z,et){if(1&Z){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().close()}),q.TgZ(1,"uds-translate"),q._uU(2,"Close"),q.qZA(),q._uU(3),q.qZA()}if(2&Z){const Ye=q.oxw();q.xp6(3),q.Oqu(Ye.extra)}}function de(Z,et){if(1&Z){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().yes()}),q.TgZ(1,"uds-translate"),q._uU(2,"Yes"),q.qZA()()}}function X(Z,et){if(1&Z){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().no()}),q.TgZ(1,"uds-translate"),q._uU(2,"No"),q.qZA()()}}var le=(()=>{return(Z=le||(le={}))[Z.alert=0]="alert",Z[Z.yesno=1]="yesno",le;var Z})();let ke=(()=>{class Z{constructor(Ye,Qe){this.dialogRef=Ye,this.data=Qe,this.subscription=null,this.resetCallbacks(),this.yesno=new o.y(me=>{this.yes=()=>{me.next(!0),me.complete()},this.no=()=>{me.next(!1),me.complete()},this.close=()=>{this.doClose(),me.next(!1),me.complete()};const z=this;return{unsubscribe:()=>z.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(Ye){this.extra=" ("+Math.floor(Ye/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function ce(Z=0,et=g.z){return Z<0&&(Z=0),(0,Y.H)(Z,Z,et)}(1e3).subscribe(Ye=>{const Qe=this.data.autoclose-1e3*(Ye+1);this.setExtra(Qe),Qe<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(Ye=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===le.yesno?this.initYesNo():this.initAlert()}}return Z.\u0275fac=function(Ye){return new(Ye||Z)(q.Y36(c.so),q.Y36(c.WI))},Z.\u0275cmp=q.Xpm({type:Z,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(Ye,Qe){1&Ye&&(q._UZ(0,"h4",0),q.ALo(1,"safeHtml"),q._UZ(2,"mat-dialog-content",1),q.ALo(3,"safeHtml"),q.TgZ(4,"mat-dialog-actions"),q.YNc(5,se,4,1,"button",2),q.YNc(6,de,3,0,"button",2),q.YNc(7,X,3,0,"button",2),q.qZA()),2&Ye&&(q.Q6J("innerHtml",q.lcZ(1,5,Qe.data.title),q.oJD),q.xp6(2),q.Q6J("innerHTML",q.lcZ(3,7,Qe.data.body),q.oJD),q.xp6(3),q.Q6J("ngIf",0===Qe.data.type),q.xp6(1),q.Q6J("ngIf",1===Qe.data.type),q.xp6(1),q.Q6J("ngIf",1===Qe.data.type))},directives:[c.uh,c.xY,c.H8,De.O5,Ce.lW,c.ZT,ue.P],pipes:[te.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),Z})(),Be=(()=>{class Z{constructor(Ye){this.dialog=Ye}alert(Ye,Qe,me=0,z=null){const Q=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:Q,data:{title:Ye,body:Qe,autoclose:me,checkClose:z,type:le.alert},disableClose:!0})}yesno(Ye,Qe){const me=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:me,data:{title:Ye,body:Qe,type:le.yesno},disableClose:!0}).componentInstance.yesno}}return Z.\u0275fac=function(Ye){return new(Ye||Z)(q.LFG(c.uw))},Z.\u0275prov=q.Yz7({token:Z,factory:Z.\u0275fac}),Z})()},2870:(qe,ye,C)=>{C.d(ye,{S:()=>o});var c=C(8306);let o=(()=>{class g{constructor(ce){this.api=ce,this.delay=ce.config.launcher_wait_time}launchURL(ce){let q="init";const De=Ce=>{let ue=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof Ce?ue=Ce:403===Ce.status&&(ue=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),ue,5e3),403===Ce.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===ce.substring(0,7)){const Ce=ce.split("//")[1].split("/"),ue=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new c.y(te=>{let se=0;const de=()=>{ue.componentInstance&&this.api.status(Ce[0],Ce[1]).subscribe(le=>{"ready"===le.status?(se?Date.now()-se>5*this.delay&&(ue.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),ue.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(se=Date.now(),ue.componentInstance.data.title=django.gettext("Service ready"),ue.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(de,this.delay)):"accessed"===le.status?(ue.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),te.next(!0),te.complete()):"running"===le.status?window.setTimeout(de,this.delay):(te.next(!0),te.complete(),De())},le=>{te.next(!0),te.complete(),De(le)})},X=()=>{if("init"===q)window.setTimeout(X,this.delay);else{if("error"===q||"stop"===q)return;window.setTimeout(de)}};window.setTimeout(X)}));this.api.enabler(Ce[0],Ce[1]).subscribe(te=>{if(te.error)q="error",this.api.gui.alert(django.gettext("Error launching service"),te.error);else{if(te.url.startsWith("/"))return ue.componentInstance&&ue.componentInstance.close(),q="stop",void this.launchURL(te.url);"https:"===window.location.protocol&&(te.url=te.url.replace("uds://","udss://")),q="enabled",this.doLaunch(te.url)}},te=>{this.api.logout()})}else{const Ce=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new c.y(ue=>{const te=()=>{Ce.componentInstance&&this.api.transportUrl(ce).subscribe(se=>{if(se.url)if(ue.next(!0),ue.complete(),-1!==se.url.indexOf("o_s_w=")){const de=/(.*)&o_s_w=.*/.exec(se.url);window.location.href=de[1]}else{let de="global";if(-1!==se.url.indexOf("o_n_w=")){const X=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(se.url);X&&(de=X[2],se.url=X[1])}g.transportsWindow[de]&&g.transportsWindow[de].close(),g.transportsWindow[de]=window.open(se.url,"uds_trans_"+de)}else se.running?window.setTimeout(te,this.delay):(ue.next(!0),ue.complete(),De(se.error))},se=>{ue.next(!0),ue.complete(),De(se)})};window.setTimeout(te)}))}}showAlert(ce,q,De,Ce=null){return this.api.gui.alert(django.gettext("Launching service"),'
'+ce+'
'+q+"
",De,Ce)}doLaunch(ce){let q=document.getElementById("hiddenUdsLauncherIFrame");if(null===q){const De=document.createElement("div");De.id="testID",De.innerHTML='',document.body.appendChild(De),q=document.getElementById("hiddenUdsLauncherIFrame")}q.contentWindow.location.href=ce}}return g.transportsWindow={},g})()},4902:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>LoginComponent});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4893),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2382),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7322),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7531),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9808),_angular_material_select__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4107),_angular_material_core__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(508),_angular_material_button__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7423),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(qe,ye){if(1&qe&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&qe){const C=ye.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.name," ")}}function LoginComponent_div_22_Template(qe,ye){if(1&qe){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9)(1,"mat-form-field",17)(2,"mat-label")(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(o){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(C),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(o.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()}if(2&qe){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",C.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(qe){this.api=qe,this.title="UDS Enterprise",this.title=qe.config.site_name,this.auths=qe.config.authenticators.slice(0),this.auths.sort((ye,C)=>ye.priority-C.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const ye=document.getElementById("token");ye.name=this.api.csrfField,ye.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),""+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const qe of this.auths)qe.id===auth&&qe.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(qe.id).subscribe(ye=>doCustomAuth(ye)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function qe(ye){return new(ye||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function qe(ye,C){1&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return C.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1)(2,"input",2)(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4)(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8)(10,"div",9)(11,"mat-form-field",10)(12,"mat-label")(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9)(17,"mat-form-field",10)(18,"mat-label")(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14)(24,"button",15)(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()),2&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",C.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",C.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,C.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_select__WEBPACK_IMPORTED_MODULE_7__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_8__.ey,_angular_material_button__WEBPACK_IMPORTED_MODULE_9__.lW],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:(qe,ye,C)=>{C.d(ye,{P:()=>o});var c=C(4893);let o=(()=>{class g{constructor(ce){this.el=ce}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return g.\u0275fac=function(ce){return new(ce||g)(c.Y36(c.SBq))},g.\u0275dir=c.lG2({type:g,selectors:[["uds-translate"]]}),g})()},3513:(qe,ye,C)=>{C.d(ye,{n:()=>c});class c{constructor(g){this.user=g.user,this.role=g.role,this.admin=g.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{n:()=>UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4893),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(520),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5928),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9525);const DARK_THEME="dark-theme",LIGHT_THEME="light-theme";let UDSApiService=(()=>{class UDSApiService{constructor(qe,ye,C){this.http=qe,this.gui=ye,this.router=C,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(qe,ye){const C=this.config.urls.enabler.replace("param1",qe).replace("param2",ye);return this.http.get(C)}status(qe,ye){const C=this.config.urls.status.replace("param1",qe).replace("param2",ye);return this.http.get(C)}action(qe,ye){const C=this.config.urls.action.replace("param1",ye).replace("param2",qe);return this.http.get(C)}transportUrl(qe){return this.http.get(qe)}galleryImageURL(qe){return this.config.urls.galleryImage.replace("param1",qe)}transportIconURL(qe){return this.config.urls.transportIcon.replace("param1",qe)}staticURL(qe){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+qe:"/static/"+qe}getServicesInformation(){return this.http.get(this.config.urls.services)}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(qe){this.plugin.launchURL(qe)}getAuthCustomHtml(qe){return this.http.get(this.config.urls.customAuth+qe,{responseType:"text"})}switchTheme(qe){const ye=document.getElementsByTagName("html")[0];[DARK_THEME,LIGHT_THEME].forEach(C=>{ye.classList.contains(C)&&ye.classList.remove(C)}),ye.classList.add(qe?DARK_THEME:LIGHT_THEME)}}return UDSApiService.\u0275fac=function qe(ye){return new(ye||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:(qe,ye,C)=>{C.d(ye,{N:()=>c});const c={production:!0}},5664:(qe,ye,C)=>{var c=C(2313),o=C(4893),g=C(3191),Y=C(7579),ce=C(9841),q=C(7272),De=C(8306),Ce=C(5698),ue=C(5684),te=C(8372),se=C(4004),de=C(8675),X=C(2722),le=C(925);let ke=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();const Be=new Set;let Z,et=(()=>{class k{constructor(m){this._platform=m,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qe}matchMedia(m){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ye(k){if(!Be.has(k))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${k} {body{ }}`,0),Be.add(k))}catch(Ee){console.error(Ee)}}(m),this._matchMedia(m)}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(le.t4))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function Qe(k){return{matches:"all"===k||""===k,media:k,addListener:()=>{},removeListener:()=>{}}}let me=(()=>{class k{constructor(m,d){this._mediaMatcher=m,this._zone=d,this._queries=new Map,this._destroySubject=new Y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(m){return z((0,g.Eq)(m)).some(a=>this._registerQuery(a).mql.matches)}observe(m){const a=z((0,g.Eq)(m)).map(v=>this._registerQuery(v).observable);let l=(0,ce.a)(a);return l=(0,q.z)(l.pipe((0,Ce.q)(1)),l.pipe((0,ue.T)(1),(0,te.b)(0))),l.pipe((0,se.U)(v=>{const R={matches:!1,breakpoints:{}};return v.forEach(({matches:G,query:ie})=>{R.matches=R.matches||G,R.breakpoints[ie]=G}),R}))}_registerQuery(m){if(this._queries.has(m))return this._queries.get(m);const d=this._mediaMatcher.matchMedia(m),l={observable:new De.y(v=>{const R=G=>this._zone.run(()=>v.next(G));return d.addListener(R),()=>{d.removeListener(R)}}).pipe((0,de.O)(d),(0,se.U)(({matches:v})=>({query:m,matches:v})),(0,X.R)(this._destroySubject)),mql:d};return this._queries.set(m,l),l}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(et),o.LFG(o.R0b))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function z(k){return k.map(Ee=>Ee.split(",")).reduce((Ee,m)=>Ee.concat(m)).map(Ee=>Ee.trim())}var pe=C(520),Te=C(9525),Ne=C(7540);let ve=(()=>{class k{constructor(m){this.api=m}canActivate(m,d){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(Ne.n))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();var Me=C(4902),xe=C(7918),Ae=C(9808);function tt(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o.TgZ(3,"div",9),o._uU(4),o.qZA(),o.TgZ(5,"div",10),o._uU(6),o.qZA()()}if(2&k){const m=Ee.$implicit,d=o.oxw();o.Tol(d.css(m)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(2),o.lnq(" ",d.legacy(m)," ",m.name," (",m.url.split(".").pop(),") "),o.xp6(2),o.hij(" ",m.description," ")}}let Fe=(()=>{class k{constructor(m){this.api=m}ngOnInit(){}download(m){window.location.href=m}img(m){return this.api.staticURL("modern/img/"+m+".png")}css(m){const d=["plugin"];return m.legacy&&d.push("legacy"),d}legacy(m){return m.legacy?"Legacy":""}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"UDS Client"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,tt,7,7,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Download UDS client for your platform"),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.api.plugins))},directives:[xe.P,Ae.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem} .dark-theme uds-client-download{color:#fff!important} .dark-theme .plugin.legacy{background-color:#a9a9a9} .dark-theme .plugin:hover{background-color:#ffffff1a}"]}),k})();var Ct=C(6498);function mt(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o._UZ(3,"div",9),o.ALo(4,"safeHtml"),o._UZ(5,"div",10),o.ALo(6,"safeHtml"),o.qZA()}if(2&k){const m=Ee.$implicit,d=o.oxw();o.Tol(d.css(m.name)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(1),o.Q6J("innerHTML",o.lcZ(4,5,m.name),o.oJD),o.xp6(2),o.Q6J("innerHTML",o.lcZ(6,7,m.description),o.oJD)}}let Jt=(()=>{class k{constructor(m){this.api=m}ngOnInit(){this.actors=[];const m=[];this.api.actors.forEach(d=>{d.name.includes("legacy")?m.push(d):this.actors.push(d)}),m.forEach(d=>{this.actors.push(d)})}download(m){window.location.href=m}img(m){const d=m.split(".").pop().toLowerCase();let a="Linux";return"exe"===d?a="Windows":"pkg"===d&&(a="MacOS"),this.api.staticURL("modern/img/"+a+".png")}css(m){const d=["actor"];return m.toLowerCase().includes("legacy")&&d.push("legacy"),d}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"Downloads"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,mt,7,9,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Always download the UDS actor matching your platform"),o.qZA()(),o.TgZ(13,"li")(14,"uds-translate"),o._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.actors))},directives:[xe.P,Ae.sg],pipes:[Ct.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:700;overflow:hidden} .dark-theme uds-downloads{color:#fff!important} .dark-theme .actor.legacy{background-color:#464646}"]}),k})();var yt=C(4968),Rt=C(9300),Wt=C(1884),Pt=C(8505),mn=C(7322),Ut=C(7531);const xt=["input"];let on=(()=>{class k{constructor(){this.updateEvent=new o.vpe}ngAfterViewInit(){(0,yt.R)(this.input.nativeElement,"keyup").pipe((0,Rt.h)(Boolean),(0,te.b)(600),(0,Wt.x)(),(0,Pt.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(m){this.updateEvent.emit(m.toLowerCase())}}return k.\u0275fac=function(m){return new(m||k)},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-filter"]],viewQuery:function(m,d){if(1&m&&o.Gf(xt,7),2&m){let a;o.iGM(a=o.CRH())&&(d.input=a.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label")(3,"uds-translate"),o._uU(4,"Filter"),o.qZA()(),o._UZ(5,"input",2,3),o.TgZ(7,"i",4),o._uU(8,"search"),o.qZA()()())},directives:[mn.KE,mn.hX,xe.P,Ut.Nt,mn.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),k})();var Xe=C(727),je=C(449);let J=0;const K=new o.OlP("CdkAccordion");let He=(()=>{class k{constructor(){this._stateChanges=new Y.x,this._openCloseAllActions=new Y.x,this.id="cdk-accordion-"+J++,this._multi=!1}get multi(){return this._multi}set multi(m){this._multi=(0,g.Ig)(m)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(m){this._stateChanges.next(m)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[o._Bn([{provide:K,useExisting:k}]),o.TTD]}),k})(),Ge=0,lt=(()=>{class k{constructor(m,d,a){this.accordion=m,this._changeDetectorRef=d,this._expansionDispatcher=a,this._openCloseAllSubscription=Xe.w0.EMPTY,this.closed=new o.vpe,this.opened=new o.vpe,this.destroyed=new o.vpe,this.expandedChange=new o.vpe,this.id="cdk-accordion-child-"+Ge++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=a.listen((l,v)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===v&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(m){m=(0,g.Ig)(m),this._expanded!==m&&(this._expanded=m,this.expandedChange.emit(m),m?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(m=>{this.disabled||(this.expanded=m)})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(K,12),o.Y36(o.sBO),o.Y36(je.A8))},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[o._Bn([{provide:K,useValue:void 0}])]}),k})(),St=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();var Ht=C(7429),bt=C(508),Nt=C(9950),at=C(1159),Pe=C(6360),E=C(515),S=C(6451),D=C(1777);const P=["body"];function L(k,Ee){}const re=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],be=["mat-expansion-panel-header","*","mat-action-row"];function Ue(k,Ee){if(1&k&&o._UZ(0,"span",2),2&k){const m=o.oxw();o.Q6J("@indicatorRotate",m._getExpandedState())}}const ze=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_t=["mat-panel-title","mat-panel-description","*"],ct=new o.OlP("MAT_ACCORDION"),Ot="225ms cubic-bezier(0.4,0.0,0.2,1)",nn={indicatorRotate:(0,D.X$)("indicatorRotate",[(0,D.SB)("collapsed, void",(0,D.oB)({transform:"rotate(0deg)"})),(0,D.SB)("expanded",(0,D.oB)({transform:"rotate(180deg)"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))]),bodyExpansion:(0,D.X$)("bodyExpansion",[(0,D.SB)("collapsed, void",(0,D.oB)({height:"0px",visibility:"hidden"})),(0,D.SB)("expanded",(0,D.oB)({height:"*",visibility:"visible"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))])};let Yt=(()=>{class k{constructor(m){this._template=m}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.Rgc))},k.\u0275dir=o.lG2({type:k,selectors:[["ng-template","matExpansionPanelContent",""]]}),k})(),dn=0;const dt=new o.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let vt=(()=>{class k extends lt{constructor(m,d,a,l,v,R,G){super(m,d,a),this._viewContainerRef=l,this._animationMode=R,this._hideToggle=!1,this.afterExpand=new o.vpe,this.afterCollapse=new o.vpe,this._inputChanges=new Y.x,this._headerId="mat-expansion-panel-header-"+dn++,this._bodyAnimationDone=new Y.x,this.accordion=m,this._document=v,this._bodyAnimationDone.pipe((0,Wt.x)((ie,oe)=>ie.fromState===oe.fromState&&ie.toState===oe.toState)).subscribe(ie=>{"void"!==ie.fromState&&("expanded"===ie.toState?this.afterExpand.emit():"collapsed"===ie.toState&&this.afterCollapse.emit())}),G&&(this.hideToggle=G.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(m){this._togglePosition=m}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,de.O)(null),(0,Rt.h)(()=>this.expanded&&!this._portal),(0,Ce.q)(1)).subscribe(()=>{this._portal=new Ht.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(m){this._inputChanges.next(m)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const m=this._document.activeElement,d=this._body.nativeElement;return m===d||d.contains(m)}return!1}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(ct,12),o.Y36(o.sBO),o.Y36(je.A8),o.Y36(o.s_b),o.Y36(Ae.K0),o.Y36(Pe.Qb,8),o.Y36(dt,8))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,Yt,5),2&m){let l;o.iGM(l=o.CRH())&&(d._lazyContent=l.first)}},viewQuery:function(m,d){if(1&m&&o.Gf(P,5),2&m){let a;o.iGM(a=o.CRH())&&(d._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(m,d){2&m&&o.ekj("mat-expanded",d.expanded)("_mat-animation-noopable","NoopAnimations"===d._animationMode)("mat-expansion-panel-spacing",d._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[o._Bn([{provide:ct,useValue:void 0}]),o.qOj,o.TTD],ngContentSelectors:be,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(m,d){1&m&&(o.F$t(re),o.Hsn(0),o.TgZ(1,"div",0,1),o.NdJ("@bodyExpansion.done",function(l){return d._bodyAnimationDone.next(l)}),o.TgZ(3,"div",2),o.Hsn(4,1),o.YNc(5,L,0,0,"ng-template",3),o.qZA(),o.Hsn(6,2),o.qZA()),2&m&&(o.xp6(1),o.Q6J("@bodyExpansion",d._getExpandedState())("id",d.id),o.uIk("aria-labelledby",d._headerId),o.xp6(4),o.Q6J("cdkPortalOutlet",d._portal))},directives:[Ht.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nn.bodyExpansion]},changeDetection:0}),k})();class we{}const V=(0,bt.sb)(we);let j=(()=>{class k extends V{constructor(m,d,a,l,v,R,G){super(),this.panel=m,this._element=d,this._focusMonitor=a,this._changeDetectorRef=l,this._animationMode=R,this._parentChangeSubscription=Xe.w0.EMPTY;const ie=m.accordion?m.accordion._stateChanges.pipe((0,Rt.h)(oe=>!(!oe.hideToggle&&!oe.togglePosition))):E.E;this.tabIndex=parseInt(G||"")||0,this._parentChangeSubscription=(0,S.T)(m.opened,m.closed,ie,m._inputChanges.pipe((0,Rt.h)(oe=>!!(oe.hideToggle||oe.disabled||oe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),m.closed.pipe((0,Rt.h)(()=>m._containsFocus())).subscribe(()=>a.focusVia(d,"program")),v&&(this.expandedHeight=v.expandedHeight,this.collapsedHeight=v.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const m=this._isExpanded();return m&&this.expandedHeight?this.expandedHeight:!m&&this.collapsedHeight?this.collapsedHeight:null}_keydown(m){switch(m.keyCode){case at.L_:case at.K5:(0,at.Vb)(m)||(m.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(m))}}focus(m,d){m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(m=>{m&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(vt,1),o.Y36(o.SBq),o.Y36(Nt.tE),o.Y36(o.sBO),o.Y36(dt,8),o.Y36(Pe.Qb,8),o.$8M("tabindex"))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(m,d){1&m&&o.NdJ("click",function(){return d._toggle()})("keydown",function(l){return d._keydown(l)}),2&m&&(o.uIk("id",d.panel._headerId)("tabindex",d.tabIndex)("aria-controls",d._getPanelId())("aria-expanded",d._isExpanded())("aria-disabled",d.panel.disabled),o.Udp("height",d._getHeaderHeight()),o.ekj("mat-expanded",d._isExpanded())("mat-expansion-toggle-indicator-after","after"===d._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===d._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===d._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[o.qOj],ngContentSelectors:_t,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(m,d){1&m&&(o.F$t(ze),o.TgZ(0,"span",0),o.Hsn(1),o.Hsn(2,1),o.Hsn(3,2),o.qZA(),o.YNc(4,Ue,1,1,"span",1)),2&m&&(o.xp6(4),o.Q6J("ngIf",d._showToggle()))},directives:[Ae.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[nn.indicatorRotate]},changeDetection:0}),k})(),$=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),k})(),he=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),k})(),Se=(()=>{class k extends He{constructor(){super(...arguments),this._ownHeaders=new o.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}ngAfterContentInit(){this._headers.changes.pipe((0,de.O)(this._headers)).subscribe(m=>{this._ownHeaders.reset(m.filter(d=>d.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Nt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(m){this._keyManager.onKeydown(m)}_handleHeaderFocus(m){this._keyManager.updateActiveItem(m)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return k.\u0275fac=function(){let Ee;return function(d){return(Ee||(Ee=o.n5z(k)))(d||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["mat-accordion"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,j,5),2&m){let l;o.iGM(l=o.CRH())&&(d._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(m,d){2&m&&o.ekj("mat-accordion-multi",d.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[o._Bn([{provide:ct,useExisting:k}]),o.qOj]}),k})(),st=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Ae.ez,bt.BQ,St,Ht.eL]]}),k})();var At=C(9646),Zt=C(3101),Kt=C(3900),Dt=C(4986),Rn=C(4482),Ve=C(5403),_e=C(5032),rt=C(5577);function kt(k,Ee){return Ee?m=>(0,q.z)(Ee.pipe((0,Ce.q)(1),function ne(){return(0,Rn.e)((k,Ee)=>{k.subscribe((0,Ve.x)(Ee,_e.Z))})}()),m.pipe(kt(k))):(0,rt.z)((m,d)=>k(m,d).pipe((0,Ce.q)(1),function Ie(k){return(0,se.U)(()=>k)}(m)))}var $t=C(5963);function bn(k,Ee=Dt.z){const m=(0,$t.H)(k,Ee);return kt(()=>m)}var en=C(9776),kn=C(226),Cn=C(495);const jn=["mat-menu-item",""];function oi(k,Ee){1&k&&(o.O4$(),o.TgZ(0,"svg",2),o._UZ(1,"polygon",3),o.qZA())}const Wn=["*"];function bi(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(a){return o.CHM(m),o.oxw()._handleKeydown(a)})("click",function(){return o.CHM(m),o.oxw().closed.emit("click")})("@transformMenu.start",function(a){return o.CHM(m),o.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return o.CHM(m),o.oxw()._onAnimationDone(a)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()()}if(2&k){const m=o.oxw();o.Q6J("id",m.panelId)("ngClass",m._classList)("@transformMenu",m._panelAnimationState),o.uIk("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}const si={transformMenu:(0,D.X$)("transformMenu",[(0,D.SB)("void",(0,D.oB)({opacity:0,transform:"scale(0.8)"})),(0,D.eR)("void => enter",(0,D.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:1,transform:"scale(1)"}))),(0,D.eR)("* => void",(0,D.jt)("100ms 25ms linear",(0,D.oB)({opacity:0})))]),fadeInItems:(0,D.X$)("fadeInItems",[(0,D.SB)("showing",(0,D.oB)({opacity:1})),(0,D.eR)("void => *",[(0,D.oB)({opacity:0}),(0,D.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ji=new o.OlP("MatMenuContent"),An=new o.OlP("MAT_MENU_PANEL"),ci=(0,bt.Kr)((0,bt.Id)(class{}));let tn=(()=>{class k extends ci{constructor(m,d,a,l,v){var R;super(),this._elementRef=m,this._document=d,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=v,this.role="menuitem",this._hovered=new Y.x,this._focused=new Y.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(R=null==l?void 0:l.addItem)||void 0===R||R.call(l,this)}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._getHostElement(),m,d):this._getHostElement().focus(d),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(m){this.disabled&&(m.preventDefault(),m.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var m;const d=this._elementRef.nativeElement.cloneNode(!0),a=d.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class k{constructor(m,d,a,l){this._elementRef=m,this._ngZone=d,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=Xe.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Y.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+jt++}get xPosition(){return this._xPosition}set xPosition(m){this._xPosition=m,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(m){this._yPosition=m,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(m){this._overlapTrigger=(0,g.Ig)(m)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(m){this._hasBackdrop=(0,g.Ig)(m)}set panelClass(m){const d=this._previousPanelClass;d&&d.length&&d.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=m,m&&m.length&&(m.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(m){this.panelClass=m}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Nt.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Kt.w)(m=>(0,S.T)(...m.map(d=>d._focused)))).subscribe(m=>this._keyManager.updateActiveItem(m)),this._directDescendantItems.changes.subscribe(m=>{var d;const a=this._keyManager;if("enter"===this._panelAnimationState&&(null===(d=a.activeItem)||void 0===d?void 0:d._hasFocus())){const l=m.toArray(),v=Math.max(0,Math.min(l.length-1,a.activeItemIndex||0));l[v]&&!l[v].disabled?a.setActiveItem(v):a.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Kt.w)(d=>(0,S.T)(...d.map(a=>a._hovered))))}addItem(m){}removeItem(m){}_handleKeydown(m){const d=m.keyCode,a=this._keyManager;switch(d){case at.hY:(0,at.Vb)(m)||(m.preventDefault(),this.closed.emit("keydown"));break;case at.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case at.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(d===at.LH||d===at.JH)&&a.setFocusOrigin("keyboard"),void a.onKeydown(m)}m.stopPropagation()}focusFirstItem(m="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Ce.q)(1)).subscribe(()=>this._focusFirstItem(m)):this._focusFirstItem(m)}_focusFirstItem(m){const d=this._keyManager;if(d.setFocusOrigin(m).setFirstItemActive(),!d.activeItem&&this._directDescendantItems.length){let a=this._directDescendantItems.first._getHostElement().parentElement;for(;a;){if("menu"===a.getAttribute("role")){a.focus();break}a=a.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(m){const d=Math.min(this._baseElevation+m,24),a=`${this._elevationPrefix}${d}`,l=Object.keys(this._classList).find(v=>v.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(m=this.xPosition,d=this.yPosition){var a;const l=this._classList;l["mat-menu-before"]="before"===m,l["mat-menu-after"]="after"===m,l["mat-menu-above"]="above"===d,l["mat-menu-below"]="below"===d,null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(m){this._animationDone.next(m),this._isAnimating=!1}_onAnimationStart(m){this._isAnimating=!0,"enter"===m.toState&&0===this._keyManager.activeItemIndex&&(m.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,de.O)(this._allItems)).subscribe(m=>{this._directDescendantItems.reset(m.filter(d=>d._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k,contentQueries:function(m,d,a){if(1&m&&(o.Suo(a,ji,5),o.Suo(a,tn,5),o.Suo(a,tn,4)),2&m){let l;o.iGM(l=o.CRH())&&(d.lazyContent=l.first),o.iGM(l=o.CRH())&&(d._allItems=l),o.iGM(l=o.CRH())&&(d.items=l)}},viewQuery:function(m,d){if(1&m&&o.Gf(o.Rgc,5),2&m){let a;o.iGM(a=o.CRH())&&(d.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),k})(),Jn=(()=>{class k extends ui{constructor(m,d,a,l){super(m,d,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(m,d){2&m&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:An,useExisting:k}]),o.qOj],ngContentSelectors:Wn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(m,d){1&m&&(o.F$t(),o.YNc(0,bi,3,6,"ng-template"))},directives:[Ae.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[si.transformMenu,si.fadeInItems]},changeDetection:0}),k})();const Si=new o.OlP("mat-menu-scroll-strategy"),gn={provide:Si,deps:[en.aV],useFactory:function Gn(k){return()=>k.scrollStrategies.reposition()}},Nn=(0,le.i$)({passive:!0});let Xn=(()=>{class k{constructor(m,d,a,l,v,R,G,ie,oe){this._overlay=m,this._element=d,this._viewContainerRef=a,this._menuItemInstance=R,this._dir=G,this._focusMonitor=ie,this._ngZone=oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Xe.w0.EMPTY,this._hoverSubscription=Xe.w0.EMPTY,this._menuCloseSubscription=Xe.w0.EMPTY,this._handleTouchStart=Oe=>{(0,Nt.yG)(Oe)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=v instanceof ui?v:void 0,d.nativeElement.addEventListener("touchstart",this._handleTouchStart,Nn),R&&(R._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(m){this.menu=m}get menu(){return this._menu}set menu(m){m!==this._menu&&(this._menu=m,this._menuCloseSubscription.unsubscribe(),m&&(this._menuCloseSubscription=m.close.subscribe(d=>{this._destroyMenu(d),("click"===d||"tab"===d)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(d)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Nn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const m=this._createOverlay(),d=m.getConfig(),a=d.positionStrategy;this._setPosition(a),d.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,m.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ui&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,X.R)(this.menu.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}updatePosition(){var m;null===(m=this._overlayRef)||void 0===m||m.updatePosition()}_destroyMenu(m){if(!this._overlayRef||!this.menuOpen)return;const d=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===m||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,d instanceof ui?(d._resetAnimation(),d.lazyContent?d._animationDone.pipe((0,Rt.h)(a=>"void"===a.toState),(0,Ce.q)(1),(0,X.R)(d.lazyContent._attached)).subscribe({next:()=>d.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),d.lazyContent&&d.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let m=0,d=this.menu.parentMenu;for(;d;)m++,d=d.parentMenu;this.menu.setElevation(m)}}_setIsMenuOpen(m){this._menuOpen=m,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(m)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const m=this._getOverlayConfig();this._subscribeToPositions(m.positionStrategy),this._overlayRef=this._overlay.create(m),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new en.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(m){this.menu.setPositionClasses&&m.positionChanges.subscribe(d=>{const a="start"===d.connectionPair.overlayX?"after":"before",l="top"===d.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(a,l)):this.menu.setPositionClasses(a,l)})}_setPosition(m){let[d,a]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,v]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[R,G]=[l,v],[ie,oe]=[d,a],Oe=0;this.triggersSubmenu()?(oe=d="before"===this.menu.xPosition?"start":"end",a=ie="end"===d?"start":"end",Oe="bottom"===l?8:-8):this.menu.overlapTrigger||(R="top"===l?"bottom":"top",G="top"===v?"bottom":"top"),m.withPositions([{originX:d,originY:R,overlayX:ie,overlayY:l,offsetY:Oe},{originX:a,originY:R,overlayX:oe,overlayY:l,offsetY:Oe},{originX:d,originY:G,overlayX:ie,overlayY:v,offsetY:-Oe},{originX:a,originY:G,overlayX:oe,overlayY:v,offsetY:-Oe}])}_menuClosingActions(){const m=this._overlayRef.backdropClick(),d=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,At.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Rt.h)(v=>v!==this._menuItemInstance),(0,Rt.h)(()=>this._menuOpen)):(0,At.of)();return(0,S.T)(m,a,l,d)}_handleMousedown(m){(0,Nt.X6)(m)||(this._openedBy=0===m.button?"mouse":void 0,this.triggersSubmenu()&&m.preventDefault())}_handleKeydown(m){const d=m.keyCode;(d===at.K5||d===at.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(d===at.SV&&"ltr"===this.dir||d===at.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(m){this.triggersSubmenu()?(m.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Rt.h)(m=>m===this._menuItemInstance&&!m.disabled),bn(0,Zt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ui&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ce.q)(1),bn(0,Zt.E),(0,X.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ht.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(Si),o.Y36(An,8),o.Y36(tn,10),o.Y36(kn.Is,8),o.Y36(Nt.tE),o.Y36(o.R0b))},k.\u0275dir=o.lG2({type:k,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("click",function(l){return d._handleClick(l)})("mousedown",function(l){return d._handleMousedown(l)})("keydown",function(l){return d._handleKeydown(l)}),2&m&&o.uIk("aria-expanded",d.menuOpen||null)("aria-controls",d.menuOpen?d.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),k})(),un=(()=>{class k extends Xn{}return k.\u0275fac=function(){let Ee;return function(d){return(Ee||(Ee=o.n5z(k)))(d||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[o.qOj]}),k})(),ir=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[gn],imports:[[Ae.ez,bt.BQ,bt.si,en.U8],Cn.ZD,bt.BQ]}),k})();const Tr={tooltipState:(0,D.X$)("state",[(0,D.SB)("initial, void, hidden",(0,D.oB)({opacity:0,transform:"scale(0)"})),(0,D.SB)("visible",(0,D.oB)({transform:"scale(1)"})),(0,D.eR)("* => visible",(0,D.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,D.F4)([(0,D.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,D.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,D.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,D.eR)("* => hidden",(0,D.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:0})))])},Ki="tooltip-panel",Zi=(0,le.i$)({passive:!0}),Oi=new o.OlP("mat-tooltip-scroll-strategy"),rr={provide:Oi,deps:[en.aV],useFactory:function hr(k){return()=>k.scrollStrategies.reposition({scrollThrottle:20})}},fr=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function pr(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let kr=(()=>{class k{constructor(m,d,a,l,v,R,G,ie,oe,Oe,Ke,gt){this._overlay=m,this._elementRef=d,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=v,this._platform=R,this._ariaDescriber=G,this._focusMonitor=ie,this._dir=Oe,this._defaultOptions=Ke,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y.x,this._scrollStrategy=oe,this._document=gt,Ke&&(Ke.position&&(this.position=Ke.position),Ke.touchGestures&&(this.touchGestures=Ke.touchGestures)),Oe.change.pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(m){var d;m!==this._position&&(this._position=m,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(d=this._tooltipInstance)||void 0===d||d.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(m){this._showDelay=(0,g.su)(m)}get hideDelay(){return this._hideDelay}set hideDelay(m){this._hideDelay=(0,g.su)(m),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(m){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=m?String(m).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(m){this._tooltipClass=m,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,X.R)(this._destroyed)).subscribe(m=>{m?"keyboard"===m&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const m=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([d,a])=>{m.removeEventListener(d,a,Zi)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(m,this.message,"tooltip"),this._focusMonitor.stopMonitoring(m)}show(m=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const d=this._createOverlay();this._detach(),this._portal=this._portal||new Ht.C5(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=d.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(m)}hide(m=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(m)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var m;if(this._overlayRef)return this._overlayRef;const d=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(d);return a.positionChanges.pipe((0,X.R)(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:`${this._cssClassPrefix}-${Ki}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,X.R)(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,X.R)(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&l.keyCode===at.hY&&!(0,at.Vb)(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(m=this._defaultOptions)||void 0===m?void 0:m.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(m){const d=m.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();d.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),l.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),l.fallback))])}_addOffset(m){return m}_getOrigin(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d||"below"==d?a={originX:"center",originY:"above"==d?"top":"bottom"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={originX:"start",originY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={originX:"end",originY:"center"});const{x:l,y:v}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:v}}}_getOverlayPosition(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d?a={overlayX:"center",overlayY:"bottom"}:"below"==d?a={overlayX:"center",overlayY:"top"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={overlayX:"end",overlayY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:v}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:v}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ce.q)(1),(0,X.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(m){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=m,this._tooltipInstance._markForCheck())}_invertPosition(m,d){return"above"===this.position||"below"===this.position?"top"===d?d="bottom":"bottom"===d&&(d="top"):"end"===m?m="start":"start"===m&&(m="end"),{x:m,y:d}}_updateCurrentPositionClass(m){const{overlayY:d,originX:a,originY:l}=m;let v;if(v="center"===d?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===d&&"top"===l?"above":"below",v!==this._currentPosition){const R=this._overlayRef;if(R){const G=`${this._cssClassPrefix}-${Ki}-`;R.removePanelClass(G+this._currentPosition),R.addPanelClass(G+v)}this._currentPosition=v}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const m=[];if(this._platformSupportsMouseEvents())m.push(["mouseleave",d=>{var a;const l=d.relatedTarget;(!l||!(null===(a=this._overlayRef)||void 0===a?void 0:a.overlayElement.contains(l)))&&this.hide()}],["wheel",d=>this._wheelListener(d)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const d=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};m.push(["touchend",d],["touchcancel",d])}this._addListeners(m),this._passiveListeners.push(...m)}_addListeners(m){m.forEach(([d,a])=>{this._elementRef.nativeElement.addEventListener(d,a,Zi)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(m){if(this._isTooltipVisible()){const d=this._document.elementFromPoint(m.clientX,m.clientY),a=this._elementRef.nativeElement;d!==a&&!a.contains(d)&&this.hide()}}_disableNativeGesturesIfNecessary(){const m=this.touchGestures;if("off"!==m){const d=this._elementRef.nativeElement,a=d.style;("on"===m||"INPUT"!==d.nodeName&&"TEXTAREA"!==d.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===m||!d.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return k.\u0275fac=function(m){o.$Z()},k.\u0275dir=o.lG2({type:k,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),k})(),uo=(()=>{class k extends kr{constructor(m,d,a,l,v,R,G,ie,oe,Oe,Ke,gt){super(m,d,a,l,v,R,G,ie,oe,Oe,Ke,gt),this._tooltipComponent=Fr}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(Cn.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(le.t4),o.Y36(Nt.$s),o.Y36(Nt.tE),o.Y36(Oi),o.Y36(kn.Is,8),o.Y36(fr,8),o.Y36(Ae.K0))},k.\u0275dir=o.lG2({type:k,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),k})(),mr=(()=>{class k{constructor(m){this._changeDetectorRef=m,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y.x}show(m){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},m)}hide(m){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},m)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_animationStart(){this._closeOnInteraction=!1}_animationDone(m){const d=m.toState;"hidden"===d&&!this.isVisible()&&this._onHide.next(),("visible"===d||"hidden"===d)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:m}){(!m||!this._triggerElement.contains(m))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k}),k})(),Fr=(()=>{class k extends mr{constructor(m,d){super(m),this._breakpointObserver=d,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.sBO),o.Y36(me))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("mouseleave",function(l){return d._handleMouseLeave(l)}),2&m&&o.Udp("zoom","visible"===d._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(m,d){if(1&m&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return d._animationStart()})("@state.done",function(l){return d._animationDone(l)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&m){let a;o.ekj("mat-tooltip-handset",null==(a=o.lcZ(1,5,d._isHandset))?null:a.matches),o.Q6J("ngClass",d.tooltipClass)("@state",d._visibility),o.xp6(2),o.Oqu(d.message)}},directives:[Ae.mk],pipes:[Ae.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}\n"],encapsulation:2,data:{animation:[Tr.tooltipState]},changeDetection:0}),k})(),gr=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[rr],imports:[[Nt.rt,Ae.ez,en.U8,bt.BQ],bt.BQ,Cn.ZD]}),k})();var or=C(7423);function xr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).launch(l)}),o.TgZ(1,"div",15),o._UZ(2,"img",9),o._uU(3),o.qZA()()}if(2&k){const m=Ee.$implicit,d=o.oxw(2);o.xp6(2),o.Q6J("src",d.getTransportIcon(m.id),o.LSH),o.xp6(1),o.hij(" ",m.name," ")}}function sr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("release")}),o.TgZ(1,"i",16),o._uU(2,"delete"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Release service"),o.qZA()()}}function _r(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("reset")}),o.TgZ(1,"i",16),o._uU(2,"refresh"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Reset service"),o.qZA()()}}function ar(k,Ee){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Connections"),o.qZA()()),2&k){o.oxw();const m=o.MAs(2);o.Q6J("matMenuTriggerFor",m)}}function Zr(k,Ee){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Actions"),o.qZA()()),2&k){o.oxw();const m=o.MAs(5);o.Q6J("matMenuTriggerFor",m)}}function vr(k,Ee){if(1&k&&(o.TgZ(0,"button",18)(1,"i",16),o._uU(2,"menu"),o.qZA()()),2&k){o.oxw();const m=o.MAs(9);o.Q6J("matMenuTriggerFor",m)}}function Lr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div")(1,"mat-menu",null,1),o.YNc(3,xr,4,2,"button",2),o.qZA(),o.TgZ(4,"mat-menu",null,3),o.YNc(6,sr,5,0,"button",4),o.YNc(7,_r,5,0,"button",4),o.qZA(),o.TgZ(8,"mat-menu",null,5),o.YNc(10,ar,3,1,"button",6),o.YNc(11,Zr,3,1,"button",6),o.qZA(),o.TgZ(12,"div",7)(13,"div",8),o.NdJ("click",function(){return o.CHM(m),o.oxw().launch(null)}),o._UZ(14,"img",9),o.qZA(),o.TgZ(15,"div",10)(16,"span",11),o._uU(17),o.qZA()(),o.TgZ(18,"div",12),o.YNc(19,vr,3,1,"button",13),o.qZA()()()}if(2&k){const m=o.oxw();o.xp6(3),o.Q6J("ngForOf",m.service.transports),o.xp6(3),o.Q6J("ngIf",m.service.allow_users_remove),o.xp6(1),o.Q6J("ngIf",m.service.allow_users_reset),o.xp6(3),o.Q6J("ngIf",m.showTransportsMenu()),o.xp6(1),o.Q6J("ngIf",m.hasActions()),o.xp6(1),o.Q6J("ngClass",m.serviceClass)("matTooltipDisabled",""===m.serviceTooltip)("matTooltip",m.serviceTooltip),o.xp6(2),o.Q6J("src",m.serviceImage,o.LSH),o.xp6(2),o.Q6J("ngClass",m.serviceNameClass),o.xp6(1),o.Oqu(m.serviceName),o.xp6(2),o.Q6J("ngIf",m.hasMenu())}}let mi=(()=>{class k{constructor(m){this.api=m}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let m=this.service.visual_name;return m.length>32&&(m=m.substring(0,29)+"..."),m}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const m=["service"];return null!=this.service.to_be_replaced?m.push("tobereplaced"):this.service.maintenance?m.push("maintenance"):this.service.not_accesible?m.push("forbidden"):this.service.in_use&&m.push("inuse"),m.length>1&&m.push("alert"),m}get serviceNameClass(){const m=[],d=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return d>=16&&m.push("small-"+d.toString()),m}ngOnInit(){}getTransportIcon(m){return this.api.transportIconURL(m)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(m){this.api.gui.alert(''+django.gettext("Launcher")+"
",m)}launch(m){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const d=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching(''+django.gettext("This service is currently not accesible due to schedule restrictions.")+'
'+d+'
')}else(null===m||!1===this.service.show_transports)&&(m=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(m.link)}action(m){const d=("release"===m?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,a="release"===m?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(d,django.gettext("Are you sure?")).subscribe(l=>{l&&this.api.action(m,this.service.id).subscribe(v=>{v&&this.api.gui.alert(d,a)})})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","","class","service-menu",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",1,"service-menu",3,"matMenuTriggerFor"]],template:function(m,d){1&m&&o.YNc(0,Lr,20,12,"div",0),2&m&&o.Q6J("ngIf",d.service.transports.length>0)},directives:[Ae.O5,Jn,Ae.sg,tn,xe.P,un,Ae.mk,uo,or.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;border-radius:1rem;box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:#00000038;display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service-menu[_ngcontent-%COMP%]{border-radius:.6rem!important}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;background-color:#fffc}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:Material Icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"} .dark-theme .menu .mat-icon-button{background-color:#0003!important}']}),k})();function yr(k,Ee){1&k&&o._UZ(0,"uds-service",8),2&k&&o.Q6J("service",Ee.$implicit)}function Di(k,Ee){if(1&k&&(o.TgZ(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",2)(2,"mat-panel-title")(3,"div",3),o._UZ(4,"img",4),o._uU(5),o.qZA()(),o.TgZ(6,"mat-panel-description",5),o._uU(7),o.qZA()(),o.TgZ(8,"div",6),o.YNc(9,yr,1,1,"uds-service",7),o.qZA()()),2&k){const m=o.oxw();o.Q6J("expanded",m.expanded),o.xp6(1),o.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),o.xp6(3),o.Q6J("src",m.groupImage,o.LSH),o.xp6(1),o.hij(" ",m.group.name,""),o.xp6(2),o.hij(" ",m.group.comments," "),o.xp6(2),o.Q6J("ngForOf",m.sortedServices)}}let qr=(()=>{class k{constructor(m){this.api=m,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((m,d)=>m.name>d.name?1:m.name{class k{constructor(m){this.api=m}ngOnInit(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(m,d){1&m&&o.YNc(0,Bi,38,4,"div",0),2&m&&o.Q6J("ngIf",d.api.staffInfo)},directives:[Ae.O5,xe.P,Se,vt,j,he,$,Ae.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4} .dark-theme .staff-info{margin-top:1rem;padding:1rem;background-color:#0f0f0f} .dark-theme .staff-panel{background-color:#2b2b2b}"]}),k})();function Qr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}function Ii(k,Ee){if(1&k&&o._UZ(0,"uds-services-group",4),2&k){const m=Ee.$implicit,d=Ee.index;o.Q6J("services",m.services)("group",m.group)("expanded",0===d)}}function lr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}class Br{constructor(Ee){this.group=Ee,this.services=[]}}function cr(k,Ee){1&k&&o._UZ(0,"span",10),2&k&&o.Q6J("innerHTML",Ee.$implicit,o.oJD)}const ni=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:(()=>{class k{constructor(m){this.api=m,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(m){this.updateServices(m)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(m=>{this.servicesInformation=m,this.autorun(),this.updateServices()})}updateServices(m=""){this.group=[];let d=null;this.servicesInformation.services.filter(a=>!m||a.visual_name.toLowerCase().includes(m)||a.group.name.toLowerCase().includes(m)).sort((a,l)=>a.group.priority!==l.group.priority?a.group.priority-l.group.priority:a.group.id>l.group.id?1:a.group.id{(null===d||a.group.id!==d.group.id)&&(null!==d&&this.group.push(d),d=new Br(a.group)),d.services.push(a)}),null!==d&&this.group.push(d)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(m,d){1&m&&(o.YNc(0,Qr,1,0,"uds-filter",0),o.TgZ(1,"div",1)(2,"mat-accordion"),o.YNc(3,Ii,1,3,"uds-services-group",2),o.qZA()(),o.YNc(4,lr,1,0,"uds-filter",0),o._UZ(5,"uds-staff-info")),2&m&&(o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&d.api.config.site_filter_on_top),o.xp6(3),o.Q6J("ngForOf",d.group),o.xp6(1),o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&!d.api.config.site_filter_on_top))},directives:[Ae.O5,on,Se,Ae.sg,qr,Qi],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),k})(),canActivate:[ve]},{path:"login",component:Me.G},{path:"login/:id",component:Me.G},{path:"client-download",component:Fe},{path:"downloads",component:Jt,canActivate:[ve]},{path:"error/:id",component:(()=>{class k{constructor(m){this.route=m,this.error=[""]}ngOnInit(){this.getError()}getError(){const m=this.route.snapshot.paramMap.get("id");try{const d=(new TextDecoder).decode(Uint8Array.from(window.atob(m),a=>a.charCodeAt(a))).replace("<","<").replace(">",">");this.error=d.split("\n"),console.log(this.error),udsData.error=this.error}catch(d){console.log(d),this.error=[django.gettext("Invalid error string")]}}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Te.gz))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-error"]],decls:14,vars:1,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],[3,"innerHTML",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn","routerLink","/"],[3,"innerHTML"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1),o.O4$(),o.TgZ(2,"svg",2),o._UZ(3,"path",3),o.qZA(),o.TgZ(4,"svg",4),o._UZ(5,"path",5),o.qZA()(),o.kcU(),o.TgZ(6,"h1",6)(7,"uds-translate"),o._uU(8,"An error has occurred"),o.qZA()(),o.TgZ(9,"p",7),o.YNc(10,cr,1,1,"span",8),o.qZA(),o.TgZ(11,"a",9)(12,"uds-translate"),o._uU(13,"Return"),o.qZA()()()),2&m&&(o.xp6(10),o.Q6J("ngForOf",d.error))},directives:[xe.P,Ae.sg,or.zs,Te.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),k})()},{path:"about",component:(()=>{class k{constructor(m){this.api=m,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-about"]],decls:46,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"h1"),o._uU(2),o.qZA(),o.TgZ(3,"h3")(4,"a",1),o._uU(5),o.qZA()(),o.TgZ(6,"h4")(7,"uds-translate"),o._uU(8,"You can access UDS Open Source code at"),o.qZA(),o._uU(9,"\xa0"),o.TgZ(10,"a",2),o._uU(11,"OpenUDS github repository"),o.qZA()(),o.TgZ(12,"div",3)(13,"h2")(14,"uds-translate"),o._uU(15,"UDS has been developed using these components:"),o.qZA()(),o.TgZ(16,"ul")(17,"li")(18,"a",4),o._uU(19,"Python"),o.qZA()(),o.TgZ(20,"li")(21,"a",5),o._uU(22,"TypeScript"),o.qZA()(),o.TgZ(23,"li")(24,"a",6),o._uU(25,"Django"),o.qZA()(),o.TgZ(26,"li")(27,"a",7),o._uU(28,"Angular"),o.qZA()(),o.TgZ(29,"li")(30,"a",8),o._uU(31,"Guacamole"),o.qZA()(),o.TgZ(32,"li")(33,"a",9),o._uU(34,"weasyprint"),o.qZA()(),o.TgZ(35,"li")(36,"a",10),o._uU(37,"Crystal project icons"),o.qZA()(),o.TgZ(38,"li")(39,"a",11),o._uU(40,"Flattr Icons"),o.qZA()()(),o.TgZ(41,"p")(42,"small"),o._uU(43,"* "),o.TgZ(44,"uds-translate"),o._uU(45,"If you find that we missed any component, please let us know"),o.qZA()()()()()),2&m&&(o.xp6(2),o.AsE("Universal Desktop Services ",d.api.config.version," build ",d.api.config.version_stamp,""),o.xp6(3),o.hij(" \xa9 2012-",d.year," Virtual Cable S.L.U."))},directives:[xe.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:400}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px} .dark-theme .about{color:#fff!important} .dark-theme ul li a{color:#fff!important;background-color:inherit!important} .dark-theme ul li a:hover{color:#3e6b2d!important}"]}),k})()},{path:"ticket/launcher",component:(()=>{class k{constructor(m){this.api=m}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"h1")(3,"uds-translate"),o._uU(4,"UDS Service launcher"),o.qZA()(),o.TgZ(5,"h4")(6,"uds-translate"),o._uU(7,"The service you have requested is being launched."),o.qZA()(),o.TgZ(8,"h5")(9,"uds-translate"),o._uU(10,"Please, note that reloading this page will not work."),o.qZA()(),o.TgZ(11,"h5")(12,"uds-translate"),o._uU(13,"To relaunch service, you will have to do it from origin."),o.qZA()(),o.TgZ(14,"h6")(15,"uds-translate"),o._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),o.qZA()(),o.TgZ(17,"h6")(18,"uds-translate"),o._uU(19,"You can obtain it from the"),o.qZA(),o._uU(20,"\xa0"),o.TgZ(21,"a",2)(22,"uds-translate"),o._uU(23,"UDS Client download page"),o.qZA()()()()())},directives:[xe.P,Te.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:#00000038;padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:400}"]}),k})()},{path:"**",redirectTo:"services"}];let ur=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Te.Bz.forRoot(ni,{relativeLinkResolution:"legacy"})],Te.Bz]}),k})();var Pi=C(2382),A=C(7144);let Sn=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})(),Vn=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[bt.si,bt.BQ,A.Q8,Sn],bt.BQ,Sn]}),k})();var wi=C(8966),er=C(4107);const Ri=["*",[["mat-toolbar-row"]]],ki=["*","mat-toolbar-row"],x=(0,bt.pj)(class{constructor(k){this._elementRef=k}});let M=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),k})(),y=(()=>{class k extends x{constructor(m,d,a){super(m),this._platform=d,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(le.t4),o.Y36(Ae.K0))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-toolbar"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,M,5),2&m){let l;o.iGM(l=o.CRH())&&(d._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(m,d){2&m&&o.ekj("mat-toolbar-multiple-rows",d._toolbarRows.length>0)("mat-toolbar-single-row",0===d._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[o.qOj],ngContentSelectors:ki,decls:2,vars:0,template:function(m,d){1&m&&(o.F$t(Ri),o.Hsn(0),o.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),k})(),We=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[bt.BQ],bt.BQ]}),k})(),Et=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[{provide:mn.o2,useValue:{floatLabel:"always"}}],imports:[Pi.u5,We,or.ot,ir,gr,st,wi.Is,mn.lN,Ut.c,er.LD,Vn]}),k})();function Dn(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).changeLang(l)}),o._uU(1),o.qZA()}if(2&k){const m=Ee.$implicit;o.xp6(1),o.Oqu(m.name)}}function gi(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).admin()}),o.TgZ(1,"i",23),o._uU(2,"dashboard"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Dashboard"),o.qZA()()}}function Gi(k,Ee){1&k&&(o.TgZ(0,"button",28)(1,"i",23),o._uU(2,"file_download"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Downloads"),o.qZA()())}function Fi(k,Ee){if(1&k&&(o.TgZ(0,"button",14),o._uU(1),o.qZA()),2&k){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.Oqu(d.api.user.user)}}function ot(k,Ee){if(1&k&&(o.TgZ(0,"button",25),o._uU(1),o.TgZ(2,"i",23),o._uU(3,"arrow_drop_down"),o.qZA()()),2&k){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",d.api.user.user," ")}}function sn(k,Ee){if(1&k){const m=o.EpF();o.ynx(0),o.TgZ(1,"form",1),o._UZ(2,"input",2)(3,"input",3),o.qZA(),o.TgZ(4,"mat-menu",null,4),o.YNc(6,Dn,2,1,"button",5),o.qZA(),o.TgZ(7,"mat-menu",null,6),o.YNc(9,gi,5,0,"button",7),o.YNc(10,Gi,5,0,"button",8),o.TgZ(11,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw().logout()}),o.TgZ(12,"i",10),o._uU(13,"exit_to_app"),o.qZA(),o.TgZ(14,"uds-translate"),o._uU(15,"Logout"),o.qZA()()(),o.TgZ(16,"mat-menu",11,12),o.YNc(18,Fi,2,2,"button",13),o.TgZ(19,"button",14),o._uU(20),o.qZA(),o.TgZ(21,"button",15)(22,"uds-translate"),o._uU(23,"UDS Client"),o.qZA()(),o.TgZ(24,"button",16)(25,"uds-translate"),o._uU(26,"About"),o.qZA()()(),o.TgZ(27,"mat-toolbar",17)(28,"button",18),o._UZ(29,"img",19),o._uU(30),o.qZA(),o._UZ(31,"span",20),o.TgZ(32,"div",21)(33,"button",22)(34,"i",23),o._uU(35,"file_download"),o.qZA(),o.TgZ(36,"uds-translate"),o._uU(37,"UDS Client"),o.qZA()(),o.TgZ(38,"button",24)(39,"i",23),o._uU(40,"info"),o.qZA(),o.TgZ(41,"uds-translate"),o._uU(42,"About"),o.qZA()(),o.TgZ(43,"button",25),o._uU(44),o.TgZ(45,"i",23),o._uU(46,"arrow_drop_down"),o.qZA()(),o.YNc(47,ot,4,2,"button",26),o.qZA(),o.TgZ(48,"div",27)(49,"button",25)(50,"i",23),o._uU(51,"menu"),o.qZA()()()(),o.BQk()}if(2&k){const m=o.MAs(5),d=o.MAs(17),a=o.oxw();o.xp6(1),o.s9C("action",a.api.config.urls.changeLang,o.LSH),o.xp6(1),o.s9C("name",a.api.csrfField),o.s9C("value",a.api.csrfToken),o.xp6(1),o.s9C("value",a.lang.id),o.xp6(3),o.Q6J("ngForOf",a.langs),o.xp6(3),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(1),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(8),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(1),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(9),o.Q6J("src",a.api.staticURL("modern/img/udsicon.png"),o.LSH),o.xp6(1),o.hij(" ",a.api.config.site_logo_name," "),o.xp6(13),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(3),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(2),o.Q6J("matMenuTriggerFor",d)}}let Jr=(()=>{class k{constructor(m){this.api=m,this.style="";const d=m.config.language;this.langs=[];for(const a of m.config.available_languages)a.id===d?this.lang=a:this.langs.push(a)}ngOnInit(){}changeLang(m){return this.lang=m,document.getElementById("id_language").attributes.value.value=m.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(m,d){1&m&&o.YNc(0,sn,52,16,"ng-container",0),2&m&&o.Q6J("ngIf",""===d.api.config.urls.launch)},directives:[Ae.O5,Pi._Y,Pi.JL,Pi.F,Jn,Ae.sg,tn,xe.P,Te.rH,un,y,or.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),k})(),Zn=(()=>{class k{constructor(m){this.api=m}ngOnInit(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(m,d){1&m&&(o.TgZ(0,"div")(1,"a",0),o._uU(2),o.qZA()()),2&m&&(o.xp6(1),o.Q6J("href",d.api.config.site_copyright_link,o.LSH),o.xp6(1),o.Oqu(d.api.config.site_copyright_info))},styles:[""]}),k})(),bo=(()=>{class k{constructor(m){this.api=m,this.title="UDS",this.blackTheme=!1}handleKeyboardEvent(m){m.altKey&&m.ctrlKey&&"b"===m.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-root"]],hostBindings:function(m,d){1&m&&o.NdJ("keydown",function(l){return d.handleKeyboardEvent(l)},!1,o.evT)},decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(m,d){1&m&&(o._UZ(0,"uds-navbar"),o.TgZ(1,"div",0)(2,"div",1),o._UZ(3,"router-outlet"),o.qZA(),o.TgZ(4,"div",2),o._UZ(5,"uds-footer"),o.qZA()())},directives:[Jr,Te.lC,Zn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),k})();var br=C(5928);let Vi=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k,bootstrap:[bo]}),k.\u0275inj=o.cJS({providers:[Ne.n,br.h],imports:[[c.b2,ke,pe.JF,ur,Pe.PW,Et]]}),k})();C(2340).N.production&&(0,o.G48)(),c.q6().bootstrapModule(Vi).catch(k=>console.log(k))},1135:(qe,ye,C)=>{C.d(ye,{X:()=>o});var c=C(7579);class o extends c.x{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const ce=super._subscribe(Y);return!ce.closed&&Y.next(this._value),ce}getValue(){const{hasError:Y,thrownError:ce,_value:q}=this;if(Y)throw ce;return this._throwIfClosed(),q}next(Y){super.next(this._value=Y)}}},8306:(qe,ye,C)=>{C.d(ye,{y:()=>te});var c=C(930),o=C(727),g=C(8822),Y=C(4671);var De=C(2416),Ce=C(576),ue=C(2806);let te=(()=>{class le{constructor(Be){Be&&(this._subscribe=Be)}lift(Be){const Z=new le;return Z.source=this,Z.operator=Be,Z}subscribe(Be,Z,et){const Ye=function X(le){return le&&le instanceof c.Lv||function de(le){return le&&(0,Ce.m)(le.next)&&(0,Ce.m)(le.error)&&(0,Ce.m)(le.complete)}(le)&&(0,o.Nn)(le)}(Be)?Be:new c.Hp(Be,Z,et);return(0,ue.x)(()=>{const{operator:Qe,source:me}=this;Ye.add(Qe?Qe.call(Ye,me):me?this._subscribe(Ye):this._trySubscribe(Ye))}),Ye}_trySubscribe(Be){try{return this._subscribe(Be)}catch(Z){Be.error(Z)}}forEach(Be,Z){return new(Z=se(Z))((et,Ye)=>{const Qe=new c.Hp({next:me=>{try{Be(me)}catch(z){Ye(z),Qe.unsubscribe()}},error:Ye,complete:et});this.subscribe(Qe)})}_subscribe(Be){var Z;return null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(Be)}[g.L](){return this}pipe(...Be){return function q(le){return 0===le.length?Y.y:1===le.length?le[0]:function(Be){return le.reduce((Z,et)=>et(Z),Be)}}(Be)(this)}toPromise(Be){return new(Be=se(Be))((Z,et)=>{let Ye;this.subscribe(Qe=>Ye=Qe,Qe=>et(Qe),()=>Z(Ye))})}}return le.create=ke=>new le(ke),le})();function se(le){var ke;return null!==(ke=null!=le?le:De.v.Promise)&&void 0!==ke?ke:Promise}},7579:(qe,ye,C)=>{C.d(ye,{x:()=>De});var c=C(8306),o=C(727);const Y=(0,C(3888).d)(ue=>function(){ue(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=C(8737),q=C(2806);let De=(()=>{class ue extends c.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(se){const de=new Ce(this,this);return de.operator=se,de}_throwIfClosed(){if(this.closed)throw new Y}next(se){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const de=this.observers.slice();for(const X of de)X.next(se)}})}error(se){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=se;const{observers:de}=this;for(;de.length;)de.shift().error(se)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:se}=this;for(;se.length;)se.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var se;return(null===(se=this.observers)||void 0===se?void 0:se.length)>0}_trySubscribe(se){return this._throwIfClosed(),super._trySubscribe(se)}_subscribe(se){return this._throwIfClosed(),this._checkFinalizedStatuses(se),this._innerSubscribe(se)}_innerSubscribe(se){const{hasError:de,isStopped:X,observers:le}=this;return de||X?o.Lc:(le.push(se),new o.w0(()=>(0,ce.P)(le,se)))}_checkFinalizedStatuses(se){const{hasError:de,thrownError:X,isStopped:le}=this;de?se.error(X):le&&se.complete()}asObservable(){const se=new c.y;return se.source=this,se}}return ue.create=(te,se)=>new Ce(te,se),ue})();class Ce extends De{constructor(te,se){super(),this.destination=te,this.source=se}next(te){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.next)||void 0===de||de.call(se,te)}error(te){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.error)||void 0===de||de.call(se,te)}complete(){var te,se;null===(se=null===(te=this.destination)||void 0===te?void 0:te.complete)||void 0===se||se.call(te)}_subscribe(te){var se,de;return null!==(de=null===(se=this.source)||void 0===se?void 0:se.subscribe(te))&&void 0!==de?de:o.Lc}}},930:(qe,ye,C)=>{C.d(ye,{Hp:()=>Be,Lv:()=>de});var c=C(576),o=C(727),g=C(2416),Y=C(7849),ce=C(5032);const q=ue("C",void 0,void 0);function ue(me,z,Q){return{kind:me,value:z,error:Q}}var te=C(3410),se=C(2806);class de extends o.w0{constructor(z){super(),this.isStopped=!1,z?(this.destination=z,(0,o.Nn)(z)&&z.add(this)):this.destination=Qe}static create(z,Q,pe){return new Be(z,Q,pe)}next(z){this.isStopped?Ye(function Ce(me){return ue("N",me,void 0)}(z),this):this._next(z)}error(z){this.isStopped?Ye(function De(me){return ue("E",void 0,me)}(z),this):(this.isStopped=!0,this._error(z))}complete(){this.isStopped?Ye(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(z){this.destination.next(z)}_error(z){try{this.destination.error(z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function le(me,z){return X.call(me,z)}class ke{constructor(z){this.partialObserver=z}next(z){const{partialObserver:Q}=this;if(Q.next)try{Q.next(z)}catch(pe){Z(pe)}}error(z){const{partialObserver:Q}=this;if(Q.error)try{Q.error(z)}catch(pe){Z(pe)}else Z(z)}complete(){const{partialObserver:z}=this;if(z.complete)try{z.complete()}catch(Q){Z(Q)}}}class Be extends de{constructor(z,Q,pe){let Te;if(super(),(0,c.m)(z)||!z)Te={next:null!=z?z:void 0,error:null!=Q?Q:void 0,complete:null!=pe?pe:void 0};else{let Ne;this&&g.v.useDeprecatedNextContext?(Ne=Object.create(z),Ne.unsubscribe=()=>this.unsubscribe(),Te={next:z.next&&le(z.next,Ne),error:z.error&&le(z.error,Ne),complete:z.complete&&le(z.complete,Ne)}):Te=z}this.destination=new ke(Te)}}function Z(me){g.v.useDeprecatedSynchronousErrorHandling?(0,se.O)(me):(0,Y.h)(me)}function Ye(me,z){const{onStoppedNotification:Q}=g.v;Q&&te.z.setTimeout(()=>Q(me,z))}const Qe={closed:!0,next:ce.Z,error:function et(me){throw me},complete:ce.Z}},727:(qe,ye,C)=>{C.d(ye,{Lc:()=>q,w0:()=>ce,Nn:()=>De});var c=C(576);const g=(0,C(3888).d)(ue=>function(se){ue(this),this.message=se?`${se.length} errors occurred during unsubscription:\n${se.map((de,X)=>`${X+1}) ${de.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=se});var Y=C(8737);class ce{constructor(te){this.initialTeardown=te,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let te;if(!this.closed){this.closed=!0;const{_parentage:se}=this;if(se)if(this._parentage=null,Array.isArray(se))for(const le of se)le.remove(this);else se.remove(this);const{initialTeardown:de}=this;if((0,c.m)(de))try{de()}catch(le){te=le instanceof g?le.errors:[le]}const{_teardowns:X}=this;if(X){this._teardowns=null;for(const le of X)try{Ce(le)}catch(ke){te=null!=te?te:[],ke instanceof g?te=[...te,...ke.errors]:te.push(ke)}}if(te)throw new g(te)}}add(te){var se;if(te&&te!==this)if(this.closed)Ce(te);else{if(te instanceof ce){if(te.closed||te._hasParent(this))return;te._addParent(this)}(this._teardowns=null!==(se=this._teardowns)&&void 0!==se?se:[]).push(te)}}_hasParent(te){const{_parentage:se}=this;return se===te||Array.isArray(se)&&se.includes(te)}_addParent(te){const{_parentage:se}=this;this._parentage=Array.isArray(se)?(se.push(te),se):se?[se,te]:te}_removeParent(te){const{_parentage:se}=this;se===te?this._parentage=null:Array.isArray(se)&&(0,Y.P)(se,te)}remove(te){const{_teardowns:se}=this;se&&(0,Y.P)(se,te),te instanceof ce&&te._removeParent(this)}}ce.EMPTY=(()=>{const ue=new ce;return ue.closed=!0,ue})();const q=ce.EMPTY;function De(ue){return ue instanceof ce||ue&&"closed"in ue&&(0,c.m)(ue.remove)&&(0,c.m)(ue.add)&&(0,c.m)(ue.unsubscribe)}function Ce(ue){(0,c.m)(ue)?ue():ue.unsubscribe()}},2416:(qe,ye,C)=>{C.d(ye,{v:()=>c});const c={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(qe,ye,C)=>{C.d(ye,{a:()=>te});var c=C(8306),o=C(4742),g=C(2076),Y=C(4671),ce=C(3268),q=C(3269),De=C(1810),Ce=C(5403),ue=C(9672);function te(...X){const le=(0,q.yG)(X),ke=(0,q.jO)(X),{args:Be,keys:Z}=(0,o.D)(X);if(0===Be.length)return(0,g.D)([],le);const et=new c.y(function se(X,le,ke=Y.y){return Be=>{de(le,()=>{const{length:Z}=X,et=new Array(Z);let Ye=Z,Qe=Z;for(let me=0;me{const z=(0,g.D)(X[me],le);let Q=!1;z.subscribe((0,Ce.x)(Be,pe=>{et[me]=pe,Q||(Q=!0,Qe--),Qe||Be.next(ke(et.slice()))},()=>{--Ye||Be.complete()}))},Be)},Be)}}(Be,le,Z?Ye=>(0,De.n)(Z,Ye):Y.y));return ke?et.pipe((0,ce.Z)(ke)):et}function de(X,le,ke){X?(0,ue.f)(ke,X,le):le()}},7272:(qe,ye,C)=>{C.d(ye,{z:()=>ce});var c=C(8189),g=C(3269),Y=C(2076);function ce(...q){return function o(){return(0,c.J)(1)}()((0,Y.D)(q,(0,g.yG)(q)))}},9770:(qe,ye,C)=>{C.d(ye,{P:()=>g});var c=C(8306),o=C(8421);function g(Y){return new c.y(ce=>{(0,o.Xf)(Y()).subscribe(ce)})}},515:(qe,ye,C)=>{C.d(ye,{E:()=>o});const o=new(C(8306).y)(ce=>ce.complete())},2076:(qe,ye,C)=>{C.d(ye,{D:()=>pe});var c=C(8421),o=C(9672),g=C(4482),Y=C(5403);function ce(Te,Ne=0){return(0,g.e)((ve,Me)=>{ve.subscribe((0,Y.x)(Me,xe=>(0,o.f)(Me,Te,()=>Me.next(xe),Ne),()=>(0,o.f)(Me,Te,()=>Me.complete(),Ne),xe=>(0,o.f)(Me,Te,()=>Me.error(xe),Ne)))})}function q(Te,Ne=0){return(0,g.e)((ve,Me)=>{Me.add(Te.schedule(()=>ve.subscribe(Me),Ne))})}var ue=C(8306),se=C(2202),de=C(576);function le(Te,Ne){if(!Te)throw new Error("Iterable cannot be null");return new ue.y(ve=>{(0,o.f)(ve,Ne,()=>{const Me=Te[Symbol.asyncIterator]();(0,o.f)(ve,Ne,()=>{Me.next().then(xe=>{xe.done?ve.complete():ve.next(xe.value)})},0,!0)})})}var ke=C(3670),Be=C(8239),Z=C(1144),et=C(6495),Ye=C(2206),Qe=C(4532),me=C(3260);function pe(Te,Ne){return Ne?function Q(Te,Ne){if(null!=Te){if((0,ke.c)(Te))return function De(Te,Ne){return(0,c.Xf)(Te).pipe(q(Ne),ce(Ne))}(Te,Ne);if((0,Z.z)(Te))return function te(Te,Ne){return new ue.y(ve=>{let Me=0;return Ne.schedule(function(){Me===Te.length?ve.complete():(ve.next(Te[Me++]),ve.closed||this.schedule())})})}(Te,Ne);if((0,Be.t)(Te))return function Ce(Te,Ne){return(0,c.Xf)(Te).pipe(q(Ne),ce(Ne))}(Te,Ne);if((0,Ye.D)(Te))return le(Te,Ne);if((0,et.T)(Te))return function X(Te,Ne){return new ue.y(ve=>{let Me;return(0,o.f)(ve,Ne,()=>{Me=Te[se.h](),(0,o.f)(ve,Ne,()=>{let xe,Ae;try{({value:xe,done:Ae}=Me.next())}catch(tt){return void ve.error(tt)}Ae?ve.complete():ve.next(xe)},0,!0)}),()=>(0,de.m)(null==Me?void 0:Me.return)&&Me.return()})}(Te,Ne);if((0,me.L)(Te))return function z(Te,Ne){return le((0,me.Q)(Te),Ne)}(Te,Ne)}throw(0,Qe.z)(Te)}(Te,Ne):(0,c.Xf)(Te)}},4968:(qe,ye,C)=>{C.d(ye,{R:()=>te});var c=C(8421),o=C(8306),g=C(5577),Y=C(1144),ce=C(576),q=C(3268);const De=["addListener","removeListener"],Ce=["addEventListener","removeEventListener"],ue=["on","off"];function te(ke,Be,Z,et){if((0,ce.m)(Z)&&(et=Z,Z=void 0),et)return te(ke,Be,Z).pipe((0,q.Z)(et));const[Ye,Qe]=function le(ke){return(0,ce.m)(ke.addEventListener)&&(0,ce.m)(ke.removeEventListener)}(ke)?Ce.map(me=>z=>ke[me](Be,z,Z)):function de(ke){return(0,ce.m)(ke.addListener)&&(0,ce.m)(ke.removeListener)}(ke)?De.map(se(ke,Be)):function X(ke){return(0,ce.m)(ke.on)&&(0,ce.m)(ke.off)}(ke)?ue.map(se(ke,Be)):[];if(!Ye&&(0,Y.z)(ke))return(0,g.z)(me=>te(me,Be,Z))((0,c.Xf)(ke));if(!Ye)throw new TypeError("Invalid event target");return new o.y(me=>{const z=(...Q)=>me.next(1Qe(z)})}function se(ke,Be){return Z=>et=>ke[Z](Be,et)}},8421:(qe,ye,C)=>{C.d(ye,{Xf:()=>X});var c=C(655),o=C(1144),g=C(8239),Y=C(8306),ce=C(3670),q=C(2206),De=C(4532),Ce=C(6495),ue=C(3260),te=C(576),se=C(7849),de=C(8822);function X(me){if(me instanceof Y.y)return me;if(null!=me){if((0,ce.c)(me))return function le(me){return new Y.y(z=>{const Q=me[de.L]();if((0,te.m)(Q.subscribe))return Q.subscribe(z);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,o.z)(me))return function ke(me){return new Y.y(z=>{for(let Q=0;Q{me.then(Q=>{z.closed||(z.next(Q),z.complete())},Q=>z.error(Q)).then(null,se.h)})}(me);if((0,q.D)(me))return et(me);if((0,Ce.T)(me))return function Z(me){return new Y.y(z=>{for(const Q of me)if(z.next(Q),z.closed)return;z.complete()})}(me);if((0,ue.L)(me))return function Ye(me){return et((0,ue.Q)(me))}(me)}throw(0,De.z)(me)}function et(me){return new Y.y(z=>{(function Qe(me,z){var Q,pe,Te,Ne;return(0,c.mG)(this,void 0,void 0,function*(){try{for(Q=(0,c.KL)(me);!(pe=yield Q.next()).done;)if(z.next(pe.value),z.closed)return}catch(ve){Te={error:ve}}finally{try{pe&&!pe.done&&(Ne=Q.return)&&(yield Ne.call(Q))}finally{if(Te)throw Te.error}}z.complete()})})(me,z).catch(Q=>z.error(Q))})}},6451:(qe,ye,C)=>{C.d(ye,{T:()=>q});var c=C(8189),o=C(8421),g=C(515),Y=C(3269),ce=C(2076);function q(...De){const Ce=(0,Y.yG)(De),ue=(0,Y._6)(De,1/0),te=De;return te.length?1===te.length?(0,o.Xf)(te[0]):(0,c.J)(ue)((0,ce.D)(te,Ce)):g.E}},9646:(qe,ye,C)=>{C.d(ye,{of:()=>g});var c=C(3269),o=C(2076);function g(...Y){const ce=(0,c.yG)(Y);return(0,o.D)(Y,ce)}},5963:(qe,ye,C)=>{C.d(ye,{H:()=>ce});var c=C(8306),o=C(4986),g=C(3532);function ce(q=0,De,Ce=o.P){let ue=-1;return null!=De&&((0,g.K)(De)?Ce=De:ue=De),new c.y(te=>{let se=function Y(q){return q instanceof Date&&!isNaN(q)}(q)?+q-Ce.now():q;se<0&&(se=0);let de=0;return Ce.schedule(function(){te.closed||(te.next(de++),0<=ue?this.schedule(void 0,ue):te.complete())},se)})}},5403:(qe,ye,C)=>{C.d(ye,{x:()=>o});var c=C(930);function o(Y,ce,q,De,Ce){return new g(Y,ce,q,De,Ce)}class g extends c.Lv{constructor(ce,q,De,Ce,ue,te){super(ce),this.onFinalize=ue,this.shouldUnsubscribe=te,this._next=q?function(se){try{q(se)}catch(de){ce.error(de)}}:super._next,this._error=Ce?function(se){try{Ce(se)}catch(de){ce.error(de)}finally{this.unsubscribe()}}:super._error,this._complete=De?function(){try{De()}catch(se){ce.error(se)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ce;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(ce=this.onFinalize)||void 0===ce||ce.call(this))}}}},4351:(qe,ye,C)=>{C.d(ye,{b:()=>g});var c=C(5577),o=C(576);function g(Y,ce){return(0,o.m)(ce)?(0,c.z)(Y,ce,1):(0,c.z)(Y,1)}},8372:(qe,ye,C)=>{C.d(ye,{b:()=>Y});var c=C(4986),o=C(4482),g=C(5403);function Y(ce,q=c.z){return(0,o.e)((De,Ce)=>{let ue=null,te=null,se=null;const de=()=>{if(ue){ue.unsubscribe(),ue=null;const le=te;te=null,Ce.next(le)}};function X(){const le=se+ce,ke=q.now();if(ke{te=le,se=q.now(),ue||(ue=q.schedule(X,ce),Ce.add(ue))},()=>{de(),Ce.complete()},void 0,()=>{te=ue=null}))})}},1884:(qe,ye,C)=>{C.d(ye,{x:()=>Y});var c=C(4671),o=C(4482),g=C(5403);function Y(q,De=c.y){return q=null!=q?q:ce,(0,o.e)((Ce,ue)=>{let te,se=!0;Ce.subscribe((0,g.x)(ue,de=>{const X=De(de);(se||!q(te,X))&&(se=!1,te=X,ue.next(de))}))})}function ce(q,De){return q===De}},9300:(qe,ye,C)=>{C.d(ye,{h:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((q,De)=>{let Ce=0;q.subscribe((0,o.x)(De,ue=>Y.call(ce,ue,Ce++)&&De.next(ue)))})}},4004:(qe,ye,C)=>{C.d(ye,{U:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((q,De)=>{let Ce=0;q.subscribe((0,o.x)(De,ue=>{De.next(Y.call(ce,ue,Ce++))}))})}},8189:(qe,ye,C)=>{C.d(ye,{J:()=>g});var c=C(5577),o=C(4671);function g(Y=1/0){return(0,c.z)(o.y,Y)}},5577:(qe,ye,C)=>{C.d(ye,{z:()=>Ce});var c=C(4004),o=C(8421),g=C(4482),Y=C(9672),ce=C(5403),De=C(576);function Ce(ue,te,se=1/0){return(0,De.m)(te)?Ce((de,X)=>(0,c.U)((le,ke)=>te(de,le,X,ke))((0,o.Xf)(ue(de,X))),se):("number"==typeof te&&(se=te),(0,g.e)((de,X)=>function q(ue,te,se,de,X,le,ke,Be){const Z=[];let et=0,Ye=0,Qe=!1;const me=()=>{Qe&&!Z.length&&!et&&te.complete()},z=pe=>et{le&&te.next(pe),et++;let Te=!1;(0,o.Xf)(se(pe,Ye++)).subscribe((0,ce.x)(te,Ne=>{null==X||X(Ne),le?z(Ne):te.next(Ne)},()=>{Te=!0},void 0,()=>{if(Te)try{for(et--;Z.length&&etQ(Ne)):Q(Ne)}me()}catch(Ne){te.error(Ne)}}))};return ue.subscribe((0,ce.x)(te,z,()=>{Qe=!0,me()})),()=>{null==Be||Be()}}(de,X,ue,se)))}},5684:(qe,ye,C)=>{C.d(ye,{T:()=>o});var c=C(9300);function o(g){return(0,c.h)((Y,ce)=>g<=ce)}},8675:(qe,ye,C)=>{C.d(ye,{O:()=>Y});var c=C(7272),o=C(3269),g=C(4482);function Y(...ce){const q=(0,o.yG)(ce);return(0,g.e)((De,Ce)=>{(q?(0,c.z)(ce,De,q):(0,c.z)(ce,De)).subscribe(Ce)})}},3900:(qe,ye,C)=>{C.d(ye,{w:()=>Y});var c=C(8421),o=C(4482),g=C(5403);function Y(ce,q){return(0,o.e)((De,Ce)=>{let ue=null,te=0,se=!1;const de=()=>se&&!ue&&Ce.complete();De.subscribe((0,g.x)(Ce,X=>{null==ue||ue.unsubscribe();let le=0;const ke=te++;(0,c.Xf)(ce(X,ke)).subscribe(ue=(0,g.x)(Ce,Be=>Ce.next(q?q(X,Be,ke,le++):Be),()=>{ue=null,de()}))},()=>{se=!0,de()}))})}},5698:(qe,ye,C)=>{C.d(ye,{q:()=>Y});var c=C(515),o=C(4482),g=C(5403);function Y(ce){return ce<=0?()=>c.E:(0,o.e)((q,De)=>{let Ce=0;q.subscribe((0,g.x)(De,ue=>{++Ce<=ce&&(De.next(ue),ce<=Ce&&De.complete())}))})}},2722:(qe,ye,C)=>{C.d(ye,{R:()=>ce});var c=C(4482),o=C(5403),g=C(8421),Y=C(5032);function ce(q){return(0,c.e)((De,Ce)=>{(0,g.Xf)(q).subscribe((0,o.x)(Ce,()=>Ce.complete(),Y.Z)),!Ce.closed&&De.subscribe(Ce)})}},8505:(qe,ye,C)=>{C.d(ye,{b:()=>ce});var c=C(576),o=C(4482),g=C(5403),Y=C(4671);function ce(q,De,Ce){const ue=(0,c.m)(q)||De||Ce?{next:q,error:De,complete:Ce}:q;return ue?(0,o.e)((te,se)=>{var de;null===(de=ue.subscribe)||void 0===de||de.call(ue);let X=!0;te.subscribe((0,g.x)(se,le=>{var ke;null===(ke=ue.next)||void 0===ke||ke.call(ue,le),se.next(le)},()=>{var le;X=!1,null===(le=ue.complete)||void 0===le||le.call(ue),se.complete()},le=>{var ke;X=!1,null===(ke=ue.error)||void 0===ke||ke.call(ue,le),se.error(le)},()=>{var le,ke;X&&(null===(le=ue.unsubscribe)||void 0===le||le.call(ue)),null===(ke=ue.finalize)||void 0===ke||ke.call(ue)}))}):Y.y}},4408:(qe,ye,C)=>{C.d(ye,{o:()=>ce});var c=C(727);class o extends c.w0{constructor(De,Ce){super()}schedule(De,Ce=0){return this}}const g={setInterval(...q){const{delegate:De}=g;return((null==De?void 0:De.setInterval)||setInterval)(...q)},clearInterval(q){const{delegate:De}=g;return((null==De?void 0:De.clearInterval)||clearInterval)(q)},delegate:void 0};var Y=C(8737);class ce extends o{constructor(De,Ce){super(De,Ce),this.scheduler=De,this.work=Ce,this.pending=!1}schedule(De,Ce=0){if(this.closed)return this;this.state=De;const ue=this.id,te=this.scheduler;return null!=ue&&(this.id=this.recycleAsyncId(te,ue,Ce)),this.pending=!0,this.delay=Ce,this.id=this.id||this.requestAsyncId(te,this.id,Ce),this}requestAsyncId(De,Ce,ue=0){return g.setInterval(De.flush.bind(De,this),ue)}recycleAsyncId(De,Ce,ue=0){if(null!=ue&&this.delay===ue&&!1===this.pending)return Ce;g.clearInterval(Ce)}execute(De,Ce){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ue=this._execute(De,Ce);if(ue)return ue;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(De,Ce){let te,ue=!1;try{this.work(De)}catch(se){ue=!0,te=se||new Error("Scheduled action threw falsy error")}if(ue)return this.unsubscribe(),te}unsubscribe(){if(!this.closed){const{id:De,scheduler:Ce}=this,{actions:ue}=Ce;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Y.P)(ue,this),null!=De&&(this.id=this.recycleAsyncId(Ce,De,null)),this.delay=null,super.unsubscribe()}}}},640:(qe,ye,C)=>{C.d(ye,{v:()=>g});const c={now:()=>(c.delegate||Date).now(),delegate:void 0};class o{constructor(ce,q=o.now){this.schedulerActionCtor=ce,this.now=q}schedule(ce,q=0,De){return new this.schedulerActionCtor(this,ce).schedule(De,q)}}o.now=c.now;class g extends o{constructor(ce,q=o.now){super(ce,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(ce){const{actions:q}=this;if(this._active)return void q.push(ce);let De;this._active=!0;do{if(De=ce.execute(ce.state,ce.delay))break}while(ce=q.shift());if(this._active=!1,De){for(;ce=q.shift();)ce.unsubscribe();throw De}}}},3101:(qe,ye,C)=>{C.d(ye,{E:()=>le});var c=C(4408);let g,o=1;const Y={};function ce(Be){return Be in Y&&(delete Y[Be],!0)}const q={setImmediate(Be){const Z=o++;return Y[Z]=!0,g||(g=Promise.resolve()),g.then(()=>ce(Z)&&Be()),Z},clearImmediate(Be){ce(Be)}},{setImmediate:Ce,clearImmediate:ue}=q,te={setImmediate(...Be){const{delegate:Z}=te;return((null==Z?void 0:Z.setImmediate)||Ce)(...Be)},clearImmediate(Be){const{delegate:Z}=te;return((null==Z?void 0:Z.clearImmediate)||ue)(Be)},delegate:void 0};var de=C(640);const le=new class X extends de.v{flush(Z){this._active=!0;const et=this._scheduled;this._scheduled=void 0;const{actions:Ye}=this;let Qe;Z=Z||Ye.shift();do{if(Qe=Z.execute(Z.state,Z.delay))break}while((Z=Ye[0])&&Z.id===et&&Ye.shift());if(this._active=!1,Qe){for(;(Z=Ye[0])&&Z.id===et&&Ye.shift();)Z.unsubscribe();throw Qe}}}(class se extends c.o{constructor(Z,et){super(Z,et),this.scheduler=Z,this.work=et}requestAsyncId(Z,et,Ye=0){return null!==Ye&&Ye>0?super.requestAsyncId(Z,et,Ye):(Z.actions.push(this),Z._scheduled||(Z._scheduled=te.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,et,Ye=0){if(null!=Ye&&Ye>0||null==Ye&&this.delay>0)return super.recycleAsyncId(Z,et,Ye);Z.actions.some(Qe=>Qe.id===et)||(te.clearImmediate(et),Z._scheduled=void 0)}})},4986:(qe,ye,C)=>{C.d(ye,{z:()=>g,P:()=>Y});var c=C(4408);const g=new(C(640).v)(c.o),Y=g},3410:(qe,ye,C)=>{C.d(ye,{z:()=>c});const c={setTimeout(...o){const{delegate:g}=c;return((null==g?void 0:g.setTimeout)||setTimeout)(...o)},clearTimeout(o){const{delegate:g}=c;return((null==g?void 0:g.clearTimeout)||clearTimeout)(o)},delegate:void 0}},2202:(qe,ye,C)=>{C.d(ye,{h:()=>o});const o=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(qe,ye,C)=>{C.d(ye,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(qe,ye,C)=>{C.d(ye,{jO:()=>Y,yG:()=>ce,_6:()=>q});var c=C(576),o=C(3532);function g(De){return De[De.length-1]}function Y(De){return(0,c.m)(g(De))?De.pop():void 0}function ce(De){return(0,o.K)(g(De))?De.pop():void 0}function q(De,Ce){return"number"==typeof g(De)?De.pop():Ce}},4742:(qe,ye,C)=>{C.d(ye,{D:()=>ce});const{isArray:c}=Array,{getPrototypeOf:o,prototype:g,keys:Y}=Object;function ce(De){if(1===De.length){const Ce=De[0];if(c(Ce))return{args:Ce,keys:null};if(function q(De){return De&&"object"==typeof De&&o(De)===g}(Ce)){const ue=Y(Ce);return{args:ue.map(te=>Ce[te]),keys:ue}}}return{args:De,keys:null}}},8737:(qe,ye,C)=>{function c(o,g){if(o){const Y=o.indexOf(g);0<=Y&&o.splice(Y,1)}}C.d(ye,{P:()=>c})},3888:(qe,ye,C)=>{function c(o){const Y=o(ce=>{Error.call(ce),ce.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}C.d(ye,{d:()=>c})},1810:(qe,ye,C)=>{function c(o,g){return o.reduce((Y,ce,q)=>(Y[ce]=g[q],Y),{})}C.d(ye,{n:()=>c})},2806:(qe,ye,C)=>{C.d(ye,{x:()=>g,O:()=>Y});var c=C(2416);let o=null;function g(ce){if(c.v.useDeprecatedSynchronousErrorHandling){const q=!o;if(q&&(o={errorThrown:!1,error:null}),ce(),q){const{errorThrown:De,error:Ce}=o;if(o=null,De)throw Ce}}else ce()}function Y(ce){c.v.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=ce)}},9672:(qe,ye,C)=>{function c(o,g,Y,ce=0,q=!1){const De=g.schedule(function(){Y(),q?o.add(this.schedule(null,ce)):this.unsubscribe()},ce);if(o.add(De),!q)return De}C.d(ye,{f:()=>c})},4671:(qe,ye,C)=>{function c(o){return o}C.d(ye,{y:()=>c})},1144:(qe,ye,C)=>{C.d(ye,{z:()=>c});const c=o=>o&&"number"==typeof o.length&&"function"!=typeof o},2206:(qe,ye,C)=>{C.d(ye,{D:()=>o});var c=C(576);function o(g){return Symbol.asyncIterator&&(0,c.m)(null==g?void 0:g[Symbol.asyncIterator])}},576:(qe,ye,C)=>{function c(o){return"function"==typeof o}C.d(ye,{m:()=>c})},3670:(qe,ye,C)=>{C.d(ye,{c:()=>g});var c=C(8822),o=C(576);function g(Y){return(0,o.m)(Y[c.L])}},6495:(qe,ye,C)=>{C.d(ye,{T:()=>g});var c=C(2202),o=C(576);function g(Y){return(0,o.m)(null==Y?void 0:Y[c.h])}},8239:(qe,ye,C)=>{C.d(ye,{t:()=>o});var c=C(576);function o(g){return(0,c.m)(null==g?void 0:g.then)}},3260:(qe,ye,C)=>{C.d(ye,{Q:()=>g,L:()=>Y});var c=C(655),o=C(576);function g(ce){return(0,c.FC)(this,arguments,function*(){const De=ce.getReader();try{for(;;){const{value:Ce,done:ue}=yield(0,c.qq)(De.read());if(ue)return yield(0,c.qq)(void 0);yield yield(0,c.qq)(Ce)}}finally{De.releaseLock()}})}function Y(ce){return(0,o.m)(null==ce?void 0:ce.getReader)}},3532:(qe,ye,C)=>{C.d(ye,{K:()=>o});var c=C(576);function o(g){return g&&(0,c.m)(g.schedule)}},4482:(qe,ye,C)=>{C.d(ye,{A:()=>o,e:()=>g});var c=C(576);function o(Y){return(0,c.m)(null==Y?void 0:Y.lift)}function g(Y){return ce=>{if(o(ce))return ce.lift(function(q){try{return Y(q,this)}catch(De){this.error(De)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(qe,ye,C)=>{C.d(ye,{Z:()=>Y});var c=C(4004);const{isArray:o}=Array;function Y(ce){return(0,c.U)(q=>function g(ce,q){return o(q)?ce(...q):ce(q)}(ce,q))}},5032:(qe,ye,C)=>{function c(){}C.d(ye,{Z:()=>c})},7849:(qe,ye,C)=>{C.d(ye,{h:()=>g});var c=C(2416),o=C(3410);function g(Y){o.z.setTimeout(()=>{const{onUnhandledError:ce}=c.v;if(!ce)throw Y;ce(Y)})}},4532:(qe,ye,C)=>{function c(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(ye,{z:()=>c})},655:(qe,ye,C)=>{function Ce(ve,Me,xe,Ae){return new(xe||(xe=Promise))(function(Fe,Ct){function mt(Rt){try{yt(Ae.next(Rt))}catch(Wt){Ct(Wt)}}function Jt(Rt){try{yt(Ae.throw(Rt))}catch(Wt){Ct(Wt)}}function yt(Rt){Rt.done?Fe(Rt.value):function tt(Fe){return Fe instanceof xe?Fe:new xe(function(Ct){Ct(Fe)})}(Rt.value).then(mt,Jt)}yt((Ae=Ae.apply(ve,Me||[])).next())})}function Z(ve){return this instanceof Z?(this.v=ve,this):new Z(ve)}function et(ve,Me,xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var tt,Ae=xe.apply(ve,Me||[]),Fe=[];return tt={},Ct("next"),Ct("throw"),Ct("return"),tt[Symbol.asyncIterator]=function(){return this},tt;function Ct(Pt){Ae[Pt]&&(tt[Pt]=function(mn){return new Promise(function(Ut,xt){Fe.push([Pt,mn,Ut,xt])>1||mt(Pt,mn)})})}function mt(Pt,mn){try{!function Jt(Pt){Pt.value instanceof Z?Promise.resolve(Pt.value.v).then(yt,Rt):Wt(Fe[0][2],Pt)}(Ae[Pt](mn))}catch(Ut){Wt(Fe[0][3],Ut)}}function yt(Pt){mt("next",Pt)}function Rt(Pt){mt("throw",Pt)}function Wt(Pt,mn){Pt(mn),Fe.shift(),Fe.length&&mt(Fe[0][0],Fe[0][1])}}function Qe(ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var xe,Me=ve[Symbol.asyncIterator];return Me?Me.call(ve):(ve=function de(ve){var Me="function"==typeof Symbol&&Symbol.iterator,xe=Me&&ve[Me],Ae=0;if(xe)return xe.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&Ae>=ve.length&&(ve=void 0),{value:ve&&ve[Ae++],done:!ve}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}(ve),xe={},Ae("next"),Ae("throw"),Ae("return"),xe[Symbol.asyncIterator]=function(){return this},xe);function Ae(Fe){xe[Fe]=ve[Fe]&&function(Ct){return new Promise(function(mt,Jt){!function tt(Fe,Ct,mt,Jt){Promise.resolve(Jt).then(function(yt){Fe({value:yt,done:mt})},Ct)}(mt,Jt,(Ct=ve[Fe](Ct)).done,Ct.value)})}}}C.d(ye,{mG:()=>Ce,qq:()=>Z,FC:()=>et,KL:()=>Qe})},1777:(qe,ye,C)=>{C.d(ye,{l3:()=>g,_j:()=>c,LC:()=>o,ZN:()=>et,jt:()=>ce,pV:()=>X,F4:()=>te,IO:()=>ke,vP:()=>De,SB:()=>ue,oB:()=>Ce,eR:()=>se,X$:()=>Y,ZE:()=>Ye,k1:()=>Qe});class c{}class o{}const g="*";function Y(me,z){return{type:7,name:me,definitions:z,options:{}}}function ce(me,z=null){return{type:4,styles:z,timings:me}}function De(me,z=null){return{type:2,steps:me,options:z}}function Ce(me){return{type:6,styles:me,offset:null}}function ue(me,z,Q){return{type:0,name:me,styles:z,options:Q}}function te(me){return{type:5,steps:me}}function se(me,z,Q=null){return{type:1,expr:me,animation:z,options:Q}}function X(me=null){return{type:9,options:me}}function ke(me,z,Q=null){return{type:11,selector:me,animation:z,options:Q}}function Z(me){Promise.resolve(null).then(me)}class et{constructor(z=0,Q=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+Q}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}onStart(z){this._onStartFns.push(z)}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(z=>z()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(z){this._position=this.totalTime?z*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(pe=>pe()),Q.length=0}}class Ye{constructor(z){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;let Q=0,pe=0,Te=0;const Ne=this.players.length;0==Ne?Z(()=>this._onFinish()):this.players.forEach(ve=>{ve.onDone(()=>{++Q==Ne&&this._onFinish()}),ve.onDestroy(()=>{++pe==Ne&&this._onDestroy()}),ve.onStart(()=>{++Te==Ne&&this._onStart()})}),this.totalTime=this.players.reduce((ve,Me)=>Math.max(ve,Me.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}init(){this.players.forEach(z=>z.init())}onStart(z){this._onStartFns.push(z)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(z=>z()),this._onStartFns=[])}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(z=>z.play())}pause(){this.players.forEach(z=>z.pause())}restart(){this.players.forEach(z=>z.restart())}finish(){this._onFinish(),this.players.forEach(z=>z.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(z=>z.destroy()),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this.players.forEach(z=>z.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(z){const Q=z*this.totalTime;this.players.forEach(pe=>{const Te=pe.totalTime?Math.min(1,Q/pe.totalTime):1;pe.setPosition(Te)})}getPosition(){const z=this.players.reduce((Q,pe)=>null===Q||pe.totalTime>Q.totalTime?pe:Q,null);return null!=z?z.getPosition():0}beforeDestroy(){this.players.forEach(z=>{z.beforeDestroy&&z.beforeDestroy()})}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(pe=>pe()),Q.length=0}}const Qe="!"},9950:(qe,ye,C)=>{C.d(ye,{rt:()=>we,s1:()=>tt,$s:()=>ve,Em:()=>Fe,tE:()=>nn,qV:()=>He,qm:()=>Le,ic:()=>mt,Kd:()=>ze,X6:()=>at,yG:()=>Pe});var c=C(9808),o=C(4893),g=C(925),Y=C(7579),ce=C(727),q=C(1135),De=C(9646),Ce=C(1159),ue=C(8505),te=C(8372),se=C(9300),de=C(4004),X=C(5698),le=C(5684),ke=C(1884),Be=C(2722),Z=C(3191),et=C(7144);function z(V,j){return(V.getAttribute(j)||"").match(/\S+/g)||[]}const pe="cdk-describedby-message",Te="cdk-describedby-host";let Ne=0,ve=(()=>{class V{constructor($,he){this._platform=he,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ne++,this._document=$}describe($,he,Se){if(!this._canBeDescribed($,he))return;const st=Me(he,Se);"string"!=typeof he?(xe(he),this._messageRegistry.set(st,{messageElement:he,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(he,Se),this._isElementDescribedByMessage($,st)||this._addMessageReference($,st)}removeDescription($,he,Se){var st;if(!he||!this._isElementNode($))return;const At=Me(he,Se);if(this._isElementDescribedByMessage($,At)&&this._removeMessageReference($,At),"string"==typeof he){const Zt=this._messageRegistry.get(At);Zt&&0===Zt.referenceCount&&this._deleteMessageElement(At)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var $;const he=this._document.querySelectorAll(`[${Te}="${this._id}"]`);for(let Se=0;Se0!=Se.indexOf(pe));$.setAttribute("aria-describedby",he.join(" "))}_addMessageReference($,he){const Se=this._messageRegistry.get(he);(function Qe(V,j,$){const he=z(V,j);he.some(Se=>Se.trim()==$.trim())||(he.push($.trim()),V.setAttribute(j,he.join(" ")))})($,"aria-describedby",Se.messageElement.id),$.setAttribute(Te,this._id),Se.referenceCount++}_removeMessageReference($,he){const Se=this._messageRegistry.get(he);Se.referenceCount--,function me(V,j,$){const Se=z(V,j).filter(st=>st!=$.trim());Se.length?V.setAttribute(j,Se.join(" ")):V.removeAttribute(j)}($,"aria-describedby",Se.messageElement.id),$.removeAttribute(Te)}_isElementDescribedByMessage($,he){const Se=z($,"aria-describedby"),st=this._messageRegistry.get(he),At=st&&st.messageElement.id;return!!At&&-1!=Se.indexOf(At)}_canBeDescribed($,he){if(!this._isElementNode($))return!1;if(he&&"object"==typeof he)return!0;const Se=null==he?"":`${he}`.trim(),st=$.getAttribute("aria-label");return!(!Se||st&&st.trim()===Se)}_isElementNode($){return $.nodeType===this._document.ELEMENT_NODE}}return V.\u0275fac=function($){return new($||V)(o.LFG(c.K0),o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function Me(V,j){return"string"==typeof V?`${j||""}/${V}`:V}function xe(V){V.id||(V.id=`${pe}-${Ne++}`)}class Ae{constructor(j){this._items=j,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y.x,this._typeaheadSubscription=ce.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=$=>$.disabled,this._pressedLetters=[],this.tabOut=new Y.x,this.change=new Y.x,j instanceof o.n_E&&j.changes.subscribe($=>{if(this._activeItem){const Se=$.toArray().indexOf(this._activeItem);Se>-1&&Se!==this._activeItemIndex&&(this._activeItemIndex=Se)}})}skipPredicate(j){return this._skipPredicateFn=j,this}withWrap(j=!0){return this._wrap=j,this}withVerticalOrientation(j=!0){return this._vertical=j,this}withHorizontalOrientation(j){return this._horizontal=j,this}withAllowedModifierKeys(j){return this._allowedModifierKeys=j,this}withTypeAhead(j=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ue.b)($=>this._pressedLetters.push($)),(0,te.b)(j),(0,se.h)(()=>this._pressedLetters.length>0),(0,de.U)(()=>this._pressedLetters.join(""))).subscribe($=>{const he=this._getItemsArray();for(let Se=1;Se!j[st]||this._allowedModifierKeys.indexOf(st)>-1);switch($){case Ce.Mf:return void this.tabOut.next();case Ce.JH:if(this._vertical&&Se){this.setNextItemActive();break}return;case Ce.LH:if(this._vertical&&Se){this.setPreviousItemActive();break}return;case Ce.SV:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Ce.oh:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Ce.Sd:if(this._homeAndEnd&&Se){this.setFirstItemActive();break}return;case Ce.uR:if(this._homeAndEnd&&Se){this.setLastItemActive();break}return;default:return void((Se||(0,Ce.Vb)(j,"shiftKey"))&&(j.key&&1===j.key.length?this._letterKeyStream.next(j.key.toLocaleUpperCase()):($>=Ce.A&&$<=Ce.Z||$>=Ce.xE&&$<=Ce.aO)&&this._letterKeyStream.next(String.fromCharCode($))))}this._pressedLetters=[],j.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(j){const $=this._getItemsArray(),he="number"==typeof j?j:$.indexOf(j),Se=$[he];this._activeItem=null==Se?null:Se,this._activeItemIndex=he}_setActiveItemByDelta(j){this._wrap?this._setActiveInWrapMode(j):this._setActiveInDefaultMode(j)}_setActiveInWrapMode(j){const $=this._getItemsArray();for(let he=1;he<=$.length;he++){const Se=(this._activeItemIndex+j*he+$.length)%$.length;if(!this._skipPredicateFn($[Se]))return void this.setActiveItem(Se)}}_setActiveInDefaultMode(j){this._setActiveItemByIndex(this._activeItemIndex+j,j)}_setActiveItemByIndex(j,$){const he=this._getItemsArray();if(he[j]){for(;this._skipPredicateFn(he[j]);)if(!he[j+=$])return;this.setActiveItem(j)}}_getItemsArray(){return this._items instanceof o.n_E?this._items.toArray():this._items}}class tt extends Ae{setActiveItem(j){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(j),this.activeItem&&this.activeItem.setActiveStyles()}}class Fe extends Ae{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(j){return this._origin=j,this}setActiveItem(j){super.setActiveItem(j),this.activeItem&&this.activeItem.focus(this._origin)}}let mt=(()=>{class V{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function yt(V){return!!(V.offsetWidth||V.offsetHeight||"function"==typeof V.getClientRects&&V.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const he=function Jt(V){try{return V.frameElement}catch(j){return null}}(function J(V){return V.ownerDocument&&V.ownerDocument.defaultView||window}($));if(he&&(-1===on(he)||!this.isVisible(he)))return!1;let Se=$.nodeName.toLowerCase(),st=on($);return $.hasAttribute("contenteditable")?-1!==st:!("iframe"===Se||"object"===Se||this._platform.WEBKIT&&this._platform.IOS&&!function Xe(V){let j=V.nodeName.toLowerCase(),$="input"===j&&V.type;return"text"===$||"password"===$||"select"===j||"textarea"===j}($))&&("audio"===Se?!!$.hasAttribute("controls")&&-1!==st:"video"===Se?-1!==st&&(null!==st||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,he){return function je(V){return!function Wt(V){return function mn(V){return"input"==V.nodeName.toLowerCase()}(V)&&"hidden"==V.type}(V)&&(function Rt(V){let j=V.nodeName.toLowerCase();return"input"===j||"select"===j||"button"===j||"textarea"===j}(V)||function Pt(V){return function Ut(V){return"a"==V.nodeName.toLowerCase()}(V)&&V.hasAttribute("href")}(V)||V.hasAttribute("contenteditable")||xt(V))}($)&&!this.isDisabled($)&&((null==he?void 0:he.ignoreVisibility)||this.isVisible($))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function xt(V){if(!V.hasAttribute("tabindex")||void 0===V.tabIndex)return!1;let j=V.getAttribute("tabindex");return!(!j||isNaN(parseInt(j,10)))}function on(V){if(!xt(V))return null;const j=parseInt(V.getAttribute("tabindex")||"",10);return isNaN(j)?-1:j}class K{constructor(j,$,he,Se,st=!1){this._element=j,this._checker=$,this._ngZone=he,this._document=Se,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(j){this._enabled=j,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}destroy(){const j=this._startAnchor,$=this._endAnchor;j&&(j.removeEventListener("focus",this.startAnchorListener),j.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(j)))})}focusFirstTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(j)))})}focusLastTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(j)))})}_getRegionBoundary(j){const $=this._element.querySelectorAll(`[cdk-focus-region-${j}], [cdkFocusRegion${j}], [cdk-focus-${j}]`);return"start"==j?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(j){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const he=this._getFirstTabbableElement($);return null==he||he.focus(j),!!he}return $.focus(j),!0}return this.focusFirstTabbableElement(j)}focusFirstTabbableElement(j){const $=this._getRegionBoundary("start");return $&&$.focus(j),!!$}focusLastTabbableElement(j){const $=this._getRegionBoundary("end");return $&&$.focus(j),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=0;he<$.length;he++){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[he]):null;if(Se)return Se}return null}_getLastTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=$.length-1;he>=0;he--){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[he]):null;if(Se)return Se}return null}_createAnchor(){const j=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,j),j.classList.add("cdk-visually-hidden"),j.classList.add("cdk-focus-trap-anchor"),j.setAttribute("aria-hidden","true"),j}_toggleAnchorTabIndex(j,$){j?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(j){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}_executeOnStable(j){this._ngZone.isStable?j():this._ngZone.onStable.pipe((0,X.q)(1)).subscribe(j)}}let He=(()=>{class V{constructor($,he,Se){this._checker=$,this._ngZone=he,this._document=Se}create($,he=!1){return new K($,this._checker,this._ngZone,this._document,he)}}return V.\u0275fac=function($){return new($||V)(o.LFG(mt),o.LFG(o.R0b),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function at(V){return 0===V.buttons||0===V.offsetX&&0===V.offsetY}function Pe(V){const j=V.touches&&V.touches[0]||V.changedTouches&&V.changedTouches[0];return!(!j||-1!==j.identifier||null!=j.radiusX&&1!==j.radiusX||null!=j.radiusY&&1!==j.radiusY)}const E=new o.OlP("cdk-input-modality-detector-options"),S={ignoreKeys:[Ce.zL,Ce.jx,Ce.b2,Ce.MW,Ce.JU]},P=(0,g.i$)({passive:!0,capture:!0});let L=(()=>{class V{constructor($,he,Se,st){this._platform=$,this._mostRecentTarget=null,this._modality=new q.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Zt,Kt;(null===(Kt=null===(Zt=this._options)||void 0===Zt?void 0:Zt.ignoreKeys)||void 0===Kt?void 0:Kt.some(Dt=>Dt===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(at(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.sA)(At))},this._onTouchstart=At=>{Pe(At)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.sA)(At))},this._options=Object.assign(Object.assign({},S),st),this.modalityDetected=this._modality.pipe((0,le.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ke.x)()),$.isBrowser&&he.runOutsideAngular(()=>{Se.addEventListener("keydown",this._onKeydown,P),Se.addEventListener("mousedown",this._onMousedown,P),Se.addEventListener("touchstart",this._onTouchstart,P)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(o.R0b),o.LFG(c.K0),o.LFG(E,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const re=new o.OlP("liveAnnouncerElement",{providedIn:"root",factory:function be(){return null}}),Ue=new o.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ze=(()=>{class V{constructor($,he,Se,st){this._ngZone=he,this._defaultOptions=st,this._document=Se,this._liveElement=$||this._createLiveElement()}announce($,...he){const Se=this._defaultOptions;let st,At;return 1===he.length&&"number"==typeof he[0]?At=he[0]:[st,At]=he,this.clear(),clearTimeout(this._previousTimeout),st||(st=Se&&Se.politeness?Se.politeness:"polite"),null==At&&Se&&(At=Se.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>new Promise(Zt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=$,Zt(),"number"==typeof At&&(this._previousTimeout=setTimeout(()=>this.clear(),At))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var $;clearTimeout(this._previousTimeout),null===($=this._liveElement)||void 0===$||$.remove(),this._liveElement=null}_createLiveElement(){const $="cdk-live-announcer-element",he=this._document.getElementsByClassName($),Se=this._document.createElement("div");for(let st=0;st{class V{constructor($,he,Se,st,At){this._ngZone=$,this._platform=he,this._inputModalityDetector=Se,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y.x,this._rootNodeFocusAndBlurListener=Zt=>{const Kt=(0,g.sA)(Zt),Dt="focus"===Zt.type?this._onFocus:this._onBlur;for(let Rn=Kt;Rn;Rn=Rn.parentElement)Dt.call(this,Zt,Rn)},this._document=st,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,he=!1){const Se=(0,Z.fI)($);if(!this._platform.isBrowser||1!==Se.nodeType)return(0,De.of)(null);const st=(0,g.kV)(Se)||this._getDocument(),At=this._elementInfo.get(Se);if(At)return he&&(At.checkChildren=!0),At.subject;const Zt={checkChildren:he,subject:new Y.x,rootNode:st};return this._elementInfo.set(Se,Zt),this._registerGlobalListeners(Zt),Zt.subject}stopMonitoring($){const he=(0,Z.fI)($),Se=this._elementInfo.get(he);Se&&(Se.subject.complete(),this._setClasses(he),this._elementInfo.delete(he),this._removeGlobalListeners(Se))}focusVia($,he,Se){const st=(0,Z.fI)($);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Zt,Kt])=>this._originChanged(Zt,he,Kt)):(this._setOrigin(he),"function"==typeof st.focus&&st.focus(Se))}ngOnDestroy(){this._elementInfo.forEach(($,he)=>this.stopMonitoring(he))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,he){$.classList.toggle("cdk-focused",!!he),$.classList.toggle("cdk-touch-focused","touch"===he),$.classList.toggle("cdk-keyboard-focused","keyboard"===he),$.classList.toggle("cdk-mouse-focused","mouse"===he),$.classList.toggle("cdk-program-focused","program"===he)}_setOrigin($,he=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&he,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,he){const Se=this._elementInfo.get(he),st=(0,g.sA)($);!Se||!Se.checkChildren&&he!==st||this._originChanged(he,this._getFocusOrigin(st),Se)}_onBlur($,he){const Se=this._elementInfo.get(he);!Se||Se.checkChildren&&$.relatedTarget instanceof Node&&he.contains($.relatedTarget)||(this._setClasses(he),this._emitOrigin(Se.subject,null))}_emitOrigin($,he){this._ngZone.run(()=>$.next(he))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const he=$.rootNode,Se=this._rootNodeFocusListenerCount.get(he)||0;Se||this._ngZone.runOutsideAngular(()=>{he.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot)}),this._rootNodeFocusListenerCount.set(he,Se+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Be.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners($){const he=$.rootNode;if(this._rootNodeFocusListenerCount.has(he)){const Se=this._rootNodeFocusListenerCount.get(he);Se>1?this._rootNodeFocusListenerCount.set(he,Se-1):(he.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot),this._rootNodeFocusListenerCount.delete(he))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,he,Se){this._setClasses($,he),this._emitOrigin(Se.subject,he),this._lastFocusOrigin=he}_getClosestElementsInfo($){const he=[];return this._elementInfo.forEach((Se,st)=>{(st===$||Se.checkChildren&&st.contains($))&&he.push([st,Se])}),he}}return V.\u0275fac=function($){return new($||V)(o.LFG(o.R0b),o.LFG(g.t4),o.LFG(L),o.LFG(c.K0,8),o.LFG(ct,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const dn="cdk-high-contrast-black-on-white",dt="cdk-high-contrast-white-on-black",vt="cdk-high-contrast-active";let Le=(()=>{class V{constructor($,he){this._platform=$,this._document=he}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const he=this._document.defaultView||window,Se=he&&he.getComputedStyle?he.getComputedStyle($):null,st=(Se&&Se.backgroundColor||"").replace(/ /g,"");switch($.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(vt),$.remove(dn),$.remove(dt),this._hasCheckedHighContrastMode=!0;const he=this.getHighContrastMode();1===he?($.add(vt),$.add(dn)):2===he&&($.add(vt),$.add(dt))}}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),we=(()=>{class V{constructor($){$._applyBodyHighContrastModeCssClasses()}}return V.\u0275fac=function($){return new($||V)(o.LFG(Le))},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({imports:[[et.Q8]]}),V})()},226:(qe,ye,C)=>{C.d(ye,{vT:()=>ue,Is:()=>De});var c=C(4893),o=C(9808);const g=new c.OlP("cdk-dir-doc",{providedIn:"root",factory:function Y(){return(0,c.f3M)(o.K0)}}),ce=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let De=(()=>{class te{constructor(de){if(this.value="ltr",this.change=new c.vpe,de){const le=de.documentElement?de.documentElement.dir:null;this.value=function q(te){const se=(null==te?void 0:te.toLowerCase())||"";return"auto"===se&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ce.test(navigator.language)?"rtl":"ltr":"rtl"===se?"rtl":"ltr"}((de.body?de.body.dir:null)||le||"ltr")}}ngOnDestroy(){this.change.complete()}}return te.\u0275fac=function(de){return new(de||te)(c.LFG(g,8))},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),ue=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({}),te})()},3191:(qe,ye,C)=>{C.d(ye,{Eq:()=>ce,Ig:()=>o,HM:()=>q,fI:()=>De,su:()=>g});var c=C(4893);function o(ue){return null!=ue&&"false"!=`${ue}`}function g(ue,te=0){return function Y(ue){return!isNaN(parseFloat(ue))&&!isNaN(Number(ue))}(ue)?Number(ue):te}function ce(ue){return Array.isArray(ue)?ue:[ue]}function q(ue){return null==ue?"":"string"==typeof ue?ue:`${ue}px`}function De(ue){return ue instanceof c.SBq?ue.nativeElement:ue}},449:(qe,ye,C)=>{C.d(ye,{Ov:()=>Ce,A8:()=>te});var c=C(7579),o=C(4893);class Ce{constructor(X=!1,le,ke=!0){this._multiple=X,this._emitChanges=ke,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new c.x,le&&le.length&&(X?le.forEach(Be=>this._markSelected(Be)):this._markSelected(le[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...X){this._verifyValueAssignment(X),X.forEach(le=>this._markSelected(le)),this._emitChangeEvent()}deselect(...X){this._verifyValueAssignment(X),X.forEach(le=>this._unmarkSelected(le)),this._emitChangeEvent()}toggle(X){this.isSelected(X)?this.deselect(X):this.select(X)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(X){return this._selection.has(X)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(X){this._multiple&&this.selected&&this._selected.sort(X)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}_unmarkSelected(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}_unmarkAll(){this.isEmpty()||this._selection.forEach(X=>this._unmarkSelected(X))}_verifyValueAssignment(X){}}let te=(()=>{class de{constructor(){this._listeners=[]}notify(le,ke){for(let Be of this._listeners)Be(le,ke)}listen(le){return this._listeners.push(le),()=>{this._listeners=this._listeners.filter(ke=>le!==ke)}}ngOnDestroy(){this._listeners=[]}}return de.\u0275fac=function(le){return new(le||de)},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})()},1159:(qe,ye,C)=>{C.d(ye,{A:()=>Pt,zL:()=>Ce,jx:()=>De,JH:()=>Qe,uR:()=>ke,K5:()=>ce,hY:()=>se,Sd:()=>Be,oh:()=>Z,b2:()=>Jn,MW:()=>ze,aO:()=>mt,SV:()=>Ye,JU:()=>q,L_:()=>de,Mf:()=>g,LH:()=>et,Z:()=>Ue,xE:()=>Te,Vb:()=>Si});const g=9,ce=13,q=16,De=17,Ce=18,se=27,de=32,ke=35,Be=36,Z=37,et=38,Ye=39,Qe=40,Te=48,mt=57,Pt=65,Ue=90,ze=91,Jn=224;function Si(Gn,...gn){return gn.length?gn.some(di=>Gn[di]):Gn.altKey||Gn.shiftKey||Gn.ctrlKey||Gn.metaKey}},7144:(qe,ye,C)=>{C.d(ye,{wD:()=>Ce,Q8:()=>ue});var c=C(3191),o=C(4893),g=C(8306),Y=C(7579),ce=C(8372);let q=(()=>{class te{create(de){return"undefined"==typeof MutationObserver?null:new MutationObserver(de)}}return te.\u0275fac=function(de){return new(de||te)},te.\u0275prov=o.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),De=(()=>{class te{constructor(de){this._mutationObserverFactory=de,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((de,X)=>this._cleanupObserver(X))}observe(de){const X=(0,c.fI)(de);return new g.y(le=>{const Be=this._observeElement(X).subscribe(le);return()=>{Be.unsubscribe(),this._unobserveElement(X)}})}_observeElement(de){if(this._observedElements.has(de))this._observedElements.get(de).count++;else{const X=new Y.x,le=this._mutationObserverFactory.create(ke=>X.next(ke));le&&le.observe(de,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(de,{observer:le,stream:X,count:1})}return this._observedElements.get(de).stream}_unobserveElement(de){this._observedElements.has(de)&&(this._observedElements.get(de).count--,this._observedElements.get(de).count||this._cleanupObserver(de))}_cleanupObserver(de){if(this._observedElements.has(de)){const{observer:X,stream:le}=this._observedElements.get(de);X&&X.disconnect(),le.complete(),this._observedElements.delete(de)}}}return te.\u0275fac=function(de){return new(de||te)(o.LFG(q))},te.\u0275prov=o.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Ce=(()=>{class te{constructor(de,X,le){this._contentObserver=de,this._elementRef=X,this._ngZone=le,this.event=new o.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,c.Ig)(de),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(de){this._debounce=(0,c.su)(de),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const de=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?de.pipe((0,ce.b)(this.debounce)):de).subscribe(this.event)})}_unsubscribe(){var de;null===(de=this._currentSubscription)||void 0===de||de.unsubscribe()}}return te.\u0275fac=function(de){return new(de||te)(o.Y36(De),o.Y36(o.SBq),o.Y36(o.R0b))},te.\u0275dir=o.lG2({type:te,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),te})(),ue=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({providers:[q]}),te})()},9776:(qe,ye,C)=>{C.d(ye,{pI:()=>St,xu:()=>lt,aV:()=>K,X_:()=>Ne,Xj:()=>Ct,U8:()=>Nt});var c=C(495),o=C(9808),g=C(4893),Y=C(3191),ce=C(925),q=C(226),De=C(7429),Ce=C(7579),ue=C(727),te=C(6451),se=C(4482),de=C(5403),le=C(5698),ke=C(2722),Be=C(1159);const Z=(0,ce.Mq)();class et{constructor(E,S){this._viewportRuler=E,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=S}attach(){}enable(){if(this._canBeEnabled()){const E=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=E.style.left||"",this._previousHTMLStyles.top=E.style.top||"",E.style.left=(0,Y.HM)(-this._previousScrollPosition.left),E.style.top=(0,Y.HM)(-this._previousScrollPosition.top),E.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const E=this._document.documentElement,D=E.style,P=this._document.body.style,L=D.scrollBehavior||"",re=P.scrollBehavior||"";this._isEnabled=!1,D.left=this._previousHTMLStyles.left,D.top=this._previousHTMLStyles.top,E.classList.remove("cdk-global-scrollblock"),Z&&(D.scrollBehavior=P.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(D.scrollBehavior=L,P.scrollBehavior=re)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const S=this._document.body,D=this._viewportRuler.getViewportSize();return S.scrollHeight>D.height||S.scrollWidth>D.width}}class Qe{constructor(E,S,D,P){this._scrollDispatcher=E,this._ngZone=S,this._viewportRuler=D,this._config=P,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(E){this._overlayRef=E}enable(){if(this._scrollSubscription)return;const E=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=E.subscribe(()=>{const S=this._viewportRuler.getViewportScrollPosition().top;Math.abs(S-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=E.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class me{enable(){}disable(){}attach(){}}function z(Pe,E){return E.some(S=>Pe.bottomS.bottom||Pe.rightS.right)}function Q(Pe,E){return E.some(S=>Pe.topS.bottom||Pe.leftS.right)}class pe{constructor(E,S,D,P){this._scrollDispatcher=E,this._viewportRuler=S,this._ngZone=D,this._config=P,this._scrollSubscription=null}attach(E){this._overlayRef=E}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const S=this._overlayRef.overlayElement.getBoundingClientRect(),{width:D,height:P}=this._viewportRuler.getViewportSize();z(S,[{width:D,height:P,bottom:P,right:D,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Te=(()=>{class Pe{constructor(S,D,P,L){this._scrollDispatcher=S,this._viewportRuler=D,this._ngZone=P,this.noop=()=>new me,this.close=re=>new Qe(this._scrollDispatcher,this._ngZone,this._viewportRuler,re),this.block=()=>new et(this._viewportRuler,this._document),this.reposition=re=>new pe(this._scrollDispatcher,this._viewportRuler,this._ngZone,re),this._document=L}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.mF),g.LFG(c.rL),g.LFG(g.R0b),g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class Ne{constructor(E){if(this.scrollStrategy=new me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,E){const S=Object.keys(E);for(const D of S)void 0!==E[D]&&(this[D]=E[D])}}}class xe{constructor(E,S){this.connectionPair=E,this.scrollableViewProperties=S}}class Fe{constructor(E,S,D,P,L,re,be,Ue,ze){this._portalOutlet=E,this._host=S,this._pane=D,this._config=P,this._ngZone=L,this._keyboardDispatcher=re,this._document=be,this._location=Ue,this._outsideClickDispatcher=ze,this._backdropElement=null,this._backdropClick=new Ce.x,this._attachments=new Ce.x,this._detachments=new Ce.x,this._locationChanges=ue.w0.EMPTY,this._backdropClickHandler=_t=>this._backdropClick.next(_t),this._keydownEvents=new Ce.x,this._outsidePointerEvents=new Ce.x,P.scrollStrategy&&(this._scrollStrategy=P.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=P.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(E){let S=this._portalOutlet.attach(E);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),S}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const E=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),E}dispose(){var E;const S=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(E=this._host)||void 0===E||E.remove(),this._previousHostParent=this._pane=this._host=null,S&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(E){E!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=E,this.hasAttached()&&(E.attach(this),this.updatePosition()))}updateSize(E){this._config=Object.assign(Object.assign({},this._config),E),this._updateElementSize()}setDirection(E){this._config=Object.assign(Object.assign({},this._config),{direction:E}),this._updateElementDirection()}addPanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!0)}removePanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!1)}getDirection(){const E=this._config.direction;return E?"string"==typeof E?E:E.value:"ltr"}updateScrollStrategy(E){E!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=E,this.hasAttached()&&(E.attach(this),E.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const E=this._pane.style;E.width=(0,Y.HM)(this._config.width),E.height=(0,Y.HM)(this._config.height),E.minWidth=(0,Y.HM)(this._config.minWidth),E.minHeight=(0,Y.HM)(this._config.minHeight),E.maxWidth=(0,Y.HM)(this._config.maxWidth),E.maxHeight=(0,Y.HM)(this._config.maxHeight)}_togglePointerEvents(E){this._pane.style.pointerEvents=E?"":"none"}_attachBackdrop(){const E="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(E)})}):this._backdropElement.classList.add(E)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const E=this._backdropElement;if(!E)return;let S;const D=()=>{E&&(E.removeEventListener("click",this._backdropClickHandler),E.removeEventListener("transitionend",D),this._disposeBackdrop(E)),this._config.backdropClass&&this._toggleClasses(E,this._config.backdropClass,!1),clearTimeout(S)};E.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{E.addEventListener("transitionend",D)}),E.style.pointerEvents="none",S=this._ngZone.runOutsideAngular(()=>setTimeout(D,500))}_toggleClasses(E,S,D){const P=(0,Y.Eq)(S||[]).filter(L=>!!L);P.length&&(D?E.classList.add(...P):E.classList.remove(...P))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const E=this._ngZone.onStable.pipe((0,ke.R)((0,te.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),E.unsubscribe())})})}_disposeScrollStrategy(){const E=this._scrollStrategy;E&&(E.disable(),E.detach&&E.detach())}_disposeBackdrop(E){E&&(E.remove(),this._backdropElement===E&&(this._backdropElement=null))}}let Ct=(()=>{class Pe{constructor(S,D){this._platform=D,this._document=S}ngOnDestroy(){var S;null===(S=this._containerElement)||void 0===S||S.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const S="cdk-overlay-container";if(this._platform.isBrowser||(0,ce.Oy)()){const P=this._document.querySelectorAll(`.${S}[platform="server"], .${S}[platform="test"]`);for(let L=0;L{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const E=this._originRect,S=this._overlayRect,D=this._viewportRect,P=this._containerRect,L=[];let re;for(let be of this._preferredPositions){let Ue=this._getOriginPoint(E,P,be),ze=this._getOverlayPoint(Ue,S,be),_t=this._getOverlayFit(ze,S,D,be);if(_t.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(be,Ue);this._canFitWithFlexibleDimensions(_t,ze,D)?L.push({position:be,origin:Ue,overlayRect:S,boundingBoxRect:this._calculateBoundingBoxRect(Ue,be)}):(!re||re.overlayFit.visibleArea<_t.visibleArea)&&(re={overlayFit:_t,overlayPoint:ze,originPoint:Ue,position:be,overlayRect:S})}if(L.length){let be=null,Ue=-1;for(const ze of L){const _t=ze.boundingBoxRect.width*ze.boundingBoxRect.height*(ze.position.weight||1);_t>Ue&&(Ue=_t,be=ze)}return this._isPushed=!1,void this._applyPosition(be.position,be.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(re.position,re.originPoint);this._applyPosition(re.position,re.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const E=this._lastPosition;if(E){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const S=this._getOriginPoint(this._originRect,this._containerRect,E);this._applyPosition(E,S)}else this.apply()}withScrollableContainers(E){return this._scrollables=E,this}withPositions(E){return this._preferredPositions=E,-1===E.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(E){return this._viewportMargin=E,this}withFlexibleDimensions(E=!0){return this._hasFlexibleDimensions=E,this}withGrowAfterOpen(E=!0){return this._growAfterOpen=E,this}withPush(E=!0){return this._canPush=E,this}withLockedPosition(E=!0){return this._positionLocked=E,this}setOrigin(E){return this._origin=E,this}withDefaultOffsetX(E){return this._offsetX=E,this}withDefaultOffsetY(E){return this._offsetY=E,this}withTransformOriginOn(E){return this._transformOriginSelector=E,this}_getOriginPoint(E,S,D){let P,L;if("center"==D.originX)P=E.left+E.width/2;else{const re=this._isRtl()?E.right:E.left,be=this._isRtl()?E.left:E.right;P="start"==D.originX?re:be}return S.left<0&&(P-=S.left),L="center"==D.originY?E.top+E.height/2:"top"==D.originY?E.top:E.bottom,S.top<0&&(L-=S.top),{x:P,y:L}}_getOverlayPoint(E,S,D){let P,L;return P="center"==D.overlayX?-S.width/2:"start"===D.overlayX?this._isRtl()?-S.width:0:this._isRtl()?0:-S.width,L="center"==D.overlayY?-S.height/2:"top"==D.overlayY?0:-S.height,{x:E.x+P,y:E.y+L}}_getOverlayFit(E,S,D,P){const L=Pt(S);let{x:re,y:be}=E,Ue=this._getOffset(P,"x"),ze=this._getOffset(P,"y");Ue&&(re+=Ue),ze&&(be+=ze);let Ot=0-be,nn=be+L.height-D.height,Yt=this._subtractOverflows(L.width,0-re,re+L.width-D.width),dn=this._subtractOverflows(L.height,Ot,nn),dt=Yt*dn;return{visibleArea:dt,isCompletelyWithinViewport:L.width*L.height===dt,fitsInViewportVertically:dn===L.height,fitsInViewportHorizontally:Yt==L.width}}_canFitWithFlexibleDimensions(E,S,D){if(this._hasFlexibleDimensions){const P=D.bottom-S.y,L=D.right-S.x,re=Wt(this._overlayRef.getConfig().minHeight),be=Wt(this._overlayRef.getConfig().minWidth),ze=E.fitsInViewportHorizontally||null!=be&&be<=L;return(E.fitsInViewportVertically||null!=re&&re<=P)&&ze}return!1}_pushOverlayOnScreen(E,S,D){if(this._previousPushAmount&&this._positionLocked)return{x:E.x+this._previousPushAmount.x,y:E.y+this._previousPushAmount.y};const P=Pt(S),L=this._viewportRect,re=Math.max(E.x+P.width-L.width,0),be=Math.max(E.y+P.height-L.height,0),Ue=Math.max(L.top-D.top-E.y,0),ze=Math.max(L.left-D.left-E.x,0);let _t=0,ct=0;return _t=P.width<=L.width?ze||-re:E.xYt&&!this._isInitialRender&&!this._growAfterOpen&&(re=E.y-Yt/2)}if("end"===S.overlayX&&!P||"start"===S.overlayX&&P)Ot=D.width-E.x+this._viewportMargin,_t=E.x-this._viewportMargin;else if("start"===S.overlayX&&!P||"end"===S.overlayX&&P)ct=E.x,_t=D.right-E.x;else{const nn=Math.min(D.right-E.x+D.left,E.x),Yt=this._lastBoundingBoxSize.width;_t=2*nn,ct=E.x-nn,_t>Yt&&!this._isInitialRender&&!this._growAfterOpen&&(ct=E.x-Yt/2)}return{top:re,left:ct,bottom:be,right:Ot,width:_t,height:L}}_setBoundingBoxStyles(E,S){const D=this._calculateBoundingBoxRect(E,S);!this._isInitialRender&&!this._growAfterOpen&&(D.height=Math.min(D.height,this._lastBoundingBoxSize.height),D.width=Math.min(D.width,this._lastBoundingBoxSize.width));const P={};if(this._hasExactPosition())P.top=P.left="0",P.bottom=P.right=P.maxHeight=P.maxWidth="",P.width=P.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,re=this._overlayRef.getConfig().maxWidth;P.height=(0,Y.HM)(D.height),P.top=(0,Y.HM)(D.top),P.bottom=(0,Y.HM)(D.bottom),P.width=(0,Y.HM)(D.width),P.left=(0,Y.HM)(D.left),P.right=(0,Y.HM)(D.right),P.alignItems="center"===S.overlayX?"center":"end"===S.overlayX?"flex-end":"flex-start",P.justifyContent="center"===S.overlayY?"center":"bottom"===S.overlayY?"flex-end":"flex-start",L&&(P.maxHeight=(0,Y.HM)(L)),re&&(P.maxWidth=(0,Y.HM)(re))}this._lastBoundingBoxSize=D,Rt(this._boundingBox.style,P)}_resetBoundingBoxStyles(){Rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(E,S){const D={},P=this._hasExactPosition(),L=this._hasFlexibleDimensions,re=this._overlayRef.getConfig();if(P){const _t=this._viewportRuler.getViewportScrollPosition();Rt(D,this._getExactOverlayY(S,E,_t)),Rt(D,this._getExactOverlayX(S,E,_t))}else D.position="static";let be="",Ue=this._getOffset(S,"x"),ze=this._getOffset(S,"y");Ue&&(be+=`translateX(${Ue}px) `),ze&&(be+=`translateY(${ze}px)`),D.transform=be.trim(),re.maxHeight&&(P?D.maxHeight=(0,Y.HM)(re.maxHeight):L&&(D.maxHeight="")),re.maxWidth&&(P?D.maxWidth=(0,Y.HM)(re.maxWidth):L&&(D.maxWidth="")),Rt(this._pane.style,D)}_getExactOverlayY(E,S,D){let P={top:"",bottom:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),"bottom"===E.overlayY?P.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":P.top=(0,Y.HM)(L.y),P}_getExactOverlayX(E,S,D){let re,P={left:"",right:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),re=this._isRtl()?"end"===E.overlayX?"left":"right":"end"===E.overlayX?"right":"left","right"===re?P.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":P.left=(0,Y.HM)(L.x),P}_getScrollVisibility(){const E=this._getOriginRect(),S=this._pane.getBoundingClientRect(),D=this._scrollables.map(P=>P.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Q(E,D),isOriginOutsideView:z(E,D),isOverlayClipped:Q(S,D),isOverlayOutsideView:z(S,D)}}_subtractOverflows(E,...S){return S.reduce((D,P)=>D-Math.max(P,0),E)}_getNarrowedViewportRect(){const E=this._document.documentElement.clientWidth,S=this._document.documentElement.clientHeight,D=this._viewportRuler.getViewportScrollPosition();return{top:D.top+this._viewportMargin,left:D.left+this._viewportMargin,right:D.left+E-this._viewportMargin,bottom:D.top+S-this._viewportMargin,width:E-2*this._viewportMargin,height:S-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(E,S){return"x"===S?null==E.offsetX?this._offsetX:E.offsetX:null==E.offsetY?this._offsetY:E.offsetY}_validatePositions(){}_addPanelClasses(E){this._pane&&(0,Y.Eq)(E).forEach(S=>{""!==S&&-1===this._appliedPanelClasses.indexOf(S)&&(this._appliedPanelClasses.push(S),this._pane.classList.add(S))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(E=>{this._pane.classList.remove(E)}),this._appliedPanelClasses=[])}_getOriginRect(){const E=this._origin;if(E instanceof g.SBq)return E.nativeElement.getBoundingClientRect();if(E instanceof Element)return E.getBoundingClientRect();const S=E.width||0,D=E.height||0;return{top:E.y,bottom:E.y+D,left:E.x,right:E.x+S,height:D,width:S}}}function Rt(Pe,E){for(let S in E)E.hasOwnProperty(S)&&(Pe[S]=E[S]);return Pe}function Wt(Pe){if("number"!=typeof Pe&&null!=Pe){const[E,S]=Pe.split(Jt);return S&&"px"!==S?null:parseFloat(E)}return Pe||null}function Pt(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const mn="cdk-global-overlay-wrapper";class Ut{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(E){const S=E.getConfig();this._overlayRef=E,this._width&&!S.width&&E.updateSize({width:this._width}),this._height&&!S.height&&E.updateSize({height:this._height}),E.hostElement.classList.add(mn),this._isDisposed=!1}top(E=""){return this._bottomOffset="",this._topOffset=E,this._alignItems="flex-start",this}left(E=""){return this._rightOffset="",this._leftOffset=E,this._justifyContent="flex-start",this}bottom(E=""){return this._topOffset="",this._bottomOffset=E,this._alignItems="flex-end",this}right(E=""){return this._leftOffset="",this._rightOffset=E,this._justifyContent="flex-end",this}width(E=""){return this._overlayRef?this._overlayRef.updateSize({width:E}):this._width=E,this}height(E=""){return this._overlayRef?this._overlayRef.updateSize({height:E}):this._height=E,this}centerHorizontally(E=""){return this.left(E),this._justifyContent="center",this}centerVertically(E=""){return this.top(E),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement.style,D=this._overlayRef.getConfig(),{width:P,height:L,maxWidth:re,maxHeight:be}=D,Ue=!("100%"!==P&&"100vw"!==P||re&&"100%"!==re&&"100vw"!==re),ze=!("100%"!==L&&"100vh"!==L||be&&"100%"!==be&&"100vh"!==be);E.position=this._cssPosition,E.marginLeft=Ue?"0":this._leftOffset,E.marginTop=ze?"0":this._topOffset,E.marginBottom=this._bottomOffset,E.marginRight=this._rightOffset,Ue?S.justifyContent="flex-start":"center"===this._justifyContent?S.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?S.justifyContent="flex-end":"flex-end"===this._justifyContent&&(S.justifyContent="flex-start"):S.justifyContent=this._justifyContent,S.alignItems=ze?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement,D=S.style;S.classList.remove(mn),D.justifyContent=D.alignItems=E.marginTop=E.marginBottom=E.marginLeft=E.marginRight=E.position="",this._overlayRef=null,this._isDisposed=!0}}let xt=(()=>{class Pe{constructor(S,D,P,L){this._viewportRuler=S,this._document=D,this._platform=P,this._overlayContainer=L}global(){return new Ut}flexibleConnectedTo(S){return new yt(S,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.rL),g.LFG(o.K0),g.LFG(ce.t4),g.LFG(Ct))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),on=(()=>{class Pe{constructor(S){this._attachedOverlays=[],this._document=S}ngOnDestroy(){this.detach()}add(S){this.remove(S),this._attachedOverlays.push(S)}remove(S){const D=this._attachedOverlays.indexOf(S);D>-1&&this._attachedOverlays.splice(D,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Xe=(()=>{class Pe extends on{constructor(S,D){super(S),this._ngZone=D,this._keydownListener=P=>{const L=this._attachedOverlays;for(let re=L.length-1;re>-1;re--)if(L[re]._keydownEvents.observers.length>0){const be=L[re]._keydownEvents;this._ngZone?this._ngZone.run(()=>be.next(P)):be.next(P);break}}}add(S){super.add(S),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),je=(()=>{class Pe extends on{constructor(S,D,P){super(S),this._platform=D,this._ngZone=P,this._cursorStyleIsSet=!1,this._pointerDownListener=L=>{this._pointerDownEventTarget=(0,ce.sA)(L)},this._clickListener=L=>{const re=(0,ce.sA)(L),be="click"===L.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:re;this._pointerDownEventTarget=null;const Ue=this._attachedOverlays.slice();for(let ze=Ue.length-1;ze>-1;ze--){const _t=Ue[ze];if(_t._outsidePointerEvents.observers.length<1||!_t.hasAttached())continue;if(_t.overlayElement.contains(re)||_t.overlayElement.contains(be))break;const ct=_t._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ct.next(L)):ct.next(L)}}}add(S){if(super.add(S),!this._isAttached){const D=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(D)):this._addEventListeners(D),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=D.style.cursor,D.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const S=this._document.body;S.removeEventListener("pointerdown",this._pointerDownListener,!0),S.removeEventListener("click",this._clickListener,!0),S.removeEventListener("auxclick",this._clickListener,!0),S.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(S.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(S){S.addEventListener("pointerdown",this._pointerDownListener,!0),S.addEventListener("click",this._clickListener,!0),S.addEventListener("auxclick",this._clickListener,!0),S.addEventListener("contextmenu",this._clickListener,!0)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(ce.t4),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),J=0,K=(()=>{class Pe{constructor(S,D,P,L,re,be,Ue,ze,_t,ct,Ot){this.scrollStrategies=S,this._overlayContainer=D,this._componentFactoryResolver=P,this._positionBuilder=L,this._keyboardDispatcher=re,this._injector=be,this._ngZone=Ue,this._document=ze,this._directionality=_t,this._location=ct,this._outsideClickDispatcher=Ot}create(S){const D=this._createHostElement(),P=this._createPaneElement(D),L=this._createPortalOutlet(P),re=new Ne(S);return re.direction=re.direction||this._directionality.value,new Fe(L,D,P,re,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(S){const D=this._document.createElement("div");return D.id="cdk-overlay-"+J++,D.classList.add("cdk-overlay-pane"),S.appendChild(D),D}_createHostElement(){const S=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(S),S}_createPortalOutlet(S){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new De.u0(S,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(Te),g.LFG(Ct),g.LFG(g._Vd),g.LFG(xt),g.LFG(Xe),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(o.K0),g.LFG(q.Is),g.LFG(o.Ye),g.LFG(je))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const He=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ge=new g.OlP("cdk-connected-overlay-scroll-strategy");let lt=(()=>{class Pe{constructor(S){this.elementRef=S}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(g.SBq))},Pe.\u0275dir=g.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pe})(),St=(()=>{class Pe{constructor(S,D,P,L,re){this._overlay=S,this._dir=re,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ue.w0.EMPTY,this._attachSubscription=ue.w0.EMPTY,this._detachSubscription=ue.w0.EMPTY,this._positionSubscription=ue.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new g.vpe,this.positionChange=new g.vpe,this.attach=new g.vpe,this.detach=new g.vpe,this.overlayKeydown=new g.vpe,this.overlayOutsideClick=new g.vpe,this._templatePortal=new De.UE(D,P),this._scrollStrategyFactory=L,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(S){this._offsetX=S,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(S){this._offsetY=S,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(S){this._hasBackdrop=(0,Y.Ig)(S)}get lockPosition(){return this._lockPosition}set lockPosition(S){this._lockPosition=(0,Y.Ig)(S)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(S){this._flexibleDimensions=(0,Y.Ig)(S)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(S){this._growAfterOpen=(0,Y.Ig)(S)}get push(){return this._push}set push(S){this._push=(0,Y.Ig)(S)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(S){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),S.origin&&this.open&&this._position.apply()),S.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=He);const S=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=S.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=S.detachments().subscribe(()=>this.detach.emit()),S.keydownEvents().subscribe(D=>{this.overlayKeydown.next(D),D.keyCode===Be.hY&&!this.disableClose&&!(0,Be.Vb)(D)&&(D.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(D=>{this.overlayOutsideClick.next(D)})}_buildConfig(){const S=this._position=this.positionStrategy||this._createPositionStrategy(),D=new Ne({direction:this._dir,positionStrategy:S,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(D.width=this.width),(this.height||0===this.height)&&(D.height=this.height),(this.minWidth||0===this.minWidth)&&(D.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(D.minHeight=this.minHeight),this.backdropClass&&(D.backdropClass=this.backdropClass),this.panelClass&&(D.panelClass=this.panelClass),D}_updatePositionStrategy(S){const D=this.positions.map(P=>({originX:P.originX,originY:P.originY,overlayX:P.overlayX,overlayY:P.overlayY,offsetX:P.offsetX||this.offsetX,offsetY:P.offsetY||this.offsetY,panelClass:P.panelClass||void 0}));return S.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(D).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const S=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(S),S}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof lt?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(S=>{this.backdropClick.emit(S)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function X(Pe,E=!1){return(0,se.e)((S,D)=>{let P=0;S.subscribe((0,de.x)(D,L=>{const re=Pe(L,P++);(re||E)&&D.next(L),!re&&D.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(S=>{this.positionChange.emit(S),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(K),g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Ge),g.Y36(q.Is,8))},Pe.\u0275dir=g.lG2({type:Pe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[g.TTD]}),Pe})();const bt={provide:Ge,deps:[K],useFactory:function Ht(Pe){return()=>Pe.scrollStrategies.reposition()}};let Nt=(()=>{class Pe{}return Pe.\u0275fac=function(S){return new(S||Pe)},Pe.\u0275mod=g.oAB({type:Pe}),Pe.\u0275inj=g.cJS({providers:[K,bt],imports:[[q.vT,De.eL,c.Cl],c.Cl]}),Pe})()},925:(qe,ye,C)=>{C.d(ye,{t4:()=>Y,sA:()=>Qe,ht:()=>Ye,kV:()=>et,Oy:()=>me,qK:()=>Ce,i$:()=>se,Mq:()=>le});var c=C(4893),o=C(9808);let g;try{g="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(z){g=!1}let q,Y=(()=>{class z{constructor(pe){this._platformId=pe,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!g)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return z.\u0275fac=function(pe){return new(pe||z)(c.LFG(c.Lbi))},z.\u0275prov=c.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const De=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ce(){if(q)return q;if("object"!=typeof document||!document)return q=new Set(De),q;let z=document.createElement("input");return q=new Set(De.filter(Q=>(z.setAttribute("type",Q),z.type===Q))),q}let ue,X,Be;function se(z){return function te(){if(null==ue&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ue=!0}))}finally{ue=ue||!1}return ue}()?z:!!z.capture}function le(){if(null==X){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return X=!1,X;if("scrollBehavior"in document.documentElement.style)X=!0;else{const z=Element.prototype.scrollTo;X=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return X}function et(z){if(function Z(){if(null==Be){const z="undefined"!=typeof document?document.head:null;Be=!(!z||!z.createShadowRoot&&!z.attachShadow)}return Be}()){const Q=z.getRootNode?z.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function Ye(){let z="undefined"!=typeof document&&document?document.activeElement:null;for(;z&&z.shadowRoot;){const Q=z.shadowRoot.activeElement;if(Q===z)break;z=Q}return z}function Qe(z){return z.composedPath?z.composedPath()[0]:z.target}function me(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(qe,ye,C)=>{C.d(ye,{en:()=>X,Pl:()=>Ye,C5:()=>te,u0:()=>ke,eL:()=>me,UE:()=>se});var c=C(4893),o=C(9808);class ue{attach(pe){return this._attachedHost=pe,pe.attach(this)}detach(){let pe=this._attachedHost;null!=pe&&(this._attachedHost=null,pe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(pe){this._attachedHost=pe}}class te extends ue{constructor(pe,Te,Ne,ve){super(),this.component=pe,this.viewContainerRef=Te,this.injector=Ne,this.componentFactoryResolver=ve}}class se extends ue{constructor(pe,Te,Ne){super(),this.templateRef=pe,this.viewContainerRef=Te,this.context=Ne}get origin(){return this.templateRef.elementRef}attach(pe,Te=this.context){return this.context=Te,super.attach(pe)}detach(){return this.context=void 0,super.detach()}}class de extends ue{constructor(pe){super(),this.element=pe instanceof c.SBq?pe.nativeElement:pe}}class X{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(pe){return pe instanceof te?(this._attachedPortal=pe,this.attachComponentPortal(pe)):pe instanceof se?(this._attachedPortal=pe,this.attachTemplatePortal(pe)):this.attachDomPortal&&pe instanceof de?(this._attachedPortal=pe,this.attachDomPortal(pe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(pe){this._disposeFn=pe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ke extends X{constructor(pe,Te,Ne,ve,Me){super(),this.outletElement=pe,this._componentFactoryResolver=Te,this._appRef=Ne,this._defaultInjector=ve,this.attachDomPortal=xe=>{const Ae=xe.element,tt=this._document.createComment("dom-portal");Ae.parentNode.insertBefore(tt,Ae),this.outletElement.appendChild(Ae),this._attachedPortal=xe,super.setDisposeFn(()=>{tt.parentNode&&tt.parentNode.replaceChild(Ae,tt)})},this._document=Me}attachComponentPortal(pe){const Ne=(pe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(pe.component);let ve;return pe.viewContainerRef?(ve=pe.viewContainerRef.createComponent(Ne,pe.viewContainerRef.length,pe.injector||pe.viewContainerRef.injector),this.setDisposeFn(()=>ve.destroy())):(ve=Ne.create(pe.injector||this._defaultInjector),this._appRef.attachView(ve.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ve.hostView),ve.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ve)),this._attachedPortal=pe,ve}attachTemplatePortal(pe){let Te=pe.viewContainerRef,Ne=Te.createEmbeddedView(pe.templateRef,pe.context);return Ne.rootNodes.forEach(ve=>this.outletElement.appendChild(ve)),Ne.detectChanges(),this.setDisposeFn(()=>{let ve=Te.indexOf(Ne);-1!==ve&&Te.remove(ve)}),this._attachedPortal=pe,Ne}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(pe){return pe.hostView.rootNodes[0]}}let Ye=(()=>{class Q extends X{constructor(Te,Ne,ve){super(),this._componentFactoryResolver=Te,this._viewContainerRef=Ne,this._isInitialized=!1,this.attached=new c.vpe,this.attachDomPortal=Me=>{const xe=Me.element,Ae=this._document.createComment("dom-portal");Me.setAttachedHost(this),xe.parentNode.insertBefore(Ae,xe),this._getRootNode().appendChild(xe),this._attachedPortal=Me,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(xe,Ae)})},this._document=ve}get portal(){return this._attachedPortal}set portal(Te){this.hasAttached()&&!Te&&!this._isInitialized||(this.hasAttached()&&super.detach(),Te&&super.attach(Te),this._attachedPortal=Te||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Te){Te.setAttachedHost(this);const Ne=null!=Te.viewContainerRef?Te.viewContainerRef:this._viewContainerRef,Me=(Te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Te.component),xe=Ne.createComponent(Me,Ne.length,Te.injector||Ne.injector);return Ne!==this._viewContainerRef&&this._getRootNode().appendChild(xe.hostView.rootNodes[0]),super.setDisposeFn(()=>xe.destroy()),this._attachedPortal=Te,this._attachedRef=xe,this.attached.emit(xe),xe}attachTemplatePortal(Te){Te.setAttachedHost(this);const Ne=this._viewContainerRef.createEmbeddedView(Te.templateRef,Te.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Te,this._attachedRef=Ne,this.attached.emit(Ne),Ne}_getRootNode(){const Te=this._viewContainerRef.element.nativeElement;return Te.nodeType===Te.ELEMENT_NODE?Te:Te.parentNode}}return Q.\u0275fac=function(Te){return new(Te||Q)(c.Y36(c._Vd),c.Y36(c.s_b),c.Y36(o.K0))},Q.\u0275dir=c.lG2({type:Q,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[c.qOj]}),Q})(),me=(()=>{class Q{}return Q.\u0275fac=function(Te){return new(Te||Q)},Q.\u0275mod=c.oAB({type:Q}),Q.\u0275inj=c.cJS({}),Q})()},495:(qe,ye,C)=>{C.d(ye,{ZD:()=>on,mF:()=>mt,Cl:()=>Xe,rL:()=>Rt});var c=C(3191),o=C(4893),g=C(4408),Y=C(727);const ce={schedule(je){let J=requestAnimationFrame,K=cancelAnimationFrame;const{delegate:He}=ce;He&&(J=He.requestAnimationFrame,K=He.cancelAnimationFrame);const Ge=J(lt=>{K=void 0,je(lt)});return new Y.w0(()=>null==K?void 0:K(Ge))},requestAnimationFrame(...je){const{delegate:J}=ce;return((null==J?void 0:J.requestAnimationFrame)||requestAnimationFrame)(...je)},cancelAnimationFrame(...je){const{delegate:J}=ce;return((null==J?void 0:J.cancelAnimationFrame)||cancelAnimationFrame)(...je)},delegate:void 0};var De=C(640);new class Ce extends De.v{flush(J){this._active=!0;const K=this._scheduled;this._scheduled=void 0;const{actions:He}=this;let Ge;J=J||He.shift();do{if(Ge=J.execute(J.state,J.delay))break}while((J=He[0])&&J.id===K&&He.shift());if(this._active=!1,Ge){for(;(J=He[0])&&J.id===K&&He.shift();)J.unsubscribe();throw Ge}}}(class q extends g.o{constructor(J,K){super(J,K),this.scheduler=J,this.work=K}requestAsyncId(J,K,He=0){return null!==He&&He>0?super.requestAsyncId(J,K,He):(J.actions.push(this),J._scheduled||(J._scheduled=ce.requestAnimationFrame(()=>J.flush(void 0))))}recycleAsyncId(J,K,He=0){if(null!=He&&He>0||null==He&&this.delay>0)return super.recycleAsyncId(J,K,He);J.actions.some(Ge=>Ge.id===K)||(ce.cancelAnimationFrame(K),J._scheduled=void 0)}});var se=C(7579),de=C(9646),X=C(8306),le=C(4968),Be=(C(3101),C(4986)),Z=C(4482),et=C(8421),Ye=C(5403),me=C(5963);function z(je,J=Be.z){return function Qe(je){return(0,Z.e)((J,K)=>{let He=!1,Ge=null,lt=null,St=!1;const Ht=()=>{if(null==lt||lt.unsubscribe(),lt=null,He){He=!1;const Nt=Ge;Ge=null,K.next(Nt)}St&&K.complete()},bt=()=>{lt=null,St&&K.complete()};J.subscribe((0,Ye.x)(K,Nt=>{He=!0,Ge=Nt,lt||(0,et.Xf)(je(Nt)).subscribe(lt=(0,Ye.x)(K,Ht,bt))},()=>{St=!0,(!He||!lt||lt.closed)&&K.complete()}))})}(()=>(0,me.H)(je,J))}var Q=C(9300),pe=C(9808),Te=C(925),Ne=C(226);let mt=(()=>{class je{constructor(K,He,Ge){this._ngZone=K,this._platform=He,this._scrolled=new se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ge}register(K){this.scrollContainers.has(K)||this.scrollContainers.set(K,K.elementScrolled().subscribe(()=>this._scrolled.next(K)))}deregister(K){const He=this.scrollContainers.get(K);He&&(He.unsubscribe(),this.scrollContainers.delete(K))}scrolled(K=20){return this._platform.isBrowser?new X.y(He=>{this._globalSubscription||this._addGlobalListener();const Ge=K>0?this._scrolled.pipe(z(K)).subscribe(He):this._scrolled.subscribe(He);return this._scrolledCount++,()=>{Ge.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,de.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((K,He)=>this.deregister(He)),this._scrolled.complete()}ancestorScrolled(K,He){const Ge=this.getAncestorScrollContainers(K);return this.scrolled(He).pipe((0,Q.h)(lt=>!lt||Ge.indexOf(lt)>-1))}getAncestorScrollContainers(K){const He=[];return this.scrollContainers.forEach((Ge,lt)=>{this._scrollableContainsElement(lt,K)&&He.push(lt)}),He}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(K,He){let Ge=(0,c.fI)(He),lt=K.getElementRef().nativeElement;do{if(Ge==lt)return!0}while(Ge=Ge.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const K=this._getWindow();return(0,le.R)(K.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return je.\u0275fac=function(K){return new(K||je)(o.LFG(o.R0b),o.LFG(Te.t4),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),Rt=(()=>{class je{constructor(K,He,Ge){this._platform=K,this._change=new se.x,this._changeListener=lt=>{this._change.next(lt)},this._document=Ge,He.runOutsideAngular(()=>{if(K.isBrowser){const lt=this._getWindow();lt.addEventListener("resize",this._changeListener),lt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const K=this._getWindow();K.removeEventListener("resize",this._changeListener),K.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const K={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),K}getViewportRect(){const K=this.getViewportScrollPosition(),{width:He,height:Ge}=this.getViewportSize();return{top:K.top,left:K.left,bottom:K.top+Ge,right:K.left+He,height:Ge,width:He}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const K=this._document,He=this._getWindow(),Ge=K.documentElement,lt=Ge.getBoundingClientRect();return{top:-lt.top||K.body.scrollTop||He.scrollY||Ge.scrollTop||0,left:-lt.left||K.body.scrollLeft||He.scrollX||Ge.scrollLeft||0}}change(K=20){return K>0?this._change.pipe(z(K)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const K=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:K.innerWidth,height:K.innerHeight}:{width:0,height:0}}}return je.\u0275fac=function(K){return new(K||je)(o.LFG(Te.t4),o.LFG(o.R0b),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),on=(()=>{class je{}return je.\u0275fac=function(K){return new(K||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({}),je})(),Xe=(()=>{class je{}return je.\u0275fac=function(K){return new(K||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({imports:[[Ne.vT,on],Ne.vT,on]}),je})()},9808:(qe,ye,C)=>{C.d(ye,{mr:()=>Ye,Ov:()=>fr,ez:()=>Nr,K0:()=>De,Do:()=>me,V_:()=>te,Ye:()=>z,S$:()=>Z,mk:()=>tn,sg:()=>jt,O5:()=>Si,RF:()=>Nn,n9:()=>Xn,ED:()=>un,b0:()=>Qe,lw:()=>Ce,EM:()=>Tn,JF:()=>Pi,NF:()=>Ii,w_:()=>q,bD:()=>zi,q:()=>g,Mx:()=>ci,HT:()=>ce});var c=C(4893);let o=null;function g(){return o}function ce(A){o||(o=A)}class q{}const De=new c.OlP("DocumentToken");let Ce=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function ue(){return(0,c.LFG)(se)}()},providedIn:"platform"}),A})();const te=new c.OlP("Location Initialized");let se=(()=>{class A extends Ce{constructor(T){super(),this._doc=T,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("popstate",T,!1),()=>H.removeEventListener("popstate",T)}onHashChange(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("hashchange",T,!1),()=>H.removeEventListener("hashchange",T)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(T){this.location.pathname=T}pushState(T,H,ae){de()?this._history.pushState(T,H,ae):this.location.hash=ae}replaceState(T,H,ae){de()?this._history.replaceState(T,H,ae):this.location.hash=ae}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(De))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function X(){return new se((0,c.LFG)(De))}()},providedIn:"platform"}),A})();function de(){return!!window.history.pushState}function le(A,N){if(0==A.length)return N;if(0==N.length)return A;let T=0;return A.endsWith("/")&&T++,N.startsWith("/")&&T++,2==T?A+N.substring(1):1==T?A+N:A+"/"+N}function ke(A){const N=A.match(/#|\?|$/),T=N&&N.index||A.length;return A.slice(0,T-("/"===A[T-1]?1:0))+A.slice(T)}function Be(A){return A&&"?"!==A[0]?"?"+A:A}let Z=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function et(A){const N=(0,c.LFG)(De).location;return new Qe((0,c.LFG)(Ce),N&&N.origin||"")}()},providedIn:"root"}),A})();const Ye=new c.OlP("appBaseHref");let Qe=(()=>{class A extends Z{constructor(T,H){if(super(),this._platformLocation=T,this._removeListenerFns=[],null==H&&(H=this._platformLocation.getBaseHrefFromDOM()),null==H)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=H}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return le(this._baseHref,T)}path(T=!1){const H=this._platformLocation.pathname+Be(this._platformLocation.search),ae=this._platformLocation.hash;return ae&&T?`${H}${ae}`:H}pushState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ce),c.LFG(Ye,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),me=(()=>{class A extends Z{constructor(T,H){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=H&&(this._baseHref=H)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let H=this._platformLocation.hash;return null==H&&(H="#"),H.length>0?H.substring(1):H}prepareExternalUrl(T){const H=le(this._baseHref,T);return H.length>0?"#"+H:H}pushState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ce),c.LFG(Ye,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),z=(()=>{class A{constructor(T,H){this._subject=new c.vpe,this._urlChangeListeners=[],this._platformStrategy=T;const ae=this._platformStrategy.getBaseHref();this._platformLocation=H,this._baseHref=ke(Te(ae)),this._platformStrategy.onPopState($e=>{this._subject.emit({url:this.path(!0),pop:!0,state:$e.state,type:$e.type})})}path(T=!1){return this.normalize(this._platformStrategy.path(T))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(T,H=""){return this.path()==this.normalize(T+Be(H))}normalize(T){return A.stripTrailingSlash(function pe(A,N){return A&&N.startsWith(A)?N.substring(A.length):N}(this._baseHref,Te(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._platformStrategy.prepareExternalUrl(T)}go(T,H="",ae=null){this._platformStrategy.pushState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}replaceState(T,H="",ae=null){this._platformStrategy.replaceState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformStrategy).historyGo)||void 0===ae||ae.call(H,T)}onUrlChange(T){this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(H=>{this._notifyUrlChangeListeners(H.url,H.state)}))}_notifyUrlChangeListeners(T="",H){this._urlChangeListeners.forEach(ae=>ae(T,H))}subscribe(T,H,ae){return this._subject.subscribe({next:T,error:H,complete:ae})}}return A.normalizeQueryParams=Be,A.joinWithSlash=le,A.stripTrailingSlash=ke,A.\u0275fac=function(T){return new(T||A)(c.LFG(Z),c.LFG(Ce))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function Q(){return new z((0,c.LFG)(Z),(0,c.LFG)(Ce))}()},providedIn:"root"}),A})();function Te(A){return A.replace(/\/index.html$/,"")}function ci(A,N){N=encodeURIComponent(N);for(const T of A.split(";")){const H=T.indexOf("="),[ae,$e]=-1==H?[T,""]:[T.slice(0,H),T.slice(H+1)];if(ae.trim()===N)return decodeURIComponent($e)}return null}let tn=(()=>{class A{constructor(T,H,ae,$e){this._iterableDiffers=T,this._keyValueDiffers=H,this._ngEl=ae,this._renderer=$e,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(T){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof T?T.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(T){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof T?T.split(/\s+/):T,this._rawClass&&((0,c.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const T=this._iterableDiffer.diff(this._rawClass);T&&this._applyIterableChanges(T)}else if(this._keyValueDiffer){const T=this._keyValueDiffer.diff(this._rawClass);T&&this._applyKeyValueChanges(T)}}_applyKeyValueChanges(T){T.forEachAddedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachChangedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachRemovedItem(H=>{H.previousValue&&this._toggleClass(H.key,!1)})}_applyIterableChanges(T){T.forEachAddedItem(H=>{if("string"!=typeof H.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,c.AaK)(H.item)}`);this._toggleClass(H.item,!0)}),T.forEachRemovedItem(H=>this._toggleClass(H.item,!1))}_applyClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!0)):Object.keys(T).forEach(H=>this._toggleClass(H,!!T[H])))}_removeClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!1)):Object.keys(T).forEach(H=>this._toggleClass(H,!1)))}_toggleClass(T,H){(T=T.trim())&&T.split(/\s+/g).forEach(ae=>{H?this._renderer.addClass(this._ngEl.nativeElement,ae):this._renderer.removeClass(this._ngEl.nativeElement,ae)})}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),A})();class pi{constructor(N,T,H,ae){this.$implicit=N,this.ngForOf=T,this.index=H,this.count=ae}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let jt=(()=>{class A{constructor(T,H,ae){this._viewContainer=T,this._template=H,this._differs=ae,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const H=this._viewContainer;T.forEachOperation((ae,$e,nt)=>{if(null==ae.previousIndex)H.createEmbeddedView(this._template,new pi(ae.item,this._ngForOf,-1,-1),null===nt?void 0:nt);else if(null==nt)H.remove(null===$e?void 0:$e);else if(null!==$e){const ht=H.get($e);H.move(ht,nt),ui(ht,ae)}});for(let ae=0,$e=H.length;ae<$e;ae++){const ht=H.get(ae).context;ht.index=ae,ht.count=$e,ht.ngForOf=this._ngForOf}T.forEachIdentityChange(ae=>{ui(H.get(ae.currentIndex),ae)})}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),A})();function ui(A,N){A.context.$implicit=N.item}let Si=(()=>{class A{constructor(T,H){this._viewContainer=T,this._context=new Gn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=H}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){gn("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){gn("ngIfElse",T),this._elseTemplateRef=T,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),A})();class Gn{constructor(){this.$implicit=null,this.ngIf=null}}function gn(A,N){if(N&&!N.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,c.AaK)(N)}'.`)}class di{constructor(N,T){this._viewContainerRef=N,this._templateRef=T,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(N){N&&!this._created?this.create():!N&&this._created&&this.destroy()}}let Nn=(()=>{class A{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(T){this._ngSwitch=T,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(T){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(T)}_matchCase(T){const H=T==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||H,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),H}_updateDefaultCases(T){if(this._defaultViews&&T!==this._defaultUsed){this._defaultUsed=T;for(let H=0;H{class A{constructor(T,H,ae){this.ngSwitch=ae,ae._addCase(),this._view=new di(T,H)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),A})(),un=(()=>{class A{constructor(T,H,ae){ae._addDefault(new di(T,H))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchDefault",""]]}),A})();class ei{createSubscription(N,T){return N.subscribe({next:T,error:H=>{throw H}})}dispose(N){N.unsubscribe()}onDestroy(N){N.unsubscribe()}}class Oi{createSubscription(N,T){return N.then(T,H=>{throw H})}dispose(N){}onDestroy(N){}}const hr=new Oi,rr=new ei;let fr=(()=>{class A{constructor(T){this._ref=T,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,H=>this._updateLatestValue(T,H))}_selectStrategy(T){if((0,c.QGY)(T))return hr;if((0,c.F4k)(T))return rr;throw function On(A,N){return new c.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,H){T===this._obj&&(this._latestValue=H,this._ref.markForCheck())}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.sBO,16))},A.\u0275pipe=c.Yjl({name:"async",type:A,pure:!1}),A})(),Nr=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275mod=c.oAB({type:A}),A.\u0275inj=c.cJS({}),A})();const zi="browser";function Ii(A){return A===zi}let Tn=(()=>{class A{}return A.\u0275prov=(0,c.Yz7)({token:A,providedIn:"root",factory:()=>new Ji((0,c.LFG)(De),window)}),A})();class Ji{constructor(N,T){this.document=N,this.window=T,this.offset=()=>[0,0]}setOffset(N){this.offset=Array.isArray(N)?()=>N:N}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(N){this.supportsScrolling()&&this.window.scrollTo(N[0],N[1])}scrollToAnchor(N){if(!this.supportsScrolling())return;const T=function ni(A,N){const T=A.getElementById(N)||A.getElementsByName(N)[0];if(T)return T;if("function"==typeof A.createTreeWalker&&A.body&&(A.body.createShadowRoot||A.body.attachShadow)){const H=A.createTreeWalker(A.body,NodeFilter.SHOW_ELEMENT);let ae=H.currentNode;for(;ae;){const $e=ae.shadowRoot;if($e){const nt=$e.getElementById(N)||$e.querySelector(`[name="${N}"]`);if(nt)return nt}ae=H.nextNode()}}return null}(this.document,N);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(N){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=N)}}scrollToElement(N){const T=N.getBoundingClientRect(),H=T.left+this.window.pageXOffset,ae=T.top+this.window.pageYOffset,$e=this.offset();this.window.scrollTo(H-$e[0],ae-$e[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const N=Xi(this.window.history)||Xi(Object.getPrototypeOf(this.window.history));return!(!N||!N.writable&&!N.set)}catch(N){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(N){return!1}}}function Xi(A){return Object.getOwnPropertyDescriptor(A,"scrollRestoration")}class Pi{}},520:(qe,ye,C)=>{C.d(ye,{eN:()=>Fe,JF:()=>Pe});var c=C(9808),o=C(4893),g=C(9646),Y=C(8306),ce=C(4351),q=C(9300),De=C(4004);class Ce{}class ue{}class te{constructor(P){this.normalizedNames=new Map,this.lazyUpdate=null,P?this.lazyInit="string"==typeof P?()=>{this.headers=new Map,P.split("\n").forEach(L=>{const re=L.indexOf(":");if(re>0){const be=L.slice(0,re),Ue=be.toLowerCase(),ze=L.slice(re+1).trim();this.maybeSetNormalizedName(be,Ue),this.headers.has(Ue)?this.headers.get(Ue).push(ze):this.headers.set(Ue,[ze])}})}:()=>{this.headers=new Map,Object.keys(P).forEach(L=>{let re=P[L];const be=L.toLowerCase();"string"==typeof re&&(re=[re]),re.length>0&&(this.headers.set(be,re),this.maybeSetNormalizedName(L,be))})}:this.headers=new Map}has(P){return this.init(),this.headers.has(P.toLowerCase())}get(P){this.init();const L=this.headers.get(P.toLowerCase());return L&&L.length>0?L[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(P){return this.init(),this.headers.get(P.toLowerCase())||null}append(P,L){return this.clone({name:P,value:L,op:"a"})}set(P,L){return this.clone({name:P,value:L,op:"s"})}delete(P,L){return this.clone({name:P,value:L,op:"d"})}maybeSetNormalizedName(P,L){this.normalizedNames.has(L)||this.normalizedNames.set(L,P)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(P=>this.applyUpdate(P)),this.lazyUpdate=null))}copyFrom(P){P.init(),Array.from(P.headers.keys()).forEach(L=>{this.headers.set(L,P.headers.get(L)),this.normalizedNames.set(L,P.normalizedNames.get(L))})}clone(P){const L=new te;return L.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,L.lazyUpdate=(this.lazyUpdate||[]).concat([P]),L}applyUpdate(P){const L=P.name.toLowerCase();switch(P.op){case"a":case"s":let re=P.value;if("string"==typeof re&&(re=[re]),0===re.length)return;this.maybeSetNormalizedName(P.name,L);const be=("a"===P.op?this.headers.get(L):void 0)||[];be.push(...re),this.headers.set(L,be);break;case"d":const Ue=P.value;if(Ue){let ze=this.headers.get(L);if(!ze)return;ze=ze.filter(_t=>-1===Ue.indexOf(_t)),0===ze.length?(this.headers.delete(L),this.normalizedNames.delete(L)):this.headers.set(L,ze)}else this.headers.delete(L),this.normalizedNames.delete(L)}}forEach(P){this.init(),Array.from(this.normalizedNames.keys()).forEach(L=>P(this.normalizedNames.get(L),this.headers.get(L)))}}class se{encodeKey(P){return ke(P)}encodeValue(P){return ke(P)}decodeKey(P){return decodeURIComponent(P)}decodeValue(P){return decodeURIComponent(P)}}const X=/%(\d[a-f0-9])/gi,le={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ke(D){return encodeURIComponent(D).replace(X,(P,L)=>{var re;return null!==(re=le[L])&&void 0!==re?re:P})}function Be(D){return`${D}`}class Z{constructor(P={}){if(this.updates=null,this.cloneFrom=null,this.encoder=P.encoder||new se,P.fromString){if(P.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(D,P){const L=new Map;return D.length>0&&D.replace(/^\?/,"").split("&").forEach(be=>{const Ue=be.indexOf("="),[ze,_t]=-1==Ue?[P.decodeKey(be),""]:[P.decodeKey(be.slice(0,Ue)),P.decodeValue(be.slice(Ue+1))],ct=L.get(ze)||[];ct.push(_t),L.set(ze,ct)}),L}(P.fromString,this.encoder)}else P.fromObject?(this.map=new Map,Object.keys(P.fromObject).forEach(L=>{const re=P.fromObject[L];this.map.set(L,Array.isArray(re)?re:[re])})):this.map=null}has(P){return this.init(),this.map.has(P)}get(P){this.init();const L=this.map.get(P);return L?L[0]:null}getAll(P){return this.init(),this.map.get(P)||null}keys(){return this.init(),Array.from(this.map.keys())}append(P,L){return this.clone({param:P,value:L,op:"a"})}appendAll(P){const L=[];return Object.keys(P).forEach(re=>{const be=P[re];Array.isArray(be)?be.forEach(Ue=>{L.push({param:re,value:Ue,op:"a"})}):L.push({param:re,value:be,op:"a"})}),this.clone(L)}set(P,L){return this.clone({param:P,value:L,op:"s"})}delete(P,L){return this.clone({param:P,value:L,op:"d"})}toString(){return this.init(),this.keys().map(P=>{const L=this.encoder.encodeKey(P);return this.map.get(P).map(re=>L+"="+this.encoder.encodeValue(re)).join("&")}).filter(P=>""!==P).join("&")}clone(P){const L=new Z({encoder:this.encoder});return L.cloneFrom=this.cloneFrom||this,L.updates=(this.updates||[]).concat(P),L}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(P=>this.map.set(P,this.cloneFrom.map.get(P))),this.updates.forEach(P=>{switch(P.op){case"a":case"s":const L=("a"===P.op?this.map.get(P.param):void 0)||[];L.push(Be(P.value)),this.map.set(P.param,L);break;case"d":if(void 0===P.value){this.map.delete(P.param);break}{let re=this.map.get(P.param)||[];const be=re.indexOf(Be(P.value));-1!==be&&re.splice(be,1),re.length>0?this.map.set(P.param,re):this.map.delete(P.param)}}}),this.cloneFrom=this.updates=null)}}class Ye{constructor(){this.map=new Map}set(P,L){return this.map.set(P,L),this}get(P){return this.map.has(P)||this.map.set(P,P.defaultValue()),this.map.get(P)}delete(P){return this.map.delete(P),this}has(P){return this.map.has(P)}keys(){return this.map.keys()}}function me(D){return"undefined"!=typeof ArrayBuffer&&D instanceof ArrayBuffer}function z(D){return"undefined"!=typeof Blob&&D instanceof Blob}function Q(D){return"undefined"!=typeof FormData&&D instanceof FormData}class Te{constructor(P,L,re,be){let Ue;if(this.url=L,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=P.toUpperCase(),function Qe(D){switch(D){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||be?(this.body=void 0!==re?re:null,Ue=be):Ue=re,Ue&&(this.reportProgress=!!Ue.reportProgress,this.withCredentials=!!Ue.withCredentials,Ue.responseType&&(this.responseType=Ue.responseType),Ue.headers&&(this.headers=Ue.headers),Ue.context&&(this.context=Ue.context),Ue.params&&(this.params=Ue.params)),this.headers||(this.headers=new te),this.context||(this.context=new Ye),this.params){const ze=this.params.toString();if(0===ze.length)this.urlWithParams=L;else{const _t=L.indexOf("?");this.urlWithParams=L+(-1===_t?"?":_tdn.set(dt,P.setHeaders[dt]),Ot)),P.setParams&&(nn=Object.keys(P.setParams).reduce((dn,dt)=>dn.set(dt,P.setParams[dt]),nn)),new Te(re,be,ze,{params:nn,headers:Ot,context:Yt,reportProgress:ct,responseType:Ue,withCredentials:_t})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class ve{constructor(P,L=200,re="OK"){this.headers=P.headers||new te,this.status=void 0!==P.status?P.status:L,this.statusText=P.statusText||re,this.url=P.url||null,this.ok=this.status>=200&&this.status<300}}class Me extends ve{constructor(P={}){super(P),this.type=Ne.ResponseHeader}clone(P={}){return new Me({headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class xe extends ve{constructor(P={}){super(P),this.type=Ne.Response,this.body=void 0!==P.body?P.body:null}clone(P={}){return new xe({body:void 0!==P.body?P.body:this.body,headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class Ae extends ve{constructor(P){super(P,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${P.url||"(unknown url)"}`:`Http failure response for ${P.url||"(unknown url)"}: ${P.status} ${P.statusText}`,this.error=P.error||null}}function tt(D,P){return{body:P,headers:D.headers,context:D.context,observe:D.observe,params:D.params,reportProgress:D.reportProgress,responseType:D.responseType,withCredentials:D.withCredentials}}let Fe=(()=>{class D{constructor(L){this.handler=L}request(L,re,be={}){let Ue;if(L instanceof Te)Ue=L;else{let ct,Ot;ct=be.headers instanceof te?be.headers:new te(be.headers),be.params&&(Ot=be.params instanceof Z?be.params:new Z({fromObject:be.params})),Ue=new Te(L,re,void 0!==be.body?be.body:null,{headers:ct,context:be.context,params:Ot,reportProgress:be.reportProgress,responseType:be.responseType||"json",withCredentials:be.withCredentials})}const ze=(0,g.of)(Ue).pipe((0,ce.b)(ct=>this.handler.handle(ct)));if(L instanceof Te||"events"===be.observe)return ze;const _t=ze.pipe((0,q.h)(ct=>ct instanceof xe));switch(be.observe||"body"){case"body":switch(Ue.responseType){case"arraybuffer":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ct.body}));case"blob":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof Blob))throw new Error("Response is not a Blob.");return ct.body}));case"text":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&"string"!=typeof ct.body)throw new Error("Response is not a string.");return ct.body}));default:return _t.pipe((0,De.U)(ct=>ct.body))}case"response":return _t;default:throw new Error(`Unreachable: unhandled observe type ${be.observe}}`)}}delete(L,re={}){return this.request("DELETE",L,re)}get(L,re={}){return this.request("GET",L,re)}head(L,re={}){return this.request("HEAD",L,re)}jsonp(L,re){return this.request("JSONP",L,{params:(new Z).append(re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(L,re={}){return this.request("OPTIONS",L,re)}patch(L,re,be={}){return this.request("PATCH",L,tt(be,re))}post(L,re,be={}){return this.request("POST",L,tt(be,re))}put(L,re,be={}){return this.request("PUT",L,tt(be,re))}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ce))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();class Ct{constructor(P,L){this.next=P,this.interceptor=L}handle(P){return this.interceptor.intercept(P,this.next)}}const mt=new o.OlP("HTTP_INTERCEPTORS");let Jt=(()=>{class D{intercept(L,re){return re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const Xe=/^\)\]\}',?\n/;let J=(()=>{class D{constructor(L){this.xhrFactory=L}handle(L){if("JSONP"===L.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Y.y(re=>{const be=this.xhrFactory.build();if(be.open(L.method,L.urlWithParams),L.withCredentials&&(be.withCredentials=!0),L.headers.forEach((dt,vt)=>be.setRequestHeader(dt,vt.join(","))),L.headers.has("Accept")||be.setRequestHeader("Accept","application/json, text/plain, */*"),!L.headers.has("Content-Type")){const dt=L.detectContentTypeHeader();null!==dt&&be.setRequestHeader("Content-Type",dt)}if(L.responseType){const dt=L.responseType.toLowerCase();be.responseType="json"!==dt?dt:"text"}const Ue=L.serializeBody();let ze=null;const _t=()=>{if(null!==ze)return ze;const dt=be.statusText||"OK",vt=new te(be.getAllResponseHeaders()),Le=function je(D){return"responseURL"in D&&D.responseURL?D.responseURL:/^X-Request-URL:/m.test(D.getAllResponseHeaders())?D.getResponseHeader("X-Request-URL"):null}(be)||L.url;return ze=new Me({headers:vt,status:be.status,statusText:dt,url:Le}),ze},ct=()=>{let{headers:dt,status:vt,statusText:Le,url:we}=_t(),V=null;204!==vt&&(V=void 0===be.response?be.responseText:be.response),0===vt&&(vt=V?200:0);let j=vt>=200&&vt<300;if("json"===L.responseType&&"string"==typeof V){const $=V;V=V.replace(Xe,"");try{V=""!==V?JSON.parse(V):null}catch(he){V=$,j&&(j=!1,V={error:he,text:V})}}j?(re.next(new xe({body:V,headers:dt,status:vt,statusText:Le,url:we||void 0})),re.complete()):re.error(new Ae({error:V,headers:dt,status:vt,statusText:Le,url:we||void 0}))},Ot=dt=>{const{url:vt}=_t(),Le=new Ae({error:dt,status:be.status||0,statusText:be.statusText||"Unknown Error",url:vt||void 0});re.error(Le)};let nn=!1;const Yt=dt=>{nn||(re.next(_t()),nn=!0);let vt={type:Ne.DownloadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),"text"===L.responseType&&!!be.responseText&&(vt.partialText=be.responseText),re.next(vt)},dn=dt=>{let vt={type:Ne.UploadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),re.next(vt)};return be.addEventListener("load",ct),be.addEventListener("error",Ot),be.addEventListener("timeout",Ot),be.addEventListener("abort",Ot),L.reportProgress&&(be.addEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.addEventListener("progress",dn)),be.send(Ue),re.next({type:Ne.Sent}),()=>{be.removeEventListener("error",Ot),be.removeEventListener("abort",Ot),be.removeEventListener("load",ct),be.removeEventListener("timeout",Ot),L.reportProgress&&(be.removeEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.removeEventListener("progress",dn)),be.readyState!==be.DONE&&be.abort()}})}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.JF))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const K=new o.OlP("XSRF_COOKIE_NAME"),He=new o.OlP("XSRF_HEADER_NAME");class Ge{}let lt=(()=>{class D{constructor(L,re,be){this.doc=L,this.platform=re,this.cookieName=be,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const L=this.doc.cookie||"";return L!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(L,this.cookieName),this.lastCookieString=L),this.lastToken}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.K0),o.LFG(o.Lbi),o.LFG(K))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),St=(()=>{class D{constructor(L,re){this.tokenService=L,this.headerName=re}intercept(L,re){const be=L.url.toLowerCase();if("GET"===L.method||"HEAD"===L.method||be.startsWith("http://")||be.startsWith("https://"))return re.handle(L);const Ue=this.tokenService.getToken();return null!==Ue&&!L.headers.has(this.headerName)&&(L=L.clone({headers:L.headers.set(this.headerName,Ue)})),re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ge),o.LFG(He))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),Ht=(()=>{class D{constructor(L,re){this.backend=L,this.injector=re,this.chain=null}handle(L){if(null===this.chain){const re=this.injector.get(mt,[]);this.chain=re.reduceRight((be,Ue)=>new Ct(be,Ue),this.backend)}return this.chain.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(ue),o.LFG(o.zs3))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),at=(()=>{class D{static disable(){return{ngModule:D,providers:[{provide:St,useClass:Jt}]}}static withOptions(L={}){return{ngModule:D,providers:[L.cookieName?{provide:K,useValue:L.cookieName}:[],L.headerName?{provide:He,useValue:L.headerName}:[]]}}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[St,{provide:mt,useExisting:St,multi:!0},{provide:Ge,useClass:lt},{provide:K,useValue:"XSRF-TOKEN"},{provide:He,useValue:"X-XSRF-TOKEN"}]}),D})(),Pe=(()=>{class D{}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[Fe,{provide:Ce,useClass:Ht},J,{provide:ue,useExisting:J}],imports:[[at.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),D})()},4893:(qe,ye,C)=>{C.d(ye,{deG:()=>Im,tb:()=>am,AFp:()=>im,ip1:()=>nm,CZH:()=>jc,hGG:()=>VC,z2F:()=>Zc,sBO:()=>DC,Sil:()=>rC,_Vd:()=>Ra,EJc:()=>nC,SBq:()=>Ws,qLn:()=>ca,vpe:()=>co,tBr:()=>ra,XFs:()=>S,OlP:()=>vi,zs3:()=>zr,ZZ4:()=>tu,aQg:()=>nu,soG:()=>Gc,YKP:()=>gp,h0i:()=>fs,PXZ:()=>gC,R0b:()=>Yr,FiY:()=>As,Lbi:()=>sm,g9A:()=>om,n_E:()=>Fa,Qsj:()=>qb,FYo:()=>hp,JOm:()=>ro,q3G:()=>yi,tp0:()=>Ts,Rgc:()=>qs,dDg:()=>dm,GfV:()=>fp,s_b:()=>Na,ifc:()=>Ot,eFA:()=>pm,G48:()=>EC,Gpc:()=>Be,f3M:()=>Mu,_c5:()=>BC,VLi:()=>fC,c2e:()=>lm,zSh:()=>Gl,wAp:()=>qt,vHH:()=>Qe,EiD:()=>Uu,mCW:()=>Ss,qzn:()=>Go,JVY:()=>cg,pB0:()=>fg,eBb:()=>dg,L6k:()=>ug,LAX:()=>hg,cg1:()=>bc,kL8:()=>Lf,yhl:()=>Pu,dqk:()=>vt,sIi:()=>Bs,CqO:()=>zh,QGY:()=>sc,F4k:()=>jh,RDi:()=>N,AaK:()=>X,z3N:()=>_o,qOj:()=>Zl,TTD:()=>zi,_Bn:()=>cp,xp6:()=>Cd,uIk:()=>Jl,Tol:()=>hf,Gre:()=>Af,ekj:()=>fc,Suo:()=>Fp,Xpm:()=>Dt,lG2:()=>$t,Yz7:()=>J,cJS:()=>He,oAB:()=>Ie,Yjl:()=>bn,Y36:()=>Us,_UZ:()=>oc,BQk:()=>wa,ynx:()=>Ma,qZA:()=>Da,TgZ:()=>Ea,EpF:()=>Hh,n5z:()=>pu,Ikx:()=>vc,LFG:()=>Ni,$8M:()=>$a,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Lp,kcU:()=>Mo,O4$:()=>eo,oxw:()=>Wh,ALo:()=>Ap,lcZ:()=>Tp,Hsn:()=>Kh,F$t:()=>Yh,Q6J:()=>ic,s9C:()=>uc,VKq:()=>bp,iGM:()=>Rp,MAs:()=>xh,evT:()=>Zu,CHM:()=>Jr,oJD:()=>Hu,LSH:()=>ol,Udp:()=>hc,WFA:()=>lc,d8E:()=>yc,YNc:()=>Th,_uU:()=>yf,Oqu:()=>mc,hij:()=>Ta,AsE:()=>gc,lnq:()=>_c,Gf:()=>kp});var c=C(7579),o=C(727),g=C(8306),Y=C(6451),ce=C(2076),q=C(5698),De=C(930),Ce=C(4482);function te(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe((0,q.q)(1)).subscribe(()=>e())}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function de(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function le(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ke=se({__forward_ref__:se});function Be(e){return e.__forward_ref__=Be,e.toString=function(){return X(this())},e}function Z(e){return et(e)?e():e}function et(e){return"function"==typeof e&&e.hasOwnProperty(ke)&&e.__forward_ref__===Be}class Qe extends Error{constructor(t,n){super(function me(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}function ve(e,t){const n=t?` in ${t}`:"";throw new Qe(-201,`No provider for ${Q(e)} found${n}`)}function Ut(e,t){null==e&&function xt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function He(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ge(e){return lt(e,Nt)||lt(e,Pe)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function bt(e){return e&&(e.hasOwnProperty(at)||e.hasOwnProperty(E))?e[at]:null}const Nt=se({\u0275prov:se}),at=se({\u0275inj:se}),Pe=se({ngInjectableDef:se}),E=se({ngInjectorDef:se});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let D;function L(e){const t=D;return D=e,t}function re(e,t,n){const i=Ge(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&S.Optional?null:void 0!==t?t:void ve(X(e),"Injector")}function Ue(e){return{toString:e}.toString()}var ze=(()=>((ze=ze||{})[ze.OnPush=0]="OnPush",ze[ze.Default=1]="Default",ze))(),Ot=(()=>{return(e=Ot||(Ot={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ot;var e})();const nn="undefined"!=typeof globalThis&&globalThis,Yt="undefined"!=typeof window&&window,dn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vt=nn||"undefined"!=typeof global&&global||Yt||dn,V={},j=[],$=se({\u0275cmp:se}),he=se({\u0275dir:se}),Se=se({\u0275pipe:se}),st=se({\u0275mod:se}),At=se({\u0275fac:se}),Zt=se({__NG_ELEMENT_ID__:se});let Kt=0;function Dt(e){return Ue(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ot.Emulated,id:"c",styles:e.styles||j,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,u=e.pipes;return i.id+=Kt++,i.inputs=kt(e.inputs,n),i.outputs=kt(e.outputs),s&&s.forEach(p=>p(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ve):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(_e):null,i})}function Ve(e){return en(e)||function kn(e){return e[he]||null}(e)}function _e(e){return function Cn(e){return e[Se]||null}(e)}const ne={};function Ie(e){return Ue(()=>{const t={type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function kt(e,t){if(null==e)return V;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const $t=Dt;function bn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function en(e){return e[$]||null}function jn(e,t){const n=e[st]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}function Kn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ci(e){return Array.isArray(e)&&!0===e[1]}function Ki(e){return 0!=(8&e.flags)}function Zi(e){return 2==(2&e.flags)}function On(e){return 1==(1&e.flags)}function ei(e){return null!==e.template}function Oi(e){return 0!=(512&e[2])}function Mi(e,t){return e.hasOwnProperty(At)?e[At]:null}class Nr{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function zi(){return Bi}function Bi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qr),Qi}function Qi(){const e=lr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===V)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Qr(e,t,n,i){const r=lr(e)||function Br(e,t){return e[Ii]=t}(e,{previous:V,current:null}),s=r.current||(r.current={}),u=r.previous,p=this.declaredInputs[n],b=u[p];s[p]=new Nr(b&&b.currentValue,t,u===V),e[i]=t}zi.ngInherit=!0;const Ii="__ngSimpleChanges__";function lr(e){return e[Ii]||null}let A;function N(e){A=e}function T(){return void 0!==A?A:"undefined"!=typeof document?document:void 0}function ae(e){return!!e.listen}const $e={createRenderer:(e,t)=>T()};function ht(e){for(;Array.isArray(e);)e=e[0];return e}function hn(e,t){return ht(t[e])}function zt(e,t){return ht(t[e.index])}function vn(e,t){return e.data[t]}function Sn(e,t){return e[t]}function Vn(e,t){const n=t[e];return Kn(n)?n:n[0]}function wi(e){return 4==(4&e[2])}function er(e){return 128==(128&e[2])}function ki(e,t){return null==t?null:e[t]}function x(e){e[18]=0}function M(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const y={lFrame:Ei(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function gi(){return y.bindingsEnabled}function ot(){return y.lFrame.lView}function sn(){return y.lFrame.tView}function Jr(e){return y.lFrame.contextLView=e,e[8]}function Zn(){let e=bo();for(;null!==e&&64===e.type;)e=e.parent;return e}function bo(){return y.lFrame.currentTNode}function Vi(e,t){const n=y.lFrame;n.currentTNode=e,n.isParent=t}function Xr(){return y.lFrame.isParent}function k(){y.lFrame.isParent=!1}function d(){return y.isInCheckNoChangesMode}function a(e){y.isInCheckNoChangesMode=e}function l(){const e=y.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function v(){return y.lFrame.bindingIndex}function G(){return y.lFrame.bindingIndex++}function ie(e){const t=y.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ke(e,t){const n=y.lFrame;n.bindingIndex=n.bindingRootIndex=e,It(t)}function It(e){y.lFrame.currentDirectiveIndex=e}function Xt(e){const t=y.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ln(){return y.lFrame.currentQueryIndex}function Vt(e){y.lFrame.currentQueryIndex=e}function rn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Mn(e,t,n){if(n&S.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&S.Host||(r=rn(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=y.lFrame=li();return i.currentTNode=t,i.lView=e,!0}function $n(e){const t=li(),n=e[1];y.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function li(){const e=y.lFrame,t=null===e?null:e.child;return null===t?Ei(e):t}function Ei(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ii(){const e=y.lFrame;return y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Sr=ii;function Ui(){const e=ii();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Un(){return y.lFrame.selectedIndex}function _i(e){y.lFrame.selectedIndex=e}function Hn(){const e=y.lFrame;return vn(e.tView,e.selectedIndex)}function eo(){y.lFrame.currentNamespace="svg"}function Mo(){!function ho(){y.lFrame.currentNamespace=null}()}function Lt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[b]<0&&(e[18]+=65536),(p>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(p)}finally{}}}else try{s.call(p)}finally{}}class Or{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ro(e,t,n){const i=ae(e);let r=0;for(;rt){u=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let vs=!0;function ys(e){const t=vs;return vs=e,t}let w=0;function B(e,t){const n=ge(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ee(i.data,e),ee(t,null),ee(i.blueprint,null));const r=Ze(e,t),s=e.injectorIndex;if(Fo(r)){const u=Co(r),p=fo(r,t),b=p[1].data;for(let I=0;I<8;I++)t[s+I]=p[u+I]|b[u+I]}return t[s+8]=r,s}function ee(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ge(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ze(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],u=s.type;if(i=2===u?s.declTNode:1===u?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Mt(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=w++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Ur:t}(n);if("function"==typeof s){if(!Mn(t,e,i))return i&S.Host?Bt(r,n,i):xn(t,n,i,r);try{const u=s(i);if(null!=u||i&S.Optional)return u;ve(n)}finally{Sr()}}else if("number"==typeof s){let u=null,p=ge(e,t),b=-1,I=i&S.Host?t[16][6]:null;for((-1===p||i&S.SkipSelf)&&(b=-1===p?Ze(e,t):t[p+8],-1!==b&&ea(i,!1)?(u=t[1],p=Co(b),t=fo(b,t)):p=-1);-1!==p;){const F=t[1];if(Ao(s,p,F.data)){const W=mo(p,t,n,u,i,I);if(W!==po)return W}b=t[p+8],-1!==b&&ea(i,t[1].data[p+8]===I)&&Ao(s,p,t)?(u=F,p=Co(b),t=fo(b,t)):p=-1}}}return xn(t,n,i,r)}const po={};function Ur(){return new Lo(Zn(),ot())}function mo(e,t,n,i,r,s){const u=t[1],p=u.data[e+8],F=Ir(p,u,n,null==i?Zi(p)&&vs:i!=u&&0!=(3&p.type),r&S.Host&&s===p);return null!==F?Dr(t,u,F,p):po}function Ir(e,t,n,i,r){const s=e.providerIndexes,u=t.data,p=1048575&s,b=e.directiveStart,F=s>>20,fe=r?p+F:e.directiveEnd;for(let Re=i?p:p+F;Re=b&&Je.type===n)return Re}if(r){const Re=u[b];if(Re&&ei(Re)&&Re.type===n)return b}return null}function Dr(e,t,n,i){let r=e[n];const s=t.data;if(function Js(e){return e instanceof Or}(r)){const u=r;u.resolving&&function pe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Qe(-200,`Circular dependency in DI detected for ${e}${n}`)}(Q(s[n]));const p=ys(u.canSeeViewProviders);u.resolving=!0;const b=u.injectImpl?L(u.injectImpl):null;Mn(e,i,S.Default);try{r=e[n]=u.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ft(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const u=Bi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==b&&L(b),ys(p),u.resolving=!1,Sr()}}return r}function Ao(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[At]||Ga(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[At]||Ga(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ga(e){return et(e)?()=>{const t=Ga(Z(e));return t&&t()}:Mi(e)}function $a(e){return function cn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r{const i=function Wa(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const u=new r(...s);return p.annotation=u,p;function p(b,I,F){const W=b.hasOwnProperty(Bo)?b[Bo]:Object.defineProperty(b,Bo,{value:[]})[Bo];for(;W.length<=F;)W.push(null);return(W[F]=W[F]||[]).push(u),b}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class vi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=J({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Im=new vi("AnalyzeForEntryComponents");function Pr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?to(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Es(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function km(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ka(e,t){const n=Ho(e,t);if(n>=0)return e[1|n]}function Ho(e,t){return function yu(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),u=e[s<t?r=s:i=s+1}return~(r<({token:e})),-1),As=ws(Uo("Optional"),8),Ts=ws(Uo("SkipSelf"),4);let sa,aa;function zo(e){var t;return(null===(t=function Xa(){if(void 0===sa&&(sa=null,vt.trustedTypes))try{sa=vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}function Su(e){var t;return(null===(t=function el(){if(void 0===aa&&(aa=null,vt.trustedTypes))try{aa=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return aa}())||void 0===t?void 0:t.createHTML(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rg extends To{getTypeName(){return"HTML"}}class og extends To{getTypeName(){return"Style"}}class sg extends To{getTypeName(){return"Script"}}class ag extends To{getTypeName(){return"URL"}}class lg extends To{getTypeName(){return"ResourceURL"}}function _o(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Go(e,t){const n=Pu(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Pu(e){return e instanceof To&&e.getTypeName()||null}function cg(e){return new rg(e)}function ug(e){return new og(e)}function dg(e){return new sg(e)}function hg(e){return new ag(e)}function fg(e){return new lg(e)}class pg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(zo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class mg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=zo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=zo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0Ss(t.trim())).join(", ")),this.buf.push(" ",u,'="',Vu(b),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();tl.hasOwnProperty(n)&&!Fu.hasOwnProperty(n)&&(this.buf.push(""),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Vu(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Cg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eg=/([^\#-~ |!])/g;function Vu(e){return e.replace(/&/g,"&").replace(Cg,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Eg,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let la;function Uu(e,t){let n=null;try{la=la||function Ru(e){const t=new mg(e);return function gg(){try{return!!(new window.DOMParser).parseFromString(zo(""),"text/html")}catch(e){return!1}}()?new pg(t):t}(e);let i=t?String(t):"";n=la.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=la.getInertBodyElement(i)}while(i!==s);return zo((new bg).sanitizeChildren(rl(n)||n))}finally{if(n){const i=rl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rl(e){return"content"in e&&function Dg(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yi=(()=>((yi=yi||{})[yi.NONE=0]="NONE",yi[yi.HTML=1]="HTML",yi[yi.STYLE=2]="STYLE",yi[yi.SCRIPT=3]="SCRIPT",yi[yi.URL=4]="URL",yi[yi.RESOURCE_URL=5]="RESOURCE_URL",yi))();function Hu(e){const t=Is();return t?Su(t.sanitize(yi.HTML,e)||""):Go(e,"HTML")?Su(_o(e)):Uu(T(),z(e))}function ol(e){const t=Is();return t?t.sanitize(yi.URL,e)||"":Go(e,"URL")?_o(e):Ss(z(e))}function Is(){const e=ot();return e&&e[12]}const Gu="__ngContext__";function Wi(e,t){e[Gu]=t}function al(e){const t=function Ps(e){return e[Gu]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function cl(e){return e.ngOriginalError}function Vg(e,...t){e.error(...t)}class ca{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function Bg(e){return e&&e.ngErrorLogger||Vg}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&cl(t);for(;n&&cl(n);)n=cl(n);return n||null}}const Zg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function Zu(e){return e.ownerDocument}function io(e){return e instanceof Function?e():e}var ro=(()=>((ro=ro||{})[ro.Important=1]="Important",ro[ro.DashCase=2]="DashCase",ro))();function dl(e,t){return undefined(e,t)}function Rs(e){const t=e[3];return Ci(t)?t[3]:t}function hl(e){return ed(e[13])}function fl(e){return ed(e[4])}function ed(e){for(;null!==e&&!Ci(e);)e=e[4];return e}function Wo(e,t,n,i,r){if(null!=i){let s,u=!1;Ci(i)?s=i:Kn(i)&&(u=!0,i=i[0]);const p=ht(i);0===e&&null!==n?null==r?sd(t,n,p):xo(t,n,p,r||null,!0):1===e&&null!==n?xo(t,n,p,r||null,!0):2===e?function fd(e,t,n){const i=ua(e,t);i&&function l_(e,t,n,i){ae(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,p,u):3===e&&t.destroyNode(p),null!=s&&function d_(e,t,n,i,r){const s=n[7];s!==ht(n)&&Wo(t,e,i,s,r);for(let p=10;p0&&(e[n-1][4]=i[4]);const s=ta(e,10+t);!function e_(e,t){ks(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=s[19];null!==u&&u.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function id(e,t){if(!(256&t[2])){const n=t[11];ae(n)&&n.destroyNode&&ks(e,t,n,3,null,null),function i_(e){let t=e[13];if(!t)return _l(e[1],e);for(;t;){let n=null;if(Kn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Kn(t)&&_l(t[1],t),t=t[3];null===t&&(t=e),Kn(t)&&_l(t[1],t),n=t&&t[4]}t=n}}(t)}}function _l(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function a_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[r=I]():i[r=-I].unsubscribe(),s+=2}else{const u=i[r=n[s+1]];n[s].call(u)}if(null!==i){for(let s=r+1;ss?"":r[W+1].toLowerCase();const Re=8&i?fe:null;if(Re&&-1!==gd(Re,I,0)||2&i&&I!==fe){if(Hr(i))return!1;u=!0}}}}else{if(!u&&!Hr(i)&&!Hr(b))return!1;if(u&&Hr(b))continue;u=!1,i=b|1&i}}return Hr(i)||u}function Hr(e){return 0==(1&e)}function g_(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+p+'"':"")+"]"}else 8&i?r+="."+u:4&i&&(r+=" "+u);else""!==r&&!Hr(u)&&(t+=bd(s,r),r=""),i=u,s=s||!Hr(i);n++}return""!==r&&(t+=bd(s,r)),t}const an={};function Cd(e){Ed(sn(),ot(),Un()+e,d())}function Ed(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&fn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&qn(t,s,0,n)}_i(n)}function fa(e,t){return e<<17|t<<2}function jr(e){return e>>17&32767}function El(e){return 2|e}function vo(e){return(131068&e)>>2}function Dl(e,t){return-131069&e|t<<2}function Ml(e){return 1|e}function Rd(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&Ed(e,t,20,d()),n(i,r)}finally{_i(s)}}function Fd(e,t,n){if(Ki(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(p)!=b&&p.push(b),p.push(i,r,u)}}function zd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function q_(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Bl(n)}}function Bl(e){for(let i=hl(e);null!==i;i=fl(i))for(let r=10;r0&&Bl(s)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Bl(r)}}function iv(e,t){const n=Vn(t,e),i=n[1];(function rv(e,t){for(let n=t.length;nPromise.resolve(null))();function Zd(e){return e[7]||(e[7]=[])}function qd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||ei(e))&&(n=function En(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jd(e,t){const n=e[9],i=n?n.get(ca,null):null;i&&i.handleError(t)}function Xd(e,t,n,i,r){for(let s=0;sthis.processProvider(p,t,n)),to([t],p=>this.processInjectorType(p,[],s)),this.records.set(zl,qo(void 0,this));const u=this.records.get(Gl);this.scope=null!=u?u.value:null,this.source=r||("object"==typeof t?null:X(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=S.Default){this.assertNotDestroyed();const r=Eu(this),s=L(void 0);try{if(!(i&S.SkipSelf)){let p=this.records.get(t);if(void 0===p){const b=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof vi}(t)&&Ge(t);p=b&&this.injectableDefInScope(b)?qo(Wl(t),Ns):null,this.records.set(t,p)}if(null!=p)return this.hydrate(t,p)}return(i&S.Self?th():this.parent).get(t,n=i&S.Optional&&n===Ds?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[ia]=u[ia]||[]).unshift(X(t)),r)throw u;return function Wm(e,t,n,i){const r=e[ia];throw t[Cu]&&r.unshift(t[Cu]),e.message=function Ym(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=X(t);if(Array.isArray(t))r=t.map(X).join(" -> ");else if("object"==typeof t){let s=[];for(let u in t)if(t.hasOwnProperty(u)){let p=t[u];s.push(u+":"+("string"==typeof p?JSON.stringify(p):X(p)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Hm,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[ia]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{L(s),Eu(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(X(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Qe(205,!1)}processInjectorType(t,n,i){if(!(t=Z(t)))return!1;let r=bt(t);const s=null==r&&t.ngModule||void 0,u=void 0===s?t:s,p=-1!==i.indexOf(u);if(void 0!==s&&(r=bt(s)),null==r)return!1;if(null!=r.imports&&!p){let F;i.push(u);try{to(r.imports,W=>{this.processInjectorType(W,n,i)&&(void 0===F&&(F=[]),F.push(W))})}finally{}if(void 0!==F)for(let W=0;Wthis.processProvider(Je,fe,Re||j))}}this.injectorDefTypes.add(u);const b=Mi(u)||(()=>new u);this.records.set(u,qo(b,Ns));const I=r.providers;if(null!=I&&!p){const F=t;to(I,W=>this.processProvider(W,F,I))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=Qo(t=Z(t))?t:Z(t&&t.provide);const s=function pv(e,t,n){return oh(e)?qo(void 0,e.useValue):qo(rh(e),Ns)}(t);if(Qo(t)||!0!==t.multi)this.records.get(r);else{let u=this.records.get(r);u||(u=qo(void 0,Ns,!0),u.factory=()=>Qa(u.multi),this.records.set(r,u)),r=t,u.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===Ns&&(n.value=dv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Z(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Wl(e){const t=Ge(e),n=null!==t?t.factory:Mi(e);if(null!==n)return n;if(e instanceof vi)throw new Qe(204,!1);if(e instanceof Function)return function fv(e){const t=e.length;if(t>0)throw Es(t,"?"),new Qe(204,!1);const n=function St(e){const t=e&&(e[Nt]||e[Pe]);if(t){const n=function Ht(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Qe(204,!1)}function rh(e,t,n){let i;if(Qo(e)){const r=Z(e);return Mi(r)||Wl(r)}if(oh(e))i=()=>Z(e.useValue);else if(function gv(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Qa(e.deps||[]));else if(function mv(e){return!(!e||!e.useExisting)}(e))i=()=>Ni(Z(e.useExisting));else{const r=Z(e&&(e.useClass||e.provide));if(!function vv(e){return!!e.deps}(e))return Mi(r)||Wl(r);i=()=>new r(...Qa(e.deps))}return i}function qo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oh(e){return null!==e&&"object"==typeof e&&zm in e}function Qo(e){return"function"==typeof e}let zr=(()=>{class e{static create(n,i){var r;if(Array.isArray(n))return nh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return nh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new eh,e.\u0275prov=J({token:e,providedIn:"any",factory:()=>Ni(zl)}),e.__NG_ELEMENT_ID__=-1,e})();function xv(e,t){Lt(al(e)[1],Zn())}function Zl(e){let t=function _h(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let r;if(ei(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Qe(903,"");r=t.\u0275dir}if(r){if(n){i.push(r);const u=e;u.inputs=ql(e.inputs),u.declaredInputs=ql(e.declaredInputs),u.outputs=ql(e.outputs);const p=r.hostBindings;p&&Pv(e,p);const b=r.viewQuery,I=r.contentQueries;if(b&&Ov(e,b),I&&Iv(e,I),de(e.inputs,r.inputs),de(e.declaredInputs,r.declaredInputs),de(e.outputs,r.outputs),ei(r)&&r.data.animation){const F=e.data;F.animation=(F.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let u=0;u=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=ko(r.hostAttrs,n=ko(n,r.hostAttrs))}}(i)}function ql(e){return e===V?{}:e===j?[]:e}function Ov(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function Iv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function Pv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let ya=null;function Jo(){if(!ya){const e=vt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;np(ht(yn[i.index])):i.index;if(ae(n)){let yn=null;if(!p&&b&&(yn=function ly(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sb?p[b]:null}"string"==typeof u&&(s+=2)}return null}(e,t,r,i.index)),null!==yn)(yn.__ngLastListenerFn__||yn).__ngNextListenerFn__=s,yn.__ngLastListenerFn__=s,Re=!1;else{s=cc(i,t,W,s,!1);const In=n.listen(wt,r,s);fe.push(s,In),F&&F.push(r,Gt,it,it+1)}}else s=cc(i,t,W,s,!0),wt.addEventListener(r,s,u),fe.push(s),F&&F.push(r,Gt,it,u)}else s=cc(i,t,W,s,!1);const Je=i.outputs;let ut;if(Re&&null!==Je&&(ut=Je[r])){const pt=ut.length;if(pt)for(let wt=0;wt0;)t=t[15],e--;return t}(e,y.lFrame.contextLView))[8]}(e)}function cy(e,t){let n=null;const i=function __(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r=0}const xi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sf(e){return e.substring(xi.key,xi.keyEnd)}function af(e,t){const n=xi.textEnd;return n===t?-1:(t=xi.keyEnd=function gy(e,t,n){for(;t32;)t++;return t}(e,xi.key=t,n),cs(e,t,n))}function cs(e,t,n){for(;t=0;n=af(t,n))Mr(e,sf(t),!0)}function $r(e,t,n,i){const r=ot(),s=sn(),u=ie(2);s.firstUpdatePass&&pf(s,e,u,i),t!==an&&Yi(r,u,t)&&gf(s,s.data[Un()],r,r[11],e,r[u+1]=function Ay(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(_o(e)))),e}(t,n),i,u)}function Wr(e,t,n,i){const r=sn(),s=ie(2);r.firstUpdatePass&&pf(r,null,s,i);const u=ot();if(n!==an&&Yi(u,s,n)){const p=r.data[Un()];if(vf(p,i)&&!ff(r,s)){let b=i?p.classesWithoutHost:p.stylesWithoutHost;null!==b&&(n=le(b,n||"")),rc(r,p,u,n,i)}else!function wy(e,t,n,i,r,s,u,p){r===an&&(r=j);let b=0,I=0,F=0=e.expandoStartIndex}function pf(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Un()],u=ff(e,n);vf(s,i)&&null===t&&!u&&(t=!1),t=function by(e,t,n,i){const r=Xt(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=pc(null,e,t,n,i),t.attrs,i),s=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==r)if(n=pc(r,e,t,n,i),null===s){let b=function Cy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==vo(i))return e[jr(i)]}(e,t,i);void 0!==b&&Array.isArray(b)&&(b=pc(null,e,t,b[1],i),b=Hs(b,t.attrs,i),function Ey(e,t,n,i){e[jr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,b))}else s=function Dy(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(I=!0)}else F=n;if(r)if(0!==b){const fe=jr(e[p+1]);e[i+1]=fa(fe,p),0!==fe&&(e[fe+1]=Dl(e[fe+1],i)),e[p+1]=function M_(e,t){return 131071&e|t<<17}(e[p+1],i)}else e[i+1]=fa(p,0),0!==p&&(e[p+1]=Dl(e[p+1],i)),p=i;else e[i+1]=fa(b,0),0===p?p=i:e[b+1]=Dl(e[b+1],i),b=i;I&&(e[i+1]=El(e[i+1])),rf(e,F,i,!0),rf(e,F,i,!1),function dy(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ho(s,t)>=0&&(n[i+1]=Ml(n[i+1]))}(t,F,e,i,s),u=fa(p,b),s?t.classBindings=u:t.styleBindings=u}(r,s,t,n,u,i)}}function pc(e,t,n,i,r){let s=null;const u=n.directiveEnd;let p=n.directiveStylingLast;for(-1===p?p=n.directiveStart:p++;p0;){const b=e[r],I=Array.isArray(b),F=I?b[1]:b,W=null===F;let fe=n[r+1];fe===an&&(fe=W?j:void 0);let Re=W?Ka(fe,i):F===i?fe:void 0;if(I&&!Aa(Re)&&(Re=Ka(b,i)),Aa(Re)&&(p=Re,u))return p;const Je=e[r+1];r=u?jr(Je):vo(Je)}if(null!==t){let b=s?t.residualClasses:t.residualStyles;null!=b&&(p=Ka(b,i))}return p}function Aa(e){return void 0!==e}function vf(e,t){return 0!=(e.flags&(t?16:32))}function yf(e,t=""){const n=ot(),i=sn(),r=e+20,s=i.firstCreatePass?Yo(i,r,1,t,null):i.data[r],u=n[r]=function pl(e,t){return ae(e)?e.createText(t):e.createTextNode(t)}(n[11],t);da(i,n,u,s),Vi(s,!1)}function mc(e){return Ta("",e,""),mc}function Ta(e,t,n){const i=ot(),r=es(i,e,t,n);return r!==an&&yo(i,Un(),r),Ta}function gc(e,t,n,i,r){const s=ot(),u=function ts(e,t,n,i,r,s){const p=So(e,v(),n,r);return ie(2),p?t+z(n)+i+z(r)+s:an}(s,e,t,n,i,r);return u!==an&&yo(s,Un(),u),gc}function _c(e,t,n,i,r,s,u){const p=ot(),b=ns(p,e,t,n,i,r,s,u);return b!==an&&yo(p,Un(),b),_c}function Af(e,t,n){Wr(Mr,lo,es(ot(),e,t,n),!0)}function vc(e,t,n){const i=ot();return Yi(i,G(),t)&&wr(sn(),Hn(),i,e,t,i[11],n,!0),vc}function yc(e,t,n){const i=ot();if(Yi(i,G(),t)){const s=sn(),u=Hn();wr(s,u,i,e,t,Qd(Xt(s.data),u,i),n,!0)}return yc}const Oo=void 0;var $y=["en",[["a","p"],["AM","PM"],Oo],[["AM","PM"],Oo,Oo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oo,"{1} 'at' {0}",Oo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let us={};function bc(e){const t=function Wy(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Nf(t);if(n)return n;const i=t.split("-")[0];if(n=Nf(i),n)return n;if("en"===i)return $y;throw new Error(`Missing locale data for the locale "${e}".`)}function Lf(e){return bc(e)[qt.PluralCase]}function Nf(e){return e in us||(us[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),us[e]}var qt=(()=>((qt=qt||{})[qt.LocaleId=0]="LocaleId",qt[qt.DayPeriodsFormat=1]="DayPeriodsFormat",qt[qt.DayPeriodsStandalone=2]="DayPeriodsStandalone",qt[qt.DaysFormat=3]="DaysFormat",qt[qt.DaysStandalone=4]="DaysStandalone",qt[qt.MonthsFormat=5]="MonthsFormat",qt[qt.MonthsStandalone=6]="MonthsStandalone",qt[qt.Eras=7]="Eras",qt[qt.FirstDayOfWeek=8]="FirstDayOfWeek",qt[qt.WeekendRange=9]="WeekendRange",qt[qt.DateFormat=10]="DateFormat",qt[qt.TimeFormat=11]="TimeFormat",qt[qt.DateTimeFormat=12]="DateTimeFormat",qt[qt.NumberSymbols=13]="NumberSymbols",qt[qt.NumberFormats=14]="NumberFormats",qt[qt.CurrencyCode=15]="CurrencyCode",qt[qt.CurrencySymbol=16]="CurrencySymbol",qt[qt.CurrencyName=17]="CurrencyName",qt[qt.Currencies=18]="Currencies",qt[qt.Directionality=19]="Directionality",qt[qt.PluralCase=20]="PluralCase",qt[qt.ExtraData=21]="ExtraData",qt))();const xa="en-US";let Bf=xa;function Dc(e,t,n,i,r){if(e=Z(e),Array.isArray(e))for(let s=0;s>20;if(Qo(e)||!e.multi){const Re=new Or(b,r,Us),Je=wc(p,t,r?F:F+fe,W);-1===Je?(Mt(B(I,u),s,p),Mc(s,e,t.length),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(Re),u.push(Re)):(n[Je]=Re,u[Je]=Re)}else{const Re=wc(p,t,F+fe,W),Je=wc(p,t,F,F+fe),ut=Re>=0&&n[Re],pt=Je>=0&&n[Je];if(r&&!pt||!r&&!ut){Mt(B(I,u),s,p);const wt=function Gb(e,t,n,i,r){const s=new Or(e,n,Us);return s.multi=[],s.index=t,s.componentProviders=0,lp(s,r,i&&!n),s}(r?zb:jb,n.length,r,i,b);!r&&pt&&(n[Je].providerFactory=wt),Mc(s,e,t.length,0),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(wt),u.push(wt)}else Mc(s,e,Re>-1?Re:Je,lp(n[r?Je:Re],b,!r&&i));!r&&i&&pt&&n[Je].componentProviders++}}}function Mc(e,t,n,i){const r=Qo(t),s=function _v(e){return!!e.useClass}(t);if(r||s){const b=(s?Z(t.useClass):t).prototype.ngOnDestroy;if(b){const I=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const F=I.indexOf(n);-1===F?I.push(n,[i,b]):I[F+1].push(i,b)}else I.push(n,b)}}}function lp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wc(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function Hb(e,t,n){const i=sn();if(i.firstCreatePass){const r=ei(e);Dc(n,i.data,i.blueprint,r,!0),Dc(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class up{}class Yb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ra=(()=>{class e{}return e.NULL=new Yb,e})();function Kb(){return hs(Zn(),ot())}function hs(e,t){return new Ws(zt(e,t))}let Ws=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Kb,e})();function Zb(e){return e instanceof Ws?e.nativeElement:e}class hp{}let qb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Jb(){const e=ot(),n=Vn(Zn().index,e);return function Qb(e){return e[11]}(Kn(n)?n:e)}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=J({token:e,providedIn:"root",factory:()=>null}),e})();class fp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const e0=new fp("13.2.5"),Tc={};function ka(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(ht(s)),Ci(s))for(let p=10;p-1&&(gl(t,i),ta(n,i))}this._attachedToViewContainer=!1}id(this._lView[1],this._lView)}onDestroy(t){Vd(this._lView[1],this._lView,null,t)}markForCheck(){Vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function sv(e,t,n){a(!0);try{Hl(e,t,n)}finally{a(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Qe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function n_(e,t){ks(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Qe(902,"");this._appRef=t}}class t0 extends Ys{constructor(t){super(t),this._view=t}detectChanges(){Kd(this._view)}checkNoChanges(){!function av(e){a(!0);try{Kd(e)}finally{a(!1)}}(this._view)}get context(){return null}}class pp extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=en(t);return new xc(n,this.ngModule)}}function mp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class xc extends up{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function E_(e){return e.map(C_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function r0(e,t){return{get:(n,i,r)=>{const s=e.get(n,Tc,r);return s!==Tc||i===Tc?s:t.get(n,i,r)}}}(t,r.injector):t,u=s.get(hp,$e),p=s.get(Xb,null),b=u.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",F=i?function Bd(e,t,n){if(ae(e))return e.selectRootElement(t,n===Ot.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(b,i,this.componentDef.encapsulation):ml(u.createRenderer(null,this.componentDef),I,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(I)),W=this.componentDef.onPush?576:528,fe=function gh(e,t){return{components:[],scheduler:e||Zg,clean:lv,playerHandler:t||null,flags:0}}(),Re=ga(0,null,null,1,0,null,null,null,null,null),Je=Fs(null,Re,fe,W,null,null,u,b,p,s);let ut,pt;$n(Je);try{const wt=function ph(e,t,n,i,r,s){const u=n[1];n[20]=e;const b=Yo(u,20,2,"#host",null),I=b.mergedAttrs=t.hostAttrs;null!==I&&(va(b,I,!0),null!==e&&(Ro(r,e,I),null!==b.classes&&Cl(r,e,b.classes),null!==b.styles&&md(r,e,b.styles)));const F=i.createRenderer(e,t),W=Fs(n,Ld(t),null,t.onPush?64:16,n[20],b,i,F,s||null,null);return u.firstCreatePass&&(Mt(B(b,n),u,t.type),Gd(u,b),$d(b,n.length,1)),_a(n,W),n[20]=W}(F,this.componentDef,Je,u,b);if(F)if(i)Ro(b,F,["ng-version",e0.full]);else{const{attrs:it,classes:Gt}=function D_(e){const t=[],n=[];let i=1,r=2;for(;i0&&Cl(b,F,Gt.join(" "))}if(pt=vn(Re,20),void 0!==n){const it=pt.projection=[];for(let Gt=0;Gtb(u,t)),t.contentQueries){const b=Zn();t.contentQueries(1,u,b.directiveStart)}const p=Zn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(_i(p.index),jd(n[1],p,0,p.directiveStart,p.directiveEnd,t),zd(t,u)),u}(wt,this.componentDef,Je,fe,[xv]),Ls(Re,Je,null)}finally{Ui()}return new s0(this.componentType,ut,hs(pt,Je),Je,pt)}}class s0 extends class $b{}{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new t0(r),this.componentType=t}get injector(){return new Lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class fs{}class gp{}const ps=new Map;class yp extends fs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pp(this);const i=jn(t);this._bootstrapComponents=io(i.bootstrap),this._r3Injector=ih(t,n,[{provide:fs,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],X(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=zr.THROW_IF_NOT_FOUND,i=S.Default){return t===zr||t===fs||t===zl?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sc extends gp{constructor(t){super(),this.moduleType=t,null!==jn(t)&&function l0(e){const t=new Set;!function n(i){const r=jn(i,!0),s=r.id;null!==s&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${X(t)} vs ${X(t.name)}`)}(s,ps.get(s),i),ps.set(s,i));const u=io(r.imports);for(const p of u)t.has(p)||(t.add(p),n(p))}(e)}(t)}create(t){return new yp(this.moduleType,t)}}function bp(e,t,n,i){return Cp(ot(),l(),e,t,n,i)}function Cp(e,t,n,i,r,s){const u=t+n;return Yi(e,u,r)?function so(e,t,n){return e[t]=n}(e,u+1,s?i.call(s,r):i(r)):function Ks(e,t){const n=e[t];return n===an?void 0:n}(e,u+1)}function Ap(e,t){const n=sn();let i;const r=e+20;n.firstCreatePass?(i=function v0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=Mi(i.type)),u=L(Us);try{const p=ys(!1),b=s();return ys(p),function Uv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,ot(),r,b),b}finally{L(u)}}function Tp(e,t,n){const i=e+20,r=ot(),s=Sn(r,i);return function Zs(e,t){return e[1].data[t].pure}(r,i)?Cp(r,l(),t,s.transform,n,s):s.transform(n)}function Oc(e){return t=>{setTimeout(e,void 0,t)}}const co=class D0 extends c.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,u;let p=t,b=n||(()=>null),I=i;if(t&&"object"==typeof t){const W=t;p=null===(r=W.next)||void 0===r?void 0:r.bind(W),b=null===(s=W.error)||void 0===s?void 0:s.bind(W),I=null===(u=W.complete)||void 0===u?void 0:u.bind(W)}this.__isAsync&&(b=Oc(b),p&&(p=Oc(p)),I&&(I=Oc(I)));const F=super.subscribe({next:p,error:b,complete:I});return t instanceof o.w0&&t.add(F),F}};function M0(){return this._results[Jo()]()}class Fa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Jo(),i=Fa.prototype;i[n]||(i[n]=M0)}get changes(){return this._changes||(this._changes=new co)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=Pr(t);(this._changesDetected=!function Pm(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=T0,e})();const w0=qs,A0=class extends w0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Fs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),Ls(n,i,t),new Ys(i)}};function T0(){return La(Zn(),ot())}function La(e,t){return 4&e.type?new A0(t,e,hs(e,t)):null}let Na=(()=>{class e{}return e.__NG_ELEMENT_ID__=x0,e})();function x0(){return Op(Zn(),ot())}const S0=Na,xp=class extends S0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return hs(this._hostTNode,this._hostLView)}get injector(){return new Lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ze(this._hostTNode,this._hostLView);if(Fo(t)){const n=fo(t,this._hostLView),i=Co(t);return new Lo(n[1].data[i+8],n)}return new Lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Sp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const u=t&&!function Cs(e){return"function"==typeof e}(t);let p;if(u)p=n;else{const W=n||{};p=W.index,i=W.injector,r=W.projectableNodes,s=W.ngModuleRef}const b=u?t:new xc(en(t)),I=i||this.parentInjector;if(!s&&null==b.ngModule){const fe=(u?I:this.parentInjector).get(fs,null);fe&&(s=fe)}const F=b.create(I,r,void 0,s);return this.insert(F.hostView,p),F}insert(t,n){const i=t._lView,r=i[1];if(function Ri(e){return Ci(e[3])}(i)){const F=this.indexOf(t);if(-1!==F)this.detach(F);else{const W=i[3],fe=new xp(W,W[6],W[3]);fe.detach(fe.indexOf(t))}}const s=this._adjustIndex(n),u=this._lContainer;!function r_(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i0)i.push(u[p/2]);else{const I=s[p+1],F=t[-b];for(let W=10;W{class e{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:p,error:b})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Ni(nm,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const im=new vi("AppId",{providedIn:"root",factory:function rm(){return`${zc()}${zc()}${zc()}`}});function zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const om=new vi("Platform Initializer"),sm=new vi("Platform ID"),am=new vi("appBootstrapListener");let lm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Gc=new vi("LocaleId",{providedIn:"root",factory:()=>Mu(Gc,S.Optional|S.SkipSelf)||function tC(){return"undefined"!=typeof $localize&&$localize.locale||xa}()}),nC=new vi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class iC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rC=(()=>{class e{compileModuleSync(n){return new Sc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=io(jn(n).declarations).reduce((u,p)=>{const b=en(p);return b&&u.push(new xc(b)),u},[]);return new iC(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $c(e){"undefined"==typeof Zone?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Yr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new co(!1),this.onMicrotaskEmpty=new co(!1),this.onStable=new co(!1),this.onError=new co(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function aC(){let e=vt.requestAnimationFrame,t=vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Yc(e),e.isCheckStableRunning=!0,Wc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Yc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,u,p)=>{try{return cm(e),n.invokeTask(r,s,u,p)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,i,r,s,u,p,b)=>{try{return cm(e),n.invoke(r,s,u,p,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Yc(e),Wc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Yr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Yr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,u=s.scheduleEventTask("NgZoneEvent: "+r,t,lC,Ua,Ua);try{return s.runTask(u,n,i)}finally{s.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function Wc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,Wc(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new co,this.onMicrotaskEmpty=new co,this.onStable=new co,this.onError=new co}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let dm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Yr.assertNotInAngularZone(),$c(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$c(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map,Kc.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Kc.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function fC(e){Kc=e}let Kr,Kc=new hC;const fm=new vi("AllowMultipleToken");class gC{constructor(t,n){this.name=t,this.token=n}}function pm(e,t,n=[]){const i=`Platform: ${t}`,r=new vi(i);return(s=[])=>{let u=mm();if(!u||u.injector.get(fm,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const p=n.concat(s).concat({provide:r,useValue:!0},{provide:Gl,useValue:"platform"});!function _C(e){if(Kr&&!Kr.destroyed&&!Kr.injector.get(fm,!1))throw new Qe(400,"");Kr=e.get(gm);const t=e.get(om,null);t&&t.forEach(n=>n())}(zr.create({providers:p,name:i}))}return function vC(e){const t=mm();if(!t)throw new Qe(401,"");return t}()}}function mm(){return Kr&&!Kr.destroyed?Kr:null}let gm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const p=function yC(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new Yr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),b=[{provide:Yr,useValue:p}];return p.run(()=>{const I=zr.create({providers:b,parent:this.injector,name:n.moduleType.name}),F=n.create(I),W=F.injector.get(ca,null);if(!W)throw new Qe(402,"");return p.runOutsideAngular(()=>{const fe=p.onError.subscribe({next:Re=>{W.handleError(Re)}});F.onDestroy(()=>{qc(this._modules,F),fe.unsubscribe()})}),function bC(e,t,n){try{const i=n();return sc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(W,p,()=>{const fe=F.injector.get(jc);return fe.runInitializers(),fe.donePromise.then(()=>(function qy(e){Ut(e,"Expected localeId to be defined"),"string"==typeof e&&(Bf=e.toLowerCase().replace(/_/g,"-"))}(F.injector.get(Gc,xa)||xa),this._moduleDoBootstrap(F),F))})})}bootstrapModule(n,i=[]){const r=_m({},i);return function pC(e,t,n){const i=new Sc(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(Zc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Qe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Qe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Ni(zr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();function _m(e,t){return Array.isArray(t)?t.reduce(_m,e):Object.assign(Object.assign({},e),t)}let Zc=(()=>{class e{constructor(n,i,r,s,u){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const p=new g.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),b=new g.y(I=>{let F;this._zone.runOutsideAngular(()=>{F=this._zone.onStable.subscribe(()=>{Yr.assertNotInAngularZone(),$c(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const W=this._zone.onUnstable.subscribe(()=>{Yr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{F.unsubscribe(),W.unsubscribe()}});this.isStable=(0,Y.T)(p,b.pipe(function ue(e={}){const{connector:t=(()=>new c.x),resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return s=>{let u=null,p=null,b=null,I=0,F=!1,W=!1;const fe=()=>{null==p||p.unsubscribe(),p=null},Re=()=>{fe(),u=b=null,F=W=!1},Je=()=>{const ut=u;Re(),null==ut||ut.unsubscribe()};return(0,Ce.e)((ut,pt)=>{I++,!W&&!F&&fe();const wt=b=null!=b?b:t();pt.add(()=>{I--,0===I&&!W&&!F&&(p=te(Je,r))}),wt.subscribe(pt),u||(u=new De.Hp({next:it=>wt.next(it),error:it=>{W=!0,fe(),p=te(Re,n,it),wt.error(it)},complete:()=>{F=!0,fe(),p=te(Re,i),wt.complete()}}),(0,ce.D)(ut).subscribe(u))})(s)}}()))}bootstrap(n,i){if(!this._initStatus.done)throw new Qe(405,"");let r;r=n instanceof up?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=function mC(e){return e.isBoundToModule}(r)?void 0:this._injector.get(fs),p=r.create(zr.NULL,[],i||r.selector,s),b=p.location.nativeElement,I=p.injector.get(dm,null),F=I&&p.injector.get(hm);return I&&F&&F.registerApplication(b,I),p.onDestroy(()=>{this.detachView(p.hostView),qc(this.components,p),F&&F.unregisterApplication(b)}),this._loadComponent(p),p}tick(){if(this._runningTick)throw new Qe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;qc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(am,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr),Ni(zr),Ni(ca),Ni(Ra),Ni(jc))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ym=!0;function EC(){ym=!1}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=MC,e})();function MC(e){return function wC(e,t,n){if(Zi(e)&&!n){const i=Vn(e.index,t);return new Ys(i,i)}return 47&e.type?new Ys(t[16],t):null}(Zn(),ot(),16==(16&e))}class Mm{constructor(){}supports(t){return Bs(t)}create(t){return new IC(t)}}const OC=(e,t)=>t;class IC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(r,p),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,p,u,r)),Object.is(n.item,p)||this._addIdentityChange(n,p)):(n=this._mismatch(n,p,u,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new PC(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new wm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class PC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class wm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new RC,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Am(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,u=r._next;return s&&(s._next=u),u&&(u._prev=s),r._next=null,r._prev=null,r}const i=new FC(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class FC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function xm(){return new tu([new Mm])}let tu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Qe(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:xm}),e})();function Sm(){return new nu([new Tm])}let nu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new Qe(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:Sm}),e})();const BC=pm(null,"core",[{provide:sm,useValue:"unknown"},{provide:gm,deps:[zr]},{provide:hm,deps:[]},{provide:lm,deps:[]}]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Ni(Zc))},e.\u0275mod=Ie({type:e}),e.\u0275inj=He({}),e})()},2382:(qe,ye,C)=>{C.d(ye,{Zs:()=>T,sg:()=>sr,u5:()=>Vn,Cf:()=>pe,JU:()=>ke,a5:()=>at,JL:()=>L,F:()=>gn,kI:()=>ve,_Y:()=>On});var c=C(4893),g=(C(9808),C(8306)),Y=C(4742),ce=C(8421),q=C(3269),De=C(5403),Ce=C(3268),ue=C(1810),se=C(2076),de=C(4004);const ke=new c.OlP("NgValueAccessor");function z(x){return null==x||0===x.length}function Q(x){return null!=x&&"number"==typeof x.length}const pe=new c.OlP("NgValidators"),Te=new c.OlP("NgAsyncValidators"),Ne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ve{static min(M){return function Me(x){return M=>{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y>x?{max:{max:x,actual:M.value}}:null}}(M)}static required(M){return Ae(M)}static requiredTrue(M){return tt(M)}static email(M){return function Fe(x){return z(x.value)||Ne.test(x.value)?null:{email:!0}}(M)}static minLength(M){return function Ct(x){return M=>z(M.value)||!Q(M.value)?null:M.value.lengthQ(M.value)&&M.value.length>x?{maxlength:{requiredLength:x,actualLength:M.value.length}}:null}(M)}static pattern(M){return function Jt(x){if(!x)return yt;let M,y;return"string"==typeof x?(y="","^"!==x.charAt(0)&&(y+="^"),y+=x,"$"!==x.charAt(x.length-1)&&(y+="$"),M=new RegExp(y)):(y=x.toString(),M=x),U=>{if(z(U.value))return null;const We=U.value;return M.test(We)?null:{pattern:{requiredPattern:y,actualValue:We}}}}(M)}static nullValidator(M){return null}static compose(M){return on(M)}static composeAsync(M){return je(M)}}function Ae(x){return z(x.value)?{required:!0}:null}function tt(x){return!0===x.value?null:{required:!0}}function yt(x){return null}function Rt(x){return null!=x}function Wt(x){const M=(0,c.QGY)(x)?(0,se.D)(x):x;return(0,c.CqO)(M),M}function Pt(x){let M={};return x.forEach(y=>{M=null!=y?Object.assign(Object.assign({},M),y):M}),0===Object.keys(M).length?null:M}function mn(x,M){return M.map(y=>y(x))}function xt(x){return x.map(M=>function Ut(x){return!x.validate}(M)?M:y=>M.validate(y))}function on(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return Pt(mn(y,M))}}function Xe(x){return null!=x?on(xt(x)):null}function je(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return function te(...x){const M=(0,q.jO)(x),{args:y,keys:U}=(0,Y.D)(x),We=new g.y(Et=>{const{length:Dn}=y;if(!Dn)return void Et.complete();const gi=new Array(Dn);let Gi=Dn,Fi=Dn;for(let ot=0;ot{sn||(sn=!0,Fi--),gi[ot]=Jr},()=>Gi--,void 0,()=>{(!Gi||!sn)&&(Fi||Et.next(U?(0,ue.n)(U,gi):gi),Et.complete())}))}});return M?We.pipe((0,Ce.Z)(M)):We}(mn(y,M).map(Wt)).pipe((0,de.U)(Pt))}}function J(x){return null!=x?je(xt(x)):null}function K(x,M){return null===x?[M]:Array.isArray(x)?[...x,M]:[x,M]}function He(x){return x._rawValidators}function Ge(x){return x._rawAsyncValidators}function lt(x){return x?Array.isArray(x)?x:[x]:[]}function St(x,M){return Array.isArray(x)?x.includes(M):x===M}function Ht(x,M){const y=lt(M);return lt(x).forEach(We=>{St(y,We)||y.push(We)}),y}function bt(x,M){return lt(M).filter(y=>!St(x,y))}class Nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(M){this._rawValidators=M||[],this._composedValidatorFn=Xe(this._rawValidators)}_setAsyncValidators(M){this._rawAsyncValidators=M||[],this._composedAsyncValidatorFn=J(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(M){this._onDestroyCallbacks.push(M)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(M=>M()),this._onDestroyCallbacks=[]}reset(M){this.control&&this.control.reset(M)}hasError(M,y){return!!this.control&&this.control.hasError(M,y)}getError(M,y){return this.control?this.control.getError(M,y):null}}class at extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pe extends Nt{get formDirective(){return null}get path(){return null}}let L=(()=>{class x extends class E{constructor(M){this._cd=M}is(M){var y,U,We;return"submitted"===M?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(We=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===We?void 0:We[M])}}{constructor(y){super(y)}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(Pe,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&c.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[c.qOj]}),x})();function he(x,M){Zt(x,M),M.valueAccessor.writeValue(x.value),function Dt(x,M){M.valueAccessor.registerOnChange(y=>{x._pendingValue=y,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ve(x,M)})}(x,M),function _e(x,M){const y=(U,We)=>{M.valueAccessor.writeValue(U),We&&M.viewToModelUpdate(U)};x.registerOnChange(y),M._registerOnDestroy(()=>{x._unregisterOnChange(y)})}(x,M),function Rn(x,M){M.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ve(x,M),"submit"!==x.updateOn&&x.markAsTouched()})}(x,M),function At(x,M){if(M.valueAccessor.setDisabledState){const y=U=>{M.valueAccessor.setDisabledState(U)};x.registerOnDisabledChange(y),M._registerOnDestroy(()=>{x._unregisterOnDisabledChange(y)})}}(x,M)}function Se(x,M,y=!0){const U=()=>{};M.valueAccessor&&(M.valueAccessor.registerOnChange(U),M.valueAccessor.registerOnTouched(U)),Kt(x,M),x&&(M._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function st(x,M){x.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(M)})}function Zt(x,M){const y=He(x);null!==M.validator?x.setValidators(K(y,M.validator)):"function"==typeof y&&x.setValidators([y]);const U=Ge(x);null!==M.asyncValidator?x.setAsyncValidators(K(U,M.asyncValidator)):"function"==typeof U&&x.setAsyncValidators([U]);const We=()=>x.updateValueAndValidity();st(M._rawValidators,We),st(M._rawAsyncValidators,We)}function Kt(x,M){let y=!1;if(null!==x){if(null!==M.validator){const We=He(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Dn=>Dn!==M.validator);Et.length!==We.length&&(y=!0,x.setValidators(Et))}}if(null!==M.asyncValidator){const We=Ge(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Dn=>Dn!==M.asyncValidator);Et.length!==We.length&&(y=!0,x.setAsyncValidators(Et))}}}const U=()=>{};return st(M._rawValidators,U),st(M._rawAsyncValidators,U),y}function Ve(x,M){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),M.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function ne(x,M){Zt(x,M)}function en(x,M){x._syncPendingControls(),M.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function Cn(x,M){const y=x.indexOf(M);y>-1&&x.splice(y,1)}const Wn="VALID",bi="INVALID",si="PENDING",fi="DISABLED";function ji(x){return(pn(x)?x.validators:x)||null}function zn(x){return Array.isArray(x)?Xe(x):x||null}function ft(x,M){return(pn(M)?M.asyncValidators:x)||null}function Qt(x){return Array.isArray(x)?J(x):x||null}function pn(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}const Fn=x=>x instanceof jt,ai=x=>x instanceof ui;function ci(x){return Fn(x)?x.value:x.getRawValue()}function tn(x,M){const y=ai(x),U=x.controls;if(!(y?Object.keys(U):U).length)throw new c.vHH(1e3,"");if(!U[M])throw new c.vHH(1001,"")}function Yn(x,M){ai(x),x._forEachChild((U,We)=>{if(void 0===M[We])throw new c.vHH(1002,"")})}class pi{constructor(M,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=M,this._rawAsyncValidators=y,this._composedValidatorFn=zn(this._rawValidators),this._composedAsyncValidatorFn=Qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(M){this._rawValidators=this._composedValidatorFn=M}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(M){this._rawAsyncValidators=this._composedAsyncValidatorFn=M}get parent(){return this._parent}get valid(){return this.status===Wn}get invalid(){return this.status===bi}get pending(){return this.status==si}get disabled(){return this.status===fi}get enabled(){return this.status!==fi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(M){this._rawValidators=M,this._composedValidatorFn=zn(M)}setAsyncValidators(M){this._rawAsyncValidators=M,this._composedAsyncValidatorFn=Qt(M)}addValidators(M){this.setValidators(Ht(M,this._rawValidators))}addAsyncValidators(M){this.setAsyncValidators(Ht(M,this._rawAsyncValidators))}removeValidators(M){this.setValidators(bt(M,this._rawValidators))}removeAsyncValidators(M){this.setAsyncValidators(bt(M,this._rawAsyncValidators))}hasValidator(M){return St(this._rawValidators,M)}hasAsyncValidator(M){return St(this._rawAsyncValidators,M)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(M={}){this.touched=!0,this._parent&&!M.onlySelf&&this._parent.markAsTouched(M)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(M=>M.markAllAsTouched())}markAsUntouched(M={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}markAsDirty(M={}){this.pristine=!1,this._parent&&!M.onlySelf&&this._parent.markAsDirty(M)}markAsPristine(M={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}markAsPending(M={}){this.status=si,!1!==M.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!M.onlySelf&&this._parent.markAsPending(M)}disable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=fi,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this._updateValue(),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=Wn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(M){this._parent&&!M.onlySelf&&(this._parent.updateValueAndValidity(M),M.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(M){this._parent=M}updateValueAndValidity(M={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wn||this.status===si)&&this._runAsyncValidator(M.emitEvent)),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!M.onlySelf&&this._parent.updateValueAndValidity(M)}_updateTreeValidity(M={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(M)),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fi:Wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(M){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const y=Wt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:M})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(M,y={}){this.errors=M,this._updateControlsErrors(!1!==y.emitEvent)}get(M){return function Ln(x,M,y){if(null==M||(Array.isArray(M)||(M=M.split(y)),Array.isArray(M)&&0===M.length))return null;let U=x;return M.forEach(We=>{U=ai(U)?U.controls.hasOwnProperty(We)?U.controls[We]:null:(x=>x instanceof Jn)(U)&&U.at(We)||null}),U}(this,M,".")}getError(M,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[M]:null}hasError(M,y){return!!this.getError(M,y)}get root(){let M=this;for(;M._parent;)M=M._parent;return M}_updateControlsErrors(M){this.status=this._calculateStatus(),M&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(M)}_initObservables(){this.valueChanges=new c.vpe,this.statusChanges=new c.vpe}_calculateStatus(){return this._allControlsDisabled()?fi:this.errors?bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(bi)?bi:Wn}_anyControlsHaveStatus(M){return this._anyControls(y=>y.status===M)}_anyControlsDirty(){return this._anyControls(M=>M.dirty)}_anyControlsTouched(){return this._anyControls(M=>M.touched)}_updatePristine(M={}){this.pristine=!this._anyControlsDirty(),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}_updateTouched(M={}){this.touched=this._anyControlsTouched(),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}_isBoxedValue(M){return"object"==typeof M&&null!==M&&2===Object.keys(M).length&&"value"in M&&"disabled"in M}_registerOnCollectionChange(M){this._onCollectionChange=M}_setUpdateStrategy(M){pn(M)&&null!=M.updateOn&&(this._updateOn=M.updateOn)}_parentMarkedDirty(M){return!M&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class jt extends pi{constructor(M=null,y,U){super(ji(y),ft(U,y)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(M),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pn(y)&&y.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(M)?M.value:M)}setValue(M,y={}){this.value=this._pendingValue=M,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(M,y={}){this.setValue(M,y)}reset(M=this.defaultValue,y={}){this._applyFormState(M),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(M){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(M){this._onChange.push(M)}_unregisterOnChange(M){Cn(this._onChange,M)}registerOnDisabledChange(M){this._onDisabledChange.push(M)}_unregisterOnDisabledChange(M){Cn(this._onDisabledChange,M)}_forEachChild(M){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(M){this._isBoxedValue(M)?(this.value=this._pendingValue=M.value,M.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=M}}class ui extends pi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(M,y){return this.controls[M]?this.controls[M]:(this.controls[M]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(M,y,U={}){this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],y&&this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(M){return this.controls.hasOwnProperty(M)&&this.controls[M].enabled}setValue(M,y={}){Yn(this,M),Object.keys(M).forEach(U=>{tn(this,U),this.controls[U].setValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(Object.keys(M).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M={},y={}){this._forEachChild((U,We)=>{U.reset(M[We],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(M,y,U)=>(M[U]=ci(y),M))}_syncPendingControls(){let M=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&M(U,y)})}_setUpControls(){this._forEachChild(M=>{M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(M){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&M(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(M,y,U)=>((y.enabled||this.disabled)&&(M[U]=y.value),M))}_reduceChildren(M,y){let U=M;return this._forEachChild((We,Et)=>{U=y(U,We,Et)}),U}_allControlsDisabled(){for(const M of Object.keys(this.controls))if(this.controls[M].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Jn extends pi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(M){return this.controls[M]}push(M,y={}){this.controls.push(M),this._registerControl(M),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(M,y,U={}){this.controls.splice(M,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),y&&(this.controls.splice(M,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(M,y={}){Yn(this,M),M.forEach((U,We)=>{tn(this,We),this.at(We).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(M.forEach((U,We)=>{this.at(We)&&this.at(We).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M=[],y={}){this._forEachChild((U,We)=>{U.reset(M[We],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(M=>ci(M))}clear(M={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:M.emitEvent}))}_syncPendingControls(){let M=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){this.controls.forEach((y,U)=>{M(y,U)})}_updateValue(){this.value=this.controls.filter(M=>M.enabled||this.disabled).map(M=>M.value)}_anyControls(M){return this.controls.some(y=>y.enabled&&M(y))}_setUpControls(){this._forEachChild(M=>this._registerControl(M))}_allControlsDisabled(){for(const M of this.controls)if(M.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(M){M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)}}const Si={provide:Pe,useExisting:(0,c.Gpc)(()=>gn)},Gn=(()=>Promise.resolve(null))();let gn=(()=>{class x extends Pe{constructor(y,U){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.vpe,this.form=new ui({},Xe(y),J(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){Gn.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),he(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),this._directives.delete(y)})}addFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path),We=new ui({});ne(We,y),U.registerControl(y.name,We),We.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){Gn.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,en(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Si]),c.qOj]}),x})(),On=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),x})(),fr=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({}),x})();const xr={provide:Pe,useExisting:(0,c.Gpc)(()=>sr)};let sr=(()=>{class x extends Pe{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new c.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Kt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return he(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Se(y.control||null,y,!1),Cn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,en(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,We=this.form.get(y.path);U!==We&&(Se(U||null,y),Fn(We)&&(he(We,y),y.control=We))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);ne(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Ie(x,M){return Kt(x,M)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zt(this.form,this),this._oldForm&&Kt(this._oldForm,this)}_checkFormPresent(){}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([xr]),c.qOj,c.TTD]}),x})(),Tn=(()=>{class x{constructor(){this._validator=yt}ngOnChanges(y){if(this.inputName in y){const U=this.normalizeInput(y[this.inputName].currentValue);this._enabled=this.enabled(U),this._validator=this._enabled?this.createValidator(U):yt,this._onChange&&this._onChange()}}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}enabled(y){return null!=y}}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,features:[c.TTD]}),x})();const Pi={provide:pe,useExisting:(0,c.Gpc)(()=>N),multi:!0},A={provide:pe,useExisting:(0,c.Gpc)(()=>T),multi:!0};let N=(()=>{class x extends Tn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=y=>function ti(x){return null!=x&&!1!==x&&"false"!=`${x}`}(y),this.createValidator=y=>Ae}enabled(y){return y}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},inputs:{required:"required"},features:[c._Bn([Pi]),c.qOj]}),x})(),T=(()=>{class x extends N{constructor(){super(...arguments),this.createValidator=y=>tt}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},features:[c._Bn([A]),c.qOj]}),x})(),Sn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[[fr]]}),x})(),Vn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[Sn]}),x})()},7423:(qe,ye,C)=>{C.d(ye,{zs:()=>de,lW:()=>se,ot:()=>X});var c=C(4893),o=C(508),g=C(6360),Y=C(9950);const ce=["mat-button",""],q=["*"],ue=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],te=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(le){this._elementRef=le}})));let se=(()=>{class le extends te{constructor(Be,Z,et){super(Be),this._focusMonitor=Z,this._animationMode=et,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ye of ue)this._hasHostAttributes(Ye)&&this._getHostElement().classList.add(Ye);Be.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Be,Z){Be?this._focusMonitor.focusVia(this._getHostElement(),Be,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Be){return Be.some(Z=>this._getHostElement().hasAttribute(Z))}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(c.SBq),c.Y36(Y.tE),c.Y36(g.Qb,8))},le.\u0275cmp=c.Xpm({type:le,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Be,Z){if(1&Be&&c.Gf(o.wG,5),2&Be){let et;c.iGM(et=c.CRH())&&(Z.ripple=et.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Be,Z){2&Be&&(c.uIk("disabled",Z.disabled||null),c.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[c.qOj],attrs:ce,ngContentSelectors:q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Be,Z){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),c.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[o.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),le})(),de=(()=>{class le extends se{constructor(Be,Z,et,Ye){super(Z,Be,et),this._ngZone=Ye,this._haltDisabledEvents=Qe=>{this.disabled&&(Qe.preventDefault(),Qe.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(Y.tE),c.Y36(c.SBq),c.Y36(g.Qb,8),c.Y36(c.R0b,8))},le.\u0275cmp=c.Xpm({type:le,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(Be,Z){2&Be&&(c.uIk("tabindex",Z.disabled?-1:Z.tabIndex||0)("disabled",Z.disabled||null)("aria-disabled",Z.disabled.toString()),c.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[c.qOj],attrs:ce,ngContentSelectors:q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Be,Z){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),c.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[o.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),le})(),X=(()=>{class le{}return le.\u0275fac=function(Be){return new(Be||le)},le.\u0275mod=c.oAB({type:le}),le.\u0275inj=c.cJS({imports:[[o.si,o.BQ],o.BQ]}),le})()},508:(qe,ye,C)=>{C.d(ye,{rD:()=>xt,K7:()=>ze,HF:()=>L,BQ:()=>me,ey:()=>Yt,Ng:()=>vt,wG:()=>E,si:()=>S,CB:()=>dn,jH:()=>dt,pj:()=>Ne,Kr:()=>ve,Id:()=>Te,FD:()=>xe,sb:()=>Me});var c=C(4893),o=C(226),Y=C(9808),ce=C(925),q=C(9950),De=C(3191),Ce=C(7579),ue=C(6360),te=C(1159);function X(Le,we){if(1&Le&&c._UZ(0,"mat-pseudo-checkbox",4),2&Le){const V=c.oxw();c.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function le(Le,we){if(1&Le&&(c.TgZ(0,"span",5),c._uU(1),c.qZA()),2&Le){const V=c.oxw();c.xp6(1),c.hij("(",V.group.label,")")}}const ke=["*"],Qe=new c.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ye(){return!0}});let me=(()=>{class Le{constructor(V,j,$){this._sanityChecks=j,this._document=$,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,ce.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return Le.\u0275fac=function(V){return new(V||Le)(c.LFG(q.qm),c.LFG(Qe,8),c.LFG(Y.K0))},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[o.vT],o.vT]}),Le})();function Te(Le){return class extends Le{constructor(...we){super(...we),this._disabled=!1}get disabled(){return this._disabled}set disabled(we){this._disabled=(0,De.Ig)(we)}}}function Ne(Le,we){return class extends Le{constructor(...V){super(...V),this.defaultColor=we,this.color=we}get color(){return this._color}set color(V){const j=V||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}}}function ve(Le){return class extends Le{constructor(...we){super(...we),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(we){this._disableRipple=(0,De.Ig)(we)}}}function Me(Le,we=0){return class extends Le{constructor(...V){super(...V),this._tabIndex=we,this.defaultTabIndex=we}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,De.su)(V):this.defaultTabIndex}}}function xe(Le){return class extends Le{constructor(...we){super(...we),this.stateChanges=new Ce.x,this.errorState=!1}updateErrorState(){const we=this.errorState,he=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);he!==we&&(this.errorState=he,this.stateChanges.next())}}}let xt=(()=>{class Le{isErrorState(V,j){return!!(V&&V.invalid&&(V.touched||j&&j.submitted))}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275prov=c.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();class K{constructor(we,V,j){this._renderer=we,this.element=V,this.config=j,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const He={enterDuration:225,exitDuration:150},lt=(0,ce.i$)({passive:!0}),St=["mousedown","touchstart"],Ht=["mouseup","mouseleave","touchend","touchcancel"];class bt{constructor(we,V,j,$){this._target=we,this._ngZone=V,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,$.isBrowser&&(this._containerElement=(0,De.fI)(j))}fadeInRipple(we,V,j={}){const $=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),he=Object.assign(Object.assign({},He),j.animation);j.centered&&(we=$.left+$.width/2,V=$.top+$.height/2);const Se=j.radius||function at(Le,we,V){const j=Math.max(Math.abs(Le-V.left),Math.abs(Le-V.right)),$=Math.max(Math.abs(we-V.top),Math.abs(we-V.bottom));return Math.sqrt(j*j+$*$)}(we,V,$),st=we-$.left,At=V-$.top,Zt=he.enterDuration,Kt=document.createElement("div");Kt.classList.add("mat-ripple-element"),Kt.style.left=st-Se+"px",Kt.style.top=At-Se+"px",Kt.style.height=2*Se+"px",Kt.style.width=2*Se+"px",null!=j.color&&(Kt.style.backgroundColor=j.color),Kt.style.transitionDuration=`${Zt}ms`,this._containerElement.appendChild(Kt),function Nt(Le){window.getComputedStyle(Le).getPropertyValue("opacity")}(Kt),Kt.style.transform="scale(1)";const Dt=new K(this,Kt,j);return Dt.state=0,this._activeRipples.add(Dt),j.persistent||(this._mostRecentTransientRipple=Dt),this._runTimeoutOutsideZone(()=>{const Rn=Dt===this._mostRecentTransientRipple;Dt.state=1,!j.persistent&&(!Rn||!this._isPointerDown)&&Dt.fadeOut()},Zt),Dt}fadeOutRipple(we){const V=this._activeRipples.delete(we);if(we===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!V)return;const j=we.element,$=Object.assign(Object.assign({},He),we.config.animation);j.style.transitionDuration=`${$.exitDuration}ms`,j.style.opacity="0",we.state=2,this._runTimeoutOutsideZone(()=>{we.state=3,j.remove()},$.exitDuration)}fadeOutAll(){this._activeRipples.forEach(we=>we.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(we=>{we.config.persistent||we.fadeOut()})}setupTriggerEvents(we){const V=(0,De.fI)(we);!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,this._registerEvents(St))}handleEvent(we){"mousedown"===we.type?this._onMousedown(we):"touchstart"===we.type?this._onTouchStart(we):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ht),this._pointerUpEventsRegistered=!0)}_onMousedown(we){const V=(0,q.X6)(we),j=this._lastTouchStartEvent&&Date.now(){!we.config.persistent&&(1===we.state||we.config.terminateOnPointerUp&&0===we.state)&&we.fadeOut()}))}_runTimeoutOutsideZone(we,V=0){this._ngZone.runOutsideAngular(()=>setTimeout(we,V))}_registerEvents(we){this._ngZone.runOutsideAngular(()=>{we.forEach(V=>{this._triggerElement.addEventListener(V,this,lt)})})}_removeTriggerEvents(){this._triggerElement&&(St.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}),this._pointerUpEventsRegistered&&Ht.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}))}}const Pe=new c.OlP("mat-ripple-global-options");let E=(()=>{class Le{constructor(V,j,$,he,Se){this._elementRef=V,this._animationMode=Se,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=he||{},this._rippleRenderer=new bt(this,j,V,$)}get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(V,j=0,$){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,j,Object.assign(Object.assign({},this.rippleConfig),$)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),V))}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(ce.t4),c.Y36(Pe,8),c.Y36(ue.Qb,8))},Le.\u0275dir=c.lG2({type:Le,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,j){2&V&&c.ekj("mat-ripple-unbounded",j.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Le})(),S=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me],me]}),Le})(),D=(()=>{class Le{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(ue.Qb,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,j){2&V&&c.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===j.state)("mat-pseudo-checkbox-checked","checked"===j.state)("mat-pseudo-checkbox-disabled",j.disabled)("_mat-animation-noopable","NoopAnimations"===j._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,j){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Le})(),P=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me]]}),Le})();const L=new c.OlP("MAT_OPTION_PARENT_COMPONENT"),ze=new c.OlP("MatOptgroup");let ct=0;class Ot{constructor(we,V=!1){this.source=we,this.isUserInput=V}}let nn=(()=>{class Le{constructor(V,j,$,he){this._element=V,this._changeDetectorRef=j,this._parent=$,this.group=he,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ct++,this.onSelectionChange=new c.vpe,this._stateChanges=new Ce.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(V){this._disabled=(0,De.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,j){const $=this._getHostElement();"function"==typeof $.focus&&$.focus(j)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===te.K5||V.keyCode===te.L_)&&!(0,te.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue=V,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new Ot(this,V))}}return Le.\u0275fac=function(V){c.$Z()},Le.\u0275dir=c.lG2({type:Le,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Le})(),Yt=(()=>{class Le extends nn{constructor(V,j,$,he){super(V,j,$,he)}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(L,8),c.Y36(ze,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(V,j){1&V&&c.NdJ("click",function(){return j._selectViaInteraction()})("keydown",function(he){return j._handleKeydown(he)}),2&V&&(c.Ikx("id",j.id),c.uIk("tabindex",j._getTabIndex())("aria-selected",j._getAriaSelected())("aria-disabled",j.disabled.toString()),c.ekj("mat-selected",j.selected)("mat-option-multiple",j.multiple)("mat-active",j.active)("mat-option-disabled",j.disabled))},exportAs:["matOption"],features:[c.qOj],ngContentSelectors:ke,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(V,j){1&V&&(c.F$t(),c.YNc(0,X,1,2,"mat-pseudo-checkbox",0),c.TgZ(1,"span",1),c.Hsn(2),c.qZA(),c.YNc(3,le,2,1,"span",2),c._UZ(4,"div",3)),2&V&&(c.Q6J("ngIf",j.multiple),c.xp6(3),c.Q6J("ngIf",j.group&&j.group._inert),c.xp6(1),c.Q6J("matRippleTrigger",j._getHostElement())("matRippleDisabled",j.disabled||j.disableRipple))},directives:[D,Y.O5,E],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Le})();function dn(Le,we,V){if(V.length){let j=we.toArray(),$=V.toArray(),he=0;for(let Se=0;SeV+j?Math.max(0,Le-j+we):V}let vt=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[S,Y.ez,me,P]]}),Le})()},8966:(qe,ye,C)=>{C.d(ye,{WI:()=>Me,uw:()=>Jt,H8:()=>Ut,ZT:()=>Wt,xY:()=>mn,Is:()=>on,so:()=>Ne,uh:()=>Pt});var c=C(9776),o=C(7429),g=C(4893),Y=C(508),ce=C(226),q=C(7579),De=C(9770),Ce=C(727),ue=C(9646),te=C(9300),se=C(5698),de=C(8675),X=C(925),le=C(9808),ke=C(1777),Be=C(9950),Z=C(1159),et=C(6360);function Ye(Xe,je){}class Qe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const me={dialogContainer:(0,ke.X$)("dialogContainer",[(0,ke.SB)("void, exit",(0,ke.oB)({opacity:0,transform:"scale(0.7)"})),(0,ke.SB)("enter",(0,ke.oB)({transform:"none"})),(0,ke.eR)("* => enter",(0,ke.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ke.oB)({transform:"none",opacity:1}))),(0,ke.eR)("* => void, * => exit",(0,ke.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ke.oB)({opacity:0})))])};let Q=(()=>{class Xe extends o.en{constructor(J,K,He,Ge,lt,St,Ht,bt){super(),this._elementRef=J,this._focusTrapFactory=K,this._changeDetectorRef=He,this._config=lt,this._interactivityChecker=St,this._ngZone=Ht,this._focusMonitor=bt,this._animationStateChanged=new g.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Nt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Nt)),this._ariaLabelledBy=lt.ariaLabelledBy||null,this._document=Ge}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(J)}attachTemplatePortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(J)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(J,K){this._interactivityChecker.isFocusable(J)||(J.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{J.addEventListener("blur",()=>J.removeAttribute("tabindex")),J.addEventListener("mousedown",()=>J.removeAttribute("tabindex"))})),J.focus(K)}_focusByCssSelector(J,K){let He=this._elementRef.nativeElement.querySelector(J);He&&this._forceFocus(He,K)}_trapFocus(){const J=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||J.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(K=>{K||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const J=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&J&&"function"==typeof J.focus){const K=(0,X.ht)(),He=this._elementRef.nativeElement;(!K||K===this._document.body||K===He||He.contains(K))&&(this._focusMonitor?(this._focusMonitor.focusVia(J,this._closeInteractionType),this._closeInteractionType=null):J.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,X.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const J=this._elementRef.nativeElement,K=(0,X.ht)();return J===K||J.contains(K)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(g.SBq),g.Y36(Be.qV),g.Y36(g.sBO),g.Y36(le.K0,8),g.Y36(Qe),g.Y36(Be.ic),g.Y36(g.R0b),g.Y36(Be.tE))},Xe.\u0275dir=g.lG2({type:Xe,viewQuery:function(J,K){if(1&J&&g.Gf(o.Pl,7),2&J){let He;g.iGM(He=g.CRH())&&(K._portalOutlet=He.first)}},features:[g.qOj]}),Xe})(),pe=(()=>{class Xe extends Q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:J,totalTime:K}){"enter"===J?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:K})):"exit"===J&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:K}))}_onAnimationStart({toState:J,totalTime:K}){"enter"===J?this._animationStateChanged.next({state:"opening",totalTime:K}):("exit"===J||"void"===J)&&this._animationStateChanged.next({state:"closing",totalTime:K})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Xe.\u0275fac=function(){let je;return function(K){return(je||(je=g.n5z(Xe)))(K||Xe)}}(),Xe.\u0275cmp=g.Xpm({type:Xe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(J,K){1&J&&g.WFA("@dialogContainer.start",function(Ge){return K._onAnimationStart(Ge)})("@dialogContainer.done",function(Ge){return K._onAnimationDone(Ge)}),2&J&&(g.Ikx("id",K._id),g.uIk("role",K._config.role)("aria-labelledby",K._config.ariaLabel?null:K._ariaLabelledBy)("aria-label",K._config.ariaLabel)("aria-describedby",K._config.ariaDescribedBy||null),g.d8E("@dialogContainer",K._state))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(J,K){1&J&&g.YNc(0,Ye,0,0,"ng-template",0)},directives:[o.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[me.dialogContainer]}}),Xe})(),Te=0;class Ne{constructor(je,J,K="mat-dialog-"+Te++){this._overlayRef=je,this._containerInstance=J,this.id=K,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new q.x,this._afterClosed=new q.x,this._beforeClosed=new q.x,this._state=0,J._id=K,J._animationStateChanged.pipe((0,te.h)(He=>"opened"===He.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),J._animationStateChanged.pipe((0,te.h)(He=>"closed"===He.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),je.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),je.keydownEvents().pipe((0,te.h)(He=>He.keyCode===Z.hY&&!this.disableClose&&!(0,Z.Vb)(He))).subscribe(He=>{He.preventDefault(),ve(this,"keyboard")}),je.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ve(this,"mouse")})}close(je){this._result=je,this._containerInstance._animationStateChanged.pipe((0,te.h)(J=>"closing"===J.state),(0,se.q)(1)).subscribe(J=>{this._beforeClosed.next(je),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),J.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(je){let J=this._getPositionStrategy();return je&&(je.left||je.right)?je.left?J.left(je.left):J.right(je.right):J.centerHorizontally(),je&&(je.top||je.bottom)?je.top?J.top(je.top):J.bottom(je.bottom):J.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(je="",J=""){return this._overlayRef.updateSize({width:je,height:J}),this._overlayRef.updatePosition(),this}addPanelClass(je){return this._overlayRef.addPanelClass(je),this}removePanelClass(je){return this._overlayRef.removePanelClass(je),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ve(Xe,je,J){return void 0!==Xe._containerInstance&&(Xe._containerInstance._closeInteractionType=je),Xe.close(J)}const Me=new g.OlP("MatDialogData"),xe=new g.OlP("mat-dialog-default-options"),Ae=new g.OlP("mat-dialog-scroll-strategy"),Ct={provide:Ae,deps:[c.aV],useFactory:function Fe(Xe){return()=>Xe.scrollStrategies.block()}};let mt=(()=>{class Xe{constructor(J,K,He,Ge,lt,St,Ht,bt,Nt,at){this._overlay=J,this._injector=K,this._defaultOptions=He,this._parentDialog=Ge,this._overlayContainer=lt,this._dialogRefConstructor=Ht,this._dialogContainerType=bt,this._dialogDataToken=Nt,this._animationMode=at,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q.x,this._afterOpenedAtThisLevel=new q.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,De.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,de.O)(void 0))),this._scrollStrategy=St}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const J=this._parentDialog;return J?J._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(J,K){if(K=function yt(Xe,je){return Object.assign(Object.assign({},je),Xe)}(K,this._defaultOptions||new Qe),K.id&&this.getDialogById(K.id),this._dialogAnimatingOpen)return this._lastDialogRef;const He=this._createOverlay(K),Ge=this._attachDialogContainer(He,K);if("NoopAnimations"!==this._animationMode){const St=Ge._animationStateChanged.subscribe(Ht=>{"opening"===Ht.state&&(this._dialogAnimatingOpen=!0),"opened"===Ht.state&&(this._dialogAnimatingOpen=!1,St.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Ce.w0),this._animationStateSubscriptions.add(St)}const lt=this._attachDialogContent(J,Ge,He,K);return this._lastDialogRef=lt,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(lt),lt.afterClosed().subscribe(()=>this._removeOpenDialog(lt)),this.afterOpened.next(lt),Ge._initializeWithAttachedContent(),lt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(J){return this.openDialogs.find(K=>K.id===J)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(J){const K=this._getOverlayConfig(J);return this._overlay.create(K)}_getOverlayConfig(J){const K=new c.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:J.scrollStrategy||this._scrollStrategy(),panelClass:J.panelClass,hasBackdrop:J.hasBackdrop,direction:J.direction,minWidth:J.minWidth,minHeight:J.minHeight,maxWidth:J.maxWidth,maxHeight:J.maxHeight,disposeOnNavigation:J.closeOnNavigation});return J.backdropClass&&(K.backdropClass=J.backdropClass),K}_attachDialogContainer(J,K){const Ge=g.zs3.create({parent:K&&K.viewContainerRef&&K.viewContainerRef.injector||this._injector,providers:[{provide:Qe,useValue:K}]}),lt=new o.C5(this._dialogContainerType,K.viewContainerRef,Ge,K.componentFactoryResolver);return J.attach(lt).instance}_attachDialogContent(J,K,He,Ge){const lt=new this._dialogRefConstructor(He,K,Ge.id);if(J instanceof g.Rgc)K.attachTemplatePortal(new o.UE(J,null,{$implicit:Ge.data,dialogRef:lt}));else{const St=this._createInjector(Ge,lt,K),Ht=K.attachComponentPortal(new o.C5(J,Ge.viewContainerRef,St,Ge.componentFactoryResolver));lt.componentInstance=Ht.instance}return lt.updateSize(Ge.width,Ge.height).updatePosition(Ge.position),lt}_createInjector(J,K,He){const Ge=J&&J.viewContainerRef&&J.viewContainerRef.injector,lt=[{provide:this._dialogContainerType,useValue:He},{provide:this._dialogDataToken,useValue:J.data},{provide:this._dialogRefConstructor,useValue:K}];return J.direction&&(!Ge||!Ge.get(ce.Is,null,g.XFs.Optional))&<.push({provide:ce.Is,useValue:{value:J.direction,change:(0,ue.of)()}}),g.zs3.create({parent:Ge||this._injector,providers:lt})}_removeOpenDialog(J){const K=this.openDialogs.indexOf(J);K>-1&&(this.openDialogs.splice(K,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((He,Ge)=>{He?Ge.setAttribute("aria-hidden",He):Ge.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const J=this._overlayContainer.getContainerElement();if(J.parentElement){const K=J.parentElement.children;for(let He=K.length-1;He>-1;He--){let Ge=K[He];Ge!==J&&"SCRIPT"!==Ge.nodeName&&"STYLE"!==Ge.nodeName&&!Ge.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ge,Ge.getAttribute("aria-hidden")),Ge.setAttribute("aria-hidden","true"))}}}_closeDialogs(J){let K=J.length;for(;K--;)J[K].close()}}return Xe.\u0275fac=function(J){g.$Z()},Xe.\u0275dir=g.lG2({type:Xe}),Xe})(),Jt=(()=>{class Xe extends mt{constructor(J,K,He,Ge,lt,St,Ht,bt){super(J,K,Ge,St,Ht,lt,Ne,pe,Me,bt)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.LFG(c.aV),g.LFG(g.zs3),g.LFG(le.Ye,8),g.LFG(xe,8),g.LFG(Ae),g.LFG(Xe,12),g.LFG(c.Xj),g.LFG(et.Qb,8))},Xe.\u0275prov=g.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),Rt=0,Wt=(()=>{class Xe{constructor(J,K,He){this.dialogRef=J,this._elementRef=K,this._dialog=He,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(J){const K=J._matDialogClose||J._matDialogCloseResult;K&&(this.dialogResult=K.currentValue)}_onButtonClick(J){ve(this.dialogRef,0===J.screenX&&0===J.screenY?"keyboard":"mouse",this.dialogResult)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(J,K){1&J&&g.NdJ("click",function(Ge){return K._onButtonClick(Ge)}),2&J&&g.uIk("aria-label",K.ariaLabel||null)("type",K.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[g.TTD]}),Xe})(),Pt=(()=>{class Xe{constructor(J,K,He){this._dialogRef=J,this._elementRef=K,this._dialog=He,this.id="mat-dialog-title-"+Rt++}ngOnInit(){this._dialogRef||(this._dialogRef=xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const J=this._dialogRef._containerInstance;J&&!J._ariaLabelledBy&&(J._ariaLabelledBy=this.id)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(J,K){2&J&&g.Ikx("id",K.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Xe})(),mn=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Xe})(),Ut=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Xe})();function xt(Xe,je){let J=Xe.nativeElement.parentElement;for(;J&&!J.classList.contains("mat-dialog-container");)J=J.parentElement;return J?je.find(K=>K.id===J.id):null}let on=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=g.oAB({type:Xe}),Xe.\u0275inj=g.cJS({providers:[Jt,Ct],imports:[[c.U8,o.eL,Y.BQ],Y.BQ]}),Xe})()},7322:(qe,ye,C)=>{C.d(ye,{G_:()=>Nt,o2:()=>bt,KE:()=>at,Eo:()=>yt,lN:()=>Pe,hX:()=>on,R9:()=>He});var c=C(7144),o=C(9808),g=C(4893),Y=C(508),ce=C(3191),q=C(7579),De=C(6451),Ce=C(4968),ue=C(8675),te=C(2722),se=C(5698),de=C(1777),X=C(6360),le=C(226),ke=C(925);const Be=["connectionContainer"],Z=["inputContainer"],et=["label"];function Ye(E,S){1&E&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Qe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.Hsn(1,1),g.qZA()}if(2&E){const D=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)}}function me(E,S){if(1&E&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&E){const D=g.oxw(2);g.xp6(3),g.Oqu(D._control.placeholder)}}function z(E,S){1&E&&g.Hsn(0,3,["*ngSwitchCase","true"])}function Q(E,S){1&E&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function pe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.YNc(2,me,4,1,"ng-container",12),g.YNc(3,z,1,0,"ng-content",12),g.YNc(4,Q,2,0,"span",22),g.qZA()}if(2&E){const D=g.oxw();g.ekj("mat-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-form-field-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-accent","accent"==D.color)("mat-warn","warn"==D.color),g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)("id",D._labelId)("ngSwitch",D._hasLabel()),g.uIk("for",D._control.id)("aria-owns",D._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!D.hideRequiredMarker&&D._control.required&&!D._control.disabled)}}function Te(E,S){1&E&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function Ne(E,S){if(1&E&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&E){const D=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==D.color)("mat-warn","warn"==D.color)}}function ve(E,S){if(1&E&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState)}}function Me(E,S){if(1&E&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&E){const D=g.oxw(2);g.Q6J("id",D._hintLabelId),g.xp6(1),g.Oqu(D.hintLabel)}}function xe(E,S){if(1&E&&(g.TgZ(0,"div",27),g.YNc(1,Me,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",D.hintLabel)}}const Ae=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],tt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Ct=new g.OlP("MatError"),Jt={transitionMessages:(0,de.X$)("transitionMessages",[(0,de.SB)("enter",(0,de.oB)({opacity:1,transform:"translateY(0%)"})),(0,de.eR)("void => enter",[(0,de.oB)({opacity:0,transform:"translateY(-5px)"}),(0,de.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yt=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E}),E})();const Ut=new g.OlP("MatHint");let on=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-label"]]}),E})(),Xe=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const je=new g.OlP("MatPrefix"),K=new g.OlP("MatSuffix");let He=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:K,useExisting:E}])]}),E})(),Ge=0;const Ht=(0,Y.pj)(class{constructor(E){this._elementRef=E}},"primary"),bt=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Nt=new g.OlP("MatFormField");let at=(()=>{class E extends Ht{constructor(D,P,L,re,be,Ue,ze){super(D),this._changeDetectorRef=P,this._dir=L,this._defaults=re,this._platform=be,this._ngZone=Ue,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new q.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ge++,this._labelId="mat-form-field-label-"+Ge++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==ze,this.appearance=re&&re.appearance?re.appearance:"legacy",this._hideRequiredMarker=!(!re||null==re.hideRequiredMarker)&&re.hideRequiredMarker}get appearance(){return this._appearance}set appearance(D){const P=this._appearance;this._appearance=D||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&P!==D&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(D){this._hideRequiredMarker=(0,ce.Ig)(D)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(D){this._hintLabel=D,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(D){D!==this._floatLabel&&(this._floatLabel=D||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(D){this._explicitFormFieldControl=D}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const D=this._control;D.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${D.controlType}`),D.stateChanges.pipe((0,ue.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),D.ngControl&&D.ngControl.valueChanges&&D.ngControl.valueChanges.pipe((0,te.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,De.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,te.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(D){const P=this._control?this._control.ngControl:null;return P&&P[D]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,Ce.R)(this._label.nativeElement,"transitionend").pipe((0,se.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let D=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&D.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const P=this._hintChildren?this._hintChildren.find(re=>"start"===re.align):null,L=this._hintChildren?this._hintChildren.find(re=>"end"===re.align):null;P?D.push(P.id):this._hintLabel&&D.push(this._hintLabelId),L&&D.push(L.id)}else this._errorChildren&&D.push(...this._errorChildren.map(P=>P.id));this._control.setDescribedByIds(D)}}_validateControlChild(){}updateOutlineGap(){const D=this._label?this._label.nativeElement:null,P=this._connectionContainerRef.nativeElement,L=".mat-form-field-outline-start",re=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!D||!D.children.length||!D.textContent.trim()){const ct=P.querySelectorAll(`${L}, ${re}`);for(let Ot=0;Ot0?.75*dn+10:0}for(let ct=0;ct{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275mod=g.oAB({type:E}),E.\u0275inj=g.cJS({imports:[[o.ez,Y.BQ,c.Q8],Y.BQ]}),E})()},7531:(qe,ye,C)=>{C.d(ye,{Nt:()=>Ye,c:()=>Qe});var c=C(3191),o=C(925),g=C(4893),Y=C(2382),ce=C(508),q=C(7322),De=C(7579),Ce=C(515);const ue=(0,o.i$)({passive:!0});let te=(()=>{class me{constructor(Q,pe){this._platform=Q,this._ngZone=pe,this._monitoredElements=new Map}monitor(Q){if(!this._platform.isBrowser)return Ce.E;const pe=(0,c.fI)(Q),Te=this._monitoredElements.get(pe);if(Te)return Te.subject;const Ne=new De.x,ve="cdk-text-field-autofilled",Me=xe=>{"cdk-text-field-autofill-start"!==xe.animationName||pe.classList.contains(ve)?"cdk-text-field-autofill-end"===xe.animationName&&pe.classList.contains(ve)&&(pe.classList.remove(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!1}))):(pe.classList.add(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{pe.addEventListener("animationstart",Me,ue),pe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(pe,{subject:Ne,unlisten:()=>{pe.removeEventListener("animationstart",Me,ue)}}),Ne}stopMonitoring(Q){const pe=(0,c.fI)(Q),Te=this._monitoredElements.get(pe);Te&&(Te.unlisten(),Te.subject.complete(),pe.classList.remove("cdk-text-field-autofill-monitored"),pe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(pe))}ngOnDestroy(){this._monitoredElements.forEach((Q,pe)=>this.stopMonitoring(pe))}}return me.\u0275fac=function(Q){return new(Q||me)(g.LFG(o.t4),g.LFG(g.R0b))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),X=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({}),me})();const ke=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),Be=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const et=(0,ce.FD)(class{constructor(me,z,Q,pe){this._defaultErrorStateMatcher=me,this._parentForm=z,this._parentFormGroup=Q,this.ngControl=pe}});let Ye=(()=>{class me extends et{constructor(Q,pe,Te,Ne,ve,Me,xe,Ae,tt,Fe){super(Me,Ne,ve,Te),this._elementRef=Q,this._platform=pe,this._autofillMonitor=Ae,this._formField=Fe,this._uid="mat-input-"+Z++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Jt=>(0,o.qK)().has(Jt));const Ct=this._elementRef.nativeElement,mt=Ct.nodeName.toLowerCase();this._inputValueAccessor=xe||Ct,this._previousNativeValue=this.value,this.id=this.id,pe.IOS&&tt.runOutsideAngular(()=>{Q.nativeElement.addEventListener("keyup",Jt=>{const yt=Jt.target;!yt.value&&0===yt.selectionStart&&0===yt.selectionEnd&&(yt.setSelectionRange(1,1),yt.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===mt,this._isTextarea="textarea"===mt,this._isInFormField=!!Fe,this._isNativeSelect&&(this.controlType=Ct.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Q){this._disabled=(0,c.Ig)(Q),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Q){this._id=Q||this._uid}get required(){var Q,pe,Te,Ne;return null!==(Ne=null!==(Q=this._required)&&void 0!==Q?Q:null===(Te=null===(pe=this.ngControl)||void 0===pe?void 0:pe.control)||void 0===Te?void 0:Te.hasValidator(Y.kI.required))&&void 0!==Ne&&Ne}set required(Q){this._required=(0,c.Ig)(Q)}get type(){return this._type}set type(Q){this._type=Q||"text",this._validateType(),!this._isTextarea&&(0,o.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Q){Q!==this.value&&(this._inputValueAccessor.value=Q,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Q){this._readonly=(0,c.Ig)(Q)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Q=>{this.autofilled=Q.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Q){this._elementRef.nativeElement.focus(Q)}_focusChanged(Q){Q!==this.focused&&(this.focused=Q,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Q,pe;const Te=(null===(pe=null===(Q=this._formField)||void 0===Q?void 0:Q._hideControlPlaceholder)||void 0===pe?void 0:pe.call(Q))?null:this.placeholder;if(Te!==this._previousPlaceholder){const Ne=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?Ne.setAttribute("placeholder",Te):Ne.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Q=this._elementRef.nativeElement.value;this._previousNativeValue!==Q&&(this._previousNativeValue=Q,this.stateChanges.next())}_validateType(){Be.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Q=this._elementRef.nativeElement.validity;return Q&&Q.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Q=this._elementRef.nativeElement,pe=Q.options[0];return this.focused||Q.multiple||!this.empty||!!(Q.selectedIndex>-1&&pe&&pe.label)}return this.focused||!this.empty}setDescribedByIds(Q){Q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Q=this._elementRef.nativeElement;return this._isNativeSelect&&(Q.multiple||Q.size>1)}}return me.\u0275fac=function(Q){return new(Q||me)(g.Y36(g.SBq),g.Y36(o.t4),g.Y36(Y.a5,10),g.Y36(Y.F,8),g.Y36(Y.sg,8),g.Y36(ce.rD),g.Y36(ke,10),g.Y36(te),g.Y36(g.R0b),g.Y36(q.G_,8))},me.\u0275dir=g.lG2({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Q,pe){1&Q&&g.NdJ("focus",function(){return pe._focusChanged(!0)})("blur",function(){return pe._focusChanged(!1)})("input",function(){return pe._onInput()}),2&Q&&(g.Ikx("disabled",pe.disabled)("required",pe.required),g.uIk("id",pe.id)("data-placeholder",pe.placeholder)("name",pe.name||null)("readonly",pe.readonly&&!pe._isNativeSelect||null)("aria-invalid",pe.empty&&pe.required?null:pe.errorState)("aria-required",pe.required),g.ekj("mat-input-server",pe._isServer)("mat-native-select-inline",pe._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[g._Bn([{provide:q.Eo,useExisting:me}]),g.qOj,g.TTD]}),me})(),Qe=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({providers:[ce.rD],imports:[[X,q.lN,ce.BQ],X,q.lN]}),me})()},4107:(qe,ye,C)=>{C.d(ye,{gD:()=>bt,LD:()=>Nt});var c=C(9776),o=C(9808),g=C(4893),Y=C(508),ce=C(7322),q=C(495),De=C(9950),Ce=C(3191),ue=C(449),te=C(1159),se=C(2382),de=C(7579),X=C(9770),le=C(6451),ke=C(8675),Be=C(3900),Z=C(5698),et=C(9300),Ye=C(4004),Qe=C(1884),me=C(2722),z=C(1777),Q=C(226);const pe=["trigger"],Te=["panel"];function Ne(at,Pe){if(1&at&&(g.TgZ(0,"span",8),g._uU(1),g.qZA()),2&at){const E=g.oxw();g.xp6(1),g.Oqu(E.placeholder)}}function ve(at,Pe){if(1&at&&(g.TgZ(0,"span",12),g._uU(1),g.qZA()),2&at){const E=g.oxw(2);g.xp6(1),g.Oqu(E.triggerValue)}}function Me(at,Pe){1&at&&g.Hsn(0,0,["*ngSwitchCase","true"])}function xe(at,Pe){if(1&at&&(g.TgZ(0,"span",9),g.YNc(1,ve,2,1,"span",10),g.YNc(2,Me,1,0,"ng-content",11),g.qZA()),2&at){const E=g.oxw();g.Q6J("ngSwitch",!!E.customTrigger),g.xp6(2),g.Q6J("ngSwitchCase",!0)}}function Ae(at,Pe){if(1&at){const E=g.EpF();g.TgZ(0,"div",13)(1,"div",14,15),g.NdJ("@transformPanel.done",function(D){return g.CHM(E),g.oxw()._panelDoneAnimatingStream.next(D.toState)})("keydown",function(D){return g.CHM(E),g.oxw()._handleKeydown(D)}),g.Hsn(3,1),g.qZA()()}if(2&at){const E=g.oxw();g.Q6J("@transformPanelWrap",void 0),g.xp6(1),g.Gre("mat-select-panel ",E._getPanelTheme(),""),g.Udp("transform-origin",E._transformOrigin)("font-size",E._triggerFontSize,"px"),g.Q6J("ngClass",E.panelClass)("@transformPanel",E.multiple?"showing-multiple":"showing"),g.uIk("id",E.id+"-panel")("aria-multiselectable",E.multiple)("aria-label",E.ariaLabel||null)("aria-labelledby",E._getPanelAriaLabelledby())}}const tt=[[["mat-select-trigger"]],"*"],Fe=["mat-select-trigger","*"],Ct={transformPanelWrap:(0,z.X$)("transformPanelWrap",[(0,z.eR)("* => void",(0,z.IO)("@transformPanel",[(0,z.pV)()],{optional:!0}))]),transformPanel:(0,z.X$)("transformPanel",[(0,z.SB)("void",(0,z.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,z.SB)("showing",(0,z.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,z.SB)("showing-multiple",(0,z.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,z.eR)("void => *",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))])};let Rt=0;const Xe=new g.OlP("mat-select-scroll-strategy"),J=new g.OlP("MAT_SELECT_CONFIG"),K={provide:Xe,deps:[c.aV],useFactory:function je(at){return()=>at.scrollStrategies.reposition()}};class He{constructor(Pe,E){this.source=Pe,this.value=E}}const Ge=(0,Y.Kr)((0,Y.sb)((0,Y.Id)((0,Y.FD)(class{constructor(at,Pe,E,S,D){this._elementRef=at,this._defaultErrorStateMatcher=Pe,this._parentForm=E,this._parentFormGroup=S,this.ngControl=D}})))),lt=new g.OlP("MatSelectTrigger");let Ht=(()=>{class at extends Ge{constructor(E,S,D,P,L,re,be,Ue,ze,_t,ct,Ot,nn,Yt){var dn,dt,vt;super(L,P,be,Ue,_t),this._viewportRuler=E,this._changeDetectorRef=S,this._ngZone=D,this._dir=re,this._parentFormField=ze,this._liveAnnouncer=nn,this._defaultOptions=Yt,this._panelOpen=!1,this._compareWith=(Le,we)=>Le===we,this._uid="mat-select-"+Rt++,this._triggerAriaLabelledBy=null,this._destroy=new de.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Rt++,this._panelDoneAnimatingStream=new de.x,this._overlayPanelClass=(null===(dn=this._defaultOptions)||void 0===dn?void 0:dn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(vt=null===(dt=this._defaultOptions)||void 0===dt?void 0:dt.disableOptionCentering)&&void 0!==vt&&vt,this.ariaLabel="",this.optionSelectionChanges=(0,X.P)(()=>{const Le=this.options;return Le?Le.changes.pipe((0,ke.O)(Le),(0,Be.w)(()=>(0,le.T)(...Le.map(we=>we.onSelectionChange)))):this._ngZone.onStable.pipe((0,Z.q)(1),(0,Be.w)(()=>this.optionSelectionChanges))}),this.openedChange=new g.vpe,this._openedStream=this.openedChange.pipe((0,et.h)(Le=>Le),(0,Ye.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,et.h)(Le=>!Le),(0,Ye.U)(()=>{})),this.selectionChange=new g.vpe,this.valueChange=new g.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Yt?void 0:Yt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Yt.typeaheadDebounceInterval),this._scrollStrategyFactory=Ot,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ct)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(E){this._placeholder=E,this.stateChanges.next()}get required(){var E,S,D,P;return null!==(P=null!==(E=this._required)&&void 0!==E?E:null===(D=null===(S=this.ngControl)||void 0===S?void 0:S.control)||void 0===D?void 0:D.hasValidator(se.kI.required))&&void 0!==P&&P}set required(E){this._required=(0,Ce.Ig)(E),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(E){this._multiple=(0,Ce.Ig)(E)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(E){this._disableOptionCentering=(0,Ce.Ig)(E)}get compareWith(){return this._compareWith}set compareWith(E){this._compareWith=E,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(E){(E!==this._value||this._multiple&&Array.isArray(E))&&(this.options&&this._setSelectionByValue(E),this._value=E)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(E){this._typeaheadDebounceInterval=(0,Ce.su)(E)}get id(){return this._id}set id(E){this._id=E||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ue.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Qe.x)(),(0,me.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,me.R)(this._destroy)).subscribe(E=>{E.added.forEach(S=>S.select()),E.removed.forEach(S=>S.deselect())}),this.options.changes.pipe((0,ke.O)(null),(0,me.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const E=this._getTriggerAriaLabelledby();if(E!==this._triggerAriaLabelledBy){const S=this._elementRef.nativeElement;this._triggerAriaLabelledBy=E,E?S.setAttribute("aria-labelledby",E):S.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(E){E.disabled&&this.stateChanges.next(),E.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(E){this.value=E}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var E,S;return this.multiple?(null===(E=this._selectionModel)||void 0===E?void 0:E.selected)||[]:null===(S=this._selectionModel)||void 0===S?void 0:S.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const E=this._selectionModel.selected.map(S=>S.viewValue);return this._isRtl()&&E.reverse(),E.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(E){this.disabled||(this.panelOpen?this._handleOpenKeydown(E):this._handleClosedKeydown(E))}_handleClosedKeydown(E){const S=E.keyCode,D=S===te.JH||S===te.LH||S===te.oh||S===te.SV,P=S===te.K5||S===te.L_,L=this._keyManager;if(!L.isTyping()&&P&&!(0,te.Vb)(E)||(this.multiple||E.altKey)&&D)E.preventDefault(),this.open();else if(!this.multiple){const re=this.selected;L.onKeydown(E);const be=this.selected;be&&re!==be&&this._liveAnnouncer.announce(be.viewValue,1e4)}}_handleOpenKeydown(E){const S=this._keyManager,D=E.keyCode,P=D===te.JH||D===te.LH,L=S.isTyping();if(P&&E.altKey)E.preventDefault(),this.close();else if(L||D!==te.K5&&D!==te.L_||!S.activeItem||(0,te.Vb)(E))if(!L&&this._multiple&&D===te.A&&E.ctrlKey){E.preventDefault();const re=this.options.some(be=>!be.disabled&&!be.selected);this.options.forEach(be=>{be.disabled||(re?be.select():be.deselect())})}else{const re=S.activeItemIndex;S.onKeydown(E),this._multiple&&P&&E.shiftKey&&S.activeItem&&S.activeItemIndex!==re&&S.activeItem._selectViaInteraction()}else E.preventDefault(),S.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Z.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(E){if(this._selectionModel.selected.forEach(S=>S.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&E)Array.isArray(E),E.forEach(S=>this._selectValue(S)),this._sortValues();else{const S=this._selectValue(E);S?this._keyManager.updateActiveItem(S):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(E){const S=this.options.find(D=>{if(this._selectionModel.isSelected(D))return!1;try{return null!=D.value&&this._compareWith(D.value,E)}catch(P){return!1}});return S&&this._selectionModel.select(S),S}_initKeyManager(){this._keyManager=new De.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,me.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const E=(0,le.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,me.R)(E)).subscribe(S=>{this._onSelect(S.source,S.isUserInput),S.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,le.T)(...this.options.map(S=>S._stateChanges)).pipe((0,me.R)(E)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(E,S){const D=this._selectionModel.isSelected(E);null!=E.value||this._multiple?(D!==E.selected&&(E.selected?this._selectionModel.select(E):this._selectionModel.deselect(E)),S&&this._keyManager.setActiveItem(E),this.multiple&&(this._sortValues(),S&&this.focus())):(E.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(E.value)),D!==this._selectionModel.isSelected(E)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const E=this.options.toArray();this._selectionModel.sort((S,D)=>this.sortComparator?this.sortComparator(S,D,E):E.indexOf(S)-E.indexOf(D)),this.stateChanges.next()}}_propagateChanges(E){let S=null;S=this.multiple?this.selected.map(D=>D.value):this.selected?this.selected.value:E,this._value=S,this.valueChange.emit(S),this._onChange(S),this.selectionChange.emit(this._getChangeEvent(S)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var E;return!this._panelOpen&&!this.disabled&&(null===(E=this.options)||void 0===E?void 0:E.length)>0}focus(E){this._elementRef.nativeElement.focus(E)}_getPanelAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();return this.ariaLabelledby?(S?S+" ":"")+this.ariaLabelledby:S}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();let D=(S?S+" ":"")+this._valueId;return this.ariaLabelledby&&(D+=" "+this.ariaLabelledby),D}_panelDoneAnimating(E){this.openedChange.emit(E)}setDescribedByIds(E){this._ariaDescribedby=E.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return at.\u0275fac=function(E){return new(E||at)(g.Y36(q.rL),g.Y36(g.sBO),g.Y36(g.R0b),g.Y36(Y.rD),g.Y36(g.SBq),g.Y36(Q.Is,8),g.Y36(se.F,8),g.Y36(se.sg,8),g.Y36(ce.G_,8),g.Y36(se.a5,10),g.$8M("tabindex"),g.Y36(Xe),g.Y36(De.Kd),g.Y36(J,8))},at.\u0275dir=g.lG2({type:at,viewQuery:function(E,S){if(1&E&&(g.Gf(pe,5),g.Gf(Te,5),g.Gf(c.pI,5)),2&E){let D;g.iGM(D=g.CRH())&&(S.trigger=D.first),g.iGM(D=g.CRH())&&(S.panel=D.first),g.iGM(D=g.CRH())&&(S._overlayDir=D.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[g.qOj,g.TTD]}),at})(),bt=(()=>{class at extends Ht{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(E,S,D){const P=this._getItemHeight();return Math.min(Math.max(0,P*E-S+P/2),D)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Z.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(E){const S=(0,Y.CB)(E,this.options,this.optionGroups),D=this._getItemHeight();this.panel.nativeElement.scrollTop=0===E&&1===S?0:(0,Y.jH)((E+S)*D,D,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(E){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(E)}_getChangeEvent(E){return new He(this,E)}_calculateOverlayOffsetX(){const E=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),S=this._viewportRuler.getViewportSize(),D=this._isRtl(),P=this.multiple?56:32;let L;if(this.multiple)L=40;else if(this.disableOptionCentering)L=16;else{let Ue=this._selectionModel.selected[0]||this.options.first;L=Ue&&Ue.group?32:16}D||(L*=-1);const re=0-(E.left+L-(D?P:0)),be=E.right+L-S.width+(D?0:P);re>0?L+=re+8:be>0&&(L-=be+8),this._overlayDir.offsetX=Math.round(L),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(E,S,D){const P=this._getItemHeight(),L=(P-this._triggerRect.height)/2,re=Math.floor(256/P);let be;return this.disableOptionCentering?0:(be=0===this._scrollTop?E*P:this._scrollTop===D?(E-(this._getItemCount()-re))*P+(P-(this._getItemCount()*P-256)%P):S-P/2,Math.round(-1*be-L))}_checkOverlayWithinViewport(E){const S=this._getItemHeight(),D=this._viewportRuler.getViewportSize(),P=this._triggerRect.top-8,L=D.height-this._triggerRect.bottom-8,re=Math.abs(this._offsetY),Ue=Math.min(this._getItemCount()*S,256)-re-this._triggerRect.height;Ue>L?this._adjustPanelUp(Ue,L):re>P?this._adjustPanelDown(re,P,E):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(E,S){const D=Math.round(E-S);this._scrollTop-=D,this._offsetY-=D,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(E,S,D){const P=Math.round(E-S);if(this._scrollTop+=P,this._offsetY+=P,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=D)return this._scrollTop=D,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const E=this._getItemHeight(),S=this._getItemCount(),D=Math.min(S*E,256),L=S*E-D;let re;re=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),re+=(0,Y.CB)(re,this.options,this.optionGroups);const be=D/2;this._scrollTop=this._calculateOverlayScroll(re,be,L),this._offsetY=this._calculateOverlayOffsetY(re,be,L),this._checkOverlayWithinViewport(L)}_getOriginBasedOnOption(){const E=this._getItemHeight(),S=(E-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-S+E/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return at.\u0275fac=function(){let Pe;return function(S){return(Pe||(Pe=g.n5z(at)))(S||at)}}(),at.\u0275cmp=g.Xpm({type:at,selectors:[["mat-select"]],contentQueries:function(E,S,D){if(1&E&&(g.Suo(D,lt,5),g.Suo(D,Y.ey,5),g.Suo(D,Y.K7,5)),2&E){let P;g.iGM(P=g.CRH())&&(S.customTrigger=P.first),g.iGM(P=g.CRH())&&(S.options=P),g.iGM(P=g.CRH())&&(S.optionGroups=P)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(E,S){1&E&&g.NdJ("keydown",function(P){return S._handleKeydown(P)})("focus",function(){return S._onFocus()})("blur",function(){return S._onBlur()}),2&E&&(g.uIk("id",S.id)("tabindex",S.tabIndex)("aria-controls",S.panelOpen?S.id+"-panel":null)("aria-expanded",S.panelOpen)("aria-label",S.ariaLabel||null)("aria-required",S.required.toString())("aria-disabled",S.disabled.toString())("aria-invalid",S.errorState)("aria-describedby",S._ariaDescribedby||null)("aria-activedescendant",S._getAriaActiveDescendant()),g.ekj("mat-select-disabled",S.disabled)("mat-select-invalid",S.errorState)("mat-select-required",S.required)("mat-select-empty",S.empty)("mat-select-multiple",S.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[g._Bn([{provide:ce.Eo,useExisting:at},{provide:Y.HF,useExisting:at}]),g.qOj],ngContentSelectors:Fe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(E,S){if(1&E&&(g.F$t(tt),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return S.toggle()}),g.TgZ(3,"div",2),g.YNc(4,Ne,2,1,"span",3),g.YNc(5,xe,3,2,"span",4),g.qZA(),g.TgZ(6,"div",5),g._UZ(7,"div",6),g.qZA()(),g.YNc(8,Ae,4,14,"ng-template",7),g.NdJ("backdropClick",function(){return S.close()})("attach",function(){return S._onAttached()})("detach",function(){return S.close()})),2&E){const D=g.MAs(1);g.uIk("aria-owns",S.panelOpen?S.id+"-panel":null),g.xp6(3),g.Q6J("ngSwitch",S.empty),g.uIk("id",S._valueId),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1),g.xp6(3),g.Q6J("cdkConnectedOverlayPanelClass",S._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",S._scrollStrategy)("cdkConnectedOverlayOrigin",D)("cdkConnectedOverlayOpen",S.panelOpen)("cdkConnectedOverlayPositions",S._positions)("cdkConnectedOverlayMinWidth",null==S._triggerRect?null:S._triggerRect.width)("cdkConnectedOverlayOffsetY",S._offsetY)}},directives:[c.xu,o.RF,o.n9,o.ED,c.pI,o.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Ct.transformPanelWrap,Ct.transformPanel]},changeDetection:0}),at})(),Nt=(()=>{class at{}return at.\u0275fac=function(E){return new(E||at)},at.\u0275mod=g.oAB({type:at}),at.\u0275inj=g.cJS({providers:[K],imports:[[o.ez,c.U8,Y.Ng,Y.BQ],q.ZD,ce.lN,Y.Ng,Y.BQ]}),at})()},6360:(qe,ye,C)=>{C.d(ye,{Qb:()=>br,PW:()=>Ee});var c=C(4893),o=C(2313),g=C(1777);const Y=!1;function q(d){return new c.vHH(3e3,Y)}function xt(){return"undefined"!=typeof window&&void 0!==window.document}function on(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xe(d){switch(d.length){case 0:return new g.ZN;case 1:return d[0];default:return new g.ZE(d)}}function je(d,a,l,v,R={},G={}){const ie=[],oe=[];let Oe=-1,Ke=null;if(v.forEach(gt=>{const It=gt.offset,Xt=It==Oe,ln=Xt&&Ke||{};Object.keys(gt).forEach(Vt=>{let rn=Vt,Mn=gt[Vt];if("offset"!==Vt)switch(rn=a.normalizePropertyName(rn,ie),Mn){case g.k1:Mn=R[Vt];break;case g.l3:Mn=G[Vt];break;default:Mn=a.normalizeStyleValue(Vt,rn,Mn,ie)}ln[rn]=Mn}),Xt||oe.push(ln),Ke=ln,Oe=It}),ie.length)throw function Ae(d){return new c.vHH(3502,Y)}();return oe}function J(d,a,l,v){switch(a){case"start":d.onStart(()=>v(l&&K(l,"start",d)));break;case"done":d.onDone(()=>v(l&&K(l,"done",d)));break;case"destroy":d.onDestroy(()=>v(l&&K(l,"destroy",d)))}}function K(d,a,l){const v=l.totalTime,G=He(d.element,d.triggerName,d.fromState,d.toState,a||d.phaseName,null==v?d.totalTime:v,!!l.disabled),ie=d._data;return null!=ie&&(G._data=ie),G}function He(d,a,l,v,R="",G=0,ie){return{element:d,triggerName:a,fromState:l,toState:v,phaseName:R,totalTime:G,disabled:!!ie}}function Ge(d,a,l){let v;return d instanceof Map?(v=d.get(a),v||d.set(a,v=l)):(v=d[a],v||(v=d[a]=l)),v}function lt(d){const a=d.indexOf(":");return[d.substring(1,a),d.substr(a+1)]}let St=(d,a)=>!1,Ht=(d,a,l)=>[],bt=null;function Nt(d){const a=d.parentNode||d.host;return a===bt?null:a}(on()||"undefined"!=typeof Element)&&(xt()?(bt=(()=>document.documentElement)(),St=(d,a)=>{for(;a;){if(a===d)return!0;a=Nt(a)}return!1}):St=(d,a)=>d.contains(a),Ht=(d,a,l)=>{if(l)return Array.from(d.querySelectorAll(a));const v=d.querySelector(a);return v?[v]:[]});let E=null,S=!1;function D(d){E||(E=function P(){return"undefined"!=typeof document?document.body:null}()||{},S=!!E.style&&"WebkitAppearance"in E.style);let a=!0;return E.style&&!function Pe(d){return"ebkit"==d.substring(1,6)}(d)&&(a=d in E.style,!a&&S&&(a="Webkit"+d.charAt(0).toUpperCase()+d.substr(1)in E.style)),a}const L=St,re=Ht;let Ue=(()=>{class d{validateStyleProperty(l){return D(l)}matchesElement(l,v){return!1}containsElement(l,v){return L(l,v)}getParentElement(l){return Nt(l)}query(l,v,R){return re(l,v,R)}computeStyle(l,v,R){return R||""}animate(l,v,R,G,ie,oe=[],Oe){return new g.ZN(R,G)}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})(),ze=(()=>{class d{}return d.NOOP=new Ue,d})();const nn="ng-enter",Yt="ng-leave",dn="ng-trigger",dt=".ng-trigger",vt="ng-animating",Le=".ng-animating";function we(d){if("number"==typeof d)return d;const a=d.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:V(parseFloat(a[1]),a[2])}function V(d,a){return"s"===a?1e3*d:d}function j(d,a,l){return d.hasOwnProperty("duration")?d:function $(d,a,l){let R,G=0,ie="";if("string"==typeof d){const oe=d.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===oe)return a.push(q()),{duration:0,delay:0,easing:""};R=V(parseFloat(oe[1]),oe[2]);const Oe=oe[3];null!=Oe&&(G=V(parseFloat(Oe),oe[4]));const Ke=oe[5];Ke&&(ie=Ke)}else R=d;if(!l){let oe=!1,Oe=a.length;R<0&&(a.push(function De(){return new c.vHH(3100,Y)}()),oe=!0),G<0&&(a.push(function Ce(){return new c.vHH(3101,Y)}()),oe=!0),oe&&a.splice(Oe,0,q())}return{duration:R,delay:G,easing:ie}}(d,a,l)}function he(d,a={}){return Object.keys(d).forEach(l=>{a[l]=d[l]}),a}function st(d,a,l={}){if(a)for(let v in d)l[v]=d[v];else he(d,l);return l}function At(d,a,l){return l?a+":"+l+";":""}function Zt(d){let a="";for(let l=0;l{const R=$t(v);l&&!l.hasOwnProperty(v)&&(l[v]=d.style[R]),d.style[R]=a[v]}),on()&&Zt(d))}function Dt(d,a){d.style&&(Object.keys(a).forEach(l=>{const v=$t(l);d.style[v]=""}),on()&&Zt(d))}function Rn(d){return Array.isArray(d)?1==d.length?d[0]:(0,g.vP)(d):d}const _e=new RegExp("{{\\s*(.+?)\\s*}}","g");function ne(d){let a=[];if("string"==typeof d){let l;for(;l=_e.exec(d);)a.push(l[1]);_e.lastIndex=0}return a}function Ie(d,a,l){const v=d.toString(),R=v.replace(_e,(G,ie)=>{let oe=a[ie];return a.hasOwnProperty(ie)||(l.push(function te(d){return new c.vHH(3003,Y)}()),oe=""),oe.toString()});return R==v?d:R}function rt(d){const a=[];let l=d.next();for(;!l.done;)a.push(l.value),l=d.next();return a}const kt=/-+([a-z0-9])/g;function $t(d){return d.replace(kt,(...a)=>a[1].toUpperCase())}function bn(d){return d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Cn(d,a,l){switch(a.type){case 7:return d.visitTrigger(a,l);case 0:return d.visitState(a,l);case 1:return d.visitTransition(a,l);case 2:return d.visitSequence(a,l);case 3:return d.visitGroup(a,l);case 4:return d.visitAnimate(a,l);case 5:return d.visitKeyframes(a,l);case 6:return d.visitStyle(a,l);case 8:return d.visitReference(a,l);case 9:return d.visitAnimateChild(a,l);case 10:return d.visitAnimateRef(a,l);case 11:return d.visitQuery(a,l);case 12:return d.visitStagger(a,l);default:throw function se(d){return new c.vHH(3004,Y)}()}}function jn(d,a){return window.getComputedStyle(d)[a]}function ft(d,a){const l=[];return"string"==typeof d?d.split(/\s*,\s*/).forEach(v=>function Qt(d,a,l){if(":"==d[0]){const Oe=function pn(d,a){switch(d){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,v)=>parseFloat(v)>parseFloat(l);case":decrement":return(l,v)=>parseFloat(v) *"}}(d,l);if("function"==typeof Oe)return void a.push(Oe);d=Oe}const v=d.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return l.push(function Te(d){return new c.vHH(3015,Y)}()),a;const R=v[1],G=v[2],ie=v[3];a.push(An(R,ie));"<"==G[0]&&!("*"==R&&"*"==ie)&&a.push(An(ie,R))}(v,l,a)):l.push(d),l}const Fn=new Set(["true","1"]),ai=new Set(["false","0"]);function An(d,a){const l=Fn.has(d)||ai.has(d),v=Fn.has(a)||ai.has(a);return(R,G)=>{let ie="*"==d||d==R,oe="*"==a||a==G;return!ie&&l&&"boolean"==typeof R&&(ie=R?Fn.has(d):ai.has(d)),!oe&&v&&"boolean"==typeof G&&(oe=G?Fn.has(a):ai.has(a)),ie&&oe}}const tn=new RegExp("s*:selfs*,?","g");function Yn(d,a,l,v){return new jt(d).build(a,l,v)}class jt{constructor(a){this._driver=a}build(a,l,v){const R=new Si(l);this._resetContextStyleTimingState(R);const G=Cn(this,Rn(a),R);return R.unsupportedCSSPropertiesFound.size&&R.unsupportedCSSPropertiesFound.keys(),G}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,l){let v=l.queryCount=0,R=l.depCount=0;const G=[],ie=[];return"@"==a.name.charAt(0)&&l.errors.push(function X(){return new c.vHH(3006,Y)}()),a.definitions.forEach(oe=>{if(this._resetContextStyleTimingState(l),0==oe.type){const Oe=oe,Ke=Oe.name;Ke.toString().split(/\s*,\s*/).forEach(gt=>{Oe.name=gt,G.push(this.visitState(Oe,l))}),Oe.name=Ke}else if(1==oe.type){const Oe=this.visitTransition(oe,l);v+=Oe.queryCount,R+=Oe.depCount,ie.push(Oe)}else l.errors.push(function le(){return new c.vHH(3007,Y)}())}),{type:7,name:a.name,states:G,transitions:ie,queryCount:v,depCount:R,options:null}}visitState(a,l){const v=this.visitStyle(a.styles,l),R=a.options&&a.options.params||null;if(v.containsDynamicStyles){const G=new Set,ie=R||{};v.styles.forEach(oe=>{if(gn(oe)){const Oe=oe;Object.keys(Oe).forEach(Ke=>{ne(Oe[Ke]).forEach(gt=>{ie.hasOwnProperty(gt)||G.add(gt)})})}}),G.size&&(rt(G.values()),l.errors.push(function ke(d,a){return new c.vHH(3008,Y)}()))}return{type:0,name:a.name,style:v,options:R?{params:R}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const v=Cn(this,Rn(a.animation),l);return{type:1,matchers:ft(a.expr,l.errors),animation:v,queryCount:l.queryCount,depCount:l.depCount,options:Nn(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(v=>Cn(this,v,l)),options:Nn(a.options)}}visitGroup(a,l){const v=l.currentTime;let R=0;const G=a.steps.map(ie=>{l.currentTime=v;const oe=Cn(this,ie,l);return R=Math.max(R,l.currentTime),oe});return l.currentTime=R,{type:3,steps:G,options:Nn(a.options)}}visitAnimate(a,l){const v=function di(d,a){let l=null;if(d.hasOwnProperty("duration"))l=d;else if("number"==typeof d)return Xn(j(d,a).duration,0,"");const v=d;if(v.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Xn(0,0,"");return G.dynamic=!0,G.strValue=v,G}return l=l||j(v,a),Xn(l.duration,l.delay,l.easing)}(a.timings,l.errors);l.currentAnimateTimings=v;let R,G=a.styles?a.styles:(0,g.oB)({});if(5==G.type)R=this.visitKeyframes(G,l);else{let ie=a.styles,oe=!1;if(!ie){oe=!0;const Ke={};v.easing&&(Ke.easing=v.easing),ie=(0,g.oB)(Ke)}l.currentTime+=v.duration+v.delay;const Oe=this.visitStyle(ie,l);Oe.isEmptyStep=oe,R=Oe}return l.currentAnimateTimings=null,{type:4,timings:v,style:R,options:null}}visitStyle(a,l){const v=this._makeStyleAst(a,l);return this._validateStyleAst(v,l),v}_makeStyleAst(a,l){const v=[];Array.isArray(a.styles)?a.styles.forEach(ie=>{"string"==typeof ie?ie==g.l3?v.push(ie):l.errors.push(function Be(d){return new c.vHH(3002,Y)}()):v.push(ie)}):v.push(a.styles);let R=!1,G=null;return v.forEach(ie=>{if(gn(ie)){const oe=ie,Oe=oe.easing;if(Oe&&(G=Oe,delete oe.easing),!R)for(let Ke in oe)if(oe[Ke].toString().indexOf("{{")>=0){R=!0;break}}}),{type:6,styles:v,easing:G,offset:a.offset,containsDynamicStyles:R,options:null}}_validateStyleAst(a,l){const v=l.currentAnimateTimings;let R=l.currentTime,G=l.currentTime;v&&G>0&&(G-=v.duration+v.delay),a.styles.forEach(ie=>{"string"!=typeof ie&&Object.keys(ie).forEach(oe=>{if(!this._driver.validateStyleProperty(oe))return delete ie[oe],void l.unsupportedCSSPropertiesFound.add(oe);const Oe=l.collectedStyles[l.currentQuerySelector],Ke=Oe[oe];let gt=!0;Ke&&(G!=R&&G>=Ke.startTime&&R<=Ke.endTime&&(l.errors.push(function et(d,a,l,v,R){return new c.vHH(3010,Y)}()),gt=!1),G=Ke.startTime),gt&&(Oe[oe]={startTime:G,endTime:R}),l.options&&function Ve(d,a,l){const v=a.params||{},R=ne(d);R.length&&R.forEach(G=>{v.hasOwnProperty(G)||l.push(function ue(d){return new c.vHH(3001,Y)}())})}(ie[oe],l.options,l.errors)})})}visitKeyframes(a,l){const v={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function Ye(){return new c.vHH(3011,Y)}()),v;let G=0;const ie=[];let oe=!1,Oe=!1,Ke=0;const gt=a.steps.map($n=>{const li=this._makeStyleAst($n,l);let Ei=null!=li.offset?li.offset:function Gn(d){if("string"==typeof d)return null;let a=null;if(Array.isArray(d))d.forEach(l=>{if(gn(l)&&l.hasOwnProperty("offset")){const v=l;a=parseFloat(v.offset),delete v.offset}});else if(gn(d)&&d.hasOwnProperty("offset")){const l=d;a=parseFloat(l.offset),delete l.offset}return a}(li.styles),ii=0;return null!=Ei&&(G++,ii=li.offset=Ei),Oe=Oe||ii<0||ii>1,oe=oe||ii0&&G{const Ei=Xt>0?li==ln?1:Xt*li:ie[li],ii=Ei*Mn;l.currentTime=Vt+rn.delay+ii,rn.duration=ii,this._validateStyleAst($n,l),$n.offset=Ei,v.styles.push($n)}),v}visitReference(a,l){return{type:8,animation:Cn(this,Rn(a.animation),l),options:Nn(a.options)}}visitAnimateChild(a,l){return l.depCount++,{type:9,options:Nn(a.options)}}visitAnimateRef(a,l){return{type:10,animation:this.visitReference(a.animation,l),options:Nn(a.options)}}visitQuery(a,l){const v=l.currentQuerySelector,R=a.options||{};l.queryCount++,l.currentQuery=a;const[G,ie]=function ui(d){const a=!!d.split(/\s*,\s*/).find(l=>":self"==l);return a&&(d=d.replace(tn,"")),d=d.replace(/@\*/g,dt).replace(/@\w+/g,l=>dt+"-"+l.substr(1)).replace(/:animating/g,Le),[d,a]}(a.selector);l.currentQuerySelector=v.length?v+" "+G:G,Ge(l.collectedStyles,l.currentQuerySelector,{});const oe=Cn(this,Rn(a.animation),l);return l.currentQuery=null,l.currentQuerySelector=v,{type:11,selector:G,limit:R.limit||0,optional:!!R.optional,includeSelf:ie,animation:oe,originalSelector:a.selector,options:Nn(a.options)}}visitStagger(a,l){l.currentQuery||l.errors.push(function Q(){return new c.vHH(3013,Y)}());const v="full"===a.timings?{duration:0,delay:0,easing:"full"}:j(a.timings,l.errors,!0);return{type:12,animation:Cn(this,Rn(a.animation),l),timings:v,options:null}}}class Si{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function gn(d){return!Array.isArray(d)&&"object"==typeof d}function Nn(d){return d?(d=he(d)).params&&(d.params=function Jn(d){return d?he(d):null}(d.params)):d={},d}function Xn(d,a,l){return{duration:d,delay:a,easing:l}}function un(d,a,l,v,R,G,ie=null,oe=!1){return{type:1,element:d,keyframes:a,preStyleProps:l,postStyleProps:v,duration:R,delay:G,totalTime:R+G,easing:ie,subTimeline:oe}}class ir{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,l){let v=this._map.get(a);v||this._map.set(a,v=[]),v.push(...l)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Ci=new RegExp(":enter","g"),Zi=new RegExp(":leave","g");function On(d,a,l,v,R,G={},ie={},oe,Oe,Ke=[]){return(new ei).buildKeyframes(d,a,l,v,R,G,ie,oe,Oe,Ke)}class ei{buildKeyframes(a,l,v,R,G,ie,oe,Oe,Ke,gt=[]){Ke=Ke||new ir;const It=new hr(a,l,Ke,R,G,gt,[]);It.options=Oe,It.currentTimeline.setStyles([ie],null,It.errors,Oe),Cn(this,v,It);const Xt=It.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(oe).length){let ln;for(let Vt=Xt.length-1;Vt>=0;Vt--){const rn=Xt[Vt];if(rn.element===l){ln=rn;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([oe],null,It.errors,Oe)}return Xt.length?Xt.map(ln=>ln.buildKeyframes()):[un(l,[],[],[],0,0,"",!1)]}visitTrigger(a,l){}visitState(a,l){}visitTransition(a,l){}visitAnimateChild(a,l){const v=l.subInstructions.get(l.element);if(v){const R=l.createSubContext(a.options),G=l.currentTimeline.currentTime,ie=this._visitSubInstructions(v,R,R.options);G!=ie&&l.transformIntoNewTimeline(ie)}l.previousNode=a}visitAnimateRef(a,l){const v=l.createSubContext(a.options);v.transformIntoNewTimeline(),this.visitReference(a.animation,v),l.transformIntoNewTimeline(v.currentTimeline.currentTime),l.previousNode=a}_visitSubInstructions(a,l,v){let G=l.currentTimeline.currentTime;const ie=null!=v.duration?we(v.duration):null,oe=null!=v.delay?we(v.delay):null;return 0!==ie&&a.forEach(Oe=>{const Ke=l.appendInstructionToTimeline(Oe,ie,oe);G=Math.max(G,Ke.duration+Ke.delay)}),G}visitReference(a,l){l.updateOptions(a.options,!0),Cn(this,a.animation,l),l.previousNode=a}visitSequence(a,l){const v=l.subContextCount;let R=l;const G=a.options;if(G&&(G.params||G.delay)&&(R=l.createSubContext(G),R.transformIntoNewTimeline(),null!=G.delay)){6==R.previousNode.type&&(R.currentTimeline.snapshotCurrentStyles(),R.previousNode=Oi);const ie=we(G.delay);R.delayNextStep(ie)}a.steps.length&&(a.steps.forEach(ie=>Cn(this,ie,R)),R.currentTimeline.applyStylesToKeyframe(),R.subContextCount>v&&R.transformIntoNewTimeline()),l.previousNode=a}visitGroup(a,l){const v=[];let R=l.currentTimeline.currentTime;const G=a.options&&a.options.delay?we(a.options.delay):0;a.steps.forEach(ie=>{const oe=l.createSubContext(a.options);G&&oe.delayNextStep(G),Cn(this,ie,oe),R=Math.max(R,oe.currentTimeline.currentTime),v.push(oe.currentTimeline)}),v.forEach(ie=>l.currentTimeline.mergeTimelineCollectedStyles(ie)),l.transformIntoNewTimeline(R),l.previousNode=a}_visitTiming(a,l){if(a.dynamic){const v=a.strValue;return j(l.params?Ie(v,l.params,l.errors):v,l.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,l){const v=l.currentAnimateTimings=this._visitTiming(a.timings,l),R=l.currentTimeline;v.delay&&(l.incrementTime(v.delay),R.snapshotCurrentStyles());const G=a.style;5==G.type?this.visitKeyframes(G,l):(l.incrementTime(v.duration),this.visitStyle(G,l),R.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=a}visitStyle(a,l){const v=l.currentTimeline,R=l.currentAnimateTimings;!R&&v.getCurrentStyleProperties().length&&v.forwardFrame();const G=R&&R.easing||a.easing;a.isEmptyStep?v.applyEmptyStep(G):v.setStyles(a.styles,G,l.errors,l.options),l.previousNode=a}visitKeyframes(a,l){const v=l.currentAnimateTimings,R=l.currentTimeline.duration,G=v.duration,oe=l.createSubContext().currentTimeline;oe.easing=v.easing,a.styles.forEach(Oe=>{oe.forwardTime((Oe.offset||0)*G),oe.setStyles(Oe.styles,Oe.easing,l.errors,l.options),oe.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(oe),l.transformIntoNewTimeline(R+G),l.previousNode=a}visitQuery(a,l){const v=l.currentTimeline.currentTime,R=a.options||{},G=R.delay?we(R.delay):0;G&&(6===l.previousNode.type||0==v&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=Oi);let ie=v;const oe=l.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!R.optional,l.errors);l.currentQueryTotal=oe.length;let Oe=null;oe.forEach((Ke,gt)=>{l.currentQueryIndex=gt;const It=l.createSubContext(a.options,Ke);G&&It.delayNextStep(G),Ke===l.element&&(Oe=It.currentTimeline),Cn(this,a.animation,It),It.currentTimeline.applyStylesToKeyframe(),ie=Math.max(ie,It.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ie),Oe&&(l.currentTimeline.mergeTimelineCollectedStyles(Oe),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=a}visitStagger(a,l){const v=l.parentContext,R=l.currentTimeline,G=a.timings,ie=Math.abs(G.duration),oe=ie*(l.currentQueryTotal-1);let Oe=ie*l.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":Oe=oe-Oe;break;case"full":Oe=v.currentStaggerTime}const gt=l.currentTimeline;Oe&>.delayNextStep(Oe);const It=gt.currentTime;Cn(this,a.animation,l),l.previousNode=a,v.currentStaggerTime=R.currentTime-It+(R.startTime-v.currentTimeline.startTime)}}const Oi={};class hr{constructor(a,l,v,R,G,ie,oe,Oe){this._driver=a,this.element=l,this.subInstructions=v,this._enterClassName=R,this._leaveClassName=G,this.errors=ie,this.timelines=oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Oi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Oe||new rr(this._driver,l,0),oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,l){if(!a)return;const v=a;let R=this.options;null!=v.duration&&(R.duration=we(v.duration)),null!=v.delay&&(R.delay=we(v.delay));const G=v.params;if(G){let ie=R.params;ie||(ie=this.options.params={}),Object.keys(G).forEach(oe=>{(!l||!ie.hasOwnProperty(oe))&&(ie[oe]=Ie(G[oe],ie,this.errors))})}}_copyOptions(){const a={};if(this.options){const l=this.options.params;if(l){const v=a.params={};Object.keys(l).forEach(R=>{v[R]=l[R]})}}return a}createSubContext(a=null,l,v){const R=l||this.element,G=new hr(this._driver,R,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(R,v||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(a),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(a){return this.previousNode=Oi,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,l,v){const R={duration:null!=l?l:a.duration,delay:this.currentTimeline.currentTime+(null!=v?v:0)+a.delay,easing:""},G=new fr(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,R,a.stretchStartingKeyframe);return this.timelines.push(G),R}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,l,v,R,G,ie){let oe=[];if(R&&oe.push(this.element),a.length>0){a=(a=a.replace(Ci,"."+this._enterClassName)).replace(Zi,"."+this._leaveClassName);let Ke=this._driver.query(this.element,a,1!=v);0!==v&&(Ke=v<0?Ke.slice(Ke.length+v,Ke.length):Ke.slice(0,v)),oe.push(...Ke)}return!G&&0==oe.length&&ie.push(function pe(d){return new c.vHH(3014,Y)}()),oe}}class rr{constructor(a,l,v,R){this._driver=a,this.element=l,this.startTime=v,this._elementTimelineStylesLookup=R,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+a),l&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,l){return this.applyStylesToKeyframe(),new rr(this._driver,a,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,l){this._localTimelineStyles[a]=l,this._globalTimelineStyles[a]=l,this._styleSummary[a]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||g.l3,this._currentKeyframe[l]=g.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,l,v,R){l&&(this._previousKeyframe.easing=l);const G=R&&R.params||{},ie=function kr(d,a){const l={};let v;return d.forEach(R=>{"*"===R?(v=v||Object.keys(a),v.forEach(G=>{l[G]=g.l3})):st(R,!1,l)}),l}(a,this._globalTimelineStyles);Object.keys(ie).forEach(oe=>{const Oe=Ie(ie[oe],G,v);this._pendingStyles[oe]=Oe,this._localTimelineStyles.hasOwnProperty(oe)||(this._backFill[oe]=this._globalTimelineStyles.hasOwnProperty(oe)?this._globalTimelineStyles[oe]:g.l3),this._updateStyle(oe,Oe)})}applyStylesToKeyframe(){const a=this._pendingStyles,l=Object.keys(a);0!=l.length&&(this._pendingStyles={},l.forEach(v=>{this._currentKeyframe[v]=a[v]}),Object.keys(this._localTimelineStyles).forEach(v=>{this._currentKeyframe.hasOwnProperty(v)||(this._currentKeyframe[v]=this._localTimelineStyles[v])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const l=this._localTimelineStyles[a];this._pendingStyles[a]=l,this._updateStyle(a,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let l in this._currentKeyframe)a.push(l);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(l=>{const v=this._styleSummary[l],R=a._styleSummary[l];(!v||R.time>v.time)&&this._updateStyle(l,R.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,l=new Set,v=1===this._keyframes.size&&0===this.duration;let R=[];this._keyframes.forEach((oe,Oe)=>{const Ke=st(oe,!0);Object.keys(Ke).forEach(gt=>{const It=Ke[gt];It==g.k1?a.add(gt):It==g.l3&&l.add(gt)}),v||(Ke.offset=Oe/this.duration),R.push(Ke)});const G=a.size?rt(a.values()):[],ie=l.size?rt(l.values()):[];if(v){const oe=R[0],Oe=he(oe);oe.offset=0,Oe.offset=1,R=[oe,Oe]}return un(this.element,R,G,ie,this.duration,this.startTime,this.easing,!1)}}class fr extends rr{constructor(a,l,v,R,G,ie,oe=!1){super(a,l,ie.delay),this.keyframes=v,this.preStyleProps=R,this.postStyleProps=G,this._stretchStartingKeyframe=oe,this.timings={duration:ie.duration,delay:ie.delay,easing:ie.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:l,duration:v,easing:R}=this.timings;if(this._stretchStartingKeyframe&&l){const G=[],ie=v+l,oe=l/ie,Oe=st(a[0],!1);Oe.offset=0,G.push(Oe);const Ke=st(a[0],!1);Ke.offset=pr(oe),G.push(Ke);const gt=a.length-1;for(let It=1;It<=gt;It++){let Xt=st(a[It],!1);Xt.offset=pr((l+Xt.offset*v)/ie),G.push(Xt)}v=ie,l=0,R="",a=G}return un(this.element,a,this.preStyleProps,this.postStyleProps,v,l,R,!0)}}function pr(d,a=3){const l=Math.pow(10,a-1);return Math.round(d*l)/l}class mr{}class gr extends mr{normalizePropertyName(a,l){return $t(a)}normalizeStyleValue(a,l,v,R){let G="";const ie=v.toString().trim();if(or[l]&&0!==v&&"0"!==v)if("number"==typeof v)G="px";else{const oe=v.match(/^[+-]?[\d\.]+([a-z]*)$/);oe&&0==oe[1].length&&R.push(function de(d,a){return new c.vHH(3005,Y)}())}return ie+G}}const or=(()=>function xr(d){const a={};return d.forEach(l=>a[l]=!0),a}("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".split(",")))();function sr(d,a,l,v,R,G,ie,oe,Oe,Ke,gt,It,Xt){return{type:0,element:d,triggerName:a,isRemovalTransition:R,fromState:l,fromStyles:G,toState:v,toStyles:ie,timelines:oe,queriedElements:Oe,preStyleProps:Ke,postStyleProps:gt,totalTime:It,errors:Xt}}const _r={};class ar{constructor(a,l,v){this._triggerName=a,this.ast=l,this._stateStyles=v}match(a,l,v,R){return function Zr(d,a,l,v,R){return d.some(G=>G(a,l,v,R))}(this.ast.matchers,a,l,v,R)}buildStyles(a,l,v){const R=this._stateStyles["*"],G=this._stateStyles[a],ie=R?R.buildStyles(l,v):{};return G?G.buildStyles(l,v):ie}build(a,l,v,R,G,ie,oe,Oe,Ke,gt){const It=[],Xt=this.ast.options&&this.ast.options.params||_r,Vt=this.buildStyles(v,oe&&oe.params||_r,It),rn=Oe&&Oe.params||_r,Mn=this.buildStyles(R,rn,It),$n=new Set,li=new Map,Ei=new Map,ii="void"===R,Sr={params:Object.assign(Object.assign({},Xt),rn)},Ui=gt?[]:On(a,l,this.ast.animation,G,ie,Vt,Mn,Sr,Ke,It);let Ai=0;if(Ui.forEach(Un=>{Ai=Math.max(Un.duration+Un.delay,Ai)}),It.length)return sr(l,this._triggerName,v,R,ii,Vt,Mn,[],[],li,Ei,Ai,It);Ui.forEach(Un=>{const _i=Un.element,Hn=Ge(li,_i,{});Un.preStyleProps.forEach(ri=>Hn[ri]=!0);const eo=Ge(Ei,_i,{});Un.postStyleProps.forEach(ri=>eo[ri]=!0),_i!==l&&$n.add(_i)});const Cr=rt($n.values());return sr(l,this._triggerName,v,R,ii,Vt,Mn,Ui,Cr,li,Ei,Ai)}}class vr{constructor(a,l,v){this.styles=a,this.defaultParams=l,this.normalizer=v}buildStyles(a,l){const v={},R=he(this.defaultParams);return Object.keys(a).forEach(G=>{const ie=a[G];null!=ie&&(R[G]=ie)}),this.styles.styles.forEach(G=>{if("string"!=typeof G){const ie=G;Object.keys(ie).forEach(oe=>{let Oe=ie[oe];Oe.length>1&&(Oe=Ie(Oe,R,l));const Ke=this.normalizer.normalizePropertyName(oe,l);Oe=this.normalizer.normalizeStyleValue(oe,Ke,Oe,l),v[Ke]=Oe})}}),v}}class qi{constructor(a,l,v){this.name=a,this.ast=l,this._normalizer=v,this.transitionFactories=[],this.states={},l.states.forEach(R=>{this.states[R.name]=new vr(R.style,R.options&&R.options.params||{},v)}),yr(this.states,"true","1"),yr(this.states,"false","0"),l.transitions.forEach(R=>{this.transitionFactories.push(new ar(a,R,this.states))}),this.fallbackTransition=function mi(d,a,l){return new ar(d,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ie,oe)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,l,v,R){return this.transitionFactories.find(ie=>ie.match(a,l,v,R))||null}matchStyles(a,l,v){return this.fallbackTransition.buildStyles(a,l,v)}}function yr(d,a,l){d.hasOwnProperty(a)?d.hasOwnProperty(l)||(d[l]=d[a]):d.hasOwnProperty(l)&&(d[a]=d[l])}const Di=new ir;class qr{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._animations={},this._playersById={},this.players=[]}register(a,l){const v=[],G=Yn(this._driver,l,v,[]);if(v.length)throw function tt(d){return new c.vHH(3503,Y)}();this._animations[a]=G}_buildPlayer(a,l,v){const R=a.element,G=je(0,this._normalizer,0,a.keyframes,l,v);return this._driver.animate(R,G,a.duration,a.delay,a.easing,[],!0)}create(a,l,v={}){const R=[],G=this._animations[a];let ie;const oe=new Map;if(G?(ie=On(this._driver,l,G,nn,Yt,{},{},v,Di,R),ie.forEach(gt=>{const It=Ge(oe,gt.element,{});gt.postStyleProps.forEach(Xt=>It[Xt]=null)})):(R.push(function Fe(){return new c.vHH(3300,Y)}()),ie=[]),R.length)throw function Ct(d){return new c.vHH(3504,Y)}();oe.forEach((gt,It)=>{Object.keys(gt).forEach(Xt=>{gt[Xt]=this._driver.computeStyle(It,Xt,g.l3)})});const Ke=Xe(ie.map(gt=>{const It=oe.get(gt.element);return this._buildPlayer(gt,{},It)}));return this._playersById[a]=Ke,Ke.onDestroy(()=>this.destroy(a)),this.players.push(Ke),Ke}destroy(a){const l=this._getPlayer(a);l.destroy(),delete this._playersById[a];const v=this.players.indexOf(l);v>=0&&this.players.splice(v,1)}_getPlayer(a){const l=this._playersById[a];if(!l)throw function mt(d){return new c.vHH(3301,Y)}();return l}listen(a,l,v,R){const G=He(l,"","","");return J(this._getPlayer(a),v,G,R),()=>{}}command(a,l,v,R){if("register"==v)return void this.register(a,R[0]);if("create"==v)return void this.create(a,l,R[0]||{});const G=this._getPlayer(a);switch(v){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(R[0]));break;case"destroy":this.destroy(a)}}}const Mi="ng-animate-queued",zi="ng-animate-disabled",Ii=[],lr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Br={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ti="__ng_removed";class cr{constructor(a,l=""){this.namespaceId=l;const v=a&&a.hasOwnProperty("value");if(this.value=function A(d){return null!=d?d:null}(v?a.value:a),v){const G=he(a);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const l=a.params;if(l){const v=this.options.params;Object.keys(l).forEach(R=>{null==v[R]&&(v[R]=l[R])})}}}const Tn="void",Ji=new cr(Tn);class Xi{constructor(a,l,v){this.id=a,this.hostElement=l,this._engine=v,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,nt(l,this._hostClassName)}listen(a,l,v,R){if(!this._triggers.hasOwnProperty(l))throw function Jt(d,a){return new c.vHH(3302,Y)}();if(null==v||0==v.length)throw function yt(d){return new c.vHH(3303,Y)}();if(!function T(d){return"start"==d||"done"==d}(v))throw function Rt(d,a){return new c.vHH(3400,Y)}();const G=Ge(this._elementListeners,a,[]),ie={name:l,phase:v,callback:R};G.push(ie);const oe=Ge(this._engine.statesByElement,a,{});return oe.hasOwnProperty(l)||(nt(a,dn),nt(a,dn+"-"+l),oe[l]=Ji),()=>{this._engine.afterFlush(()=>{const Oe=G.indexOf(ie);Oe>=0&&G.splice(Oe,1),this._triggers[l]||delete oe[l]})}}register(a,l){return!this._triggers[a]&&(this._triggers[a]=l,!0)}_getTrigger(a){const l=this._triggers[a];if(!l)throw function Wt(d){return new c.vHH(3401,Y)}();return l}trigger(a,l,v,R=!0){const G=this._getTrigger(l),ie=new ur(this.id,l,a);let oe=this._engine.statesByElement.get(a);oe||(nt(a,dn),nt(a,dn+"-"+l),this._engine.statesByElement.set(a,oe={}));let Oe=oe[l];const Ke=new cr(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Oe&&Ke.absorbOptions(Oe.options),oe[l]=Ke,Oe||(Oe=Ji),Ke.value!==Tn&&Oe.value===Ke.value){if(!function zt(d,a){const l=Object.keys(d),v=Object.keys(a);if(l.length!=v.length)return!1;for(let R=0;R{Dt(a,Mn),Kt(a,$n)})}return}const Xt=Ge(this._engine.playersByElement,a,[]);Xt.forEach(rn=>{rn.namespaceId==this.id&&rn.triggerName==l&&rn.queued&&rn.destroy()});let ln=G.matchTransition(Oe.value,Ke.value,a,Ke.params),Vt=!1;if(!ln){if(!R)return;ln=G.fallbackTransition,Vt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:ln,fromState:Oe,toState:Ke,player:ie,isFallbackTransition:Vt}),Vt||(nt(a,Mi),ie.onStart(()=>{ht(a,Mi)})),ie.onDone(()=>{let rn=this.players.indexOf(ie);rn>=0&&this.players.splice(rn,1);const Mn=this._engine.playersByElement.get(a);if(Mn){let $n=Mn.indexOf(ie);$n>=0&&Mn.splice($n,1)}}),this.players.push(ie),Xt.push(ie),ie}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((l,v)=>{delete l[a]}),this._elementListeners.forEach((l,v)=>{this._elementListeners.set(v,l.filter(R=>R.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const l=this._engine.playersByElement.get(a);l&&(l.forEach(v=>v.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,l){const v=this._engine.driver.query(a,dt,!0);v.forEach(R=>{if(R[ti])return;const G=this._engine.fetchNamespacesByElement(R);G.size?G.forEach(ie=>ie.triggerLeaveAnimation(R,l,!1,!0)):this.clearElementCache(R)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(R=>this.clearElementCache(R)))}triggerLeaveAnimation(a,l,v,R){const G=this._engine.statesByElement.get(a),ie=new Map;if(G){const oe=[];if(Object.keys(G).forEach(Oe=>{if(ie.set(Oe,G[Oe].value),this._triggers[Oe]){const Ke=this.trigger(a,Oe,Tn,R);Ke&&oe.push(Ke)}}),oe.length)return this._engine.markElementAsRemoved(this.id,a,!0,l,ie),v&&Xe(oe).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const l=this._elementListeners.get(a),v=this._engine.statesByElement.get(a);if(l&&v){const R=new Set;l.forEach(G=>{const ie=G.name;if(R.has(ie))return;R.add(ie);const Oe=this._triggers[ie].fallbackTransition,Ke=v[ie]||Ji,gt=new cr(Tn),It=new ur(this.id,ie,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:ie,transition:Oe,fromState:Ke,toState:gt,player:It,isFallbackTransition:!0})})}}removeNode(a,l){const v=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,l),this.triggerLeaveAnimation(a,l,!0))return;let R=!1;if(v.totalAnimations){const G=v.players.length?v.playersByQueriedElement.get(a):[];if(G&&G.length)R=!0;else{let ie=a;for(;ie=ie.parentNode;)if(v.statesByElement.get(ie)){R=!0;break}}}if(this.prepareLeaveAnimationListeners(a),R)v.markElementAsRemoved(this.id,a,!1,l);else{const G=a[ti];(!G||G===lr)&&(v.afterFlush(()=>this.clearElementCache(a)),v.destroyInnerAnimations(a),v._onRemovalComplete(a,l))}}insertNode(a,l){nt(a,this._hostClassName)}drainQueuedTransitions(a){const l=[];return this._queue.forEach(v=>{const R=v.player;if(R.destroyed)return;const G=v.element,ie=this._elementListeners.get(G);ie&&ie.forEach(oe=>{if(oe.name==v.triggerName){const Oe=He(G,v.triggerName,v.fromState.value,v.toState.value);Oe._data=a,J(v.player,oe.phase,Oe,oe.callback)}}),R.markedForDestroy?this._engine.afterFlush(()=>{R.destroy()}):l.push(v)}),this._queue=[],l.sort((v,R)=>{const G=v.transition.ast.depCount,ie=R.transition.ast.depCount;return 0==G||0==ie?G-ie:this._engine.driver.containsElement(v.element,R.element)?1:-1})}destroy(a){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let l=!1;return this._elementListeners.has(a)&&(l=!0),l=!!this._queue.find(v=>v.element===a)||l,l}}class ni{constructor(a,l,v){this.bodyNode=a,this.driver=l,this._normalizer=v,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,G)=>{}}_onRemovalComplete(a,l){this.onRemovalComplete(a,l)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(l=>{l.players.forEach(v=>{v.queued&&a.push(v)})}),a}createNamespace(a,l){const v=new Xi(a,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(v,l):(this.newHostElements.set(l,v),this.collectEnterElement(l)),this._namespaceLookup[a]=v}_balanceNamespaceList(a,l){const v=this._namespaceList,R=this.namespacesByHostElement,G=v.length-1;if(G>=0){let ie=!1;if(void 0!==this.driver.getParentElement){let oe=this.driver.getParentElement(l);for(;oe;){const Oe=R.get(oe);if(Oe){const Ke=v.indexOf(Oe);v.splice(Ke+1,0,a),ie=!0;break}oe=this.driver.getParentElement(oe)}}else for(let oe=G;oe>=0;oe--)if(this.driver.containsElement(v[oe].hostElement,l)){v.splice(oe+1,0,a),ie=!0;break}ie||v.unshift(a)}else v.push(a);return R.set(l,a),a}register(a,l){let v=this._namespaceLookup[a];return v||(v=this.createNamespace(a,l)),v}registerTrigger(a,l,v){let R=this._namespaceLookup[a];R&&R.register(l,v)&&this.totalAnimations++}destroy(a,l){if(!a)return;const v=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(v.hostElement),delete this._namespaceLookup[a];const R=this._namespaceList.indexOf(v);R>=0&&this._namespaceList.splice(R,1)}),this.afterFlushAnimationsDone(()=>v.destroy(l))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const l=new Set,v=this.statesByElement.get(a);if(v){const R=Object.keys(v);for(let G=0;G=0&&this.collectedLeaveElements.splice(ie,1)}if(a){const ie=this._fetchNamespace(a);ie&&ie.insertNode(l,v)}R&&this.collectEnterElement(l)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,l){l?this.disabledNodes.has(a)||(this.disabledNodes.add(a),nt(a,zi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ht(a,zi))}removeNode(a,l,v,R){if(N(l)){const G=a?this._fetchNamespace(a):null;if(G?G.removeNode(l,R):this.markElementAsRemoved(a,l,!1,R),v){const ie=this.namespacesByHostElement.get(l);ie&&ie.id!==a&&ie.removeNode(l,R)}}else this._onRemovalComplete(l,R)}markElementAsRemoved(a,l,v,R,G){this.collectedLeaveElements.push(l),l[ti]={namespaceId:a,setForRemoval:R,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:G}}listen(a,l,v,R,G){return N(l)?this._fetchNamespace(a).listen(l,v,R,G):()=>{}}_buildInstruction(a,l,v,R,G){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,v,R,a.fromState.options,a.toState.options,l,G)}destroyInnerAnimations(a){let l=this.driver.query(a,dt,!0);l.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(a,Le,!0),l.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(a){const l=this.playersByElement.get(a);l&&l.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(a){const l=this.playersByQueriedElement.get(a);l&&l.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Xe(this.players).onDone(()=>a());a()})}processLeaveNode(a){var l;const v=a[ti];if(v&&v.setForRemoval){if(a[ti]=lr,v.namespaceId){this.destroyInnerAnimations(a);const R=this._fetchNamespace(v.namespaceId);R&&R.clearElementCache(a)}this._onRemovalComplete(a,v.setForRemoval)}(null===(l=a.classList)||void 0===l?void 0:l.contains(zi))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(R=>{this.markElementAsDisabled(R,!1)})}flush(a=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,R)=>this._balanceNamespaceList(v,R)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],l.length?Xe(l).onDone(()=>{v.forEach(R=>R())}):v.forEach(R=>R())}}reportError(a){throw function Pt(d){return new c.vHH(3402,Y)}()}_flushAnimations(a,l){const v=new ir,R=[],G=new Map,ie=[],oe=new Map,Oe=new Map,Ke=new Map,gt=new Set;this.disabledNodes.forEach(Tt=>{gt.add(Tt);const Ft=this.driver.query(Tt,".ng-animate-queued",!0);for(let Lt=0;Lt{const Lt=nn+rn++;Vt.set(Ft,Lt),Tt.forEach(fn=>nt(fn,Lt))});const Mn=[],$n=new Set,li=new Set;for(let Tt=0;Tt$n.add(fn)):li.add(Ft))}const Ei=new Map,ii=$e(Xt,Array.from($n));ii.forEach((Tt,Ft)=>{const Lt=Yt+rn++;Ei.set(Ft,Lt),Tt.forEach(fn=>nt(fn,Lt))}),a.push(()=>{ln.forEach((Tt,Ft)=>{const Lt=Vt.get(Ft);Tt.forEach(fn=>ht(fn,Lt))}),ii.forEach((Tt,Ft)=>{const Lt=Ei.get(Ft);Tt.forEach(fn=>ht(fn,Lt))}),Mn.forEach(Tt=>{this.processLeaveNode(Tt)})});const Sr=[],Ui=[];for(let Tt=this._namespaceList.length-1;Tt>=0;Tt--)this._namespaceList[Tt].drainQueuedTransitions(l).forEach(Lt=>{const fn=Lt.player,qn=Lt.element;if(Sr.push(fn),this.collectedEnterElements.length){const Qn=qn[ti];if(Qn&&Qn.setForMove){if(Qn.previousTriggersValues&&Qn.previousTriggersValues.has(Lt.triggerName)){const $i=Qn.previousTriggersValues.get(Lt.triggerName),dr=this.statesByElement.get(Lt.element);dr&&dr[Lt.triggerName]&&(dr[Lt.triggerName].value=$i)}return void fn.destroy()}}const Hi=!It||!this.driver.containsElement(It,qn),Li=Ei.get(qn),Er=Vt.get(qn),wn=this._buildInstruction(Lt,v,Er,Li,Hi);if(wn.errors&&wn.errors.length)return void Ui.push(wn);if(Hi)return fn.onStart(()=>Dt(qn,wn.fromStyles)),fn.onDestroy(()=>Kt(qn,wn.toStyles)),void R.push(fn);if(Lt.isFallbackTransition)return fn.onStart(()=>Dt(qn,wn.fromStyles)),fn.onDestroy(()=>Kt(qn,wn.toStyles)),void R.push(fn);const Or=[];wn.timelines.forEach(Qn=>{Qn.stretchStartingKeyframe=!0,this.disabledNodes.has(Qn.element)||Or.push(Qn)}),wn.timelines=Or,v.append(qn,wn.timelines),ie.push({instruction:wn,player:fn,element:qn}),wn.queriedElements.forEach(Qn=>Ge(oe,Qn,[]).push(fn)),wn.preStyleProps.forEach((Qn,$i)=>{const dr=Object.keys(Qn);if(dr.length){let Vr=Oe.get($i);Vr||Oe.set($i,Vr=new Set),dr.forEach(wo=>Vr.add(wo))}}),wn.postStyleProps.forEach((Qn,$i)=>{const dr=Object.keys(Qn);let Vr=Ke.get($i);Vr||Ke.set($i,Vr=new Set),dr.forEach(wo=>Vr.add(wo))})});if(Ui.length){const Tt=[];Ui.forEach(Ft=>{Tt.push(function Ut(d,a){return new c.vHH(3505,Y)}())}),Sr.forEach(Ft=>Ft.destroy()),this.reportError(Tt)}const Ai=new Map,Cr=new Map;ie.forEach(Tt=>{const Ft=Tt.element;v.has(Ft)&&(Cr.set(Ft,Ft),this._beforeAnimationBuild(Tt.player.namespaceId,Tt.instruction,Ai))}),R.forEach(Tt=>{const Ft=Tt.element;this._getPreviousPlayers(Ft,!1,Tt.namespaceId,Tt.triggerName,null).forEach(fn=>{Ge(Ai,Ft,[]).push(fn),fn.destroy()})});const Un=Mn.filter(Tt=>Bn(Tt,Oe,Ke)),_i=new Map;ae(_i,this.driver,li,Ke,g.l3).forEach(Tt=>{Bn(Tt,Oe,Ke)&&Un.push(Tt)});const eo=new Map;ln.forEach((Tt,Ft)=>{ae(eo,this.driver,new Set(Tt),Oe,g.k1)}),Un.forEach(Tt=>{const Ft=_i.get(Tt),Lt=eo.get(Tt);_i.set(Tt,Object.assign(Object.assign({},Ft),Lt))});const ri=[],Mo=[],ho={};ie.forEach(Tt=>{const{element:Ft,player:Lt,instruction:fn}=Tt;if(v.has(Ft)){if(gt.has(Ft))return Lt.onDestroy(()=>Kt(Ft,fn.toStyles)),Lt.disabled=!0,Lt.overrideTotalTime(fn.totalTime),void R.push(Lt);let qn=ho;if(Cr.size>1){let Li=Ft;const Er=[];for(;Li=Li.parentNode;){const wn=Cr.get(Li);if(wn){qn=wn;break}Er.push(Li)}Er.forEach(wn=>Cr.set(wn,qn))}const Hi=this._buildAnimation(Lt.namespaceId,fn,Ai,G,eo,_i);if(Lt.setRealPlayer(Hi),qn===ho)ri.push(Lt);else{const Li=this.playersByElement.get(qn);Li&&Li.length&&(Lt.parentPlayer=Xe(Li)),R.push(Lt)}}else Dt(Ft,fn.fromStyles),Lt.onDestroy(()=>Kt(Ft,fn.toStyles)),Mo.push(Lt),gt.has(Ft)&&R.push(Lt)}),Mo.forEach(Tt=>{const Ft=G.get(Tt.element);if(Ft&&Ft.length){const Lt=Xe(Ft);Tt.setRealPlayer(Lt)}}),R.forEach(Tt=>{Tt.parentPlayer?Tt.syncPlayerEvents(Tt.parentPlayer):Tt.destroy()});for(let Tt=0;Tt!Hi.destroyed);qn.length?En(this,Ft,qn):this.processLeaveNode(Ft)}return Mn.length=0,ri.forEach(Tt=>{this.players.push(Tt),Tt.onDone(()=>{Tt.destroy();const Ft=this.players.indexOf(Tt);this.players.splice(Ft,1)}),Tt.play()}),ri}elementContainsData(a,l){let v=!1;const R=l[ti];return R&&R.setForRemoval&&(v=!0),this.playersByElement.has(l)&&(v=!0),this.playersByQueriedElement.has(l)&&(v=!0),this.statesByElement.has(l)&&(v=!0),this._fetchNamespace(a).elementContainsData(l)||v}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,l,v,R,G){let ie=[];if(l){const oe=this.playersByQueriedElement.get(a);oe&&(ie=oe)}else{const oe=this.playersByElement.get(a);if(oe){const Oe=!G||G==Tn;oe.forEach(Ke=>{Ke.queued||!Oe&&Ke.triggerName!=R||ie.push(Ke)})}}return(v||R)&&(ie=ie.filter(oe=>!(v&&v!=oe.namespaceId||R&&R!=oe.triggerName))),ie}_beforeAnimationBuild(a,l,v){const G=l.element,ie=l.isRemovalTransition?void 0:a,oe=l.isRemovalTransition?void 0:l.triggerName;for(const Oe of l.timelines){const Ke=Oe.element,gt=Ke!==G,It=Ge(v,Ke,[]);this._getPreviousPlayers(Ke,gt,ie,oe,l.toState).forEach(ln=>{const Vt=ln.getRealPlayer();Vt.beforeDestroy&&Vt.beforeDestroy(),ln.destroy(),It.push(ln)})}Dt(G,l.fromStyles)}_buildAnimation(a,l,v,R,G,ie){const oe=l.triggerName,Oe=l.element,Ke=[],gt=new Set,It=new Set,Xt=l.timelines.map(Vt=>{const rn=Vt.element;gt.add(rn);const Mn=rn[ti];if(Mn&&Mn.removedBeforeQueried)return new g.ZN(Vt.duration,Vt.delay);const $n=rn!==Oe,li=function _n(d){const a=[];return hn(d,a),a}((v.get(rn)||Ii).map(Ai=>Ai.getRealPlayer())).filter(Ai=>!!Ai.element&&Ai.element===rn),Ei=G.get(rn),ii=ie.get(rn),Sr=je(0,this._normalizer,0,Vt.keyframes,Ei,ii),Ui=this._buildPlayer(Vt,Sr,li);if(Vt.subTimeline&&R&&It.add(rn),$n){const Ai=new ur(a,oe,rn);Ai.setRealPlayer(Ui),Ke.push(Ai)}return Ui});Ke.forEach(Vt=>{Ge(this.playersByQueriedElement,Vt.element,[]).push(Vt),Vt.onDone(()=>function Pi(d,a,l){let v;if(d instanceof Map){if(v=d.get(a),v){if(v.length){const R=v.indexOf(l);v.splice(R,1)}0==v.length&&d.delete(a)}}else if(v=d[a],v){if(v.length){const R=v.indexOf(l);v.splice(R,1)}0==v.length&&delete d[a]}return v}(this.playersByQueriedElement,Vt.element,Vt))}),gt.forEach(Vt=>nt(Vt,vt));const ln=Xe(Xt);return ln.onDestroy(()=>{gt.forEach(Vt=>ht(Vt,vt)),Kt(Oe,l.toStyles)}),It.forEach(Vt=>{Ge(R,Vt,[]).push(ln)}),ln}_buildPlayer(a,l,v){return l.length>0?this.driver.animate(a.element,l,a.duration,a.delay,a.easing,v):new g.ZN(a.duration,a.delay)}}class ur{constructor(a,l,v){this.namespaceId=a,this.triggerName=l,this.element=v,this._player=new g.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(v=>J(a,l,void 0,v))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const l=this._player;l.triggerCallback&&a.onStart(()=>l.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,l){Ge(this._queuedCallbacks,a,[]).push(l)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const l=this._player;l.triggerCallback&&l.triggerCallback(a)}}function N(d){return d&&1===d.nodeType}function H(d,a){const l=d.style.display;return d.style.display=null!=a?a:"none",l}function ae(d,a,l,v,R){const G=[];l.forEach(Oe=>G.push(H(Oe)));const ie=[];v.forEach((Oe,Ke)=>{const gt={};Oe.forEach(It=>{const Xt=gt[It]=a.computeStyle(Ke,It,R);(!Xt||0==Xt.length)&&(Ke[ti]=Br,ie.push(Ke))}),d.set(Ke,gt)});let oe=0;return l.forEach(Oe=>H(Oe,G[oe++])),ie}function $e(d,a){const l=new Map;if(d.forEach(oe=>l.set(oe,[])),0==a.length)return l;const R=new Set(a),G=new Map;function ie(oe){if(!oe)return 1;let Oe=G.get(oe);if(Oe)return Oe;const Ke=oe.parentNode;return Oe=l.has(Ke)?Ke:R.has(Ke)?1:ie(Ke),G.set(oe,Oe),Oe}return a.forEach(oe=>{const Oe=ie(oe);1!==Oe&&l.get(Oe).push(oe)}),l}function nt(d,a){var l;null===(l=d.classList)||void 0===l||l.add(a)}function ht(d,a){var l;null===(l=d.classList)||void 0===l||l.remove(a)}function En(d,a,l){Xe(l).onDone(()=>d.processLeaveNode(a))}function hn(d,a){for(let l=0;lR.add(G)):a.set(d,v),l.delete(d),!0}class vn{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(R,G)=>{},this._transitionEngine=new ni(a,l,v),this._timelineEngine=new qr(a,l,v),this._transitionEngine.onRemovalComplete=(R,G)=>this.onRemovalComplete(R,G)}registerTrigger(a,l,v,R,G){const ie=a+"-"+R;let oe=this._triggerCache[ie];if(!oe){const Oe=[],gt=Yn(this._driver,G,Oe,[]);if(Oe.length)throw function xe(d,a){return new c.vHH(3404,Y)}();oe=function Lr(d,a,l){return new qi(d,a,l)}(R,gt,this._normalizer),this._triggerCache[ie]=oe}this._transitionEngine.registerTrigger(l,R,oe)}register(a,l){this._transitionEngine.register(a,l)}destroy(a,l){this._transitionEngine.destroy(a,l)}onInsert(a,l,v,R){this._transitionEngine.insertNode(a,l,v,R)}onRemove(a,l,v,R){this._transitionEngine.removeNode(a,l,R||!1,v)}disableAnimations(a,l){this._transitionEngine.markElementAsDisabled(a,l)}process(a,l,v,R){if("@"==v.charAt(0)){const[G,ie]=lt(v);this._timelineEngine.command(G,l,ie,R)}else this._transitionEngine.trigger(a,l,v,R)}listen(a,l,v,R,G){if("@"==v.charAt(0)){const[ie,oe]=lt(v);return this._timelineEngine.listen(ie,l,oe,G)}return this._transitionEngine.listen(a,l,v,R,G)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Vn=(()=>{class d{constructor(l,v,R){this._element=l,this._startStyles=v,this._endStyles=R,this._state=0;let G=d.initialStylesByElement.get(l);G||d.initialStylesByElement.set(l,G={}),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&Kt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kt(this._element,this._initialStyles),this._endStyles&&(Kt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(d.initialStylesByElement.delete(this._element),this._startStyles&&(Dt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dt(this._element,this._endStyles),this._endStyles=null),Kt(this._element,this._initialStyles),this._state=3)}}return d.initialStylesByElement=new WeakMap,d})();function wi(d){let a=null;const l=Object.keys(d);for(let v=0;va()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,l,v){return a.animate(l,v)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(v=>{"offset"!=v&&(a[v]=this._finished?l[v]:jn(this.element,v))})}this.currentSnapshot=a}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(v=>v()),l.length=0}}class ki{validateStyleProperty(a){return D(a)}matchesElement(a,l){return!1}containsElement(a,l){return L(a,l)}getParentElement(a){return Nt(a)}query(a,l,v){return re(a,l,v)}computeStyle(a,l,v){return window.getComputedStyle(a)[l]}animate(a,l,v,R,G,ie=[]){const Oe={duration:v,delay:R,fill:0==R?"both":"forwards"};G&&(Oe.easing=G);const Ke={},gt=ie.filter(Xt=>Xt instanceof Ri);(function en(d,a){return 0===d||0===a})(v,R)&>.forEach(Xt=>{let ln=Xt.currentSnapshot;Object.keys(ln).forEach(Vt=>Ke[Vt]=ln[Vt])}),l=function kn(d,a,l){const v=Object.keys(l);if(v.length&&a.length){let G=a[0],ie=[];if(v.forEach(oe=>{G.hasOwnProperty(oe)||ie.push(oe),G[oe]=l[oe]}),ie.length)for(var R=1;Rst(Xt,!1)),Ke);const It=function Sn(d,a){let l=null,v=null;return Array.isArray(a)&&a.length?(l=wi(a[0]),a.length>1&&(v=wi(a[a.length-1]))):a&&(l=wi(a)),l||v?new Vn(d,l,v):null}(a,l);return new Ri(a,l,Oe,It)}}var x=C(9808);let M=(()=>{class d extends g._j{constructor(l,v){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(v.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(l){const v=this._nextAnimationId.toString();this._nextAnimationId++;const R=Array.isArray(l)?(0,g.vP)(l):l;return We(this._renderer,null,v,"register",[R]),new y(v,this._renderer)}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(x.K0))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class y extends g.LC{constructor(a,l){super(),this._id=a,this._renderer=l}create(a,l){return new U(this._id,a,l||{},this._renderer)}}class U{constructor(a,l,v,R){this.id=a,this.element=l,this._renderer=R,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",v)}_listen(a,l){return this._renderer.listen(this.element,`@@${this.id}:${a}`,l)}_command(a,...l){return We(this._renderer,this.element,this.id,a,l)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,l;return null!==(l=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==l?l:0}}function We(d,a,l,v,R){return d.setProperty(a,`@@${l}:${v}`,R)}const Dn="@.disabled";let gi=(()=>{class d{constructor(l,v,R){this.delegate=l,this.engine=v,this._zone=R,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),v.onRemovalComplete=(G,ie)=>{const oe=null==ie?void 0:ie.parentNode(G);oe&&ie.removeChild(oe,G)}}createRenderer(l,v){const G=this.delegate.createRenderer(l,v);if(!(l&&v&&v.data&&v.data.animation)){let gt=this._rendererCache.get(G);return gt||(gt=new Gi("",G,this.engine),this._rendererCache.set(G,gt)),gt}const ie=v.id,oe=v.id+"-"+this._currentId;this._currentId++,this.engine.register(oe,l);const Oe=gt=>{Array.isArray(gt)?gt.forEach(Oe):this.engine.registerTrigger(ie,oe,l,gt.name,gt)};return v.data.animation.forEach(Oe),new Fi(this,oe,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,v,R){l>=0&&lv(R)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ie,oe]=G;ie(oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([v,R]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(vn),c.LFG(c.R0b))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class Gi{constructor(a,l,v){this.namespaceId=a,this.delegate=l,this.engine=v,this.destroyNode=this.delegate.destroyNode?R=>l.destroyNode(R):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,l){return this.delegate.createElement(a,l)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,l){this.delegate.appendChild(a,l),this.engine.onInsert(this.namespaceId,l,a,!1)}insertBefore(a,l,v,R=!0){this.delegate.insertBefore(a,l,v),this.engine.onInsert(this.namespaceId,l,a,R)}removeChild(a,l,v){this.engine.onRemove(this.namespaceId,l,this.delegate,v)}selectRootElement(a,l){return this.delegate.selectRootElement(a,l)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,l,v,R){this.delegate.setAttribute(a,l,v,R)}removeAttribute(a,l,v){this.delegate.removeAttribute(a,l,v)}addClass(a,l){this.delegate.addClass(a,l)}removeClass(a,l){this.delegate.removeClass(a,l)}setStyle(a,l,v,R){this.delegate.setStyle(a,l,v,R)}removeStyle(a,l,v){this.delegate.removeStyle(a,l,v)}setProperty(a,l,v){"@"==l.charAt(0)&&l==Dn?this.disableAnimations(a,!!v):this.delegate.setProperty(a,l,v)}setValue(a,l){this.delegate.setValue(a,l)}listen(a,l,v){return this.delegate.listen(a,l,v)}disableAnimations(a,l){this.engine.disableAnimations(a,l)}}class Fi extends Gi{constructor(a,l,v,R){super(l,v,R),this.factory=a,this.namespaceId=l}setProperty(a,l,v){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Dn?this.disableAnimations(a,v=void 0===v||!!v):this.engine.process(this.namespaceId,a,l.substr(1),v):this.delegate.setProperty(a,l,v)}listen(a,l,v){if("@"==l.charAt(0)){const R=function ot(d){switch(d){case"body":return document.body;case"document":return document;case"window":return window;default:return d}}(a);let G=l.substr(1),ie="";return"@"!=G.charAt(0)&&([G,ie]=function sn(d){const a=d.indexOf(".");return[d.substring(0,a),d.substr(a+1)]}(G)),this.engine.listen(this.namespaceId,R,G,ie,oe=>{this.factory.scheduleListenerCallback(oe._data||-1,v,oe)})}return this.delegate.listen(a,l,v)}}let Jr=(()=>{class d extends vn{constructor(l,v,R){super(l.body,v,R)}ngOnDestroy(){this.flush()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(x.K0),c.LFG(ze),c.LFG(mr))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();const br=new c.OlP("AnimationModuleType"),Vi=[{provide:g._j,useClass:M},{provide:mr,useFactory:function Zn(){return new gr}},{provide:vn,useClass:Jr},{provide:c.FYo,useFactory:function bo(d,a,l){return new gi(d,a,l)},deps:[o.se,vn,c.R0b]}],Xr=[{provide:ze,useFactory:()=>new ki},{provide:br,useValue:"BrowserAnimations"},...Vi],k=[{provide:ze,useClass:Ue},{provide:br,useValue:"NoopAnimations"},...Vi];let Ee=(()=>{class d{static withConfig(l){return{ngModule:d,providers:l.disableAnimations?k:Xr}}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({providers:Xr,imports:[o.b2]}),d})()},2313:(qe,ye,C)=>{C.d(ye,{b2:()=>St,H7:()=>Zt,q6:()=>Ge,se:()=>tt});var c=C(9808),o=C(4893);class g extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y extends g{static makeCurrent(){(0,c.HT)(new Y)}onAndCancel(_e,ne,Ie){return _e.addEventListener(ne,Ie,!1),()=>{_e.removeEventListener(ne,Ie,!1)}}dispatchEvent(_e,ne){_e.dispatchEvent(ne)}remove(_e){_e.parentNode&&_e.parentNode.removeChild(_e)}createElement(_e,ne){return(ne=ne||this.getDefaultDocument()).createElement(_e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(_e){return _e.nodeType===Node.ELEMENT_NODE}isShadowRoot(_e){return _e instanceof DocumentFragment}getGlobalEventTarget(_e,ne){return"window"===ne?window:"document"===ne?_e:"body"===ne?_e.body:null}getBaseHref(_e){const ne=function q(){return ce=ce||document.querySelector("base"),ce?ce.getAttribute("href"):null}();return null==ne?null:function Ce(Ve){De=De||document.createElement("a"),De.setAttribute("href",Ve);const _e=De.pathname;return"/"===_e.charAt(0)?_e:`/${_e}`}(ne)}resetBaseElement(){ce=null}getUserAgent(){return window.navigator.userAgent}getCookie(_e){return(0,c.Mx)(document.cookie,_e)}}let De,ce=null;const ue=new o.OlP("TRANSITION_ID"),se=[{provide:o.ip1,useFactory:function te(Ve,_e,ne){return()=>{ne.get(o.CZH).donePromise.then(()=>{const Ie=(0,c.q)(),rt=_e.querySelectorAll(`style[ng-transition="${Ve}"]`);for(let kt=0;kt{const kt=_e.findTestabilityInTree(Ie,rt);if(null==kt)throw new Error("Could not find testability for element.");return kt},o.dqk.getAllAngularTestabilities=()=>_e.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>_e.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(Ie=>{const rt=o.dqk.getAllAngularTestabilities();let kt=rt.length,$t=!1;const bn=function(en){$t=$t||en,kt--,0==kt&&Ie($t)};rt.forEach(function(en){en.whenStable(bn)})})}findTestabilityInTree(_e,ne,Ie){if(null==ne)return null;const rt=_e.getTestability(ne);return null!=rt?rt:Ie?(0,c.q)().isShadowRoot(ne)?this.findTestabilityInTree(_e,ne.host,!0):this.findTestabilityInTree(_e,ne.parentElement,!0):null}}let X=(()=>{class Ve{build(){return new XMLHttpRequest}}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const le=new o.OlP("EventManagerPlugins");let ke=(()=>{class Ve{constructor(ne,Ie){this._zone=Ie,this._eventNameToPlugin=new Map,ne.forEach(rt=>rt.manager=this),this._plugins=ne.slice().reverse()}addEventListener(ne,Ie,rt){return this._findPluginFor(Ie).addEventListener(ne,Ie,rt)}addGlobalEventListener(ne,Ie,rt){return this._findPluginFor(Ie).addGlobalEventListener(ne,Ie,rt)}getZone(){return this._zone}_findPluginFor(ne){const Ie=this._eventNameToPlugin.get(ne);if(Ie)return Ie;const rt=this._plugins;for(let kt=0;kt{class Ve{constructor(){this._stylesSet=new Set}addStyles(ne){const Ie=new Set;ne.forEach(rt=>{this._stylesSet.has(rt)||(this._stylesSet.add(rt),Ie.add(rt))}),this.onStylesAdded(Ie)}onStylesAdded(ne){}getAllStyles(){return Array.from(this._stylesSet)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),et=(()=>{class Ve extends Z{constructor(ne){super(),this._doc=ne,this._hostNodes=new Map,this._hostNodes.set(ne.head,[])}_addStylesToHost(ne,Ie,rt){ne.forEach(kt=>{const $t=this._doc.createElement("style");$t.textContent=kt,rt.push(Ie.appendChild($t))})}addHost(ne){const Ie=[];this._addStylesToHost(this._stylesSet,ne,Ie),this._hostNodes.set(ne,Ie)}removeHost(ne){const Ie=this._hostNodes.get(ne);Ie&&Ie.forEach(Ye),this._hostNodes.delete(ne)}onStylesAdded(ne){this._hostNodes.forEach((Ie,rt)=>{this._addStylesToHost(ne,rt,Ie)})}ngOnDestroy(){this._hostNodes.forEach(ne=>ne.forEach(Ye))}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function Ye(Ve){(0,c.q)().remove(Ve)}const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},me=/%COMP%/g,Q="%COMP%",pe=`_nghost-${Q}`,Te=`_ngcontent-${Q}`;function Me(Ve,_e,ne){for(let Ie=0;Ie<_e.length;Ie++){let rt=_e[Ie];Array.isArray(rt)?Me(Ve,rt,ne):(rt=rt.replace(me,Ve),ne.push(rt))}return ne}function xe(Ve){return _e=>{if("__ngUnwrap__"===_e)return Ve;!1===Ve(_e)&&(_e.preventDefault(),_e.returnValue=!1)}}let tt=(()=>{class Ve{constructor(ne,Ie,rt){this.eventManager=ne,this.sharedStylesHost=Ie,this.appId=rt,this.rendererByCompId=new Map,this.defaultRenderer=new Fe(ne)}createRenderer(ne,Ie){if(!ne||!Ie)return this.defaultRenderer;switch(Ie.encapsulation){case o.ifc.Emulated:{let rt=this.rendererByCompId.get(Ie.id);return rt||(rt=new Jt(this.eventManager,this.sharedStylesHost,Ie,this.appId),this.rendererByCompId.set(Ie.id,rt)),rt.applyToHost(ne),rt}case 1:case o.ifc.ShadowDom:return new yt(this.eventManager,this.sharedStylesHost,ne,Ie);default:if(!this.rendererByCompId.has(Ie.id)){const rt=Me(Ie.id,Ie.styles,[]);this.sharedStylesHost.addStyles(rt),this.rendererByCompId.set(Ie.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(ke),o.LFG(et),o.LFG(o.AFp))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();class Fe{constructor(_e){this.eventManager=_e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(_e,ne){return ne?document.createElementNS(Qe[ne]||ne,_e):document.createElement(_e)}createComment(_e){return document.createComment(_e)}createText(_e){return document.createTextNode(_e)}appendChild(_e,ne){_e.appendChild(ne)}insertBefore(_e,ne,Ie){_e&&_e.insertBefore(ne,Ie)}removeChild(_e,ne){_e&&_e.removeChild(ne)}selectRootElement(_e,ne){let Ie="string"==typeof _e?document.querySelector(_e):_e;if(!Ie)throw new Error(`The selector "${_e}" did not match any elements`);return ne||(Ie.textContent=""),Ie}parentNode(_e){return _e.parentNode}nextSibling(_e){return _e.nextSibling}setAttribute(_e,ne,Ie,rt){if(rt){ne=rt+":"+ne;const kt=Qe[rt];kt?_e.setAttributeNS(kt,ne,Ie):_e.setAttribute(ne,Ie)}else _e.setAttribute(ne,Ie)}removeAttribute(_e,ne,Ie){if(Ie){const rt=Qe[Ie];rt?_e.removeAttributeNS(rt,ne):_e.removeAttribute(`${Ie}:${ne}`)}else _e.removeAttribute(ne)}addClass(_e,ne){_e.classList.add(ne)}removeClass(_e,ne){_e.classList.remove(ne)}setStyle(_e,ne,Ie,rt){rt&(o.JOm.DashCase|o.JOm.Important)?_e.style.setProperty(ne,Ie,rt&o.JOm.Important?"important":""):_e.style[ne]=Ie}removeStyle(_e,ne,Ie){Ie&o.JOm.DashCase?_e.style.removeProperty(ne):_e.style[ne]=""}setProperty(_e,ne,Ie){_e[ne]=Ie}setValue(_e,ne){_e.nodeValue=ne}listen(_e,ne,Ie){return"string"==typeof _e?this.eventManager.addGlobalEventListener(_e,ne,xe(Ie)):this.eventManager.addEventListener(_e,ne,xe(Ie))}}class Jt extends Fe{constructor(_e,ne,Ie,rt){super(_e),this.component=Ie;const kt=Me(rt+"-"+Ie.id,Ie.styles,[]);ne.addStyles(kt),this.contentAttr=function Ne(Ve){return Te.replace(me,Ve)}(rt+"-"+Ie.id),this.hostAttr=function ve(Ve){return pe.replace(me,Ve)}(rt+"-"+Ie.id)}applyToHost(_e){super.setAttribute(_e,this.hostAttr,"")}createElement(_e,ne){const Ie=super.createElement(_e,ne);return super.setAttribute(Ie,this.contentAttr,""),Ie}}class yt extends Fe{constructor(_e,ne,Ie,rt){super(_e),this.sharedStylesHost=ne,this.hostEl=Ie,this.shadowRoot=Ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const kt=Me(rt.id,rt.styles,[]);for(let $t=0;$t{class Ve extends Be{constructor(ne){super(ne)}supports(ne){return!0}addEventListener(ne,Ie,rt){return ne.addEventListener(Ie,rt,!1),()=>this.removeEventListener(ne,Ie,rt)}removeEventListener(ne,Ie,rt){return ne.removeEventListener(Ie,rt)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Wt=["alt","control","meta","shift"],mn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ut={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},xt={alt:Ve=>Ve.altKey,control:Ve=>Ve.ctrlKey,meta:Ve=>Ve.metaKey,shift:Ve=>Ve.shiftKey};let on=(()=>{class Ve extends Be{constructor(ne){super(ne)}supports(ne){return null!=Ve.parseEventName(ne)}addEventListener(ne,Ie,rt){const kt=Ve.parseEventName(Ie),$t=Ve.eventCallback(kt.fullKey,rt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(ne,kt.domEventName,$t))}static parseEventName(ne){const Ie=ne.toLowerCase().split("."),rt=Ie.shift();if(0===Ie.length||"keydown"!==rt&&"keyup"!==rt)return null;const kt=Ve._normalizeKey(Ie.pop());let $t="";if(Wt.forEach(en=>{const kn=Ie.indexOf(en);kn>-1&&(Ie.splice(kn,1),$t+=en+".")}),$t+=kt,0!=Ie.length||0===kt.length)return null;const bn={};return bn.domEventName=rt,bn.fullKey=$t,bn}static getEventFullKey(ne){let Ie="",rt=function Xe(Ve){let _e=Ve.key;if(null==_e){if(_e=Ve.keyIdentifier,null==_e)return"Unidentified";_e.startsWith("U+")&&(_e=String.fromCharCode(parseInt(_e.substring(2),16)),3===Ve.location&&Ut.hasOwnProperty(_e)&&(_e=Ut[_e]))}return mn[_e]||_e}(ne);return rt=rt.toLowerCase()," "===rt?rt="space":"."===rt&&(rt="dot"),Wt.forEach(kt=>{kt!=rt&&xt[kt](ne)&&(Ie+=kt+".")}),Ie+=rt,Ie}static eventCallback(ne,Ie,rt){return kt=>{Ve.getEventFullKey(kt)===ne&&rt.runGuarded(()=>Ie(kt))}}static _normalizeKey(ne){return"esc"===ne?"escape":ne}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Ge=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:c.bD},{provide:o.g9A,useValue:function je(){Y.makeCurrent(),de.init()},multi:!0},{provide:c.K0,useFactory:function K(){return(0,o.RDi)(document),document},deps:[]}]),lt=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function J(){return new o.qLn},deps:[]},{provide:le,useClass:Rt,multi:!0,deps:[c.K0,o.R0b,o.Lbi]},{provide:le,useClass:on,multi:!0,deps:[c.K0]},{provide:tt,useClass:tt,deps:[ke,et,o.AFp]},{provide:o.FYo,useExisting:tt},{provide:Z,useExisting:et},{provide:et,useClass:et,deps:[c.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:ke,useClass:ke,deps:[le,o.R0b]},{provide:c.JF,useClass:X,deps:[]}];let St=(()=>{class Ve{constructor(ne){if(ne)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ne){return{ngModule:Ve,providers:[{provide:o.AFp,useValue:ne.appId},{provide:ue,useExisting:o.AFp},se]}}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(Ve,12))},Ve.\u0275mod=o.oAB({type:Ve}),Ve.\u0275inj=o.cJS({providers:lt,imports:[c.ez,o.hGG]}),Ve})();"undefined"!=typeof window&&window;let Zt=(()=>{class Ve{}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(ne){let Ie=null;return Ie=ne?new(ne||Ve):o.LFG(Dt),Ie},providedIn:"root"}),Ve})(),Dt=(()=>{class Ve extends Zt{constructor(ne){super(),this._doc=ne}sanitize(ne,Ie){if(null==Ie)return null;switch(ne){case o.q3G.NONE:return Ie;case o.q3G.HTML:return(0,o.qzn)(Ie,"HTML")?(0,o.z3N)(Ie):(0,o.EiD)(this._doc,String(Ie)).toString();case o.q3G.STYLE:return(0,o.qzn)(Ie,"Style")?(0,o.z3N)(Ie):Ie;case o.q3G.SCRIPT:if((0,o.qzn)(Ie,"Script"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(Ie),(0,o.qzn)(Ie,"URL")?(0,o.z3N)(Ie):(0,o.mCW)(String(Ie));case o.q3G.RESOURCE_URL:if((0,o.qzn)(Ie,"ResourceURL"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ne} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ne){return(0,o.JVY)(ne)}bypassSecurityTrustStyle(ne){return(0,o.L6k)(ne)}bypassSecurityTrustScript(ne){return(0,o.eBb)(ne)}bypassSecurityTrustUrl(ne){return(0,o.LAX)(ne)}bypassSecurityTrustResourceUrl(ne){return(0,o.pB0)(ne)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(ne){let Ie=null;return Ie=ne?new ne:function Kt(Ve){return new Dt(Ve.get(c.K0))}(o.LFG(o.zs3)),Ie},providedIn:"root"}),Ve})()},9525:(qe,ye,C)=>{C.d(ye,{gz:()=>Jn,F0:()=>ri,rH:()=>Tt,yS:()=>Ft,Bz:()=>wo,lC:()=>lr});var c=C(4893),o=C(8306),g=C(576);function Y(_,f){const h=(0,g.m)(_)?_:()=>_,w=O=>O.error(h());return new o.y(f?O=>f.schedule(w,0,O):w)}const q=(0,C(3888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"});var De=C(727),Ce=C(4482),ue=C(5403);function te(){return(0,Ce.e)((_,f)=>{let h=null;_._refCount++;const w=(0,ue.x)(f,void 0,void 0,void 0,()=>{if(!_||_._refCount<=0||0<--_._refCount)return void(h=null);const O=_._connection,B=h;h=null,O&&(!B||O===B)&&O.unsubscribe(),f.unsubscribe()});_.subscribe(w),w.closed||(h=_.connect())})}class se extends o.y{constructor(f,h){super(),this.source=f,this.subjectFactory=h,this._subject=null,this._refCount=0,this._connection=null,(0,Ce.A)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,null==f||f.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new De.w0;const h=this.getSubject();f.add(this.source.subscribe((0,ue.x)(h,void 0,()=>{this._teardown(),h.complete()},w=>{this._teardown(),h.error(w)},()=>this._teardown()))),f.closed&&(this._connection=null,f=De.w0.EMPTY)}return f}refCount(){return te()(this)}}var de=C(2076),X=C(9646),le=C(1135),ke=C(9841),Be=C(7272),Z=C(9770),et=C(515),Ye=C(7579);function Qe(_,f,h,w,O){return(B,ee)=>{let ge=h,Ze=f,Mt=0;B.subscribe((0,ue.x)(ee,cn=>{const Bt=Mt++;Ze=ge?_(Ze,cn,Bt):(ge=!0,cn),w&&ee.next(Ze)},O&&(()=>{ge&&ee.next(Ze),ee.complete()})))}}function me(_,f){return(0,Ce.e)(Qe(_,f,arguments.length>=2,!0))}var z=C(8421);function Q(_){return(0,Ce.e)((f,h)=>{let B,w=null,O=!1;w=f.subscribe((0,ue.x)(h,void 0,void 0,ee=>{B=(0,z.Xf)(_(ee,Q(_)(f))),w?(w.unsubscribe(),w=null,B.subscribe(h)):O=!0})),O&&(w.unsubscribe(),w=null,B.subscribe(h))})}var pe=C(9300);function Te(_){return _<=0?()=>et.E:(0,Ce.e)((f,h)=>{let w=[];f.subscribe((0,ue.x)(h,O=>{w.push(O),_{for(const O of w)h.next(O);h.complete()},void 0,()=>{w=null}))})}function Ne(_=ve){return(0,Ce.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>w?h.complete():h.error(_())))})}function ve(){return new q}function Me(_){return(0,Ce.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>{w||h.next(_),h.complete()}))})}var xe=C(4671),tt=C(5698);function Fe(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,(0,tt.q)(1),h?Me(f):Ne(()=>new q))}var mt=C(4004),Jt=C(3900),yt=C(8675),Rt=C(4351),Wt=C(5577),Pt=C(8505),mn=C(8189),Ut=C(9808);class xt{constructor(f,h){this.id=f,this.url=h}}class on extends xt{constructor(f,h,w="imperative",O=null){super(f,h),this.navigationTrigger=w,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xe extends xt{constructor(f,h,w){super(f,h),this.urlAfterRedirects=w}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class je extends xt{constructor(f,h,w){super(f,h),this.reason=w}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J extends xt{constructor(f,h,w){super(f,h),this.error=w}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class K extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class He extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge extends xt{constructor(f,h,w,O,B){super(f,h),this.urlAfterRedirects=w,this.state=O,this.shouldActivate=B}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class lt extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class St extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ht{constructor(f){this.route=f}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class bt{constructor(f){this.route=f}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nt{constructor(f){this.snapshot=f}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(f){this.snapshot=f}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pe{constructor(f){this.snapshot=f}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E{constructor(f){this.snapshot=f}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S{constructor(f,h,w){this.routerEvent=f,this.position=h,this.anchor=w}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const D="primary";class P{constructor(f){this.params=f||{}}has(f){return Object.prototype.hasOwnProperty.call(this.params,f)}get(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h[0]:h}return null}getAll(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function L(_){return new P(_)}const re="ngNavigationCancelingError";function be(_){const f=Error("NavigationCancelingError: "+_);return f[re]=!0,f}function ze(_,f,h){const w=h.path.split("/");if(w.length>_.length||"full"===h.pathMatch&&(f.hasChildren()||w.length<_.length))return null;const O={};for(let B=0;Bw[B]===O)}return _===f}function nn(_){return Array.prototype.concat.apply([],_)}function Yt(_){return _.length>0?_[_.length-1]:null}function dt(_,f){for(const h in _)_.hasOwnProperty(h)&&f(_[h],h)}function vt(_){return(0,c.CqO)(_)?_:(0,c.QGY)(_)?(0,de.D)(Promise.resolve(_)):(0,X.of)(_)}const we={exact:function he(_,f,h){if(!_e(_.segments,f.segments)||!Zt(_.segments,f.segments,h)||_.numberOfChildren!==f.numberOfChildren)return!1;for(const w in f.children)if(!_.children[w]||!he(_.children[w],f.children[w],h))return!1;return!0},subset:st},V={exact:function $(_,f){return ct(_,f)},subset:function Se(_,f){return Object.keys(f).length<=Object.keys(_).length&&Object.keys(f).every(h=>Ot(_[h],f[h]))},ignored:()=>!0};function j(_,f,h){return we[h.paths](_.root,f.root,h.matrixParams)&&V[h.queryParams](_.queryParams,f.queryParams)&&!("exact"===h.fragment&&_.fragment!==f.fragment)}function st(_,f,h){return At(_,f,f.segments,h)}function At(_,f,h,w){if(_.segments.length>h.length){const O=_.segments.slice(0,h.length);return!(!_e(O,h)||f.hasChildren()||!Zt(O,h,w))}if(_.segments.length===h.length){if(!_e(_.segments,h)||!Zt(_.segments,h,w))return!1;for(const O in f.children)if(!_.children[O]||!st(_.children[O],f.children[O],w))return!1;return!0}{const O=h.slice(0,_.segments.length),B=h.slice(_.segments.length);return!!(_e(_.segments,O)&&Zt(_.segments,O,w)&&_.children[D])&&At(_.children[D],f,B,w)}}function Zt(_,f,h){return f.every((w,O)=>V[h](_[O].parameters,w.parameters))}class Kt{constructor(f,h,w){this.root=f,this.queryParams=h,this.fragment=w}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class Dt{constructor(f,h){this.segments=f,this.children=h,this.parent=null,dt(h,(w,O)=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $t(this)}}class Rn{constructor(f,h){this.path=f,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=L(this.parameters)),this._parameterMap}toString(){return bi(this)}}function _e(_,f){return _.length===f.length&&_.every((h,w)=>h.path===f[w].path)}class Ie{}class rt{parse(f){const h=new Fn(f);return new Kt(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(f){const h=`/${bn(f.root,!0)}`,w=function fi(_){const f=Object.keys(_).map(h=>{const w=_[h];return Array.isArray(w)?w.map(O=>`${kn(h)}=${kn(O)}`).join("&"):`${kn(h)}=${kn(w)}`}).filter(h=>!!h);return f.length?`?${f.join("&")}`:""}(f.queryParams);return`${h}${w}${"string"==typeof f.fragment?`#${function Cn(_){return encodeURI(_)}(f.fragment)}`:""}`}}const kt=new rt;function $t(_){return _.segments.map(f=>bi(f)).join("/")}function bn(_,f){if(!_.hasChildren())return $t(_);if(f){const h=_.children[D]?bn(_.children[D],!1):"",w=[];return dt(_.children,(O,B)=>{B!==D&&w.push(`${B}:${bn(O,!1)}`)}),w.length>0?`${h}(${w.join("//")})`:h}{const h=function ne(_,f){let h=[];return dt(_.children,(w,O)=>{O===D&&(h=h.concat(f(w,O)))}),dt(_.children,(w,O)=>{O!==D&&(h=h.concat(f(w,O)))}),h}(_,(w,O)=>O===D?[bn(_.children[D],!1)]:[`${O}:${bn(w,!1)}`]);return 1===Object.keys(_.children).length&&null!=_.children[D]?`${$t(_)}/${h[0]}`:`${$t(_)}/(${h.join("//")})`}}function en(_){return encodeURIComponent(_).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kn(_){return en(_).replace(/%3B/gi,";")}function jn(_){return en(_).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oi(_){return decodeURIComponent(_)}function Wn(_){return oi(_.replace(/\+/g,"%20"))}function bi(_){return`${jn(_.path)}${function si(_){return Object.keys(_).map(f=>`;${jn(f)}=${jn(_[f])}`).join("")}(_.parameters)}`}const Ln=/^[^\/()?;=#]+/;function ji(_){const f=_.match(Ln);return f?f[0]:""}const zn=/^[^=?]+/,Qt=/^[^]+/;class Fn{constructor(f){this.url=f,this.remaining=f}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())}parseQueryParams(){const f={};if(this.consumeOptional("?"))do{this.parseQueryParam(f)}while(this.consumeOptional("&"));return f}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const f=[];for(this.peekStartsWith("(")||f.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),f.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(f.length>0||Object.keys(h).length>0)&&(w[D]=new Dt(f,h)),w}parseSegment(){const f=ji(this.remaining);if(""===f&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(f),new Rn(oi(f),this.parseMatrixParams())}parseMatrixParams(){const f={};for(;this.consumeOptional(";");)this.parseParam(f);return f}parseParam(f){const h=ji(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const O=ji(this.remaining);O&&(w=O,this.capture(w))}f[oi(h)]=oi(w)}parseQueryParam(f){const h=function ft(_){const f=_.match(zn);return f?f[0]:""}(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const ee=function pn(_){const f=_.match(Qt);return f?f[0]:""}(this.remaining);ee&&(w=ee,this.capture(w))}const O=Wn(h),B=Wn(w);if(f.hasOwnProperty(O)){let ee=f[O];Array.isArray(ee)||(ee=[ee],f[O]=ee),ee.push(B)}else f[O]=B}parseParens(f){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=ji(this.remaining),O=this.remaining[w.length];if("/"!==O&&")"!==O&&";"!==O)throw new Error(`Cannot parse url '${this.url}'`);let B;w.indexOf(":")>-1?(B=w.substr(0,w.indexOf(":")),this.capture(B),this.capture(":")):f&&(B=D);const ee=this.parseChildren();h[B]=1===Object.keys(ee).length?ee[D]:new Dt([],ee),this.consumeOptional("//")}return h}peekStartsWith(f){return this.remaining.startsWith(f)}consumeOptional(f){return!!this.peekStartsWith(f)&&(this.remaining=this.remaining.substring(f.length),!0)}capture(f){if(!this.consumeOptional(f))throw new Error(`Expected "${f}".`)}}class ai{constructor(f){this._root=f}get root(){return this._root.value}parent(f){const h=this.pathFromRoot(f);return h.length>1?h[h.length-2]:null}children(f){const h=An(f,this._root);return h?h.children.map(w=>w.value):[]}firstChild(f){const h=An(f,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(f){const h=ci(f,this._root);return h.length<2?[]:h[h.length-2].children.map(O=>O.value).filter(O=>O!==f)}pathFromRoot(f){return ci(f,this._root).map(h=>h.value)}}function An(_,f){if(_===f.value)return f;for(const h of f.children){const w=An(_,h);if(w)return w}return null}function ci(_,f){if(_===f.value)return[f];for(const h of f.children){const w=ci(_,h);if(w.length)return w.unshift(f),w}return[]}class tn{constructor(f,h){this.value=f,this.children=h}toString(){return`TreeNode(${this.value})`}}function Yn(_){const f={};return _&&_.children.forEach(h=>f[h.value.outlet]=h),f}class pi extends ai{constructor(f,h){super(f),this.snapshot=h,Nn(this,f)}toString(){return this.snapshot.toString()}}function jt(_,f){const h=function ui(_,f){const ee=new gn([],{},{},"",{},D,f,null,_.root,-1,{});return new di("",new tn(ee,[]))}(_,f),w=new le.X([new Rn("",{})]),O=new le.X({}),B=new le.X({}),ee=new le.X({}),ge=new le.X(""),Ze=new Jn(w,O,ee,ge,B,D,f,h.root);return Ze.snapshot=h.root,new pi(new tn(Ze,[]),h)}class Jn{constructor(f,h,w,O,B,ee,ge,Ze){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=ee,this.component=ge,this._futureSnapshot=Ze}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,mt.U)(f=>L(f)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mt.U)(f=>L(f)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Si(_,f="emptyOnly"){const h=_.pathFromRoot;let w=0;if("always"!==f)for(w=h.length-1;w>=1;){const O=h[w],B=h[w-1];if(O.routeConfig&&""===O.routeConfig.path)w--;else{if(B.component)break;w--}}return function Gn(_){return _.reduce((f,h)=>({params:Object.assign(Object.assign({},f.params),h.params),data:Object.assign(Object.assign({},f.data),h.data),resolve:Object.assign(Object.assign({},f.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(w))}class gn{constructor(f,h,w,O,B,ee,ge,Ze,Mt,cn,Bt){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=ee,this.component=ge,this.routeConfig=Ze,this._urlSegment=Mt,this._lastPathIndex=cn,this._resolve=Bt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=L(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class di extends ai{constructor(f,h){super(h),this.url=f,Nn(this,h)}toString(){return Xn(this._root)}}function Nn(_,f){f.value._routerState=_,f.children.forEach(h=>Nn(_,h))}function Xn(_){const f=_.children.length>0?` { ${_.children.map(Xn).join(", ")} } `:"";return`${_.value}${f}`}function un(_){if(_.snapshot){const f=_.snapshot,h=_._futureSnapshot;_.snapshot=h,ct(f.queryParams,h.queryParams)||_.queryParams.next(h.queryParams),f.fragment!==h.fragment&&_.fragment.next(h.fragment),ct(f.params,h.params)||_.params.next(h.params),function _t(_,f){if(_.length!==f.length)return!1;for(let h=0;h<_.length;++h)if(!ct(_[h],f[h]))return!1;return!0}(f.url,h.url)||_.url.next(h.url),ct(f.data,h.data)||_.data.next(h.data)}else _.snapshot=_._futureSnapshot,_.data.next(_._futureSnapshot.data)}function ir(_,f){const h=ct(_.params,f.params)&&function Ve(_,f){return _e(_,f)&&_.every((h,w)=>ct(h.parameters,f[w].parameters))}(_.url,f.url);return h&&!(!_.parent!=!f.parent)&&(!_.parent||ir(_.parent,f.parent))}function Kn(_,f,h){if(h&&_.shouldReuseRoute(f.value,h.value.snapshot)){const w=h.value;w._futureSnapshot=f.value;const O=function Ci(_,f,h){return f.children.map(w=>{for(const O of h.children)if(_.shouldReuseRoute(w.value,O.value.snapshot))return Kn(_,w,O);return Kn(_,w)})}(_,f,h);return new tn(w,O)}{if(_.shouldAttach(f.value)){const B=_.retrieve(f.value);if(null!==B){const ee=B.route;return ee.value._futureSnapshot=f.value,ee.children=f.children.map(ge=>Kn(_,ge)),ee}}const w=function Ki(_){return new Jn(new le.X(_.url),new le.X(_.params),new le.X(_.queryParams),new le.X(_.fragment),new le.X(_.data),_.outlet,_.component,_)}(f.value),O=f.children.map(B=>Kn(_,B));return new tn(w,O)}}function On(_){return"object"==typeof _&&null!=_&&!_.outlets&&!_.segmentPath}function ei(_){return"object"==typeof _&&null!=_&&_.outlets}function Oi(_,f,h,w,O){let B={};return w&&dt(w,(ee,ge)=>{B[ge]=Array.isArray(ee)?ee.map(Ze=>`${Ze}`):`${ee}`}),new Kt(h.root===_?f:hr(h.root,_,f),B,O)}function hr(_,f,h){const w={};return dt(_.children,(O,B)=>{w[B]=O===f?h:hr(O,f,h)}),new Dt(_.segments,w)}class rr{constructor(f,h,w){if(this.isAbsolute=f,this.numberOfDoubleDots=h,this.commands=w,f&&w.length>0&&On(w[0]))throw new Error("Root segment cannot have matrix parameters");const O=w.find(ei);if(O&&O!==Yt(w))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(f,h,w){this.segmentGroup=f,this.processChildren=h,this.index=w}}function Fr(_,f,h){if(_||(_=new Dt([],{})),0===_.segments.length&&_.hasChildren())return gr(_,f,h);const w=function or(_,f,h){let w=0,O=f;const B={match:!1,pathIndex:0,commandIndex:0};for(;O<_.segments.length;){if(w>=h.length)return B;const ee=_.segments[O],ge=h[w];if(ei(ge))break;const Ze=`${ge}`,Mt=w0&&void 0===Ze)break;if(Ze&&Mt&&"object"==typeof Mt&&void 0===Mt.outlets){if(!ar(Ze,Mt,ee))return B;w+=2}else{if(!ar(Ze,{},ee))return B;w++}O++}return{match:!0,pathIndex:O,commandIndex:w}}(_,f,h),O=h.slice(w.commandIndex);if(w.match&&w.pathIndex<_.segments.length){const B=new Dt(_.segments.slice(0,w.pathIndex),{});return B.children[D]=new Dt(_.segments.slice(w.pathIndex),_.children),gr(B,0,O)}return w.match&&0===O.length?new Dt(_.segments,{}):w.match&&!_.hasChildren()?xr(_,f,h):w.match?gr(_,0,O):xr(_,f,h)}function gr(_,f,h){if(0===h.length)return new Dt(_.segments,{});{const w=function mr(_){return ei(_[0])?_[0].outlets:{[D]:_}}(h),O={};return dt(w,(B,ee)=>{"string"==typeof B&&(B=[B]),null!==B&&(O[ee]=Fr(_.children[ee],f,B))}),dt(_.children,(B,ee)=>{void 0===w[ee]&&(O[ee]=B)}),new Dt(_.segments,O)}}function xr(_,f,h){const w=_.segments.slice(0,f);let O=0;for(;O{"string"==typeof h&&(h=[h]),null!==h&&(f[w]=xr(new Dt([],{}),0,h))}),f}function _r(_){const f={};return dt(_,(h,w)=>f[w]=`${h}`),f}function ar(_,f,h){return _==h.path&&ct(f,h.parameters)}class vr{constructor(f,h,w,O){this.routeReuseStrategy=f,this.futureState=h,this.currState=w,this.forwardEvent=O}activate(f){const h=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,w,f),un(this.futureState.root),this.activateChildRoutes(h,w,f)}deactivateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{const ee=B.value.outlet;this.deactivateRoutes(B,O[ee],w),delete O[ee]}),dt(O,(B,ee)=>{this.deactivateRouteAndItsChildren(B,w)})}deactivateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(O===B)if(O.component){const ee=w.getContext(O.outlet);ee&&this.deactivateChildRoutes(f,h,ee.children)}else this.deactivateChildRoutes(f,h,w);else B&&this.deactivateRouteAndItsChildren(h,w)}deactivateRouteAndItsChildren(f,h){f.value.component&&this.routeReuseStrategy.shouldDetach(f.value.snapshot)?this.detachAndStoreRouteSubtree(f,h):this.deactivateRouteAndOutlet(f,h)}detachAndStoreRouteSubtree(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);if(w&&w.outlet){const ee=w.outlet.detach(),ge=w.children.onOutletDeactivated();this.routeReuseStrategy.store(f.value.snapshot,{componentRef:ee,route:f,contexts:ge})}}deactivateRouteAndOutlet(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);w&&w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated(),w.attachRef=null,w.resolver=null,w.route=null)}activateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{this.activateRoutes(B,O[B.value.outlet],w),this.forwardEvent(new E(B.value.snapshot))}),f.children.length&&this.forwardEvent(new at(f.value.snapshot))}activateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(un(O),O===B)if(O.component){const ee=w.getOrCreateContext(O.outlet);this.activateChildRoutes(f,h,ee.children)}else this.activateChildRoutes(f,h,w);else if(O.component){const ee=w.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const ge=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),ee.children.onOutletReAttached(ge.contexts),ee.attachRef=ge.componentRef,ee.route=ge.route.value,ee.outlet&&ee.outlet.attach(ge.componentRef,ge.route.value),un(ge.route.value),this.activateChildRoutes(f,null,ee.children)}else{const ge=function Lr(_){for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(O.snapshot),Ze=ge?ge.module.componentFactoryResolver:null;ee.attachRef=null,ee.route=O,ee.resolver=Ze,ee.outlet&&ee.outlet.activateWith(O,Ze),this.activateChildRoutes(f,null,ee.children)}}else this.activateChildRoutes(f,null,w)}}class qi{constructor(f,h){this.routes=f,this.module=h}}function mi(_){return"function"==typeof _}function Di(_){return _ instanceof Kt}const Bi=Symbol("INITIAL_VALUE");function Qi(){return(0,Jt.w)(_=>(0,ke.a)(_.map(f=>f.pipe((0,tt.q)(1),(0,yt.O)(Bi)))).pipe(me((f,h)=>{let w=!1;return h.reduce((O,B,ee)=>O!==Bi?O:(B===Bi&&(w=!0),w||!1!==B&&ee!==h.length-1&&!Di(B)?O:B),f)},Bi),(0,pe.h)(f=>f!==Bi),(0,mt.U)(f=>Di(f)?f:!0===f),(0,tt.q)(1)))}class Qr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ii,this.attachRef=null}}class Ii{constructor(){this.contexts=new Map}onChildOutletCreated(f,h){const w=this.getOrCreateContext(f);w.outlet=h,this.contexts.set(f,w)}onChildOutletDestroyed(f){const h=this.getContext(f);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const f=this.contexts;return this.contexts=new Map,f}onOutletReAttached(f){this.contexts=f}getOrCreateContext(f){let h=this.getContext(f);return h||(h=new Qr,this.contexts.set(f,h)),h}getContext(f){return this.contexts.get(f)||null}}let lr=(()=>{class _{constructor(h,w,O,B,ee){this.parentContexts=h,this.location=w,this.resolver=O,this.changeDetector=ee,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=B||D,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,w){this.activated=h,this._activatedRoute=w,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,w){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const ee=(w=w||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),ge=this.parentContexts.getOrCreateContext(this.name).children,Ze=new Br(h,ge,this.location.injector);this.activated=this.location.createComponent(ee,this.location.length,Ze),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(Ii),c.Y36(c.s_b),c.Y36(c._Vd),c.$8M("name"),c.Y36(c.sBO))},_.\u0275dir=c.lG2({type:_,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),_})();class Br{constructor(f,h,w){this.route=f,this.childContexts=h,this.parent=w}get(f,h){return f===Jn?this.route:f===Ii?this.childContexts:this.parent.get(f,h)}}let ti=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275cmp=c.Xpm({type:_,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,w){1&h&&c._UZ(0,"router-outlet")},directives:[lr],encapsulation:2}),_})();function cr(_,f=""){for(let h=0;h<_.length;h++){const w=_[h];Tn(w,Ji(f,w))}}function Tn(_,f){_.children&&cr(_.children,f)}function Ji(_,f){return f?_||f.path?_&&!f.path?`${_}/`:!_&&f.path?f.path:`${_}/${f.path}`:"":_}function Xi(_){const f=_.children&&_.children.map(Xi),h=f?Object.assign(Object.assign({},_),{children:f}):Object.assign({},_);return!h.component&&(f||h.loadChildren)&&h.outlet&&h.outlet!==D&&(h.component=ti),h}function ni(_){return _.outlet||D}function ur(_,f){const h=_.filter(w=>ni(w)===f);return h.push(..._.filter(w=>ni(w)!==f)),h}const Pi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function A(_,f,h){var w;if(""===f.path)return"full"===f.pathMatch&&(_.hasChildren()||h.length>0)?Object.assign({},Pi):{matched:!0,consumedSegments:[],remainingSegments:h,parameters:{},positionalParamSegments:{}};const B=(f.matcher||ze)(h,_,f);if(!B)return Object.assign({},Pi);const ee={};dt(B.posParams,(Ze,Mt)=>{ee[Mt]=Ze.path});const ge=B.consumed.length>0?Object.assign(Object.assign({},ee),B.consumed[B.consumed.length-1].parameters):ee;return{matched:!0,consumedSegments:B.consumed,remainingSegments:h.slice(B.consumed.length),parameters:ge,positionalParamSegments:null!==(w=B.posParams)&&void 0!==w?w:{}}}function N(_,f,h,w,O="corrected"){if(h.length>0&&function ae(_,f,h){return h.some(w=>nt(_,f,w)&&ni(w)!==D)}(_,h,w)){const ee=new Dt(f,function H(_,f,h,w){const O={};O[D]=w,w._sourceSegment=_,w._segmentIndexShift=f.length;for(const B of h)if(""===B.path&&ni(B)!==D){const ee=new Dt([],{});ee._sourceSegment=_,ee._segmentIndexShift=f.length,O[ni(B)]=ee}return O}(_,f,w,new Dt(h,_.children)));return ee._sourceSegment=_,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:[]}}if(0===h.length&&function $e(_,f,h){return h.some(w=>nt(_,f,w))}(_,h,w)){const ee=new Dt(_.segments,function T(_,f,h,w,O,B){const ee={};for(const ge of w)if(nt(_,h,ge)&&!O[ni(ge)]){const Ze=new Dt([],{});Ze._sourceSegment=_,Ze._segmentIndexShift="legacy"===B?_.segments.length:f.length,ee[ni(ge)]=Ze}return Object.assign(Object.assign({},O),ee)}(_,f,h,w,_.children,O));return ee._sourceSegment=_,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:h}}const B=new Dt(_.segments,_.children);return B._sourceSegment=_,B._segmentIndexShift=f.length,{segmentGroup:B,slicedSegments:h}}function nt(_,f,h){return(!(_.hasChildren()||f.length>0)||"full"!==h.pathMatch)&&""===h.path}function ht(_,f,h,w){return!!(ni(_)===w||w!==D&&nt(f,h,_))&&("**"===_.path||A(f,_,h).matched)}function En(_,f,h){return 0===f.length&&!_.children[h]}class _n{constructor(f){this.segmentGroup=f||null}}class hn{constructor(f){this.urlTree=f}}function zt(_){return Y(new _n(_))}function Bn(_){return Y(new hn(_))}class wi{constructor(f,h,w,O,B){this.configLoader=h,this.urlSerializer=w,this.urlTree=O,this.config=B,this.allowRedirects=!0,this.ngModule=f.get(c.h0i)}apply(){const f=N(this.urlTree.root,[],[],this.config).segmentGroup,h=new Dt(f.segments,f.children);return this.expandSegmentGroup(this.ngModule,this.config,h,D).pipe((0,mt.U)(B=>this.createUrlTree(Ri(B),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Q(B=>{if(B instanceof hn)return this.allowRedirects=!1,this.match(B.urlTree);throw B instanceof _n?this.noMatchError(B):B}))}match(f){return this.expandSegmentGroup(this.ngModule,this.config,f.root,D).pipe((0,mt.U)(O=>this.createUrlTree(Ri(O),f.queryParams,f.fragment))).pipe(Q(O=>{throw O instanceof _n?this.noMatchError(O):O}))}noMatchError(f){return new Error(`Cannot match any routes. URL Segment: '${f.segmentGroup}'`)}createUrlTree(f,h,w){const O=f.segments.length>0?new Dt([],{[D]:f}):f;return new Kt(O,h,w)}expandSegmentGroup(f,h,w,O){return 0===w.segments.length&&w.hasChildren()?this.expandChildren(f,h,w).pipe((0,mt.U)(B=>new Dt([],B))):this.expandSegment(f,w,h,w.segments,O,!0)}expandChildren(f,h,w){const O=[];for(const B of Object.keys(w.children))"primary"===B?O.unshift(B):O.push(B);return(0,de.D)(O).pipe((0,Rt.b)(B=>{const ee=w.children[B],ge=ur(h,B);return this.expandSegmentGroup(f,ge,ee,B).pipe((0,mt.U)(Ze=>({segment:Ze,outlet:B})))}),me((B,ee)=>(B[ee.outlet]=ee.segment,B),{}),function Ae(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,Te(1),h?Me(f):Ne(()=>new q))}())}expandSegment(f,h,w,O,B,ee){return(0,de.D)(w).pipe((0,Rt.b)(ge=>this.expandSegmentAgainstRoute(f,h,w,ge,O,B,ee).pipe(Q(Mt=>{if(Mt instanceof _n)return(0,X.of)(null);throw Mt}))),Fe(ge=>!!ge),Q((ge,Ze)=>{if(ge instanceof q||"EmptyError"===ge.name){if(En(h,O,B))return(0,X.of)(new Dt([],{}));throw new _n(h)}throw ge}))}expandSegmentAgainstRoute(f,h,w,O,B,ee,ge){return ht(O,h,B,ee)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(f,h,O,B,ee):ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee):zt(h):zt(h)}expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(f,w,O,ee):this.expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee)}expandWildCardWithParamsAgainstRouteUsingRedirect(f,h,w,O){const B=this.applyRedirectCommands([],w.redirectTo,{});return w.redirectTo.startsWith("/")?Bn(B):this.lineralizeSegments(w,B).pipe((0,Wt.z)(ee=>{const ge=new Dt(ee,{});return this.expandSegment(f,ge,h,ee,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee){const{matched:ge,consumedSegments:Ze,remainingSegments:Mt,positionalParamSegments:cn}=A(h,O,B);if(!ge)return zt(h);const Bt=this.applyRedirectCommands(Ze,O.redirectTo,cn);return O.redirectTo.startsWith("/")?Bn(Bt):this.lineralizeSegments(O,Bt).pipe((0,Wt.z)(xn=>this.expandSegment(f,h,w,xn.concat(Mt),ee,!1)))}matchSegmentAgainstRoute(f,h,w,O,B){if("**"===w.path)return w.loadChildren?(w._loadedConfig?(0,X.of)(w._loadedConfig):this.configLoader.load(f.injector,w)).pipe((0,mt.U)(Bt=>(w._loadedConfig=Bt,new Dt(O,{})))):(0,X.of)(new Dt(O,{}));const{matched:ee,consumedSegments:ge,remainingSegments:Ze}=A(h,w,O);return ee?this.getChildConfig(f,w,O).pipe((0,Wt.z)(cn=>{const Bt=cn.module,xn=cn.routes,{segmentGroup:Pn,slicedSegments:po}=N(h,ge,Ze,xn),Ur=new Dt(Pn.segments,Pn.children);if(0===po.length&&Ur.hasChildren())return this.expandChildren(Bt,xn,Ur).pipe((0,mt.U)(go=>new Dt(ge,go)));if(0===xn.length&&0===po.length)return(0,X.of)(new Dt(ge,{}));const mo=ni(w)===B;return this.expandSegment(Bt,Ur,xn,po,mo?D:B,!0).pipe((0,mt.U)(Dr=>new Dt(ge.concat(Dr.segments),Dr.children)))})):zt(h)}getChildConfig(f,h,w){return h.children?(0,X.of)(new qi(h.children,f)):h.loadChildren?void 0!==h._loadedConfig?(0,X.of)(h._loadedConfig):this.runCanLoadGuards(f.injector,h,w).pipe((0,Wt.z)(O=>O?this.configLoader.load(f.injector,h).pipe((0,mt.U)(B=>(h._loadedConfig=B,B))):function Sn(_){return Y(be(`Cannot load children because the guard of the route "path: '${_.path}'" returned false`))}(h))):(0,X.of)(new qi([],f))}runCanLoadGuards(f,h,w){const O=h.canLoad;if(!O||0===O.length)return(0,X.of)(!0);const B=O.map(ee=>{const ge=f.get(ee);let Ze;if(function qr(_){return _&&mi(_.canLoad)}(ge))Ze=ge.canLoad(h,w);else{if(!mi(ge))throw new Error("Invalid CanLoad guard");Ze=ge(h,w)}return vt(Ze)});return(0,X.of)(B).pipe(Qi(),(0,Pt.b)(ee=>{if(!Di(ee))return;const ge=be(`Redirecting to "${this.urlSerializer.serialize(ee)}"`);throw ge.url=ee,ge}),(0,mt.U)(ee=>!0===ee))}lineralizeSegments(f,h){let w=[],O=h.root;for(;;){if(w=w.concat(O.segments),0===O.numberOfChildren)return(0,X.of)(w);if(O.numberOfChildren>1||!O.children[D])return Y(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f.redirectTo}'`));O=O.children[D]}}applyRedirectCommands(f,h,w){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),f,w)}applyRedirectCreatreUrlTree(f,h,w,O){const B=this.createSegmentGroup(f,h.root,w,O);return new Kt(B,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(f,h){const w={};return dt(f,(O,B)=>{if("string"==typeof O&&O.startsWith(":")){const ge=O.substring(1);w[B]=h[ge]}else w[B]=O}),w}createSegmentGroup(f,h,w,O){const B=this.createSegments(f,h.segments,w,O);let ee={};return dt(h.children,(ge,Ze)=>{ee[Ze]=this.createSegmentGroup(f,ge,w,O)}),new Dt(B,ee)}createSegments(f,h,w,O){return h.map(B=>B.path.startsWith(":")?this.findPosParam(f,B,O):this.findOrReturn(B,w))}findPosParam(f,h,w){const O=w[h.path.substring(1)];if(!O)throw new Error(`Cannot redirect to '${f}'. Cannot find '${h.path}'.`);return O}findOrReturn(f,h){let w=0;for(const O of h){if(O.path===f.path)return h.splice(w),O;w++}return f}}function Ri(_){const f={};for(const w of Object.keys(_.children)){const B=Ri(_.children[w]);(B.segments.length>0||B.hasChildren())&&(f[w]=B)}return function er(_){if(1===_.numberOfChildren&&_.children[D]){const f=_.children[D];return new Dt(_.segments.concat(f.segments),f.children)}return _}(new Dt(_.segments,f))}class x{constructor(f){this.path=f,this.route=this.path[this.path.length-1]}}class M{constructor(f,h){this.component=f,this.route=h}}function y(_,f,h){const w=_._root;return Dn(w,f?f._root:null,h,[w.value])}function We(_,f,h){const w=function Et(_){if(!_)return null;for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(f);return(w?w.module.injector:h).get(_)}function Dn(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=Yn(f);return _.children.forEach(ee=>{(function gi(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=_.value,ee=f?f.value:null,ge=h?h.getContext(_.value.outlet):null;if(ee&&B.routeConfig===ee.routeConfig){const Ze=function Gi(_,f,h){if("function"==typeof h)return h(_,f);switch(h){case"pathParamsChange":return!_e(_.url,f.url);case"pathParamsOrQueryParamsChange":return!_e(_.url,f.url)||!ct(_.queryParams,f.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(_,f)||!ct(_.queryParams,f.queryParams);default:return!ir(_,f)}}(ee,B,B.routeConfig.runGuardsAndResolvers);Ze?O.canActivateChecks.push(new x(w)):(B.data=ee.data,B._resolvedData=ee._resolvedData),Dn(_,f,B.component?ge?ge.children:null:h,w,O),Ze&&ge&&ge.outlet&&ge.outlet.isActivated&&O.canDeactivateChecks.push(new M(ge.outlet.component,ee))}else ee&&Fi(f,ge,O),O.canActivateChecks.push(new x(w)),Dn(_,null,B.component?ge?ge.children:null:h,w,O)})(ee,B[ee.value.outlet],h,w.concat([ee.value]),O),delete B[ee.value.outlet]}),dt(B,(ee,ge)=>Fi(ee,h.getContext(ge),O)),O}function Fi(_,f,h){const w=Yn(_),O=_.value;dt(w,(B,ee)=>{Fi(B,O.component?f?f.children.getContext(ee):null:f,h)}),h.canDeactivateChecks.push(new M(O.component&&f&&f.outlet&&f.outlet.isActivated?f.outlet.component:null,O))}class k{}function Ee(_){return new o.y(f=>f.error(_))}class d{constructor(f,h,w,O,B,ee){this.rootComponentType=f,this.config=h,this.urlTree=w,this.url=O,this.paramsInheritanceStrategy=B,this.relativeLinkResolution=ee}recognize(){const f=N(this.urlTree.root,[],[],this.config.filter(ee=>void 0===ee.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,f,D);if(null===h)return null;const w=new gn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},D,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new tn(w,h),B=new di(this.url,O);return this.inheritParamsAndData(B._root),B}inheritParamsAndData(f){const h=f.value,w=Si(h,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data),f.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(f,h,w){return 0===h.segments.length&&h.hasChildren()?this.processChildren(f,h):this.processSegment(f,h,h.segments,w)}processChildren(f,h){const w=[];for(const B of Object.keys(h.children)){const ee=h.children[B],ge=ur(f,B),Ze=this.processSegmentGroup(ge,ee,B);if(null===Ze)return null;w.push(...Ze)}const O=R(w);return function a(_){_.sort((f,h)=>f.value.outlet===D?-1:h.value.outlet===D?1:f.value.outlet.localeCompare(h.value.outlet))}(O),O}processSegment(f,h,w,O){for(const B of f){const ee=this.processSegmentAgainstRoute(B,h,w,O);if(null!==ee)return ee}return En(h,w,O)?[]:null}processSegmentAgainstRoute(f,h,w,O){if(f.redirectTo||!ht(f,h,w,O))return null;let B,ee=[],ge=[];if("**"===f.path){const Pn=w.length>0?Yt(w).parameters:{};B=new gn(w,Pn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),ni(f),f.component,f,ie(h),oe(h)+w.length,Ke(f))}else{const Pn=A(h,f,w);if(!Pn.matched)return null;ee=Pn.consumedSegments,ge=Pn.remainingSegments,B=new gn(ee,Pn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),ni(f),f.component,f,ie(h),oe(h)+ee.length,Ke(f))}const Ze=function l(_){return _.children?_.children:_.loadChildren?_._loadedConfig.routes:[]}(f),{segmentGroup:Mt,slicedSegments:cn}=N(h,ee,ge,Ze.filter(Pn=>void 0===Pn.redirectTo),this.relativeLinkResolution);if(0===cn.length&&Mt.hasChildren()){const Pn=this.processChildren(Ze,Mt);return null===Pn?null:[new tn(B,Pn)]}if(0===Ze.length&&0===cn.length)return[new tn(B,[])];const Bt=ni(f)===O,xn=this.processSegment(Ze,Mt,cn,Bt?D:O);return null===xn?null:[new tn(B,xn)]}}function v(_){const f=_.value.routeConfig;return f&&""===f.path&&void 0===f.redirectTo}function R(_){const f=[],h=new Set;for(const w of _){if(!v(w)){f.push(w);continue}const O=f.find(B=>w.value.routeConfig===B.value.routeConfig);void 0!==O?(O.children.push(...w.children),h.add(O)):f.push(w)}for(const w of h){const O=R(w.children);f.push(new tn(w.value,O))}return f.filter(w=>!h.has(w))}function ie(_){let f=_;for(;f._sourceSegment;)f=f._sourceSegment;return f}function oe(_){let f=_,h=f._segmentIndexShift?f._segmentIndexShift:0;for(;f._sourceSegment;)f=f._sourceSegment,h+=f._segmentIndexShift?f._segmentIndexShift:0;return h-1}function Oe(_){return _.data||{}}function Ke(_){return _.resolve||{}}function Vt(_){return[...Object.keys(_),...Object.getOwnPropertySymbols(_)]}function Mn(_){return(0,Jt.w)(f=>{const h=_(f);return h?(0,de.D)(h).pipe((0,mt.U)(()=>f)):(0,X.of)(f)})}class Ei extends class li{shouldDetach(f){return!1}store(f,h){}shouldAttach(f){return!1}retrieve(f){return null}shouldReuseRoute(f,h){return f.routeConfig===h.routeConfig}}{}const ii=new c.OlP("ROUTES");class Sr{constructor(f,h,w,O){this.injector=f,this.compiler=h,this.onLoadStartListener=w,this.onLoadEndListener=O}load(f,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const O=this.loadModuleFactory(h.loadChildren).pipe((0,mt.U)(B=>{this.onLoadEndListener&&this.onLoadEndListener(h);const ee=B.create(f);return new qi(nn(ee.injector.get(ii,void 0,c.XFs.Self|c.XFs.Optional)).map(Xi),ee)}),Q(B=>{throw h._loader$=void 0,B}));return h._loader$=new se(O,()=>new Ye.x).pipe(te()),h._loader$}loadModuleFactory(f){return vt(f()).pipe((0,Wt.z)(h=>h instanceof c.YKP?(0,X.of)(h):(0,de.D)(this.compiler.compileModuleAsync(h))))}}class Ai{shouldProcessUrl(f){return!0}extract(f){return f}merge(f,h){return f}}function Cr(_){throw _}function Un(_,f,h){return f.parse("/")}function _i(_,f){return(0,X.of)(null)}const Hn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ri=(()=>{class _{constructor(h,w,O,B,ee,ge,Ze){this.rootComponentType=h,this.urlSerializer=w,this.rootContexts=O,this.location=B,this.config=Ze,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ye.x,this.errorHandler=Cr,this.malformedUriErrorHandler=Un,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_i,afterPreactivation:_i},this.urlHandlingStrategy=new Ai,this.routeReuseStrategy=new Ei,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ee.get(c.h0i),this.console=ee.get(c.c2e);const Bt=ee.get(c.R0b);this.isNgZoneEnabled=Bt instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(Ze),this.currentUrlTree=function Le(){return new Kt(new Dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sr(ee,ge,xn=>this.triggerEvent(new Ht(xn)),xn=>this.triggerEvent(new bt(xn))),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.transitions=new le.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const w=this.events;return h.pipe((0,pe.h)(O=>0!==O.id),(0,mt.U)(O=>Object.assign(Object.assign({},O),{extractedUrl:this.urlHandlingStrategy.extract(O.rawUrl)})),(0,Jt.w)(O=>{let B=!1,ee=!1;return(0,X.of)(O).pipe((0,Pt.b)(ge=>{this.currentNavigation={id:ge.id,initialUrl:ge.currentRawUrl,extractedUrl:ge.extractedUrl,trigger:ge.source,extras:ge.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Jt.w)(ge=>{const Ze=this.browserUrlTree.toString(),Mt=!this.navigated||ge.extractedUrl.toString()!==Ze||Ze!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Mt)&&this.urlHandlingStrategy.shouldProcessUrl(ge.rawUrl))return ho(ge.source)&&(this.browserUrlTree=ge.extractedUrl),(0,X.of)(ge).pipe((0,Jt.w)(Bt=>{const xn=this.transitions.getValue();return w.next(new on(Bt.id,this.serializeUrl(Bt.extractedUrl),Bt.source,Bt.restoredState)),xn!==this.transitions.getValue()?et.E:Promise.resolve(Bt)}),function ki(_,f,h,w){return(0,Jt.w)(O=>function Vn(_,f,h,w,O){return new wi(_,f,h,w,O).apply()}(_,f,h,O.extractedUrl,w).pipe((0,mt.U)(B=>Object.assign(Object.assign({},O),{urlAfterRedirects:B}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Pt.b)(Bt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Bt.urlAfterRedirects})}),function gt(_,f,h,w,O){return(0,Wt.z)(B=>function m(_,f,h,w,O="emptyOnly",B="legacy"){try{const ee=new d(_,f,h,w,O,B).recognize();return null===ee?Ee(new k):(0,X.of)(ee)}catch(ee){return Ee(ee)}}(_,f,B.urlAfterRedirects,h(B.urlAfterRedirects),w,O).pipe((0,mt.U)(ee=>Object.assign(Object.assign({},B),{targetSnapshot:ee}))))}(this.rootComponentType,this.config,Bt=>this.serializeUrl(Bt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Pt.b)(Bt=>{if("eager"===this.urlUpdateStrategy){if(!Bt.extras.skipLocationChange){const Pn=this.urlHandlingStrategy.merge(Bt.urlAfterRedirects,Bt.rawUrl);this.setBrowserUrl(Pn,Bt)}this.browserUrlTree=Bt.urlAfterRedirects}const xn=new K(Bt.id,this.serializeUrl(Bt.extractedUrl),this.serializeUrl(Bt.urlAfterRedirects),Bt.targetSnapshot);w.next(xn)}));if(Mt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xn,extractedUrl:Pn,source:po,restoredState:Ur,extras:mo}=ge,Ir=new on(xn,this.serializeUrl(Pn),po,Ur);w.next(Ir);const Dr=jt(Pn,this.rootComponentType).snapshot;return(0,X.of)(Object.assign(Object.assign({},ge),{targetSnapshot:Dr,urlAfterRedirects:Pn,extras:Object.assign(Object.assign({},mo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ge.rawUrl,ge.resolve(null),et.E}),Mn(ge=>{const{targetSnapshot:Ze,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.beforePreactivation(Ze,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,Pt.b)(ge=>{const Ze=new He(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(Ze)}),(0,mt.U)(ge=>Object.assign(Object.assign({},ge),{guards:y(ge.targetSnapshot,ge.currentSnapshot,this.rootContexts)})),function ot(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,currentSnapshot:O,guards:{canActivateChecks:B,canDeactivateChecks:ee}}=h;return 0===ee.length&&0===B.length?(0,X.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function sn(_,f,h,w){return(0,de.D)(_).pipe((0,Wt.z)(O=>function Xr(_,f,h,w,O){const B=f&&f.routeConfig?f.routeConfig.canDeactivate:null;if(!B||0===B.length)return(0,X.of)(!0);const ee=B.map(ge=>{const Ze=We(ge,f,O);let Mt;if(function zi(_){return _&&mi(_.canDeactivate)}(Ze))Mt=vt(Ze.canDeactivate(_,f,h,w));else{if(!mi(Ze))throw new Error("Invalid CanDeactivate guard");Mt=vt(Ze(_,f,h,w))}return Mt.pipe(Fe())});return(0,X.of)(ee).pipe(Qi())}(O.component,O.route,h,f,w)),Fe(O=>!0!==O,!0))}(ee,w,O,_).pipe((0,Wt.z)(ge=>ge&&function yr(_){return"boolean"==typeof _}(ge)?function Jr(_,f,h,w){return(0,de.D)(f).pipe((0,Rt.b)(O=>(0,Be.z)(function bo(_,f){return null!==_&&f&&f(new Nt(_)),(0,X.of)(!0)}(O.route.parent,w),function Zn(_,f){return null!==_&&f&&f(new Pe(_)),(0,X.of)(!0)}(O.route,w),function Vi(_,f,h){const w=f[f.length-1],B=f.slice(0,f.length-1).reverse().map(ee=>function U(_){const f=_.routeConfig?_.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:_,guards:f}:null}(ee)).filter(ee=>null!==ee).map(ee=>(0,Z.P)(()=>{const ge=ee.guards.map(Ze=>{const Mt=We(Ze,ee.node,h);let cn;if(function Nr(_){return _&&mi(_.canActivateChild)}(Mt))cn=vt(Mt.canActivateChild(w,_));else{if(!mi(Mt))throw new Error("Invalid CanActivateChild guard");cn=vt(Mt(w,_))}return cn.pipe(Fe())});return(0,X.of)(ge).pipe(Qi())}));return(0,X.of)(B).pipe(Qi())}(_,O.path,h),function br(_,f,h){const w=f.routeConfig?f.routeConfig.canActivate:null;if(!w||0===w.length)return(0,X.of)(!0);const O=w.map(B=>(0,Z.P)(()=>{const ee=We(B,f,h);let ge;if(function Mi(_){return _&&mi(_.canActivate)}(ee))ge=vt(ee.canActivate(f,_));else{if(!mi(ee))throw new Error("Invalid CanActivate guard");ge=vt(ee(f,_))}return ge.pipe(Fe())}));return(0,X.of)(O).pipe(Qi())}(_,O.route,h))),Fe(O=>!0!==O,!0))}(w,B,_,f):(0,X.of)(ge)),(0,mt.U)(ge=>Object.assign(Object.assign({},h),{guardsResult:ge})))})}(this.ngModule.injector,ge=>this.triggerEvent(ge)),(0,Pt.b)(ge=>{if(Di(ge.guardsResult)){const Mt=be(`Redirecting to "${this.serializeUrl(ge.guardsResult)}"`);throw Mt.url=ge.guardsResult,Mt}const Ze=new Ge(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot,!!ge.guardsResult);this.triggerEvent(Ze)}),(0,pe.h)(ge=>!!ge.guardsResult||(this.restoreHistory(ge),this.cancelNavigationTransition(ge,""),!1)),Mn(ge=>{if(ge.guards.canActivateChecks.length)return(0,X.of)(ge).pipe((0,Pt.b)(Ze=>{const Mt=new lt(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Mt)}),(0,Jt.w)(Ze=>{let Mt=!1;return(0,X.of)(Ze).pipe(function It(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,guards:{canActivateChecks:O}}=h;if(!O.length)return(0,X.of)(h);let B=0;return(0,de.D)(O).pipe((0,Rt.b)(ee=>function Xt(_,f,h,w){return function ln(_,f,h,w){const O=Vt(_);if(0===O.length)return(0,X.of)({});const B={};return(0,de.D)(O).pipe((0,Wt.z)(ee=>function rn(_,f,h,w){const O=We(_,f,w);return vt(O.resolve?O.resolve(f,h):O(f,h))}(_[ee],f,h,w).pipe((0,Pt.b)(ge=>{B[ee]=ge}))),Te(1),(0,Wt.z)(()=>Vt(B).length===O.length?(0,X.of)(B):et.E))}(_._resolve,_,f,w).pipe((0,mt.U)(B=>(_._resolvedData=B,_.data=Object.assign(Object.assign({},_.data),Si(_,h).resolve),null)))}(ee.route,w,_,f)),(0,Pt.b)(()=>B++),Te(1),(0,Wt.z)(ee=>B===O.length?(0,X.of)(h):et.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Pt.b)({next:()=>Mt=!0,complete:()=>{Mt||(this.restoreHistory(Ze),this.cancelNavigationTransition(Ze,"At least one route resolver didn't emit any value."))}}))}),(0,Pt.b)(Ze=>{const Mt=new St(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Mt)}))}),Mn(ge=>{const{targetSnapshot:Ze,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.afterPreactivation(Ze,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,mt.U)(ge=>{const Ze=function Tr(_,f,h){const w=Kn(_,f._root,h?h._root:void 0);return new pi(w,f)}(this.routeReuseStrategy,ge.targetSnapshot,ge.currentRouterState);return Object.assign(Object.assign({},ge),{targetRouterState:Ze})}),(0,Pt.b)(ge=>{this.currentUrlTree=ge.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ge.urlAfterRedirects,ge.rawUrl),this.routerState=ge.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ge.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ge),this.browserUrlTree=ge.urlAfterRedirects)}),((_,f,h)=>(0,mt.U)(w=>(new vr(f,w.targetRouterState,w.currentRouterState,h).activate(_),w)))(this.rootContexts,this.routeReuseStrategy,ge=>this.triggerEvent(ge)),(0,Pt.b)({next(){B=!0},complete(){B=!0}}),function Ct(_){return(0,Ce.e)((f,h)=>{try{f.subscribe(h)}finally{h.add(_)}})}(()=>{var ge;B||ee||this.cancelNavigationTransition(O,`Navigation ID ${O.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id)===O.id&&(this.currentNavigation=null)}),Q(ge=>{if(ee=!0,function Ue(_){return _&&_[re]}(ge)){const Ze=Di(ge.url);Ze||(this.navigated=!0,this.restoreHistory(O,!0));const Mt=new je(O.id,this.serializeUrl(O.extractedUrl),ge.message);w.next(Mt),Ze?setTimeout(()=>{const cn=this.urlHandlingStrategy.merge(ge.url,this.rawUrlTree),Bt={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ho(O.source)};this.scheduleNavigation(cn,"imperative",null,Bt,{resolve:O.resolve,reject:O.reject,promise:O.promise})},0):O.resolve(!1)}else{this.restoreHistory(O,!0);const Ze=new J(O.id,this.serializeUrl(O.extractedUrl),ge);w.next(Ze);try{O.resolve(this.errorHandler(ge))}catch(Mt){O.reject(Mt)}}return et.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const w="popstate"===h.type?"popstate":"hashchange";"popstate"===w&&setTimeout(()=>{var O;const B={replaceUrl:!0},ee=(null===(O=h.state)||void 0===O?void 0:O.navigationId)?h.state:null;if(ee){const Ze=Object.assign({},ee);delete Ze.navigationId,delete Ze.\u0275routerPageId,0!==Object.keys(Ze).length&&(B.state=Ze)}const ge=this.parseUrl(h.url);this.scheduleNavigation(ge,w,ee,B)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){cr(h),this.config=h.map(Xi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,w={}){const{relativeTo:O,queryParams:B,fragment:ee,queryParamsHandling:ge,preserveFragment:Ze}=w,Mt=O||this.routerState.root,cn=Ze?this.currentUrlTree.fragment:ee;let Bt=null;switch(ge){case"merge":Bt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),B);break;case"preserve":Bt=this.currentUrlTree.queryParams;break;default:Bt=B||null}return null!==Bt&&(Bt=this.removeEmptyProps(Bt)),function Zi(_,f,h,w,O){if(0===h.length)return Oi(f.root,f.root,f,w,O);const B=function fr(_){if("string"==typeof _[0]&&1===_.length&&"/"===_[0])return new rr(!0,0,_);let f=0,h=!1;const w=_.reduce((O,B,ee)=>{if("object"==typeof B&&null!=B){if(B.outlets){const ge={};return dt(B.outlets,(Ze,Mt)=>{ge[Mt]="string"==typeof Ze?Ze.split("/"):Ze}),[...O,{outlets:ge}]}if(B.segmentPath)return[...O,B.segmentPath]}return"string"!=typeof B?[...O,B]:0===ee?(B.split("/").forEach((ge,Ze)=>{0==Ze&&"."===ge||(0==Ze&&""===ge?h=!0:".."===ge?f++:""!=ge&&O.push(ge))}),O):[...O,B]},[]);return new rr(h,f,w)}(h);if(B.toRoot())return Oi(f.root,new Dt([],{}),f,w,O);const ee=function kr(_,f,h){if(_.isAbsolute)return new pr(f.root,!0,0);if(-1===h.snapshot._lastPathIndex){const B=h.snapshot._urlSegment;return new pr(B,B===f.root,0)}const w=On(_.commands[0])?0:1;return function uo(_,f,h){let w=_,O=f,B=h;for(;B>O;){if(B-=O,w=w.parent,!w)throw new Error("Invalid number of '../'");O=w.segments.length}return new pr(w,!1,O-B)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+w,_.numberOfDoubleDots)}(B,f,_),ge=ee.processChildren?gr(ee.segmentGroup,ee.index,B.commands):Fr(ee.segmentGroup,ee.index,B.commands);return Oi(ee.segmentGroup,ge,f,w,O)}(Mt,this.currentUrlTree,h,Bt,null!=cn?cn:null)}navigateByUrl(h,w={skipLocationChange:!1}){const O=Di(h)?h:this.parseUrl(h),B=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation(B,"imperative",null,w)}navigate(h,w={skipLocationChange:!1}){return function Mo(_){for(let f=0;f<_.length;f++){const h=_[f];if(null==h)throw new Error(`The requested path contains ${h} segment at index ${f}`)}}(h),this.navigateByUrl(this.createUrlTree(h,w),w)}serializeUrl(h){return this.urlSerializer.serialize(h)}parseUrl(h){let w;try{w=this.urlSerializer.parse(h)}catch(O){w=this.malformedUriErrorHandler(O,this.urlSerializer,h)}return w}isActive(h,w){let O;if(O=!0===w?Object.assign({},Hn):!1===w?Object.assign({},eo):w,Di(h))return j(this.currentUrlTree,h,O);const B=this.parseUrl(h);return j(this.currentUrlTree,B,O)}removeEmptyProps(h){return Object.keys(h).reduce((w,O)=>{const B=h[O];return null!=B&&(w[O]=B),w},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Xe(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,w,O,B,ee){var ge,Ze,Mt;if(this.disposed)return Promise.resolve(!1);const cn=this.transitions.value,Bt=ho(w)&&cn&&!ho(cn.source),xn=cn.rawUrl.toString()===h.toString(),Pn=cn.id===(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id);if(Bt&&xn&&Pn)return Promise.resolve(!0);let Ur,mo,Ir;ee?(Ur=ee.resolve,mo=ee.reject,Ir=ee.promise):Ir=new Promise((Ao,ea)=>{Ur=Ao,mo=ea});const Dr=++this.navigationId;let go;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(O=this.location.getState()),go=O&&O.\u0275routerPageId?O.\u0275routerPageId:B.replaceUrl||B.skipLocationChange?null!==(Ze=this.browserPageId)&&void 0!==Ze?Ze:0:(null!==(Mt=this.browserPageId)&&void 0!==Mt?Mt:0)+1):go=0,this.setTransition({id:Dr,targetPageId:go,source:w,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:B,resolve:Ur,reject:mo,promise:Ir,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ir.catch(Ao=>Promise.reject(Ao))}setBrowserUrl(h,w){const O=this.urlSerializer.serialize(h),B=Object.assign(Object.assign({},w.extras.state),this.generateNgRouterState(w.id,w.targetPageId));this.location.isCurrentPathEqualTo(O)||w.extras.replaceUrl?this.location.replaceState(O,"",B):this.location.go(O,"",B)}restoreHistory(h,w=!1){var O,B;if("computed"===this.canceledNavigationResolution){const ee=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(O=this.currentNavigation)||void 0===O?void 0:O.finalUrl)||0===ee?this.currentUrlTree===(null===(B=this.currentNavigation)||void 0===B?void 0:B.finalUrl)&&0===ee&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ee)}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,w){const O=new je(h.id,this.serializeUrl(h.extractedUrl),w);this.triggerEvent(O),h.resolve(!1)}generateNgRouterState(h,w){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:w}:{navigationId:h}}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function ho(_){return"imperative"!==_}let Tt=(()=>{class _{constructor(h,w,O,B,ee){this.router=h,this.route=w,this.tabIndexAttribute=O,this.renderer=B,this.el=ee,this.commands=null,this.onChanges=new Ye.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const w=this.renderer,O=this.el.nativeElement;null!==h?w.setAttribute(O,"tabindex",h):w.removeAttribute(O,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(ri),c.Y36(Jn),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},_.\u0275dir=c.lG2({type:_,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,w){1&h&&c.NdJ("click",function(){return w.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})(),Ft=(()=>{class _{constructor(h,w,O){this.router=h,this.route=w,this.locationStrategy=O,this.commands=null,this.href=null,this.onChanges=new Ye.x,this.subscription=h.events.subscribe(B=>{B instanceof Xe&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,w,O,B,ee){if(0!==h||w||O||B||ee||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ge={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ge),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(ri),c.Y36(Jn),c.Y36(Ut.S$))},_.\u0275dir=c.lG2({type:_,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,w){1&h&&c.NdJ("click",function(B){return w.onClick(B.button,B.ctrlKey,B.shiftKey,B.altKey,B.metaKey)}),2&h&&c.uIk("target",w.target)("href",w.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})();function Lt(_){return""===_||!!_}class Hi{}class Er{preload(f,h){return(0,X.of)(null)}}let wn=(()=>{class _{constructor(h,w,O,B){this.router=h,this.injector=O,this.preloadingStrategy=B,this.loader=new Sr(O,w,Ze=>h.triggerEvent(new Ht(Ze)),Ze=>h.triggerEvent(new bt(Ze)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,pe.h)(h=>h instanceof Xe),(0,Rt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(c.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,w){const O=[];for(const B of w)if(B.loadChildren&&!B.canLoad&&B._loadedConfig){const ee=B._loadedConfig;O.push(this.processRoutes(ee.module,ee.routes))}else B.loadChildren&&!B.canLoad?O.push(this.preloadConfig(h,B)):B.children&&O.push(this.processRoutes(h,B.children));return(0,de.D)(O).pipe((0,mn.J)(),(0,mt.U)(B=>{}))}preloadConfig(h,w){return this.preloadingStrategy.preload(w,()=>(w._loadedConfig?(0,X.of)(w._loadedConfig):this.loader.load(h.injector,w)).pipe((0,Wt.z)(B=>(w._loadedConfig=B,this.processRoutes(B.module,B.routes)))))}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(ri),c.LFG(c.Sil),c.LFG(c.zs3),c.LFG(Hi))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})(),Or=(()=>{class _{constructor(h,w,O={}){this.router=h,this.viewportScroller=w,this.options=O,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},O.scrollPositionRestoration=O.scrollPositionRestoration||"disabled",O.anchorScrolling=O.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof on?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Xe&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof S&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,w){this.router.triggerEvent(new S(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,w))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();const Qn=new c.OlP("ROUTER_CONFIGURATION"),$i=new c.OlP("ROUTER_FORROOT_GUARD"),dr=[Ut.Ye,{provide:Ie,useClass:rt},{provide:ri,useFactory:function _s(_,f,h,w,O,B,ee={},ge,Ze){const Mt=new ri(null,_,f,h,w,O,nn(B));return ge&&(Mt.urlHandlingStrategy=ge),Ze&&(Mt.routeReuseStrategy=Ze),function ko(_,f){_.errorHandler&&(f.errorHandler=_.errorHandler),_.malformedUriErrorHandler&&(f.malformedUriErrorHandler=_.malformedUriErrorHandler),_.onSameUrlNavigation&&(f.onSameUrlNavigation=_.onSameUrlNavigation),_.paramsInheritanceStrategy&&(f.paramsInheritanceStrategy=_.paramsInheritanceStrategy),_.relativeLinkResolution&&(f.relativeLinkResolution=_.relativeLinkResolution),_.urlUpdateStrategy&&(f.urlUpdateStrategy=_.urlUpdateStrategy),_.canceledNavigationResolution&&(f.canceledNavigationResolution=_.canceledNavigationResolution)}(ee,Mt),ee.enableTracing&&Mt.events.subscribe(cn=>{var Bt,xn;null===(Bt=console.group)||void 0===Bt||Bt.call(console,`Router Event: ${cn.constructor.name}`),console.log(cn.toString()),console.log(cn),null===(xn=console.groupEnd)||void 0===xn||xn.call(console)}),Mt},deps:[Ie,Ii,Ut.Ye,c.zs3,c.Sil,ii,Qn,[class Ui{},new c.FiY],[class $n{},new c.FiY]]},Ii,{provide:Jn,useFactory:function Xs(_){return _.routerState.root},deps:[ri]},wn,Er,class Li{preload(f,h){return h().pipe(Q(()=>(0,X.of)(null)))}},{provide:Qn,useValue:{enableTracing:!1}}];function Vr(){return new c.PXZ("Router",ri)}let wo=(()=>{class _{constructor(h,w){}static forRoot(h,w){return{ngModule:_,providers:[dr,gs(h),{provide:$i,useFactory:Ro,deps:[[ri,new c.FiY,new c.tp0]]},{provide:Qn,useValue:w||{}},{provide:Ut.S$,useFactory:fu,deps:[Ut.lw,[new c.tBr(Ut.mr),new c.FiY],Qn]},{provide:Or,useFactory:hu,deps:[ri,Ut.EM,Qn]},{provide:Hi,useExisting:w&&w.preloadingStrategy?w.preloadingStrategy:Er},{provide:c.PXZ,multi:!0,useFactory:Vr},[Fo,{provide:c.ip1,multi:!0,useFactory:Co,deps:[Fo]},{provide:fo,useFactory:za,deps:[Fo]},{provide:c.tb,multi:!0,useExisting:fo}]]}}static forChild(h){return{ngModule:_,providers:[gs(h)]}}}return _.\u0275fac=function(h){return new(h||_)(c.LFG($i,8),c.LFG(ri,8))},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({}),_})();function hu(_,f,h){return h.scrollOffset&&f.setOffset(h.scrollOffset),new Or(_,f,h)}function fu(_,f,h={}){return h.useHash?new Ut.Do(_,f):new Ut.b0(_,f)}function Ro(_){return"guarded"}function gs(_){return[{provide:c.deG,multi:!0,useValue:_},{provide:ii,multi:!0,useValue:_}]}let Fo=(()=>{class _{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ye.x}appInitializer(){return this.injector.get(Ut.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let w=null;const O=new Promise(ge=>w=ge),B=this.injector.get(ri),ee=this.injector.get(Qn);return"disabled"===ee.initialNavigation?(B.setUpLocationChangeListener(),w(!0)):"enabled"===ee.initialNavigation||"enabledBlocking"===ee.initialNavigation?(B.hooks.afterPreactivation=()=>this.initNavigation?(0,X.of)(null):(this.initNavigation=!0,w(!0),this.resultOfPreactivationDone),B.initialNavigation()):w(!0),O})}bootstrapListener(h){const w=this.injector.get(Qn),O=this.injector.get(wn),B=this.injector.get(Or),ee=this.injector.get(ri),ge=this.injector.get(c.z2F);h===ge.components[0]&&(("enabledNonBlocking"===w.initialNavigation||void 0===w.initialNavigation)&&ee.initialNavigation(),O.setUpPreloading(),B.init(),ee.resetRootComponentType(ge.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(c.zs3))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function Co(_){return _.appInitializer.bind(_)}function za(_){return _.bootstrapListener.bind(_)}const fo=new c.OlP("Router Initializer")}},qe=>{qe(qe.s=5664)}]);
\ No newline at end of file
+"use strict";(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{6498:(Ye,be,C)=>{C.d(be,{z:()=>m});var l=C(4893),o=C(2313);let m=(()=>{class K{constructor(Q){this.sanitizer=Q}transform(Q,Me){return Q=(Q=(Q=Q.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(Q)}}return K.\u0275fac=function(Q){return new(Q||K)(l.Y36(o.H7,16))},K.\u0275pipe=l.Yjl({name:"safeHtml",type:K,pure:!0}),K})()},5928:(Ye,be,C)=>{C.d(be,{h:()=>Ve});var l=C(8966),o=C(8306),m=C(4986),K=C(5963),Q=C(4893),Me=C(9808),Ee=C(7423),de=C(7918),ne=C(6498);function se(q,tt){if(1&q){const Ze=Q.EpF();Q.TgZ(0,"button",3),Q.NdJ("click",function(){return Q.CHM(Ze),Q.oxw().close()}),Q.TgZ(1,"uds-translate"),Q._uU(2,"Close"),Q.qZA(),Q._uU(3),Q.qZA()}if(2&q){const Ze=Q.oxw();Q.xp6(3),Q.Oqu(Ze.extra)}}function he(q,tt){if(1&q){const Ze=Q.EpF();Q.TgZ(0,"button",3),Q.NdJ("click",function(){return Q.CHM(Ze),Q.oxw().yes()}),Q.TgZ(1,"uds-translate"),Q._uU(2,"Yes"),Q.qZA()()}}function ee(q,tt){if(1&q){const Ze=Q.EpF();Q.TgZ(0,"button",3),Q.NdJ("click",function(){return Q.CHM(Ze),Q.oxw().no()}),Q.TgZ(1,"uds-translate"),Q._uU(2,"No"),Q.qZA()()}}var le=(()=>{return(q=le||(le={}))[q.alert=0]="alert",q[q.yesno=1]="yesno",le;var q})();let Fe=(()=>{class q{constructor(Ze,Qe){this.dialogRef=Ze,this.data=Qe,this.subscription=null,this.resetCallbacks(),this.yesno=new o.y(ge=>{this.yes=()=>{ge.next(!0),ge.complete()},this.no=()=>{ge.next(!1),ge.complete()},this.close=()=>{this.doClose(),ge.next(!1),ge.complete()};const G=this;return{unsubscribe:()=>G.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(Ze){this.extra=" ("+Math.floor(Ze/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(Ze=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function ue(q=0,tt=m.z){return q<0&&(q=0),(0,K.H)(q,q,tt)}(1e3).subscribe(Ze=>{const Qe=this.data.autoclose-1e3*(Ze+1);this.setExtra(Qe),Qe<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(Ze=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(Ze=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===le.yesno?this.initYesNo():this.initAlert()}}return q.\u0275fac=function(Ze){return new(Ze||q)(Q.Y36(l.so),Q.Y36(l.WI))},q.\u0275cmp=Q.Xpm({type:q,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(Ze,Qe){1&Ze&&(Q._UZ(0,"h4",0),Q.ALo(1,"safeHtml"),Q._UZ(2,"mat-dialog-content",1),Q.ALo(3,"safeHtml"),Q.TgZ(4,"mat-dialog-actions"),Q.YNc(5,se,4,1,"button",2),Q.YNc(6,he,3,0,"button",2),Q.YNc(7,ee,3,0,"button",2),Q.qZA()),2&Ze&&(Q.Q6J("innerHtml",Q.lcZ(1,5,Qe.data.title),Q.oJD),Q.xp6(2),Q.Q6J("innerHTML",Q.lcZ(3,7,Qe.data.body),Q.oJD),Q.xp6(3),Q.Q6J("ngIf",0===Qe.data.type),Q.xp6(1),Q.Q6J("ngIf",1===Qe.data.type),Q.xp6(1),Q.Q6J("ngIf",1===Qe.data.type))},directives:[l.uh,l.xY,l.H8,Me.O5,Ee.lW,l.ZT,de.P],pipes:[ne.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),q})(),Ve=(()=>{class q{constructor(Ze){this.dialog=Ze}alert(Ze,Qe,ge=0,G=null){const J=window.innerWidth<800?"80%":"40%";return this.dialog.open(Fe,{width:J,data:{title:Ze,body:Qe,autoclose:ge,checkClose:G,type:le.alert},disableClose:!0})}yesno(Ze,Qe){const ge=window.innerWidth<800?"80%":"40%";return this.dialog.open(Fe,{width:ge,data:{title:Ze,body:Qe,type:le.yesno},disableClose:!0}).componentInstance.yesno}}return q.\u0275fac=function(Ze){return new(Ze||q)(Q.LFG(l.uw))},q.\u0275prov=Q.Yz7({token:q,factory:q.\u0275fac}),q})()},2870:(Ye,be,C)=>{C.d(be,{S:()=>o});var l=C(8306);let o=(()=>{class m{constructor(ue){this.api=ue,this.delay=ue.config.launcher_wait_time}launchURL(ue){let Q="init";const Me=Ee=>{let de=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof Ee?de=Ee:403===Ee.status&&(de=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),de,5e3),403===Ee.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===ue.substring(0,7)){const Ee=ue.split("//")[1].split("/"),de=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new l.y(ne=>{let se=0;const he=()=>{de.componentInstance&&this.api.status(Ee[0],Ee[1]).subscribe(le=>{"ready"===le.status?(se?Date.now()-se>5*this.delay&&(de.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),de.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(se=Date.now(),de.componentInstance.data.title=django.gettext("Service ready"),de.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(he,this.delay)):"accessed"===le.status?(de.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),ne.next(!0),ne.complete()):"running"===le.status?window.setTimeout(he,this.delay):(ne.next(!0),ne.complete(),Me())},le=>{ne.next(!0),ne.complete(),Me(le)})},ee=()=>{if("init"===Q)window.setTimeout(ee,this.delay);else{if("error"===Q||"stop"===Q)return;window.setTimeout(he)}};window.setTimeout(ee)}));this.api.enabler(Ee[0],Ee[1]).subscribe(ne=>{if(ne.error)Q="error",this.api.gui.alert(django.gettext("Error launching service"),ne.error);else{if(ne.url.startsWith("/"))return de.componentInstance&&de.componentInstance.close(),Q="stop",void this.launchURL(ne.url);"https:"===window.location.protocol&&(ne.url=ne.url.replace("uds://","udss://")),Q="enabled",this.doLaunch(ne.url)}},ne=>{this.api.logout()})}else{const Ee=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new l.y(de=>{const ne=()=>{Ee.componentInstance&&this.api.transportUrl(ue).subscribe(se=>{if(se.url)if(de.next(!0),de.complete(),-1!==se.url.indexOf("o_s_w=")){const he=/(.*)&o_s_w=.*/.exec(se.url);window.location.href=he[1]}else{let he="global";if(-1!==se.url.indexOf("o_n_w=")){const ee=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(se.url);ee&&(he=ee[2],se.url=ee[1])}m.transportsWindow[he]&&m.transportsWindow[he].close(),m.transportsWindow[he]=window.open(se.url,"uds_trans_"+he)}else se.running?window.setTimeout(ne,this.delay):(de.next(!0),de.complete(),Me(se.error))},se=>{de.next(!0),de.complete(),Me(se)})};window.setTimeout(ne)}))}}showAlert(ue,Q,Me,Ee=null){return this.api.gui.alert(django.gettext("Launching service"),''+ue+'
'+Q+"
",Me,Ee)}doLaunch(ue){let Q=document.getElementById("hiddenUdsLauncherIFrame");if(null===Q){const Me=document.createElement("div");Me.id="testID",Me.innerHTML='',document.body.appendChild(Me),Q=document.getElementById("hiddenUdsLauncherIFrame")}Q.contentWindow.location.href=ue}}return m.transportsWindow={},m})()},4902:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>LoginComponent});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4893),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2382),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7322),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7531),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9808),_angular_material_select__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4107),_angular_material_core__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(508),_angular_material_button__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7423),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(Ye,be){if(1&Ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&Ye){const C=be.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.name," ")}}function LoginComponent_div_22_Template(Ye,be){if(1&Ye){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9)(1,"mat-form-field",17)(2,"mat-label")(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(o){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(C),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(o.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()}if(2&Ye){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",C.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(Ye){this.api=Ye,this.title="UDS Enterprise",this.title=Ye.config.site_name,this.auths=Ye.config.authenticators.slice(0),this.auths.sort((be,C)=>be.priority-C.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const be=document.getElementById("token");be.name=this.api.csrfField,be.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),""+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const Ye of this.auths)Ye.id===auth&&Ye.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(Ye.id).subscribe(be=>doCustomAuth(be)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function Ye(be){return new(be||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function Ye(be,C){1&be&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return C.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1)(2,"input",2)(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4)(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8)(10,"div",9)(11,"mat-form-field",10)(12,"mat-label")(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9)(17,"mat-form-field",10)(18,"mat-label")(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14)(24,"button",15)(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()),2&be&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",C.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",C.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,C.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_select__WEBPACK_IMPORTED_MODULE_7__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_8__.ey,_angular_material_button__WEBPACK_IMPORTED_MODULE_9__.lW],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:(Ye,be,C)=>{C.d(be,{P:()=>o});var l=C(4893);let o=(()=>{class m{constructor(ue){this.el=ue}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return m.\u0275fac=function(ue){return new(ue||m)(l.Y36(l.SBq))},m.\u0275dir=l.lG2({type:m,selectors:[["uds-translate"]]}),m})()},3513:(Ye,be,C)=>{C.d(be,{n:()=>l});class l{constructor(m){this.user=m.user,this.role=m.role,this.admin=m.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{n:()=>UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4893),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(520),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5928),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9525);const DARK_THEME="dark-theme",LIGHT_THEME="light-theme";let UDSApiService=(()=>{class UDSApiService{constructor(Ye,be,C){this.http=Ye,this.gui=be,this.router=C,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(Ye,be){const C=this.config.urls.enabler.replace("param1",Ye).replace("param2",be);return this.http.get(C)}status(Ye,be){const C=this.config.urls.status.replace("param1",Ye).replace("param2",be);return this.http.get(C)}action(Ye,be){const C=this.config.urls.action.replace("param1",be).replace("param2",Ye);return this.http.get(C)}transportUrl(Ye){return this.http.get(Ye)}galleryImageURL(Ye){return this.config.urls.galleryImage.replace("param1",Ye)}transportIconURL(Ye){return this.config.urls.transportIcon.replace("param1",Ye)}staticURL(Ye){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+Ye:"/static/"+Ye}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(Ye){return this.http.get(this.config.urls.error.replace("9999",Ye))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(Ye){this.plugin.launchURL(Ye)}getAuthCustomHtml(Ye){return this.http.get(this.config.urls.customAuth+Ye,{responseType:"text"})}switchTheme(Ye){const be=document.getElementsByTagName("html")[0];[DARK_THEME,LIGHT_THEME].forEach(C=>{be.classList.contains(C)&&be.classList.remove(C)}),be.classList.add(Ye?DARK_THEME:LIGHT_THEME)}}return UDSApiService.\u0275fac=function Ye(be){return new(be||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:(Ye,be,C)=>{C.d(be,{N:()=>l});const l={production:!0}},5664:(Ye,be,C)=>{var l=C(2313),o=C(4893),m=C(3191),K=C(7579),ue=C(9841),Q=C(7272),Me=C(8306),Ee=C(5698),de=C(5684),ne=C(8372),se=C(4004),he=C(8675),ee=C(2722),le=C(925);let Fe=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();const Ve=new Set;let q,tt=(()=>{class k{constructor(p){this._platform=p,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qe}matchMedia(p){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ze(k){if(!Ve.has(k))try{q||(q=document.createElement("style"),q.setAttribute("type","text/css"),document.head.appendChild(q)),q.sheet&&(q.sheet.insertRule(`@media ${k} {body{ }}`,0),Ve.add(k))}catch(De){console.error(De)}}(p),this._matchMedia(p)}}return k.\u0275fac=function(p){return new(p||k)(o.LFG(le.t4))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function Qe(k){return{matches:"all"===k||""===k,media:k,addListener:()=>{},removeListener:()=>{}}}let ge=(()=>{class k{constructor(p,R){this._mediaMatcher=p,this._zone=R,this._queries=new Map,this._destroySubject=new K.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(p){return G((0,m.Eq)(p)).some(g=>this._registerQuery(g).mql.matches)}observe(p){const g=G((0,m.Eq)(p)).map(u=>this._registerQuery(u).observable);let a=(0,ue.a)(g);return a=(0,Q.z)(a.pipe((0,Ee.q)(1)),a.pipe((0,de.T)(1),(0,ne.b)(0))),a.pipe((0,se.U)(u=>{const b={matches:!1,breakpoints:{}};return u.forEach(({matches:F,query:$})=>{b.matches=b.matches||F,b.breakpoints[$]=F}),b}))}_registerQuery(p){if(this._queries.has(p))return this._queries.get(p);const R=this._mediaMatcher.matchMedia(p),a={observable:new Me.y(u=>{const b=F=>this._zone.run(()=>u.next(F));return R.addListener(b),()=>{R.removeListener(b)}}).pipe((0,he.O)(R),(0,se.U)(({matches:u})=>({query:p,matches:u})),(0,ee.R)(this._destroySubject)),mql:R};return this._queries.set(p,a),a}}return k.\u0275fac=function(p){return new(p||k)(o.LFG(tt),o.LFG(o.R0b))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function G(k){return k.map(De=>De.split(",")).reduce((De,p)=>De.concat(p)).map(De=>De.trim())}var me=C(520),xe=C(9525),Be=C(7540);let ye=(()=>{class k{constructor(p){this.api=p}canActivate(p,R){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return k.\u0275fac=function(p){return new(p||k)(o.LFG(Be.n))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();var we=C(4902),Se=C(7918),Te=C(9808);function nt(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const a=o.CHM(p).$implicit;return o.oxw().download(a.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o.TgZ(3,"div",9),o._uU(4),o.qZA(),o.TgZ(5,"div",10),o._uU(6),o.qZA()()}if(2&k){const p=De.$implicit,R=o.oxw();o.Tol(R.css(p)),o.xp6(2),o.Q6J("src",R.img(p.name),o.LSH),o.xp6(2),o.lnq(" ",R.legacy(p)," ",p.name," (",p.url.split(".").pop(),") "),o.xp6(2),o.hij(" ",p.description," ")}}let Le=(()=>{class k{constructor(p){this.api=p}ngOnInit(){}download(p){window.location.href=p}img(p){return this.api.staticURL("modern/img/"+p+".png")}css(p){const R=["plugin"];return p.legacy&&R.push("legacy"),R}legacy(p){return p.legacy?"Legacy":""}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(p,R){1&p&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"UDS Client"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,nt,7,7,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Download UDS client for your platform"),o.qZA()()()()()),2&p&&(o.xp6(7),o.Q6J("ngForOf",R.api.plugins))},directives:[Se.P,Te.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem} .dark-theme uds-client-download{color:#fff!important} .dark-theme .plugin.legacy{background-color:#a9a9a9} .dark-theme .plugin:hover{background-color:#ffffff1a}"]}),k})();var Et=C(6498);function gt(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const a=o.CHM(p).$implicit;return o.oxw().download(a.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o._UZ(3,"div",9),o.ALo(4,"safeHtml"),o._UZ(5,"div",10),o.ALo(6,"safeHtml"),o.qZA()}if(2&k){const p=De.$implicit,R=o.oxw();o.Tol(R.css(p.name)),o.xp6(2),o.Q6J("src",R.img(p.name),o.LSH),o.xp6(1),o.Q6J("innerHTML",o.lcZ(4,5,p.name),o.oJD),o.xp6(2),o.Q6J("innerHTML",o.lcZ(6,7,p.description),o.oJD)}}let Xt=(()=>{class k{constructor(p){this.api=p}ngOnInit(){this.actors=[];const p=[];this.api.actors.forEach(R=>{R.name.includes("legacy")?p.push(R):this.actors.push(R)}),p.forEach(R=>{this.actors.push(R)})}download(p){window.location.href=p}img(p){const R=p.split(".").pop().toLowerCase();let g="Linux";return"exe"===R?g="Windows":"pkg"===R&&(g="MacOS"),this.api.staticURL("modern/img/"+g+".png")}css(p){const R=["actor"];return p.toLowerCase().includes("legacy")&&R.push("legacy"),R}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(p,R){1&p&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"Downloads"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,gt,7,9,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Always download the UDS actor matching your platform"),o.qZA()(),o.TgZ(13,"li")(14,"uds-translate"),o._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),o.qZA()()()()()),2&p&&(o.xp6(7),o.Q6J("ngForOf",R.actors))},directives:[Se.P,Te.sg],pipes:[Et.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:700;overflow:hidden} .dark-theme uds-downloads{color:#fff!important} .dark-theme .actor.legacy{background-color:#464646}"]}),k})();var bt=C(4968),kt=C(9300),Yt=C(1884),Rt=C(8505),gn=C(7322),Ht=C(7531);const St=["input"];let sn=(()=>{class k{constructor(){this.updateEvent=new o.vpe}ngAfterViewInit(){(0,bt.R)(this.input.nativeElement,"keyup").pipe((0,kt.h)(Boolean),(0,ne.b)(600),(0,Yt.x)(),(0,Rt.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(p){this.updateEvent.emit(p.toLowerCase())}}return k.\u0275fac=function(p){return new(p||k)},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-filter"]],viewQuery:function(p,R){if(1&p&&o.Gf(St,7),2&p){let g;o.iGM(g=o.CRH())&&(R.input=g.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(p,R){1&p&&(o.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label")(3,"uds-translate"),o._uU(4,"Filter"),o.qZA()(),o._UZ(5,"input",2,3),o.TgZ(7,"i",4),o._uU(8,"search"),o.qZA()()())},directives:[gn.KE,gn.hX,Se.P,Ht.Nt,gn.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),k})();var et=C(727),ze=C(449);let X=0;const Z=new o.OlP("CdkAccordion");let je=(()=>{class k{constructor(){this._stateChanges=new K.x,this._openCloseAllActions=new K.x,this.id="cdk-accordion-"+X++,this._multi=!1}get multi(){return this._multi}set multi(p){this._multi=(0,m.Ig)(p)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(p){this._stateChanges.next(p)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return k.\u0275fac=function(p){return new(p||k)},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[o._Bn([{provide:Z,useExisting:k}]),o.TTD]}),k})(),$e=0,ct=(()=>{class k{constructor(p,R,g){this.accordion=p,this._changeDetectorRef=R,this._expansionDispatcher=g,this._openCloseAllSubscription=et.w0.EMPTY,this.closed=new o.vpe,this.opened=new o.vpe,this.destroyed=new o.vpe,this.expandedChange=new o.vpe,this.id="cdk-accordion-child-"+$e++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=g.listen((a,u)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===u&&this.id!==a&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(p){p=(0,m.Ig)(p),this._expanded!==p&&(this._expanded=p,this.expandedChange.emit(p),p?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(p){this._disabled=(0,m.Ig)(p)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(p=>{this.disabled||(this.expanded=p)})}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Z,12),o.Y36(o.sBO),o.Y36(ze.A8))},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[o._Bn([{provide:Z,useValue:void 0}])]}),k})(),Ot=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();var jt=C(7429),Ct=C(508),Bt=C(9950),lt=C(1159),Re=C(6360),E=C(515),S=C(6451),D=C(1777);const P=["body"];function N(k,De){}const oe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ce=["mat-expansion-panel-header","*","mat-action-row"];function He(k,De){if(1&k&&o._UZ(0,"span",2),2&k){const p=o.oxw();o.Q6J("@indicatorRotate",p._getExpandedState())}}const Ge=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_t=["mat-panel-title","mat-panel-description","*"],ut=new o.OlP("MAT_ACCORDION"),It="225ms cubic-bezier(0.4,0.0,0.2,1)",rn={indicatorRotate:(0,D.X$)("indicatorRotate",[(0,D.SB)("collapsed, void",(0,D.oB)({transform:"rotate(0deg)"})),(0,D.SB)("expanded",(0,D.oB)({transform:"rotate(180deg)"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(It))]),bodyExpansion:(0,D.X$)("bodyExpansion",[(0,D.SB)("collapsed, void",(0,D.oB)({height:"0px",visibility:"hidden"})),(0,D.SB)("expanded",(0,D.oB)({height:"*",visibility:"visible"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(It))])};let Kt=(()=>{class k{constructor(p){this._template=p}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(o.Rgc))},k.\u0275dir=o.lG2({type:k,selectors:[["ng-template","matExpansionPanelContent",""]]}),k})(),hn=0;const ht=new o.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let vt=(()=>{class k extends ct{constructor(p,R,g,a,u,b,F){super(p,R,g),this._viewContainerRef=a,this._animationMode=b,this._hideToggle=!1,this.afterExpand=new o.vpe,this.afterCollapse=new o.vpe,this._inputChanges=new K.x,this._headerId="mat-expansion-panel-header-"+hn++,this._bodyAnimationDone=new K.x,this.accordion=p,this._document=u,this._bodyAnimationDone.pipe((0,Yt.x)(($,re)=>$.fromState===re.fromState&&$.toState===re.toState)).subscribe($=>{"void"!==$.fromState&&("expanded"===$.toState?this.afterExpand.emit():"collapsed"===$.toState&&this.afterCollapse.emit())}),F&&(this.hideToggle=F.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(p){this._hideToggle=(0,m.Ig)(p)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(p){this._togglePosition=p}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,he.O)(null),(0,kt.h)(()=>this.expanded&&!this._portal),(0,Ee.q)(1)).subscribe(()=>{this._portal=new jt.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(p){this._inputChanges.next(p)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const p=this._document.activeElement,R=this._body.nativeElement;return p===R||R.contains(p)}return!1}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(ut,12),o.Y36(o.sBO),o.Y36(ze.A8),o.Y36(o.s_b),o.Y36(Te.K0),o.Y36(Re.Qb,8),o.Y36(ht,8))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel"]],contentQueries:function(p,R,g){if(1&p&&o.Suo(g,Kt,5),2&p){let a;o.iGM(a=o.CRH())&&(R._lazyContent=a.first)}},viewQuery:function(p,R){if(1&p&&o.Gf(P,5),2&p){let g;o.iGM(g=o.CRH())&&(R._body=g.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(p,R){2&p&&o.ekj("mat-expanded",R.expanded)("_mat-animation-noopable","NoopAnimations"===R._animationMode)("mat-expansion-panel-spacing",R._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[o._Bn([{provide:ut,useValue:void 0}]),o.qOj,o.TTD],ngContentSelectors:Ce,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(p,R){1&p&&(o.F$t(oe),o.Hsn(0),o.TgZ(1,"div",0,1),o.NdJ("@bodyExpansion.done",function(a){return R._bodyAnimationDone.next(a)}),o.TgZ(3,"div",2),o.Hsn(4,1),o.YNc(5,N,0,0,"ng-template",3),o.qZA(),o.Hsn(6,2),o.qZA()),2&p&&(o.xp6(1),o.Q6J("@bodyExpansion",R._getExpandedState())("id",R.id),o.uIk("aria-labelledby",R._headerId),o.xp6(4),o.Q6J("cdkPortalOutlet",R._portal))},directives:[jt.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[rn.bodyExpansion]},changeDetection:0}),k})();class Ae{}const U=(0,Ct.sb)(Ae);let z=(()=>{class k extends U{constructor(p,R,g,a,u,b,F){super(),this.panel=p,this._element=R,this._focusMonitor=g,this._changeDetectorRef=a,this._animationMode=b,this._parentChangeSubscription=et.w0.EMPTY;const $=p.accordion?p.accordion._stateChanges.pipe((0,kt.h)(re=>!(!re.hideToggle&&!re.togglePosition))):E.E;this.tabIndex=parseInt(F||"")||0,this._parentChangeSubscription=(0,S.T)(p.opened,p.closed,$,p._inputChanges.pipe((0,kt.h)(re=>!!(re.hideToggle||re.disabled||re.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),p.closed.pipe((0,kt.h)(()=>p._containsFocus())).subscribe(()=>g.focusVia(R,"program")),u&&(this.expandedHeight=u.expandedHeight,this.collapsedHeight=u.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const p=this._isExpanded();return p&&this.expandedHeight?this.expandedHeight:!p&&this.collapsedHeight?this.collapsedHeight:null}_keydown(p){switch(p.keyCode){case lt.L_:case lt.K5:(0,lt.Vb)(p)||(p.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(p))}}focus(p,R){p?this._focusMonitor.focusVia(this._element,p,R):this._element.nativeElement.focus(R)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(p=>{p&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(vt,1),o.Y36(o.SBq),o.Y36(Bt.tE),o.Y36(o.sBO),o.Y36(ht,8),o.Y36(Re.Qb,8),o.$8M("tabindex"))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(p,R){1&p&&o.NdJ("click",function(){return R._toggle()})("keydown",function(a){return R._keydown(a)}),2&p&&(o.uIk("id",R.panel._headerId)("tabindex",R.tabIndex)("aria-controls",R._getPanelId())("aria-expanded",R._isExpanded())("aria-disabled",R.panel.disabled),o.Udp("height",R._getHeaderHeight()),o.ekj("mat-expanded",R._isExpanded())("mat-expansion-toggle-indicator-after","after"===R._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===R._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===R._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[o.qOj],ngContentSelectors:_t,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(p,R){1&p&&(o.F$t(Ge),o.TgZ(0,"span",0),o.Hsn(1),o.Hsn(2,1),o.Hsn(3,2),o.qZA(),o.YNc(4,He,1,1,"span",1)),2&p&&(o.xp6(4),o.Q6J("ngIf",R._showToggle()))},directives:[Te.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[rn.indicatorRotate]},changeDetection:0}),k})(),W=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),k})(),fe=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),k})(),Oe=(()=>{class k extends je{constructor(){super(...arguments),this._ownHeaders=new o.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(p){this._hideToggle=(0,m.Ig)(p)}ngAfterContentInit(){this._headers.changes.pipe((0,he.O)(this._headers)).subscribe(p=>{this._ownHeaders.reset(p.filter(R=>R.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Bt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(p){this._keyManager.onKeydown(p)}_handleHeaderFocus(p){this._keyManager.updateActiveItem(p)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return k.\u0275fac=function(){let De;return function(R){return(De||(De=o.n5z(k)))(R||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["mat-accordion"]],contentQueries:function(p,R,g){if(1&p&&o.Suo(g,z,5),2&p){let a;o.iGM(a=o.CRH())&&(R._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(p,R){2&p&&o.ekj("mat-accordion-multi",R.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[o._Bn([{provide:ut,useExisting:k}]),o.qOj]}),k})(),at=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Te.ez,Ct.BQ,Ot,jt.eL]]}),k})();var Tt=C(9646),qt=C(3101),Zt=C(3900),Mt=C(4986),kn=C(4482),Ue=C(5403),ve=C(5032),ot=C(5577);function Ft(k,De){return De?p=>(0,Q.z)(De.pipe((0,Ee.q)(1),function ie(){return(0,kn.e)((k,De)=>{k.subscribe((0,Ue.x)(De,ve.Z))})}()),p.pipe(Ft(k))):(0,ot.z)((p,R)=>k(p,R).pipe((0,Ee.q)(1),function Pe(k){return(0,se.U)(()=>k)}(p)))}var Wt=C(5963);function Cn(k,De=Mt.z){const p=(0,Wt.H)(k,De);return Ft(()=>p)}var tn=C(9776),Fn=C(226),En=C(495);const zn=["mat-menu-item",""];function si(k,De){1&k&&(o.O4$(),o.TgZ(0,"svg",2),o._UZ(1,"polygon",3),o.qZA())}const Yn=["*"];function Ci(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(g){return o.CHM(p),o.oxw()._handleKeydown(g)})("click",function(){return o.CHM(p),o.oxw().closed.emit("click")})("@transformMenu.start",function(g){return o.CHM(p),o.oxw()._onAnimationStart(g)})("@transformMenu.done",function(g){return o.CHM(p),o.oxw()._onAnimationDone(g)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()()}if(2&k){const p=o.oxw();o.Q6J("id",p.panelId)("ngClass",p._classList)("@transformMenu",p._panelAnimationState),o.uIk("aria-label",p.ariaLabel||null)("aria-labelledby",p.ariaLabelledby||null)("aria-describedby",p.ariaDescribedby||null)}}const ai={transformMenu:(0,D.X$)("transformMenu",[(0,D.SB)("void",(0,D.oB)({opacity:0,transform:"scale(0.8)"})),(0,D.eR)("void => enter",(0,D.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:1,transform:"scale(1)"}))),(0,D.eR)("* => void",(0,D.jt)("100ms 25ms linear",(0,D.oB)({opacity:0})))]),fadeInItems:(0,D.X$)("fadeInItems",[(0,D.SB)("showing",(0,D.oB)({opacity:1})),(0,D.eR)("void => *",[(0,D.oB)({opacity:0}),(0,D.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zi=new o.OlP("MatMenuContent"),Tn=new o.OlP("MAT_MENU_PANEL"),ui=(0,Ct.Kr)((0,Ct.Id)(class{}));let nn=(()=>{class k extends ui{constructor(p,R,g,a,u){var b;super(),this._elementRef=p,this._document=R,this._focusMonitor=g,this._parentMenu=a,this._changeDetectorRef=u,this.role="menuitem",this._hovered=new K.x,this._focused=new K.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(b=null==a?void 0:a.addItem)||void 0===b||b.call(a,this)}focus(p,R){this._focusMonitor&&p?this._focusMonitor.focusVia(this._getHostElement(),p,R):this._getHostElement().focus(R),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(p){this.disabled&&(p.preventDefault(),p.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var p;const R=this._elementRef.nativeElement.cloneNode(!0),g=R.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class k{constructor(p,R,g,a){this._elementRef=p,this._ngZone=R,this._defaultOptions=g,this._changeDetectorRef=a,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=et.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new K.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+zt++}get xPosition(){return this._xPosition}set xPosition(p){this._xPosition=p,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(p){this._yPosition=p,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(p){this._overlapTrigger=(0,m.Ig)(p)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(p){this._hasBackdrop=(0,m.Ig)(p)}set panelClass(p){const R=this._previousPanelClass;R&&R.length&&R.split(" ").forEach(g=>{this._classList[g]=!1}),this._previousPanelClass=p,p&&p.length&&(p.split(" ").forEach(g=>{this._classList[g]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(p){this.panelClass=p}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Bt.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,he.O)(this._directDescendantItems),(0,Zt.w)(p=>(0,S.T)(...p.map(R=>R._focused)))).subscribe(p=>this._keyManager.updateActiveItem(p)),this._directDescendantItems.changes.subscribe(p=>{var R;const g=this._keyManager;if("enter"===this._panelAnimationState&&(null===(R=g.activeItem)||void 0===R?void 0:R._hasFocus())){const a=p.toArray(),u=Math.max(0,Math.min(a.length-1,g.activeItemIndex||0));a[u]&&!a[u].disabled?g.setActiveItem(u):g.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,he.O)(this._directDescendantItems),(0,Zt.w)(R=>(0,S.T)(...R.map(g=>g._hovered))))}addItem(p){}removeItem(p){}_handleKeydown(p){const R=p.keyCode,g=this._keyManager;switch(R){case lt.hY:(0,lt.Vb)(p)||(p.preventDefault(),this.closed.emit("keydown"));break;case lt.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case lt.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(R===lt.LH||R===lt.JH)&&g.setFocusOrigin("keyboard"),void g.onKeydown(p)}p.stopPropagation()}focusFirstItem(p="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Ee.q)(1)).subscribe(()=>this._focusFirstItem(p)):this._focusFirstItem(p)}_focusFirstItem(p){const R=this._keyManager;if(R.setFocusOrigin(p).setFirstItemActive(),!R.activeItem&&this._directDescendantItems.length){let g=this._directDescendantItems.first._getHostElement().parentElement;for(;g;){if("menu"===g.getAttribute("role")){g.focus();break}g=g.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(p){const R=Math.min(this._baseElevation+p,24),g=`${this._elevationPrefix}${R}`,a=Object.keys(this._classList).find(u=>u.startsWith(this._elevationPrefix));(!a||a===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[g]=!0,this._previousElevation=g)}setPositionClasses(p=this.xPosition,R=this.yPosition){var g;const a=this._classList;a["mat-menu-before"]="before"===p,a["mat-menu-after"]="after"===p,a["mat-menu-above"]="above"===R,a["mat-menu-below"]="below"===R,null===(g=this._changeDetectorRef)||void 0===g||g.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(p){this._animationDone.next(p),this._isAnimating=!1}_onAnimationStart(p){this._isAnimating=!0,"enter"===p.toState&&0===this._keyManager.activeItemIndex&&(p.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,he.O)(this._allItems)).subscribe(p=>{this._directDescendantItems.reset(p.filter(R=>R._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Kn),o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k,contentQueries:function(p,R,g){if(1&p&&(o.Suo(g,zi,5),o.Suo(g,nn,5),o.Suo(g,nn,4)),2&p){let a;o.iGM(a=o.CRH())&&(R.lazyContent=a.first),o.iGM(a=o.CRH())&&(R._allItems=a),o.iGM(a=o.CRH())&&(R.items=a)}},viewQuery:function(p,R){if(1&p&&o.Gf(o.Rgc,5),2&p){let g;o.iGM(g=o.CRH())&&(R.templateRef=g.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),k})(),Xn=(()=>{class k extends di{constructor(p,R,g,a){super(p,R,g,a),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Kn),o.Y36(o.sBO))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(p,R){2&p&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:Tn,useExisting:k}]),o.qOj],ngContentSelectors:Yn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(p,R){1&p&&(o.F$t(),o.YNc(0,Ci,3,6,"ng-template"))},directives:[Te.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[ai.transformMenu,ai.fadeInItems]},changeDetection:0}),k})();const Ii=new o.OlP("mat-menu-scroll-strategy"),vn={provide:Ii,deps:[tn.aV],useFactory:function $n(k){return()=>k.scrollStrategies.reposition()}},Bn=(0,le.i$)({passive:!0});let ei=(()=>{class k{constructor(p,R,g,a,u,b,F,$,re){this._overlay=p,this._element=R,this._viewContainerRef=g,this._menuItemInstance=b,this._dir=F,this._focusMonitor=$,this._ngZone=re,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=et.w0.EMPTY,this._hoverSubscription=et.w0.EMPTY,this._menuCloseSubscription=et.w0.EMPTY,this._handleTouchStart=ce=>{(0,Bt.yG)(ce)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=u instanceof di?u:void 0,R.nativeElement.addEventListener("touchstart",this._handleTouchStart,Bn),b&&(b._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(p){this.menu=p}get menu(){return this._menu}set menu(p){p!==this._menu&&(this._menu=p,this._menuCloseSubscription.unsubscribe(),p&&(this._menuCloseSubscription=p.close.subscribe(R=>{this._destroyMenu(R),("click"===R||"tab"===R)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(R)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Bn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const p=this._createOverlay(),R=p.getConfig(),g=R.positionStrategy;this._setPosition(g),R.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,p.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof di&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,ee.R)(this.menu.close)).subscribe(()=>{g.withLockedPosition(!1).reapplyLastPosition(),g.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(p,R){this._focusMonitor&&p?this._focusMonitor.focusVia(this._element,p,R):this._element.nativeElement.focus(R)}updatePosition(){var p;null===(p=this._overlayRef)||void 0===p||p.updatePosition()}_destroyMenu(p){if(!this._overlayRef||!this.menuOpen)return;const R=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===p||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,R instanceof di?(R._resetAnimation(),R.lazyContent?R._animationDone.pipe((0,kt.h)(g=>"void"===g.toState),(0,Ee.q)(1),(0,ee.R)(R.lazyContent._attached)).subscribe({next:()=>R.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),R.lazyContent&&R.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let p=0,R=this.menu.parentMenu;for(;R;)p++,R=R.parentMenu;this.menu.setElevation(p)}}_setIsMenuOpen(p){this._menuOpen=p,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(p)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const p=this._getOverlayConfig();this._subscribeToPositions(p.positionStrategy),this._overlayRef=this._overlay.create(p),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new tn.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(p){this.menu.setPositionClasses&&p.positionChanges.subscribe(R=>{const g="start"===R.connectionPair.overlayX?"after":"before",a="top"===R.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(g,a)):this.menu.setPositionClasses(g,a)})}_setPosition(p){let[R,g]="before"===this.menu.xPosition?["end","start"]:["start","end"],[a,u]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[b,F]=[a,u],[$,re]=[R,g],ce=0;this.triggersSubmenu()?(re=R="before"===this.menu.xPosition?"start":"end",g=$="end"===R?"start":"end",ce="bottom"===a?8:-8):this.menu.overlapTrigger||(b="top"===a?"bottom":"top",F="top"===u?"bottom":"top"),p.withPositions([{originX:R,originY:b,overlayX:$,overlayY:a,offsetY:ce},{originX:g,originY:b,overlayX:re,overlayY:a,offsetY:ce},{originX:R,originY:F,overlayX:$,overlayY:u,offsetY:-ce},{originX:g,originY:F,overlayX:re,overlayY:u,offsetY:-ce}])}_menuClosingActions(){const p=this._overlayRef.backdropClick(),R=this._overlayRef.detachments(),g=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Tt.of)(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,kt.h)(u=>u!==this._menuItemInstance),(0,kt.h)(()=>this._menuOpen)):(0,Tt.of)();return(0,S.T)(p,g,a,R)}_handleMousedown(p){(0,Bt.X6)(p)||(this._openedBy=0===p.button?"mouse":void 0,this.triggersSubmenu()&&p.preventDefault())}_handleKeydown(p){const R=p.keyCode;(R===lt.K5||R===lt.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(R===lt.SV&&"ltr"===this.dir||R===lt.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(p){this.triggersSubmenu()?(p.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,kt.h)(p=>p===this._menuItemInstance&&!p.disabled),Cn(0,qt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof di&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ee.q)(1),Cn(0,qt.E),(0,ee.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new jt.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(tn.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(Ii),o.Y36(Tn,8),o.Y36(nn,10),o.Y36(Fn.Is,8),o.Y36(Bt.tE),o.Y36(o.R0b))},k.\u0275dir=o.lG2({type:k,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(p,R){1&p&&o.NdJ("click",function(a){return R._handleClick(a)})("mousedown",function(a){return R._handleMousedown(a)})("keydown",function(a){return R._handleKeydown(a)}),2&p&&o.uIk("aria-expanded",R.menuOpen||null)("aria-controls",R.menuOpen?R.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),k})(),dn=(()=>{class k extends ei{}return k.\u0275fac=function(){let De;return function(R){return(De||(De=o.n5z(k)))(R||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[o.qOj]}),k})(),rr=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[vn],imports:[[Te.ez,Ct.BQ,Ct.si,tn.U8],En.ZD,Ct.BQ]}),k})();const xr={tooltipState:(0,D.X$)("state",[(0,D.SB)("initial, void, hidden",(0,D.oB)({opacity:0,transform:"scale(0)"})),(0,D.SB)("visible",(0,D.oB)({transform:"scale(1)"})),(0,D.eR)("* => visible",(0,D.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,D.F4)([(0,D.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,D.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,D.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,D.eR)("* => hidden",(0,D.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:0})))])},Zi="tooltip-panel",qi=(0,le.i$)({passive:!0}),Pi=new o.OlP("mat-tooltip-scroll-strategy"),or={provide:Pi,deps:[tn.aV],useFactory:function hr(k){return()=>k.scrollStrategies.reposition({scrollThrottle:20})}},fr=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function pr(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Fr=(()=>{class k{constructor(p,R,g,a,u,b,F,$,re,ce,Ie,Je){this._overlay=p,this._elementRef=R,this._scrollDispatcher=g,this._viewContainerRef=a,this._ngZone=u,this._platform=b,this._ariaDescriber=F,this._focusMonitor=$,this._dir=ce,this._defaultOptions=Ie,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new K.x,this._scrollStrategy=re,this._document=Je,Ie&&(Ie.position&&(this.position=Ie.position),Ie.touchGestures&&(this.touchGestures=Ie.touchGestures)),ce.change.pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(p){var R;p!==this._position&&(this._position=p,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(R=this._tooltipInstance)||void 0===R||R.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(p){this._disabled=(0,m.Ig)(p),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(p){this._showDelay=(0,m.su)(p)}get hideDelay(){return this._hideDelay}set hideDelay(p){this._hideDelay=(0,m.su)(p),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(p){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=p?String(p).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(p){this._tooltipClass=p,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,ee.R)(this._destroyed)).subscribe(p=>{p?"keyboard"===p&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const p=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([R,g])=>{p.removeEventListener(R,g,qi)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(p,this.message,"tooltip"),this._focusMonitor.stopMonitoring(p)}show(p=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const R=this._createOverlay();this._detach(),this._portal=this._portal||new jt.C5(this._tooltipComponent,this._viewContainerRef);const g=this._tooltipInstance=R.attach(this._portal).instance;g._triggerElement=this._elementRef.nativeElement,g._mouseLeaveHideDelay=this._hideDelay,g.afterHidden().pipe((0,ee.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),g.show(p)}hide(p=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(p)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var p;if(this._overlayRef)return this._overlayRef;const R=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),g=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(R);return g.positionChanges.pipe((0,ee.R)(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:g,panelClass:`${this._cssClassPrefix}-${Zi}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,ee.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,ee.R)(this._destroyed)).subscribe(()=>{var a;return null===(a=this._tooltipInstance)||void 0===a?void 0:a._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,ee.R)(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===lt.hY&&!(0,lt.Vb)(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(p=this._defaultOptions)||void 0===p?void 0:p.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(p){const R=p.getConfig().positionStrategy,g=this._getOrigin(),a=this._getOverlayPosition();R.withPositions([this._addOffset(Object.assign(Object.assign({},g.main),a.main)),this._addOffset(Object.assign(Object.assign({},g.fallback),a.fallback))])}_addOffset(p){return p}_getOrigin(){const p=!this._dir||"ltr"==this._dir.value,R=this.position;let g;"above"==R||"below"==R?g={originX:"center",originY:"above"==R?"top":"bottom"}:"before"==R||"left"==R&&p||"right"==R&&!p?g={originX:"start",originY:"center"}:("after"==R||"right"==R&&p||"left"==R&&!p)&&(g={originX:"end",originY:"center"});const{x:a,y:u}=this._invertPosition(g.originX,g.originY);return{main:g,fallback:{originX:a,originY:u}}}_getOverlayPosition(){const p=!this._dir||"ltr"==this._dir.value,R=this.position;let g;"above"==R?g={overlayX:"center",overlayY:"bottom"}:"below"==R?g={overlayX:"center",overlayY:"top"}:"before"==R||"left"==R&&p||"right"==R&&!p?g={overlayX:"end",overlayY:"center"}:("after"==R||"right"==R&&p||"left"==R&&!p)&&(g={overlayX:"start",overlayY:"center"});const{x:a,y:u}=this._invertPosition(g.overlayX,g.overlayY);return{main:g,fallback:{overlayX:a,overlayY:u}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ee.q)(1),(0,ee.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(p){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=p,this._tooltipInstance._markForCheck())}_invertPosition(p,R){return"above"===this.position||"below"===this.position?"top"===R?R="bottom":"bottom"===R&&(R="top"):"end"===p?p="start":"start"===p&&(p="end"),{x:p,y:R}}_updateCurrentPositionClass(p){const{overlayY:R,originX:g,originY:a}=p;let u;if(u="center"===R?this._dir&&"rtl"===this._dir.value?"end"===g?"left":"right":"start"===g?"left":"right":"bottom"===R&&"top"===a?"above":"below",u!==this._currentPosition){const b=this._overlayRef;if(b){const F=`${this._cssClassPrefix}-${Zi}-`;b.removePanelClass(F+this._currentPosition),b.addPanelClass(F+u)}this._currentPosition=u}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const p=[];if(this._platformSupportsMouseEvents())p.push(["mouseleave",R=>{var g;const a=R.relatedTarget;(!a||!(null===(g=this._overlayRef)||void 0===g?void 0:g.overlayElement.contains(a)))&&this.hide()}],["wheel",R=>this._wheelListener(R)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const R=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};p.push(["touchend",R],["touchcancel",R])}this._addListeners(p),this._passiveListeners.push(...p)}_addListeners(p){p.forEach(([R,g])=>{this._elementRef.nativeElement.addEventListener(R,g,qi)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(p){if(this._isTooltipVisible()){const R=this._document.elementFromPoint(p.clientX,p.clientY),g=this._elementRef.nativeElement;R!==g&&!g.contains(R)&&this.hide()}}_disableNativeGesturesIfNecessary(){const p=this.touchGestures;if("off"!==p){const R=this._elementRef.nativeElement,g=R.style;("on"===p||"INPUT"!==R.nodeName&&"TEXTAREA"!==R.nodeName)&&(g.userSelect=g.msUserSelect=g.webkitUserSelect=g.MozUserSelect="none"),("on"===p||!R.draggable)&&(g.webkitUserDrag="none"),g.touchAction="none",g.webkitTapHighlightColor="transparent"}}}return k.\u0275fac=function(p){o.$Z()},k.\u0275dir=o.lG2({type:k,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),k})(),uo=(()=>{class k extends Fr{constructor(p,R,g,a,u,b,F,$,re,ce,Ie,Je){super(p,R,g,a,u,b,F,$,re,ce,Ie,Je),this._tooltipComponent=Lr}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(tn.aV),o.Y36(o.SBq),o.Y36(En.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(le.t4),o.Y36(Bt.$s),o.Y36(Bt.tE),o.Y36(Pi),o.Y36(Fn.Is,8),o.Y36(fr,8),o.Y36(Te.K0))},k.\u0275dir=o.lG2({type:k,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),k})(),mr=(()=>{class k{constructor(p){this._changeDetectorRef=p,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new K.x}show(p){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},p)}hide(p){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},p)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_animationStart(){this._closeOnInteraction=!1}_animationDone(p){const R=p.toState;"hidden"===R&&!this.isVisible()&&this._onHide.next(),("visible"===R||"hidden"===R)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:p}){(!p||!this._triggerElement.contains(p))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k}),k})(),Lr=(()=>{class k extends mr{constructor(p,R){super(p),this._breakpointObserver=R,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(o.sBO),o.Y36(ge))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(p,R){1&p&&o.NdJ("mouseleave",function(a){return R._handleMouseLeave(a)}),2&p&&o.Udp("zoom","visible"===R._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(p,R){if(1&p&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return R._animationStart()})("@state.done",function(a){return R._animationDone(a)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&p){let g;o.ekj("mat-tooltip-handset",null==(g=o.lcZ(1,5,R._isHandset))?null:g.matches),o.Q6J("ngClass",R.tooltipClass)("@state",R._visibility),o.xp6(2),o.Oqu(R.message)}},directives:[Te.mk],pipes:[Te.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}\n"],encapsulation:2,data:{animation:[xr.tooltipState]},changeDetection:0}),k})(),gr=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[or],imports:[[Bt.rt,Te.ez,tn.U8,Ct.BQ],Ct.BQ,En.ZD]}),k})();var sr=C(7423);function Sr(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){const a=o.CHM(p).$implicit;return o.oxw(2).launch(a)}),o.TgZ(1,"div",15),o._UZ(2,"img",9),o._uU(3),o.qZA()()}if(2&k){const p=De.$implicit,R=o.oxw(2);o.xp6(2),o.Q6J("src",R.getTransportIcon(p.id),o.LSH),o.xp6(1),o.hij(" ",p.name," ")}}function ar(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(p),o.oxw(2).action("release")}),o.TgZ(1,"i",16),o._uU(2,"delete"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Release service"),o.qZA()()}}function _r(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(p),o.oxw(2).action("reset")}),o.TgZ(1,"i",16),o._uU(2,"refresh"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Reset service"),o.qZA()()}}function lr(k,De){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Connections"),o.qZA()()),2&k){o.oxw();const p=o.MAs(2);o.Q6J("matMenuTriggerFor",p)}}function qr(k,De){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Actions"),o.qZA()()),2&k){o.oxw();const p=o.MAs(5);o.Q6J("matMenuTriggerFor",p)}}function vr(k,De){if(1&k&&(o.TgZ(0,"button",18)(1,"i",16),o._uU(2,"menu"),o.qZA()()),2&k){o.oxw();const p=o.MAs(9);o.Q6J("matMenuTriggerFor",p)}}function Nr(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"div")(1,"mat-menu",null,1),o.YNc(3,Sr,4,2,"button",2),o.qZA(),o.TgZ(4,"mat-menu",null,3),o.YNc(6,ar,5,0,"button",4),o.YNc(7,_r,5,0,"button",4),o.qZA(),o.TgZ(8,"mat-menu",null,5),o.YNc(10,lr,3,1,"button",6),o.YNc(11,qr,3,1,"button",6),o.qZA(),o.TgZ(12,"div",7)(13,"div",8),o.NdJ("click",function(){return o.CHM(p),o.oxw().launch(null)}),o._UZ(14,"img",9),o.qZA(),o.TgZ(15,"div",10)(16,"span",11),o._uU(17),o.qZA()(),o.TgZ(18,"div",12),o.YNc(19,vr,3,1,"button",13),o.qZA()()()}if(2&k){const p=o.oxw();o.xp6(3),o.Q6J("ngForOf",p.service.transports),o.xp6(3),o.Q6J("ngIf",p.service.allow_users_remove),o.xp6(1),o.Q6J("ngIf",p.service.allow_users_reset),o.xp6(3),o.Q6J("ngIf",p.showTransportsMenu()),o.xp6(1),o.Q6J("ngIf",p.hasActions()),o.xp6(1),o.Q6J("ngClass",p.serviceClass)("matTooltipDisabled",""===p.serviceTooltip)("matTooltip",p.serviceTooltip),o.xp6(2),o.Q6J("src",p.serviceImage,o.LSH),o.xp6(2),o.Q6J("ngClass",p.serviceNameClass),o.xp6(1),o.Oqu(p.serviceName),o.xp6(2),o.Q6J("ngIf",p.hasMenu())}}let gi=(()=>{class k{constructor(p){this.api=p}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let p=this.service.visual_name;return p.length>32&&(p=p.substring(0,29)+"..."),p}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const p=["service"];return null!=this.service.to_be_replaced?p.push("tobereplaced"):this.service.maintenance?p.push("maintenance"):this.service.not_accesible?p.push("forbidden"):this.service.in_use&&p.push("inuse"),p.length>1&&p.push("alert"),p}get serviceNameClass(){const p=[],R=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return R>=16&&p.push("small-"+R.toString()),p}ngOnInit(){}getTransportIcon(p){return this.api.transportIconURL(p)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(p){this.api.gui.alert(''+django.gettext("Launcher")+"
",p)}launch(p){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const R=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching(''+django.gettext("This service is currently not accesible due to schedule restrictions.")+'
'+R+'
')}else(null===p||!1===this.service.show_transports)&&(p=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(p.link)}action(p){const R=("release"===p?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,g="release"===p?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(R,django.gettext("Are you sure?")).subscribe(a=>{a&&this.api.action(p,this.service.id).subscribe(u=>{u&&this.api.gui.alert(R,g)})})}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","","class","service-menu",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",1,"service-menu",3,"matMenuTriggerFor"]],template:function(p,R){1&p&&o.YNc(0,Nr,20,12,"div",0),2&p&&o.Q6J("ngIf",R.service.transports.length>0)},directives:[Te.O5,Xn,Te.sg,nn,Se.P,dn,Te.mk,uo,sr.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;border-radius:1rem;box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:#00000038;display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service-menu[_ngcontent-%COMP%]{border-radius:.6rem!important}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;background-color:#fffc}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:Material Icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"} .dark-theme .menu .mat-icon-button{background-color:#0003!important}']}),k})();function yr(k,De){1&k&&o._UZ(0,"uds-service",8),2&k&&o.Q6J("service",De.$implicit)}function wi(k,De){if(1&k&&(o.TgZ(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",2)(2,"mat-panel-title")(3,"div",3),o._UZ(4,"img",4),o._uU(5),o.qZA()(),o.TgZ(6,"mat-panel-description",5),o._uU(7),o.qZA()(),o.TgZ(8,"div",6),o.YNc(9,yr,1,1,"uds-service",7),o.qZA()()),2&k){const p=o.oxw();o.Q6J("expanded",p.expanded),o.xp6(1),o.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),o.xp6(3),o.Q6J("src",p.groupImage,o.LSH),o.xp6(1),o.hij(" ",p.group.name,""),o.xp6(2),o.hij(" ",p.group.comments," "),o.xp6(2),o.Q6J("ngForOf",p.sortedServices)}}let Qr=(()=>{class k{constructor(p){this.api=p,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((p,R)=>p.name>R.name?1:p.name{class k{constructor(p){this.api=p}ngOnInit(){}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(p,R){1&p&&o.YNc(0,Vi,38,4,"div",0),2&p&&o.Q6J("ngIf",R.api.staffInfo)},directives:[Te.O5,Se.P,Oe,vt,z,fe,W,Te.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4} .dark-theme .staff-info{margin-top:1rem;padding:1rem;background-color:#0f0f0f} .dark-theme .staff-panel{background-color:#2b2b2b}"]}),k})();function Jr(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(g){return o.CHM(p),o.oxw().update(g)}),o.qZA()}}function Ri(k,De){if(1&k&&o._UZ(0,"uds-services-group",4),2&k){const p=De.$implicit,R=De.index;o.Q6J("services",p.services)("group",p.group)("expanded",0===R)}}function cr(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(g){return o.CHM(p),o.oxw().update(g)}),o.qZA()}}class Vr{constructor(De){this.group=De,this.services=[]}}const er=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:(()=>{class k{constructor(p){this.api=p,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(p){this.updateServices(p)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(p=>{this.servicesInformation=p,this.autorun(),this.updateServices()})}updateServices(p=""){this.group=[];let R=null;this.servicesInformation.services.filter(g=>!p||g.visual_name.toLowerCase().includes(p)||g.group.name.toLowerCase().includes(p)).sort((g,a)=>g.group.priority!==a.group.priority?g.group.priority-a.group.priority:g.group.id>a.group.id?1:g.group.id{(null===R||g.group.id!==R.group.id)&&(null!==R&&this.group.push(R),R=new Vr(g.group)),R.services.push(g)}),null!==R&&this.group.push(R)}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(p,R){1&p&&(o.YNc(0,Jr,1,0,"uds-filter",0),o.TgZ(1,"div",1)(2,"mat-accordion"),o.YNc(3,Ri,1,3,"uds-services-group",2),o.qZA()(),o.YNc(4,cr,1,0,"uds-filter",0),o._UZ(5,"uds-staff-info")),2&p&&(o.Q6J("ngIf",R.servicesInformation.services.length>=R.api.config.min_for_filter&&R.api.config.site_filter_on_top),o.xp6(3),o.Q6J("ngForOf",R.group),o.xp6(1),o.Q6J("ngIf",R.servicesInformation.services.length>=R.api.config.min_for_filter&&!R.api.config.site_filter_on_top))},directives:[Te.O5,sn,Oe,Te.sg,Qr,Ji],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),k})(),canActivate:[ye]},{path:"login",component:we.G},{path:"login/:id",component:we.G},{path:"client-download",component:Le},{path:"downloads",component:Xt,canActivate:[ye]},{path:"error/:id",component:(()=>{class k{constructor(p,R){this.api=p,this.route=R}ngOnInit(){this.getError()}getError(){const p=this.route.snapshot.paramMap.get("id");this.error="",this.api.getErrorInformation(p).subscribe(R=>{this.error=R.error})}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n),o.Y36(xe.gz))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-error"]],decls:14,vars:1,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn","routerLink","/"]],template:function(p,R){1&p&&(o.TgZ(0,"div",0)(1,"div",1),o.O4$(),o.TgZ(2,"svg",2),o._UZ(3,"path",3),o.qZA(),o.TgZ(4,"svg",4),o._UZ(5,"path",5),o.qZA()(),o.kcU(),o.TgZ(6,"h1",6)(7,"uds-translate"),o._uU(8,"An error has occurred"),o.qZA()(),o.TgZ(9,"p",7),o._uU(10),o.qZA(),o.TgZ(11,"a",8)(12,"uds-translate"),o._uU(13,"Return"),o.qZA()()()),2&p&&(o.xp6(10),o.hij(" ",R.error," "))},directives:[Se.P,sr.zs,xe.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),k})()},{path:"about",component:(()=>{class k{constructor(p){this.api=p,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-about"]],decls:46,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(p,R){1&p&&(o.TgZ(0,"div",0)(1,"h1"),o._uU(2),o.qZA(),o.TgZ(3,"h3")(4,"a",1),o._uU(5),o.qZA()(),o.TgZ(6,"h4")(7,"uds-translate"),o._uU(8,"You can access UDS Open Source code at"),o.qZA(),o._uU(9,"\xa0"),o.TgZ(10,"a",2),o._uU(11,"OpenUDS github repository"),o.qZA()(),o.TgZ(12,"div",3)(13,"h2")(14,"uds-translate"),o._uU(15,"UDS has been developed using these components:"),o.qZA()(),o.TgZ(16,"ul")(17,"li")(18,"a",4),o._uU(19,"Python"),o.qZA()(),o.TgZ(20,"li")(21,"a",5),o._uU(22,"TypeScript"),o.qZA()(),o.TgZ(23,"li")(24,"a",6),o._uU(25,"Django"),o.qZA()(),o.TgZ(26,"li")(27,"a",7),o._uU(28,"Angular"),o.qZA()(),o.TgZ(29,"li")(30,"a",8),o._uU(31,"Guacamole"),o.qZA()(),o.TgZ(32,"li")(33,"a",9),o._uU(34,"weasyprint"),o.qZA()(),o.TgZ(35,"li")(36,"a",10),o._uU(37,"Crystal project icons"),o.qZA()(),o.TgZ(38,"li")(39,"a",11),o._uU(40,"Flattr Icons"),o.qZA()()(),o.TgZ(41,"p")(42,"small"),o._uU(43,"* "),o.TgZ(44,"uds-translate"),o._uU(45,"If you find that we missed any component, please let us know"),o.qZA()()()()()),2&p&&(o.xp6(2),o.AsE("Universal Desktop Services ",R.api.config.version," build ",R.api.config.version_stamp,""),o.xp6(3),o.hij(" \xa9 2012-",R.year," Virtual Cable S.L.U."))},directives:[Se.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:400}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px} .dark-theme .about{color:#fff!important} .dark-theme ul li a{color:#fff!important;background-color:inherit!important} .dark-theme ul li a:hover{color:#3e6b2d!important}"]}),k})()},{path:"ticket/launcher",component:(()=>{class k{constructor(p){this.api=p}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(p,R){1&p&&(o.TgZ(0,"div",0)(1,"div",1)(2,"h1")(3,"uds-translate"),o._uU(4,"UDS Service launcher"),o.qZA()(),o.TgZ(5,"h4")(6,"uds-translate"),o._uU(7,"The service you have requested is being launched."),o.qZA()(),o.TgZ(8,"h5")(9,"uds-translate"),o._uU(10,"Please, note that reloading this page will not work."),o.qZA()(),o.TgZ(11,"h5")(12,"uds-translate"),o._uU(13,"To relaunch service, you will have to do it from origin."),o.qZA()(),o.TgZ(14,"h6")(15,"uds-translate"),o._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),o.qZA()(),o.TgZ(17,"h6")(18,"uds-translate"),o._uU(19,"You can obtain it from the"),o.qZA(),o._uU(20,"\xa0"),o.TgZ(21,"a",2)(22,"uds-translate"),o._uU(23,"UDS Client download page"),o.qZA()()()()())},directives:[Se.P,xe.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:#00000038;padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:400}"]}),k})()},{path:"**",redirectTo:"services"}];let ii=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[xe.Bz.forRoot(er,{relativeLinkResolution:"legacy"})],xe.Bz]}),k})();var Di=C(2382),br=C(7144);let _n=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})(),In=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Ct.si,Ct.BQ,br.Q8,_n],Ct.BQ,_n]}),k})();var Un=C(8966),Ti=C(4107);const tr=["*",[["mat-toolbar-row"]]],ki=["*","mat-toolbar-row"],Fi=(0,Ct.pj)(class{constructor(k){this._elementRef=k}});let x=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),k})(),M=(()=>{class k extends Fi{constructor(p,R,g){super(p),this._platform=R,this._document=g}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(o.SBq),o.Y36(le.t4),o.Y36(Te.K0))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-toolbar"]],contentQueries:function(p,R,g){if(1&p&&o.Suo(g,x,5),2&p){let a;o.iGM(a=o.CRH())&&(R._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(p,R){2&p&&o.ekj("mat-toolbar-multiple-rows",R._toolbarRows.length>0)("mat-toolbar-single-row",0===R._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[o.qOj],ngContentSelectors:ki,decls:2,vars:0,template:function(p,R){1&p&&(o.F$t(tr),o.Hsn(0),o.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),k})(),H=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Ct.BQ],Ct.BQ]}),k})(),Ke=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[{provide:gn.o2,useValue:{floatLabel:"always"}}],imports:[Di.u5,H,sr.ot,rr,gr,at,Un.Is,gn.lN,Ht.c,Ti.LD,In]}),k})();function Dt(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){const a=o.CHM(p).$implicit;return o.oxw(2).changeLang(a)}),o._uU(1),o.qZA()}if(2&k){const p=De.$implicit;o.xp6(1),o.Oqu(p.name)}}function Mn(k,De){if(1&k){const p=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(p),o.oxw(2).admin()}),o.TgZ(1,"i",23),o._uU(2,"dashboard"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Dashboard"),o.qZA()()}}function _i(k,De){1&k&&(o.TgZ(0,"button",28)(1,"i",23),o._uU(2,"file_download"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Downloads"),o.qZA()())}function $i(k,De){if(1&k&&(o.TgZ(0,"button",14),o._uU(1),o.qZA()),2&k){o.oxw();const p=o.MAs(8),R=o.oxw();o.Q6J("matMenuTriggerFor",p),o.xp6(1),o.Oqu(R.api.user.user)}}function Li(k,De){if(1&k&&(o.TgZ(0,"button",25),o._uU(1),o.TgZ(2,"i",23),o._uU(3,"arrow_drop_down"),o.qZA()()),2&k){o.oxw();const p=o.MAs(8),R=o.oxw();o.Q6J("matMenuTriggerFor",p),o.xp6(1),o.hij("",R.api.user.user," ")}}function st(k,De){if(1&k){const p=o.EpF();o.ynx(0),o.TgZ(1,"form",1),o._UZ(2,"input",2)(3,"input",3),o.qZA(),o.TgZ(4,"mat-menu",null,4),o.YNc(6,Dt,2,1,"button",5),o.qZA(),o.TgZ(7,"mat-menu",null,6),o.YNc(9,Mn,5,0,"button",7),o.YNc(10,_i,5,0,"button",8),o.TgZ(11,"button",9),o.NdJ("click",function(){return o.CHM(p),o.oxw().logout()}),o.TgZ(12,"i",10),o._uU(13,"exit_to_app"),o.qZA(),o.TgZ(14,"uds-translate"),o._uU(15,"Logout"),o.qZA()()(),o.TgZ(16,"mat-menu",11,12),o.YNc(18,$i,2,2,"button",13),o.TgZ(19,"button",14),o._uU(20),o.qZA(),o.TgZ(21,"button",15)(22,"uds-translate"),o._uU(23,"UDS Client"),o.qZA()(),o.TgZ(24,"button",16)(25,"uds-translate"),o._uU(26,"About"),o.qZA()()(),o.TgZ(27,"mat-toolbar",17)(28,"button",18),o._UZ(29,"img",19),o._uU(30),o.qZA(),o._UZ(31,"span",20),o.TgZ(32,"div",21)(33,"button",22)(34,"i",23),o._uU(35,"file_download"),o.qZA(),o.TgZ(36,"uds-translate"),o._uU(37,"UDS Client"),o.qZA()(),o.TgZ(38,"button",24)(39,"i",23),o._uU(40,"info"),o.qZA(),o.TgZ(41,"uds-translate"),o._uU(42,"About"),o.qZA()(),o.TgZ(43,"button",25),o._uU(44),o.TgZ(45,"i",23),o._uU(46,"arrow_drop_down"),o.qZA()(),o.YNc(47,Li,4,2,"button",26),o.qZA(),o.TgZ(48,"div",27)(49,"button",25)(50,"i",23),o._uU(51,"menu"),o.qZA()()()(),o.BQk()}if(2&k){const p=o.MAs(5),R=o.MAs(17),g=o.oxw();o.xp6(1),o.s9C("action",g.api.config.urls.changeLang,o.LSH),o.xp6(1),o.s9C("name",g.api.csrfField),o.s9C("value",g.api.csrfToken),o.xp6(1),o.s9C("value",g.lang.id),o.xp6(3),o.Q6J("ngForOf",g.langs),o.xp6(3),o.Q6J("ngIf",g.api.user.isStaff),o.xp6(1),o.Q6J("ngIf",g.api.user.isStaff),o.xp6(8),o.Q6J("ngIf",g.api.user.isLogged),o.xp6(1),o.Q6J("matMenuTriggerFor",p),o.xp6(1),o.hij("",g.lang.name," "),o.xp6(9),o.Q6J("src",g.api.staticURL("modern/img/udsicon.png"),o.LSH),o.xp6(1),o.hij(" ",g.api.config.site_logo_name," "),o.xp6(13),o.Q6J("matMenuTriggerFor",p),o.xp6(1),o.hij("",g.lang.name," "),o.xp6(3),o.Q6J("ngIf",g.api.user.isLogged),o.xp6(2),o.Q6J("matMenuTriggerFor",R)}}let an=(()=>{class k{constructor(p){this.api=p,this.style="";const R=p.config.language;this.langs=[];for(const g of p.config.available_languages)g.id===R?this.lang=g:this.langs.push(g)}ngOnInit(){}changeLang(p){return this.lang=p,document.getElementById("id_language").attributes.value.value=p.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(p,R){1&p&&o.YNc(0,st,52,16,"ng-container",0),2&p&&o.Q6J("ngIf",""===R.api.config.urls.launch)},directives:[Te.O5,Di._Y,Di.JL,Di.F,Xn,Te.sg,nn,Se.P,xe.rH,dn,M,sr.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),k})(),Xr=(()=>{class k{constructor(p){this.api=p}ngOnInit(){}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(p,R){1&p&&(o.TgZ(0,"div")(1,"a",0),o._uU(2),o.qZA()()),2&p&&(o.xp6(1),o.Q6J("href",R.api.config.site_copyright_link,o.LSH),o.xp6(1),o.Oqu(R.api.config.site_copyright_info))},styles:[""]}),k})(),qn=(()=>{class k{constructor(p){this.api=p,this.title="UDS",this.blackTheme=!1}handleKeyboardEvent(p){p.altKey&&p.ctrlKey&&"b"===p.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return k.\u0275fac=function(p){return new(p||k)(o.Y36(Be.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-root"]],hostBindings:function(p,R){1&p&&o.NdJ("keydown",function(a){return R.handleKeyboardEvent(a)},!1,o.evT)},decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(p,R){1&p&&(o._UZ(0,"uds-navbar"),o.TgZ(1,"div",0)(2,"div",1),o._UZ(3,"router-outlet"),o.qZA(),o.TgZ(4,"div",2),o._UZ(5,"uds-footer"),o.qZA()())},directives:[an,xe.lC,Xr],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),k})();var bo=C(5928);let Cr=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=o.oAB({type:k,bootstrap:[qn]}),k.\u0275inj=o.cJS({providers:[Be.n,bo.h],imports:[[l.b2,Fe,me.JF,ii,Re.PW,Ke]]}),k})();C(2340).N.production&&(0,o.G48)(),l.q6().bootstrapModule(Cr).catch(k=>console.log(k))},1135:(Ye,be,C)=>{C.d(be,{X:()=>o});var l=C(7579);class o extends l.x{constructor(K){super(),this._value=K}get value(){return this.getValue()}_subscribe(K){const ue=super._subscribe(K);return!ue.closed&&K.next(this._value),ue}getValue(){const{hasError:K,thrownError:ue,_value:Q}=this;if(K)throw ue;return this._throwIfClosed(),Q}next(K){super.next(this._value=K)}}},8306:(Ye,be,C)=>{C.d(be,{y:()=>ne});var l=C(930),o=C(727),m=C(8822),K=C(4671);var Me=C(2416),Ee=C(576),de=C(2806);let ne=(()=>{class le{constructor(Ve){Ve&&(this._subscribe=Ve)}lift(Ve){const q=new le;return q.source=this,q.operator=Ve,q}subscribe(Ve,q,tt){const Ze=function ee(le){return le&&le instanceof l.Lv||function he(le){return le&&(0,Ee.m)(le.next)&&(0,Ee.m)(le.error)&&(0,Ee.m)(le.complete)}(le)&&(0,o.Nn)(le)}(Ve)?Ve:new l.Hp(Ve,q,tt);return(0,de.x)(()=>{const{operator:Qe,source:ge}=this;Ze.add(Qe?Qe.call(Ze,ge):ge?this._subscribe(Ze):this._trySubscribe(Ze))}),Ze}_trySubscribe(Ve){try{return this._subscribe(Ve)}catch(q){Ve.error(q)}}forEach(Ve,q){return new(q=se(q))((tt,Ze)=>{const Qe=new l.Hp({next:ge=>{try{Ve(ge)}catch(G){Ze(G),Qe.unsubscribe()}},error:Ze,complete:tt});this.subscribe(Qe)})}_subscribe(Ve){var q;return null===(q=this.source)||void 0===q?void 0:q.subscribe(Ve)}[m.L](){return this}pipe(...Ve){return function Q(le){return 0===le.length?K.y:1===le.length?le[0]:function(Ve){return le.reduce((q,tt)=>tt(q),Ve)}}(Ve)(this)}toPromise(Ve){return new(Ve=se(Ve))((q,tt)=>{let Ze;this.subscribe(Qe=>Ze=Qe,Qe=>tt(Qe),()=>q(Ze))})}}return le.create=Fe=>new le(Fe),le})();function se(le){var Fe;return null!==(Fe=null!=le?le:Me.v.Promise)&&void 0!==Fe?Fe:Promise}},7579:(Ye,be,C)=>{C.d(be,{x:()=>Me});var l=C(8306),o=C(727);const K=(0,C(3888).d)(de=>function(){de(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ue=C(8737),Q=C(2806);let Me=(()=>{class de extends l.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(se){const he=new Ee(this,this);return he.operator=se,he}_throwIfClosed(){if(this.closed)throw new K}next(se){(0,Q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const he=this.observers.slice();for(const ee of he)ee.next(se)}})}error(se){(0,Q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=se;const{observers:he}=this;for(;he.length;)he.shift().error(se)}})}complete(){(0,Q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:se}=this;for(;se.length;)se.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var se;return(null===(se=this.observers)||void 0===se?void 0:se.length)>0}_trySubscribe(se){return this._throwIfClosed(),super._trySubscribe(se)}_subscribe(se){return this._throwIfClosed(),this._checkFinalizedStatuses(se),this._innerSubscribe(se)}_innerSubscribe(se){const{hasError:he,isStopped:ee,observers:le}=this;return he||ee?o.Lc:(le.push(se),new o.w0(()=>(0,ue.P)(le,se)))}_checkFinalizedStatuses(se){const{hasError:he,thrownError:ee,isStopped:le}=this;he?se.error(ee):le&&se.complete()}asObservable(){const se=new l.y;return se.source=this,se}}return de.create=(ne,se)=>new Ee(ne,se),de})();class Ee extends Me{constructor(ne,se){super(),this.destination=ne,this.source=se}next(ne){var se,he;null===(he=null===(se=this.destination)||void 0===se?void 0:se.next)||void 0===he||he.call(se,ne)}error(ne){var se,he;null===(he=null===(se=this.destination)||void 0===se?void 0:se.error)||void 0===he||he.call(se,ne)}complete(){var ne,se;null===(se=null===(ne=this.destination)||void 0===ne?void 0:ne.complete)||void 0===se||se.call(ne)}_subscribe(ne){var se,he;return null!==(he=null===(se=this.source)||void 0===se?void 0:se.subscribe(ne))&&void 0!==he?he:o.Lc}}},930:(Ye,be,C)=>{C.d(be,{Hp:()=>Ve,Lv:()=>he});var l=C(576),o=C(727),m=C(2416),K=C(7849),ue=C(5032);const Q=de("C",void 0,void 0);function de(ge,G,J){return{kind:ge,value:G,error:J}}var ne=C(3410),se=C(2806);class he extends o.w0{constructor(G){super(),this.isStopped=!1,G?(this.destination=G,(0,o.Nn)(G)&&G.add(this)):this.destination=Qe}static create(G,J,me){return new Ve(G,J,me)}next(G){this.isStopped?Ze(function Ee(ge){return de("N",ge,void 0)}(G),this):this._next(G)}error(G){this.isStopped?Ze(function Me(ge){return de("E",void 0,ge)}(G),this):(this.isStopped=!0,this._error(G))}complete(){this.isStopped?Ze(Q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(G){this.destination.next(G)}_error(G){try{this.destination.error(G)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ee=Function.prototype.bind;function le(ge,G){return ee.call(ge,G)}class Fe{constructor(G){this.partialObserver=G}next(G){const{partialObserver:J}=this;if(J.next)try{J.next(G)}catch(me){q(me)}}error(G){const{partialObserver:J}=this;if(J.error)try{J.error(G)}catch(me){q(me)}else q(G)}complete(){const{partialObserver:G}=this;if(G.complete)try{G.complete()}catch(J){q(J)}}}class Ve extends he{constructor(G,J,me){let xe;if(super(),(0,l.m)(G)||!G)xe={next:null!=G?G:void 0,error:null!=J?J:void 0,complete:null!=me?me:void 0};else{let Be;this&&m.v.useDeprecatedNextContext?(Be=Object.create(G),Be.unsubscribe=()=>this.unsubscribe(),xe={next:G.next&&le(G.next,Be),error:G.error&&le(G.error,Be),complete:G.complete&&le(G.complete,Be)}):xe=G}this.destination=new Fe(xe)}}function q(ge){m.v.useDeprecatedSynchronousErrorHandling?(0,se.O)(ge):(0,K.h)(ge)}function Ze(ge,G){const{onStoppedNotification:J}=m.v;J&&ne.z.setTimeout(()=>J(ge,G))}const Qe={closed:!0,next:ue.Z,error:function tt(ge){throw ge},complete:ue.Z}},727:(Ye,be,C)=>{C.d(be,{Lc:()=>Q,w0:()=>ue,Nn:()=>Me});var l=C(576);const m=(0,C(3888).d)(de=>function(se){de(this),this.message=se?`${se.length} errors occurred during unsubscription:\n${se.map((he,ee)=>`${ee+1}) ${he.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=se});var K=C(8737);class ue{constructor(ne){this.initialTeardown=ne,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let ne;if(!this.closed){this.closed=!0;const{_parentage:se}=this;if(se)if(this._parentage=null,Array.isArray(se))for(const le of se)le.remove(this);else se.remove(this);const{initialTeardown:he}=this;if((0,l.m)(he))try{he()}catch(le){ne=le instanceof m?le.errors:[le]}const{_teardowns:ee}=this;if(ee){this._teardowns=null;for(const le of ee)try{Ee(le)}catch(Fe){ne=null!=ne?ne:[],Fe instanceof m?ne=[...ne,...Fe.errors]:ne.push(Fe)}}if(ne)throw new m(ne)}}add(ne){var se;if(ne&&ne!==this)if(this.closed)Ee(ne);else{if(ne instanceof ue){if(ne.closed||ne._hasParent(this))return;ne._addParent(this)}(this._teardowns=null!==(se=this._teardowns)&&void 0!==se?se:[]).push(ne)}}_hasParent(ne){const{_parentage:se}=this;return se===ne||Array.isArray(se)&&se.includes(ne)}_addParent(ne){const{_parentage:se}=this;this._parentage=Array.isArray(se)?(se.push(ne),se):se?[se,ne]:ne}_removeParent(ne){const{_parentage:se}=this;se===ne?this._parentage=null:Array.isArray(se)&&(0,K.P)(se,ne)}remove(ne){const{_teardowns:se}=this;se&&(0,K.P)(se,ne),ne instanceof ue&&ne._removeParent(this)}}ue.EMPTY=(()=>{const de=new ue;return de.closed=!0,de})();const Q=ue.EMPTY;function Me(de){return de instanceof ue||de&&"closed"in de&&(0,l.m)(de.remove)&&(0,l.m)(de.add)&&(0,l.m)(de.unsubscribe)}function Ee(de){(0,l.m)(de)?de():de.unsubscribe()}},2416:(Ye,be,C)=>{C.d(be,{v:()=>l});const l={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ye,be,C)=>{C.d(be,{a:()=>ne});var l=C(8306),o=C(4742),m=C(2076),K=C(4671),ue=C(3268),Q=C(3269),Me=C(1810),Ee=C(5403),de=C(9672);function ne(...ee){const le=(0,Q.yG)(ee),Fe=(0,Q.jO)(ee),{args:Ve,keys:q}=(0,o.D)(ee);if(0===Ve.length)return(0,m.D)([],le);const tt=new l.y(function se(ee,le,Fe=K.y){return Ve=>{he(le,()=>{const{length:q}=ee,tt=new Array(q);let Ze=q,Qe=q;for(let ge=0;ge{const G=(0,m.D)(ee[ge],le);let J=!1;G.subscribe((0,Ee.x)(Ve,me=>{tt[ge]=me,J||(J=!0,Qe--),Qe||Ve.next(Fe(tt.slice()))},()=>{--Ze||Ve.complete()}))},Ve)},Ve)}}(Ve,le,q?Ze=>(0,Me.n)(q,Ze):K.y));return Fe?tt.pipe((0,ue.Z)(Fe)):tt}function he(ee,le,Fe){ee?(0,de.f)(Fe,ee,le):le()}},7272:(Ye,be,C)=>{C.d(be,{z:()=>ue});var l=C(8189),m=C(3269),K=C(2076);function ue(...Q){return function o(){return(0,l.J)(1)}()((0,K.D)(Q,(0,m.yG)(Q)))}},9770:(Ye,be,C)=>{C.d(be,{P:()=>m});var l=C(8306),o=C(8421);function m(K){return new l.y(ue=>{(0,o.Xf)(K()).subscribe(ue)})}},515:(Ye,be,C)=>{C.d(be,{E:()=>o});const o=new(C(8306).y)(ue=>ue.complete())},2076:(Ye,be,C)=>{C.d(be,{D:()=>me});var l=C(8421),o=C(9672),m=C(4482),K=C(5403);function ue(xe,Be=0){return(0,m.e)((ye,we)=>{ye.subscribe((0,K.x)(we,Se=>(0,o.f)(we,xe,()=>we.next(Se),Be),()=>(0,o.f)(we,xe,()=>we.complete(),Be),Se=>(0,o.f)(we,xe,()=>we.error(Se),Be)))})}function Q(xe,Be=0){return(0,m.e)((ye,we)=>{we.add(xe.schedule(()=>ye.subscribe(we),Be))})}var de=C(8306),se=C(2202),he=C(576);function le(xe,Be){if(!xe)throw new Error("Iterable cannot be null");return new de.y(ye=>{(0,o.f)(ye,Be,()=>{const we=xe[Symbol.asyncIterator]();(0,o.f)(ye,Be,()=>{we.next().then(Se=>{Se.done?ye.complete():ye.next(Se.value)})},0,!0)})})}var Fe=C(3670),Ve=C(8239),q=C(1144),tt=C(6495),Ze=C(2206),Qe=C(4532),ge=C(3260);function me(xe,Be){return Be?function J(xe,Be){if(null!=xe){if((0,Fe.c)(xe))return function Me(xe,Be){return(0,l.Xf)(xe).pipe(Q(Be),ue(Be))}(xe,Be);if((0,q.z)(xe))return function ne(xe,Be){return new de.y(ye=>{let we=0;return Be.schedule(function(){we===xe.length?ye.complete():(ye.next(xe[we++]),ye.closed||this.schedule())})})}(xe,Be);if((0,Ve.t)(xe))return function Ee(xe,Be){return(0,l.Xf)(xe).pipe(Q(Be),ue(Be))}(xe,Be);if((0,Ze.D)(xe))return le(xe,Be);if((0,tt.T)(xe))return function ee(xe,Be){return new de.y(ye=>{let we;return(0,o.f)(ye,Be,()=>{we=xe[se.h](),(0,o.f)(ye,Be,()=>{let Se,Te;try{({value:Se,done:Te}=we.next())}catch(nt){return void ye.error(nt)}Te?ye.complete():ye.next(Se)},0,!0)}),()=>(0,he.m)(null==we?void 0:we.return)&&we.return()})}(xe,Be);if((0,ge.L)(xe))return function G(xe,Be){return le((0,ge.Q)(xe),Be)}(xe,Be)}throw(0,Qe.z)(xe)}(xe,Be):(0,l.Xf)(xe)}},4968:(Ye,be,C)=>{C.d(be,{R:()=>ne});var l=C(8421),o=C(8306),m=C(5577),K=C(1144),ue=C(576),Q=C(3268);const Me=["addListener","removeListener"],Ee=["addEventListener","removeEventListener"],de=["on","off"];function ne(Fe,Ve,q,tt){if((0,ue.m)(q)&&(tt=q,q=void 0),tt)return ne(Fe,Ve,q).pipe((0,Q.Z)(tt));const[Ze,Qe]=function le(Fe){return(0,ue.m)(Fe.addEventListener)&&(0,ue.m)(Fe.removeEventListener)}(Fe)?Ee.map(ge=>G=>Fe[ge](Ve,G,q)):function he(Fe){return(0,ue.m)(Fe.addListener)&&(0,ue.m)(Fe.removeListener)}(Fe)?Me.map(se(Fe,Ve)):function ee(Fe){return(0,ue.m)(Fe.on)&&(0,ue.m)(Fe.off)}(Fe)?de.map(se(Fe,Ve)):[];if(!Ze&&(0,K.z)(Fe))return(0,m.z)(ge=>ne(ge,Ve,q))((0,l.Xf)(Fe));if(!Ze)throw new TypeError("Invalid event target");return new o.y(ge=>{const G=(...J)=>ge.next(1Qe(G)})}function se(Fe,Ve){return q=>tt=>Fe[q](Ve,tt)}},8421:(Ye,be,C)=>{C.d(be,{Xf:()=>ee});var l=C(655),o=C(1144),m=C(8239),K=C(8306),ue=C(3670),Q=C(2206),Me=C(4532),Ee=C(6495),de=C(3260),ne=C(576),se=C(7849),he=C(8822);function ee(ge){if(ge instanceof K.y)return ge;if(null!=ge){if((0,ue.c)(ge))return function le(ge){return new K.y(G=>{const J=ge[he.L]();if((0,ne.m)(J.subscribe))return J.subscribe(G);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ge);if((0,o.z)(ge))return function Fe(ge){return new K.y(G=>{for(let J=0;J{ge.then(J=>{G.closed||(G.next(J),G.complete())},J=>G.error(J)).then(null,se.h)})}(ge);if((0,Q.D)(ge))return tt(ge);if((0,Ee.T)(ge))return function q(ge){return new K.y(G=>{for(const J of ge)if(G.next(J),G.closed)return;G.complete()})}(ge);if((0,de.L)(ge))return function Ze(ge){return tt((0,de.Q)(ge))}(ge)}throw(0,Me.z)(ge)}function tt(ge){return new K.y(G=>{(function Qe(ge,G){var J,me,xe,Be;return(0,l.mG)(this,void 0,void 0,function*(){try{for(J=(0,l.KL)(ge);!(me=yield J.next()).done;)if(G.next(me.value),G.closed)return}catch(ye){xe={error:ye}}finally{try{me&&!me.done&&(Be=J.return)&&(yield Be.call(J))}finally{if(xe)throw xe.error}}G.complete()})})(ge,G).catch(J=>G.error(J))})}},6451:(Ye,be,C)=>{C.d(be,{T:()=>Q});var l=C(8189),o=C(8421),m=C(515),K=C(3269),ue=C(2076);function Q(...Me){const Ee=(0,K.yG)(Me),de=(0,K._6)(Me,1/0),ne=Me;return ne.length?1===ne.length?(0,o.Xf)(ne[0]):(0,l.J)(de)((0,ue.D)(ne,Ee)):m.E}},9646:(Ye,be,C)=>{C.d(be,{of:()=>m});var l=C(3269),o=C(2076);function m(...K){const ue=(0,l.yG)(K);return(0,o.D)(K,ue)}},5963:(Ye,be,C)=>{C.d(be,{H:()=>ue});var l=C(8306),o=C(4986),m=C(3532);function ue(Q=0,Me,Ee=o.P){let de=-1;return null!=Me&&((0,m.K)(Me)?Ee=Me:de=Me),new l.y(ne=>{let se=function K(Q){return Q instanceof Date&&!isNaN(Q)}(Q)?+Q-Ee.now():Q;se<0&&(se=0);let he=0;return Ee.schedule(function(){ne.closed||(ne.next(he++),0<=de?this.schedule(void 0,de):ne.complete())},se)})}},5403:(Ye,be,C)=>{C.d(be,{x:()=>o});var l=C(930);function o(K,ue,Q,Me,Ee){return new m(K,ue,Q,Me,Ee)}class m extends l.Lv{constructor(ue,Q,Me,Ee,de,ne){super(ue),this.onFinalize=de,this.shouldUnsubscribe=ne,this._next=Q?function(se){try{Q(se)}catch(he){ue.error(he)}}:super._next,this._error=Ee?function(se){try{Ee(se)}catch(he){ue.error(he)}finally{this.unsubscribe()}}:super._error,this._complete=Me?function(){try{Me()}catch(se){ue.error(se)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ue;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Q}=this;super.unsubscribe(),!Q&&(null===(ue=this.onFinalize)||void 0===ue||ue.call(this))}}}},4351:(Ye,be,C)=>{C.d(be,{b:()=>m});var l=C(5577),o=C(576);function m(K,ue){return(0,o.m)(ue)?(0,l.z)(K,ue,1):(0,l.z)(K,1)}},8372:(Ye,be,C)=>{C.d(be,{b:()=>K});var l=C(4986),o=C(4482),m=C(5403);function K(ue,Q=l.z){return(0,o.e)((Me,Ee)=>{let de=null,ne=null,se=null;const he=()=>{if(de){de.unsubscribe(),de=null;const le=ne;ne=null,Ee.next(le)}};function ee(){const le=se+ue,Fe=Q.now();if(Fe{ne=le,se=Q.now(),de||(de=Q.schedule(ee,ue),Ee.add(de))},()=>{he(),Ee.complete()},void 0,()=>{ne=de=null}))})}},1884:(Ye,be,C)=>{C.d(be,{x:()=>K});var l=C(4671),o=C(4482),m=C(5403);function K(Q,Me=l.y){return Q=null!=Q?Q:ue,(0,o.e)((Ee,de)=>{let ne,se=!0;Ee.subscribe((0,m.x)(de,he=>{const ee=Me(he);(se||!Q(ne,ee))&&(se=!1,ne=ee,de.next(he))}))})}function ue(Q,Me){return Q===Me}},9300:(Ye,be,C)=>{C.d(be,{h:()=>m});var l=C(4482),o=C(5403);function m(K,ue){return(0,l.e)((Q,Me)=>{let Ee=0;Q.subscribe((0,o.x)(Me,de=>K.call(ue,de,Ee++)&&Me.next(de)))})}},4004:(Ye,be,C)=>{C.d(be,{U:()=>m});var l=C(4482),o=C(5403);function m(K,ue){return(0,l.e)((Q,Me)=>{let Ee=0;Q.subscribe((0,o.x)(Me,de=>{Me.next(K.call(ue,de,Ee++))}))})}},8189:(Ye,be,C)=>{C.d(be,{J:()=>m});var l=C(5577),o=C(4671);function m(K=1/0){return(0,l.z)(o.y,K)}},5577:(Ye,be,C)=>{C.d(be,{z:()=>Ee});var l=C(4004),o=C(8421),m=C(4482),K=C(9672),ue=C(5403),Me=C(576);function Ee(de,ne,se=1/0){return(0,Me.m)(ne)?Ee((he,ee)=>(0,l.U)((le,Fe)=>ne(he,le,ee,Fe))((0,o.Xf)(de(he,ee))),se):("number"==typeof ne&&(se=ne),(0,m.e)((he,ee)=>function Q(de,ne,se,he,ee,le,Fe,Ve){const q=[];let tt=0,Ze=0,Qe=!1;const ge=()=>{Qe&&!q.length&&!tt&&ne.complete()},G=me=>tt{le&&ne.next(me),tt++;let xe=!1;(0,o.Xf)(se(me,Ze++)).subscribe((0,ue.x)(ne,Be=>{null==ee||ee(Be),le?G(Be):ne.next(Be)},()=>{xe=!0},void 0,()=>{if(xe)try{for(tt--;q.length&&ttJ(Be)):J(Be)}ge()}catch(Be){ne.error(Be)}}))};return de.subscribe((0,ue.x)(ne,G,()=>{Qe=!0,ge()})),()=>{null==Ve||Ve()}}(he,ee,de,se)))}},5684:(Ye,be,C)=>{C.d(be,{T:()=>o});var l=C(9300);function o(m){return(0,l.h)((K,ue)=>m<=ue)}},8675:(Ye,be,C)=>{C.d(be,{O:()=>K});var l=C(7272),o=C(3269),m=C(4482);function K(...ue){const Q=(0,o.yG)(ue);return(0,m.e)((Me,Ee)=>{(Q?(0,l.z)(ue,Me,Q):(0,l.z)(ue,Me)).subscribe(Ee)})}},3900:(Ye,be,C)=>{C.d(be,{w:()=>K});var l=C(8421),o=C(4482),m=C(5403);function K(ue,Q){return(0,o.e)((Me,Ee)=>{let de=null,ne=0,se=!1;const he=()=>se&&!de&&Ee.complete();Me.subscribe((0,m.x)(Ee,ee=>{null==de||de.unsubscribe();let le=0;const Fe=ne++;(0,l.Xf)(ue(ee,Fe)).subscribe(de=(0,m.x)(Ee,Ve=>Ee.next(Q?Q(ee,Ve,Fe,le++):Ve),()=>{de=null,he()}))},()=>{se=!0,he()}))})}},5698:(Ye,be,C)=>{C.d(be,{q:()=>K});var l=C(515),o=C(4482),m=C(5403);function K(ue){return ue<=0?()=>l.E:(0,o.e)((Q,Me)=>{let Ee=0;Q.subscribe((0,m.x)(Me,de=>{++Ee<=ue&&(Me.next(de),ue<=Ee&&Me.complete())}))})}},2722:(Ye,be,C)=>{C.d(be,{R:()=>ue});var l=C(4482),o=C(5403),m=C(8421),K=C(5032);function ue(Q){return(0,l.e)((Me,Ee)=>{(0,m.Xf)(Q).subscribe((0,o.x)(Ee,()=>Ee.complete(),K.Z)),!Ee.closed&&Me.subscribe(Ee)})}},8505:(Ye,be,C)=>{C.d(be,{b:()=>ue});var l=C(576),o=C(4482),m=C(5403),K=C(4671);function ue(Q,Me,Ee){const de=(0,l.m)(Q)||Me||Ee?{next:Q,error:Me,complete:Ee}:Q;return de?(0,o.e)((ne,se)=>{var he;null===(he=de.subscribe)||void 0===he||he.call(de);let ee=!0;ne.subscribe((0,m.x)(se,le=>{var Fe;null===(Fe=de.next)||void 0===Fe||Fe.call(de,le),se.next(le)},()=>{var le;ee=!1,null===(le=de.complete)||void 0===le||le.call(de),se.complete()},le=>{var Fe;ee=!1,null===(Fe=de.error)||void 0===Fe||Fe.call(de,le),se.error(le)},()=>{var le,Fe;ee&&(null===(le=de.unsubscribe)||void 0===le||le.call(de)),null===(Fe=de.finalize)||void 0===Fe||Fe.call(de)}))}):K.y}},4408:(Ye,be,C)=>{C.d(be,{o:()=>ue});var l=C(727);class o extends l.w0{constructor(Me,Ee){super()}schedule(Me,Ee=0){return this}}const m={setInterval(...Q){const{delegate:Me}=m;return((null==Me?void 0:Me.setInterval)||setInterval)(...Q)},clearInterval(Q){const{delegate:Me}=m;return((null==Me?void 0:Me.clearInterval)||clearInterval)(Q)},delegate:void 0};var K=C(8737);class ue extends o{constructor(Me,Ee){super(Me,Ee),this.scheduler=Me,this.work=Ee,this.pending=!1}schedule(Me,Ee=0){if(this.closed)return this;this.state=Me;const de=this.id,ne=this.scheduler;return null!=de&&(this.id=this.recycleAsyncId(ne,de,Ee)),this.pending=!0,this.delay=Ee,this.id=this.id||this.requestAsyncId(ne,this.id,Ee),this}requestAsyncId(Me,Ee,de=0){return m.setInterval(Me.flush.bind(Me,this),de)}recycleAsyncId(Me,Ee,de=0){if(null!=de&&this.delay===de&&!1===this.pending)return Ee;m.clearInterval(Ee)}execute(Me,Ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const de=this._execute(Me,Ee);if(de)return de;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Me,Ee){let ne,de=!1;try{this.work(Me)}catch(se){de=!0,ne=se||new Error("Scheduled action threw falsy error")}if(de)return this.unsubscribe(),ne}unsubscribe(){if(!this.closed){const{id:Me,scheduler:Ee}=this,{actions:de}=Ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,K.P)(de,this),null!=Me&&(this.id=this.recycleAsyncId(Ee,Me,null)),this.delay=null,super.unsubscribe()}}}},640:(Ye,be,C)=>{C.d(be,{v:()=>m});const l={now:()=>(l.delegate||Date).now(),delegate:void 0};class o{constructor(ue,Q=o.now){this.schedulerActionCtor=ue,this.now=Q}schedule(ue,Q=0,Me){return new this.schedulerActionCtor(this,ue).schedule(Me,Q)}}o.now=l.now;class m extends o{constructor(ue,Q=o.now){super(ue,Q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(ue){const{actions:Q}=this;if(this._active)return void Q.push(ue);let Me;this._active=!0;do{if(Me=ue.execute(ue.state,ue.delay))break}while(ue=Q.shift());if(this._active=!1,Me){for(;ue=Q.shift();)ue.unsubscribe();throw Me}}}},3101:(Ye,be,C)=>{C.d(be,{E:()=>le});var l=C(4408);let m,o=1;const K={};function ue(Ve){return Ve in K&&(delete K[Ve],!0)}const Q={setImmediate(Ve){const q=o++;return K[q]=!0,m||(m=Promise.resolve()),m.then(()=>ue(q)&&Ve()),q},clearImmediate(Ve){ue(Ve)}},{setImmediate:Ee,clearImmediate:de}=Q,ne={setImmediate(...Ve){const{delegate:q}=ne;return((null==q?void 0:q.setImmediate)||Ee)(...Ve)},clearImmediate(Ve){const{delegate:q}=ne;return((null==q?void 0:q.clearImmediate)||de)(Ve)},delegate:void 0};var he=C(640);const le=new class ee extends he.v{flush(q){this._active=!0;const tt=this._scheduled;this._scheduled=void 0;const{actions:Ze}=this;let Qe;q=q||Ze.shift();do{if(Qe=q.execute(q.state,q.delay))break}while((q=Ze[0])&&q.id===tt&&Ze.shift());if(this._active=!1,Qe){for(;(q=Ze[0])&&q.id===tt&&Ze.shift();)q.unsubscribe();throw Qe}}}(class se extends l.o{constructor(q,tt){super(q,tt),this.scheduler=q,this.work=tt}requestAsyncId(q,tt,Ze=0){return null!==Ze&&Ze>0?super.requestAsyncId(q,tt,Ze):(q.actions.push(this),q._scheduled||(q._scheduled=ne.setImmediate(q.flush.bind(q,void 0))))}recycleAsyncId(q,tt,Ze=0){if(null!=Ze&&Ze>0||null==Ze&&this.delay>0)return super.recycleAsyncId(q,tt,Ze);q.actions.some(Qe=>Qe.id===tt)||(ne.clearImmediate(tt),q._scheduled=void 0)}})},4986:(Ye,be,C)=>{C.d(be,{z:()=>m,P:()=>K});var l=C(4408);const m=new(C(640).v)(l.o),K=m},3410:(Ye,be,C)=>{C.d(be,{z:()=>l});const l={setTimeout(...o){const{delegate:m}=l;return((null==m?void 0:m.setTimeout)||setTimeout)(...o)},clearTimeout(o){const{delegate:m}=l;return((null==m?void 0:m.clearTimeout)||clearTimeout)(o)},delegate:void 0}},2202:(Ye,be,C)=>{C.d(be,{h:()=>o});const o=function l(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ye,be,C)=>{C.d(be,{L:()=>l});const l="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(Ye,be,C)=>{C.d(be,{jO:()=>K,yG:()=>ue,_6:()=>Q});var l=C(576),o=C(3532);function m(Me){return Me[Me.length-1]}function K(Me){return(0,l.m)(m(Me))?Me.pop():void 0}function ue(Me){return(0,o.K)(m(Me))?Me.pop():void 0}function Q(Me,Ee){return"number"==typeof m(Me)?Me.pop():Ee}},4742:(Ye,be,C)=>{C.d(be,{D:()=>ue});const{isArray:l}=Array,{getPrototypeOf:o,prototype:m,keys:K}=Object;function ue(Me){if(1===Me.length){const Ee=Me[0];if(l(Ee))return{args:Ee,keys:null};if(function Q(Me){return Me&&"object"==typeof Me&&o(Me)===m}(Ee)){const de=K(Ee);return{args:de.map(ne=>Ee[ne]),keys:de}}}return{args:Me,keys:null}}},8737:(Ye,be,C)=>{function l(o,m){if(o){const K=o.indexOf(m);0<=K&&o.splice(K,1)}}C.d(be,{P:()=>l})},3888:(Ye,be,C)=>{function l(o){const K=o(ue=>{Error.call(ue),ue.stack=(new Error).stack});return K.prototype=Object.create(Error.prototype),K.prototype.constructor=K,K}C.d(be,{d:()=>l})},1810:(Ye,be,C)=>{function l(o,m){return o.reduce((K,ue,Q)=>(K[ue]=m[Q],K),{})}C.d(be,{n:()=>l})},2806:(Ye,be,C)=>{C.d(be,{x:()=>m,O:()=>K});var l=C(2416);let o=null;function m(ue){if(l.v.useDeprecatedSynchronousErrorHandling){const Q=!o;if(Q&&(o={errorThrown:!1,error:null}),ue(),Q){const{errorThrown:Me,error:Ee}=o;if(o=null,Me)throw Ee}}else ue()}function K(ue){l.v.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=ue)}},9672:(Ye,be,C)=>{function l(o,m,K,ue=0,Q=!1){const Me=m.schedule(function(){K(),Q?o.add(this.schedule(null,ue)):this.unsubscribe()},ue);if(o.add(Me),!Q)return Me}C.d(be,{f:()=>l})},4671:(Ye,be,C)=>{function l(o){return o}C.d(be,{y:()=>l})},1144:(Ye,be,C)=>{C.d(be,{z:()=>l});const l=o=>o&&"number"==typeof o.length&&"function"!=typeof o},2206:(Ye,be,C)=>{C.d(be,{D:()=>o});var l=C(576);function o(m){return Symbol.asyncIterator&&(0,l.m)(null==m?void 0:m[Symbol.asyncIterator])}},576:(Ye,be,C)=>{function l(o){return"function"==typeof o}C.d(be,{m:()=>l})},3670:(Ye,be,C)=>{C.d(be,{c:()=>m});var l=C(8822),o=C(576);function m(K){return(0,o.m)(K[l.L])}},6495:(Ye,be,C)=>{C.d(be,{T:()=>m});var l=C(2202),o=C(576);function m(K){return(0,o.m)(null==K?void 0:K[l.h])}},8239:(Ye,be,C)=>{C.d(be,{t:()=>o});var l=C(576);function o(m){return(0,l.m)(null==m?void 0:m.then)}},3260:(Ye,be,C)=>{C.d(be,{Q:()=>m,L:()=>K});var l=C(655),o=C(576);function m(ue){return(0,l.FC)(this,arguments,function*(){const Me=ue.getReader();try{for(;;){const{value:Ee,done:de}=yield(0,l.qq)(Me.read());if(de)return yield(0,l.qq)(void 0);yield yield(0,l.qq)(Ee)}}finally{Me.releaseLock()}})}function K(ue){return(0,o.m)(null==ue?void 0:ue.getReader)}},3532:(Ye,be,C)=>{C.d(be,{K:()=>o});var l=C(576);function o(m){return m&&(0,l.m)(m.schedule)}},4482:(Ye,be,C)=>{C.d(be,{A:()=>o,e:()=>m});var l=C(576);function o(K){return(0,l.m)(null==K?void 0:K.lift)}function m(K){return ue=>{if(o(ue))return ue.lift(function(Q){try{return K(Q,this)}catch(Me){this.error(Me)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ye,be,C)=>{C.d(be,{Z:()=>K});var l=C(4004);const{isArray:o}=Array;function K(ue){return(0,l.U)(Q=>function m(ue,Q){return o(Q)?ue(...Q):ue(Q)}(ue,Q))}},5032:(Ye,be,C)=>{function l(){}C.d(be,{Z:()=>l})},7849:(Ye,be,C)=>{C.d(be,{h:()=>m});var l=C(2416),o=C(3410);function m(K){o.z.setTimeout(()=>{const{onUnhandledError:ue}=l.v;if(!ue)throw K;ue(K)})}},4532:(Ye,be,C)=>{function l(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(be,{z:()=>l})},655:(Ye,be,C)=>{function Ee(ye,we,Se,Te){return new(Se||(Se=Promise))(function(Le,Et){function gt(kt){try{bt(Te.next(kt))}catch(Yt){Et(Yt)}}function Xt(kt){try{bt(Te.throw(kt))}catch(Yt){Et(Yt)}}function bt(kt){kt.done?Le(kt.value):function nt(Le){return Le instanceof Se?Le:new Se(function(Et){Et(Le)})}(kt.value).then(gt,Xt)}bt((Te=Te.apply(ye,we||[])).next())})}function q(ye){return this instanceof q?(this.v=ye,this):new q(ye)}function tt(ye,we,Se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var nt,Te=Se.apply(ye,we||[]),Le=[];return nt={},Et("next"),Et("throw"),Et("return"),nt[Symbol.asyncIterator]=function(){return this},nt;function Et(Rt){Te[Rt]&&(nt[Rt]=function(gn){return new Promise(function(Ht,St){Le.push([Rt,gn,Ht,St])>1||gt(Rt,gn)})})}function gt(Rt,gn){try{!function Xt(Rt){Rt.value instanceof q?Promise.resolve(Rt.value.v).then(bt,kt):Yt(Le[0][2],Rt)}(Te[Rt](gn))}catch(Ht){Yt(Le[0][3],Ht)}}function bt(Rt){gt("next",Rt)}function kt(Rt){gt("throw",Rt)}function Yt(Rt,gn){Rt(gn),Le.shift(),Le.length&>(Le[0][0],Le[0][1])}}function Qe(ye){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,we=ye[Symbol.asyncIterator];return we?we.call(ye):(ye=function he(ye){var we="function"==typeof Symbol&&Symbol.iterator,Se=we&&ye[we],Te=0;if(Se)return Se.call(ye);if(ye&&"number"==typeof ye.length)return{next:function(){return ye&&Te>=ye.length&&(ye=void 0),{value:ye&&ye[Te++],done:!ye}}};throw new TypeError(we?"Object is not iterable.":"Symbol.iterator is not defined.")}(ye),Se={},Te("next"),Te("throw"),Te("return"),Se[Symbol.asyncIterator]=function(){return this},Se);function Te(Le){Se[Le]=ye[Le]&&function(Et){return new Promise(function(gt,Xt){!function nt(Le,Et,gt,Xt){Promise.resolve(Xt).then(function(bt){Le({value:bt,done:gt})},Et)}(gt,Xt,(Et=ye[Le](Et)).done,Et.value)})}}}C.d(be,{mG:()=>Ee,qq:()=>q,FC:()=>tt,KL:()=>Qe})},1777:(Ye,be,C)=>{C.d(be,{l3:()=>m,_j:()=>l,LC:()=>o,ZN:()=>tt,jt:()=>ue,pV:()=>ee,F4:()=>ne,IO:()=>Fe,vP:()=>Me,SB:()=>de,oB:()=>Ee,eR:()=>se,X$:()=>K,ZE:()=>Ze,k1:()=>Qe});class l{}class o{}const m="*";function K(ge,G){return{type:7,name:ge,definitions:G,options:{}}}function ue(ge,G=null){return{type:4,styles:G,timings:ge}}function Me(ge,G=null){return{type:2,steps:ge,options:G}}function Ee(ge){return{type:6,styles:ge,offset:null}}function de(ge,G,J){return{type:0,name:ge,styles:G,options:J}}function ne(ge){return{type:5,steps:ge}}function se(ge,G,J=null){return{type:1,expr:ge,animation:G,options:J}}function ee(ge=null){return{type:9,options:ge}}function Fe(ge,G,J=null){return{type:11,selector:ge,animation:G,options:J}}function q(ge){Promise.resolve(null).then(ge)}class tt{constructor(G=0,J=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=G+J}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(G=>G()),this._onDoneFns=[])}onStart(G){this._onStartFns.push(G)}onDone(G){this._onDoneFns.push(G)}onDestroy(G){this._onDestroyFns.push(G)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){q(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(G=>G()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(G=>G()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(G){this._position=this.totalTime?G*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(G){const J="start"==G?this._onStartFns:this._onDoneFns;J.forEach(me=>me()),J.length=0}}class Ze{constructor(G){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=G;let J=0,me=0,xe=0;const Be=this.players.length;0==Be?q(()=>this._onFinish()):this.players.forEach(ye=>{ye.onDone(()=>{++J==Be&&this._onFinish()}),ye.onDestroy(()=>{++me==Be&&this._onDestroy()}),ye.onStart(()=>{++xe==Be&&this._onStart()})}),this.totalTime=this.players.reduce((ye,we)=>Math.max(ye,we.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(G=>G()),this._onDoneFns=[])}init(){this.players.forEach(G=>G.init())}onStart(G){this._onStartFns.push(G)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(G=>G()),this._onStartFns=[])}onDone(G){this._onDoneFns.push(G)}onDestroy(G){this._onDestroyFns.push(G)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(G=>G.play())}pause(){this.players.forEach(G=>G.pause())}restart(){this.players.forEach(G=>G.restart())}finish(){this._onFinish(),this.players.forEach(G=>G.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(G=>G.destroy()),this._onDestroyFns.forEach(G=>G()),this._onDestroyFns=[])}reset(){this.players.forEach(G=>G.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(G){const J=G*this.totalTime;this.players.forEach(me=>{const xe=me.totalTime?Math.min(1,J/me.totalTime):1;me.setPosition(xe)})}getPosition(){const G=this.players.reduce((J,me)=>null===J||me.totalTime>J.totalTime?me:J,null);return null!=G?G.getPosition():0}beforeDestroy(){this.players.forEach(G=>{G.beforeDestroy&&G.beforeDestroy()})}triggerCallback(G){const J="start"==G?this._onStartFns:this._onDoneFns;J.forEach(me=>me()),J.length=0}}const Qe="!"},9950:(Ye,be,C)=>{C.d(be,{rt:()=>Ae,s1:()=>nt,$s:()=>ye,Em:()=>Le,tE:()=>rn,qV:()=>je,qm:()=>Ne,ic:()=>gt,Kd:()=>Ge,X6:()=>lt,yG:()=>Re});var l=C(9808),o=C(4893),m=C(925),K=C(7579),ue=C(727),Q=C(1135),Me=C(9646),Ee=C(1159),de=C(8505),ne=C(8372),se=C(9300),he=C(4004),ee=C(5698),le=C(5684),Fe=C(1884),Ve=C(2722),q=C(3191),tt=C(7144);function G(U,z){return(U.getAttribute(z)||"").match(/\S+/g)||[]}const me="cdk-describedby-message",xe="cdk-describedby-host";let Be=0,ye=(()=>{class U{constructor(W,fe){this._platform=fe,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Be++,this._document=W}describe(W,fe,Oe){if(!this._canBeDescribed(W,fe))return;const at=we(fe,Oe);"string"!=typeof fe?(Se(fe),this._messageRegistry.set(at,{messageElement:fe,referenceCount:0})):this._messageRegistry.has(at)||this._createMessageElement(fe,Oe),this._isElementDescribedByMessage(W,at)||this._addMessageReference(W,at)}removeDescription(W,fe,Oe){var at;if(!fe||!this._isElementNode(W))return;const Tt=we(fe,Oe);if(this._isElementDescribedByMessage(W,Tt)&&this._removeMessageReference(W,Tt),"string"==typeof fe){const qt=this._messageRegistry.get(Tt);qt&&0===qt.referenceCount&&this._deleteMessageElement(Tt)}0===(null===(at=this._messagesContainer)||void 0===at?void 0:at.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var W;const fe=this._document.querySelectorAll(`[${xe}="${this._id}"]`);for(let Oe=0;Oe0!=Oe.indexOf(me));W.setAttribute("aria-describedby",fe.join(" "))}_addMessageReference(W,fe){const Oe=this._messageRegistry.get(fe);(function Qe(U,z,W){const fe=G(U,z);fe.some(Oe=>Oe.trim()==W.trim())||(fe.push(W.trim()),U.setAttribute(z,fe.join(" ")))})(W,"aria-describedby",Oe.messageElement.id),W.setAttribute(xe,this._id),Oe.referenceCount++}_removeMessageReference(W,fe){const Oe=this._messageRegistry.get(fe);Oe.referenceCount--,function ge(U,z,W){const Oe=G(U,z).filter(at=>at!=W.trim());Oe.length?U.setAttribute(z,Oe.join(" ")):U.removeAttribute(z)}(W,"aria-describedby",Oe.messageElement.id),W.removeAttribute(xe)}_isElementDescribedByMessage(W,fe){const Oe=G(W,"aria-describedby"),at=this._messageRegistry.get(fe),Tt=at&&at.messageElement.id;return!!Tt&&-1!=Oe.indexOf(Tt)}_canBeDescribed(W,fe){if(!this._isElementNode(W))return!1;if(fe&&"object"==typeof fe)return!0;const Oe=null==fe?"":`${fe}`.trim(),at=W.getAttribute("aria-label");return!(!Oe||at&&at.trim()===Oe)}_isElementNode(W){return W.nodeType===this._document.ELEMENT_NODE}}return U.\u0275fac=function(W){return new(W||U)(o.LFG(l.K0),o.LFG(m.t4))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();function we(U,z){return"string"==typeof U?`${z||""}/${U}`:U}function Se(U){U.id||(U.id=`${me}-${Be++}`)}class Te{constructor(z){this._items=z,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new K.x,this._typeaheadSubscription=ue.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=W=>W.disabled,this._pressedLetters=[],this.tabOut=new K.x,this.change=new K.x,z instanceof o.n_E&&z.changes.subscribe(W=>{if(this._activeItem){const Oe=W.toArray().indexOf(this._activeItem);Oe>-1&&Oe!==this._activeItemIndex&&(this._activeItemIndex=Oe)}})}skipPredicate(z){return this._skipPredicateFn=z,this}withWrap(z=!0){return this._wrap=z,this}withVerticalOrientation(z=!0){return this._vertical=z,this}withHorizontalOrientation(z){return this._horizontal=z,this}withAllowedModifierKeys(z){return this._allowedModifierKeys=z,this}withTypeAhead(z=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,de.b)(W=>this._pressedLetters.push(W)),(0,ne.b)(z),(0,se.h)(()=>this._pressedLetters.length>0),(0,he.U)(()=>this._pressedLetters.join(""))).subscribe(W=>{const fe=this._getItemsArray();for(let Oe=1;Oe!z[at]||this._allowedModifierKeys.indexOf(at)>-1);switch(W){case Ee.Mf:return void this.tabOut.next();case Ee.JH:if(this._vertical&&Oe){this.setNextItemActive();break}return;case Ee.LH:if(this._vertical&&Oe){this.setPreviousItemActive();break}return;case Ee.SV:if(this._horizontal&&Oe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Ee.oh:if(this._horizontal&&Oe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Ee.Sd:if(this._homeAndEnd&&Oe){this.setFirstItemActive();break}return;case Ee.uR:if(this._homeAndEnd&&Oe){this.setLastItemActive();break}return;default:return void((Oe||(0,Ee.Vb)(z,"shiftKey"))&&(z.key&&1===z.key.length?this._letterKeyStream.next(z.key.toLocaleUpperCase()):(W>=Ee.A&&W<=Ee.Z||W>=Ee.xE&&W<=Ee.aO)&&this._letterKeyStream.next(String.fromCharCode(W))))}this._pressedLetters=[],z.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(z){const W=this._getItemsArray(),fe="number"==typeof z?z:W.indexOf(z),Oe=W[fe];this._activeItem=null==Oe?null:Oe,this._activeItemIndex=fe}_setActiveItemByDelta(z){this._wrap?this._setActiveInWrapMode(z):this._setActiveInDefaultMode(z)}_setActiveInWrapMode(z){const W=this._getItemsArray();for(let fe=1;fe<=W.length;fe++){const Oe=(this._activeItemIndex+z*fe+W.length)%W.length;if(!this._skipPredicateFn(W[Oe]))return void this.setActiveItem(Oe)}}_setActiveInDefaultMode(z){this._setActiveItemByIndex(this._activeItemIndex+z,z)}_setActiveItemByIndex(z,W){const fe=this._getItemsArray();if(fe[z]){for(;this._skipPredicateFn(fe[z]);)if(!fe[z+=W])return;this.setActiveItem(z)}}_getItemsArray(){return this._items instanceof o.n_E?this._items.toArray():this._items}}class nt extends Te{setActiveItem(z){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(z),this.activeItem&&this.activeItem.setActiveStyles()}}class Le extends Te{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(z){return this._origin=z,this}setActiveItem(z){super.setActiveItem(z),this.activeItem&&this.activeItem.focus(this._origin)}}let gt=(()=>{class U{constructor(W){this._platform=W}isDisabled(W){return W.hasAttribute("disabled")}isVisible(W){return function bt(U){return!!(U.offsetWidth||U.offsetHeight||"function"==typeof U.getClientRects&&U.getClientRects().length)}(W)&&"visible"===getComputedStyle(W).visibility}isTabbable(W){if(!this._platform.isBrowser)return!1;const fe=function Xt(U){try{return U.frameElement}catch(z){return null}}(function X(U){return U.ownerDocument&&U.ownerDocument.defaultView||window}(W));if(fe&&(-1===sn(fe)||!this.isVisible(fe)))return!1;let Oe=W.nodeName.toLowerCase(),at=sn(W);return W.hasAttribute("contenteditable")?-1!==at:!("iframe"===Oe||"object"===Oe||this._platform.WEBKIT&&this._platform.IOS&&!function et(U){let z=U.nodeName.toLowerCase(),W="input"===z&&U.type;return"text"===W||"password"===W||"select"===z||"textarea"===z}(W))&&("audio"===Oe?!!W.hasAttribute("controls")&&-1!==at:"video"===Oe?-1!==at&&(null!==at||this._platform.FIREFOX||W.hasAttribute("controls")):W.tabIndex>=0)}isFocusable(W,fe){return function ze(U){return!function Yt(U){return function gn(U){return"input"==U.nodeName.toLowerCase()}(U)&&"hidden"==U.type}(U)&&(function kt(U){let z=U.nodeName.toLowerCase();return"input"===z||"select"===z||"button"===z||"textarea"===z}(U)||function Rt(U){return function Ht(U){return"a"==U.nodeName.toLowerCase()}(U)&&U.hasAttribute("href")}(U)||U.hasAttribute("contenteditable")||St(U))}(W)&&!this.isDisabled(W)&&((null==fe?void 0:fe.ignoreVisibility)||this.isVisible(W))}}return U.\u0275fac=function(W){return new(W||U)(o.LFG(m.t4))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();function St(U){if(!U.hasAttribute("tabindex")||void 0===U.tabIndex)return!1;let z=U.getAttribute("tabindex");return!(!z||isNaN(parseInt(z,10)))}function sn(U){if(!St(U))return null;const z=parseInt(U.getAttribute("tabindex")||"",10);return isNaN(z)?-1:z}class Z{constructor(z,W,fe,Oe,at=!1){this._element=z,this._checker=W,this._ngZone=fe,this._document=Oe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,at||this.attachAnchors()}get enabled(){return this._enabled}set enabled(z){this._enabled=z,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(z,this._startAnchor),this._toggleAnchorTabIndex(z,this._endAnchor))}destroy(){const z=this._startAnchor,W=this._endAnchor;z&&(z.removeEventListener("focus",this.startAnchorListener),z.remove()),W&&(W.removeEventListener("focus",this.endAnchorListener),W.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(z){return new Promise(W=>{this._executeOnStable(()=>W(this.focusInitialElement(z)))})}focusFirstTabbableElementWhenReady(z){return new Promise(W=>{this._executeOnStable(()=>W(this.focusFirstTabbableElement(z)))})}focusLastTabbableElementWhenReady(z){return new Promise(W=>{this._executeOnStable(()=>W(this.focusLastTabbableElement(z)))})}_getRegionBoundary(z){const W=this._element.querySelectorAll(`[cdk-focus-region-${z}], [cdkFocusRegion${z}], [cdk-focus-${z}]`);return"start"==z?W.length?W[0]:this._getFirstTabbableElement(this._element):W.length?W[W.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(z){const W=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(W){if(!this._checker.isFocusable(W)){const fe=this._getFirstTabbableElement(W);return null==fe||fe.focus(z),!!fe}return W.focus(z),!0}return this.focusFirstTabbableElement(z)}focusFirstTabbableElement(z){const W=this._getRegionBoundary("start");return W&&W.focus(z),!!W}focusLastTabbableElement(z){const W=this._getRegionBoundary("end");return W&&W.focus(z),!!W}hasAttached(){return this._hasAttached}_getFirstTabbableElement(z){if(this._checker.isFocusable(z)&&this._checker.isTabbable(z))return z;const W=z.children;for(let fe=0;fe=0;fe--){const Oe=W[fe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(W[fe]):null;if(Oe)return Oe}return null}_createAnchor(){const z=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,z),z.classList.add("cdk-visually-hidden"),z.classList.add("cdk-focus-trap-anchor"),z.setAttribute("aria-hidden","true"),z}_toggleAnchorTabIndex(z,W){z?W.setAttribute("tabindex","0"):W.removeAttribute("tabindex")}toggleAnchors(z){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(z,this._startAnchor),this._toggleAnchorTabIndex(z,this._endAnchor))}_executeOnStable(z){this._ngZone.isStable?z():this._ngZone.onStable.pipe((0,ee.q)(1)).subscribe(z)}}let je=(()=>{class U{constructor(W,fe,Oe){this._checker=W,this._ngZone=fe,this._document=Oe}create(W,fe=!1){return new Z(W,this._checker,this._ngZone,this._document,fe)}}return U.\u0275fac=function(W){return new(W||U)(o.LFG(gt),o.LFG(o.R0b),o.LFG(l.K0))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();function lt(U){return 0===U.buttons||0===U.offsetX&&0===U.offsetY}function Re(U){const z=U.touches&&U.touches[0]||U.changedTouches&&U.changedTouches[0];return!(!z||-1!==z.identifier||null!=z.radiusX&&1!==z.radiusX||null!=z.radiusY&&1!==z.radiusY)}const E=new o.OlP("cdk-input-modality-detector-options"),S={ignoreKeys:[Ee.zL,Ee.jx,Ee.b2,Ee.MW,Ee.JU]},P=(0,m.i$)({passive:!0,capture:!0});let N=(()=>{class U{constructor(W,fe,Oe,at){this._platform=W,this._mostRecentTarget=null,this._modality=new Q.X(null),this._lastTouchMs=0,this._onKeydown=Tt=>{var qt,Zt;(null===(Zt=null===(qt=this._options)||void 0===qt?void 0:qt.ignoreKeys)||void 0===Zt?void 0:Zt.some(Mt=>Mt===Tt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.sA)(Tt))},this._onMousedown=Tt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(lt(Tt)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.sA)(Tt))},this._onTouchstart=Tt=>{Re(Tt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.sA)(Tt))},this._options=Object.assign(Object.assign({},S),at),this.modalityDetected=this._modality.pipe((0,le.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Fe.x)()),W.isBrowser&&fe.runOutsideAngular(()=>{Oe.addEventListener("keydown",this._onKeydown,P),Oe.addEventListener("mousedown",this._onMousedown,P),Oe.addEventListener("touchstart",this._onTouchstart,P)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return U.\u0275fac=function(W){return new(W||U)(o.LFG(m.t4),o.LFG(o.R0b),o.LFG(l.K0),o.LFG(E,8))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const oe=new o.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ce(){return null}}),He=new o.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ge=(()=>{class U{constructor(W,fe,Oe,at){this._ngZone=fe,this._defaultOptions=at,this._document=Oe,this._liveElement=W||this._createLiveElement()}announce(W,...fe){const Oe=this._defaultOptions;let at,Tt;return 1===fe.length&&"number"==typeof fe[0]?Tt=fe[0]:[at,Tt]=fe,this.clear(),clearTimeout(this._previousTimeout),at||(at=Oe&&Oe.politeness?Oe.politeness:"polite"),null==Tt&&Oe&&(Tt=Oe.duration),this._liveElement.setAttribute("aria-live",at),this._ngZone.runOutsideAngular(()=>new Promise(qt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=W,qt(),"number"==typeof Tt&&(this._previousTimeout=setTimeout(()=>this.clear(),Tt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var W;clearTimeout(this._previousTimeout),null===(W=this._liveElement)||void 0===W||W.remove(),this._liveElement=null}_createLiveElement(){const W="cdk-live-announcer-element",fe=this._document.getElementsByClassName(W),Oe=this._document.createElement("div");for(let at=0;at{class U{constructor(W,fe,Oe,at,Tt){this._ngZone=W,this._platform=fe,this._inputModalityDetector=Oe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new K.x,this._rootNodeFocusAndBlurListener=qt=>{const Zt=(0,m.sA)(qt),Mt="focus"===qt.type?this._onFocus:this._onBlur;for(let kn=Zt;kn;kn=kn.parentElement)Mt.call(this,qt,kn)},this._document=at,this._detectionMode=(null==Tt?void 0:Tt.detectionMode)||0}monitor(W,fe=!1){const Oe=(0,q.fI)(W);if(!this._platform.isBrowser||1!==Oe.nodeType)return(0,Me.of)(null);const at=(0,m.kV)(Oe)||this._getDocument(),Tt=this._elementInfo.get(Oe);if(Tt)return fe&&(Tt.checkChildren=!0),Tt.subject;const qt={checkChildren:fe,subject:new K.x,rootNode:at};return this._elementInfo.set(Oe,qt),this._registerGlobalListeners(qt),qt.subject}stopMonitoring(W){const fe=(0,q.fI)(W),Oe=this._elementInfo.get(fe);Oe&&(Oe.subject.complete(),this._setClasses(fe),this._elementInfo.delete(fe),this._removeGlobalListeners(Oe))}focusVia(W,fe,Oe){const at=(0,q.fI)(W);at===this._getDocument().activeElement?this._getClosestElementsInfo(at).forEach(([qt,Zt])=>this._originChanged(qt,fe,Zt)):(this._setOrigin(fe),"function"==typeof at.focus&&at.focus(Oe))}ngOnDestroy(){this._elementInfo.forEach((W,fe)=>this.stopMonitoring(fe))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(W){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(W)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(W){return 1===this._detectionMode||!!(null==W?void 0:W.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(W,fe){W.classList.toggle("cdk-focused",!!fe),W.classList.toggle("cdk-touch-focused","touch"===fe),W.classList.toggle("cdk-keyboard-focused","keyboard"===fe),W.classList.toggle("cdk-mouse-focused","mouse"===fe),W.classList.toggle("cdk-program-focused","program"===fe)}_setOrigin(W,fe=!1){this._ngZone.runOutsideAngular(()=>{this._origin=W,this._originFromTouchInteraction="touch"===W&&fe,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(W,fe){const Oe=this._elementInfo.get(fe),at=(0,m.sA)(W);!Oe||!Oe.checkChildren&&fe!==at||this._originChanged(fe,this._getFocusOrigin(at),Oe)}_onBlur(W,fe){const Oe=this._elementInfo.get(fe);!Oe||Oe.checkChildren&&W.relatedTarget instanceof Node&&fe.contains(W.relatedTarget)||(this._setClasses(fe),this._emitOrigin(Oe.subject,null))}_emitOrigin(W,fe){this._ngZone.run(()=>W.next(fe))}_registerGlobalListeners(W){if(!this._platform.isBrowser)return;const fe=W.rootNode,Oe=this._rootNodeFocusListenerCount.get(fe)||0;Oe||this._ngZone.runOutsideAngular(()=>{fe.addEventListener("focus",this._rootNodeFocusAndBlurListener,It),fe.addEventListener("blur",this._rootNodeFocusAndBlurListener,It)}),this._rootNodeFocusListenerCount.set(fe,Oe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Ve.R)(this._stopInputModalityDetector)).subscribe(at=>{this._setOrigin(at,!0)}))}_removeGlobalListeners(W){const fe=W.rootNode;if(this._rootNodeFocusListenerCount.has(fe)){const Oe=this._rootNodeFocusListenerCount.get(fe);Oe>1?this._rootNodeFocusListenerCount.set(fe,Oe-1):(fe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,It),fe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,It),this._rootNodeFocusListenerCount.delete(fe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(W,fe,Oe){this._setClasses(W,fe),this._emitOrigin(Oe.subject,fe),this._lastFocusOrigin=fe}_getClosestElementsInfo(W){const fe=[];return this._elementInfo.forEach((Oe,at)=>{(at===W||Oe.checkChildren&&at.contains(W))&&fe.push([at,Oe])}),fe}}return U.\u0275fac=function(W){return new(W||U)(o.LFG(o.R0b),o.LFG(m.t4),o.LFG(N),o.LFG(l.K0,8),o.LFG(ut,8))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const hn="cdk-high-contrast-black-on-white",ht="cdk-high-contrast-white-on-black",vt="cdk-high-contrast-active";let Ne=(()=>{class U{constructor(W,fe){this._platform=W,this._document=fe}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const W=this._document.createElement("div");W.style.backgroundColor="rgb(1,2,3)",W.style.position="absolute",this._document.body.appendChild(W);const fe=this._document.defaultView||window,Oe=fe&&fe.getComputedStyle?fe.getComputedStyle(W):null,at=(Oe&&Oe.backgroundColor||"").replace(/ /g,"");switch(W.remove(),at){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const W=this._document.body.classList;W.remove(vt),W.remove(hn),W.remove(ht),this._hasCheckedHighContrastMode=!0;const fe=this.getHighContrastMode();1===fe?(W.add(vt),W.add(hn)):2===fe&&(W.add(vt),W.add(ht))}}}return U.\u0275fac=function(W){return new(W||U)(o.LFG(m.t4),o.LFG(l.K0))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Ae=(()=>{class U{constructor(W){W._applyBodyHighContrastModeCssClasses()}}return U.\u0275fac=function(W){return new(W||U)(o.LFG(Ne))},U.\u0275mod=o.oAB({type:U}),U.\u0275inj=o.cJS({imports:[[tt.Q8]]}),U})()},226:(Ye,be,C)=>{C.d(be,{vT:()=>de,Is:()=>Me});var l=C(4893),o=C(9808);const m=new l.OlP("cdk-dir-doc",{providedIn:"root",factory:function K(){return(0,l.f3M)(o.K0)}}),ue=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Me=(()=>{class ne{constructor(he){if(this.value="ltr",this.change=new l.vpe,he){const le=he.documentElement?he.documentElement.dir:null;this.value=function Q(ne){const se=(null==ne?void 0:ne.toLowerCase())||"";return"auto"===se&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ue.test(navigator.language)?"rtl":"ltr":"rtl"===se?"rtl":"ltr"}((he.body?he.body.dir:null)||le||"ltr")}}ngOnDestroy(){this.change.complete()}}return ne.\u0275fac=function(he){return new(he||ne)(l.LFG(m,8))},ne.\u0275prov=l.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),de=(()=>{class ne{}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275mod=l.oAB({type:ne}),ne.\u0275inj=l.cJS({}),ne})()},3191:(Ye,be,C)=>{C.d(be,{Eq:()=>ue,Ig:()=>o,HM:()=>Q,fI:()=>Me,su:()=>m});var l=C(4893);function o(de){return null!=de&&"false"!=`${de}`}function m(de,ne=0){return function K(de){return!isNaN(parseFloat(de))&&!isNaN(Number(de))}(de)?Number(de):ne}function ue(de){return Array.isArray(de)?de:[de]}function Q(de){return null==de?"":"string"==typeof de?de:`${de}px`}function Me(de){return de instanceof l.SBq?de.nativeElement:de}},449:(Ye,be,C)=>{C.d(be,{Ov:()=>Ee,A8:()=>ne});var l=C(7579),o=C(4893);class Ee{constructor(ee=!1,le,Fe=!0){this._multiple=ee,this._emitChanges=Fe,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new l.x,le&&le.length&&(ee?le.forEach(Ve=>this._markSelected(Ve)):this._markSelected(le[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ee){this._verifyValueAssignment(ee),ee.forEach(le=>this._markSelected(le)),this._emitChangeEvent()}deselect(...ee){this._verifyValueAssignment(ee),ee.forEach(le=>this._unmarkSelected(le)),this._emitChangeEvent()}toggle(ee){this.isSelected(ee)?this.deselect(ee):this.select(ee)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(ee){return this._selection.has(ee)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ee){this._multiple&&this.selected&&this._selected.sort(ee)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(ee){this.isSelected(ee)||(this._multiple||this._unmarkAll(),this._selection.add(ee),this._emitChanges&&this._selectedToEmit.push(ee))}_unmarkSelected(ee){this.isSelected(ee)&&(this._selection.delete(ee),this._emitChanges&&this._deselectedToEmit.push(ee))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ee=>this._unmarkSelected(ee))}_verifyValueAssignment(ee){}}let ne=(()=>{class he{constructor(){this._listeners=[]}notify(le,Fe){for(let Ve of this._listeners)Ve(le,Fe)}listen(le){return this._listeners.push(le),()=>{this._listeners=this._listeners.filter(Fe=>le!==Fe)}}ngOnDestroy(){this._listeners=[]}}return he.\u0275fac=function(le){return new(le||he)},he.\u0275prov=o.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})()},1159:(Ye,be,C)=>{C.d(be,{A:()=>Rt,zL:()=>Ee,jx:()=>Me,JH:()=>Qe,uR:()=>Fe,K5:()=>ue,hY:()=>se,Sd:()=>Ve,oh:()=>q,b2:()=>Xn,MW:()=>Ge,aO:()=>gt,SV:()=>Ze,JU:()=>Q,L_:()=>he,Mf:()=>m,LH:()=>tt,Z:()=>He,xE:()=>xe,Vb:()=>Ii});const m=9,ue=13,Q=16,Me=17,Ee=18,se=27,he=32,Fe=35,Ve=36,q=37,tt=38,Ze=39,Qe=40,xe=48,gt=57,Rt=65,He=90,Ge=91,Xn=224;function Ii($n,...vn){return vn.length?vn.some(hi=>$n[hi]):$n.altKey||$n.shiftKey||$n.ctrlKey||$n.metaKey}},7144:(Ye,be,C)=>{C.d(be,{wD:()=>Ee,Q8:()=>de});var l=C(3191),o=C(4893),m=C(8306),K=C(7579),ue=C(8372);let Q=(()=>{class ne{create(he){return"undefined"==typeof MutationObserver?null:new MutationObserver(he)}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275prov=o.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Me=(()=>{class ne{constructor(he){this._mutationObserverFactory=he,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((he,ee)=>this._cleanupObserver(ee))}observe(he){const ee=(0,l.fI)(he);return new m.y(le=>{const Ve=this._observeElement(ee).subscribe(le);return()=>{Ve.unsubscribe(),this._unobserveElement(ee)}})}_observeElement(he){if(this._observedElements.has(he))this._observedElements.get(he).count++;else{const ee=new K.x,le=this._mutationObserverFactory.create(Fe=>ee.next(Fe));le&&le.observe(he,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(he,{observer:le,stream:ee,count:1})}return this._observedElements.get(he).stream}_unobserveElement(he){this._observedElements.has(he)&&(this._observedElements.get(he).count--,this._observedElements.get(he).count||this._cleanupObserver(he))}_cleanupObserver(he){if(this._observedElements.has(he)){const{observer:ee,stream:le}=this._observedElements.get(he);ee&&ee.disconnect(),le.complete(),this._observedElements.delete(he)}}}return ne.\u0275fac=function(he){return new(he||ne)(o.LFG(Q))},ne.\u0275prov=o.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Ee=(()=>{class ne{constructor(he,ee,le){this._contentObserver=he,this._elementRef=ee,this._ngZone=le,this.event=new o.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(he){this._disabled=(0,l.Ig)(he),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(he){this._debounce=(0,l.su)(he),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const he=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?he.pipe((0,ue.b)(this.debounce)):he).subscribe(this.event)})}_unsubscribe(){var he;null===(he=this._currentSubscription)||void 0===he||he.unsubscribe()}}return ne.\u0275fac=function(he){return new(he||ne)(o.Y36(Me),o.Y36(o.SBq),o.Y36(o.R0b))},ne.\u0275dir=o.lG2({type:ne,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),ne})(),de=(()=>{class ne{}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275mod=o.oAB({type:ne}),ne.\u0275inj=o.cJS({providers:[Q]}),ne})()},9776:(Ye,be,C)=>{C.d(be,{pI:()=>Ot,xu:()=>ct,aV:()=>Z,X_:()=>Be,Xj:()=>Et,U8:()=>Bt});var l=C(495),o=C(9808),m=C(4893),K=C(3191),ue=C(925),Q=C(226),Me=C(7429),Ee=C(7579),de=C(727),ne=C(6451),se=C(4482),he=C(5403),le=C(5698),Fe=C(2722),Ve=C(1159);const q=(0,ue.Mq)();class tt{constructor(E,S){this._viewportRuler=E,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=S}attach(){}enable(){if(this._canBeEnabled()){const E=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=E.style.left||"",this._previousHTMLStyles.top=E.style.top||"",E.style.left=(0,K.HM)(-this._previousScrollPosition.left),E.style.top=(0,K.HM)(-this._previousScrollPosition.top),E.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const E=this._document.documentElement,D=E.style,P=this._document.body.style,N=D.scrollBehavior||"",oe=P.scrollBehavior||"";this._isEnabled=!1,D.left=this._previousHTMLStyles.left,D.top=this._previousHTMLStyles.top,E.classList.remove("cdk-global-scrollblock"),q&&(D.scrollBehavior=P.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),q&&(D.scrollBehavior=N,P.scrollBehavior=oe)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const S=this._document.body,D=this._viewportRuler.getViewportSize();return S.scrollHeight>D.height||S.scrollWidth>D.width}}class Qe{constructor(E,S,D,P){this._scrollDispatcher=E,this._ngZone=S,this._viewportRuler=D,this._config=P,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(E){this._overlayRef=E}enable(){if(this._scrollSubscription)return;const E=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=E.subscribe(()=>{const S=this._viewportRuler.getViewportScrollPosition().top;Math.abs(S-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=E.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ge{enable(){}disable(){}attach(){}}function G(Re,E){return E.some(S=>Re.bottomS.bottom||Re.rightS.right)}function J(Re,E){return E.some(S=>Re.topS.bottom||Re.leftS.right)}class me{constructor(E,S,D,P){this._scrollDispatcher=E,this._viewportRuler=S,this._ngZone=D,this._config=P,this._scrollSubscription=null}attach(E){this._overlayRef=E}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const S=this._overlayRef.overlayElement.getBoundingClientRect(),{width:D,height:P}=this._viewportRuler.getViewportSize();G(S,[{width:D,height:P,bottom:P,right:D,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let xe=(()=>{class Re{constructor(S,D,P,N){this._scrollDispatcher=S,this._viewportRuler=D,this._ngZone=P,this.noop=()=>new ge,this.close=oe=>new Qe(this._scrollDispatcher,this._ngZone,this._viewportRuler,oe),this.block=()=>new tt(this._viewportRuler,this._document),this.reposition=oe=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,oe),this._document=N}}return Re.\u0275fac=function(S){return new(S||Re)(m.LFG(l.mF),m.LFG(l.rL),m.LFG(m.R0b),m.LFG(o.K0))},Re.\u0275prov=m.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();class Be{constructor(E){if(this.scrollStrategy=new ge,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,E){const S=Object.keys(E);for(const D of S)void 0!==E[D]&&(this[D]=E[D])}}}class Se{constructor(E,S){this.connectionPair=E,this.scrollableViewProperties=S}}class Le{constructor(E,S,D,P,N,oe,Ce,He,Ge){this._portalOutlet=E,this._host=S,this._pane=D,this._config=P,this._ngZone=N,this._keyboardDispatcher=oe,this._document=Ce,this._location=He,this._outsideClickDispatcher=Ge,this._backdropElement=null,this._backdropClick=new Ee.x,this._attachments=new Ee.x,this._detachments=new Ee.x,this._locationChanges=de.w0.EMPTY,this._backdropClickHandler=_t=>this._backdropClick.next(_t),this._keydownEvents=new Ee.x,this._outsidePointerEvents=new Ee.x,P.scrollStrategy&&(this._scrollStrategy=P.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=P.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(E){let S=this._portalOutlet.attach(E);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),S}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const E=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),E}dispose(){var E;const S=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(E=this._host)||void 0===E||E.remove(),this._previousHostParent=this._pane=this._host=null,S&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(E){E!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=E,this.hasAttached()&&(E.attach(this),this.updatePosition()))}updateSize(E){this._config=Object.assign(Object.assign({},this._config),E),this._updateElementSize()}setDirection(E){this._config=Object.assign(Object.assign({},this._config),{direction:E}),this._updateElementDirection()}addPanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!0)}removePanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!1)}getDirection(){const E=this._config.direction;return E?"string"==typeof E?E:E.value:"ltr"}updateScrollStrategy(E){E!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=E,this.hasAttached()&&(E.attach(this),E.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const E=this._pane.style;E.width=(0,K.HM)(this._config.width),E.height=(0,K.HM)(this._config.height),E.minWidth=(0,K.HM)(this._config.minWidth),E.minHeight=(0,K.HM)(this._config.minHeight),E.maxWidth=(0,K.HM)(this._config.maxWidth),E.maxHeight=(0,K.HM)(this._config.maxHeight)}_togglePointerEvents(E){this._pane.style.pointerEvents=E?"":"none"}_attachBackdrop(){const E="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(E)})}):this._backdropElement.classList.add(E)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const E=this._backdropElement;if(!E)return;let S;const D=()=>{E&&(E.removeEventListener("click",this._backdropClickHandler),E.removeEventListener("transitionend",D),this._disposeBackdrop(E)),this._config.backdropClass&&this._toggleClasses(E,this._config.backdropClass,!1),clearTimeout(S)};E.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{E.addEventListener("transitionend",D)}),E.style.pointerEvents="none",S=this._ngZone.runOutsideAngular(()=>setTimeout(D,500))}_toggleClasses(E,S,D){const P=(0,K.Eq)(S||[]).filter(N=>!!N);P.length&&(D?E.classList.add(...P):E.classList.remove(...P))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const E=this._ngZone.onStable.pipe((0,Fe.R)((0,ne.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),E.unsubscribe())})})}_disposeScrollStrategy(){const E=this._scrollStrategy;E&&(E.disable(),E.detach&&E.detach())}_disposeBackdrop(E){E&&(E.remove(),this._backdropElement===E&&(this._backdropElement=null))}}let Et=(()=>{class Re{constructor(S,D){this._platform=D,this._document=S}ngOnDestroy(){var S;null===(S=this._containerElement)||void 0===S||S.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const S="cdk-overlay-container";if(this._platform.isBrowser||(0,ue.Oy)()){const P=this._document.querySelectorAll(`.${S}[platform="server"], .${S}[platform="test"]`);for(let N=0;N{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const E=this._originRect,S=this._overlayRect,D=this._viewportRect,P=this._containerRect,N=[];let oe;for(let Ce of this._preferredPositions){let He=this._getOriginPoint(E,P,Ce),Ge=this._getOverlayPoint(He,S,Ce),_t=this._getOverlayFit(Ge,S,D,Ce);if(_t.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ce,He);this._canFitWithFlexibleDimensions(_t,Ge,D)?N.push({position:Ce,origin:He,overlayRect:S,boundingBoxRect:this._calculateBoundingBoxRect(He,Ce)}):(!oe||oe.overlayFit.visibleArea<_t.visibleArea)&&(oe={overlayFit:_t,overlayPoint:Ge,originPoint:He,position:Ce,overlayRect:S})}if(N.length){let Ce=null,He=-1;for(const Ge of N){const _t=Ge.boundingBoxRect.width*Ge.boundingBoxRect.height*(Ge.position.weight||1);_t>He&&(He=_t,Ce=Ge)}return this._isPushed=!1,void this._applyPosition(Ce.position,Ce.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(oe.position,oe.originPoint);this._applyPosition(oe.position,oe.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&kt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(gt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const E=this._lastPosition;if(E){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const S=this._getOriginPoint(this._originRect,this._containerRect,E);this._applyPosition(E,S)}else this.apply()}withScrollableContainers(E){return this._scrollables=E,this}withPositions(E){return this._preferredPositions=E,-1===E.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(E){return this._viewportMargin=E,this}withFlexibleDimensions(E=!0){return this._hasFlexibleDimensions=E,this}withGrowAfterOpen(E=!0){return this._growAfterOpen=E,this}withPush(E=!0){return this._canPush=E,this}withLockedPosition(E=!0){return this._positionLocked=E,this}setOrigin(E){return this._origin=E,this}withDefaultOffsetX(E){return this._offsetX=E,this}withDefaultOffsetY(E){return this._offsetY=E,this}withTransformOriginOn(E){return this._transformOriginSelector=E,this}_getOriginPoint(E,S,D){let P,N;if("center"==D.originX)P=E.left+E.width/2;else{const oe=this._isRtl()?E.right:E.left,Ce=this._isRtl()?E.left:E.right;P="start"==D.originX?oe:Ce}return S.left<0&&(P-=S.left),N="center"==D.originY?E.top+E.height/2:"top"==D.originY?E.top:E.bottom,S.top<0&&(N-=S.top),{x:P,y:N}}_getOverlayPoint(E,S,D){let P,N;return P="center"==D.overlayX?-S.width/2:"start"===D.overlayX?this._isRtl()?-S.width:0:this._isRtl()?0:-S.width,N="center"==D.overlayY?-S.height/2:"top"==D.overlayY?0:-S.height,{x:E.x+P,y:E.y+N}}_getOverlayFit(E,S,D,P){const N=Rt(S);let{x:oe,y:Ce}=E,He=this._getOffset(P,"x"),Ge=this._getOffset(P,"y");He&&(oe+=He),Ge&&(Ce+=Ge);let It=0-Ce,rn=Ce+N.height-D.height,Kt=this._subtractOverflows(N.width,0-oe,oe+N.width-D.width),hn=this._subtractOverflows(N.height,It,rn),ht=Kt*hn;return{visibleArea:ht,isCompletelyWithinViewport:N.width*N.height===ht,fitsInViewportVertically:hn===N.height,fitsInViewportHorizontally:Kt==N.width}}_canFitWithFlexibleDimensions(E,S,D){if(this._hasFlexibleDimensions){const P=D.bottom-S.y,N=D.right-S.x,oe=Yt(this._overlayRef.getConfig().minHeight),Ce=Yt(this._overlayRef.getConfig().minWidth),Ge=E.fitsInViewportHorizontally||null!=Ce&&Ce<=N;return(E.fitsInViewportVertically||null!=oe&&oe<=P)&&Ge}return!1}_pushOverlayOnScreen(E,S,D){if(this._previousPushAmount&&this._positionLocked)return{x:E.x+this._previousPushAmount.x,y:E.y+this._previousPushAmount.y};const P=Rt(S),N=this._viewportRect,oe=Math.max(E.x+P.width-N.width,0),Ce=Math.max(E.y+P.height-N.height,0),He=Math.max(N.top-D.top-E.y,0),Ge=Math.max(N.left-D.left-E.x,0);let _t=0,ut=0;return _t=P.width<=N.width?Ge||-oe:E.xKt&&!this._isInitialRender&&!this._growAfterOpen&&(oe=E.y-Kt/2)}if("end"===S.overlayX&&!P||"start"===S.overlayX&&P)It=D.width-E.x+this._viewportMargin,_t=E.x-this._viewportMargin;else if("start"===S.overlayX&&!P||"end"===S.overlayX&&P)ut=E.x,_t=D.right-E.x;else{const rn=Math.min(D.right-E.x+D.left,E.x),Kt=this._lastBoundingBoxSize.width;_t=2*rn,ut=E.x-rn,_t>Kt&&!this._isInitialRender&&!this._growAfterOpen&&(ut=E.x-Kt/2)}return{top:oe,left:ut,bottom:Ce,right:It,width:_t,height:N}}_setBoundingBoxStyles(E,S){const D=this._calculateBoundingBoxRect(E,S);!this._isInitialRender&&!this._growAfterOpen&&(D.height=Math.min(D.height,this._lastBoundingBoxSize.height),D.width=Math.min(D.width,this._lastBoundingBoxSize.width));const P={};if(this._hasExactPosition())P.top=P.left="0",P.bottom=P.right=P.maxHeight=P.maxWidth="",P.width=P.height="100%";else{const N=this._overlayRef.getConfig().maxHeight,oe=this._overlayRef.getConfig().maxWidth;P.height=(0,K.HM)(D.height),P.top=(0,K.HM)(D.top),P.bottom=(0,K.HM)(D.bottom),P.width=(0,K.HM)(D.width),P.left=(0,K.HM)(D.left),P.right=(0,K.HM)(D.right),P.alignItems="center"===S.overlayX?"center":"end"===S.overlayX?"flex-end":"flex-start",P.justifyContent="center"===S.overlayY?"center":"bottom"===S.overlayY?"flex-end":"flex-start",N&&(P.maxHeight=(0,K.HM)(N)),oe&&(P.maxWidth=(0,K.HM)(oe))}this._lastBoundingBoxSize=D,kt(this._boundingBox.style,P)}_resetBoundingBoxStyles(){kt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){kt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(E,S){const D={},P=this._hasExactPosition(),N=this._hasFlexibleDimensions,oe=this._overlayRef.getConfig();if(P){const _t=this._viewportRuler.getViewportScrollPosition();kt(D,this._getExactOverlayY(S,E,_t)),kt(D,this._getExactOverlayX(S,E,_t))}else D.position="static";let Ce="",He=this._getOffset(S,"x"),Ge=this._getOffset(S,"y");He&&(Ce+=`translateX(${He}px) `),Ge&&(Ce+=`translateY(${Ge}px)`),D.transform=Ce.trim(),oe.maxHeight&&(P?D.maxHeight=(0,K.HM)(oe.maxHeight):N&&(D.maxHeight="")),oe.maxWidth&&(P?D.maxWidth=(0,K.HM)(oe.maxWidth):N&&(D.maxWidth="")),kt(this._pane.style,D)}_getExactOverlayY(E,S,D){let P={top:"",bottom:""},N=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(N=this._pushOverlayOnScreen(N,this._overlayRect,D)),"bottom"===E.overlayY?P.bottom=this._document.documentElement.clientHeight-(N.y+this._overlayRect.height)+"px":P.top=(0,K.HM)(N.y),P}_getExactOverlayX(E,S,D){let oe,P={left:"",right:""},N=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(N=this._pushOverlayOnScreen(N,this._overlayRect,D)),oe=this._isRtl()?"end"===E.overlayX?"left":"right":"end"===E.overlayX?"right":"left","right"===oe?P.right=this._document.documentElement.clientWidth-(N.x+this._overlayRect.width)+"px":P.left=(0,K.HM)(N.x),P}_getScrollVisibility(){const E=this._getOriginRect(),S=this._pane.getBoundingClientRect(),D=this._scrollables.map(P=>P.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:J(E,D),isOriginOutsideView:G(E,D),isOverlayClipped:J(S,D),isOverlayOutsideView:G(S,D)}}_subtractOverflows(E,...S){return S.reduce((D,P)=>D-Math.max(P,0),E)}_getNarrowedViewportRect(){const E=this._document.documentElement.clientWidth,S=this._document.documentElement.clientHeight,D=this._viewportRuler.getViewportScrollPosition();return{top:D.top+this._viewportMargin,left:D.left+this._viewportMargin,right:D.left+E-this._viewportMargin,bottom:D.top+S-this._viewportMargin,width:E-2*this._viewportMargin,height:S-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(E,S){return"x"===S?null==E.offsetX?this._offsetX:E.offsetX:null==E.offsetY?this._offsetY:E.offsetY}_validatePositions(){}_addPanelClasses(E){this._pane&&(0,K.Eq)(E).forEach(S=>{""!==S&&-1===this._appliedPanelClasses.indexOf(S)&&(this._appliedPanelClasses.push(S),this._pane.classList.add(S))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(E=>{this._pane.classList.remove(E)}),this._appliedPanelClasses=[])}_getOriginRect(){const E=this._origin;if(E instanceof m.SBq)return E.nativeElement.getBoundingClientRect();if(E instanceof Element)return E.getBoundingClientRect();const S=E.width||0,D=E.height||0;return{top:E.y,bottom:E.y+D,left:E.x,right:E.x+S,height:D,width:S}}}function kt(Re,E){for(let S in E)E.hasOwnProperty(S)&&(Re[S]=E[S]);return Re}function Yt(Re){if("number"!=typeof Re&&null!=Re){const[E,S]=Re.split(Xt);return S&&"px"!==S?null:parseFloat(E)}return Re||null}function Rt(Re){return{top:Math.floor(Re.top),right:Math.floor(Re.right),bottom:Math.floor(Re.bottom),left:Math.floor(Re.left),width:Math.floor(Re.width),height:Math.floor(Re.height)}}const gn="cdk-global-overlay-wrapper";class Ht{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(E){const S=E.getConfig();this._overlayRef=E,this._width&&!S.width&&E.updateSize({width:this._width}),this._height&&!S.height&&E.updateSize({height:this._height}),E.hostElement.classList.add(gn),this._isDisposed=!1}top(E=""){return this._bottomOffset="",this._topOffset=E,this._alignItems="flex-start",this}left(E=""){return this._rightOffset="",this._leftOffset=E,this._justifyContent="flex-start",this}bottom(E=""){return this._topOffset="",this._bottomOffset=E,this._alignItems="flex-end",this}right(E=""){return this._leftOffset="",this._rightOffset=E,this._justifyContent="flex-end",this}width(E=""){return this._overlayRef?this._overlayRef.updateSize({width:E}):this._width=E,this}height(E=""){return this._overlayRef?this._overlayRef.updateSize({height:E}):this._height=E,this}centerHorizontally(E=""){return this.left(E),this._justifyContent="center",this}centerVertically(E=""){return this.top(E),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement.style,D=this._overlayRef.getConfig(),{width:P,height:N,maxWidth:oe,maxHeight:Ce}=D,He=!("100%"!==P&&"100vw"!==P||oe&&"100%"!==oe&&"100vw"!==oe),Ge=!("100%"!==N&&"100vh"!==N||Ce&&"100%"!==Ce&&"100vh"!==Ce);E.position=this._cssPosition,E.marginLeft=He?"0":this._leftOffset,E.marginTop=Ge?"0":this._topOffset,E.marginBottom=this._bottomOffset,E.marginRight=this._rightOffset,He?S.justifyContent="flex-start":"center"===this._justifyContent?S.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?S.justifyContent="flex-end":"flex-end"===this._justifyContent&&(S.justifyContent="flex-start"):S.justifyContent=this._justifyContent,S.alignItems=Ge?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement,D=S.style;S.classList.remove(gn),D.justifyContent=D.alignItems=E.marginTop=E.marginBottom=E.marginLeft=E.marginRight=E.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class Re{constructor(S,D,P,N){this._viewportRuler=S,this._document=D,this._platform=P,this._overlayContainer=N}global(){return new Ht}flexibleConnectedTo(S){return new bt(S,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Re.\u0275fac=function(S){return new(S||Re)(m.LFG(l.rL),m.LFG(o.K0),m.LFG(ue.t4),m.LFG(Et))},Re.\u0275prov=m.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),sn=(()=>{class Re{constructor(S){this._attachedOverlays=[],this._document=S}ngOnDestroy(){this.detach()}add(S){this.remove(S),this._attachedOverlays.push(S)}remove(S){const D=this._attachedOverlays.indexOf(S);D>-1&&this._attachedOverlays.splice(D,1),0===this._attachedOverlays.length&&this.detach()}}return Re.\u0275fac=function(S){return new(S||Re)(m.LFG(o.K0))},Re.\u0275prov=m.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),et=(()=>{class Re extends sn{constructor(S,D){super(S),this._ngZone=D,this._keydownListener=P=>{const N=this._attachedOverlays;for(let oe=N.length-1;oe>-1;oe--)if(N[oe]._keydownEvents.observers.length>0){const Ce=N[oe]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ce.next(P)):Ce.next(P);break}}}add(S){super.add(S),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Re.\u0275fac=function(S){return new(S||Re)(m.LFG(o.K0),m.LFG(m.R0b,8))},Re.\u0275prov=m.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),ze=(()=>{class Re extends sn{constructor(S,D,P){super(S),this._platform=D,this._ngZone=P,this._cursorStyleIsSet=!1,this._pointerDownListener=N=>{this._pointerDownEventTarget=(0,ue.sA)(N)},this._clickListener=N=>{const oe=(0,ue.sA)(N),Ce="click"===N.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:oe;this._pointerDownEventTarget=null;const He=this._attachedOverlays.slice();for(let Ge=He.length-1;Ge>-1;Ge--){const _t=He[Ge];if(_t._outsidePointerEvents.observers.length<1||!_t.hasAttached())continue;if(_t.overlayElement.contains(oe)||_t.overlayElement.contains(Ce))break;const ut=_t._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ut.next(N)):ut.next(N)}}}add(S){if(super.add(S),!this._isAttached){const D=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(D)):this._addEventListeners(D),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=D.style.cursor,D.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const S=this._document.body;S.removeEventListener("pointerdown",this._pointerDownListener,!0),S.removeEventListener("click",this._clickListener,!0),S.removeEventListener("auxclick",this._clickListener,!0),S.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(S.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(S){S.addEventListener("pointerdown",this._pointerDownListener,!0),S.addEventListener("click",this._clickListener,!0),S.addEventListener("auxclick",this._clickListener,!0),S.addEventListener("contextmenu",this._clickListener,!0)}}return Re.\u0275fac=function(S){return new(S||Re)(m.LFG(o.K0),m.LFG(ue.t4),m.LFG(m.R0b,8))},Re.\u0275prov=m.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),X=0,Z=(()=>{class Re{constructor(S,D,P,N,oe,Ce,He,Ge,_t,ut,It){this.scrollStrategies=S,this._overlayContainer=D,this._componentFactoryResolver=P,this._positionBuilder=N,this._keyboardDispatcher=oe,this._injector=Ce,this._ngZone=He,this._document=Ge,this._directionality=_t,this._location=ut,this._outsideClickDispatcher=It}create(S){const D=this._createHostElement(),P=this._createPaneElement(D),N=this._createPortalOutlet(P),oe=new Be(S);return oe.direction=oe.direction||this._directionality.value,new Le(N,D,P,oe,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(S){const D=this._document.createElement("div");return D.id="cdk-overlay-"+X++,D.classList.add("cdk-overlay-pane"),S.appendChild(D),D}_createHostElement(){const S=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(S),S}_createPortalOutlet(S){return this._appRef||(this._appRef=this._injector.get(m.z2F)),new Me.u0(S,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Re.\u0275fac=function(S){return new(S||Re)(m.LFG(xe),m.LFG(Et),m.LFG(m._Vd),m.LFG(St),m.LFG(et),m.LFG(m.zs3),m.LFG(m.R0b),m.LFG(o.K0),m.LFG(Q.Is),m.LFG(o.Ye),m.LFG(ze))},Re.\u0275prov=m.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const je=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],$e=new m.OlP("cdk-connected-overlay-scroll-strategy");let ct=(()=>{class Re{constructor(S){this.elementRef=S}}return Re.\u0275fac=function(S){return new(S||Re)(m.Y36(m.SBq))},Re.\u0275dir=m.lG2({type:Re,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Re})(),Ot=(()=>{class Re{constructor(S,D,P,N,oe){this._overlay=S,this._dir=oe,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=de.w0.EMPTY,this._attachSubscription=de.w0.EMPTY,this._detachSubscription=de.w0.EMPTY,this._positionSubscription=de.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new m.vpe,this.positionChange=new m.vpe,this.attach=new m.vpe,this.detach=new m.vpe,this.overlayKeydown=new m.vpe,this.overlayOutsideClick=new m.vpe,this._templatePortal=new Me.UE(D,P),this._scrollStrategyFactory=N,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(S){this._offsetX=S,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(S){this._offsetY=S,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(S){this._hasBackdrop=(0,K.Ig)(S)}get lockPosition(){return this._lockPosition}set lockPosition(S){this._lockPosition=(0,K.Ig)(S)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(S){this._flexibleDimensions=(0,K.Ig)(S)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(S){this._growAfterOpen=(0,K.Ig)(S)}get push(){return this._push}set push(S){this._push=(0,K.Ig)(S)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(S){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),S.origin&&this.open&&this._position.apply()),S.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=je);const S=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=S.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=S.detachments().subscribe(()=>this.detach.emit()),S.keydownEvents().subscribe(D=>{this.overlayKeydown.next(D),D.keyCode===Ve.hY&&!this.disableClose&&!(0,Ve.Vb)(D)&&(D.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(D=>{this.overlayOutsideClick.next(D)})}_buildConfig(){const S=this._position=this.positionStrategy||this._createPositionStrategy(),D=new Be({direction:this._dir,positionStrategy:S,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(D.width=this.width),(this.height||0===this.height)&&(D.height=this.height),(this.minWidth||0===this.minWidth)&&(D.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(D.minHeight=this.minHeight),this.backdropClass&&(D.backdropClass=this.backdropClass),this.panelClass&&(D.panelClass=this.panelClass),D}_updatePositionStrategy(S){const D=this.positions.map(P=>({originX:P.originX,originY:P.originY,overlayX:P.overlayX,overlayY:P.overlayY,offsetX:P.offsetX||this.offsetX,offsetY:P.offsetY||this.offsetY,panelClass:P.panelClass||void 0}));return S.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(D).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const S=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(S),S}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ct?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(S=>{this.backdropClick.emit(S)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ee(Re,E=!1){return(0,se.e)((S,D)=>{let P=0;S.subscribe((0,he.x)(D,N=>{const oe=Re(N,P++);(oe||E)&&D.next(N),!oe&&D.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(S=>{this.positionChange.emit(S),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Re.\u0275fac=function(S){return new(S||Re)(m.Y36(Z),m.Y36(m.Rgc),m.Y36(m.s_b),m.Y36($e),m.Y36(Q.Is,8))},Re.\u0275dir=m.lG2({type:Re,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[m.TTD]}),Re})();const Ct={provide:$e,deps:[Z],useFactory:function jt(Re){return()=>Re.scrollStrategies.reposition()}};let Bt=(()=>{class Re{}return Re.\u0275fac=function(S){return new(S||Re)},Re.\u0275mod=m.oAB({type:Re}),Re.\u0275inj=m.cJS({providers:[Z,Ct],imports:[[Q.vT,Me.eL,l.Cl],l.Cl]}),Re})()},925:(Ye,be,C)=>{C.d(be,{t4:()=>K,sA:()=>Qe,ht:()=>Ze,kV:()=>tt,Oy:()=>ge,qK:()=>Ee,i$:()=>se,Mq:()=>le});var l=C(4893),o=C(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(G){m=!1}let Q,K=(()=>{class G{constructor(me){this._platformId=me,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!m)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return G.\u0275fac=function(me){return new(me||G)(l.LFG(l.Lbi))},G.\u0275prov=l.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})();const Me=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ee(){if(Q)return Q;if("object"!=typeof document||!document)return Q=new Set(Me),Q;let G=document.createElement("input");return Q=new Set(Me.filter(J=>(G.setAttribute("type",J),G.type===J))),Q}let de,ee,Ve;function se(G){return function ne(){if(null==de&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>de=!0}))}finally{de=de||!1}return de}()?G:!!G.capture}function le(){if(null==ee){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ee=!1,ee;if("scrollBehavior"in document.documentElement.style)ee=!0;else{const G=Element.prototype.scrollTo;ee=!!G&&!/\{\s*\[native code\]\s*\}/.test(G.toString())}}return ee}function tt(G){if(function q(){if(null==Ve){const G="undefined"!=typeof document?document.head:null;Ve=!(!G||!G.createShadowRoot&&!G.attachShadow)}return Ve}()){const J=G.getRootNode?G.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&J instanceof ShadowRoot)return J}return null}function Ze(){let G="undefined"!=typeof document&&document?document.activeElement:null;for(;G&&G.shadowRoot;){const J=G.shadowRoot.activeElement;if(J===G)break;G=J}return G}function Qe(G){return G.composedPath?G.composedPath()[0]:G.target}function ge(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ye,be,C)=>{C.d(be,{en:()=>ee,Pl:()=>Ze,C5:()=>ne,u0:()=>Fe,eL:()=>ge,UE:()=>se});var l=C(4893),o=C(9808);class de{attach(me){return this._attachedHost=me,me.attach(this)}detach(){let me=this._attachedHost;null!=me&&(this._attachedHost=null,me.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(me){this._attachedHost=me}}class ne extends de{constructor(me,xe,Be,ye){super(),this.component=me,this.viewContainerRef=xe,this.injector=Be,this.componentFactoryResolver=ye}}class se extends de{constructor(me,xe,Be){super(),this.templateRef=me,this.viewContainerRef=xe,this.context=Be}get origin(){return this.templateRef.elementRef}attach(me,xe=this.context){return this.context=xe,super.attach(me)}detach(){return this.context=void 0,super.detach()}}class he extends de{constructor(me){super(),this.element=me instanceof l.SBq?me.nativeElement:me}}class ee{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(me){return me instanceof ne?(this._attachedPortal=me,this.attachComponentPortal(me)):me instanceof se?(this._attachedPortal=me,this.attachTemplatePortal(me)):this.attachDomPortal&&me instanceof he?(this._attachedPortal=me,this.attachDomPortal(me)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(me){this._disposeFn=me}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fe extends ee{constructor(me,xe,Be,ye,we){super(),this.outletElement=me,this._componentFactoryResolver=xe,this._appRef=Be,this._defaultInjector=ye,this.attachDomPortal=Se=>{const Te=Se.element,nt=this._document.createComment("dom-portal");Te.parentNode.insertBefore(nt,Te),this.outletElement.appendChild(Te),this._attachedPortal=Se,super.setDisposeFn(()=>{nt.parentNode&&nt.parentNode.replaceChild(Te,nt)})},this._document=we}attachComponentPortal(me){const Be=(me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(me.component);let ye;return me.viewContainerRef?(ye=me.viewContainerRef.createComponent(Be,me.viewContainerRef.length,me.injector||me.viewContainerRef.injector),this.setDisposeFn(()=>ye.destroy())):(ye=Be.create(me.injector||this._defaultInjector),this._appRef.attachView(ye.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ye.hostView),ye.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ye)),this._attachedPortal=me,ye}attachTemplatePortal(me){let xe=me.viewContainerRef,Be=xe.createEmbeddedView(me.templateRef,me.context);return Be.rootNodes.forEach(ye=>this.outletElement.appendChild(ye)),Be.detectChanges(),this.setDisposeFn(()=>{let ye=xe.indexOf(Be);-1!==ye&&xe.remove(ye)}),this._attachedPortal=me,Be}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(me){return me.hostView.rootNodes[0]}}let Ze=(()=>{class J extends ee{constructor(xe,Be,ye){super(),this._componentFactoryResolver=xe,this._viewContainerRef=Be,this._isInitialized=!1,this.attached=new l.vpe,this.attachDomPortal=we=>{const Se=we.element,Te=this._document.createComment("dom-portal");we.setAttachedHost(this),Se.parentNode.insertBefore(Te,Se),this._getRootNode().appendChild(Se),this._attachedPortal=we,super.setDisposeFn(()=>{Te.parentNode&&Te.parentNode.replaceChild(Se,Te)})},this._document=ye}get portal(){return this._attachedPortal}set portal(xe){this.hasAttached()&&!xe&&!this._isInitialized||(this.hasAttached()&&super.detach(),xe&&super.attach(xe),this._attachedPortal=xe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(xe){xe.setAttachedHost(this);const Be=null!=xe.viewContainerRef?xe.viewContainerRef:this._viewContainerRef,we=(xe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(xe.component),Se=Be.createComponent(we,Be.length,xe.injector||Be.injector);return Be!==this._viewContainerRef&&this._getRootNode().appendChild(Se.hostView.rootNodes[0]),super.setDisposeFn(()=>Se.destroy()),this._attachedPortal=xe,this._attachedRef=Se,this.attached.emit(Se),Se}attachTemplatePortal(xe){xe.setAttachedHost(this);const Be=this._viewContainerRef.createEmbeddedView(xe.templateRef,xe.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=xe,this._attachedRef=Be,this.attached.emit(Be),Be}_getRootNode(){const xe=this._viewContainerRef.element.nativeElement;return xe.nodeType===xe.ELEMENT_NODE?xe:xe.parentNode}}return J.\u0275fac=function(xe){return new(xe||J)(l.Y36(l._Vd),l.Y36(l.s_b),l.Y36(o.K0))},J.\u0275dir=l.lG2({type:J,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[l.qOj]}),J})(),ge=(()=>{class J{}return J.\u0275fac=function(xe){return new(xe||J)},J.\u0275mod=l.oAB({type:J}),J.\u0275inj=l.cJS({}),J})()},495:(Ye,be,C)=>{C.d(be,{ZD:()=>sn,mF:()=>gt,Cl:()=>et,rL:()=>kt});var l=C(3191),o=C(4893),m=C(4408),K=C(727);const ue={schedule(ze){let X=requestAnimationFrame,Z=cancelAnimationFrame;const{delegate:je}=ue;je&&(X=je.requestAnimationFrame,Z=je.cancelAnimationFrame);const $e=X(ct=>{Z=void 0,ze(ct)});return new K.w0(()=>null==Z?void 0:Z($e))},requestAnimationFrame(...ze){const{delegate:X}=ue;return((null==X?void 0:X.requestAnimationFrame)||requestAnimationFrame)(...ze)},cancelAnimationFrame(...ze){const{delegate:X}=ue;return((null==X?void 0:X.cancelAnimationFrame)||cancelAnimationFrame)(...ze)},delegate:void 0};var Me=C(640);new class Ee extends Me.v{flush(X){this._active=!0;const Z=this._scheduled;this._scheduled=void 0;const{actions:je}=this;let $e;X=X||je.shift();do{if($e=X.execute(X.state,X.delay))break}while((X=je[0])&&X.id===Z&&je.shift());if(this._active=!1,$e){for(;(X=je[0])&&X.id===Z&&je.shift();)X.unsubscribe();throw $e}}}(class Q extends m.o{constructor(X,Z){super(X,Z),this.scheduler=X,this.work=Z}requestAsyncId(X,Z,je=0){return null!==je&&je>0?super.requestAsyncId(X,Z,je):(X.actions.push(this),X._scheduled||(X._scheduled=ue.requestAnimationFrame(()=>X.flush(void 0))))}recycleAsyncId(X,Z,je=0){if(null!=je&&je>0||null==je&&this.delay>0)return super.recycleAsyncId(X,Z,je);X.actions.some($e=>$e.id===Z)||(ue.cancelAnimationFrame(Z),X._scheduled=void 0)}});var se=C(7579),he=C(9646),ee=C(8306),le=C(4968),Ve=(C(3101),C(4986)),q=C(4482),tt=C(8421),Ze=C(5403),ge=C(5963);function G(ze,X=Ve.z){return function Qe(ze){return(0,q.e)((X,Z)=>{let je=!1,$e=null,ct=null,Ot=!1;const jt=()=>{if(null==ct||ct.unsubscribe(),ct=null,je){je=!1;const Bt=$e;$e=null,Z.next(Bt)}Ot&&Z.complete()},Ct=()=>{ct=null,Ot&&Z.complete()};X.subscribe((0,Ze.x)(Z,Bt=>{je=!0,$e=Bt,ct||(0,tt.Xf)(ze(Bt)).subscribe(ct=(0,Ze.x)(Z,jt,Ct))},()=>{Ot=!0,(!je||!ct||ct.closed)&&Z.complete()}))})}(()=>(0,ge.H)(ze,X))}var J=C(9300),me=C(9808),xe=C(925),Be=C(226);let gt=(()=>{class ze{constructor(Z,je,$e){this._ngZone=Z,this._platform=je,this._scrolled=new se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=$e}register(Z){this.scrollContainers.has(Z)||this.scrollContainers.set(Z,Z.elementScrolled().subscribe(()=>this._scrolled.next(Z)))}deregister(Z){const je=this.scrollContainers.get(Z);je&&(je.unsubscribe(),this.scrollContainers.delete(Z))}scrolled(Z=20){return this._platform.isBrowser?new ee.y(je=>{this._globalSubscription||this._addGlobalListener();const $e=Z>0?this._scrolled.pipe(G(Z)).subscribe(je):this._scrolled.subscribe(je);return this._scrolledCount++,()=>{$e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,he.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Z,je)=>this.deregister(je)),this._scrolled.complete()}ancestorScrolled(Z,je){const $e=this.getAncestorScrollContainers(Z);return this.scrolled(je).pipe((0,J.h)(ct=>!ct||$e.indexOf(ct)>-1))}getAncestorScrollContainers(Z){const je=[];return this.scrollContainers.forEach(($e,ct)=>{this._scrollableContainsElement(ct,Z)&&je.push(ct)}),je}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Z,je){let $e=(0,l.fI)(je),ct=Z.getElementRef().nativeElement;do{if($e==ct)return!0}while($e=$e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Z=this._getWindow();return(0,le.R)(Z.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ze.\u0275fac=function(Z){return new(Z||ze)(o.LFG(o.R0b),o.LFG(xe.t4),o.LFG(me.K0,8))},ze.\u0275prov=o.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),kt=(()=>{class ze{constructor(Z,je,$e){this._platform=Z,this._change=new se.x,this._changeListener=ct=>{this._change.next(ct)},this._document=$e,je.runOutsideAngular(()=>{if(Z.isBrowser){const ct=this._getWindow();ct.addEventListener("resize",this._changeListener),ct.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Z=this._getWindow();Z.removeEventListener("resize",this._changeListener),Z.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Z={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Z}getViewportRect(){const Z=this.getViewportScrollPosition(),{width:je,height:$e}=this.getViewportSize();return{top:Z.top,left:Z.left,bottom:Z.top+$e,right:Z.left+je,height:$e,width:je}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Z=this._document,je=this._getWindow(),$e=Z.documentElement,ct=$e.getBoundingClientRect();return{top:-ct.top||Z.body.scrollTop||je.scrollY||$e.scrollTop||0,left:-ct.left||Z.body.scrollLeft||je.scrollX||$e.scrollLeft||0}}change(Z=20){return Z>0?this._change.pipe(G(Z)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Z=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Z.innerWidth,height:Z.innerHeight}:{width:0,height:0}}}return ze.\u0275fac=function(Z){return new(Z||ze)(o.LFG(xe.t4),o.LFG(o.R0b),o.LFG(me.K0,8))},ze.\u0275prov=o.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),sn=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=o.oAB({type:ze}),ze.\u0275inj=o.cJS({}),ze})(),et=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=o.oAB({type:ze}),ze.\u0275inj=o.cJS({imports:[[Be.vT,sn],Be.vT,sn]}),ze})()},9808:(Ye,be,C)=>{C.d(be,{mr:()=>Ze,Ov:()=>fr,ez:()=>Br,K0:()=>Me,Do:()=>ge,V_:()=>ne,Ye:()=>G,S$:()=>q,mk:()=>nn,sg:()=>zt,O5:()=>Ii,RF:()=>Bn,n9:()=>ei,ED:()=>dn,b0:()=>Qe,lw:()=>Ee,EM:()=>xn,JF:()=>br,NF:()=>Ri,w_:()=>Q,bD:()=>Gi,q:()=>m,Mx:()=>ui,HT:()=>ue});var l=C(4893);let o=null;function m(){return o}function ue(A){o||(o=A)}class Q{}const Me=new l.OlP("DocumentToken");let Ee=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=l.Yz7({token:A,factory:function(){return function de(){return(0,l.LFG)(se)}()},providedIn:"platform"}),A})();const ne=new l.OlP("Location Initialized");let se=(()=>{class A extends Ee{constructor(T){super(),this._doc=T,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(T){const j=m().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",T,!1),()=>j.removeEventListener("popstate",T)}onHashChange(T){const j=m().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",T,!1),()=>j.removeEventListener("hashchange",T)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(T){this.location.pathname=T}pushState(T,j,ae){he()?this._history.pushState(T,j,ae):this.location.hash=ae}replaceState(T,j,ae){he()?this._history.replaceState(T,j,ae):this.location.hash=ae}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return A.\u0275fac=function(T){return new(T||A)(l.LFG(Me))},A.\u0275prov=l.Yz7({token:A,factory:function(){return function ee(){return new se((0,l.LFG)(Me))}()},providedIn:"platform"}),A})();function he(){return!!window.history.pushState}function le(A,B){if(0==A.length)return B;if(0==B.length)return A;let T=0;return A.endsWith("/")&&T++,B.startsWith("/")&&T++,2==T?A+B.substring(1):1==T?A+B:A+"/"+B}function Fe(A){const B=A.match(/#|\?|$/),T=B&&B.index||A.length;return A.slice(0,T-("/"===A[T-1]?1:0))+A.slice(T)}function Ve(A){return A&&"?"!==A[0]?"?"+A:A}let q=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=l.Yz7({token:A,factory:function(){return function tt(A){const B=(0,l.LFG)(Me).location;return new Qe((0,l.LFG)(Ee),B&&B.origin||"")}()},providedIn:"root"}),A})();const Ze=new l.OlP("appBaseHref");let Qe=(()=>{class A extends q{constructor(T,j){if(super(),this._platformLocation=T,this._removeListenerFns=[],null==j&&(j=this._platformLocation.getBaseHrefFromDOM()),null==j)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=j}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return le(this._baseHref,T)}path(T=!1){const j=this._platformLocation.pathname+Ve(this._platformLocation.search),ae=this._platformLocation.hash;return ae&&T?`${j}${ae}`:j}pushState(T,j,ae,We){const it=this.prepareExternalUrl(ae+Ve(We));this._platformLocation.pushState(T,j,it)}replaceState(T,j,ae,We){const it=this.prepareExternalUrl(ae+Ve(We));this._platformLocation.replaceState(T,j,it)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var j,ae;null===(ae=(j=this._platformLocation).historyGo)||void 0===ae||ae.call(j,T)}}return A.\u0275fac=function(T){return new(T||A)(l.LFG(Ee),l.LFG(Ze,8))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac}),A})(),ge=(()=>{class A extends q{constructor(T,j){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(T){const j=le(this._baseHref,T);return j.length>0?"#"+j:j}pushState(T,j,ae,We){let it=this.prepareExternalUrl(ae+Ve(We));0==it.length&&(it=this._platformLocation.pathname),this._platformLocation.pushState(T,j,it)}replaceState(T,j,ae,We){let it=this.prepareExternalUrl(ae+Ve(We));0==it.length&&(it=this._platformLocation.pathname),this._platformLocation.replaceState(T,j,it)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var j,ae;null===(ae=(j=this._platformLocation).historyGo)||void 0===ae||ae.call(j,T)}}return A.\u0275fac=function(T){return new(T||A)(l.LFG(Ee),l.LFG(Ze,8))},A.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac}),A})(),G=(()=>{class A{constructor(T,j){this._subject=new l.vpe,this._urlChangeListeners=[],this._platformStrategy=T;const ae=this._platformStrategy.getBaseHref();this._platformLocation=j,this._baseHref=Fe(xe(ae)),this._platformStrategy.onPopState(We=>{this._subject.emit({url:this.path(!0),pop:!0,state:We.state,type:We.type})})}path(T=!1){return this.normalize(this._platformStrategy.path(T))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(T,j=""){return this.path()==this.normalize(T+Ve(j))}normalize(T){return A.stripTrailingSlash(function me(A,B){return A&&B.startsWith(A)?B.substring(A.length):B}(this._baseHref,xe(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._platformStrategy.prepareExternalUrl(T)}go(T,j="",ae=null){this._platformStrategy.pushState(ae,"",T,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Ve(j)),ae)}replaceState(T,j="",ae=null){this._platformStrategy.replaceState(ae,"",T,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Ve(j)),ae)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(T=0){var j,ae;null===(ae=(j=this._platformStrategy).historyGo)||void 0===ae||ae.call(j,T)}onUrlChange(T){this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)}))}_notifyUrlChangeListeners(T="",j){this._urlChangeListeners.forEach(ae=>ae(T,j))}subscribe(T,j,ae){return this._subject.subscribe({next:T,error:j,complete:ae})}}return A.normalizeQueryParams=Ve,A.joinWithSlash=le,A.stripTrailingSlash=Fe,A.\u0275fac=function(T){return new(T||A)(l.LFG(q),l.LFG(Ee))},A.\u0275prov=l.Yz7({token:A,factory:function(){return function J(){return new G((0,l.LFG)(q),(0,l.LFG)(Ee))}()},providedIn:"root"}),A})();function xe(A){return A.replace(/\/index.html$/,"")}function ui(A,B){B=encodeURIComponent(B);for(const T of A.split(";")){const j=T.indexOf("="),[ae,We]=-1==j?[T,""]:[T.slice(0,j),T.slice(j+1)];if(ae.trim()===B)return decodeURIComponent(We)}return null}let nn=(()=>{class A{constructor(T,j,ae,We){this._iterableDiffers=T,this._keyValueDiffers=j,this._ngEl=ae,this._renderer=We,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(T){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof T?T.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(T){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof T?T.split(/\s+/):T,this._rawClass&&((0,l.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const T=this._iterableDiffer.diff(this._rawClass);T&&this._applyIterableChanges(T)}else if(this._keyValueDiffer){const T=this._keyValueDiffer.diff(this._rawClass);T&&this._applyKeyValueChanges(T)}}_applyKeyValueChanges(T){T.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),T.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),T.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(T){T.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,l.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),T.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(j=>this._toggleClass(j,!0)):Object.keys(T).forEach(j=>this._toggleClass(j,!!T[j])))}_removeClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(j=>this._toggleClass(j,!1)):Object.keys(T).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(T,j){(T=T.trim())&&T.split(/\s+/g).forEach(ae=>{j?this._renderer.addClass(this._ngEl.nativeElement,ae):this._renderer.removeClass(this._ngEl.nativeElement,ae)})}}return A.\u0275fac=function(T){return new(T||A)(l.Y36(l.ZZ4),l.Y36(l.aQg),l.Y36(l.SBq),l.Y36(l.Qsj))},A.\u0275dir=l.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),A})();class mi{constructor(B,T,j,ae){this.$implicit=B,this.ngForOf=T,this.index=j,this.count=ae}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let zt=(()=>{class A{constructor(T,j,ae){this._viewContainer=T,this._template=j,this._differs=ae,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const j=this._viewContainer;T.forEachOperation((ae,We,it)=>{if(null==ae.previousIndex)j.createEmbeddedView(this._template,new mi(ae.item,this._ngForOf,-1,-1),null===it?void 0:it);else if(null==it)j.remove(null===We?void 0:We);else if(null!==We){const ft=j.get(We);j.move(ft,it),di(ft,ae)}});for(let ae=0,We=j.length;ae{di(j.get(ae.currentIndex),ae)})}static ngTemplateContextGuard(T,j){return!0}}return A.\u0275fac=function(T){return new(T||A)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(l.ZZ4))},A.\u0275dir=l.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),A})();function di(A,B){A.context.$implicit=B.item}let Ii=(()=>{class A{constructor(T,j){this._viewContainer=T,this._context=new $n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){vn("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){vn("ngIfElse",T),this._elseTemplateRef=T,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(T,j){return!0}}return A.\u0275fac=function(T){return new(T||A)(l.Y36(l.s_b),l.Y36(l.Rgc))},A.\u0275dir=l.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),A})();class $n{constructor(){this.$implicit=null,this.ngIf=null}}function vn(A,B){if(B&&!B.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,l.AaK)(B)}'.`)}class hi{constructor(B,T){this._viewContainerRef=B,this._templateRef=T,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(B){B&&!this._created?this.create():!B&&this._created&&this.destroy()}}let Bn=(()=>{class A{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(T){this._ngSwitch=T,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(T){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(T)}_matchCase(T){const j=T==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(T){if(this._defaultViews&&T!==this._defaultUsed){this._defaultUsed=T;for(let j=0;j{class A{constructor(T,j,ae){this.ngSwitch=ae,ae._addCase(),this._view=new hi(T,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return A.\u0275fac=function(T){return new(T||A)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(Bn,9))},A.\u0275dir=l.lG2({type:A,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),A})(),dn=(()=>{class A{constructor(T,j,ae){ae._addDefault(new hi(T,j))}}return A.\u0275fac=function(T){return new(T||A)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(Bn,9))},A.\u0275dir=l.lG2({type:A,selectors:[["","ngSwitchDefault",""]]}),A})();class ti{createSubscription(B,T){return B.subscribe({next:T,error:j=>{throw j}})}dispose(B){B.unsubscribe()}onDestroy(B){B.unsubscribe()}}class Pi{createSubscription(B,T){return B.then(T,j=>{throw j})}dispose(B){}onDestroy(B){}}const hr=new Pi,or=new ti;let fr=(()=>{class A{constructor(T){this._ref=T,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,j=>this._updateLatestValue(T,j))}_selectStrategy(T){if((0,l.QGY)(T))return hr;if((0,l.F4k)(T))return or;throw function On(A,B){return new l.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,j){T===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return A.\u0275fac=function(T){return new(T||A)(l.Y36(l.sBO,16))},A.\u0275pipe=l.Yjl({name:"async",type:A,pure:!1}),A})(),Br=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275mod=l.oAB({type:A}),A.\u0275inj=l.cJS({}),A})();const Gi="browser";function Ri(A){return A===Gi}let xn=(()=>{class A{}return A.\u0275prov=(0,l.Yz7)({token:A,providedIn:"root",factory:()=>new Xi((0,l.LFG)(Me),window)}),A})();class Xi{constructor(B,T){this.document=B,this.window=T,this.offset=()=>[0,0]}setOffset(B){this.offset=Array.isArray(B)?()=>B:B}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(B){this.supportsScrolling()&&this.window.scrollTo(B[0],B[1])}scrollToAnchor(B){if(!this.supportsScrolling())return;const T=function ii(A,B){const T=A.getElementById(B)||A.getElementsByName(B)[0];if(T)return T;if("function"==typeof A.createTreeWalker&&A.body&&(A.body.createShadowRoot||A.body.attachShadow)){const j=A.createTreeWalker(A.body,NodeFilter.SHOW_ELEMENT);let ae=j.currentNode;for(;ae;){const We=ae.shadowRoot;if(We){const it=We.getElementById(B)||We.querySelector(`[name="${B}"]`);if(it)return it}ae=j.nextNode()}}return null}(this.document,B);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(B){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=B)}}scrollToElement(B){const T=B.getBoundingClientRect(),j=T.left+this.window.pageXOffset,ae=T.top+this.window.pageYOffset,We=this.offset();this.window.scrollTo(j-We[0],ae-We[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const B=er(this.window.history)||er(Object.getPrototypeOf(this.window.history));return!(!B||!B.writable&&!B.set)}catch(B){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(B){return!1}}}function er(A){return Object.getOwnPropertyDescriptor(A,"scrollRestoration")}class br{}},520:(Ye,be,C)=>{C.d(be,{eN:()=>Le,JF:()=>Re});var l=C(9808),o=C(4893),m=C(9646),K=C(8306),ue=C(4351),Q=C(9300),Me=C(4004);class Ee{}class de{}class ne{constructor(P){this.normalizedNames=new Map,this.lazyUpdate=null,P?this.lazyInit="string"==typeof P?()=>{this.headers=new Map,P.split("\n").forEach(N=>{const oe=N.indexOf(":");if(oe>0){const Ce=N.slice(0,oe),He=Ce.toLowerCase(),Ge=N.slice(oe+1).trim();this.maybeSetNormalizedName(Ce,He),this.headers.has(He)?this.headers.get(He).push(Ge):this.headers.set(He,[Ge])}})}:()=>{this.headers=new Map,Object.keys(P).forEach(N=>{let oe=P[N];const Ce=N.toLowerCase();"string"==typeof oe&&(oe=[oe]),oe.length>0&&(this.headers.set(Ce,oe),this.maybeSetNormalizedName(N,Ce))})}:this.headers=new Map}has(P){return this.init(),this.headers.has(P.toLowerCase())}get(P){this.init();const N=this.headers.get(P.toLowerCase());return N&&N.length>0?N[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(P){return this.init(),this.headers.get(P.toLowerCase())||null}append(P,N){return this.clone({name:P,value:N,op:"a"})}set(P,N){return this.clone({name:P,value:N,op:"s"})}delete(P,N){return this.clone({name:P,value:N,op:"d"})}maybeSetNormalizedName(P,N){this.normalizedNames.has(N)||this.normalizedNames.set(N,P)}init(){this.lazyInit&&(this.lazyInit instanceof ne?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(P=>this.applyUpdate(P)),this.lazyUpdate=null))}copyFrom(P){P.init(),Array.from(P.headers.keys()).forEach(N=>{this.headers.set(N,P.headers.get(N)),this.normalizedNames.set(N,P.normalizedNames.get(N))})}clone(P){const N=new ne;return N.lazyInit=this.lazyInit&&this.lazyInit instanceof ne?this.lazyInit:this,N.lazyUpdate=(this.lazyUpdate||[]).concat([P]),N}applyUpdate(P){const N=P.name.toLowerCase();switch(P.op){case"a":case"s":let oe=P.value;if("string"==typeof oe&&(oe=[oe]),0===oe.length)return;this.maybeSetNormalizedName(P.name,N);const Ce=("a"===P.op?this.headers.get(N):void 0)||[];Ce.push(...oe),this.headers.set(N,Ce);break;case"d":const He=P.value;if(He){let Ge=this.headers.get(N);if(!Ge)return;Ge=Ge.filter(_t=>-1===He.indexOf(_t)),0===Ge.length?(this.headers.delete(N),this.normalizedNames.delete(N)):this.headers.set(N,Ge)}else this.headers.delete(N),this.normalizedNames.delete(N)}}forEach(P){this.init(),Array.from(this.normalizedNames.keys()).forEach(N=>P(this.normalizedNames.get(N),this.headers.get(N)))}}class se{encodeKey(P){return Fe(P)}encodeValue(P){return Fe(P)}decodeKey(P){return decodeURIComponent(P)}decodeValue(P){return decodeURIComponent(P)}}const ee=/%(\d[a-f0-9])/gi,le={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fe(D){return encodeURIComponent(D).replace(ee,(P,N)=>{var oe;return null!==(oe=le[N])&&void 0!==oe?oe:P})}function Ve(D){return`${D}`}class q{constructor(P={}){if(this.updates=null,this.cloneFrom=null,this.encoder=P.encoder||new se,P.fromString){if(P.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function he(D,P){const N=new Map;return D.length>0&&D.replace(/^\?/,"").split("&").forEach(Ce=>{const He=Ce.indexOf("="),[Ge,_t]=-1==He?[P.decodeKey(Ce),""]:[P.decodeKey(Ce.slice(0,He)),P.decodeValue(Ce.slice(He+1))],ut=N.get(Ge)||[];ut.push(_t),N.set(Ge,ut)}),N}(P.fromString,this.encoder)}else P.fromObject?(this.map=new Map,Object.keys(P.fromObject).forEach(N=>{const oe=P.fromObject[N];this.map.set(N,Array.isArray(oe)?oe:[oe])})):this.map=null}has(P){return this.init(),this.map.has(P)}get(P){this.init();const N=this.map.get(P);return N?N[0]:null}getAll(P){return this.init(),this.map.get(P)||null}keys(){return this.init(),Array.from(this.map.keys())}append(P,N){return this.clone({param:P,value:N,op:"a"})}appendAll(P){const N=[];return Object.keys(P).forEach(oe=>{const Ce=P[oe];Array.isArray(Ce)?Ce.forEach(He=>{N.push({param:oe,value:He,op:"a"})}):N.push({param:oe,value:Ce,op:"a"})}),this.clone(N)}set(P,N){return this.clone({param:P,value:N,op:"s"})}delete(P,N){return this.clone({param:P,value:N,op:"d"})}toString(){return this.init(),this.keys().map(P=>{const N=this.encoder.encodeKey(P);return this.map.get(P).map(oe=>N+"="+this.encoder.encodeValue(oe)).join("&")}).filter(P=>""!==P).join("&")}clone(P){const N=new q({encoder:this.encoder});return N.cloneFrom=this.cloneFrom||this,N.updates=(this.updates||[]).concat(P),N}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(P=>this.map.set(P,this.cloneFrom.map.get(P))),this.updates.forEach(P=>{switch(P.op){case"a":case"s":const N=("a"===P.op?this.map.get(P.param):void 0)||[];N.push(Ve(P.value)),this.map.set(P.param,N);break;case"d":if(void 0===P.value){this.map.delete(P.param);break}{let oe=this.map.get(P.param)||[];const Ce=oe.indexOf(Ve(P.value));-1!==Ce&&oe.splice(Ce,1),oe.length>0?this.map.set(P.param,oe):this.map.delete(P.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(P,N){return this.map.set(P,N),this}get(P){return this.map.has(P)||this.map.set(P,P.defaultValue()),this.map.get(P)}delete(P){return this.map.delete(P),this}has(P){return this.map.has(P)}keys(){return this.map.keys()}}function ge(D){return"undefined"!=typeof ArrayBuffer&&D instanceof ArrayBuffer}function G(D){return"undefined"!=typeof Blob&&D instanceof Blob}function J(D){return"undefined"!=typeof FormData&&D instanceof FormData}class xe{constructor(P,N,oe,Ce){let He;if(this.url=N,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=P.toUpperCase(),function Qe(D){switch(D){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ce?(this.body=void 0!==oe?oe:null,He=Ce):He=oe,He&&(this.reportProgress=!!He.reportProgress,this.withCredentials=!!He.withCredentials,He.responseType&&(this.responseType=He.responseType),He.headers&&(this.headers=He.headers),He.context&&(this.context=He.context),He.params&&(this.params=He.params)),this.headers||(this.headers=new ne),this.context||(this.context=new Ze),this.params){const Ge=this.params.toString();if(0===Ge.length)this.urlWithParams=N;else{const _t=N.indexOf("?");this.urlWithParams=N+(-1===_t?"?":_thn.set(ht,P.setHeaders[ht]),It)),P.setParams&&(rn=Object.keys(P.setParams).reduce((hn,ht)=>hn.set(ht,P.setParams[ht]),rn)),new xe(oe,Ce,Ge,{params:rn,headers:It,context:Kt,reportProgress:ut,responseType:He,withCredentials:_t})}}var Be=(()=>((Be=Be||{})[Be.Sent=0]="Sent",Be[Be.UploadProgress=1]="UploadProgress",Be[Be.ResponseHeader=2]="ResponseHeader",Be[Be.DownloadProgress=3]="DownloadProgress",Be[Be.Response=4]="Response",Be[Be.User=5]="User",Be))();class ye{constructor(P,N=200,oe="OK"){this.headers=P.headers||new ne,this.status=void 0!==P.status?P.status:N,this.statusText=P.statusText||oe,this.url=P.url||null,this.ok=this.status>=200&&this.status<300}}class we extends ye{constructor(P={}){super(P),this.type=Be.ResponseHeader}clone(P={}){return new we({headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class Se extends ye{constructor(P={}){super(P),this.type=Be.Response,this.body=void 0!==P.body?P.body:null}clone(P={}){return new Se({body:void 0!==P.body?P.body:this.body,headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class Te extends ye{constructor(P){super(P,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${P.url||"(unknown url)"}`:`Http failure response for ${P.url||"(unknown url)"}: ${P.status} ${P.statusText}`,this.error=P.error||null}}function nt(D,P){return{body:P,headers:D.headers,context:D.context,observe:D.observe,params:D.params,reportProgress:D.reportProgress,responseType:D.responseType,withCredentials:D.withCredentials}}let Le=(()=>{class D{constructor(N){this.handler=N}request(N,oe,Ce={}){let He;if(N instanceof xe)He=N;else{let ut,It;ut=Ce.headers instanceof ne?Ce.headers:new ne(Ce.headers),Ce.params&&(It=Ce.params instanceof q?Ce.params:new q({fromObject:Ce.params})),He=new xe(N,oe,void 0!==Ce.body?Ce.body:null,{headers:ut,context:Ce.context,params:It,reportProgress:Ce.reportProgress,responseType:Ce.responseType||"json",withCredentials:Ce.withCredentials})}const Ge=(0,m.of)(He).pipe((0,ue.b)(ut=>this.handler.handle(ut)));if(N instanceof xe||"events"===Ce.observe)return Ge;const _t=Ge.pipe((0,Q.h)(ut=>ut instanceof Se));switch(Ce.observe||"body"){case"body":switch(He.responseType){case"arraybuffer":return _t.pipe((0,Me.U)(ut=>{if(null!==ut.body&&!(ut.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ut.body}));case"blob":return _t.pipe((0,Me.U)(ut=>{if(null!==ut.body&&!(ut.body instanceof Blob))throw new Error("Response is not a Blob.");return ut.body}));case"text":return _t.pipe((0,Me.U)(ut=>{if(null!==ut.body&&"string"!=typeof ut.body)throw new Error("Response is not a string.");return ut.body}));default:return _t.pipe((0,Me.U)(ut=>ut.body))}case"response":return _t;default:throw new Error(`Unreachable: unhandled observe type ${Ce.observe}}`)}}delete(N,oe={}){return this.request("DELETE",N,oe)}get(N,oe={}){return this.request("GET",N,oe)}head(N,oe={}){return this.request("HEAD",N,oe)}jsonp(N,oe){return this.request("JSONP",N,{params:(new q).append(oe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(N,oe={}){return this.request("OPTIONS",N,oe)}patch(N,oe,Ce={}){return this.request("PATCH",N,nt(Ce,oe))}post(N,oe,Ce={}){return this.request("POST",N,nt(Ce,oe))}put(N,oe,Ce={}){return this.request("PUT",N,nt(Ce,oe))}}return D.\u0275fac=function(N){return new(N||D)(o.LFG(Ee))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();class Et{constructor(P,N){this.next=P,this.interceptor=N}handle(P){return this.interceptor.intercept(P,this.next)}}const gt=new o.OlP("HTTP_INTERCEPTORS");let Xt=(()=>{class D{intercept(N,oe){return oe.handle(N)}}return D.\u0275fac=function(N){return new(N||D)},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const et=/^\)\]\}',?\n/;let X=(()=>{class D{constructor(N){this.xhrFactory=N}handle(N){if("JSONP"===N.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new K.y(oe=>{const Ce=this.xhrFactory.build();if(Ce.open(N.method,N.urlWithParams),N.withCredentials&&(Ce.withCredentials=!0),N.headers.forEach((ht,vt)=>Ce.setRequestHeader(ht,vt.join(","))),N.headers.has("Accept")||Ce.setRequestHeader("Accept","application/json, text/plain, */*"),!N.headers.has("Content-Type")){const ht=N.detectContentTypeHeader();null!==ht&&Ce.setRequestHeader("Content-Type",ht)}if(N.responseType){const ht=N.responseType.toLowerCase();Ce.responseType="json"!==ht?ht:"text"}const He=N.serializeBody();let Ge=null;const _t=()=>{if(null!==Ge)return Ge;const ht=Ce.statusText||"OK",vt=new ne(Ce.getAllResponseHeaders()),Ne=function ze(D){return"responseURL"in D&&D.responseURL?D.responseURL:/^X-Request-URL:/m.test(D.getAllResponseHeaders())?D.getResponseHeader("X-Request-URL"):null}(Ce)||N.url;return Ge=new we({headers:vt,status:Ce.status,statusText:ht,url:Ne}),Ge},ut=()=>{let{headers:ht,status:vt,statusText:Ne,url:Ae}=_t(),U=null;204!==vt&&(U=void 0===Ce.response?Ce.responseText:Ce.response),0===vt&&(vt=U?200:0);let z=vt>=200&&vt<300;if("json"===N.responseType&&"string"==typeof U){const W=U;U=U.replace(et,"");try{U=""!==U?JSON.parse(U):null}catch(fe){U=W,z&&(z=!1,U={error:fe,text:U})}}z?(oe.next(new Se({body:U,headers:ht,status:vt,statusText:Ne,url:Ae||void 0})),oe.complete()):oe.error(new Te({error:U,headers:ht,status:vt,statusText:Ne,url:Ae||void 0}))},It=ht=>{const{url:vt}=_t(),Ne=new Te({error:ht,status:Ce.status||0,statusText:Ce.statusText||"Unknown Error",url:vt||void 0});oe.error(Ne)};let rn=!1;const Kt=ht=>{rn||(oe.next(_t()),rn=!0);let vt={type:Be.DownloadProgress,loaded:ht.loaded};ht.lengthComputable&&(vt.total=ht.total),"text"===N.responseType&&!!Ce.responseText&&(vt.partialText=Ce.responseText),oe.next(vt)},hn=ht=>{let vt={type:Be.UploadProgress,loaded:ht.loaded};ht.lengthComputable&&(vt.total=ht.total),oe.next(vt)};return Ce.addEventListener("load",ut),Ce.addEventListener("error",It),Ce.addEventListener("timeout",It),Ce.addEventListener("abort",It),N.reportProgress&&(Ce.addEventListener("progress",Kt),null!==He&&Ce.upload&&Ce.upload.addEventListener("progress",hn)),Ce.send(He),oe.next({type:Be.Sent}),()=>{Ce.removeEventListener("error",It),Ce.removeEventListener("abort",It),Ce.removeEventListener("load",ut),Ce.removeEventListener("timeout",It),N.reportProgress&&(Ce.removeEventListener("progress",Kt),null!==He&&Ce.upload&&Ce.upload.removeEventListener("progress",hn)),Ce.readyState!==Ce.DONE&&Ce.abort()}})}}return D.\u0275fac=function(N){return new(N||D)(o.LFG(l.JF))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const Z=new o.OlP("XSRF_COOKIE_NAME"),je=new o.OlP("XSRF_HEADER_NAME");class $e{}let ct=(()=>{class D{constructor(N,oe,Ce){this.doc=N,this.platform=oe,this.cookieName=Ce,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const N=this.doc.cookie||"";return N!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,l.Mx)(N,this.cookieName),this.lastCookieString=N),this.lastToken}}return D.\u0275fac=function(N){return new(N||D)(o.LFG(l.K0),o.LFG(o.Lbi),o.LFG(Z))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),Ot=(()=>{class D{constructor(N,oe){this.tokenService=N,this.headerName=oe}intercept(N,oe){const Ce=N.url.toLowerCase();if("GET"===N.method||"HEAD"===N.method||Ce.startsWith("http://")||Ce.startsWith("https://"))return oe.handle(N);const He=this.tokenService.getToken();return null!==He&&!N.headers.has(this.headerName)&&(N=N.clone({headers:N.headers.set(this.headerName,He)})),oe.handle(N)}}return D.\u0275fac=function(N){return new(N||D)(o.LFG($e),o.LFG(je))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),jt=(()=>{class D{constructor(N,oe){this.backend=N,this.injector=oe,this.chain=null}handle(N){if(null===this.chain){const oe=this.injector.get(gt,[]);this.chain=oe.reduceRight((Ce,He)=>new Et(Ce,He),this.backend)}return this.chain.handle(N)}}return D.\u0275fac=function(N){return new(N||D)(o.LFG(de),o.LFG(o.zs3))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),lt=(()=>{class D{static disable(){return{ngModule:D,providers:[{provide:Ot,useClass:Xt}]}}static withOptions(N={}){return{ngModule:D,providers:[N.cookieName?{provide:Z,useValue:N.cookieName}:[],N.headerName?{provide:je,useValue:N.headerName}:[]]}}}return D.\u0275fac=function(N){return new(N||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[Ot,{provide:gt,useExisting:Ot,multi:!0},{provide:$e,useClass:ct},{provide:Z,useValue:"XSRF-TOKEN"},{provide:je,useValue:"X-XSRF-TOKEN"}]}),D})(),Re=(()=>{class D{}return D.\u0275fac=function(N){return new(N||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[Le,{provide:Ee,useClass:jt},X,{provide:de,useExisting:X}],imports:[[lt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),D})()},4893:(Ye,be,C)=>{C.d(be,{deG:()=>Im,tb:()=>am,AFp:()=>im,ip1:()=>nm,CZH:()=>jc,hGG:()=>VC,z2F:()=>Zc,sBO:()=>DC,Sil:()=>rC,_Vd:()=>Ra,EJc:()=>nC,SBq:()=>Ws,qLn:()=>ca,vpe:()=>co,tBr:()=>ra,XFs:()=>S,OlP:()=>yi,zs3:()=>Gr,ZZ4:()=>tu,aQg:()=>nu,soG:()=>Gc,YKP:()=>gp,h0i:()=>fs,PXZ:()=>gC,R0b:()=>Kr,FiY:()=>As,Lbi:()=>sm,g9A:()=>om,n_E:()=>Fa,Qsj:()=>qb,FYo:()=>hp,JOm:()=>ro,q3G:()=>bi,tp0:()=>Ts,Rgc:()=>qs,dDg:()=>dm,GfV:()=>fp,s_b:()=>Na,ifc:()=>It,eFA:()=>pm,G48:()=>EC,Gpc:()=>Ve,f3M:()=>Mu,_c5:()=>BC,VLi:()=>fC,c2e:()=>lm,zSh:()=>Gl,wAp:()=>Qt,vHH:()=>Qe,EiD:()=>Uu,mCW:()=>Ss,qzn:()=>Go,JVY:()=>cg,pB0:()=>fg,eBb:()=>dg,L6k:()=>ug,LAX:()=>hg,cg1:()=>bc,kL8:()=>Lf,yhl:()=>Pu,dqk:()=>vt,sIi:()=>Bs,CqO:()=>zh,QGY:()=>sc,F4k:()=>jh,RDi:()=>B,AaK:()=>ee,z3N:()=>_o,qOj:()=>Zl,TTD:()=>Gi,_Bn:()=>cp,xp6:()=>Cd,uIk:()=>Jl,Tol:()=>hf,Gre:()=>Af,ekj:()=>fc,Suo:()=>Fp,Xpm:()=>Mt,lG2:()=>Wt,Yz7:()=>X,cJS:()=>je,oAB:()=>Pe,Yjl:()=>Cn,Y36:()=>Us,_UZ:()=>oc,BQk:()=>wa,ynx:()=>Ma,qZA:()=>Da,TgZ:()=>Ea,EpF:()=>Hh,n5z:()=>pu,Ikx:()=>vc,LFG:()=>Bi,$8M:()=>$a,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Lp,kcU:()=>Mo,O4$:()=>eo,oxw:()=>Wh,ALo:()=>Ap,lcZ:()=>Tp,Hsn:()=>Kh,F$t:()=>Yh,Q6J:()=>ic,s9C:()=>uc,VKq:()=>bp,iGM:()=>Rp,MAs:()=>xh,evT:()=>Zu,CHM:()=>Xr,oJD:()=>Hu,LSH:()=>ol,Udp:()=>hc,WFA:()=>lc,d8E:()=>yc,YNc:()=>Th,_uU:()=>yf,Oqu:()=>mc,hij:()=>Ta,AsE:()=>gc,lnq:()=>_c,Gf:()=>kp});var l=C(7579),o=C(727),m=C(8306),K=C(6451),ue=C(2076),Q=C(5698),Me=C(930),Ee=C(4482);function ne(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe((0,Q.q)(1)).subscribe(()=>e())}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function he(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ee(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ee).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function le(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Fe=se({__forward_ref__:se});function Ve(e){return e.__forward_ref__=Ve,e.toString=function(){return ee(this())},e}function q(e){return tt(e)?e():e}function tt(e){return"function"==typeof e&&e.hasOwnProperty(Fe)&&e.__forward_ref__===Ve}class Qe extends Error{constructor(t,n){super(function ge(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function G(e){return"string"==typeof e?e:null==e?"":String(e)}function J(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():G(e)}function ye(e,t){const n=t?` in ${t}`:"";throw new Qe(-201,`No provider for ${J(e)} found${n}`)}function Ht(e,t){null==e&&function St(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function X(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function je(e){return{providers:e.providers||[],imports:e.imports||[]}}function $e(e){return ct(e,Bt)||ct(e,Re)}function ct(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ct(e){return e&&(e.hasOwnProperty(lt)||e.hasOwnProperty(E))?e[lt]:null}const Bt=se({\u0275prov:se}),lt=se({\u0275inj:se}),Re=se({ngInjectableDef:se}),E=se({ngInjectorDef:se});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let D;function N(e){const t=D;return D=e,t}function oe(e,t,n){const i=$e(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&S.Optional?null:void 0!==t?t:void ye(ee(e),"Injector")}function He(e){return{toString:e}.toString()}var Ge=(()=>((Ge=Ge||{})[Ge.OnPush=0]="OnPush",Ge[Ge.Default=1]="Default",Ge))(),It=(()=>{return(e=It||(It={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",It;var e})();const rn="undefined"!=typeof globalThis&&globalThis,Kt="undefined"!=typeof window&&window,hn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vt=rn||"undefined"!=typeof global&&global||Kt||hn,U={},z=[],W=se({\u0275cmp:se}),fe=se({\u0275dir:se}),Oe=se({\u0275pipe:se}),at=se({\u0275mod:se}),Tt=se({\u0275fac:se}),qt=se({__NG_ELEMENT_ID__:se});let Zt=0;function Mt(e){return He(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ge.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||z,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||It.Emulated,id:"c",styles:e.styles||z,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,c=e.pipes;return i.id+=Zt++,i.inputs=Ft(e.inputs,n),i.outputs=Ft(e.outputs),s&&s.forEach(f=>f(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ue):null,i.pipeDefs=c?()=>("function"==typeof c?c():c).map(ve):null,i})}function Ue(e){return tn(e)||function Fn(e){return e[fe]||null}(e)}function ve(e){return function En(e){return e[Oe]||null}(e)}const ie={};function Pe(e){return He(()=>{const t={type:e.type,bootstrap:e.bootstrap||z,declarations:e.declarations||z,imports:e.imports||z,exports:e.exports||z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ie[e.id]=e.type),t})}function Ft(e,t){if(null==e)return U;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const Wt=Mt;function Cn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function tn(e){return e[W]||null}function zn(e,t){const n=e[at]||null;if(!n&&!0===t)throw new Error(`Type ${ee(e)} does not have '\u0275mod' property.`);return n}function Zn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ei(e){return Array.isArray(e)&&!0===e[1]}function Zi(e){return 0!=(8&e.flags)}function qi(e){return 2==(2&e.flags)}function On(e){return 1==(1&e.flags)}function ti(e){return null!==e.template}function Pi(e){return 0!=(512&e[2])}function Ai(e,t){return e.hasOwnProperty(Tt)?e[Tt]:null}class Br{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Gi(){return Vi}function Vi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Jr),Ji}function Ji(){const e=cr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===U)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Jr(e,t,n,i){const r=cr(e)||function Vr(e,t){return e[Ri]=t}(e,{previous:U,current:null}),s=r.current||(r.current={}),c=r.previous,f=this.declaredInputs[n],y=c[f];s[f]=new Br(y&&y.currentValue,t,c===U),e[i]=t}Gi.ngInherit=!0;const Ri="__ngSimpleChanges__";function cr(e){return e[Ri]||null}let A;function B(e){A=e}function T(){return void 0!==A?A:"undefined"!=typeof document?document:void 0}function ae(e){return!!e.listen}const We={createRenderer:(e,t)=>T()};function ft(e){for(;Array.isArray(e);)e=e[0];return e}function fn(e,t){return ft(t[e])}function Gt(e,t){return ft(t[e.index])}function _n(e,t){return e.data[t]}function In(e,t){return e[t]}function Un(e,t){const n=t[e];return Zn(n)?n:n[0]}function Ti(e){return 4==(4&e[2])}function tr(e){return 128==(128&e[2])}function Fi(e,t){return null==t?null:e[t]}function x(e){e[18]=0}function M(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const v={lFrame:Mi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function _i(){return v.bindingsEnabled}function st(){return v.lFrame.lView}function an(){return v.lFrame.tView}function Xr(e){return v.lFrame.contextLView=e,e[8]}function qn(){let e=bo();for(;null!==e&&64===e.type;)e=e.parent;return e}function bo(){return v.lFrame.currentTNode}function Ui(e,t){const n=v.lFrame;n.currentTNode=e,n.isParent=t}function k(){return v.lFrame.isParent}function De(){v.lFrame.isParent=!1}function g(){return v.isInCheckNoChangesMode}function a(e){v.isInCheckNoChangesMode=e}function u(){const e=v.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function b(){return v.lFrame.bindingIndex}function $(){return v.lFrame.bindingIndex++}function re(e){const t=v.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Je(e,t){const n=v.lFrame;n.bindingIndex=n.bindingRootIndex=e,Pt(t)}function Pt(e){v.lFrame.currentDirectiveIndex=e}function en(e){const t=v.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function cn(){return v.lFrame.currentQueryIndex}function Ut(e){v.lFrame.currentQueryIndex=e}function on(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function wn(e,t,n){if(n&S.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&S.Host||(r=on(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=v.lFrame=ci();return i.currentTNode=t,i.lView=e,!0}function Wn(e){const t=ci(),n=e[1];v.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ci(){const e=v.lFrame,t=null===e?null:e.child;return null===t?Mi(e):t}function Mi(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ri(){const e=v.lFrame;return v.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Or=ri;function Hi(){const e=ri();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Hn(){return v.lFrame.selectedIndex}function vi(e){v.lFrame.selectedIndex=e}function jn(){const e=v.lFrame;return _n(e.tView,e.selectedIndex)}function eo(){v.lFrame.currentNamespace="svg"}function Mo(){!function ho(){v.lFrame.currentNamespace=null}()}function Nt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[y]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(f)}finally{}}}else try{s.call(f)}finally{}}class Ir{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ro(e,t,n){const i=ae(e);let r=0;for(;rt){c=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let vs=!0;function ys(e){const t=vs;return vs=e,t}let w=0;function V(e,t){const n=_e(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,te(i.data,e),te(t,null),te(i.blueprint,null));const r=qe(e,t),s=e.injectorIndex;if(Fo(r)){const c=Co(r),f=fo(r,t),y=f[1].data;for(let I=0;I<8;I++)t[s+I]=f[c+I]|y[c+I]}return t[s+8]=r,s}function te(e,t){e.push(0,0,0,0,0,0,0,0,t)}function _e(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qe(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],c=s.type;if(i=2===c?s.declTNode:1===c?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function wt(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(qt)&&(i=n[qt]),null==i&&(i=n[qt]=w++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Hr:t}(n);if("function"==typeof s){if(!wn(t,e,i))return i&S.Host?Vt(r,n,i):Sn(t,n,i,r);try{const c=s(i);if(null!=c||i&S.Optional)return c;ye(n)}finally{Or()}}else if("number"==typeof s){let c=null,f=_e(e,t),y=-1,I=i&S.Host?t[16][6]:null;for((-1===f||i&S.SkipSelf)&&(y=-1===f?qe(e,t):t[f+8],-1!==y&&ea(i,!1)?(c=t[1],f=Co(y),t=fo(y,t)):f=-1);-1!==f;){const L=t[1];if(Ao(s,f,L.data)){const Y=mo(f,t,n,c,i,I);if(Y!==po)return Y}y=t[f+8],-1!==y&&ea(i,t[1].data[f+8]===I)&&Ao(s,f,t)?(c=L,f=Co(y),t=fo(y,t)):f=-1}}}return Sn(t,n,i,r)}const po={};function Hr(){return new Lo(qn(),st())}function mo(e,t,n,i,r,s){const c=t[1],f=c.data[e+8],L=Pr(f,c,n,null==i?qi(f)&&vs:i!=c&&0!=(3&f.type),r&S.Host&&s===f);return null!==L?Mr(t,c,L,f):po}function Pr(e,t,n,i,r){const s=e.providerIndexes,c=t.data,f=1048575&s,y=e.directiveStart,L=s>>20,pe=r?f+L:e.directiveEnd;for(let ke=i?f:f+L;ke=y&&Xe.type===n)return ke}if(r){const ke=c[y];if(ke&&ti(ke)&&ke.type===n)return y}return null}function Mr(e,t,n,i){let r=e[n];const s=t.data;if(function Js(e){return e instanceof Ir}(r)){const c=r;c.resolving&&function me(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Qe(-200,`Circular dependency in DI detected for ${e}${n}`)}(J(s[n]));const f=ys(c.canSeeViewProviders);c.resolving=!0;const y=c.injectImpl?N(c.injectImpl):null;wn(e,i,S.Default);try{r=e[n]=c.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Lt(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const c=Vi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,c),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,c)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==y&&N(y),ys(f),c.resolving=!1,Or()}}return r}function Ao(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Tt]||Ga(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[Tt]||Ga(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ga(e){return tt(e)?()=>{const t=Ga(q(e));return t&&t()}:Ai(e)}function $a(e){return function un(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r{const i=function Wa(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const c=new r(...s);return f.annotation=c,f;function f(y,I,L){const Y=y.hasOwnProperty(Bo)?y[Bo]:Object.defineProperty(y,Bo,{value:[]})[Bo];for(;Y.length<=L;)Y.push(null);return(Y[L]=Y[L]||[]).push(c),y}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class yi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=X({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Im=new yi("AnalyzeForEntryComponents");function Rr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?to(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Es(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function km(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ka(e,t){const n=Ho(e,t);if(n>=0)return e[1|n]}function Ho(e,t){return function yu(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),c=e[s<t?r=s:i=s+1}return~(r<({token:e})),-1),As=ws(Uo("Optional"),8),Ts=ws(Uo("SkipSelf"),4);let sa,aa;function zo(e){var t;return(null===(t=function Xa(){if(void 0===sa&&(sa=null,vt.trustedTypes))try{sa=vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}function Su(e){var t;return(null===(t=function el(){if(void 0===aa&&(aa=null,vt.trustedTypes))try{aa=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return aa}())||void 0===t?void 0:t.createHTML(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rg extends To{getTypeName(){return"HTML"}}class og extends To{getTypeName(){return"Style"}}class sg extends To{getTypeName(){return"Script"}}class ag extends To{getTypeName(){return"URL"}}class lg extends To{getTypeName(){return"ResourceURL"}}function _o(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Go(e,t){const n=Pu(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Pu(e){return e instanceof To&&e.getTypeName()||null}function cg(e){return new rg(e)}function ug(e){return new og(e)}function dg(e){return new sg(e)}function hg(e){return new ag(e)}function fg(e){return new lg(e)}class pg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(zo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class mg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=zo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=zo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0Ss(t.trim())).join(", ")),this.buf.push(" ",c,'="',Vu(y),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();tl.hasOwnProperty(n)&&!Fu.hasOwnProperty(n)&&(this.buf.push(""),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Vu(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Cg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eg=/([^\#-~ |!])/g;function Vu(e){return e.replace(/&/g,"&").replace(Cg,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Eg,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let la;function Uu(e,t){let n=null;try{la=la||function Ru(e){const t=new mg(e);return function gg(){try{return!!(new window.DOMParser).parseFromString(zo(""),"text/html")}catch(e){return!1}}()?new pg(t):t}(e);let i=t?String(t):"";n=la.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=la.getInertBodyElement(i)}while(i!==s);return zo((new bg).sanitizeChildren(rl(n)||n))}finally{if(n){const i=rl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rl(e){return"content"in e&&function Dg(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bi=(()=>((bi=bi||{})[bi.NONE=0]="NONE",bi[bi.HTML=1]="HTML",bi[bi.STYLE=2]="STYLE",bi[bi.SCRIPT=3]="SCRIPT",bi[bi.URL=4]="URL",bi[bi.RESOURCE_URL=5]="RESOURCE_URL",bi))();function Hu(e){const t=Is();return t?Su(t.sanitize(bi.HTML,e)||""):Go(e,"HTML")?Su(_o(e)):Uu(T(),G(e))}function ol(e){const t=Is();return t?t.sanitize(bi.URL,e)||"":Go(e,"URL")?_o(e):Ss(G(e))}function Is(){const e=st();return e&&e[12]}const Gu="__ngContext__";function Yi(e,t){e[Gu]=t}function al(e){const t=function Ps(e){return e[Gu]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function cl(e){return e.ngOriginalError}function Vg(e,...t){e.error(...t)}class ca{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function Bg(e){return e&&e.ngErrorLogger||Vg}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&cl(t);for(;n&&cl(n);)n=cl(n);return n||null}}const Zg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function Zu(e){return e.ownerDocument}function io(e){return e instanceof Function?e():e}var ro=(()=>((ro=ro||{})[ro.Important=1]="Important",ro[ro.DashCase=2]="DashCase",ro))();function dl(e,t){return undefined(e,t)}function Rs(e){const t=e[3];return Ei(t)?t[3]:t}function hl(e){return ed(e[13])}function fl(e){return ed(e[4])}function ed(e){for(;null!==e&&!Ei(e);)e=e[4];return e}function Wo(e,t,n,i,r){if(null!=i){let s,c=!1;Ei(i)?s=i:Zn(i)&&(c=!0,i=i[0]);const f=ft(i);0===e&&null!==n?null==r?sd(t,n,f):xo(t,n,f,r||null,!0):1===e&&null!==n?xo(t,n,f,r||null,!0):2===e?function fd(e,t,n){const i=ua(e,t);i&&function l_(e,t,n,i){ae(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,f,c):3===e&&t.destroyNode(f),null!=s&&function d_(e,t,n,i,r){const s=n[7];s!==ft(n)&&Wo(t,e,i,s,r);for(let f=10;f0&&(e[n-1][4]=i[4]);const s=ta(e,10+t);!function e_(e,t){ks(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const c=s[19];null!==c&&c.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function id(e,t){if(!(256&t[2])){const n=t[11];ae(n)&&n.destroyNode&&ks(e,t,n,3,null,null),function i_(e){let t=e[13];if(!t)return _l(e[1],e);for(;t;){let n=null;if(Zn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Zn(t)&&_l(t[1],t),t=t[3];null===t&&(t=e),Zn(t)&&_l(t[1],t),n=t&&t[4]}t=n}}(t)}}function _l(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function a_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[r=I]():i[r=-I].unsubscribe(),s+=2}else{const c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(let s=r+1;ss?"":r[Y+1].toLowerCase();const ke=8&i?pe:null;if(ke&&-1!==gd(ke,I,0)||2&i&&I!==pe){if(jr(i))return!1;c=!0}}}}else{if(!c&&!jr(i)&&!jr(y))return!1;if(c&&jr(y))continue;c=!1,i=y|1&i}}return jr(i)||c}function jr(e){return 0==(1&e)}function g_(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?r+="."+c:4&i&&(r+=" "+c);else""!==r&&!jr(c)&&(t+=bd(s,r),r=""),i=c,s=s||!jr(i);n++}return""!==r&&(t+=bd(s,r)),t}const ln={};function Cd(e){Ed(an(),st(),Hn()+e,g())}function Ed(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&pn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Qn(t,s,0,n)}vi(n)}function fa(e,t){return e<<17|t<<2}function zr(e){return e>>17&32767}function El(e){return 2|e}function vo(e){return(131068&e)>>2}function Dl(e,t){return-131069&e|t<<2}function Ml(e){return 1|e}function Rd(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&Ed(e,t,20,g()),n(i,r)}finally{vi(s)}}function Fd(e,t,n){if(Zi(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=y&&f.push(y),f.push(i,r,c)}}function zd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function q_(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Bl(n)}}function Bl(e){for(let i=hl(e);null!==i;i=fl(i))for(let r=10;r0&&Bl(s)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Bl(r)}}function iv(e,t){const n=Un(t,e),i=n[1];(function rv(e,t){for(let n=t.length;nPromise.resolve(null))();function Zd(e){return e[7]||(e[7]=[])}function qd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||ti(e))&&(n=function Dn(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jd(e,t){const n=e[9],i=n?n.get(ca,null):null;i&&i.handleError(t)}function Xd(e,t,n,i,r){for(let s=0;sthis.processProvider(f,t,n)),to([t],f=>this.processInjectorType(f,[],s)),this.records.set(zl,qo(void 0,this));const c=this.records.get(Gl);this.scope=null!=c?c.value:null,this.source=r||("object"==typeof t?null:ee(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=S.Default){this.assertNotDestroyed();const r=Eu(this),s=N(void 0);try{if(!(i&S.SkipSelf)){let f=this.records.get(t);if(void 0===f){const y=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof yi}(t)&&$e(t);f=y&&this.injectableDefInScope(y)?qo(Wl(t),Ns):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(i&S.Self?th():this.parent).get(t,n=i&S.Optional&&n===Ds?null:n)}catch(c){if("NullInjectorError"===c.name){if((c[ia]=c[ia]||[]).unshift(ee(t)),r)throw c;return function Wm(e,t,n,i){const r=e[ia];throw t[Cu]&&r.unshift(t[Cu]),e.message=function Ym(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=ee(t);if(Array.isArray(t))r=t.map(ee).join(" -> ");else if("object"==typeof t){let s=[];for(let c in t)if(t.hasOwnProperty(c)){let f=t[c];s.push(c+":"+("string"==typeof f?JSON.stringify(f):ee(f)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Hm,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[ia]=null,e}(c,t,"R3InjectorError",this.source)}throw c}finally{N(s),Eu(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(ee(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Qe(205,!1)}processInjectorType(t,n,i){if(!(t=q(t)))return!1;let r=Ct(t);const s=null==r&&t.ngModule||void 0,c=void 0===s?t:s,f=-1!==i.indexOf(c);if(void 0!==s&&(r=Ct(s)),null==r)return!1;if(null!=r.imports&&!f){let L;i.push(c);try{to(r.imports,Y=>{this.processInjectorType(Y,n,i)&&(void 0===L&&(L=[]),L.push(Y))})}finally{}if(void 0!==L)for(let Y=0;Ythis.processProvider(Xe,pe,ke||z))}}this.injectorDefTypes.add(c);const y=Ai(c)||(()=>new c);this.records.set(c,qo(y,Ns));const I=r.providers;if(null!=I&&!f){const L=t;to(I,Y=>this.processProvider(Y,L,I))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=Qo(t=q(t))?t:q(t&&t.provide);const s=function pv(e,t,n){return oh(e)?qo(void 0,e.useValue):qo(rh(e),Ns)}(t);if(Qo(t)||!0!==t.multi)this.records.get(r);else{let c=this.records.get(r);c||(c=qo(void 0,Ns,!0),c.factory=()=>Qa(c.multi),this.records.set(r,c)),r=t,c.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===Ns&&(n.value=dv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=q(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Wl(e){const t=$e(e),n=null!==t?t.factory:Ai(e);if(null!==n)return n;if(e instanceof yi)throw new Qe(204,!1);if(e instanceof Function)return function fv(e){const t=e.length;if(t>0)throw Es(t,"?"),new Qe(204,!1);const n=function Ot(e){const t=e&&(e[Bt]||e[Re]);if(t){const n=function jt(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Qe(204,!1)}function rh(e,t,n){let i;if(Qo(e)){const r=q(e);return Ai(r)||Wl(r)}if(oh(e))i=()=>q(e.useValue);else if(function gv(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Qa(e.deps||[]));else if(function mv(e){return!(!e||!e.useExisting)}(e))i=()=>Bi(q(e.useExisting));else{const r=q(e&&(e.useClass||e.provide));if(!function vv(e){return!!e.deps}(e))return Ai(r)||Wl(r);i=()=>new r(...Qa(e.deps))}return i}function qo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oh(e){return null!==e&&"object"==typeof e&&zm in e}function Qo(e){return"function"==typeof e}let Gr=(()=>{class e{static create(n,i){var r;if(Array.isArray(n))return nh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return nh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new eh,e.\u0275prov=X({token:e,providedIn:"any",factory:()=>Bi(zl)}),e.__NG_ELEMENT_ID__=-1,e})();function xv(e,t){Nt(al(e)[1],qn())}function Zl(e){let t=function _h(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let r;if(ti(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Qe(903,"");r=t.\u0275dir}if(r){if(n){i.push(r);const c=e;c.inputs=ql(e.inputs),c.declaredInputs=ql(e.declaredInputs),c.outputs=ql(e.outputs);const f=r.hostBindings;f&&Pv(e,f);const y=r.viewQuery,I=r.contentQueries;if(y&&Ov(e,y),I&&Iv(e,I),he(e.inputs,r.inputs),he(e.declaredInputs,r.declaredInputs),he(e.outputs,r.outputs),ti(r)&&r.data.animation){const L=e.data;L.animation=(L.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let c=0;c=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=ko(r.hostAttrs,n=ko(n,r.hostAttrs))}}(i)}function ql(e){return e===U?{}:e===z?[]:e}function Ov(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function Iv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function Pv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let ya=null;function Jo(){if(!ya){const e=vt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(ft(bn[i.index])):i.index;if(ae(n)){let bn=null;if(!f&&y&&(bn=function ly(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sy?f[y]:null}"string"==typeof c&&(s+=2)}return null}(e,t,r,i.index)),null!==bn)(bn.__ngLastListenerFn__||bn).__ngNextListenerFn__=s,bn.__ngLastListenerFn__=s,ke=!1;else{s=cc(i,t,Y,s,!1);const Pn=n.listen(At,r,s);pe.push(s,Pn),L&&L.push(r,$t,rt,rt+1)}}else s=cc(i,t,Y,s,!0),At.addEventListener(r,s,c),pe.push(s),L&&L.push(r,$t,rt,c)}else s=cc(i,t,Y,s,!1);const Xe=i.outputs;let dt;if(ke&&null!==Xe&&(dt=Xe[r])){const mt=dt.length;if(mt)for(let At=0;At0;)t=t[15],e--;return t}(e,v.lFrame.contextLView))[8]}(e)}function cy(e,t){let n=null;const i=function __(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r=0}const Oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sf(e){return e.substring(Oi.key,Oi.keyEnd)}function af(e,t){const n=Oi.textEnd;return n===t?-1:(t=Oi.keyEnd=function gy(e,t,n){for(;t32;)t++;return t}(e,Oi.key=t,n),cs(e,t,n))}function cs(e,t,n){for(;t=0;n=af(t,n))wr(e,sf(t),!0)}function Wr(e,t,n,i){const r=st(),s=an(),c=re(2);s.firstUpdatePass&&pf(s,e,c,i),t!==ln&&Ki(r,c,t)&&gf(s,s.data[Hn()],r,r[11],e,r[c+1]=function Ay(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ee(_o(e)))),e}(t,n),i,c)}function Yr(e,t,n,i){const r=an(),s=re(2);r.firstUpdatePass&&pf(r,null,s,i);const c=st();if(n!==ln&&Ki(c,s,n)){const f=r.data[Hn()];if(vf(f,i)&&!ff(r,s)){let y=i?f.classesWithoutHost:f.stylesWithoutHost;null!==y&&(n=le(y,n||"")),rc(r,f,c,n,i)}else!function wy(e,t,n,i,r,s,c,f){r===ln&&(r=z);let y=0,I=0,L=0=e.expandoStartIndex}function pf(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Hn()],c=ff(e,n);vf(s,i)&&null===t&&!c&&(t=!1),t=function by(e,t,n,i){const r=en(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=pc(null,e,t,n,i),t.attrs,i),s=null);else{const c=t.directiveStylingLast;if(-1===c||e[c]!==r)if(n=pc(r,e,t,n,i),null===s){let y=function Cy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==vo(i))return e[zr(i)]}(e,t,i);void 0!==y&&Array.isArray(y)&&(y=pc(null,e,t,y[1],i),y=Hs(y,t.attrs,i),function Ey(e,t,n,i){e[zr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,y))}else s=function Dy(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(I=!0)}else L=n;if(r)if(0!==y){const pe=zr(e[f+1]);e[i+1]=fa(pe,f),0!==pe&&(e[pe+1]=Dl(e[pe+1],i)),e[f+1]=function M_(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=fa(f,0),0!==f&&(e[f+1]=Dl(e[f+1],i)),f=i;else e[i+1]=fa(y,0),0===f?f=i:e[y+1]=Dl(e[y+1],i),y=i;I&&(e[i+1]=El(e[i+1])),rf(e,L,i,!0),rf(e,L,i,!1),function dy(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ho(s,t)>=0&&(n[i+1]=Ml(n[i+1]))}(t,L,e,i,s),c=fa(f,y),s?t.classBindings=c:t.styleBindings=c}(r,s,t,n,c,i)}}function pc(e,t,n,i,r){let s=null;const c=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const y=e[r],I=Array.isArray(y),L=I?y[1]:y,Y=null===L;let pe=n[r+1];pe===ln&&(pe=Y?z:void 0);let ke=Y?Ka(pe,i):L===i?pe:void 0;if(I&&!Aa(ke)&&(ke=Ka(y,i)),Aa(ke)&&(f=ke,c))return f;const Xe=e[r+1];r=c?zr(Xe):vo(Xe)}if(null!==t){let y=s?t.residualClasses:t.residualStyles;null!=y&&(f=Ka(y,i))}return f}function Aa(e){return void 0!==e}function vf(e,t){return 0!=(e.flags&(t?16:32))}function yf(e,t=""){const n=st(),i=an(),r=e+20,s=i.firstCreatePass?Yo(i,r,1,t,null):i.data[r],c=n[r]=function pl(e,t){return ae(e)?e.createText(t):e.createTextNode(t)}(n[11],t);da(i,n,c,s),Ui(s,!1)}function mc(e){return Ta("",e,""),mc}function Ta(e,t,n){const i=st(),r=es(i,e,t,n);return r!==ln&&yo(i,Hn(),r),Ta}function gc(e,t,n,i,r){const s=st(),c=function ts(e,t,n,i,r,s){const f=So(e,b(),n,r);return re(2),f?t+G(n)+i+G(r)+s:ln}(s,e,t,n,i,r);return c!==ln&&yo(s,Hn(),c),gc}function _c(e,t,n,i,r,s,c){const f=st(),y=ns(f,e,t,n,i,r,s,c);return y!==ln&&yo(f,Hn(),y),_c}function Af(e,t,n){Yr(wr,lo,es(st(),e,t,n),!0)}function vc(e,t,n){const i=st();return Ki(i,$(),t)&&Ar(an(),jn(),i,e,t,i[11],n,!0),vc}function yc(e,t,n){const i=st();if(Ki(i,$(),t)){const s=an(),c=jn();Ar(s,c,i,e,t,Qd(en(s.data),c,i),n,!0)}return yc}const Oo=void 0;var $y=["en",[["a","p"],["AM","PM"],Oo],[["AM","PM"],Oo,Oo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oo,"{1} 'at' {0}",Oo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let us={};function bc(e){const t=function Wy(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Nf(t);if(n)return n;const i=t.split("-")[0];if(n=Nf(i),n)return n;if("en"===i)return $y;throw new Error(`Missing locale data for the locale "${e}".`)}function Lf(e){return bc(e)[Qt.PluralCase]}function Nf(e){return e in us||(us[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),us[e]}var Qt=(()=>((Qt=Qt||{})[Qt.LocaleId=0]="LocaleId",Qt[Qt.DayPeriodsFormat=1]="DayPeriodsFormat",Qt[Qt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qt[Qt.DaysFormat=3]="DaysFormat",Qt[Qt.DaysStandalone=4]="DaysStandalone",Qt[Qt.MonthsFormat=5]="MonthsFormat",Qt[Qt.MonthsStandalone=6]="MonthsStandalone",Qt[Qt.Eras=7]="Eras",Qt[Qt.FirstDayOfWeek=8]="FirstDayOfWeek",Qt[Qt.WeekendRange=9]="WeekendRange",Qt[Qt.DateFormat=10]="DateFormat",Qt[Qt.TimeFormat=11]="TimeFormat",Qt[Qt.DateTimeFormat=12]="DateTimeFormat",Qt[Qt.NumberSymbols=13]="NumberSymbols",Qt[Qt.NumberFormats=14]="NumberFormats",Qt[Qt.CurrencyCode=15]="CurrencyCode",Qt[Qt.CurrencySymbol=16]="CurrencySymbol",Qt[Qt.CurrencyName=17]="CurrencyName",Qt[Qt.Currencies=18]="Currencies",Qt[Qt.Directionality=19]="Directionality",Qt[Qt.PluralCase=20]="PluralCase",Qt[Qt.ExtraData=21]="ExtraData",Qt))();const xa="en-US";let Bf=xa;function Dc(e,t,n,i,r){if(e=q(e),Array.isArray(e))for(let s=0;s>20;if(Qo(e)||!e.multi){const ke=new Ir(y,r,Us),Xe=wc(f,t,r?L:L+pe,Y);-1===Xe?(wt(V(I,c),s,f),Mc(s,e,t.length),t.push(f),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(ke),c.push(ke)):(n[Xe]=ke,c[Xe]=ke)}else{const ke=wc(f,t,L+pe,Y),Xe=wc(f,t,L,L+pe),dt=ke>=0&&n[ke],mt=Xe>=0&&n[Xe];if(r&&!mt||!r&&!dt){wt(V(I,c),s,f);const At=function Gb(e,t,n,i,r){const s=new Ir(e,n,Us);return s.multi=[],s.index=t,s.componentProviders=0,lp(s,r,i&&!n),s}(r?zb:jb,n.length,r,i,y);!r&&mt&&(n[Xe].providerFactory=At),Mc(s,e,t.length,0),t.push(f),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(At),c.push(At)}else Mc(s,e,ke>-1?ke:Xe,lp(n[r?Xe:ke],y,!r&&i));!r&&i&&mt&&n[Xe].componentProviders++}}}function Mc(e,t,n,i){const r=Qo(t),s=function _v(e){return!!e.useClass}(t);if(r||s){const y=(s?q(t.useClass):t).prototype.ngOnDestroy;if(y){const I=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const L=I.indexOf(n);-1===L?I.push(n,[i,y]):I[L+1].push(i,y)}else I.push(n,y)}}}function lp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wc(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function Hb(e,t,n){const i=an();if(i.firstCreatePass){const r=ti(e);Dc(n,i.data,i.blueprint,r,!0),Dc(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class up{}class Yb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${ee(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ra=(()=>{class e{}return e.NULL=new Yb,e})();function Kb(){return hs(qn(),st())}function hs(e,t){return new Ws(Gt(e,t))}let Ws=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Kb,e})();function Zb(e){return e instanceof Ws?e.nativeElement:e}class hp{}let qb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Jb(){const e=st(),n=Un(qn().index,e);return function Qb(e){return e[11]}(Zn(n)?n:e)}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=X({token:e,providedIn:"root",factory:()=>null}),e})();class fp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const e0=new fp("13.2.5"),Tc={};function ka(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(ft(s)),Ei(s))for(let f=10;f-1&&(gl(t,i),ta(n,i))}this._attachedToViewContainer=!1}id(this._lView[1],this._lView)}onDestroy(t){Vd(this._lView[1],this._lView,null,t)}markForCheck(){Vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function sv(e,t,n){a(!0);try{Hl(e,t,n)}finally{a(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Qe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function n_(e,t){ks(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Qe(902,"");this._appRef=t}}class t0 extends Ys{constructor(t){super(t),this._view=t}detectChanges(){Kd(this._view)}checkNoChanges(){!function av(e){a(!0);try{Kd(e)}finally{a(!1)}}(this._view)}get context(){return null}}class pp extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=tn(t);return new xc(n,this.ngModule)}}function mp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class xc extends up{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function E_(e){return e.map(C_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function r0(e,t){return{get:(n,i,r)=>{const s=e.get(n,Tc,r);return s!==Tc||i===Tc?s:t.get(n,i,r)}}}(t,r.injector):t,c=s.get(hp,We),f=s.get(Xb,null),y=c.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",L=i?function Bd(e,t,n){if(ae(e))return e.selectRootElement(t,n===It.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(y,i,this.componentDef.encapsulation):ml(c.createRenderer(null,this.componentDef),I,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(I)),Y=this.componentDef.onPush?576:528,pe=function gh(e,t){return{components:[],scheduler:e||Zg,clean:lv,playerHandler:t||null,flags:0}}(),ke=ga(0,null,null,1,0,null,null,null,null,null),Xe=Fs(null,ke,pe,Y,null,null,c,y,f,s);let dt,mt;Wn(Xe);try{const At=function ph(e,t,n,i,r,s){const c=n[1];n[20]=e;const y=Yo(c,20,2,"#host",null),I=y.mergedAttrs=t.hostAttrs;null!==I&&(va(y,I,!0),null!==e&&(Ro(r,e,I),null!==y.classes&&Cl(r,e,y.classes),null!==y.styles&&md(r,e,y.styles)));const L=i.createRenderer(e,t),Y=Fs(n,Ld(t),null,t.onPush?64:16,n[20],y,i,L,s||null,null);return c.firstCreatePass&&(wt(V(y,n),c,t.type),Gd(c,y),$d(y,n.length,1)),_a(n,Y),n[20]=Y}(L,this.componentDef,Xe,c,y);if(L)if(i)Ro(y,L,["ng-version",e0.full]);else{const{attrs:rt,classes:$t}=function D_(e){const t=[],n=[];let i=1,r=2;for(;i0&&Cl(y,L,$t.join(" "))}if(mt=_n(ke,20),void 0!==n){const rt=mt.projection=[];for(let $t=0;$ty(c,t)),t.contentQueries){const y=qn();t.contentQueries(1,c,y.directiveStart)}const f=qn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(vi(f.index),jd(n[1],f,0,f.directiveStart,f.directiveEnd,t),zd(t,c)),c}(At,this.componentDef,Xe,pe,[xv]),Ls(ke,Xe,null)}finally{Hi()}return new s0(this.componentType,dt,hs(mt,Xe),Xe,mt)}}class s0 extends class $b{}{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new t0(r),this.componentType=t}get injector(){return new Lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class fs{}class gp{}const ps=new Map;class yp extends fs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pp(this);const i=zn(t);this._bootstrapComponents=io(i.bootstrap),this._r3Injector=ih(t,n,[{provide:fs,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],ee(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Gr.THROW_IF_NOT_FOUND,i=S.Default){return t===Gr||t===fs||t===zl?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sc extends gp{constructor(t){super(),this.moduleType=t,null!==zn(t)&&function l0(e){const t=new Set;!function n(i){const r=zn(i,!0),s=r.id;null!==s&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ee(t)} vs ${ee(t.name)}`)}(s,ps.get(s),i),ps.set(s,i));const c=io(r.imports);for(const f of c)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new yp(this.moduleType,t)}}function bp(e,t,n,i){return Cp(st(),u(),e,t,n,i)}function Cp(e,t,n,i,r,s){const c=t+n;return Ki(e,c,r)?function so(e,t,n){return e[t]=n}(e,c+1,s?i.call(s,r):i(r)):function Ks(e,t){const n=e[t];return n===ln?void 0:n}(e,c+1)}function Ap(e,t){const n=an();let i;const r=e+20;n.firstCreatePass?(i=function v0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=Ai(i.type)),c=N(Us);try{const f=ys(!1),y=s();return ys(f),function Uv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,st(),r,y),y}finally{N(c)}}function Tp(e,t,n){const i=e+20,r=st(),s=In(r,i);return function Zs(e,t){return e[1].data[t].pure}(r,i)?Cp(r,u(),t,s.transform,n,s):s.transform(n)}function Oc(e){return t=>{setTimeout(e,void 0,t)}}const co=class D0 extends l.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,c;let f=t,y=n||(()=>null),I=i;if(t&&"object"==typeof t){const Y=t;f=null===(r=Y.next)||void 0===r?void 0:r.bind(Y),y=null===(s=Y.error)||void 0===s?void 0:s.bind(Y),I=null===(c=Y.complete)||void 0===c?void 0:c.bind(Y)}this.__isAsync&&(y=Oc(y),f&&(f=Oc(f)),I&&(I=Oc(I)));const L=super.subscribe({next:f,error:y,complete:I});return t instanceof o.w0&&t.add(L),L}};function M0(){return this._results[Jo()]()}class Fa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Jo(),i=Fa.prototype;i[n]||(i[n]=M0)}get changes(){return this._changes||(this._changes=new co)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=Rr(t);(this._changesDetected=!function Pm(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=T0,e})();const w0=qs,A0=class extends w0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Fs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),Ls(n,i,t),new Ys(i)}};function T0(){return La(qn(),st())}function La(e,t){return 4&e.type?new A0(t,e,hs(e,t)):null}let Na=(()=>{class e{}return e.__NG_ELEMENT_ID__=x0,e})();function x0(){return Op(qn(),st())}const S0=Na,xp=class extends S0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return hs(this._hostTNode,this._hostLView)}get injector(){return new Lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Fo(t)){const n=fo(t,this._hostLView),i=Co(t);return new Lo(n[1].data[i+8],n)}return new Lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Sp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const c=t&&!function Cs(e){return"function"==typeof e}(t);let f;if(c)f=n;else{const Y=n||{};f=Y.index,i=Y.injector,r=Y.projectableNodes,s=Y.ngModuleRef}const y=c?t:new xc(tn(t)),I=i||this.parentInjector;if(!s&&null==y.ngModule){const pe=(c?I:this.parentInjector).get(fs,null);pe&&(s=pe)}const L=y.create(I,r,void 0,s);return this.insert(L.hostView,f),L}insert(t,n){const i=t._lView,r=i[1];if(function ki(e){return Ei(e[3])}(i)){const L=this.indexOf(t);if(-1!==L)this.detach(L);else{const Y=i[3],pe=new xp(Y,Y[6],Y[3]);pe.detach(pe.indexOf(t))}}const s=this._adjustIndex(n),c=this._lContainer;!function r_(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i0)i.push(c[f/2]);else{const I=s[f+1],L=t[-y];for(let Y=10;Y{class e{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:f,error:y})});n.push(c)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Bi(nm,8))},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const im=new yi("AppId",{providedIn:"root",factory:function rm(){return`${zc()}${zc()}${zc()}`}});function zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const om=new yi("Platform Initializer"),sm=new yi("Platform ID"),am=new yi("appBootstrapListener");let lm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac}),e})();const Gc=new yi("LocaleId",{providedIn:"root",factory:()=>Mu(Gc,S.Optional|S.SkipSelf)||function tC(){return"undefined"!=typeof $localize&&$localize.locale||xa}()}),nC=new yi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class iC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rC=(()=>{class e{compileModuleSync(n){return new Sc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=io(zn(n).declarations).reduce((c,f)=>{const y=tn(f);return y&&c.push(new xc(y)),c},[]);return new iC(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $c(e){"undefined"==typeof Zone?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Kr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new co(!1),this.onMicrotaskEmpty=new co(!1),this.onStable=new co(!1),this.onError=new co(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function aC(){let e=vt.requestAnimationFrame,t=vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Yc(e),e.isCheckStableRunning=!0,Wc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Yc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,c,f)=>{try{return cm(e),n.invokeTask(r,s,c,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,i,r,s,c,f,y)=>{try{return cm(e),n.invoke(r,s,c,f,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Yc(e),Wc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Kr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,c=s.scheduleEventTask("NgZoneEvent: "+r,t,lC,Ua,Ua);try{return s.runTask(c,n,i)}finally{s.cancelTask(c)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function Wc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,Wc(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new co,this.onMicrotaskEmpty=new co,this.onStable=new co,this.onError=new co}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let dm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Kr.assertNotInAngularZone(),$c(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$c(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(Bi(Kr))},e.\u0275prov=X({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map,Kc.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Kc.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function fC(e){Kc=e}let Zr,Kc=new hC;const fm=new yi("AllowMultipleToken");class gC{constructor(t,n){this.name=t,this.token=n}}function pm(e,t,n=[]){const i=`Platform: ${t}`,r=new yi(i);return(s=[])=>{let c=mm();if(!c||c.injector.get(fm,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const f=n.concat(s).concat({provide:r,useValue:!0},{provide:Gl,useValue:"platform"});!function _C(e){if(Zr&&!Zr.destroyed&&!Zr.injector.get(fm,!1))throw new Qe(400,"");Zr=e.get(gm);const t=e.get(om,null);t&&t.forEach(n=>n())}(Gr.create({providers:f,name:i}))}return function vC(e){const t=mm();if(!t)throw new Qe(401,"");return t}()}}function mm(){return Zr&&!Zr.destroyed?Zr:null}let gm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const f=function yC(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new Kr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),y=[{provide:Kr,useValue:f}];return f.run(()=>{const I=Gr.create({providers:y,parent:this.injector,name:n.moduleType.name}),L=n.create(I),Y=L.injector.get(ca,null);if(!Y)throw new Qe(402,"");return f.runOutsideAngular(()=>{const pe=f.onError.subscribe({next:ke=>{Y.handleError(ke)}});L.onDestroy(()=>{qc(this._modules,L),pe.unsubscribe()})}),function bC(e,t,n){try{const i=n();return sc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(Y,f,()=>{const pe=L.injector.get(jc);return pe.runInitializers(),pe.donePromise.then(()=>(function qy(e){Ht(e,"Expected localeId to be defined"),"string"==typeof e&&(Bf=e.toLowerCase().replace(/_/g,"-"))}(L.injector.get(Gc,xa)||xa),this._moduleDoBootstrap(L),L))})})}bootstrapModule(n,i=[]){const r=_m({},i);return function pC(e,t,n){const i=new Sc(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(Zc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Qe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Qe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Bi(Gr))},e.\u0275prov=X({token:e,factory:e.\u0275fac}),e})();function _m(e,t){return Array.isArray(t)?t.reduce(_m,e):Object.assign(Object.assign({},e),t)}let Zc=(()=>{class e{constructor(n,i,r,s,c){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const f=new m.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),y=new m.y(I=>{let L;this._zone.runOutsideAngular(()=>{L=this._zone.onStable.subscribe(()=>{Kr.assertNotInAngularZone(),$c(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const Y=this._zone.onUnstable.subscribe(()=>{Kr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{L.unsubscribe(),Y.unsubscribe()}});this.isStable=(0,K.T)(f,y.pipe(function de(e={}){const{connector:t=(()=>new l.x),resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return s=>{let c=null,f=null,y=null,I=0,L=!1,Y=!1;const pe=()=>{null==f||f.unsubscribe(),f=null},ke=()=>{pe(),c=y=null,L=Y=!1},Xe=()=>{const dt=c;ke(),null==dt||dt.unsubscribe()};return(0,Ee.e)((dt,mt)=>{I++,!Y&&!L&&pe();const At=y=null!=y?y:t();mt.add(()=>{I--,0===I&&!Y&&!L&&(f=ne(Xe,r))}),At.subscribe(mt),c||(c=new Me.Hp({next:rt=>At.next(rt),error:rt=>{Y=!0,pe(),f=ne(ke,n,rt),At.error(rt)},complete:()=>{L=!0,pe(),f=ne(ke,i),At.complete()}}),(0,ue.D)(dt).subscribe(c))})(s)}}()))}bootstrap(n,i){if(!this._initStatus.done)throw new Qe(405,"");let r;r=n instanceof up?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=function mC(e){return e.isBoundToModule}(r)?void 0:this._injector.get(fs),f=r.create(Gr.NULL,[],i||r.selector,s),y=f.location.nativeElement,I=f.injector.get(dm,null),L=I&&f.injector.get(hm);return I&&L&&L.registerApplication(y,I),f.onDestroy(()=>{this.detachView(f.hostView),qc(this.components,f),L&&L.unregisterApplication(y)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Qe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;qc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(am,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Bi(Kr),Bi(Gr),Bi(ca),Bi(Ra),Bi(jc))},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ym=!0;function EC(){ym=!1}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=MC,e})();function MC(e){return function wC(e,t,n){if(qi(e)&&!n){const i=Un(e.index,t);return new Ys(i,i)}return 47&e.type?new Ys(t[16],t):null}(qn(),st(),16==(16&e))}class Mm{constructor(){}supports(t){return Bs(t)}create(t){return new IC(t)}}const OC=(e,t)=>t;class IC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const c=!i||n&&n.currentIndex{c=this._trackByFn(r,f),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,f,c,r)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,c,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new PC(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new wm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class PC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class wm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new RC,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Am(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,c=r._next;return s&&(s._next=c),c&&(c._prev=s),r._next=null,r._prev=null,r}const i=new FC(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class FC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function xm(){return new tu([new Mm])}let tu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Qe(901,"")}}return e.\u0275prov=X({token:e,providedIn:"root",factory:xm}),e})();function Sm(){return new nu([new Tm])}let nu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new Qe(901,"")}}return e.\u0275prov=X({token:e,providedIn:"root",factory:Sm}),e})();const BC=pm(null,"core",[{provide:sm,useValue:"unknown"},{provide:gm,deps:[Gr]},{provide:hm,deps:[]},{provide:lm,deps:[]}]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Bi(Zc))},e.\u0275mod=Pe({type:e}),e.\u0275inj=je({}),e})()},2382:(Ye,be,C)=>{C.d(be,{Zs:()=>T,sg:()=>ar,u5:()=>Un,Cf:()=>me,JU:()=>Fe,a5:()=>lt,JL:()=>N,F:()=>vn,kI:()=>ye,_Y:()=>On});var l=C(4893),m=(C(9808),C(8306)),K=C(4742),ue=C(8421),Q=C(3269),Me=C(5403),Ee=C(3268),de=C(1810),se=C(2076),he=C(4004);const Fe=new l.OlP("NgValueAccessor");function G(x){return null==x||0===x.length}function J(x){return null!=x&&"number"==typeof x.length}const me=new l.OlP("NgValidators"),xe=new l.OlP("NgAsyncValidators"),Be=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ye{static min(M){return function we(x){return M=>{if(G(M.value)||G(x))return null;const v=parseFloat(M.value);return!isNaN(v)&&v{if(G(M.value)||G(x))return null;const v=parseFloat(M.value);return!isNaN(v)&&v>x?{max:{max:x,actual:M.value}}:null}}(M)}static required(M){return Te(M)}static requiredTrue(M){return nt(M)}static email(M){return function Le(x){return G(x.value)||Be.test(x.value)?null:{email:!0}}(M)}static minLength(M){return function Et(x){return M=>G(M.value)||!J(M.value)?null:M.value.lengthJ(M.value)&&M.value.length>x?{maxlength:{requiredLength:x,actualLength:M.value.length}}:null}(M)}static pattern(M){return function Xt(x){if(!x)return bt;let M,v;return"string"==typeof x?(v="","^"!==x.charAt(0)&&(v+="^"),v+=x,"$"!==x.charAt(x.length-1)&&(v+="$"),M=new RegExp(v)):(v=x.toString(),M=x),H=>{if(G(H.value))return null;const Ke=H.value;return M.test(Ke)?null:{pattern:{requiredPattern:v,actualValue:Ke}}}}(M)}static nullValidator(M){return null}static compose(M){return sn(M)}static composeAsync(M){return ze(M)}}function Te(x){return G(x.value)?{required:!0}:null}function nt(x){return!0===x.value?null:{required:!0}}function bt(x){return null}function kt(x){return null!=x}function Yt(x){const M=(0,l.QGY)(x)?(0,se.D)(x):x;return(0,l.CqO)(M),M}function Rt(x){let M={};return x.forEach(v=>{M=null!=v?Object.assign(Object.assign({},M),v):M}),0===Object.keys(M).length?null:M}function gn(x,M){return M.map(v=>v(x))}function St(x){return x.map(M=>function Ht(x){return!x.validate}(M)?M:v=>M.validate(v))}function sn(x){if(!x)return null;const M=x.filter(kt);return 0==M.length?null:function(v){return Rt(gn(v,M))}}function et(x){return null!=x?sn(St(x)):null}function ze(x){if(!x)return null;const M=x.filter(kt);return 0==M.length?null:function(v){return function ne(...x){const M=(0,Q.jO)(x),{args:v,keys:H}=(0,K.D)(x),Ke=new m.y(Dt=>{const{length:Mn}=v;if(!Mn)return void Dt.complete();const _i=new Array(Mn);let $i=Mn,Li=Mn;for(let st=0;st{an||(an=!0,Li--),_i[st]=Xr},()=>$i--,void 0,()=>{(!$i||!an)&&(Li||Dt.next(H?(0,de.n)(H,_i):_i),Dt.complete())}))}});return M?Ke.pipe((0,Ee.Z)(M)):Ke}(gn(v,M).map(Yt)).pipe((0,he.U)(Rt))}}function X(x){return null!=x?ze(St(x)):null}function Z(x,M){return null===x?[M]:Array.isArray(x)?[...x,M]:[x,M]}function je(x){return x._rawValidators}function $e(x){return x._rawAsyncValidators}function ct(x){return x?Array.isArray(x)?x:[x]:[]}function Ot(x,M){return Array.isArray(x)?x.includes(M):x===M}function jt(x,M){const v=ct(M);return ct(x).forEach(Ke=>{Ot(v,Ke)||v.push(Ke)}),v}function Ct(x,M){return ct(M).filter(v=>!Ot(x,v))}class Bt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(M){this._rawValidators=M||[],this._composedValidatorFn=et(this._rawValidators)}_setAsyncValidators(M){this._rawAsyncValidators=M||[],this._composedAsyncValidatorFn=X(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(M){this._onDestroyCallbacks.push(M)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(M=>M()),this._onDestroyCallbacks=[]}reset(M){this.control&&this.control.reset(M)}hasError(M,v){return!!this.control&&this.control.hasError(M,v)}getError(M,v){return this.control?this.control.getError(M,v):null}}class lt extends Bt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Re extends Bt{get formDirective(){return null}get path(){return null}}let N=(()=>{class x extends class E{constructor(M){this._cd=M}is(M){var v,H,Ke;return"submitted"===M?!!(null===(v=this._cd)||void 0===v?void 0:v.submitted):!!(null===(Ke=null===(H=this._cd)||void 0===H?void 0:H.control)||void 0===Ke?void 0:Ke[M])}}{constructor(v){super(v)}}return x.\u0275fac=function(v){return new(v||x)(l.Y36(Re,10))},x.\u0275dir=l.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(v,H){2&v&&l.ekj("ng-untouched",H.is("untouched"))("ng-touched",H.is("touched"))("ng-pristine",H.is("pristine"))("ng-dirty",H.is("dirty"))("ng-valid",H.is("valid"))("ng-invalid",H.is("invalid"))("ng-pending",H.is("pending"))("ng-submitted",H.is("submitted"))},features:[l.qOj]}),x})();function fe(x,M){qt(x,M),M.valueAccessor.writeValue(x.value),function Mt(x,M){M.valueAccessor.registerOnChange(v=>{x._pendingValue=v,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ue(x,M)})}(x,M),function ve(x,M){const v=(H,Ke)=>{M.valueAccessor.writeValue(H),Ke&&M.viewToModelUpdate(H)};x.registerOnChange(v),M._registerOnDestroy(()=>{x._unregisterOnChange(v)})}(x,M),function kn(x,M){M.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ue(x,M),"submit"!==x.updateOn&&x.markAsTouched()})}(x,M),function Tt(x,M){if(M.valueAccessor.setDisabledState){const v=H=>{M.valueAccessor.setDisabledState(H)};x.registerOnDisabledChange(v),M._registerOnDestroy(()=>{x._unregisterOnDisabledChange(v)})}}(x,M)}function Oe(x,M,v=!0){const H=()=>{};M.valueAccessor&&(M.valueAccessor.registerOnChange(H),M.valueAccessor.registerOnTouched(H)),Zt(x,M),x&&(M._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function at(x,M){x.forEach(v=>{v.registerOnValidatorChange&&v.registerOnValidatorChange(M)})}function qt(x,M){const v=je(x);null!==M.validator?x.setValidators(Z(v,M.validator)):"function"==typeof v&&x.setValidators([v]);const H=$e(x);null!==M.asyncValidator?x.setAsyncValidators(Z(H,M.asyncValidator)):"function"==typeof H&&x.setAsyncValidators([H]);const Ke=()=>x.updateValueAndValidity();at(M._rawValidators,Ke),at(M._rawAsyncValidators,Ke)}function Zt(x,M){let v=!1;if(null!==x){if(null!==M.validator){const Ke=je(x);if(Array.isArray(Ke)&&Ke.length>0){const Dt=Ke.filter(Mn=>Mn!==M.validator);Dt.length!==Ke.length&&(v=!0,x.setValidators(Dt))}}if(null!==M.asyncValidator){const Ke=$e(x);if(Array.isArray(Ke)&&Ke.length>0){const Dt=Ke.filter(Mn=>Mn!==M.asyncValidator);Dt.length!==Ke.length&&(v=!0,x.setAsyncValidators(Dt))}}}const H=()=>{};return at(M._rawValidators,H),at(M._rawAsyncValidators,H),v}function Ue(x,M){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),M.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function ie(x,M){qt(x,M)}function tn(x,M){x._syncPendingControls(),M.forEach(v=>{const H=v.control;"submit"===H.updateOn&&H._pendingChange&&(v.viewToModelUpdate(H._pendingValue),H._pendingChange=!1)})}function En(x,M){const v=x.indexOf(M);v>-1&&x.splice(v,1)}const Yn="VALID",Ci="INVALID",ai="PENDING",pi="DISABLED";function zi(x){return(mn(x)?x.validators:x)||null}function Gn(x){return Array.isArray(x)?et(x):x||null}function pt(x,M){return(mn(M)?M.asyncValidators:x)||null}function Jt(x){return Array.isArray(x)?X(x):x||null}function mn(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}const Ln=x=>x instanceof zt,li=x=>x instanceof di;function ui(x){return Ln(x)?x.value:x.getRawValue()}function nn(x,M){const v=li(x),H=x.controls;if(!(v?Object.keys(H):H).length)throw new l.vHH(1e3,"");if(!H[M])throw new l.vHH(1001,"")}function Kn(x,M){li(x),x._forEachChild((H,Ke)=>{if(void 0===M[Ke])throw new l.vHH(1002,"")})}class mi{constructor(M,v){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=M,this._rawAsyncValidators=v,this._composedValidatorFn=Gn(this._rawValidators),this._composedAsyncValidatorFn=Jt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(M){this._rawValidators=this._composedValidatorFn=M}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(M){this._rawAsyncValidators=this._composedAsyncValidatorFn=M}get parent(){return this._parent}get valid(){return this.status===Yn}get invalid(){return this.status===Ci}get pending(){return this.status==ai}get disabled(){return this.status===pi}get enabled(){return this.status!==pi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(M){this._rawValidators=M,this._composedValidatorFn=Gn(M)}setAsyncValidators(M){this._rawAsyncValidators=M,this._composedAsyncValidatorFn=Jt(M)}addValidators(M){this.setValidators(jt(M,this._rawValidators))}addAsyncValidators(M){this.setAsyncValidators(jt(M,this._rawAsyncValidators))}removeValidators(M){this.setValidators(Ct(M,this._rawValidators))}removeAsyncValidators(M){this.setAsyncValidators(Ct(M,this._rawAsyncValidators))}hasValidator(M){return Ot(this._rawValidators,M)}hasAsyncValidator(M){return Ot(this._rawAsyncValidators,M)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(M={}){this.touched=!0,this._parent&&!M.onlySelf&&this._parent.markAsTouched(M)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(M=>M.markAllAsTouched())}markAsUntouched(M={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(v=>{v.markAsUntouched({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}markAsDirty(M={}){this.pristine=!1,this._parent&&!M.onlySelf&&this._parent.markAsDirty(M)}markAsPristine(M={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(v=>{v.markAsPristine({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}markAsPending(M={}){this.status=ai,!1!==M.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!M.onlySelf&&this._parent.markAsPending(M)}disable(M={}){const v=this._parentMarkedDirty(M.onlySelf);this.status=pi,this.errors=null,this._forEachChild(H=>{H.disable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this._updateValue(),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:v})),this._onDisabledChange.forEach(H=>H(!0))}enable(M={}){const v=this._parentMarkedDirty(M.onlySelf);this.status=Yn,this._forEachChild(H=>{H.enable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:v})),this._onDisabledChange.forEach(H=>H(!1))}_updateAncestors(M){this._parent&&!M.onlySelf&&(this._parent.updateValueAndValidity(M),M.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(M){this._parent=M}updateValueAndValidity(M={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yn||this.status===ai)&&this._runAsyncValidator(M.emitEvent)),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!M.onlySelf&&this._parent.updateValueAndValidity(M)}_updateTreeValidity(M={emitEvent:!0}){this._forEachChild(v=>v._updateTreeValidity(M)),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pi:Yn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(M){if(this.asyncValidator){this.status=ai,this._hasOwnPendingAsyncValidator=!0;const v=Yt(this.asyncValidator(this));this._asyncValidationSubscription=v.subscribe(H=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(H,{emitEvent:M})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(M,v={}){this.errors=M,this._updateControlsErrors(!1!==v.emitEvent)}get(M){return function Nn(x,M,v){if(null==M||(Array.isArray(M)||(M=M.split(v)),Array.isArray(M)&&0===M.length))return null;let H=x;return M.forEach(Ke=>{H=li(H)?H.controls.hasOwnProperty(Ke)?H.controls[Ke]:null:(x=>x instanceof Xn)(H)&&H.at(Ke)||null}),H}(this,M,".")}getError(M,v){const H=v?this.get(v):this;return H&&H.errors?H.errors[M]:null}hasError(M,v){return!!this.getError(M,v)}get root(){let M=this;for(;M._parent;)M=M._parent;return M}_updateControlsErrors(M){this.status=this._calculateStatus(),M&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(M)}_initObservables(){this.valueChanges=new l.vpe,this.statusChanges=new l.vpe}_calculateStatus(){return this._allControlsDisabled()?pi:this.errors?Ci:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ai)?ai:this._anyControlsHaveStatus(Ci)?Ci:Yn}_anyControlsHaveStatus(M){return this._anyControls(v=>v.status===M)}_anyControlsDirty(){return this._anyControls(M=>M.dirty)}_anyControlsTouched(){return this._anyControls(M=>M.touched)}_updatePristine(M={}){this.pristine=!this._anyControlsDirty(),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}_updateTouched(M={}){this.touched=this._anyControlsTouched(),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}_isBoxedValue(M){return"object"==typeof M&&null!==M&&2===Object.keys(M).length&&"value"in M&&"disabled"in M}_registerOnCollectionChange(M){this._onCollectionChange=M}_setUpdateStrategy(M){mn(M)&&null!=M.updateOn&&(this._updateOn=M.updateOn)}_parentMarkedDirty(M){return!M&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class zt extends mi{constructor(M=null,v,H){super(zi(v),pt(H,v)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(M),this._setUpdateStrategy(v),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mn(v)&&v.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(M)?M.value:M)}setValue(M,v={}){this.value=this._pendingValue=M,this._onChange.length&&!1!==v.emitModelToViewChange&&this._onChange.forEach(H=>H(this.value,!1!==v.emitViewToModelChange)),this.updateValueAndValidity(v)}patchValue(M,v={}){this.setValue(M,v)}reset(M=this.defaultValue,v={}){this._applyFormState(M),this.markAsPristine(v),this.markAsUntouched(v),this.setValue(this.value,v),this._pendingChange=!1}_updateValue(){}_anyControls(M){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(M){this._onChange.push(M)}_unregisterOnChange(M){En(this._onChange,M)}registerOnDisabledChange(M){this._onDisabledChange.push(M)}_unregisterOnDisabledChange(M){En(this._onDisabledChange,M)}_forEachChild(M){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(M){this._isBoxedValue(M)?(this.value=this._pendingValue=M.value,M.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=M}}class di extends mi{constructor(M,v,H){super(zi(v),pt(H,v)),this.controls=M,this._initObservables(),this._setUpdateStrategy(v),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(M,v){return this.controls[M]?this.controls[M]:(this.controls[M]=v,v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange),v)}addControl(M,v,H={}){this.registerControl(M,v),this.updateValueAndValidity({emitEvent:H.emitEvent}),this._onCollectionChange()}removeControl(M,v={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],this.updateValueAndValidity({emitEvent:v.emitEvent}),this._onCollectionChange()}setControl(M,v,H={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],v&&this.registerControl(M,v),this.updateValueAndValidity({emitEvent:H.emitEvent}),this._onCollectionChange()}contains(M){return this.controls.hasOwnProperty(M)&&this.controls[M].enabled}setValue(M,v={}){Kn(this,M),Object.keys(M).forEach(H=>{nn(this,H),this.controls[H].setValue(M[H],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}patchValue(M,v={}){null!=M&&(Object.keys(M).forEach(H=>{this.controls[H]&&this.controls[H].patchValue(M[H],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v))}reset(M={},v={}){this._forEachChild((H,Ke)=>{H.reset(M[Ke],{onlySelf:!0,emitEvent:v.emitEvent})}),this._updatePristine(v),this._updateTouched(v),this.updateValueAndValidity(v)}getRawValue(){return this._reduceChildren({},(M,v,H)=>(M[H]=ui(v),M))}_syncPendingControls(){let M=this._reduceChildren(!1,(v,H)=>!!H._syncPendingControls()||v);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){Object.keys(this.controls).forEach(v=>{const H=this.controls[v];H&&M(H,v)})}_setUpControls(){this._forEachChild(M=>{M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(M){for(const v of Object.keys(this.controls)){const H=this.controls[v];if(this.contains(v)&&M(H))return!0}return!1}_reduceValue(){return this._reduceChildren({},(M,v,H)=>((v.enabled||this.disabled)&&(M[H]=v.value),M))}_reduceChildren(M,v){let H=M;return this._forEachChild((Ke,Dt)=>{H=v(H,Ke,Dt)}),H}_allControlsDisabled(){for(const M of Object.keys(this.controls))if(this.controls[M].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Xn extends mi{constructor(M,v,H){super(zi(v),pt(H,v)),this.controls=M,this._initObservables(),this._setUpdateStrategy(v),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(M){return this.controls[M]}push(M,v={}){this.controls.push(M),this._registerControl(M),this.updateValueAndValidity({emitEvent:v.emitEvent}),this._onCollectionChange()}insert(M,v,H={}){this.controls.splice(M,0,v),this._registerControl(v),this.updateValueAndValidity({emitEvent:H.emitEvent})}removeAt(M,v={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),this.updateValueAndValidity({emitEvent:v.emitEvent})}setControl(M,v,H={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),v&&(this.controls.splice(M,0,v),this._registerControl(v)),this.updateValueAndValidity({emitEvent:H.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(M,v={}){Kn(this,M),M.forEach((H,Ke)=>{nn(this,Ke),this.at(Ke).setValue(H,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}patchValue(M,v={}){null!=M&&(M.forEach((H,Ke)=>{this.at(Ke)&&this.at(Ke).patchValue(H,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v))}reset(M=[],v={}){this._forEachChild((H,Ke)=>{H.reset(M[Ke],{onlySelf:!0,emitEvent:v.emitEvent})}),this._updatePristine(v),this._updateTouched(v),this.updateValueAndValidity(v)}getRawValue(){return this.controls.map(M=>ui(M))}clear(M={}){this.controls.length<1||(this._forEachChild(v=>v._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:M.emitEvent}))}_syncPendingControls(){let M=this.controls.reduce((v,H)=>!!H._syncPendingControls()||v,!1);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){this.controls.forEach((v,H)=>{M(v,H)})}_updateValue(){this.value=this.controls.filter(M=>M.enabled||this.disabled).map(M=>M.value)}_anyControls(M){return this.controls.some(v=>v.enabled&&M(v))}_setUpControls(){this._forEachChild(M=>this._registerControl(M))}_allControlsDisabled(){for(const M of this.controls)if(M.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(M){M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)}}const Ii={provide:Re,useExisting:(0,l.Gpc)(()=>vn)},$n=(()=>Promise.resolve(null))();let vn=(()=>{class x extends Re{constructor(v,H){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new l.vpe,this.form=new di({},et(v),X(H))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(v){$n.then(()=>{const H=this._findContainer(v.path);v.control=H.registerControl(v.name,v.control),fe(v.control,v),v.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(v)})}getControl(v){return this.form.get(v.path)}removeControl(v){$n.then(()=>{const H=this._findContainer(v.path);H&&H.removeControl(v.name),this._directives.delete(v)})}addFormGroup(v){$n.then(()=>{const H=this._findContainer(v.path),Ke=new di({});ie(Ke,v),H.registerControl(v.name,Ke),Ke.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(v){$n.then(()=>{const H=this._findContainer(v.path);H&&H.removeControl(v.name)})}getFormGroup(v){return this.form.get(v.path)}updateModel(v,H){$n.then(()=>{this.form.get(v.path).setValue(H)})}setValue(v){this.control.setValue(v)}onSubmit(v){return this.submitted=!0,tn(this.form,this._directives),this.ngSubmit.emit(v),!1}onReset(){this.resetForm()}resetForm(v){this.form.reset(v),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(v){return v.pop(),v.length?this.form.get(v):this.form}}return x.\u0275fac=function(v){return new(v||x)(l.Y36(me,10),l.Y36(xe,10))},x.\u0275dir=l.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(v,H){1&v&&l.NdJ("submit",function(Dt){return H.onSubmit(Dt)})("reset",function(){return H.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([Ii]),l.qOj]}),x})(),On=(()=>{class x{}return x.\u0275fac=function(v){return new(v||x)},x.\u0275dir=l.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),x})(),fr=(()=>{class x{}return x.\u0275fac=function(v){return new(v||x)},x.\u0275mod=l.oAB({type:x}),x.\u0275inj=l.cJS({}),x})();const Sr={provide:Re,useExisting:(0,l.Gpc)(()=>ar)};let ar=(()=>{class x extends Re{constructor(v,H){super(),this.validators=v,this.asyncValidators=H,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new l.vpe,this._setValidators(v),this._setAsyncValidators(H)}ngOnChanges(v){this._checkFormPresent(),v.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Zt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(v){const H=this.form.get(v.path);return fe(H,v),H.updateValueAndValidity({emitEvent:!1}),this.directives.push(v),H}getControl(v){return this.form.get(v.path)}removeControl(v){Oe(v.control||null,v,!1),En(this.directives,v)}addFormGroup(v){this._setUpFormContainer(v)}removeFormGroup(v){this._cleanUpFormContainer(v)}getFormGroup(v){return this.form.get(v.path)}addFormArray(v){this._setUpFormContainer(v)}removeFormArray(v){this._cleanUpFormContainer(v)}getFormArray(v){return this.form.get(v.path)}updateModel(v,H){this.form.get(v.path).setValue(H)}onSubmit(v){return this.submitted=!0,tn(this.form,this.directives),this.ngSubmit.emit(v),!1}onReset(){this.resetForm()}resetForm(v){this.form.reset(v),this.submitted=!1}_updateDomValue(){this.directives.forEach(v=>{const H=v.control,Ke=this.form.get(v.path);H!==Ke&&(Oe(H||null,v),Ln(Ke)&&(fe(Ke,v),v.control=Ke))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(v){const H=this.form.get(v.path);ie(H,v),H.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(v){if(this.form){const H=this.form.get(v.path);H&&function Pe(x,M){return Zt(x,M)}(H,v)&&H.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qt(this.form,this),this._oldForm&&Zt(this._oldForm,this)}_checkFormPresent(){}}return x.\u0275fac=function(v){return new(v||x)(l.Y36(me,10),l.Y36(xe,10))},x.\u0275dir=l.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(v,H){1&v&&l.NdJ("submit",function(Dt){return H.onSubmit(Dt)})("reset",function(){return H.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([Sr]),l.qOj,l.TTD]}),x})(),xn=(()=>{class x{constructor(){this._validator=bt}ngOnChanges(v){if(this.inputName in v){const H=this.normalizeInput(v[this.inputName].currentValue);this._enabled=this.enabled(H),this._validator=this._enabled?this.createValidator(H):bt,this._onChange&&this._onChange()}}validate(v){return this._validator(v)}registerOnValidatorChange(v){this._onChange=v}enabled(v){return null!=v}}return x.\u0275fac=function(v){return new(v||x)},x.\u0275dir=l.lG2({type:x,features:[l.TTD]}),x})();const br={provide:me,useExisting:(0,l.Gpc)(()=>B),multi:!0},A={provide:me,useExisting:(0,l.Gpc)(()=>T),multi:!0};let B=(()=>{class x extends xn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=v=>function ni(x){return null!=x&&!1!==x&&"false"!=`${x}`}(v),this.createValidator=v=>Te}enabled(v){return v}}return x.\u0275fac=function(){let M;return function(H){return(M||(M=l.n5z(x)))(H||x)}}(),x.\u0275dir=l.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(v,H){2&v&&l.uIk("required",H._enabled?"":null)},inputs:{required:"required"},features:[l._Bn([br]),l.qOj]}),x})(),T=(()=>{class x extends B{constructor(){super(...arguments),this.createValidator=v=>nt}}return x.\u0275fac=function(){let M;return function(H){return(M||(M=l.n5z(x)))(H||x)}}(),x.\u0275dir=l.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(v,H){2&v&&l.uIk("required",H._enabled?"":null)},features:[l._Bn([A]),l.qOj]}),x})(),In=(()=>{class x{}return x.\u0275fac=function(v){return new(v||x)},x.\u0275mod=l.oAB({type:x}),x.\u0275inj=l.cJS({imports:[[fr]]}),x})(),Un=(()=>{class x{}return x.\u0275fac=function(v){return new(v||x)},x.\u0275mod=l.oAB({type:x}),x.\u0275inj=l.cJS({imports:[In]}),x})()},7423:(Ye,be,C)=>{C.d(be,{zs:()=>he,lW:()=>se,ot:()=>ee});var l=C(4893),o=C(508),m=C(6360),K=C(9950);const ue=["mat-button",""],Q=["*"],de=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ne=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(le){this._elementRef=le}})));let se=(()=>{class le extends ne{constructor(Ve,q,tt){super(Ve),this._focusMonitor=q,this._animationMode=tt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ze of de)this._hasHostAttributes(Ze)&&this._getHostElement().classList.add(Ze);Ve.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ve,q){Ve?this._focusMonitor.focusVia(this._getHostElement(),Ve,q):this._getHostElement().focus(q)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Ve){return Ve.some(q=>this._getHostElement().hasAttribute(q))}}return le.\u0275fac=function(Ve){return new(Ve||le)(l.Y36(l.SBq),l.Y36(K.tE),l.Y36(m.Qb,8))},le.\u0275cmp=l.Xpm({type:le,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Ve,q){if(1&Ve&&l.Gf(o.wG,5),2&Ve){let tt;l.iGM(tt=l.CRH())&&(q.ripple=tt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Ve,q){2&Ve&&(l.uIk("disabled",q.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===q._animationMode)("mat-button-disabled",q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:ue,ngContentSelectors:Q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Ve,q){1&Ve&&(l.F$t(),l.TgZ(0,"span",0),l.Hsn(1),l.qZA(),l._UZ(2,"span",1)(3,"span",2)),2&Ve&&(l.xp6(2),l.ekj("mat-button-ripple-round",q.isRoundButton||q.isIconButton),l.Q6J("matRippleDisabled",q._isRippleDisabled())("matRippleCentered",q.isIconButton)("matRippleTrigger",q._getHostElement()))},directives:[o.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),le})(),he=(()=>{class le extends se{constructor(Ve,q,tt,Ze){super(q,Ve,tt),this._ngZone=Ze,this._haltDisabledEvents=Qe=>{this.disabled&&(Qe.preventDefault(),Qe.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return le.\u0275fac=function(Ve){return new(Ve||le)(l.Y36(K.tE),l.Y36(l.SBq),l.Y36(m.Qb,8),l.Y36(l.R0b,8))},le.\u0275cmp=l.Xpm({type:le,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(Ve,q){2&Ve&&(l.uIk("tabindex",q.disabled?-1:q.tabIndex||0)("disabled",q.disabled||null)("aria-disabled",q.disabled.toString()),l.ekj("_mat-animation-noopable","NoopAnimations"===q._animationMode)("mat-button-disabled",q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[l.qOj],attrs:ue,ngContentSelectors:Q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Ve,q){1&Ve&&(l.F$t(),l.TgZ(0,"span",0),l.Hsn(1),l.qZA(),l._UZ(2,"span",1)(3,"span",2)),2&Ve&&(l.xp6(2),l.ekj("mat-button-ripple-round",q.isRoundButton||q.isIconButton),l.Q6J("matRippleDisabled",q._isRippleDisabled())("matRippleCentered",q.isIconButton)("matRippleTrigger",q._getHostElement()))},directives:[o.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),le})(),ee=(()=>{class le{}return le.\u0275fac=function(Ve){return new(Ve||le)},le.\u0275mod=l.oAB({type:le}),le.\u0275inj=l.cJS({imports:[[o.si,o.BQ],o.BQ]}),le})()},508:(Ye,be,C)=>{C.d(be,{rD:()=>St,K7:()=>Ge,HF:()=>N,BQ:()=>ge,ey:()=>Kt,Ng:()=>vt,wG:()=>E,si:()=>S,CB:()=>hn,jH:()=>ht,pj:()=>Be,Kr:()=>ye,Id:()=>xe,FD:()=>Se,sb:()=>we});var l=C(4893),o=C(226),K=C(9808),ue=C(925),Q=C(9950),Me=C(3191),Ee=C(7579),de=C(6360),ne=C(1159);function ee(Ne,Ae){if(1&Ne&&l._UZ(0,"mat-pseudo-checkbox",4),2&Ne){const U=l.oxw();l.Q6J("state",U.selected?"checked":"unchecked")("disabled",U.disabled)}}function le(Ne,Ae){if(1&Ne&&(l.TgZ(0,"span",5),l._uU(1),l.qZA()),2&Ne){const U=l.oxw();l.xp6(1),l.hij("(",U.group.label,")")}}const Fe=["*"],Qe=new l.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ze(){return!0}});let ge=(()=>{class Ne{constructor(U,z,W){this._sanityChecks=z,this._document=W,this._hasDoneGlobalChecks=!1,U._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(U){return!(0,ue.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[U])}}return Ne.\u0275fac=function(U){return new(U||Ne)(l.LFG(Q.qm),l.LFG(Qe,8),l.LFG(K.K0))},Ne.\u0275mod=l.oAB({type:Ne}),Ne.\u0275inj=l.cJS({imports:[[o.vT],o.vT]}),Ne})();function xe(Ne){return class extends Ne{constructor(...Ae){super(...Ae),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ae){this._disabled=(0,Me.Ig)(Ae)}}}function Be(Ne,Ae){return class extends Ne{constructor(...U){super(...U),this.defaultColor=Ae,this.color=Ae}get color(){return this._color}set color(U){const z=U||this.defaultColor;z!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),z&&this._elementRef.nativeElement.classList.add(`mat-${z}`),this._color=z)}}}function ye(Ne){return class extends Ne{constructor(...Ae){super(...Ae),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ae){this._disableRipple=(0,Me.Ig)(Ae)}}}function we(Ne,Ae=0){return class extends Ne{constructor(...U){super(...U),this._tabIndex=Ae,this.defaultTabIndex=Ae}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(U){this._tabIndex=null!=U?(0,Me.su)(U):this.defaultTabIndex}}}function Se(Ne){return class extends Ne{constructor(...Ae){super(...Ae),this.stateChanges=new Ee.x,this.errorState=!1}updateErrorState(){const Ae=this.errorState,fe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);fe!==Ae&&(this.errorState=fe,this.stateChanges.next())}}}let St=(()=>{class Ne{isErrorState(U,z){return!!(U&&U.invalid&&(U.touched||z&&z.submitted))}}return Ne.\u0275fac=function(U){return new(U||Ne)},Ne.\u0275prov=l.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();class Z{constructor(Ae,U,z){this._renderer=Ae,this.element=U,this.config=z,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const je={enterDuration:225,exitDuration:150},ct=(0,ue.i$)({passive:!0}),Ot=["mousedown","touchstart"],jt=["mouseup","mouseleave","touchend","touchcancel"];class Ct{constructor(Ae,U,z,W){this._target=Ae,this._ngZone=U,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,W.isBrowser&&(this._containerElement=(0,Me.fI)(z))}fadeInRipple(Ae,U,z={}){const W=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),fe=Object.assign(Object.assign({},je),z.animation);z.centered&&(Ae=W.left+W.width/2,U=W.top+W.height/2);const Oe=z.radius||function lt(Ne,Ae,U){const z=Math.max(Math.abs(Ne-U.left),Math.abs(Ne-U.right)),W=Math.max(Math.abs(Ae-U.top),Math.abs(Ae-U.bottom));return Math.sqrt(z*z+W*W)}(Ae,U,W),at=Ae-W.left,Tt=U-W.top,qt=fe.enterDuration,Zt=document.createElement("div");Zt.classList.add("mat-ripple-element"),Zt.style.left=at-Oe+"px",Zt.style.top=Tt-Oe+"px",Zt.style.height=2*Oe+"px",Zt.style.width=2*Oe+"px",null!=z.color&&(Zt.style.backgroundColor=z.color),Zt.style.transitionDuration=`${qt}ms`,this._containerElement.appendChild(Zt),function Bt(Ne){window.getComputedStyle(Ne).getPropertyValue("opacity")}(Zt),Zt.style.transform="scale(1)";const Mt=new Z(this,Zt,z);return Mt.state=0,this._activeRipples.add(Mt),z.persistent||(this._mostRecentTransientRipple=Mt),this._runTimeoutOutsideZone(()=>{const kn=Mt===this._mostRecentTransientRipple;Mt.state=1,!z.persistent&&(!kn||!this._isPointerDown)&&Mt.fadeOut()},qt),Mt}fadeOutRipple(Ae){const U=this._activeRipples.delete(Ae);if(Ae===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!U)return;const z=Ae.element,W=Object.assign(Object.assign({},je),Ae.config.animation);z.style.transitionDuration=`${W.exitDuration}ms`,z.style.opacity="0",Ae.state=2,this._runTimeoutOutsideZone(()=>{Ae.state=3,z.remove()},W.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ae=>Ae.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ae=>{Ae.config.persistent||Ae.fadeOut()})}setupTriggerEvents(Ae){const U=(0,Me.fI)(Ae);!U||U===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=U,this._registerEvents(Ot))}handleEvent(Ae){"mousedown"===Ae.type?this._onMousedown(Ae):"touchstart"===Ae.type?this._onTouchStart(Ae):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(jt),this._pointerUpEventsRegistered=!0)}_onMousedown(Ae){const U=(0,Q.X6)(Ae),z=this._lastTouchStartEvent&&Date.now(){!Ae.config.persistent&&(1===Ae.state||Ae.config.terminateOnPointerUp&&0===Ae.state)&&Ae.fadeOut()}))}_runTimeoutOutsideZone(Ae,U=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ae,U))}_registerEvents(Ae){this._ngZone.runOutsideAngular(()=>{Ae.forEach(U=>{this._triggerElement.addEventListener(U,this,ct)})})}_removeTriggerEvents(){this._triggerElement&&(Ot.forEach(Ae=>{this._triggerElement.removeEventListener(Ae,this,ct)}),this._pointerUpEventsRegistered&&jt.forEach(Ae=>{this._triggerElement.removeEventListener(Ae,this,ct)}))}}const Re=new l.OlP("mat-ripple-global-options");let E=(()=>{class Ne{constructor(U,z,W,fe,Oe){this._elementRef=U,this._animationMode=Oe,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=fe||{},this._rippleRenderer=new Ct(this,z,U,W)}get disabled(){return this._disabled}set disabled(U){U&&this.fadeOutAllNonPersistent(),this._disabled=U,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(U){this._trigger=U,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(U,z=0,W){return"number"==typeof U?this._rippleRenderer.fadeInRipple(U,z,Object.assign(Object.assign({},this.rippleConfig),W)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),U))}}return Ne.\u0275fac=function(U){return new(U||Ne)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(ue.t4),l.Y36(Re,8),l.Y36(de.Qb,8))},Ne.\u0275dir=l.lG2({type:Ne,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(U,z){2&U&&l.ekj("mat-ripple-unbounded",z.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ne})(),S=(()=>{class Ne{}return Ne.\u0275fac=function(U){return new(U||Ne)},Ne.\u0275mod=l.oAB({type:Ne}),Ne.\u0275inj=l.cJS({imports:[[ge],ge]}),Ne})(),D=(()=>{class Ne{constructor(U){this._animationMode=U,this.state="unchecked",this.disabled=!1}}return Ne.\u0275fac=function(U){return new(U||Ne)(l.Y36(de.Qb,8))},Ne.\u0275cmp=l.Xpm({type:Ne,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(U,z){2&U&&l.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===z.state)("mat-pseudo-checkbox-checked","checked"===z.state)("mat-pseudo-checkbox-disabled",z.disabled)("_mat-animation-noopable","NoopAnimations"===z._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(U,z){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ne})(),P=(()=>{class Ne{}return Ne.\u0275fac=function(U){return new(U||Ne)},Ne.\u0275mod=l.oAB({type:Ne}),Ne.\u0275inj=l.cJS({imports:[[ge]]}),Ne})();const N=new l.OlP("MAT_OPTION_PARENT_COMPONENT"),Ge=new l.OlP("MatOptgroup");let ut=0;class It{constructor(Ae,U=!1){this.source=Ae,this.isUserInput=U}}let rn=(()=>{class Ne{constructor(U,z,W,fe){this._element=U,this._changeDetectorRef=z,this._parent=W,this.group=fe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ut++,this.onSelectionChange=new l.vpe,this._stateChanges=new Ee.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(U){this._disabled=(0,Me.Ig)(U)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(U,z){const W=this._getHostElement();"function"==typeof W.focus&&W.focus(z)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(U){(U.keyCode===ne.K5||U.keyCode===ne.L_)&&!(0,ne.Vb)(U)&&(this._selectViaInteraction(),U.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const U=this.viewValue;U!==this._mostRecentViewValue&&(this._mostRecentViewValue=U,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(U=!1){this.onSelectionChange.emit(new It(this,U))}}return Ne.\u0275fac=function(U){l.$Z()},Ne.\u0275dir=l.lG2({type:Ne,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ne})(),Kt=(()=>{class Ne extends rn{constructor(U,z,W,fe){super(U,z,W,fe)}}return Ne.\u0275fac=function(U){return new(U||Ne)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(N,8),l.Y36(Ge,8))},Ne.\u0275cmp=l.Xpm({type:Ne,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(U,z){1&U&&l.NdJ("click",function(){return z._selectViaInteraction()})("keydown",function(fe){return z._handleKeydown(fe)}),2&U&&(l.Ikx("id",z.id),l.uIk("tabindex",z._getTabIndex())("aria-selected",z._getAriaSelected())("aria-disabled",z.disabled.toString()),l.ekj("mat-selected",z.selected)("mat-option-multiple",z.multiple)("mat-active",z.active)("mat-option-disabled",z.disabled))},exportAs:["matOption"],features:[l.qOj],ngContentSelectors:Fe,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(U,z){1&U&&(l.F$t(),l.YNc(0,ee,1,2,"mat-pseudo-checkbox",0),l.TgZ(1,"span",1),l.Hsn(2),l.qZA(),l.YNc(3,le,2,1,"span",2),l._UZ(4,"div",3)),2&U&&(l.Q6J("ngIf",z.multiple),l.xp6(3),l.Q6J("ngIf",z.group&&z.group._inert),l.xp6(1),l.Q6J("matRippleTrigger",z._getHostElement())("matRippleDisabled",z.disabled||z.disableRipple))},directives:[D,K.O5,E],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ne})();function hn(Ne,Ae,U){if(U.length){let z=Ae.toArray(),W=U.toArray(),fe=0;for(let Oe=0;OeU+z?Math.max(0,Ne-z+Ae):U}let vt=(()=>{class Ne{}return Ne.\u0275fac=function(U){return new(U||Ne)},Ne.\u0275mod=l.oAB({type:Ne}),Ne.\u0275inj=l.cJS({imports:[[S,K.ez,ge,P]]}),Ne})()},8966:(Ye,be,C)=>{C.d(be,{WI:()=>we,uw:()=>Xt,H8:()=>Ht,ZT:()=>Yt,xY:()=>gn,Is:()=>sn,so:()=>Be,uh:()=>Rt});var l=C(9776),o=C(7429),m=C(4893),K=C(508),ue=C(226),Q=C(7579),Me=C(9770),Ee=C(727),de=C(9646),ne=C(9300),se=C(5698),he=C(8675),ee=C(925),le=C(9808),Fe=C(1777),Ve=C(9950),q=C(1159),tt=C(6360);function Ze(et,ze){}class Qe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const ge={dialogContainer:(0,Fe.X$)("dialogContainer",[(0,Fe.SB)("void, exit",(0,Fe.oB)({opacity:0,transform:"scale(0.7)"})),(0,Fe.SB)("enter",(0,Fe.oB)({transform:"none"})),(0,Fe.eR)("* => enter",(0,Fe.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Fe.oB)({transform:"none",opacity:1}))),(0,Fe.eR)("* => void, * => exit",(0,Fe.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Fe.oB)({opacity:0})))])};let J=(()=>{class et extends o.en{constructor(X,Z,je,$e,ct,Ot,jt,Ct){super(),this._elementRef=X,this._focusTrapFactory=Z,this._changeDetectorRef=je,this._config=ct,this._interactivityChecker=Ot,this._ngZone=jt,this._focusMonitor=Ct,this._animationStateChanged=new m.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Bt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Bt)),this._ariaLabelledBy=ct.ariaLabelledBy||null,this._document=$e}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(X){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(X)}attachTemplatePortal(X){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(X)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(X,Z){this._interactivityChecker.isFocusable(X)||(X.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{X.addEventListener("blur",()=>X.removeAttribute("tabindex")),X.addEventListener("mousedown",()=>X.removeAttribute("tabindex"))})),X.focus(Z)}_focusByCssSelector(X,Z){let je=this._elementRef.nativeElement.querySelector(X);je&&this._forceFocus(je,Z)}_trapFocus(){const X=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||X.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Z=>{Z||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const X=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&X&&"function"==typeof X.focus){const Z=(0,ee.ht)(),je=this._elementRef.nativeElement;(!Z||Z===this._document.body||Z===je||je.contains(Z))&&(this._focusMonitor?(this._focusMonitor.focusVia(X,this._closeInteractionType),this._closeInteractionType=null):X.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,ee.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const X=this._elementRef.nativeElement,Z=(0,ee.ht)();return X===Z||X.contains(Z)}}return et.\u0275fac=function(X){return new(X||et)(m.Y36(m.SBq),m.Y36(Ve.qV),m.Y36(m.sBO),m.Y36(le.K0,8),m.Y36(Qe),m.Y36(Ve.ic),m.Y36(m.R0b),m.Y36(Ve.tE))},et.\u0275dir=m.lG2({type:et,viewQuery:function(X,Z){if(1&X&&m.Gf(o.Pl,7),2&X){let je;m.iGM(je=m.CRH())&&(Z._portalOutlet=je.first)}},features:[m.qOj]}),et})(),me=(()=>{class et extends J{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:X,totalTime:Z}){"enter"===X?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Z})):"exit"===X&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Z}))}_onAnimationStart({toState:X,totalTime:Z}){"enter"===X?this._animationStateChanged.next({state:"opening",totalTime:Z}):("exit"===X||"void"===X)&&this._animationStateChanged.next({state:"closing",totalTime:Z})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return et.\u0275fac=function(){let ze;return function(Z){return(ze||(ze=m.n5z(et)))(Z||et)}}(),et.\u0275cmp=m.Xpm({type:et,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(X,Z){1&X&&m.WFA("@dialogContainer.start",function($e){return Z._onAnimationStart($e)})("@dialogContainer.done",function($e){return Z._onAnimationDone($e)}),2&X&&(m.Ikx("id",Z._id),m.uIk("role",Z._config.role)("aria-labelledby",Z._config.ariaLabel?null:Z._ariaLabelledBy)("aria-label",Z._config.ariaLabel)("aria-describedby",Z._config.ariaDescribedBy||null),m.d8E("@dialogContainer",Z._state))},features:[m.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(X,Z){1&X&&m.YNc(0,Ze,0,0,"ng-template",0)},directives:[o.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ge.dialogContainer]}}),et})(),xe=0;class Be{constructor(ze,X,Z="mat-dialog-"+xe++){this._overlayRef=ze,this._containerInstance=X,this.id=Z,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Q.x,this._afterClosed=new Q.x,this._beforeClosed=new Q.x,this._state=0,X._id=Z,X._animationStateChanged.pipe((0,ne.h)(je=>"opened"===je.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),X._animationStateChanged.pipe((0,ne.h)(je=>"closed"===je.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ze.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),ze.keydownEvents().pipe((0,ne.h)(je=>je.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(je))).subscribe(je=>{je.preventDefault(),ye(this,"keyboard")}),ze.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ye(this,"mouse")})}close(ze){this._result=ze,this._containerInstance._animationStateChanged.pipe((0,ne.h)(X=>"closing"===X.state),(0,se.q)(1)).subscribe(X=>{this._beforeClosed.next(ze),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),X.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(ze){let X=this._getPositionStrategy();return ze&&(ze.left||ze.right)?ze.left?X.left(ze.left):X.right(ze.right):X.centerHorizontally(),ze&&(ze.top||ze.bottom)?ze.top?X.top(ze.top):X.bottom(ze.bottom):X.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(ze="",X=""){return this._overlayRef.updateSize({width:ze,height:X}),this._overlayRef.updatePosition(),this}addPanelClass(ze){return this._overlayRef.addPanelClass(ze),this}removePanelClass(ze){return this._overlayRef.removePanelClass(ze),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ye(et,ze,X){return void 0!==et._containerInstance&&(et._containerInstance._closeInteractionType=ze),et.close(X)}const we=new m.OlP("MatDialogData"),Se=new m.OlP("mat-dialog-default-options"),Te=new m.OlP("mat-dialog-scroll-strategy"),Et={provide:Te,deps:[l.aV],useFactory:function Le(et){return()=>et.scrollStrategies.block()}};let gt=(()=>{class et{constructor(X,Z,je,$e,ct,Ot,jt,Ct,Bt,lt){this._overlay=X,this._injector=Z,this._defaultOptions=je,this._parentDialog=$e,this._overlayContainer=ct,this._dialogRefConstructor=jt,this._dialogContainerType=Ct,this._dialogDataToken=Bt,this._animationMode=lt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Q.x,this._afterOpenedAtThisLevel=new Q.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,Me.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,he.O)(void 0))),this._scrollStrategy=Ot}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const X=this._parentDialog;return X?X._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(X,Z){if(Z=function bt(et,ze){return Object.assign(Object.assign({},ze),et)}(Z,this._defaultOptions||new Qe),Z.id&&this.getDialogById(Z.id),this._dialogAnimatingOpen)return this._lastDialogRef;const je=this._createOverlay(Z),$e=this._attachDialogContainer(je,Z);if("NoopAnimations"!==this._animationMode){const Ot=$e._animationStateChanged.subscribe(jt=>{"opening"===jt.state&&(this._dialogAnimatingOpen=!0),"opened"===jt.state&&(this._dialogAnimatingOpen=!1,Ot.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Ee.w0),this._animationStateSubscriptions.add(Ot)}const ct=this._attachDialogContent(X,$e,je,Z);return this._lastDialogRef=ct,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ct),ct.afterClosed().subscribe(()=>this._removeOpenDialog(ct)),this.afterOpened.next(ct),$e._initializeWithAttachedContent(),ct}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(X){return this.openDialogs.find(Z=>Z.id===X)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(X){const Z=this._getOverlayConfig(X);return this._overlay.create(Z)}_getOverlayConfig(X){const Z=new l.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:X.scrollStrategy||this._scrollStrategy(),panelClass:X.panelClass,hasBackdrop:X.hasBackdrop,direction:X.direction,minWidth:X.minWidth,minHeight:X.minHeight,maxWidth:X.maxWidth,maxHeight:X.maxHeight,disposeOnNavigation:X.closeOnNavigation});return X.backdropClass&&(Z.backdropClass=X.backdropClass),Z}_attachDialogContainer(X,Z){const $e=m.zs3.create({parent:Z&&Z.viewContainerRef&&Z.viewContainerRef.injector||this._injector,providers:[{provide:Qe,useValue:Z}]}),ct=new o.C5(this._dialogContainerType,Z.viewContainerRef,$e,Z.componentFactoryResolver);return X.attach(ct).instance}_attachDialogContent(X,Z,je,$e){const ct=new this._dialogRefConstructor(je,Z,$e.id);if(X instanceof m.Rgc)Z.attachTemplatePortal(new o.UE(X,null,{$implicit:$e.data,dialogRef:ct}));else{const Ot=this._createInjector($e,ct,Z),jt=Z.attachComponentPortal(new o.C5(X,$e.viewContainerRef,Ot,$e.componentFactoryResolver));ct.componentInstance=jt.instance}return ct.updateSize($e.width,$e.height).updatePosition($e.position),ct}_createInjector(X,Z,je){const $e=X&&X.viewContainerRef&&X.viewContainerRef.injector,ct=[{provide:this._dialogContainerType,useValue:je},{provide:this._dialogDataToken,useValue:X.data},{provide:this._dialogRefConstructor,useValue:Z}];return X.direction&&(!$e||!$e.get(ue.Is,null,m.XFs.Optional))&&ct.push({provide:ue.Is,useValue:{value:X.direction,change:(0,de.of)()}}),m.zs3.create({parent:$e||this._injector,providers:ct})}_removeOpenDialog(X){const Z=this.openDialogs.indexOf(X);Z>-1&&(this.openDialogs.splice(Z,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((je,$e)=>{je?$e.setAttribute("aria-hidden",je):$e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const X=this._overlayContainer.getContainerElement();if(X.parentElement){const Z=X.parentElement.children;for(let je=Z.length-1;je>-1;je--){let $e=Z[je];$e!==X&&"SCRIPT"!==$e.nodeName&&"STYLE"!==$e.nodeName&&!$e.hasAttribute("aria-live")&&(this._ariaHiddenElements.set($e,$e.getAttribute("aria-hidden")),$e.setAttribute("aria-hidden","true"))}}}_closeDialogs(X){let Z=X.length;for(;Z--;)X[Z].close()}}return et.\u0275fac=function(X){m.$Z()},et.\u0275dir=m.lG2({type:et}),et})(),Xt=(()=>{class et extends gt{constructor(X,Z,je,$e,ct,Ot,jt,Ct){super(X,Z,$e,Ot,jt,ct,Be,me,we,Ct)}}return et.\u0275fac=function(X){return new(X||et)(m.LFG(l.aV),m.LFG(m.zs3),m.LFG(le.Ye,8),m.LFG(Se,8),m.LFG(Te),m.LFG(et,12),m.LFG(l.Xj),m.LFG(tt.Qb,8))},et.\u0275prov=m.Yz7({token:et,factory:et.\u0275fac}),et})(),kt=0,Yt=(()=>{class et{constructor(X,Z,je){this.dialogRef=X,this._elementRef=Z,this._dialog=je,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=St(this._elementRef,this._dialog.openDialogs))}ngOnChanges(X){const Z=X._matDialogClose||X._matDialogCloseResult;Z&&(this.dialogResult=Z.currentValue)}_onButtonClick(X){ye(this.dialogRef,0===X.screenX&&0===X.screenY?"keyboard":"mouse",this.dialogResult)}}return et.\u0275fac=function(X){return new(X||et)(m.Y36(Be,8),m.Y36(m.SBq),m.Y36(Xt))},et.\u0275dir=m.lG2({type:et,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(X,Z){1&X&&m.NdJ("click",function($e){return Z._onButtonClick($e)}),2&X&&m.uIk("aria-label",Z.ariaLabel||null)("type",Z.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[m.TTD]}),et})(),Rt=(()=>{class et{constructor(X,Z,je){this._dialogRef=X,this._elementRef=Z,this._dialog=je,this.id="mat-dialog-title-"+kt++}ngOnInit(){this._dialogRef||(this._dialogRef=St(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const X=this._dialogRef._containerInstance;X&&!X._ariaLabelledBy&&(X._ariaLabelledBy=this.id)})}}return et.\u0275fac=function(X){return new(X||et)(m.Y36(Be,8),m.Y36(m.SBq),m.Y36(Xt))},et.\u0275dir=m.lG2({type:et,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(X,Z){2&X&&m.Ikx("id",Z.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),et})(),gn=(()=>{class et{}return et.\u0275fac=function(X){return new(X||et)},et.\u0275dir=m.lG2({type:et,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),et})(),Ht=(()=>{class et{}return et.\u0275fac=function(X){return new(X||et)},et.\u0275dir=m.lG2({type:et,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),et})();function St(et,ze){let X=et.nativeElement.parentElement;for(;X&&!X.classList.contains("mat-dialog-container");)X=X.parentElement;return X?ze.find(Z=>Z.id===X.id):null}let sn=(()=>{class et{}return et.\u0275fac=function(X){return new(X||et)},et.\u0275mod=m.oAB({type:et}),et.\u0275inj=m.cJS({providers:[Xt,Et],imports:[[l.U8,o.eL,K.BQ],K.BQ]}),et})()},7322:(Ye,be,C)=>{C.d(be,{G_:()=>Bt,o2:()=>Ct,KE:()=>lt,Eo:()=>bt,lN:()=>Re,hX:()=>sn,R9:()=>je});var l=C(7144),o=C(9808),m=C(4893),K=C(508),ue=C(3191),Q=C(7579),Me=C(6451),Ee=C(4968),de=C(8675),ne=C(2722),se=C(5698),he=C(1777),ee=C(6360),le=C(226),Fe=C(925);const Ve=["connectionContainer"],q=["inputContainer"],tt=["label"];function Ze(E,S){1&E&&(m.ynx(0),m.TgZ(1,"div",14),m._UZ(2,"div",15)(3,"div",16)(4,"div",17),m.qZA(),m.TgZ(5,"div",18),m._UZ(6,"div",15)(7,"div",16)(8,"div",17),m.qZA(),m.BQk())}function Qe(E,S){if(1&E){const D=m.EpF();m.TgZ(0,"div",19),m.NdJ("cdkObserveContent",function(){return m.CHM(D),m.oxw().updateOutlineGap()}),m.Hsn(1,1),m.qZA()}if(2&E){const D=m.oxw();m.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)}}function ge(E,S){if(1&E&&(m.ynx(0),m.Hsn(1,2),m.TgZ(2,"span"),m._uU(3),m.qZA(),m.BQk()),2&E){const D=m.oxw(2);m.xp6(3),m.Oqu(D._control.placeholder)}}function G(E,S){1&E&&m.Hsn(0,3,["*ngSwitchCase","true"])}function J(E,S){1&E&&(m.TgZ(0,"span",23),m._uU(1," *"),m.qZA())}function me(E,S){if(1&E){const D=m.EpF();m.TgZ(0,"label",20,21),m.NdJ("cdkObserveContent",function(){return m.CHM(D),m.oxw().updateOutlineGap()}),m.YNc(2,ge,4,1,"ng-container",12),m.YNc(3,G,1,0,"ng-content",12),m.YNc(4,J,2,0,"span",22),m.qZA()}if(2&E){const D=m.oxw();m.ekj("mat-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-form-field-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-accent","accent"==D.color)("mat-warn","warn"==D.color),m.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)("id",D._labelId)("ngSwitch",D._hasLabel()),m.uIk("for",D._control.id)("aria-owns",D._control.id),m.xp6(2),m.Q6J("ngSwitchCase",!1),m.xp6(1),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngIf",!D.hideRequiredMarker&&D._control.required&&!D._control.disabled)}}function xe(E,S){1&E&&(m.TgZ(0,"div",24),m.Hsn(1,4),m.qZA())}function Be(E,S){if(1&E&&(m.TgZ(0,"div",25),m._UZ(1,"span",26),m.qZA()),2&E){const D=m.oxw();m.xp6(1),m.ekj("mat-accent","accent"==D.color)("mat-warn","warn"==D.color)}}function ye(E,S){if(1&E&&(m.TgZ(0,"div"),m.Hsn(1,5),m.qZA()),2&E){const D=m.oxw();m.Q6J("@transitionMessages",D._subscriptAnimationState)}}function we(E,S){if(1&E&&(m.TgZ(0,"div",30),m._uU(1),m.qZA()),2&E){const D=m.oxw(2);m.Q6J("id",D._hintLabelId),m.xp6(1),m.Oqu(D.hintLabel)}}function Se(E,S){if(1&E&&(m.TgZ(0,"div",27),m.YNc(1,we,2,2,"div",28),m.Hsn(2,6),m._UZ(3,"div",29),m.Hsn(4,7),m.qZA()),2&E){const D=m.oxw();m.Q6J("@transitionMessages",D._subscriptAnimationState),m.xp6(1),m.Q6J("ngIf",D.hintLabel)}}const Te=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],nt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Et=new m.OlP("MatError"),Xt={transitionMessages:(0,he.X$)("transitionMessages",[(0,he.SB)("enter",(0,he.oB)({opacity:1,transform:"translateY(0%)"})),(0,he.eR)("void => enter",[(0,he.oB)({opacity:0,transform:"translateY(-5px)"}),(0,he.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let bt=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=m.lG2({type:E}),E})();const Ht=new m.OlP("MatHint");let sn=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=m.lG2({type:E,selectors:[["mat-label"]]}),E})(),et=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=m.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const ze=new m.OlP("MatPrefix"),Z=new m.OlP("MatSuffix");let je=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=m.lG2({type:E,selectors:[["","matSuffix",""]],features:[m._Bn([{provide:Z,useExisting:E}])]}),E})(),$e=0;const jt=(0,K.pj)(class{constructor(E){this._elementRef=E}},"primary"),Ct=new m.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bt=new m.OlP("MatFormField");let lt=(()=>{class E extends jt{constructor(D,P,N,oe,Ce,He,Ge){super(D),this._changeDetectorRef=P,this._dir=N,this._defaults=oe,this._platform=Ce,this._ngZone=He,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Q.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$e++,this._labelId="mat-form-field-label-"+$e++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Ge,this.appearance=oe&&oe.appearance?oe.appearance:"legacy",this._hideRequiredMarker=!(!oe||null==oe.hideRequiredMarker)&&oe.hideRequiredMarker}get appearance(){return this._appearance}set appearance(D){const P=this._appearance;this._appearance=D||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&P!==D&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(D){this._hideRequiredMarker=(0,ue.Ig)(D)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(D){this._hintLabel=D,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(D){D!==this._floatLabel&&(this._floatLabel=D||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(D){this._explicitFormFieldControl=D}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const D=this._control;D.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${D.controlType}`),D.stateChanges.pipe((0,de.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),D.ngControl&&D.ngControl.valueChanges&&D.ngControl.valueChanges.pipe((0,ne.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ne.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Me.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,de.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,de.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,ne.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(D){const P=this._control?this._control.ngControl:null;return P&&P[D]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,Ee.R)(this._label.nativeElement,"transitionend").pipe((0,se.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let D=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&D.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const P=this._hintChildren?this._hintChildren.find(oe=>"start"===oe.align):null,N=this._hintChildren?this._hintChildren.find(oe=>"end"===oe.align):null;P?D.push(P.id):this._hintLabel&&D.push(this._hintLabelId),N&&D.push(N.id)}else this._errorChildren&&D.push(...this._errorChildren.map(P=>P.id));this._control.setDescribedByIds(D)}}_validateControlChild(){}updateOutlineGap(){const D=this._label?this._label.nativeElement:null,P=this._connectionContainerRef.nativeElement,N=".mat-form-field-outline-start",oe=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!D||!D.children.length||!D.textContent.trim()){const ut=P.querySelectorAll(`${N}, ${oe}`);for(let It=0;It0?.75*hn+10:0}for(let ut=0;ut{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275mod=m.oAB({type:E}),E.\u0275inj=m.cJS({imports:[[o.ez,K.BQ,l.Q8],K.BQ]}),E})()},7531:(Ye,be,C)=>{C.d(be,{Nt:()=>Ze,c:()=>Qe});var l=C(3191),o=C(925),m=C(4893),K=C(2382),ue=C(508),Q=C(7322),Me=C(7579),Ee=C(515);const de=(0,o.i$)({passive:!0});let ne=(()=>{class ge{constructor(J,me){this._platform=J,this._ngZone=me,this._monitoredElements=new Map}monitor(J){if(!this._platform.isBrowser)return Ee.E;const me=(0,l.fI)(J),xe=this._monitoredElements.get(me);if(xe)return xe.subject;const Be=new Me.x,ye="cdk-text-field-autofilled",we=Se=>{"cdk-text-field-autofill-start"!==Se.animationName||me.classList.contains(ye)?"cdk-text-field-autofill-end"===Se.animationName&&me.classList.contains(ye)&&(me.classList.remove(ye),this._ngZone.run(()=>Be.next({target:Se.target,isAutofilled:!1}))):(me.classList.add(ye),this._ngZone.run(()=>Be.next({target:Se.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{me.addEventListener("animationstart",we,de),me.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(me,{subject:Be,unlisten:()=>{me.removeEventListener("animationstart",we,de)}}),Be}stopMonitoring(J){const me=(0,l.fI)(J),xe=this._monitoredElements.get(me);xe&&(xe.unlisten(),xe.subject.complete(),me.classList.remove("cdk-text-field-autofill-monitored"),me.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(me))}ngOnDestroy(){this._monitoredElements.forEach((J,me)=>this.stopMonitoring(me))}}return ge.\u0275fac=function(J){return new(J||ge)(m.LFG(o.t4),m.LFG(m.R0b))},ge.\u0275prov=m.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),ee=(()=>{class ge{}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=m.oAB({type:ge}),ge.\u0275inj=m.cJS({}),ge})();const Fe=new m.OlP("MAT_INPUT_VALUE_ACCESSOR"),Ve=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let q=0;const tt=(0,ue.FD)(class{constructor(ge,G,J,me){this._defaultErrorStateMatcher=ge,this._parentForm=G,this._parentFormGroup=J,this.ngControl=me}});let Ze=(()=>{class ge extends tt{constructor(J,me,xe,Be,ye,we,Se,Te,nt,Le){super(we,Be,ye,xe),this._elementRef=J,this._platform=me,this._autofillMonitor=Te,this._formField=Le,this._uid="mat-input-"+q++,this.focused=!1,this.stateChanges=new Me.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Xt=>(0,o.qK)().has(Xt));const Et=this._elementRef.nativeElement,gt=Et.nodeName.toLowerCase();this._inputValueAccessor=Se||Et,this._previousNativeValue=this.value,this.id=this.id,me.IOS&&nt.runOutsideAngular(()=>{J.nativeElement.addEventListener("keyup",Xt=>{const bt=Xt.target;!bt.value&&0===bt.selectionStart&&0===bt.selectionEnd&&(bt.setSelectionRange(1,1),bt.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===gt,this._isTextarea="textarea"===gt,this._isInFormField=!!Le,this._isNativeSelect&&(this.controlType=Et.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(J){this._disabled=(0,l.Ig)(J),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(J){this._id=J||this._uid}get required(){var J,me,xe,Be;return null!==(Be=null!==(J=this._required)&&void 0!==J?J:null===(xe=null===(me=this.ngControl)||void 0===me?void 0:me.control)||void 0===xe?void 0:xe.hasValidator(K.kI.required))&&void 0!==Be&&Be}set required(J){this._required=(0,l.Ig)(J)}get type(){return this._type}set type(J){this._type=J||"text",this._validateType(),!this._isTextarea&&(0,o.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(J){J!==this.value&&(this._inputValueAccessor.value=J,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(J){this._readonly=(0,l.Ig)(J)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(J=>{this.autofilled=J.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(J){this._elementRef.nativeElement.focus(J)}_focusChanged(J){J!==this.focused&&(this.focused=J,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var J,me;const xe=(null===(me=null===(J=this._formField)||void 0===J?void 0:J._hideControlPlaceholder)||void 0===me?void 0:me.call(J))?null:this.placeholder;if(xe!==this._previousPlaceholder){const Be=this._elementRef.nativeElement;this._previousPlaceholder=xe,xe?Be.setAttribute("placeholder",xe):Be.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const J=this._elementRef.nativeElement.value;this._previousNativeValue!==J&&(this._previousNativeValue=J,this.stateChanges.next())}_validateType(){Ve.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let J=this._elementRef.nativeElement.validity;return J&&J.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const J=this._elementRef.nativeElement,me=J.options[0];return this.focused||J.multiple||!this.empty||!!(J.selectedIndex>-1&&me&&me.label)}return this.focused||!this.empty}setDescribedByIds(J){J.length?this._elementRef.nativeElement.setAttribute("aria-describedby",J.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const J=this._elementRef.nativeElement;return this._isNativeSelect&&(J.multiple||J.size>1)}}return ge.\u0275fac=function(J){return new(J||ge)(m.Y36(m.SBq),m.Y36(o.t4),m.Y36(K.a5,10),m.Y36(K.F,8),m.Y36(K.sg,8),m.Y36(ue.rD),m.Y36(Fe,10),m.Y36(ne),m.Y36(m.R0b),m.Y36(Q.G_,8))},ge.\u0275dir=m.lG2({type:ge,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(J,me){1&J&&m.NdJ("focus",function(){return me._focusChanged(!0)})("blur",function(){return me._focusChanged(!1)})("input",function(){return me._onInput()}),2&J&&(m.Ikx("disabled",me.disabled)("required",me.required),m.uIk("id",me.id)("data-placeholder",me.placeholder)("name",me.name||null)("readonly",me.readonly&&!me._isNativeSelect||null)("aria-invalid",me.empty&&me.required?null:me.errorState)("aria-required",me.required),m.ekj("mat-input-server",me._isServer)("mat-native-select-inline",me._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[m._Bn([{provide:Q.Eo,useExisting:ge}]),m.qOj,m.TTD]}),ge})(),Qe=(()=>{class ge{}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=m.oAB({type:ge}),ge.\u0275inj=m.cJS({providers:[ue.rD],imports:[[ee,Q.lN,ue.BQ],ee,Q.lN]}),ge})()},4107:(Ye,be,C)=>{C.d(be,{gD:()=>Ct,LD:()=>Bt});var l=C(9776),o=C(9808),m=C(4893),K=C(508),ue=C(7322),Q=C(495),Me=C(9950),Ee=C(3191),de=C(449),ne=C(1159),se=C(2382),he=C(7579),ee=C(9770),le=C(6451),Fe=C(8675),Ve=C(3900),q=C(5698),tt=C(9300),Ze=C(4004),Qe=C(1884),ge=C(2722),G=C(1777),J=C(226);const me=["trigger"],xe=["panel"];function Be(lt,Re){if(1<&&(m.TgZ(0,"span",8),m._uU(1),m.qZA()),2<){const E=m.oxw();m.xp6(1),m.Oqu(E.placeholder)}}function ye(lt,Re){if(1<&&(m.TgZ(0,"span",12),m._uU(1),m.qZA()),2<){const E=m.oxw(2);m.xp6(1),m.Oqu(E.triggerValue)}}function we(lt,Re){1<&&m.Hsn(0,0,["*ngSwitchCase","true"])}function Se(lt,Re){if(1<&&(m.TgZ(0,"span",9),m.YNc(1,ye,2,1,"span",10),m.YNc(2,we,1,0,"ng-content",11),m.qZA()),2<){const E=m.oxw();m.Q6J("ngSwitch",!!E.customTrigger),m.xp6(2),m.Q6J("ngSwitchCase",!0)}}function Te(lt,Re){if(1<){const E=m.EpF();m.TgZ(0,"div",13)(1,"div",14,15),m.NdJ("@transformPanel.done",function(D){return m.CHM(E),m.oxw()._panelDoneAnimatingStream.next(D.toState)})("keydown",function(D){return m.CHM(E),m.oxw()._handleKeydown(D)}),m.Hsn(3,1),m.qZA()()}if(2<){const E=m.oxw();m.Q6J("@transformPanelWrap",void 0),m.xp6(1),m.Gre("mat-select-panel ",E._getPanelTheme(),""),m.Udp("transform-origin",E._transformOrigin)("font-size",E._triggerFontSize,"px"),m.Q6J("ngClass",E.panelClass)("@transformPanel",E.multiple?"showing-multiple":"showing"),m.uIk("id",E.id+"-panel")("aria-multiselectable",E.multiple)("aria-label",E.ariaLabel||null)("aria-labelledby",E._getPanelAriaLabelledby())}}const nt=[[["mat-select-trigger"]],"*"],Le=["mat-select-trigger","*"],Et={transformPanelWrap:(0,G.X$)("transformPanelWrap",[(0,G.eR)("* => void",(0,G.IO)("@transformPanel",[(0,G.pV)()],{optional:!0}))]),transformPanel:(0,G.X$)("transformPanel",[(0,G.SB)("void",(0,G.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,G.SB)("showing",(0,G.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,G.SB)("showing-multiple",(0,G.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,G.eR)("void => *",(0,G.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,G.eR)("* => void",(0,G.jt)("100ms 25ms linear",(0,G.oB)({opacity:0})))])};let kt=0;const et=new m.OlP("mat-select-scroll-strategy"),X=new m.OlP("MAT_SELECT_CONFIG"),Z={provide:et,deps:[l.aV],useFactory:function ze(lt){return()=>lt.scrollStrategies.reposition()}};class je{constructor(Re,E){this.source=Re,this.value=E}}const $e=(0,K.Kr)((0,K.sb)((0,K.Id)((0,K.FD)(class{constructor(lt,Re,E,S,D){this._elementRef=lt,this._defaultErrorStateMatcher=Re,this._parentForm=E,this._parentFormGroup=S,this.ngControl=D}})))),ct=new m.OlP("MatSelectTrigger");let jt=(()=>{class lt extends $e{constructor(E,S,D,P,N,oe,Ce,He,Ge,_t,ut,It,rn,Kt){var hn,ht,vt;super(N,P,Ce,He,_t),this._viewportRuler=E,this._changeDetectorRef=S,this._ngZone=D,this._dir=oe,this._parentFormField=Ge,this._liveAnnouncer=rn,this._defaultOptions=Kt,this._panelOpen=!1,this._compareWith=(Ne,Ae)=>Ne===Ae,this._uid="mat-select-"+kt++,this._triggerAriaLabelledBy=null,this._destroy=new he.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+kt++,this._panelDoneAnimatingStream=new he.x,this._overlayPanelClass=(null===(hn=this._defaultOptions)||void 0===hn?void 0:hn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(vt=null===(ht=this._defaultOptions)||void 0===ht?void 0:ht.disableOptionCentering)&&void 0!==vt&&vt,this.ariaLabel="",this.optionSelectionChanges=(0,ee.P)(()=>{const Ne=this.options;return Ne?Ne.changes.pipe((0,Fe.O)(Ne),(0,Ve.w)(()=>(0,le.T)(...Ne.map(Ae=>Ae.onSelectionChange)))):this._ngZone.onStable.pipe((0,q.q)(1),(0,Ve.w)(()=>this.optionSelectionChanges))}),this.openedChange=new m.vpe,this._openedStream=this.openedChange.pipe((0,tt.h)(Ne=>Ne),(0,Ze.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,tt.h)(Ne=>!Ne),(0,Ze.U)(()=>{})),this.selectionChange=new m.vpe,this.valueChange=new m.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Kt?void 0:Kt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Kt.typeaheadDebounceInterval),this._scrollStrategyFactory=It,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ut)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(E){this._placeholder=E,this.stateChanges.next()}get required(){var E,S,D,P;return null!==(P=null!==(E=this._required)&&void 0!==E?E:null===(D=null===(S=this.ngControl)||void 0===S?void 0:S.control)||void 0===D?void 0:D.hasValidator(se.kI.required))&&void 0!==P&&P}set required(E){this._required=(0,Ee.Ig)(E),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(E){this._multiple=(0,Ee.Ig)(E)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(E){this._disableOptionCentering=(0,Ee.Ig)(E)}get compareWith(){return this._compareWith}set compareWith(E){this._compareWith=E,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(E){(E!==this._value||this._multiple&&Array.isArray(E))&&(this.options&&this._setSelectionByValue(E),this._value=E)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(E){this._typeaheadDebounceInterval=(0,Ee.su)(E)}get id(){return this._id}set id(E){this._id=E||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new de.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Qe.x)(),(0,ge.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ge.R)(this._destroy)).subscribe(E=>{E.added.forEach(S=>S.select()),E.removed.forEach(S=>S.deselect())}),this.options.changes.pipe((0,Fe.O)(null),(0,ge.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const E=this._getTriggerAriaLabelledby();if(E!==this._triggerAriaLabelledBy){const S=this._elementRef.nativeElement;this._triggerAriaLabelledBy=E,E?S.setAttribute("aria-labelledby",E):S.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(E){E.disabled&&this.stateChanges.next(),E.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(E){this.value=E}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var E,S;return this.multiple?(null===(E=this._selectionModel)||void 0===E?void 0:E.selected)||[]:null===(S=this._selectionModel)||void 0===S?void 0:S.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const E=this._selectionModel.selected.map(S=>S.viewValue);return this._isRtl()&&E.reverse(),E.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(E){this.disabled||(this.panelOpen?this._handleOpenKeydown(E):this._handleClosedKeydown(E))}_handleClosedKeydown(E){const S=E.keyCode,D=S===ne.JH||S===ne.LH||S===ne.oh||S===ne.SV,P=S===ne.K5||S===ne.L_,N=this._keyManager;if(!N.isTyping()&&P&&!(0,ne.Vb)(E)||(this.multiple||E.altKey)&&D)E.preventDefault(),this.open();else if(!this.multiple){const oe=this.selected;N.onKeydown(E);const Ce=this.selected;Ce&&oe!==Ce&&this._liveAnnouncer.announce(Ce.viewValue,1e4)}}_handleOpenKeydown(E){const S=this._keyManager,D=E.keyCode,P=D===ne.JH||D===ne.LH,N=S.isTyping();if(P&&E.altKey)E.preventDefault(),this.close();else if(N||D!==ne.K5&&D!==ne.L_||!S.activeItem||(0,ne.Vb)(E))if(!N&&this._multiple&&D===ne.A&&E.ctrlKey){E.preventDefault();const oe=this.options.some(Ce=>!Ce.disabled&&!Ce.selected);this.options.forEach(Ce=>{Ce.disabled||(oe?Ce.select():Ce.deselect())})}else{const oe=S.activeItemIndex;S.onKeydown(E),this._multiple&&P&&E.shiftKey&&S.activeItem&&S.activeItemIndex!==oe&&S.activeItem._selectViaInteraction()}else E.preventDefault(),S.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,q.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(E){if(this._selectionModel.selected.forEach(S=>S.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&E)Array.isArray(E),E.forEach(S=>this._selectValue(S)),this._sortValues();else{const S=this._selectValue(E);S?this._keyManager.updateActiveItem(S):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(E){const S=this.options.find(D=>{if(this._selectionModel.isSelected(D))return!1;try{return null!=D.value&&this._compareWith(D.value,E)}catch(P){return!1}});return S&&this._selectionModel.select(S),S}_initKeyManager(){this._keyManager=new Me.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ge.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ge.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const E=(0,le.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ge.R)(E)).subscribe(S=>{this._onSelect(S.source,S.isUserInput),S.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,le.T)(...this.options.map(S=>S._stateChanges)).pipe((0,ge.R)(E)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(E,S){const D=this._selectionModel.isSelected(E);null!=E.value||this._multiple?(D!==E.selected&&(E.selected?this._selectionModel.select(E):this._selectionModel.deselect(E)),S&&this._keyManager.setActiveItem(E),this.multiple&&(this._sortValues(),S&&this.focus())):(E.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(E.value)),D!==this._selectionModel.isSelected(E)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const E=this.options.toArray();this._selectionModel.sort((S,D)=>this.sortComparator?this.sortComparator(S,D,E):E.indexOf(S)-E.indexOf(D)),this.stateChanges.next()}}_propagateChanges(E){let S=null;S=this.multiple?this.selected.map(D=>D.value):this.selected?this.selected.value:E,this._value=S,this.valueChange.emit(S),this._onChange(S),this.selectionChange.emit(this._getChangeEvent(S)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var E;return!this._panelOpen&&!this.disabled&&(null===(E=this.options)||void 0===E?void 0:E.length)>0}focus(E){this._elementRef.nativeElement.focus(E)}_getPanelAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();return this.ariaLabelledby?(S?S+" ":"")+this.ariaLabelledby:S}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();let D=(S?S+" ":"")+this._valueId;return this.ariaLabelledby&&(D+=" "+this.ariaLabelledby),D}_panelDoneAnimating(E){this.openedChange.emit(E)}setDescribedByIds(E){this._ariaDescribedby=E.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return lt.\u0275fac=function(E){return new(E||lt)(m.Y36(Q.rL),m.Y36(m.sBO),m.Y36(m.R0b),m.Y36(K.rD),m.Y36(m.SBq),m.Y36(J.Is,8),m.Y36(se.F,8),m.Y36(se.sg,8),m.Y36(ue.G_,8),m.Y36(se.a5,10),m.$8M("tabindex"),m.Y36(et),m.Y36(Me.Kd),m.Y36(X,8))},lt.\u0275dir=m.lG2({type:lt,viewQuery:function(E,S){if(1&E&&(m.Gf(me,5),m.Gf(xe,5),m.Gf(l.pI,5)),2&E){let D;m.iGM(D=m.CRH())&&(S.trigger=D.first),m.iGM(D=m.CRH())&&(S.panel=D.first),m.iGM(D=m.CRH())&&(S._overlayDir=D.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[m.qOj,m.TTD]}),lt})(),Ct=(()=>{class lt extends jt{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(E,S,D){const P=this._getItemHeight();return Math.min(Math.max(0,P*E-S+P/2),D)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ge.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,q.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(E){const S=(0,K.CB)(E,this.options,this.optionGroups),D=this._getItemHeight();this.panel.nativeElement.scrollTop=0===E&&1===S?0:(0,K.jH)((E+S)*D,D,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(E){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(E)}_getChangeEvent(E){return new je(this,E)}_calculateOverlayOffsetX(){const E=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),S=this._viewportRuler.getViewportSize(),D=this._isRtl(),P=this.multiple?56:32;let N;if(this.multiple)N=40;else if(this.disableOptionCentering)N=16;else{let He=this._selectionModel.selected[0]||this.options.first;N=He&&He.group?32:16}D||(N*=-1);const oe=0-(E.left+N-(D?P:0)),Ce=E.right+N-S.width+(D?0:P);oe>0?N+=oe+8:Ce>0&&(N-=Ce+8),this._overlayDir.offsetX=Math.round(N),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(E,S,D){const P=this._getItemHeight(),N=(P-this._triggerRect.height)/2,oe=Math.floor(256/P);let Ce;return this.disableOptionCentering?0:(Ce=0===this._scrollTop?E*P:this._scrollTop===D?(E-(this._getItemCount()-oe))*P+(P-(this._getItemCount()*P-256)%P):S-P/2,Math.round(-1*Ce-N))}_checkOverlayWithinViewport(E){const S=this._getItemHeight(),D=this._viewportRuler.getViewportSize(),P=this._triggerRect.top-8,N=D.height-this._triggerRect.bottom-8,oe=Math.abs(this._offsetY),He=Math.min(this._getItemCount()*S,256)-oe-this._triggerRect.height;He>N?this._adjustPanelUp(He,N):oe>P?this._adjustPanelDown(oe,P,E):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(E,S){const D=Math.round(E-S);this._scrollTop-=D,this._offsetY-=D,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(E,S,D){const P=Math.round(E-S);if(this._scrollTop+=P,this._offsetY+=P,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=D)return this._scrollTop=D,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const E=this._getItemHeight(),S=this._getItemCount(),D=Math.min(S*E,256),N=S*E-D;let oe;oe=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),oe+=(0,K.CB)(oe,this.options,this.optionGroups);const Ce=D/2;this._scrollTop=this._calculateOverlayScroll(oe,Ce,N),this._offsetY=this._calculateOverlayOffsetY(oe,Ce,N),this._checkOverlayWithinViewport(N)}_getOriginBasedOnOption(){const E=this._getItemHeight(),S=(E-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-S+E/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return lt.\u0275fac=function(){let Re;return function(S){return(Re||(Re=m.n5z(lt)))(S||lt)}}(),lt.\u0275cmp=m.Xpm({type:lt,selectors:[["mat-select"]],contentQueries:function(E,S,D){if(1&E&&(m.Suo(D,ct,5),m.Suo(D,K.ey,5),m.Suo(D,K.K7,5)),2&E){let P;m.iGM(P=m.CRH())&&(S.customTrigger=P.first),m.iGM(P=m.CRH())&&(S.options=P),m.iGM(P=m.CRH())&&(S.optionGroups=P)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(E,S){1&E&&m.NdJ("keydown",function(P){return S._handleKeydown(P)})("focus",function(){return S._onFocus()})("blur",function(){return S._onBlur()}),2&E&&(m.uIk("id",S.id)("tabindex",S.tabIndex)("aria-controls",S.panelOpen?S.id+"-panel":null)("aria-expanded",S.panelOpen)("aria-label",S.ariaLabel||null)("aria-required",S.required.toString())("aria-disabled",S.disabled.toString())("aria-invalid",S.errorState)("aria-describedby",S._ariaDescribedby||null)("aria-activedescendant",S._getAriaActiveDescendant()),m.ekj("mat-select-disabled",S.disabled)("mat-select-invalid",S.errorState)("mat-select-required",S.required)("mat-select-empty",S.empty)("mat-select-multiple",S.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[m._Bn([{provide:ue.Eo,useExisting:lt},{provide:K.HF,useExisting:lt}]),m.qOj],ngContentSelectors:Le,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(E,S){if(1&E&&(m.F$t(nt),m.TgZ(0,"div",0,1),m.NdJ("click",function(){return S.toggle()}),m.TgZ(3,"div",2),m.YNc(4,Be,2,1,"span",3),m.YNc(5,Se,3,2,"span",4),m.qZA(),m.TgZ(6,"div",5),m._UZ(7,"div",6),m.qZA()(),m.YNc(8,Te,4,14,"ng-template",7),m.NdJ("backdropClick",function(){return S.close()})("attach",function(){return S._onAttached()})("detach",function(){return S.close()})),2&E){const D=m.MAs(1);m.uIk("aria-owns",S.panelOpen?S.id+"-panel":null),m.xp6(3),m.Q6J("ngSwitch",S.empty),m.uIk("id",S._valueId),m.xp6(1),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngSwitchCase",!1),m.xp6(3),m.Q6J("cdkConnectedOverlayPanelClass",S._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",S._scrollStrategy)("cdkConnectedOverlayOrigin",D)("cdkConnectedOverlayOpen",S.panelOpen)("cdkConnectedOverlayPositions",S._positions)("cdkConnectedOverlayMinWidth",null==S._triggerRect?null:S._triggerRect.width)("cdkConnectedOverlayOffsetY",S._offsetY)}},directives:[l.xu,o.RF,o.n9,o.ED,l.pI,o.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Et.transformPanelWrap,Et.transformPanel]},changeDetection:0}),lt})(),Bt=(()=>{class lt{}return lt.\u0275fac=function(E){return new(E||lt)},lt.\u0275mod=m.oAB({type:lt}),lt.\u0275inj=m.cJS({providers:[Z],imports:[[o.ez,l.U8,K.Ng,K.BQ],Q.ZD,ue.lN,K.Ng,K.BQ]}),lt})()},6360:(Ye,be,C)=>{C.d(be,{Qb:()=>Cr,PW:()=>p});var l=C(4893),o=C(2313),m=C(1777);const K=!1;function Q(g){return new l.vHH(3e3,K)}function St(){return"undefined"!=typeof window&&void 0!==window.document}function sn(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function et(g){switch(g.length){case 0:return new m.ZN;case 1:return g[0];default:return new m.ZE(g)}}function ze(g,a,u,b,F={},$={}){const re=[],ce=[];let Ie=-1,Je=null;if(b.forEach(yt=>{const Pt=yt.offset,en=Pt==Ie,cn=en&&Je||{};Object.keys(yt).forEach(Ut=>{let on=Ut,wn=yt[Ut];if("offset"!==Ut)switch(on=a.normalizePropertyName(on,re),wn){case m.k1:wn=F[Ut];break;case m.l3:wn=$[Ut];break;default:wn=a.normalizeStyleValue(Ut,on,wn,re)}cn[on]=wn}),en||ce.push(cn),Je=cn,Ie=Pt}),re.length)throw function Te(g){return new l.vHH(3502,K)}();return ce}function X(g,a,u,b){switch(a){case"start":g.onStart(()=>b(u&&Z(u,"start",g)));break;case"done":g.onDone(()=>b(u&&Z(u,"done",g)));break;case"destroy":g.onDestroy(()=>b(u&&Z(u,"destroy",g)))}}function Z(g,a,u){const b=u.totalTime,$=je(g.element,g.triggerName,g.fromState,g.toState,a||g.phaseName,null==b?g.totalTime:b,!!u.disabled),re=g._data;return null!=re&&($._data=re),$}function je(g,a,u,b,F="",$=0,re){return{element:g,triggerName:a,fromState:u,toState:b,phaseName:F,totalTime:$,disabled:!!re}}function $e(g,a,u){let b;return g instanceof Map?(b=g.get(a),b||g.set(a,b=u)):(b=g[a],b||(b=g[a]=u)),b}function ct(g){const a=g.indexOf(":");return[g.substring(1,a),g.substr(a+1)]}let Ot=(g,a)=>!1,jt=(g,a,u)=>[],Ct=null;function Bt(g){const a=g.parentNode||g.host;return a===Ct?null:a}(sn()||"undefined"!=typeof Element)&&(St()?(Ct=(()=>document.documentElement)(),Ot=(g,a)=>{for(;a;){if(a===g)return!0;a=Bt(a)}return!1}):Ot=(g,a)=>g.contains(a),jt=(g,a,u)=>{if(u)return Array.from(g.querySelectorAll(a));const b=g.querySelector(a);return b?[b]:[]});let E=null,S=!1;function D(g){E||(E=function P(){return"undefined"!=typeof document?document.body:null}()||{},S=!!E.style&&"WebkitAppearance"in E.style);let a=!0;return E.style&&!function Re(g){return"ebkit"==g.substring(1,6)}(g)&&(a=g in E.style,!a&&S&&(a="Webkit"+g.charAt(0).toUpperCase()+g.substr(1)in E.style)),a}const N=Ot,oe=jt;let He=(()=>{class g{validateStyleProperty(u){return D(u)}matchesElement(u,b){return!1}containsElement(u,b){return N(u,b)}getParentElement(u){return Bt(u)}query(u,b,F){return oe(u,b,F)}computeStyle(u,b,F){return F||""}animate(u,b,F,$,re,ce=[],Ie){return new m.ZN(F,$)}}return g.\u0275fac=function(u){return new(u||g)},g.\u0275prov=l.Yz7({token:g,factory:g.\u0275fac}),g})(),Ge=(()=>{class g{}return g.NOOP=new He,g})();const rn="ng-enter",Kt="ng-leave",hn="ng-trigger",ht=".ng-trigger",vt="ng-animating",Ne=".ng-animating";function Ae(g){if("number"==typeof g)return g;const a=g.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:U(parseFloat(a[1]),a[2])}function U(g,a){return"s"===a?1e3*g:g}function z(g,a,u){return g.hasOwnProperty("duration")?g:function W(g,a,u){let F,$=0,re="";if("string"==typeof g){const ce=g.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ce)return a.push(Q()),{duration:0,delay:0,easing:""};F=U(parseFloat(ce[1]),ce[2]);const Ie=ce[3];null!=Ie&&($=U(parseFloat(Ie),ce[4]));const Je=ce[5];Je&&(re=Je)}else F=g;if(!u){let ce=!1,Ie=a.length;F<0&&(a.push(function Me(){return new l.vHH(3100,K)}()),ce=!0),$<0&&(a.push(function Ee(){return new l.vHH(3101,K)}()),ce=!0),ce&&a.splice(Ie,0,Q())}return{duration:F,delay:$,easing:re}}(g,a,u)}function fe(g,a={}){return Object.keys(g).forEach(u=>{a[u]=g[u]}),a}function at(g,a,u={}){if(a)for(let b in g)u[b]=g[b];else fe(g,u);return u}function Tt(g,a,u){return u?a+":"+u+";":""}function qt(g){let a="";for(let u=0;u{const F=Wt(b);u&&!u.hasOwnProperty(b)&&(u[b]=g.style[F]),g.style[F]=a[b]}),sn()&&qt(g))}function Mt(g,a){g.style&&(Object.keys(a).forEach(u=>{const b=Wt(u);g.style[b]=""}),sn()&&qt(g))}function kn(g){return Array.isArray(g)?1==g.length?g[0]:(0,m.vP)(g):g}const ve=new RegExp("{{\\s*(.+?)\\s*}}","g");function ie(g){let a=[];if("string"==typeof g){let u;for(;u=ve.exec(g);)a.push(u[1]);ve.lastIndex=0}return a}function Pe(g,a,u){const b=g.toString(),F=b.replace(ve,($,re)=>{let ce=a[re];return a.hasOwnProperty(re)||(u.push(function ne(g){return new l.vHH(3003,K)}()),ce=""),ce.toString()});return F==b?g:F}function ot(g){const a=[];let u=g.next();for(;!u.done;)a.push(u.value),u=g.next();return a}const Ft=/-+([a-z0-9])/g;function Wt(g){return g.replace(Ft,(...a)=>a[1].toUpperCase())}function Cn(g){return g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function En(g,a,u){switch(a.type){case 7:return g.visitTrigger(a,u);case 0:return g.visitState(a,u);case 1:return g.visitTransition(a,u);case 2:return g.visitSequence(a,u);case 3:return g.visitGroup(a,u);case 4:return g.visitAnimate(a,u);case 5:return g.visitKeyframes(a,u);case 6:return g.visitStyle(a,u);case 8:return g.visitReference(a,u);case 9:return g.visitAnimateChild(a,u);case 10:return g.visitAnimateRef(a,u);case 11:return g.visitQuery(a,u);case 12:return g.visitStagger(a,u);default:throw function se(g){return new l.vHH(3004,K)}()}}function zn(g,a){return window.getComputedStyle(g)[a]}function pt(g,a){const u=[];return"string"==typeof g?g.split(/\s*,\s*/).forEach(b=>function Jt(g,a,u){if(":"==g[0]){const Ie=function mn(g,a){switch(g){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,b)=>parseFloat(b)>parseFloat(u);case":decrement":return(u,b)=>parseFloat(b) *"}}(g,u);if("function"==typeof Ie)return void a.push(Ie);g=Ie}const b=g.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==b||b.length<4)return u.push(function xe(g){return new l.vHH(3015,K)}()),a;const F=b[1],$=b[2],re=b[3];a.push(Tn(F,re));"<"==$[0]&&!("*"==F&&"*"==re)&&a.push(Tn(re,F))}(b,u,a)):u.push(g),u}const Ln=new Set(["true","1"]),li=new Set(["false","0"]);function Tn(g,a){const u=Ln.has(g)||li.has(g),b=Ln.has(a)||li.has(a);return(F,$)=>{let re="*"==g||g==F,ce="*"==a||a==$;return!re&&u&&"boolean"==typeof F&&(re=F?Ln.has(g):li.has(g)),!ce&&b&&"boolean"==typeof $&&(ce=$?Ln.has(a):li.has(a)),re&&ce}}const nn=new RegExp("s*:selfs*,?","g");function Kn(g,a,u,b){return new zt(g).build(a,u,b)}class zt{constructor(a){this._driver=a}build(a,u,b){const F=new Ii(u);this._resetContextStyleTimingState(F);const $=En(this,kn(a),F);return F.unsupportedCSSPropertiesFound.size&&F.unsupportedCSSPropertiesFound.keys(),$}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,u){let b=u.queryCount=0,F=u.depCount=0;const $=[],re=[];return"@"==a.name.charAt(0)&&u.errors.push(function ee(){return new l.vHH(3006,K)}()),a.definitions.forEach(ce=>{if(this._resetContextStyleTimingState(u),0==ce.type){const Ie=ce,Je=Ie.name;Je.toString().split(/\s*,\s*/).forEach(yt=>{Ie.name=yt,$.push(this.visitState(Ie,u))}),Ie.name=Je}else if(1==ce.type){const Ie=this.visitTransition(ce,u);b+=Ie.queryCount,F+=Ie.depCount,re.push(Ie)}else u.errors.push(function le(){return new l.vHH(3007,K)}())}),{type:7,name:a.name,states:$,transitions:re,queryCount:b,depCount:F,options:null}}visitState(a,u){const b=this.visitStyle(a.styles,u),F=a.options&&a.options.params||null;if(b.containsDynamicStyles){const $=new Set,re=F||{};b.styles.forEach(ce=>{if(vn(ce)){const Ie=ce;Object.keys(Ie).forEach(Je=>{ie(Ie[Je]).forEach(yt=>{re.hasOwnProperty(yt)||$.add(yt)})})}}),$.size&&(ot($.values()),u.errors.push(function Fe(g,a){return new l.vHH(3008,K)}()))}return{type:0,name:a.name,style:b,options:F?{params:F}:null}}visitTransition(a,u){u.queryCount=0,u.depCount=0;const b=En(this,kn(a.animation),u);return{type:1,matchers:pt(a.expr,u.errors),animation:b,queryCount:u.queryCount,depCount:u.depCount,options:Bn(a.options)}}visitSequence(a,u){return{type:2,steps:a.steps.map(b=>En(this,b,u)),options:Bn(a.options)}}visitGroup(a,u){const b=u.currentTime;let F=0;const $=a.steps.map(re=>{u.currentTime=b;const ce=En(this,re,u);return F=Math.max(F,u.currentTime),ce});return u.currentTime=F,{type:3,steps:$,options:Bn(a.options)}}visitAnimate(a,u){const b=function hi(g,a){let u=null;if(g.hasOwnProperty("duration"))u=g;else if("number"==typeof g)return ei(z(g,a).duration,0,"");const b=g;if(b.split(/\s+/).some($=>"{"==$.charAt(0)&&"{"==$.charAt(1))){const $=ei(0,0,"");return $.dynamic=!0,$.strValue=b,$}return u=u||z(b,a),ei(u.duration,u.delay,u.easing)}(a.timings,u.errors);u.currentAnimateTimings=b;let F,$=a.styles?a.styles:(0,m.oB)({});if(5==$.type)F=this.visitKeyframes($,u);else{let re=a.styles,ce=!1;if(!re){ce=!0;const Je={};b.easing&&(Je.easing=b.easing),re=(0,m.oB)(Je)}u.currentTime+=b.duration+b.delay;const Ie=this.visitStyle(re,u);Ie.isEmptyStep=ce,F=Ie}return u.currentAnimateTimings=null,{type:4,timings:b,style:F,options:null}}visitStyle(a,u){const b=this._makeStyleAst(a,u);return this._validateStyleAst(b,u),b}_makeStyleAst(a,u){const b=[];Array.isArray(a.styles)?a.styles.forEach(re=>{"string"==typeof re?re==m.l3?b.push(re):u.errors.push(function Ve(g){return new l.vHH(3002,K)}()):b.push(re)}):b.push(a.styles);let F=!1,$=null;return b.forEach(re=>{if(vn(re)){const ce=re,Ie=ce.easing;if(Ie&&($=Ie,delete ce.easing),!F)for(let Je in ce)if(ce[Je].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:b,easing:$,offset:a.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(a,u){const b=u.currentAnimateTimings;let F=u.currentTime,$=u.currentTime;b&&$>0&&($-=b.duration+b.delay),a.styles.forEach(re=>{"string"!=typeof re&&Object.keys(re).forEach(ce=>{if(!this._driver.validateStyleProperty(ce))return delete re[ce],void u.unsupportedCSSPropertiesFound.add(ce);const Ie=u.collectedStyles[u.currentQuerySelector],Je=Ie[ce];let yt=!0;Je&&($!=F&&$>=Je.startTime&&F<=Je.endTime&&(u.errors.push(function tt(g,a,u,b,F){return new l.vHH(3010,K)}()),yt=!1),$=Je.startTime),yt&&(Ie[ce]={startTime:$,endTime:F}),u.options&&function Ue(g,a,u){const b=a.params||{},F=ie(g);F.length&&F.forEach($=>{b.hasOwnProperty($)||u.push(function de(g){return new l.vHH(3001,K)}())})}(re[ce],u.options,u.errors)})})}visitKeyframes(a,u){const b={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function Ze(){return new l.vHH(3011,K)}()),b;let $=0;const re=[];let ce=!1,Ie=!1,Je=0;const yt=a.steps.map(Wn=>{const ci=this._makeStyleAst(Wn,u);let Mi=null!=ci.offset?ci.offset:function $n(g){if("string"==typeof g)return null;let a=null;if(Array.isArray(g))g.forEach(u=>{if(vn(u)&&u.hasOwnProperty("offset")){const b=u;a=parseFloat(b.offset),delete b.offset}});else if(vn(g)&&g.hasOwnProperty("offset")){const u=g;a=parseFloat(u.offset),delete u.offset}return a}(ci.styles),ri=0;return null!=Mi&&($++,ri=ci.offset=Mi),Ie=Ie||ri<0||ri>1,ce=ce||ri0&&${const Mi=en>0?ci==cn?1:en*ci:re[ci],ri=Mi*wn;u.currentTime=Ut+on.delay+ri,on.duration=ri,this._validateStyleAst(Wn,u),Wn.offset=Mi,b.styles.push(Wn)}),b}visitReference(a,u){return{type:8,animation:En(this,kn(a.animation),u),options:Bn(a.options)}}visitAnimateChild(a,u){return u.depCount++,{type:9,options:Bn(a.options)}}visitAnimateRef(a,u){return{type:10,animation:this.visitReference(a.animation,u),options:Bn(a.options)}}visitQuery(a,u){const b=u.currentQuerySelector,F=a.options||{};u.queryCount++,u.currentQuery=a;const[$,re]=function di(g){const a=!!g.split(/\s*,\s*/).find(u=>":self"==u);return a&&(g=g.replace(nn,"")),g=g.replace(/@\*/g,ht).replace(/@\w+/g,u=>ht+"-"+u.substr(1)).replace(/:animating/g,Ne),[g,a]}(a.selector);u.currentQuerySelector=b.length?b+" "+$:$,$e(u.collectedStyles,u.currentQuerySelector,{});const ce=En(this,kn(a.animation),u);return u.currentQuery=null,u.currentQuerySelector=b,{type:11,selector:$,limit:F.limit||0,optional:!!F.optional,includeSelf:re,animation:ce,originalSelector:a.selector,options:Bn(a.options)}}visitStagger(a,u){u.currentQuery||u.errors.push(function J(){return new l.vHH(3013,K)}());const b="full"===a.timings?{duration:0,delay:0,easing:"full"}:z(a.timings,u.errors,!0);return{type:12,animation:En(this,kn(a.animation),u),timings:b,options:null}}}class Ii{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vn(g){return!Array.isArray(g)&&"object"==typeof g}function Bn(g){return g?(g=fe(g)).params&&(g.params=function Xn(g){return g?fe(g):null}(g.params)):g={},g}function ei(g,a,u){return{duration:g,delay:a,easing:u}}function dn(g,a,u,b,F,$,re=null,ce=!1){return{type:1,element:g,keyframes:a,preStyleProps:u,postStyleProps:b,duration:F,delay:$,totalTime:F+$,easing:re,subTimeline:ce}}class rr{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,u){let b=this._map.get(a);b||this._map.set(a,b=[]),b.push(...u)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Ei=new RegExp(":enter","g"),qi=new RegExp(":leave","g");function On(g,a,u,b,F,$={},re={},ce,Ie,Je=[]){return(new ti).buildKeyframes(g,a,u,b,F,$,re,ce,Ie,Je)}class ti{buildKeyframes(a,u,b,F,$,re,ce,Ie,Je,yt=[]){Je=Je||new rr;const Pt=new hr(a,u,Je,F,$,yt,[]);Pt.options=Ie,Pt.currentTimeline.setStyles([re],null,Pt.errors,Ie),En(this,b,Pt);const en=Pt.timelines.filter(cn=>cn.containsAnimation());if(Object.keys(ce).length){let cn;for(let Ut=en.length-1;Ut>=0;Ut--){const on=en[Ut];if(on.element===u){cn=on;break}}cn&&!cn.allowOnlyTimelineStyles()&&cn.setStyles([ce],null,Pt.errors,Ie)}return en.length?en.map(cn=>cn.buildKeyframes()):[dn(u,[],[],[],0,0,"",!1)]}visitTrigger(a,u){}visitState(a,u){}visitTransition(a,u){}visitAnimateChild(a,u){const b=u.subInstructions.get(u.element);if(b){const F=u.createSubContext(a.options),$=u.currentTimeline.currentTime,re=this._visitSubInstructions(b,F,F.options);$!=re&&u.transformIntoNewTimeline(re)}u.previousNode=a}visitAnimateRef(a,u){const b=u.createSubContext(a.options);b.transformIntoNewTimeline(),this.visitReference(a.animation,b),u.transformIntoNewTimeline(b.currentTimeline.currentTime),u.previousNode=a}_visitSubInstructions(a,u,b){let $=u.currentTimeline.currentTime;const re=null!=b.duration?Ae(b.duration):null,ce=null!=b.delay?Ae(b.delay):null;return 0!==re&&a.forEach(Ie=>{const Je=u.appendInstructionToTimeline(Ie,re,ce);$=Math.max($,Je.duration+Je.delay)}),$}visitReference(a,u){u.updateOptions(a.options,!0),En(this,a.animation,u),u.previousNode=a}visitSequence(a,u){const b=u.subContextCount;let F=u;const $=a.options;if($&&($.params||$.delay)&&(F=u.createSubContext($),F.transformIntoNewTimeline(),null!=$.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=Pi);const re=Ae($.delay);F.delayNextStep(re)}a.steps.length&&(a.steps.forEach(re=>En(this,re,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>b&&F.transformIntoNewTimeline()),u.previousNode=a}visitGroup(a,u){const b=[];let F=u.currentTimeline.currentTime;const $=a.options&&a.options.delay?Ae(a.options.delay):0;a.steps.forEach(re=>{const ce=u.createSubContext(a.options);$&&ce.delayNextStep($),En(this,re,ce),F=Math.max(F,ce.currentTimeline.currentTime),b.push(ce.currentTimeline)}),b.forEach(re=>u.currentTimeline.mergeTimelineCollectedStyles(re)),u.transformIntoNewTimeline(F),u.previousNode=a}_visitTiming(a,u){if(a.dynamic){const b=a.strValue;return z(u.params?Pe(b,u.params,u.errors):b,u.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,u){const b=u.currentAnimateTimings=this._visitTiming(a.timings,u),F=u.currentTimeline;b.delay&&(u.incrementTime(b.delay),F.snapshotCurrentStyles());const $=a.style;5==$.type?this.visitKeyframes($,u):(u.incrementTime(b.duration),this.visitStyle($,u),F.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=a}visitStyle(a,u){const b=u.currentTimeline,F=u.currentAnimateTimings;!F&&b.getCurrentStyleProperties().length&&b.forwardFrame();const $=F&&F.easing||a.easing;a.isEmptyStep?b.applyEmptyStep($):b.setStyles(a.styles,$,u.errors,u.options),u.previousNode=a}visitKeyframes(a,u){const b=u.currentAnimateTimings,F=u.currentTimeline.duration,$=b.duration,ce=u.createSubContext().currentTimeline;ce.easing=b.easing,a.styles.forEach(Ie=>{ce.forwardTime((Ie.offset||0)*$),ce.setStyles(Ie.styles,Ie.easing,u.errors,u.options),ce.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(ce),u.transformIntoNewTimeline(F+$),u.previousNode=a}visitQuery(a,u){const b=u.currentTimeline.currentTime,F=a.options||{},$=F.delay?Ae(F.delay):0;$&&(6===u.previousNode.type||0==b&&u.currentTimeline.getCurrentStyleProperties().length)&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Pi);let re=b;const ce=u.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!F.optional,u.errors);u.currentQueryTotal=ce.length;let Ie=null;ce.forEach((Je,yt)=>{u.currentQueryIndex=yt;const Pt=u.createSubContext(a.options,Je);$&&Pt.delayNextStep($),Je===u.element&&(Ie=Pt.currentTimeline),En(this,a.animation,Pt),Pt.currentTimeline.applyStylesToKeyframe(),re=Math.max(re,Pt.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(re),Ie&&(u.currentTimeline.mergeTimelineCollectedStyles(Ie),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=a}visitStagger(a,u){const b=u.parentContext,F=u.currentTimeline,$=a.timings,re=Math.abs($.duration),ce=re*(u.currentQueryTotal-1);let Ie=re*u.currentQueryIndex;switch($.duration<0?"reverse":$.easing){case"reverse":Ie=ce-Ie;break;case"full":Ie=b.currentStaggerTime}const yt=u.currentTimeline;Ie&&yt.delayNextStep(Ie);const Pt=yt.currentTime;En(this,a.animation,u),u.previousNode=a,b.currentStaggerTime=F.currentTime-Pt+(F.startTime-b.currentTimeline.startTime)}}const Pi={};class hr{constructor(a,u,b,F,$,re,ce,Ie){this._driver=a,this.element=u,this.subInstructions=b,this._enterClassName=F,this._leaveClassName=$,this.errors=re,this.timelines=ce,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Pi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ie||new or(this._driver,u,0),ce.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,u){if(!a)return;const b=a;let F=this.options;null!=b.duration&&(F.duration=Ae(b.duration)),null!=b.delay&&(F.delay=Ae(b.delay));const $=b.params;if($){let re=F.params;re||(re=this.options.params={}),Object.keys($).forEach(ce=>{(!u||!re.hasOwnProperty(ce))&&(re[ce]=Pe($[ce],re,this.errors))})}}_copyOptions(){const a={};if(this.options){const u=this.options.params;if(u){const b=a.params={};Object.keys(u).forEach(F=>{b[F]=u[F]})}}return a}createSubContext(a=null,u,b){const F=u||this.element,$=new hr(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,b||0));return $.previousNode=this.previousNode,$.currentAnimateTimings=this.currentAnimateTimings,$.options=this._copyOptions(),$.updateOptions(a),$.currentQueryIndex=this.currentQueryIndex,$.currentQueryTotal=this.currentQueryTotal,$.parentContext=this,this.subContextCount++,$}transformIntoNewTimeline(a){return this.previousNode=Pi,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,u,b){const F={duration:null!=u?u:a.duration,delay:this.currentTimeline.currentTime+(null!=b?b:0)+a.delay,easing:""},$=new fr(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,F,a.stretchStartingKeyframe);return this.timelines.push($),F}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,u,b,F,$,re){let ce=[];if(F&&ce.push(this.element),a.length>0){a=(a=a.replace(Ei,"."+this._enterClassName)).replace(qi,"."+this._leaveClassName);let Je=this._driver.query(this.element,a,1!=b);0!==b&&(Je=b<0?Je.slice(Je.length+b,Je.length):Je.slice(0,b)),ce.push(...Je)}return!$&&0==ce.length&&re.push(function me(g){return new l.vHH(3014,K)}()),ce}}class or{constructor(a,u,b,F){this._driver=a,this.element=u,this.startTime=b,this._elementTimelineStylesLookup=F,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const u=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||u?(this.forwardTime(this.currentTime+a),u&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,u){return this.applyStylesToKeyframe(),new or(this._driver,a,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,u){this._localTimelineStyles[a]=u,this._globalTimelineStyles[a]=u,this._styleSummary[a]={time:this.currentTime,value:u}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(u=>{this._backFill[u]=this._globalTimelineStyles[u]||m.l3,this._currentKeyframe[u]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,u,b,F){u&&(this._previousKeyframe.easing=u);const $=F&&F.params||{},re=function Fr(g,a){const u={};let b;return g.forEach(F=>{"*"===F?(b=b||Object.keys(a),b.forEach($=>{u[$]=m.l3})):at(F,!1,u)}),u}(a,this._globalTimelineStyles);Object.keys(re).forEach(ce=>{const Ie=Pe(re[ce],$,b);this._pendingStyles[ce]=Ie,this._localTimelineStyles.hasOwnProperty(ce)||(this._backFill[ce]=this._globalTimelineStyles.hasOwnProperty(ce)?this._globalTimelineStyles[ce]:m.l3),this._updateStyle(ce,Ie)})}applyStylesToKeyframe(){const a=this._pendingStyles,u=Object.keys(a);0!=u.length&&(this._pendingStyles={},u.forEach(b=>{this._currentKeyframe[b]=a[b]}),Object.keys(this._localTimelineStyles).forEach(b=>{this._currentKeyframe.hasOwnProperty(b)||(this._currentKeyframe[b]=this._localTimelineStyles[b])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const u=this._localTimelineStyles[a];this._pendingStyles[a]=u,this._updateStyle(a,u)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let u in this._currentKeyframe)a.push(u);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(u=>{const b=this._styleSummary[u],F=a._styleSummary[u];(!b||F.time>b.time)&&this._updateStyle(u,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,u=new Set,b=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((ce,Ie)=>{const Je=at(ce,!0);Object.keys(Je).forEach(yt=>{const Pt=Je[yt];Pt==m.k1?a.add(yt):Pt==m.l3&&u.add(yt)}),b||(Je.offset=Ie/this.duration),F.push(Je)});const $=a.size?ot(a.values()):[],re=u.size?ot(u.values()):[];if(b){const ce=F[0],Ie=fe(ce);ce.offset=0,Ie.offset=1,F=[ce,Ie]}return dn(this.element,F,$,re,this.duration,this.startTime,this.easing,!1)}}class fr extends or{constructor(a,u,b,F,$,re,ce=!1){super(a,u,re.delay),this.keyframes=b,this.preStyleProps=F,this.postStyleProps=$,this._stretchStartingKeyframe=ce,this.timings={duration:re.duration,delay:re.delay,easing:re.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:u,duration:b,easing:F}=this.timings;if(this._stretchStartingKeyframe&&u){const $=[],re=b+u,ce=u/re,Ie=at(a[0],!1);Ie.offset=0,$.push(Ie);const Je=at(a[0],!1);Je.offset=pr(ce),$.push(Je);const yt=a.length-1;for(let Pt=1;Pt<=yt;Pt++){let en=at(a[Pt],!1);en.offset=pr((u+en.offset*b)/re),$.push(en)}b=re,u=0,F="",a=$}return dn(this.element,a,this.preStyleProps,this.postStyleProps,b,u,F,!0)}}function pr(g,a=3){const u=Math.pow(10,a-1);return Math.round(g*u)/u}class mr{}class gr extends mr{normalizePropertyName(a,u){return Wt(a)}normalizeStyleValue(a,u,b,F){let $="";const re=b.toString().trim();if(sr[u]&&0!==b&&"0"!==b)if("number"==typeof b)$="px";else{const ce=b.match(/^[+-]?[\d\.]+([a-z]*)$/);ce&&0==ce[1].length&&F.push(function he(g,a){return new l.vHH(3005,K)}())}return re+$}}const sr=(()=>function Sr(g){const a={};return g.forEach(u=>a[u]=!0),a}("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".split(",")))();function ar(g,a,u,b,F,$,re,ce,Ie,Je,yt,Pt,en){return{type:0,element:g,triggerName:a,isRemovalTransition:F,fromState:u,fromStyles:$,toState:b,toStyles:re,timelines:ce,queriedElements:Ie,preStyleProps:Je,postStyleProps:yt,totalTime:Pt,errors:en}}const _r={};class lr{constructor(a,u,b){this._triggerName=a,this.ast=u,this._stateStyles=b}match(a,u,b,F){return function qr(g,a,u,b,F){return g.some($=>$(a,u,b,F))}(this.ast.matchers,a,u,b,F)}buildStyles(a,u,b){const F=this._stateStyles["*"],$=this._stateStyles[a],re=F?F.buildStyles(u,b):{};return $?$.buildStyles(u,b):re}build(a,u,b,F,$,re,ce,Ie,Je,yt){const Pt=[],en=this.ast.options&&this.ast.options.params||_r,Ut=this.buildStyles(b,ce&&ce.params||_r,Pt),on=Ie&&Ie.params||_r,wn=this.buildStyles(F,on,Pt),Wn=new Set,ci=new Map,Mi=new Map,ri="void"===F,Or={params:Object.assign(Object.assign({},en),on)},Hi=yt?[]:On(a,u,this.ast.animation,$,re,Ut,wn,Or,Je,Pt);let xi=0;if(Hi.forEach(Hn=>{xi=Math.max(Hn.duration+Hn.delay,xi)}),Pt.length)return ar(u,this._triggerName,b,F,ri,Ut,wn,[],[],ci,Mi,xi,Pt);Hi.forEach(Hn=>{const vi=Hn.element,jn=$e(ci,vi,{});Hn.preStyleProps.forEach(oi=>jn[oi]=!0);const eo=$e(Mi,vi,{});Hn.postStyleProps.forEach(oi=>eo[oi]=!0),vi!==u&&Wn.add(vi)});const Er=ot(Wn.values());return ar(u,this._triggerName,b,F,ri,Ut,wn,Hi,Er,ci,Mi,xi)}}class vr{constructor(a,u,b){this.styles=a,this.defaultParams=u,this.normalizer=b}buildStyles(a,u){const b={},F=fe(this.defaultParams);return Object.keys(a).forEach($=>{const re=a[$];null!=re&&(F[$]=re)}),this.styles.styles.forEach($=>{if("string"!=typeof $){const re=$;Object.keys(re).forEach(ce=>{let Ie=re[ce];Ie.length>1&&(Ie=Pe(Ie,F,u));const Je=this.normalizer.normalizePropertyName(ce,u);Ie=this.normalizer.normalizeStyleValue(ce,Je,Ie,u),b[Je]=Ie})}}),b}}class Qi{constructor(a,u,b){this.name=a,this.ast=u,this._normalizer=b,this.transitionFactories=[],this.states={},u.states.forEach(F=>{this.states[F.name]=new vr(F.style,F.options&&F.options.params||{},b)}),yr(this.states,"true","1"),yr(this.states,"false","0"),u.transitions.forEach(F=>{this.transitionFactories.push(new lr(a,F,this.states))}),this.fallbackTransition=function gi(g,a,u){return new lr(g,{type:1,animation:{type:2,steps:[],options:null},matchers:[(re,ce)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,u,b,F){return this.transitionFactories.find(re=>re.match(a,u,b,F))||null}matchStyles(a,u,b){return this.fallbackTransition.buildStyles(a,u,b)}}function yr(g,a,u){g.hasOwnProperty(a)?g.hasOwnProperty(u)||(g[u]=g[a]):g.hasOwnProperty(u)&&(g[a]=g[u])}const wi=new rr;class Qr{constructor(a,u,b){this.bodyNode=a,this._driver=u,this._normalizer=b,this._animations={},this._playersById={},this.players=[]}register(a,u){const b=[],$=Kn(this._driver,u,b,[]);if(b.length)throw function nt(g){return new l.vHH(3503,K)}();this._animations[a]=$}_buildPlayer(a,u,b){const F=a.element,$=ze(0,this._normalizer,0,a.keyframes,u,b);return this._driver.animate(F,$,a.duration,a.delay,a.easing,[],!0)}create(a,u,b={}){const F=[],$=this._animations[a];let re;const ce=new Map;if($?(re=On(this._driver,u,$,rn,Kt,{},{},b,wi,F),re.forEach(yt=>{const Pt=$e(ce,yt.element,{});yt.postStyleProps.forEach(en=>Pt[en]=null)})):(F.push(function Le(){return new l.vHH(3300,K)}()),re=[]),F.length)throw function Et(g){return new l.vHH(3504,K)}();ce.forEach((yt,Pt)=>{Object.keys(yt).forEach(en=>{yt[en]=this._driver.computeStyle(Pt,en,m.l3)})});const Je=et(re.map(yt=>{const Pt=ce.get(yt.element);return this._buildPlayer(yt,{},Pt)}));return this._playersById[a]=Je,Je.onDestroy(()=>this.destroy(a)),this.players.push(Je),Je}destroy(a){const u=this._getPlayer(a);u.destroy(),delete this._playersById[a];const b=this.players.indexOf(u);b>=0&&this.players.splice(b,1)}_getPlayer(a){const u=this._playersById[a];if(!u)throw function gt(g){return new l.vHH(3301,K)}();return u}listen(a,u,b,F){const $=je(u,"","","");return X(this._getPlayer(a),b,$,F),()=>{}}command(a,u,b,F){if("register"==b)return void this.register(a,F[0]);if("create"==b)return void this.create(a,u,F[0]||{});const $=this._getPlayer(a);switch(b){case"play":$.play();break;case"pause":$.pause();break;case"reset":$.reset();break;case"restart":$.restart();break;case"finish":$.finish();break;case"init":$.init();break;case"setPosition":$.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(a)}}}const Ai="ng-animate-queued",Gi="ng-animate-disabled",Ri=[],cr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ni="__ng_removed";class ur{constructor(a,u=""){this.namespaceId=u;const b=a&&a.hasOwnProperty("value");if(this.value=function A(g){return null!=g?g:null}(b?a.value:a),b){const $=fe(a);delete $.value,this.options=$}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const u=a.params;if(u){const b=this.options.params;Object.keys(u).forEach(F=>{null==b[F]&&(b[F]=u[F])})}}}const xn="void",Xi=new ur(xn);class er{constructor(a,u,b){this.id=a,this.hostElement=u,this._engine=b,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,it(u,this._hostClassName)}listen(a,u,b,F){if(!this._triggers.hasOwnProperty(u))throw function Xt(g,a){return new l.vHH(3302,K)}();if(null==b||0==b.length)throw function bt(g){return new l.vHH(3303,K)}();if(!function T(g){return"start"==g||"done"==g}(b))throw function kt(g,a){return new l.vHH(3400,K)}();const $=$e(this._elementListeners,a,[]),re={name:u,phase:b,callback:F};$.push(re);const ce=$e(this._engine.statesByElement,a,{});return ce.hasOwnProperty(u)||(it(a,hn),it(a,hn+"-"+u),ce[u]=Xi),()=>{this._engine.afterFlush(()=>{const Ie=$.indexOf(re);Ie>=0&&$.splice(Ie,1),this._triggers[u]||delete ce[u]})}}register(a,u){return!this._triggers[a]&&(this._triggers[a]=u,!0)}_getTrigger(a){const u=this._triggers[a];if(!u)throw function Yt(g){return new l.vHH(3401,K)}();return u}trigger(a,u,b,F=!0){const $=this._getTrigger(u),re=new Di(this.id,u,a);let ce=this._engine.statesByElement.get(a);ce||(it(a,hn),it(a,hn+"-"+u),this._engine.statesByElement.set(a,ce={}));let Ie=ce[u];const Je=new ur(b,this.id);if(!(b&&b.hasOwnProperty("value"))&&Ie&&Je.absorbOptions(Ie.options),ce[u]=Je,Ie||(Ie=Xi),Je.value!==xn&&Ie.value===Je.value){if(!function Gt(g,a){const u=Object.keys(g),b=Object.keys(a);if(u.length!=b.length)return!1;for(let F=0;F{Mt(a,wn),Zt(a,Wn)})}return}const en=$e(this._engine.playersByElement,a,[]);en.forEach(on=>{on.namespaceId==this.id&&on.triggerName==u&&on.queued&&on.destroy()});let cn=$.matchTransition(Ie.value,Je.value,a,Je.params),Ut=!1;if(!cn){if(!F)return;cn=$.fallbackTransition,Ut=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:u,transition:cn,fromState:Ie,toState:Je,player:re,isFallbackTransition:Ut}),Ut||(it(a,Ai),re.onStart(()=>{ft(a,Ai)})),re.onDone(()=>{let on=this.players.indexOf(re);on>=0&&this.players.splice(on,1);const wn=this._engine.playersByElement.get(a);if(wn){let Wn=wn.indexOf(re);Wn>=0&&wn.splice(Wn,1)}}),this.players.push(re),en.push(re),re}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((u,b)=>{delete u[a]}),this._elementListeners.forEach((u,b)=>{this._elementListeners.set(b,u.filter(F=>F.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const u=this._engine.playersByElement.get(a);u&&(u.forEach(b=>b.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,u){const b=this._engine.driver.query(a,ht,!0);b.forEach(F=>{if(F[ni])return;const $=this._engine.fetchNamespacesByElement(F);$.size?$.forEach(re=>re.triggerLeaveAnimation(F,u,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>b.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(a,u,b,F){const $=this._engine.statesByElement.get(a),re=new Map;if($){const ce=[];if(Object.keys($).forEach(Ie=>{if(re.set(Ie,$[Ie].value),this._triggers[Ie]){const Je=this.trigger(a,Ie,xn,F);Je&&ce.push(Je)}}),ce.length)return this._engine.markElementAsRemoved(this.id,a,!0,u,re),b&&et(ce).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const u=this._elementListeners.get(a),b=this._engine.statesByElement.get(a);if(u&&b){const F=new Set;u.forEach($=>{const re=$.name;if(F.has(re))return;F.add(re);const Ie=this._triggers[re].fallbackTransition,Je=b[re]||Xi,yt=new ur(xn),Pt=new Di(this.id,re,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:re,transition:Ie,fromState:Je,toState:yt,player:Pt,isFallbackTransition:!0})})}}removeNode(a,u){const b=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,u),this.triggerLeaveAnimation(a,u,!0))return;let F=!1;if(b.totalAnimations){const $=b.players.length?b.playersByQueriedElement.get(a):[];if($&&$.length)F=!0;else{let re=a;for(;re=re.parentNode;)if(b.statesByElement.get(re)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(a),F)b.markElementAsRemoved(this.id,a,!1,u);else{const $=a[ni];(!$||$===cr)&&(b.afterFlush(()=>this.clearElementCache(a)),b.destroyInnerAnimations(a),b._onRemovalComplete(a,u))}}insertNode(a,u){it(a,this._hostClassName)}drainQueuedTransitions(a){const u=[];return this._queue.forEach(b=>{const F=b.player;if(F.destroyed)return;const $=b.element,re=this._elementListeners.get($);re&&re.forEach(ce=>{if(ce.name==b.triggerName){const Ie=je($,b.triggerName,b.fromState.value,b.toState.value);Ie._data=a,X(b.player,ce.phase,Ie,ce.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):u.push(b)}),this._queue=[],u.sort((b,F)=>{const $=b.transition.ast.depCount,re=F.transition.ast.depCount;return 0==$||0==re?$-re:this._engine.driver.containsElement(b.element,F.element)?1:-1})}destroy(a){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let u=!1;return this._elementListeners.has(a)&&(u=!0),u=!!this._queue.find(b=>b.element===a)||u,u}}class ii{constructor(a,u,b){this.bodyNode=a,this.driver=u,this._normalizer=b,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=(F,$)=>{}}_onRemovalComplete(a,u){this.onRemovalComplete(a,u)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(u=>{u.players.forEach(b=>{b.queued&&a.push(b)})}),a}createNamespace(a,u){const b=new er(a,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(b,u):(this.newHostElements.set(u,b),this.collectEnterElement(u)),this._namespaceLookup[a]=b}_balanceNamespaceList(a,u){const b=this._namespaceList,F=this.namespacesByHostElement,$=b.length-1;if($>=0){let re=!1;if(void 0!==this.driver.getParentElement){let ce=this.driver.getParentElement(u);for(;ce;){const Ie=F.get(ce);if(Ie){const Je=b.indexOf(Ie);b.splice(Je+1,0,a),re=!0;break}ce=this.driver.getParentElement(ce)}}else for(let ce=$;ce>=0;ce--)if(this.driver.containsElement(b[ce].hostElement,u)){b.splice(ce+1,0,a),re=!0;break}re||b.unshift(a)}else b.push(a);return F.set(u,a),a}register(a,u){let b=this._namespaceLookup[a];return b||(b=this.createNamespace(a,u)),b}registerTrigger(a,u,b){let F=this._namespaceLookup[a];F&&F.register(u,b)&&this.totalAnimations++}destroy(a,u){if(!a)return;const b=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(b.hostElement),delete this._namespaceLookup[a];const F=this._namespaceList.indexOf(b);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>b.destroy(u))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const u=new Set,b=this.statesByElement.get(a);if(b){const F=Object.keys(b);for(let $=0;$=0&&this.collectedLeaveElements.splice(re,1)}if(a){const re=this._fetchNamespace(a);re&&re.insertNode(u,b)}F&&this.collectEnterElement(u)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,u){u?this.disabledNodes.has(a)||(this.disabledNodes.add(a),it(a,Gi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ft(a,Gi))}removeNode(a,u,b,F){if(B(u)){const $=a?this._fetchNamespace(a):null;if($?$.removeNode(u,F):this.markElementAsRemoved(a,u,!1,F),b){const re=this.namespacesByHostElement.get(u);re&&re.id!==a&&re.removeNode(u,F)}}else this._onRemovalComplete(u,F)}markElementAsRemoved(a,u,b,F,$){this.collectedLeaveElements.push(u),u[ni]={namespaceId:a,setForRemoval:F,hasAnimation:b,removedBeforeQueried:!1,previousTriggersValues:$}}listen(a,u,b,F,$){return B(u)?this._fetchNamespace(a).listen(u,b,F,$):()=>{}}_buildInstruction(a,u,b,F,$){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,b,F,a.fromState.options,a.toState.options,u,$)}destroyInnerAnimations(a){let u=this.driver.query(a,ht,!0);u.forEach(b=>this.destroyActiveAnimationsForElement(b)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(a,Ne,!0),u.forEach(b=>this.finishActiveQueriedAnimationOnElement(b)))}destroyActiveAnimationsForElement(a){const u=this.playersByElement.get(a);u&&u.forEach(b=>{b.queued?b.markedForDestroy=!0:b.destroy()})}finishActiveQueriedAnimationOnElement(a){const u=this.playersByQueriedElement.get(a);u&&u.forEach(b=>b.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return et(this.players).onDone(()=>a());a()})}processLeaveNode(a){var u;const b=a[ni];if(b&&b.setForRemoval){if(a[ni]=cr,b.namespaceId){this.destroyInnerAnimations(a);const F=this._fetchNamespace(b.namespaceId);F&&F.clearElementCache(a)}this._onRemovalComplete(a,b.setForRemoval)}(null===(u=a.classList)||void 0===u?void 0:u.contains(Gi))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(F=>{this.markElementAsDisabled(F,!1)})}flush(a=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((b,F)=>this._balanceNamespaceList(b,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let b=0;bb()),this._flushFns=[],this._whenQuietFns.length){const b=this._whenQuietFns;this._whenQuietFns=[],u.length?et(u).onDone(()=>{b.forEach(F=>F())}):b.forEach(F=>F())}}reportError(a){throw function Rt(g){return new l.vHH(3402,K)}()}_flushAnimations(a,u){const b=new rr,F=[],$=new Map,re=[],ce=new Map,Ie=new Map,Je=new Map,yt=new Set;this.disabledNodes.forEach(xt=>{yt.add(xt);const Lt=this.driver.query(xt,".ng-animate-queued",!0);for(let Nt=0;Nt{const Nt=rn+on++;Ut.set(Lt,Nt),xt.forEach(pn=>it(pn,Nt))});const wn=[],Wn=new Set,ci=new Set;for(let xt=0;xtWn.add(pn)):ci.add(Lt))}const Mi=new Map,ri=We(en,Array.from(Wn));ri.forEach((xt,Lt)=>{const Nt=Kt+on++;Mi.set(Lt,Nt),xt.forEach(pn=>it(pn,Nt))}),a.push(()=>{cn.forEach((xt,Lt)=>{const Nt=Ut.get(Lt);xt.forEach(pn=>ft(pn,Nt))}),ri.forEach((xt,Lt)=>{const Nt=Mi.get(Lt);xt.forEach(pn=>ft(pn,Nt))}),wn.forEach(xt=>{this.processLeaveNode(xt)})});const Or=[],Hi=[];for(let xt=this._namespaceList.length-1;xt>=0;xt--)this._namespaceList[xt].drainQueuedTransitions(u).forEach(Nt=>{const pn=Nt.player,Qn=Nt.element;if(Or.push(pn),this.collectedEnterElements.length){const Jn=Qn[ni];if(Jn&&Jn.setForMove){if(Jn.previousTriggersValues&&Jn.previousTriggersValues.has(Nt.triggerName)){const Wi=Jn.previousTriggersValues.get(Nt.triggerName),dr=this.statesByElement.get(Nt.element);dr&&dr[Nt.triggerName]&&(dr[Nt.triggerName].value=Wi)}return void pn.destroy()}}const ji=!Pt||!this.driver.containsElement(Pt,Qn),Ni=Mi.get(Qn),Dr=Ut.get(Qn),An=this._buildInstruction(Nt,b,Dr,Ni,ji);if(An.errors&&An.errors.length)return void Hi.push(An);if(ji)return pn.onStart(()=>Mt(Qn,An.fromStyles)),pn.onDestroy(()=>Zt(Qn,An.toStyles)),void F.push(pn);if(Nt.isFallbackTransition)return pn.onStart(()=>Mt(Qn,An.fromStyles)),pn.onDestroy(()=>Zt(Qn,An.toStyles)),void F.push(pn);const Ir=[];An.timelines.forEach(Jn=>{Jn.stretchStartingKeyframe=!0,this.disabledNodes.has(Jn.element)||Ir.push(Jn)}),An.timelines=Ir,b.append(Qn,An.timelines),re.push({instruction:An,player:pn,element:Qn}),An.queriedElements.forEach(Jn=>$e(ce,Jn,[]).push(pn)),An.preStyleProps.forEach((Jn,Wi)=>{const dr=Object.keys(Jn);if(dr.length){let Ur=Ie.get(Wi);Ur||Ie.set(Wi,Ur=new Set),dr.forEach(wo=>Ur.add(wo))}}),An.postStyleProps.forEach((Jn,Wi)=>{const dr=Object.keys(Jn);let Ur=Je.get(Wi);Ur||Je.set(Wi,Ur=new Set),dr.forEach(wo=>Ur.add(wo))})});if(Hi.length){const xt=[];Hi.forEach(Lt=>{xt.push(function Ht(g,a){return new l.vHH(3505,K)}())}),Or.forEach(Lt=>Lt.destroy()),this.reportError(xt)}const xi=new Map,Er=new Map;re.forEach(xt=>{const Lt=xt.element;b.has(Lt)&&(Er.set(Lt,Lt),this._beforeAnimationBuild(xt.player.namespaceId,xt.instruction,xi))}),F.forEach(xt=>{const Lt=xt.element;this._getPreviousPlayers(Lt,!1,xt.namespaceId,xt.triggerName,null).forEach(pn=>{$e(xi,Lt,[]).push(pn),pn.destroy()})});const Hn=wn.filter(xt=>Vn(xt,Ie,Je)),vi=new Map;ae(vi,this.driver,ci,Je,m.l3).forEach(xt=>{Vn(xt,Ie,Je)&&Hn.push(xt)});const eo=new Map;cn.forEach((xt,Lt)=>{ae(eo,this.driver,new Set(xt),Ie,m.k1)}),Hn.forEach(xt=>{const Lt=vi.get(xt),Nt=eo.get(xt);vi.set(xt,Object.assign(Object.assign({},Lt),Nt))});const oi=[],Mo=[],ho={};re.forEach(xt=>{const{element:Lt,player:Nt,instruction:pn}=xt;if(b.has(Lt)){if(yt.has(Lt))return Nt.onDestroy(()=>Zt(Lt,pn.toStyles)),Nt.disabled=!0,Nt.overrideTotalTime(pn.totalTime),void F.push(Nt);let Qn=ho;if(Er.size>1){let Ni=Lt;const Dr=[];for(;Ni=Ni.parentNode;){const An=Er.get(Ni);if(An){Qn=An;break}Dr.push(Ni)}Dr.forEach(An=>Er.set(An,Qn))}const ji=this._buildAnimation(Nt.namespaceId,pn,xi,$,eo,vi);if(Nt.setRealPlayer(ji),Qn===ho)oi.push(Nt);else{const Ni=this.playersByElement.get(Qn);Ni&&Ni.length&&(Nt.parentPlayer=et(Ni)),F.push(Nt)}}else Mt(Lt,pn.fromStyles),Nt.onDestroy(()=>Zt(Lt,pn.toStyles)),Mo.push(Nt),yt.has(Lt)&&F.push(Nt)}),Mo.forEach(xt=>{const Lt=$.get(xt.element);if(Lt&&Lt.length){const Nt=et(Lt);xt.setRealPlayer(Nt)}}),F.forEach(xt=>{xt.parentPlayer?xt.syncPlayerEvents(xt.parentPlayer):xt.destroy()});for(let xt=0;xt!ji.destroyed);Qn.length?Dn(this,Lt,Qn):this.processLeaveNode(Lt)}return wn.length=0,oi.forEach(xt=>{this.players.push(xt),xt.onDone(()=>{xt.destroy();const Lt=this.players.indexOf(xt);this.players.splice(Lt,1)}),xt.play()}),oi}elementContainsData(a,u){let b=!1;const F=u[ni];return F&&F.setForRemoval&&(b=!0),this.playersByElement.has(u)&&(b=!0),this.playersByQueriedElement.has(u)&&(b=!0),this.statesByElement.has(u)&&(b=!0),this._fetchNamespace(a).elementContainsData(u)||b}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,u,b,F,$){let re=[];if(u){const ce=this.playersByQueriedElement.get(a);ce&&(re=ce)}else{const ce=this.playersByElement.get(a);if(ce){const Ie=!$||$==xn;ce.forEach(Je=>{Je.queued||!Ie&&Je.triggerName!=F||re.push(Je)})}}return(b||F)&&(re=re.filter(ce=>!(b&&b!=ce.namespaceId||F&&F!=ce.triggerName))),re}_beforeAnimationBuild(a,u,b){const $=u.element,re=u.isRemovalTransition?void 0:a,ce=u.isRemovalTransition?void 0:u.triggerName;for(const Ie of u.timelines){const Je=Ie.element,yt=Je!==$,Pt=$e(b,Je,[]);this._getPreviousPlayers(Je,yt,re,ce,u.toState).forEach(cn=>{const Ut=cn.getRealPlayer();Ut.beforeDestroy&&Ut.beforeDestroy(),cn.destroy(),Pt.push(cn)})}Mt($,u.fromStyles)}_buildAnimation(a,u,b,F,$,re){const ce=u.triggerName,Ie=u.element,Je=[],yt=new Set,Pt=new Set,en=u.timelines.map(Ut=>{const on=Ut.element;yt.add(on);const wn=on[ni];if(wn&&wn.removedBeforeQueried)return new m.ZN(Ut.duration,Ut.delay);const Wn=on!==Ie,ci=function yn(g){const a=[];return fn(g,a),a}((b.get(on)||Ri).map(xi=>xi.getRealPlayer())).filter(xi=>!!xi.element&&xi.element===on),Mi=$.get(on),ri=re.get(on),Or=ze(0,this._normalizer,0,Ut.keyframes,Mi,ri),Hi=this._buildPlayer(Ut,Or,ci);if(Ut.subTimeline&&F&&Pt.add(on),Wn){const xi=new Di(a,ce,on);xi.setRealPlayer(Hi),Je.push(xi)}return Hi});Je.forEach(Ut=>{$e(this.playersByQueriedElement,Ut.element,[]).push(Ut),Ut.onDone(()=>function br(g,a,u){let b;if(g instanceof Map){if(b=g.get(a),b){if(b.length){const F=b.indexOf(u);b.splice(F,1)}0==b.length&&g.delete(a)}}else if(b=g[a],b){if(b.length){const F=b.indexOf(u);b.splice(F,1)}0==b.length&&delete g[a]}return b}(this.playersByQueriedElement,Ut.element,Ut))}),yt.forEach(Ut=>it(Ut,vt));const cn=et(en);return cn.onDestroy(()=>{yt.forEach(Ut=>ft(Ut,vt)),Zt(Ie,u.toStyles)}),Pt.forEach(Ut=>{$e(F,Ut,[]).push(cn)}),cn}_buildPlayer(a,u,b){return u.length>0?this.driver.animate(a.element,u,a.duration,a.delay,a.easing,b):new m.ZN(a.duration,a.delay)}}class Di{constructor(a,u,b){this.namespaceId=a,this.triggerName=u,this.element=b,this._player=new m.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(u=>{this._queuedCallbacks[u].forEach(b=>X(a,u,void 0,b))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const u=this._player;u.triggerCallback&&a.onStart(()=>u.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,u){$e(this._queuedCallbacks,a,[]).push(u)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const u=this._player;u.triggerCallback&&u.triggerCallback(a)}}function B(g){return g&&1===g.nodeType}function j(g,a){const u=g.style.display;return g.style.display=null!=a?a:"none",u}function ae(g,a,u,b,F){const $=[];u.forEach(Ie=>$.push(j(Ie)));const re=[];b.forEach((Ie,Je)=>{const yt={};Ie.forEach(Pt=>{const en=yt[Pt]=a.computeStyle(Je,Pt,F);(!en||0==en.length)&&(Je[ni]=Vr,re.push(Je))}),g.set(Je,yt)});let ce=0;return u.forEach(Ie=>j(Ie,$[ce++])),re}function We(g,a){const u=new Map;if(g.forEach(ce=>u.set(ce,[])),0==a.length)return u;const F=new Set(a),$=new Map;function re(ce){if(!ce)return 1;let Ie=$.get(ce);if(Ie)return Ie;const Je=ce.parentNode;return Ie=u.has(Je)?Je:F.has(Je)?1:re(Je),$.set(ce,Ie),Ie}return a.forEach(ce=>{const Ie=re(ce);1!==Ie&&u.get(Ie).push(ce)}),u}function it(g,a){var u;null===(u=g.classList)||void 0===u||u.add(a)}function ft(g,a){var u;null===(u=g.classList)||void 0===u||u.remove(a)}function Dn(g,a,u){et(u).onDone(()=>g.processLeaveNode(a))}function fn(g,a){for(let u=0;uF.add($)):a.set(g,b),u.delete(g),!0}class _n{constructor(a,u,b){this.bodyNode=a,this._driver=u,this._normalizer=b,this._triggerCache={},this.onRemovalComplete=(F,$)=>{},this._transitionEngine=new ii(a,u,b),this._timelineEngine=new Qr(a,u,b),this._transitionEngine.onRemovalComplete=(F,$)=>this.onRemovalComplete(F,$)}registerTrigger(a,u,b,F,$){const re=a+"-"+F;let ce=this._triggerCache[re];if(!ce){const Ie=[],yt=Kn(this._driver,$,Ie,[]);if(Ie.length)throw function Se(g,a){return new l.vHH(3404,K)}();ce=function Nr(g,a,u){return new Qi(g,a,u)}(F,yt,this._normalizer),this._triggerCache[re]=ce}this._transitionEngine.registerTrigger(u,F,ce)}register(a,u){this._transitionEngine.register(a,u)}destroy(a,u){this._transitionEngine.destroy(a,u)}onInsert(a,u,b,F){this._transitionEngine.insertNode(a,u,b,F)}onRemove(a,u,b,F){this._transitionEngine.removeNode(a,u,F||!1,b)}disableAnimations(a,u){this._transitionEngine.markElementAsDisabled(a,u)}process(a,u,b,F){if("@"==b.charAt(0)){const[$,re]=ct(b);this._timelineEngine.command($,u,re,F)}else this._transitionEngine.trigger(a,u,b,F)}listen(a,u,b,F,$){if("@"==b.charAt(0)){const[re,ce]=ct(b);return this._timelineEngine.listen(re,u,ce,$)}return this._transitionEngine.listen(a,u,b,F,$)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Un=(()=>{class g{constructor(u,b,F){this._element=u,this._startStyles=b,this._endStyles=F,this._state=0;let $=g.initialStylesByElement.get(u);$||g.initialStylesByElement.set(u,$={}),this._initialStyles=$}start(){this._state<1&&(this._startStyles&&Zt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Zt(this._element,this._initialStyles),this._endStyles&&(Zt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(g.initialStylesByElement.delete(this._element),this._startStyles&&(Mt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Mt(this._element,this._endStyles),this._endStyles=null),Zt(this._element,this._initialStyles),this._state=3)}}return g.initialStylesByElement=new WeakMap,g})();function Ti(g){let a=null;const u=Object.keys(g);for(let b=0;ba()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,u,b){return a.animate(u,b)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const u=this._finalKeyframe;Object.keys(u).forEach(b=>{"offset"!=b&&(a[b]=this._finished?u[b]:zn(this.element,b))})}this.currentSnapshot=a}triggerCallback(a){const u="start"==a?this._onStartFns:this._onDoneFns;u.forEach(b=>b()),u.length=0}}class Fi{validateStyleProperty(a){return D(a)}matchesElement(a,u){return!1}containsElement(a,u){return N(a,u)}getParentElement(a){return Bt(a)}query(a,u,b){return oe(a,u,b)}computeStyle(a,u,b){return window.getComputedStyle(a)[u]}animate(a,u,b,F,$,re=[]){const Ie={duration:b,delay:F,fill:0==F?"both":"forwards"};$&&(Ie.easing=$);const Je={},yt=re.filter(en=>en instanceof ki);(function tn(g,a){return 0===g||0===a})(b,F)&&yt.forEach(en=>{let cn=en.currentSnapshot;Object.keys(cn).forEach(Ut=>Je[Ut]=cn[Ut])}),u=function Fn(g,a,u){const b=Object.keys(u);if(b.length&&a.length){let $=a[0],re=[];if(b.forEach(ce=>{$.hasOwnProperty(ce)||re.push(ce),$[ce]=u[ce]}),re.length)for(var F=1;Fat(en,!1)),Je);const Pt=function In(g,a){let u=null,b=null;return Array.isArray(a)&&a.length?(u=Ti(a[0]),a.length>1&&(b=Ti(a[a.length-1]))):a&&(u=Ti(a)),u||b?new Un(g,u,b):null}(a,u);return new ki(a,u,Ie,Pt)}}var x=C(9808);let M=(()=>{class g extends m._j{constructor(u,b){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(b.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(u){const b=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(u)?(0,m.vP)(u):u;return Ke(this._renderer,null,b,"register",[F]),new v(b,this._renderer)}}return g.\u0275fac=function(u){return new(u||g)(l.LFG(l.FYo),l.LFG(x.K0))},g.\u0275prov=l.Yz7({token:g,factory:g.\u0275fac}),g})();class v extends m.LC{constructor(a,u){super(),this._id=a,this._renderer=u}create(a,u){return new H(this._id,a,u||{},this._renderer)}}class H{constructor(a,u,b,F){this.id=a,this.element=u,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",b)}_listen(a,u){return this._renderer.listen(this.element,`@@${this.id}:${a}`,u)}_command(a,...u){return Ke(this._renderer,this.element,this.id,a,u)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,u;return null!==(u=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==u?u:0}}function Ke(g,a,u,b,F){return g.setProperty(a,`@@${u}:${b}`,F)}const Mn="@.disabled";let _i=(()=>{class g{constructor(u,b,F){this.delegate=u,this.engine=b,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),b.onRemovalComplete=($,re)=>{const ce=null==re?void 0:re.parentNode($);ce&&re.removeChild(ce,$)}}createRenderer(u,b){const $=this.delegate.createRenderer(u,b);if(!(u&&b&&b.data&&b.data.animation)){let yt=this._rendererCache.get($);return yt||(yt=new $i("",$,this.engine),this._rendererCache.set($,yt)),yt}const re=b.id,ce=b.id+"-"+this._currentId;this._currentId++,this.engine.register(ce,u);const Ie=yt=>{Array.isArray(yt)?yt.forEach(Ie):this.engine.registerTrigger(re,ce,u,yt.name,yt)};return b.data.animation.forEach(Ie),new Li(this,ce,$,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(u,b,F){u>=0&&ub(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach($=>{const[re,ce]=$;re(ce)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([b,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return g.\u0275fac=function(u){return new(u||g)(l.LFG(l.FYo),l.LFG(_n),l.LFG(l.R0b))},g.\u0275prov=l.Yz7({token:g,factory:g.\u0275fac}),g})();class $i{constructor(a,u,b){this.namespaceId=a,this.delegate=u,this.engine=b,this.destroyNode=this.delegate.destroyNode?F=>u.destroyNode(F):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,u){return this.delegate.createElement(a,u)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,u){this.delegate.appendChild(a,u),this.engine.onInsert(this.namespaceId,u,a,!1)}insertBefore(a,u,b,F=!0){this.delegate.insertBefore(a,u,b),this.engine.onInsert(this.namespaceId,u,a,F)}removeChild(a,u,b){this.engine.onRemove(this.namespaceId,u,this.delegate,b)}selectRootElement(a,u){return this.delegate.selectRootElement(a,u)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,u,b,F){this.delegate.setAttribute(a,u,b,F)}removeAttribute(a,u,b){this.delegate.removeAttribute(a,u,b)}addClass(a,u){this.delegate.addClass(a,u)}removeClass(a,u){this.delegate.removeClass(a,u)}setStyle(a,u,b,F){this.delegate.setStyle(a,u,b,F)}removeStyle(a,u,b){this.delegate.removeStyle(a,u,b)}setProperty(a,u,b){"@"==u.charAt(0)&&u==Mn?this.disableAnimations(a,!!b):this.delegate.setProperty(a,u,b)}setValue(a,u){this.delegate.setValue(a,u)}listen(a,u,b){return this.delegate.listen(a,u,b)}disableAnimations(a,u){this.engine.disableAnimations(a,u)}}class Li extends $i{constructor(a,u,b,F){super(u,b,F),this.factory=a,this.namespaceId=u}setProperty(a,u,b){"@"==u.charAt(0)?"."==u.charAt(1)&&u==Mn?this.disableAnimations(a,b=void 0===b||!!b):this.engine.process(this.namespaceId,a,u.substr(1),b):this.delegate.setProperty(a,u,b)}listen(a,u,b){if("@"==u.charAt(0)){const F=function st(g){switch(g){case"body":return document.body;case"document":return document;case"window":return window;default:return g}}(a);let $=u.substr(1),re="";return"@"!=$.charAt(0)&&([$,re]=function an(g){const a=g.indexOf(".");return[g.substring(0,a),g.substr(a+1)]}($)),this.engine.listen(this.namespaceId,F,$,re,ce=>{this.factory.scheduleListenerCallback(ce._data||-1,b,ce)})}return this.delegate.listen(a,u,b)}}let Xr=(()=>{class g extends _n{constructor(u,b,F){super(u.body,b,F)}ngOnDestroy(){this.flush()}}return g.\u0275fac=function(u){return new(u||g)(l.LFG(x.K0),l.LFG(Ge),l.LFG(mr))},g.\u0275prov=l.Yz7({token:g,factory:g.\u0275fac}),g})();const Cr=new l.OlP("AnimationModuleType"),Ui=[{provide:m._j,useClass:M},{provide:mr,useFactory:function qn(){return new gr}},{provide:_n,useClass:Xr},{provide:l.FYo,useFactory:function bo(g,a,u){return new _i(g,a,u)},deps:[o.se,_n,l.R0b]}],k=[{provide:Ge,useFactory:()=>new Fi},{provide:Cr,useValue:"BrowserAnimations"},...Ui],De=[{provide:Ge,useClass:He},{provide:Cr,useValue:"NoopAnimations"},...Ui];let p=(()=>{class g{static withConfig(u){return{ngModule:g,providers:u.disableAnimations?De:k}}}return g.\u0275fac=function(u){return new(u||g)},g.\u0275mod=l.oAB({type:g}),g.\u0275inj=l.cJS({providers:k,imports:[o.b2]}),g})()},2313:(Ye,be,C)=>{C.d(be,{b2:()=>Ot,H7:()=>qt,q6:()=>$e,se:()=>nt});var l=C(9808),o=C(4893);class m extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class K extends m{static makeCurrent(){(0,l.HT)(new K)}onAndCancel(ve,ie,Pe){return ve.addEventListener(ie,Pe,!1),()=>{ve.removeEventListener(ie,Pe,!1)}}dispatchEvent(ve,ie){ve.dispatchEvent(ie)}remove(ve){ve.parentNode&&ve.parentNode.removeChild(ve)}createElement(ve,ie){return(ie=ie||this.getDefaultDocument()).createElement(ve)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ve){return ve.nodeType===Node.ELEMENT_NODE}isShadowRoot(ve){return ve instanceof DocumentFragment}getGlobalEventTarget(ve,ie){return"window"===ie?window:"document"===ie?ve:"body"===ie?ve.body:null}getBaseHref(ve){const ie=function Q(){return ue=ue||document.querySelector("base"),ue?ue.getAttribute("href"):null}();return null==ie?null:function Ee(Ue){Me=Me||document.createElement("a"),Me.setAttribute("href",Ue);const ve=Me.pathname;return"/"===ve.charAt(0)?ve:`/${ve}`}(ie)}resetBaseElement(){ue=null}getUserAgent(){return window.navigator.userAgent}getCookie(ve){return(0,l.Mx)(document.cookie,ve)}}let Me,ue=null;const de=new o.OlP("TRANSITION_ID"),se=[{provide:o.ip1,useFactory:function ne(Ue,ve,ie){return()=>{ie.get(o.CZH).donePromise.then(()=>{const Pe=(0,l.q)(),ot=ve.querySelectorAll(`style[ng-transition="${Ue}"]`);for(let Ft=0;Ft{const Ft=ve.findTestabilityInTree(Pe,ot);if(null==Ft)throw new Error("Could not find testability for element.");return Ft},o.dqk.getAllAngularTestabilities=()=>ve.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>ve.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(Pe=>{const ot=o.dqk.getAllAngularTestabilities();let Ft=ot.length,Wt=!1;const Cn=function(tn){Wt=Wt||tn,Ft--,0==Ft&&Pe(Wt)};ot.forEach(function(tn){tn.whenStable(Cn)})})}findTestabilityInTree(ve,ie,Pe){if(null==ie)return null;const ot=ve.getTestability(ie);return null!=ot?ot:Pe?(0,l.q)().isShadowRoot(ie)?this.findTestabilityInTree(ve,ie.host,!0):this.findTestabilityInTree(ve,ie.parentElement,!0):null}}let ee=(()=>{class Ue{build(){return new XMLHttpRequest}}return Ue.\u0275fac=function(ie){return new(ie||Ue)},Ue.\u0275prov=o.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();const le=new o.OlP("EventManagerPlugins");let Fe=(()=>{class Ue{constructor(ie,Pe){this._zone=Pe,this._eventNameToPlugin=new Map,ie.forEach(ot=>ot.manager=this),this._plugins=ie.slice().reverse()}addEventListener(ie,Pe,ot){return this._findPluginFor(Pe).addEventListener(ie,Pe,ot)}addGlobalEventListener(ie,Pe,ot){return this._findPluginFor(Pe).addGlobalEventListener(ie,Pe,ot)}getZone(){return this._zone}_findPluginFor(ie){const Pe=this._eventNameToPlugin.get(ie);if(Pe)return Pe;const ot=this._plugins;for(let Ft=0;Ft{class Ue{constructor(){this._stylesSet=new Set}addStyles(ie){const Pe=new Set;ie.forEach(ot=>{this._stylesSet.has(ot)||(this._stylesSet.add(ot),Pe.add(ot))}),this.onStylesAdded(Pe)}onStylesAdded(ie){}getAllStyles(){return Array.from(this._stylesSet)}}return Ue.\u0275fac=function(ie){return new(ie||Ue)},Ue.\u0275prov=o.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),tt=(()=>{class Ue extends q{constructor(ie){super(),this._doc=ie,this._hostNodes=new Map,this._hostNodes.set(ie.head,[])}_addStylesToHost(ie,Pe,ot){ie.forEach(Ft=>{const Wt=this._doc.createElement("style");Wt.textContent=Ft,ot.push(Pe.appendChild(Wt))})}addHost(ie){const Pe=[];this._addStylesToHost(this._stylesSet,ie,Pe),this._hostNodes.set(ie,Pe)}removeHost(ie){const Pe=this._hostNodes.get(ie);Pe&&Pe.forEach(Ze),this._hostNodes.delete(ie)}onStylesAdded(ie){this._hostNodes.forEach((Pe,ot)=>{this._addStylesToHost(ie,ot,Pe)})}ngOnDestroy(){this._hostNodes.forEach(ie=>ie.forEach(Ze))}}return Ue.\u0275fac=function(ie){return new(ie||Ue)(o.LFG(l.K0))},Ue.\u0275prov=o.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();function Ze(Ue){(0,l.q)().remove(Ue)}const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ge=/%COMP%/g,J="%COMP%",me=`_nghost-${J}`,xe=`_ngcontent-${J}`;function we(Ue,ve,ie){for(let Pe=0;Pe{if("__ngUnwrap__"===ve)return Ue;!1===Ue(ve)&&(ve.preventDefault(),ve.returnValue=!1)}}let nt=(()=>{class Ue{constructor(ie,Pe,ot){this.eventManager=ie,this.sharedStylesHost=Pe,this.appId=ot,this.rendererByCompId=new Map,this.defaultRenderer=new Le(ie)}createRenderer(ie,Pe){if(!ie||!Pe)return this.defaultRenderer;switch(Pe.encapsulation){case o.ifc.Emulated:{let ot=this.rendererByCompId.get(Pe.id);return ot||(ot=new Xt(this.eventManager,this.sharedStylesHost,Pe,this.appId),this.rendererByCompId.set(Pe.id,ot)),ot.applyToHost(ie),ot}case 1:case o.ifc.ShadowDom:return new bt(this.eventManager,this.sharedStylesHost,ie,Pe);default:if(!this.rendererByCompId.has(Pe.id)){const ot=we(Pe.id,Pe.styles,[]);this.sharedStylesHost.addStyles(ot),this.rendererByCompId.set(Pe.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ue.\u0275fac=function(ie){return new(ie||Ue)(o.LFG(Fe),o.LFG(tt),o.LFG(o.AFp))},Ue.\u0275prov=o.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();class Le{constructor(ve){this.eventManager=ve,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ve,ie){return ie?document.createElementNS(Qe[ie]||ie,ve):document.createElement(ve)}createComment(ve){return document.createComment(ve)}createText(ve){return document.createTextNode(ve)}appendChild(ve,ie){ve.appendChild(ie)}insertBefore(ve,ie,Pe){ve&&ve.insertBefore(ie,Pe)}removeChild(ve,ie){ve&&ve.removeChild(ie)}selectRootElement(ve,ie){let Pe="string"==typeof ve?document.querySelector(ve):ve;if(!Pe)throw new Error(`The selector "${ve}" did not match any elements`);return ie||(Pe.textContent=""),Pe}parentNode(ve){return ve.parentNode}nextSibling(ve){return ve.nextSibling}setAttribute(ve,ie,Pe,ot){if(ot){ie=ot+":"+ie;const Ft=Qe[ot];Ft?ve.setAttributeNS(Ft,ie,Pe):ve.setAttribute(ie,Pe)}else ve.setAttribute(ie,Pe)}removeAttribute(ve,ie,Pe){if(Pe){const ot=Qe[Pe];ot?ve.removeAttributeNS(ot,ie):ve.removeAttribute(`${Pe}:${ie}`)}else ve.removeAttribute(ie)}addClass(ve,ie){ve.classList.add(ie)}removeClass(ve,ie){ve.classList.remove(ie)}setStyle(ve,ie,Pe,ot){ot&(o.JOm.DashCase|o.JOm.Important)?ve.style.setProperty(ie,Pe,ot&o.JOm.Important?"important":""):ve.style[ie]=Pe}removeStyle(ve,ie,Pe){Pe&o.JOm.DashCase?ve.style.removeProperty(ie):ve.style[ie]=""}setProperty(ve,ie,Pe){ve[ie]=Pe}setValue(ve,ie){ve.nodeValue=ie}listen(ve,ie,Pe){return"string"==typeof ve?this.eventManager.addGlobalEventListener(ve,ie,Se(Pe)):this.eventManager.addEventListener(ve,ie,Se(Pe))}}class Xt extends Le{constructor(ve,ie,Pe,ot){super(ve),this.component=Pe;const Ft=we(ot+"-"+Pe.id,Pe.styles,[]);ie.addStyles(Ft),this.contentAttr=function Be(Ue){return xe.replace(ge,Ue)}(ot+"-"+Pe.id),this.hostAttr=function ye(Ue){return me.replace(ge,Ue)}(ot+"-"+Pe.id)}applyToHost(ve){super.setAttribute(ve,this.hostAttr,"")}createElement(ve,ie){const Pe=super.createElement(ve,ie);return super.setAttribute(Pe,this.contentAttr,""),Pe}}class bt extends Le{constructor(ve,ie,Pe,ot){super(ve),this.sharedStylesHost=ie,this.hostEl=Pe,this.shadowRoot=Pe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ft=we(ot.id,ot.styles,[]);for(let Wt=0;Wt{class Ue extends Ve{constructor(ie){super(ie)}supports(ie){return!0}addEventListener(ie,Pe,ot){return ie.addEventListener(Pe,ot,!1),()=>this.removeEventListener(ie,Pe,ot)}removeEventListener(ie,Pe,ot){return ie.removeEventListener(Pe,ot)}}return Ue.\u0275fac=function(ie){return new(ie||Ue)(o.LFG(l.K0))},Ue.\u0275prov=o.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();const Yt=["alt","control","meta","shift"],gn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ht={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},St={alt:Ue=>Ue.altKey,control:Ue=>Ue.ctrlKey,meta:Ue=>Ue.metaKey,shift:Ue=>Ue.shiftKey};let sn=(()=>{class Ue extends Ve{constructor(ie){super(ie)}supports(ie){return null!=Ue.parseEventName(ie)}addEventListener(ie,Pe,ot){const Ft=Ue.parseEventName(Pe),Wt=Ue.eventCallback(Ft.fullKey,ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(ie,Ft.domEventName,Wt))}static parseEventName(ie){const Pe=ie.toLowerCase().split("."),ot=Pe.shift();if(0===Pe.length||"keydown"!==ot&&"keyup"!==ot)return null;const Ft=Ue._normalizeKey(Pe.pop());let Wt="";if(Yt.forEach(tn=>{const Fn=Pe.indexOf(tn);Fn>-1&&(Pe.splice(Fn,1),Wt+=tn+".")}),Wt+=Ft,0!=Pe.length||0===Ft.length)return null;const Cn={};return Cn.domEventName=ot,Cn.fullKey=Wt,Cn}static getEventFullKey(ie){let Pe="",ot=function et(Ue){let ve=Ue.key;if(null==ve){if(ve=Ue.keyIdentifier,null==ve)return"Unidentified";ve.startsWith("U+")&&(ve=String.fromCharCode(parseInt(ve.substring(2),16)),3===Ue.location&&Ht.hasOwnProperty(ve)&&(ve=Ht[ve]))}return gn[ve]||ve}(ie);return ot=ot.toLowerCase()," "===ot?ot="space":"."===ot&&(ot="dot"),Yt.forEach(Ft=>{Ft!=ot&&St[Ft](ie)&&(Pe+=Ft+".")}),Pe+=ot,Pe}static eventCallback(ie,Pe,ot){return Ft=>{Ue.getEventFullKey(Ft)===ie&&ot.runGuarded(()=>Pe(Ft))}}static _normalizeKey(ie){return"esc"===ie?"escape":ie}}return Ue.\u0275fac=function(ie){return new(ie||Ue)(o.LFG(l.K0))},Ue.\u0275prov=o.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();const $e=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:l.bD},{provide:o.g9A,useValue:function ze(){K.makeCurrent(),he.init()},multi:!0},{provide:l.K0,useFactory:function Z(){return(0,o.RDi)(document),document},deps:[]}]),ct=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function X(){return new o.qLn},deps:[]},{provide:le,useClass:kt,multi:!0,deps:[l.K0,o.R0b,o.Lbi]},{provide:le,useClass:sn,multi:!0,deps:[l.K0]},{provide:nt,useClass:nt,deps:[Fe,tt,o.AFp]},{provide:o.FYo,useExisting:nt},{provide:q,useExisting:tt},{provide:tt,useClass:tt,deps:[l.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:Fe,useClass:Fe,deps:[le,o.R0b]},{provide:l.JF,useClass:ee,deps:[]}];let Ot=(()=>{class Ue{constructor(ie){if(ie)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ie){return{ngModule:Ue,providers:[{provide:o.AFp,useValue:ie.appId},{provide:de,useExisting:o.AFp},se]}}}return Ue.\u0275fac=function(ie){return new(ie||Ue)(o.LFG(Ue,12))},Ue.\u0275mod=o.oAB({type:Ue}),Ue.\u0275inj=o.cJS({providers:ct,imports:[l.ez,o.hGG]}),Ue})();"undefined"!=typeof window&&window;let qt=(()=>{class Ue{}return Ue.\u0275fac=function(ie){return new(ie||Ue)},Ue.\u0275prov=o.Yz7({token:Ue,factory:function(ie){let Pe=null;return Pe=ie?new(ie||Ue):o.LFG(Mt),Pe},providedIn:"root"}),Ue})(),Mt=(()=>{class Ue extends qt{constructor(ie){super(),this._doc=ie}sanitize(ie,Pe){if(null==Pe)return null;switch(ie){case o.q3G.NONE:return Pe;case o.q3G.HTML:return(0,o.qzn)(Pe,"HTML")?(0,o.z3N)(Pe):(0,o.EiD)(this._doc,String(Pe)).toString();case o.q3G.STYLE:return(0,o.qzn)(Pe,"Style")?(0,o.z3N)(Pe):Pe;case o.q3G.SCRIPT:if((0,o.qzn)(Pe,"Script"))return(0,o.z3N)(Pe);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(Pe),(0,o.qzn)(Pe,"URL")?(0,o.z3N)(Pe):(0,o.mCW)(String(Pe));case o.q3G.RESOURCE_URL:if((0,o.qzn)(Pe,"ResourceURL"))return(0,o.z3N)(Pe);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ie} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ie){return(0,o.JVY)(ie)}bypassSecurityTrustStyle(ie){return(0,o.L6k)(ie)}bypassSecurityTrustScript(ie){return(0,o.eBb)(ie)}bypassSecurityTrustUrl(ie){return(0,o.LAX)(ie)}bypassSecurityTrustResourceUrl(ie){return(0,o.pB0)(ie)}}return Ue.\u0275fac=function(ie){return new(ie||Ue)(o.LFG(l.K0))},Ue.\u0275prov=o.Yz7({token:Ue,factory:function(ie){let Pe=null;return Pe=ie?new ie:function Zt(Ue){return new Mt(Ue.get(l.K0))}(o.LFG(o.zs3)),Pe},providedIn:"root"}),Ue})()},9525:(Ye,be,C)=>{C.d(be,{gz:()=>Xn,F0:()=>oi,rH:()=>xt,yS:()=>Lt,Bz:()=>wo,lC:()=>cr});var l=C(4893),o=C(8306),m=C(576);function K(_,h){const d=(0,m.m)(_)?_:()=>_,w=O=>O.error(d());return new o.y(h?O=>h.schedule(w,0,O):w)}const Q=(0,C(3888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"});var Me=C(727),Ee=C(4482),de=C(5403);function ne(){return(0,Ee.e)((_,h)=>{let d=null;_._refCount++;const w=(0,de.x)(h,void 0,void 0,void 0,()=>{if(!_||_._refCount<=0||0<--_._refCount)return void(d=null);const O=_._connection,V=d;d=null,O&&(!V||O===V)&&O.unsubscribe(),h.unsubscribe()});_.subscribe(w),w.closed||(d=_.connect())})}class se extends o.y{constructor(h,d){super(),this.source=h,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,Ee.A)(h)&&(this.lift=h.lift)}_subscribe(h){return this.getSubject().subscribe(h)}getSubject(){const h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:h}=this;this._subject=this._connection=null,null==h||h.unsubscribe()}connect(){let h=this._connection;if(!h){h=this._connection=new Me.w0;const d=this.getSubject();h.add(this.source.subscribe((0,de.x)(d,void 0,()=>{this._teardown(),d.complete()},w=>{this._teardown(),d.error(w)},()=>this._teardown()))),h.closed&&(this._connection=null,h=Me.w0.EMPTY)}return h}refCount(){return ne()(this)}}var he=C(2076),ee=C(9646),le=C(1135),Fe=C(9841),Ve=C(7272),q=C(9770),tt=C(515),Ze=C(7579);function Qe(_,h,d,w,O){return(V,te)=>{let _e=d,qe=h,wt=0;V.subscribe((0,de.x)(te,un=>{const Vt=wt++;qe=_e?_(qe,un,Vt):(_e=!0,un),w&&te.next(qe)},O&&(()=>{_e&&te.next(qe),te.complete()})))}}function ge(_,h){return(0,Ee.e)(Qe(_,h,arguments.length>=2,!0))}var G=C(8421);function J(_){return(0,Ee.e)((h,d)=>{let V,w=null,O=!1;w=h.subscribe((0,de.x)(d,void 0,void 0,te=>{V=(0,G.Xf)(_(te,J(_)(h))),w?(w.unsubscribe(),w=null,V.subscribe(d)):O=!0})),O&&(w.unsubscribe(),w=null,V.subscribe(d))})}var me=C(9300);function xe(_){return _<=0?()=>tt.E:(0,Ee.e)((h,d)=>{let w=[];h.subscribe((0,de.x)(d,O=>{w.push(O),_{for(const O of w)d.next(O);d.complete()},void 0,()=>{w=null}))})}function Be(_=ye){return(0,Ee.e)((h,d)=>{let w=!1;h.subscribe((0,de.x)(d,O=>{w=!0,d.next(O)},()=>w?d.complete():d.error(_())))})}function ye(){return new Q}function we(_){return(0,Ee.e)((h,d)=>{let w=!1;h.subscribe((0,de.x)(d,O=>{w=!0,d.next(O)},()=>{w||d.next(_),d.complete()}))})}var Se=C(4671),nt=C(5698);function Le(_,h){const d=arguments.length>=2;return w=>w.pipe(_?(0,me.h)((O,V)=>_(O,V,w)):Se.y,(0,nt.q)(1),d?we(h):Be(()=>new Q))}var gt=C(4004),Xt=C(3900),bt=C(8675),kt=C(4351),Yt=C(5577),Rt=C(8505),gn=C(8189),Ht=C(9808);class St{constructor(h,d){this.id=h,this.url=d}}class sn extends St{constructor(h,d,w="imperative",O=null){super(h,d),this.navigationTrigger=w,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class et extends St{constructor(h,d,w){super(h,d),this.urlAfterRedirects=w}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ze extends St{constructor(h,d,w){super(h,d),this.reason=w}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class X extends St{constructor(h,d,w){super(h,d),this.error=w}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Z extends St{constructor(h,d,w,O){super(h,d),this.urlAfterRedirects=w,this.state=O}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class je extends St{constructor(h,d,w,O){super(h,d),this.urlAfterRedirects=w,this.state=O}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $e extends St{constructor(h,d,w,O,V){super(h,d),this.urlAfterRedirects=w,this.state=O,this.shouldActivate=V}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ct extends St{constructor(h,d,w,O){super(h,d),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ot extends St{constructor(h,d,w,O){super(h,d),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jt{constructor(h){this.route=h}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ct{constructor(h){this.route=h}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Bt{constructor(h){this.snapshot=h}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lt{constructor(h){this.snapshot=h}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(h){this.snapshot=h}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E{constructor(h){this.snapshot=h}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S{constructor(h,d,w){this.routerEvent=h,this.position=d,this.anchor=w}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const D="primary";class P{constructor(h){this.params=h||{}}has(h){return Object.prototype.hasOwnProperty.call(this.params,h)}get(h){if(this.has(h)){const d=this.params[h];return Array.isArray(d)?d[0]:d}return null}getAll(h){if(this.has(h)){const d=this.params[h];return Array.isArray(d)?d:[d]}return[]}get keys(){return Object.keys(this.params)}}function N(_){return new P(_)}const oe="ngNavigationCancelingError";function Ce(_){const h=Error("NavigationCancelingError: "+_);return h[oe]=!0,h}function Ge(_,h,d){const w=d.path.split("/");if(w.length>_.length||"full"===d.pathMatch&&(h.hasChildren()||w.length<_.length))return null;const O={};for(let V=0;Vw[V]===O)}return _===h}function rn(_){return Array.prototype.concat.apply([],_)}function Kt(_){return _.length>0?_[_.length-1]:null}function ht(_,h){for(const d in _)_.hasOwnProperty(d)&&h(_[d],d)}function vt(_){return(0,l.CqO)(_)?_:(0,l.QGY)(_)?(0,he.D)(Promise.resolve(_)):(0,ee.of)(_)}const Ae={exact:function fe(_,h,d){if(!ve(_.segments,h.segments)||!qt(_.segments,h.segments,d)||_.numberOfChildren!==h.numberOfChildren)return!1;for(const w in h.children)if(!_.children[w]||!fe(_.children[w],h.children[w],d))return!1;return!0},subset:at},U={exact:function W(_,h){return ut(_,h)},subset:function Oe(_,h){return Object.keys(h).length<=Object.keys(_).length&&Object.keys(h).every(d=>It(_[d],h[d]))},ignored:()=>!0};function z(_,h,d){return Ae[d.paths](_.root,h.root,d.matrixParams)&&U[d.queryParams](_.queryParams,h.queryParams)&&!("exact"===d.fragment&&_.fragment!==h.fragment)}function at(_,h,d){return Tt(_,h,h.segments,d)}function Tt(_,h,d,w){if(_.segments.length>d.length){const O=_.segments.slice(0,d.length);return!(!ve(O,d)||h.hasChildren()||!qt(O,d,w))}if(_.segments.length===d.length){if(!ve(_.segments,d)||!qt(_.segments,d,w))return!1;for(const O in h.children)if(!_.children[O]||!at(_.children[O],h.children[O],w))return!1;return!0}{const O=d.slice(0,_.segments.length),V=d.slice(_.segments.length);return!!(ve(_.segments,O)&&qt(_.segments,O,w)&&_.children[D])&&Tt(_.children[D],h,V,w)}}function qt(_,h,d){return h.every((w,O)=>U[d](_[O].parameters,w.parameters))}class Zt{constructor(h,d,w){this.root=h,this.queryParams=d,this.fragment=w}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=N(this.queryParams)),this._queryParamMap}toString(){return Ft.serialize(this)}}class Mt{constructor(h,d){this.segments=h,this.children=d,this.parent=null,ht(d,(w,O)=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wt(this)}}class kn{constructor(h,d){this.path=h,this.parameters=d}get parameterMap(){return this._parameterMap||(this._parameterMap=N(this.parameters)),this._parameterMap}toString(){return Ci(this)}}function ve(_,h){return _.length===h.length&&_.every((d,w)=>d.path===h[w].path)}class Pe{}class ot{parse(h){const d=new Ln(h);return new Zt(d.parseRootSegment(),d.parseQueryParams(),d.parseFragment())}serialize(h){const d=`/${Cn(h.root,!0)}`,w=function pi(_){const h=Object.keys(_).map(d=>{const w=_[d];return Array.isArray(w)?w.map(O=>`${Fn(d)}=${Fn(O)}`).join("&"):`${Fn(d)}=${Fn(w)}`}).filter(d=>!!d);return h.length?`?${h.join("&")}`:""}(h.queryParams);return`${d}${w}${"string"==typeof h.fragment?`#${function En(_){return encodeURI(_)}(h.fragment)}`:""}`}}const Ft=new ot;function Wt(_){return _.segments.map(h=>Ci(h)).join("/")}function Cn(_,h){if(!_.hasChildren())return Wt(_);if(h){const d=_.children[D]?Cn(_.children[D],!1):"",w=[];return ht(_.children,(O,V)=>{V!==D&&w.push(`${V}:${Cn(O,!1)}`)}),w.length>0?`${d}(${w.join("//")})`:d}{const d=function ie(_,h){let d=[];return ht(_.children,(w,O)=>{O===D&&(d=d.concat(h(w,O)))}),ht(_.children,(w,O)=>{O!==D&&(d=d.concat(h(w,O)))}),d}(_,(w,O)=>O===D?[Cn(_.children[D],!1)]:[`${O}:${Cn(w,!1)}`]);return 1===Object.keys(_.children).length&&null!=_.children[D]?`${Wt(_)}/${d[0]}`:`${Wt(_)}/(${d.join("//")})`}}function tn(_){return encodeURIComponent(_).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fn(_){return tn(_).replace(/%3B/gi,";")}function zn(_){return tn(_).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function si(_){return decodeURIComponent(_)}function Yn(_){return si(_.replace(/\+/g,"%20"))}function Ci(_){return`${zn(_.path)}${function ai(_){return Object.keys(_).map(h=>`;${zn(h)}=${zn(_[h])}`).join("")}(_.parameters)}`}const Nn=/^[^\/()?;=#]+/;function zi(_){const h=_.match(Nn);return h?h[0]:""}const Gn=/^[^=?]+/,Jt=/^[^]+/;class Ln{constructor(h){this.url=h,this.remaining=h}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Mt([],{}):new Mt([],this.parseChildren())}parseQueryParams(){const h={};if(this.consumeOptional("?"))do{this.parseQueryParam(h)}while(this.consumeOptional("&"));return h}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const h=[];for(this.peekStartsWith("(")||h.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),h.push(this.parseSegment());let d={};this.peekStartsWith("/(")&&(this.capture("/"),d=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(h.length>0||Object.keys(d).length>0)&&(w[D]=new Mt(h,d)),w}parseSegment(){const h=zi(this.remaining);if(""===h&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(h),new kn(si(h),this.parseMatrixParams())}parseMatrixParams(){const h={};for(;this.consumeOptional(";");)this.parseParam(h);return h}parseParam(h){const d=zi(this.remaining);if(!d)return;this.capture(d);let w="";if(this.consumeOptional("=")){const O=zi(this.remaining);O&&(w=O,this.capture(w))}h[si(d)]=si(w)}parseQueryParam(h){const d=function pt(_){const h=_.match(Gn);return h?h[0]:""}(this.remaining);if(!d)return;this.capture(d);let w="";if(this.consumeOptional("=")){const te=function mn(_){const h=_.match(Jt);return h?h[0]:""}(this.remaining);te&&(w=te,this.capture(w))}const O=Yn(d),V=Yn(w);if(h.hasOwnProperty(O)){let te=h[O];Array.isArray(te)||(te=[te],h[O]=te),te.push(V)}else h[O]=V}parseParens(h){const d={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=zi(this.remaining),O=this.remaining[w.length];if("/"!==O&&")"!==O&&";"!==O)throw new Error(`Cannot parse url '${this.url}'`);let V;w.indexOf(":")>-1?(V=w.substr(0,w.indexOf(":")),this.capture(V),this.capture(":")):h&&(V=D);const te=this.parseChildren();d[V]=1===Object.keys(te).length?te[D]:new Mt([],te),this.consumeOptional("//")}return d}peekStartsWith(h){return this.remaining.startsWith(h)}consumeOptional(h){return!!this.peekStartsWith(h)&&(this.remaining=this.remaining.substring(h.length),!0)}capture(h){if(!this.consumeOptional(h))throw new Error(`Expected "${h}".`)}}class li{constructor(h){this._root=h}get root(){return this._root.value}parent(h){const d=this.pathFromRoot(h);return d.length>1?d[d.length-2]:null}children(h){const d=Tn(h,this._root);return d?d.children.map(w=>w.value):[]}firstChild(h){const d=Tn(h,this._root);return d&&d.children.length>0?d.children[0].value:null}siblings(h){const d=ui(h,this._root);return d.length<2?[]:d[d.length-2].children.map(O=>O.value).filter(O=>O!==h)}pathFromRoot(h){return ui(h,this._root).map(d=>d.value)}}function Tn(_,h){if(_===h.value)return h;for(const d of h.children){const w=Tn(_,d);if(w)return w}return null}function ui(_,h){if(_===h.value)return[h];for(const d of h.children){const w=ui(_,d);if(w.length)return w.unshift(h),w}return[]}class nn{constructor(h,d){this.value=h,this.children=d}toString(){return`TreeNode(${this.value})`}}function Kn(_){const h={};return _&&_.children.forEach(d=>h[d.value.outlet]=d),h}class mi extends li{constructor(h,d){super(h),this.snapshot=d,Bn(this,h)}toString(){return this.snapshot.toString()}}function zt(_,h){const d=function di(_,h){const te=new vn([],{},{},"",{},D,h,null,_.root,-1,{});return new hi("",new nn(te,[]))}(_,h),w=new le.X([new kn("",{})]),O=new le.X({}),V=new le.X({}),te=new le.X({}),_e=new le.X(""),qe=new Xn(w,O,te,_e,V,D,h,d.root);return qe.snapshot=d.root,new mi(new nn(qe,[]),d)}class Xn{constructor(h,d,w,O,V,te,_e,qe){this.url=h,this.params=d,this.queryParams=w,this.fragment=O,this.data=V,this.outlet=te,this.component=_e,this._futureSnapshot=qe}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,gt.U)(h=>N(h)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,gt.U)(h=>N(h)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ii(_,h="emptyOnly"){const d=_.pathFromRoot;let w=0;if("always"!==h)for(w=d.length-1;w>=1;){const O=d[w],V=d[w-1];if(O.routeConfig&&""===O.routeConfig.path)w--;else{if(V.component)break;w--}}return function $n(_){return _.reduce((h,d)=>({params:Object.assign(Object.assign({},h.params),d.params),data:Object.assign(Object.assign({},h.data),d.data),resolve:Object.assign(Object.assign({},h.resolve),d._resolvedData)}),{params:{},data:{},resolve:{}})}(d.slice(w))}class vn{constructor(h,d,w,O,V,te,_e,qe,wt,un,Vt){this.url=h,this.params=d,this.queryParams=w,this.fragment=O,this.data=V,this.outlet=te,this.component=_e,this.routeConfig=qe,this._urlSegment=wt,this._lastPathIndex=un,this._resolve=Vt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=N(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=N(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hi extends li{constructor(h,d){super(d),this.url=h,Bn(this,d)}toString(){return ei(this._root)}}function Bn(_,h){h.value._routerState=_,h.children.forEach(d=>Bn(_,d))}function ei(_){const h=_.children.length>0?` { ${_.children.map(ei).join(", ")} } `:"";return`${_.value}${h}`}function dn(_){if(_.snapshot){const h=_.snapshot,d=_._futureSnapshot;_.snapshot=d,ut(h.queryParams,d.queryParams)||_.queryParams.next(d.queryParams),h.fragment!==d.fragment&&_.fragment.next(d.fragment),ut(h.params,d.params)||_.params.next(d.params),function _t(_,h){if(_.length!==h.length)return!1;for(let d=0;d<_.length;++d)if(!ut(_[d],h[d]))return!1;return!0}(h.url,d.url)||_.url.next(d.url),ut(h.data,d.data)||_.data.next(d.data)}else _.snapshot=_._futureSnapshot,_.data.next(_._futureSnapshot.data)}function rr(_,h){const d=ut(_.params,h.params)&&function Ue(_,h){return ve(_,h)&&_.every((d,w)=>ut(d.parameters,h[w].parameters))}(_.url,h.url);return d&&!(!_.parent!=!h.parent)&&(!_.parent||rr(_.parent,h.parent))}function Zn(_,h,d){if(d&&_.shouldReuseRoute(h.value,d.value.snapshot)){const w=d.value;w._futureSnapshot=h.value;const O=function Ei(_,h,d){return h.children.map(w=>{for(const O of d.children)if(_.shouldReuseRoute(w.value,O.value.snapshot))return Zn(_,w,O);return Zn(_,w)})}(_,h,d);return new nn(w,O)}{if(_.shouldAttach(h.value)){const V=_.retrieve(h.value);if(null!==V){const te=V.route;return te.value._futureSnapshot=h.value,te.children=h.children.map(_e=>Zn(_,_e)),te}}const w=function Zi(_){return new Xn(new le.X(_.url),new le.X(_.params),new le.X(_.queryParams),new le.X(_.fragment),new le.X(_.data),_.outlet,_.component,_)}(h.value),O=h.children.map(V=>Zn(_,V));return new nn(w,O)}}function On(_){return"object"==typeof _&&null!=_&&!_.outlets&&!_.segmentPath}function ti(_){return"object"==typeof _&&null!=_&&_.outlets}function Pi(_,h,d,w,O){let V={};return w&&ht(w,(te,_e)=>{V[_e]=Array.isArray(te)?te.map(qe=>`${qe}`):`${te}`}),new Zt(d.root===_?h:hr(d.root,_,h),V,O)}function hr(_,h,d){const w={};return ht(_.children,(O,V)=>{w[V]=O===h?d:hr(O,h,d)}),new Mt(_.segments,w)}class or{constructor(h,d,w){if(this.isAbsolute=h,this.numberOfDoubleDots=d,this.commands=w,h&&w.length>0&&On(w[0]))throw new Error("Root segment cannot have matrix parameters");const O=w.find(ti);if(O&&O!==Kt(w))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(h,d,w){this.segmentGroup=h,this.processChildren=d,this.index=w}}function Lr(_,h,d){if(_||(_=new Mt([],{})),0===_.segments.length&&_.hasChildren())return gr(_,h,d);const w=function sr(_,h,d){let w=0,O=h;const V={match:!1,pathIndex:0,commandIndex:0};for(;O<_.segments.length;){if(w>=d.length)return V;const te=_.segments[O],_e=d[w];if(ti(_e))break;const qe=`${_e}`,wt=w0&&void 0===qe)break;if(qe&&wt&&"object"==typeof wt&&void 0===wt.outlets){if(!lr(qe,wt,te))return V;w+=2}else{if(!lr(qe,{},te))return V;w++}O++}return{match:!0,pathIndex:O,commandIndex:w}}(_,h,d),O=d.slice(w.commandIndex);if(w.match&&w.pathIndex<_.segments.length){const V=new Mt(_.segments.slice(0,w.pathIndex),{});return V.children[D]=new Mt(_.segments.slice(w.pathIndex),_.children),gr(V,0,O)}return w.match&&0===O.length?new Mt(_.segments,{}):w.match&&!_.hasChildren()?Sr(_,h,d):w.match?gr(_,0,O):Sr(_,h,d)}function gr(_,h,d){if(0===d.length)return new Mt(_.segments,{});{const w=function mr(_){return ti(_[0])?_[0].outlets:{[D]:_}}(d),O={};return ht(w,(V,te)=>{"string"==typeof V&&(V=[V]),null!==V&&(O[te]=Lr(_.children[te],h,V))}),ht(_.children,(V,te)=>{void 0===w[te]&&(O[te]=V)}),new Mt(_.segments,O)}}function Sr(_,h,d){const w=_.segments.slice(0,h);let O=0;for(;O{"string"==typeof d&&(d=[d]),null!==d&&(h[w]=Sr(new Mt([],{}),0,d))}),h}function _r(_){const h={};return ht(_,(d,w)=>h[w]=`${d}`),h}function lr(_,h,d){return _==d.path&&ut(h,d.parameters)}class vr{constructor(h,d,w,O){this.routeReuseStrategy=h,this.futureState=d,this.currState=w,this.forwardEvent=O}activate(h){const d=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(d,w,h),dn(this.futureState.root),this.activateChildRoutes(d,w,h)}deactivateChildRoutes(h,d,w){const O=Kn(d);h.children.forEach(V=>{const te=V.value.outlet;this.deactivateRoutes(V,O[te],w),delete O[te]}),ht(O,(V,te)=>{this.deactivateRouteAndItsChildren(V,w)})}deactivateRoutes(h,d,w){const O=h.value,V=d?d.value:null;if(O===V)if(O.component){const te=w.getContext(O.outlet);te&&this.deactivateChildRoutes(h,d,te.children)}else this.deactivateChildRoutes(h,d,w);else V&&this.deactivateRouteAndItsChildren(d,w)}deactivateRouteAndItsChildren(h,d){h.value.component&&this.routeReuseStrategy.shouldDetach(h.value.snapshot)?this.detachAndStoreRouteSubtree(h,d):this.deactivateRouteAndOutlet(h,d)}detachAndStoreRouteSubtree(h,d){const w=d.getContext(h.value.outlet),O=w&&h.value.component?w.children:d,V=Kn(h);for(const te of Object.keys(V))this.deactivateRouteAndItsChildren(V[te],O);if(w&&w.outlet){const te=w.outlet.detach(),_e=w.children.onOutletDeactivated();this.routeReuseStrategy.store(h.value.snapshot,{componentRef:te,route:h,contexts:_e})}}deactivateRouteAndOutlet(h,d){const w=d.getContext(h.value.outlet),O=w&&h.value.component?w.children:d,V=Kn(h);for(const te of Object.keys(V))this.deactivateRouteAndItsChildren(V[te],O);w&&w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated(),w.attachRef=null,w.resolver=null,w.route=null)}activateChildRoutes(h,d,w){const O=Kn(d);h.children.forEach(V=>{this.activateRoutes(V,O[V.value.outlet],w),this.forwardEvent(new E(V.value.snapshot))}),h.children.length&&this.forwardEvent(new lt(h.value.snapshot))}activateRoutes(h,d,w){const O=h.value,V=d?d.value:null;if(dn(O),O===V)if(O.component){const te=w.getOrCreateContext(O.outlet);this.activateChildRoutes(h,d,te.children)}else this.activateChildRoutes(h,d,w);else if(O.component){const te=w.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const _e=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),te.children.onOutletReAttached(_e.contexts),te.attachRef=_e.componentRef,te.route=_e.route.value,te.outlet&&te.outlet.attach(_e.componentRef,_e.route.value),dn(_e.route.value),this.activateChildRoutes(h,null,te.children)}else{const _e=function Nr(_){for(let h=_.parent;h;h=h.parent){const d=h.routeConfig;if(d&&d._loadedConfig)return d._loadedConfig;if(d&&d.component)return null}return null}(O.snapshot),qe=_e?_e.module.componentFactoryResolver:null;te.attachRef=null,te.route=O,te.resolver=qe,te.outlet&&te.outlet.activateWith(O,qe),this.activateChildRoutes(h,null,te.children)}}else this.activateChildRoutes(h,null,w)}}class Qi{constructor(h,d){this.routes=h,this.module=d}}function gi(_){return"function"==typeof _}function wi(_){return _ instanceof Zt}const Vi=Symbol("INITIAL_VALUE");function Ji(){return(0,Xt.w)(_=>(0,Fe.a)(_.map(h=>h.pipe((0,nt.q)(1),(0,bt.O)(Vi)))).pipe(ge((h,d)=>{let w=!1;return d.reduce((O,V,te)=>O!==Vi?O:(V===Vi&&(w=!0),w||!1!==V&&te!==d.length-1&&!wi(V)?O:V),h)},Vi),(0,me.h)(h=>h!==Vi),(0,gt.U)(h=>wi(h)?h:!0===h),(0,nt.q)(1)))}class Jr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ri,this.attachRef=null}}class Ri{constructor(){this.contexts=new Map}onChildOutletCreated(h,d){const w=this.getOrCreateContext(h);w.outlet=d,this.contexts.set(h,w)}onChildOutletDestroyed(h){const d=this.getContext(h);d&&(d.outlet=null,d.attachRef=null)}onOutletDeactivated(){const h=this.contexts;return this.contexts=new Map,h}onOutletReAttached(h){this.contexts=h}getOrCreateContext(h){let d=this.getContext(h);return d||(d=new Jr,this.contexts.set(h,d)),d}getContext(h){return this.contexts.get(h)||null}}let cr=(()=>{class _{constructor(d,w,O,V,te){this.parentContexts=d,this.location=w,this.resolver=O,this.changeDetector=te,this.activated=null,this._activatedRoute=null,this.activateEvents=new l.vpe,this.deactivateEvents=new l.vpe,this.attachEvents=new l.vpe,this.detachEvents=new l.vpe,this.name=V||D,d.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const d=this.parentContexts.getContext(this.name);d&&d.route&&(d.attachRef?this.attach(d.attachRef,d.route):this.activateWith(d.route,d.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const d=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(d.instance),d}attach(d,w){this.activated=d,this._activatedRoute=w,this.location.insert(d.hostView),this.attachEvents.emit(d.instance)}deactivate(){if(this.activated){const d=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(d)}}activateWith(d,w){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=d;const te=(w=w||this.resolver).resolveComponentFactory(d._futureSnapshot.routeConfig.component),_e=this.parentContexts.getOrCreateContext(this.name).children,qe=new Vr(d,_e,this.location.injector);this.activated=this.location.createComponent(te,this.location.length,qe),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return _.\u0275fac=function(d){return new(d||_)(l.Y36(Ri),l.Y36(l.s_b),l.Y36(l._Vd),l.$8M("name"),l.Y36(l.sBO))},_.\u0275dir=l.lG2({type:_,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),_})();class Vr{constructor(h,d,w){this.route=h,this.childContexts=d,this.parent=w}get(h,d){return h===Xn?this.route:h===Ri?this.childContexts:this.parent.get(h,d)}}let ni=(()=>{class _{}return _.\u0275fac=function(d){return new(d||_)},_.\u0275cmp=l.Xpm({type:_,selectors:[["ng-component"]],decls:1,vars:0,template:function(d,w){1&d&&l._UZ(0,"router-outlet")},directives:[cr],encapsulation:2}),_})();function ur(_,h=""){for(let d=0;d<_.length;d++){const w=_[d];xn(w,Xi(h,w))}}function xn(_,h){_.children&&ur(_.children,h)}function Xi(_,h){return h?_||h.path?_&&!h.path?`${_}/`:!_&&h.path?h.path:`${_}/${h.path}`:"":_}function er(_){const h=_.children&&_.children.map(er),d=h?Object.assign(Object.assign({},_),{children:h}):Object.assign({},_);return!d.component&&(h||d.loadChildren)&&d.outlet&&d.outlet!==D&&(d.component=ni),d}function ii(_){return _.outlet||D}function Di(_,h){const d=_.filter(w=>ii(w)===h);return d.push(..._.filter(w=>ii(w)!==h)),d}const br={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function A(_,h,d){var w;if(""===h.path)return"full"===h.pathMatch&&(_.hasChildren()||d.length>0)?Object.assign({},br):{matched:!0,consumedSegments:[],remainingSegments:d,parameters:{},positionalParamSegments:{}};const V=(h.matcher||Ge)(d,_,h);if(!V)return Object.assign({},br);const te={};ht(V.posParams,(qe,wt)=>{te[wt]=qe.path});const _e=V.consumed.length>0?Object.assign(Object.assign({},te),V.consumed[V.consumed.length-1].parameters):te;return{matched:!0,consumedSegments:V.consumed,remainingSegments:d.slice(V.consumed.length),parameters:_e,positionalParamSegments:null!==(w=V.posParams)&&void 0!==w?w:{}}}function B(_,h,d,w,O="corrected"){if(d.length>0&&function ae(_,h,d){return d.some(w=>it(_,h,w)&&ii(w)!==D)}(_,d,w)){const te=new Mt(h,function j(_,h,d,w){const O={};O[D]=w,w._sourceSegment=_,w._segmentIndexShift=h.length;for(const V of d)if(""===V.path&&ii(V)!==D){const te=new Mt([],{});te._sourceSegment=_,te._segmentIndexShift=h.length,O[ii(V)]=te}return O}(_,h,w,new Mt(d,_.children)));return te._sourceSegment=_,te._segmentIndexShift=h.length,{segmentGroup:te,slicedSegments:[]}}if(0===d.length&&function We(_,h,d){return d.some(w=>it(_,h,w))}(_,d,w)){const te=new Mt(_.segments,function T(_,h,d,w,O,V){const te={};for(const _e of w)if(it(_,d,_e)&&!O[ii(_e)]){const qe=new Mt([],{});qe._sourceSegment=_,qe._segmentIndexShift="legacy"===V?_.segments.length:h.length,te[ii(_e)]=qe}return Object.assign(Object.assign({},O),te)}(_,h,d,w,_.children,O));return te._sourceSegment=_,te._segmentIndexShift=h.length,{segmentGroup:te,slicedSegments:d}}const V=new Mt(_.segments,_.children);return V._sourceSegment=_,V._segmentIndexShift=h.length,{segmentGroup:V,slicedSegments:d}}function it(_,h,d){return(!(_.hasChildren()||h.length>0)||"full"!==d.pathMatch)&&""===d.path}function ft(_,h,d,w){return!!(ii(_)===w||w!==D&&it(h,d,_))&&("**"===_.path||A(h,_,d).matched)}function Dn(_,h,d){return 0===h.length&&!_.children[d]}class yn{constructor(h){this.segmentGroup=h||null}}class fn{constructor(h){this.urlTree=h}}function Gt(_){return K(new yn(_))}function Vn(_){return K(new fn(_))}class Ti{constructor(h,d,w,O,V){this.configLoader=d,this.urlSerializer=w,this.urlTree=O,this.config=V,this.allowRedirects=!0,this.ngModule=h.get(l.h0i)}apply(){const h=B(this.urlTree.root,[],[],this.config).segmentGroup,d=new Mt(h.segments,h.children);return this.expandSegmentGroup(this.ngModule,this.config,d,D).pipe((0,gt.U)(V=>this.createUrlTree(ki(V),this.urlTree.queryParams,this.urlTree.fragment))).pipe(J(V=>{if(V instanceof fn)return this.allowRedirects=!1,this.match(V.urlTree);throw V instanceof yn?this.noMatchError(V):V}))}match(h){return this.expandSegmentGroup(this.ngModule,this.config,h.root,D).pipe((0,gt.U)(O=>this.createUrlTree(ki(O),h.queryParams,h.fragment))).pipe(J(O=>{throw O instanceof yn?this.noMatchError(O):O}))}noMatchError(h){return new Error(`Cannot match any routes. URL Segment: '${h.segmentGroup}'`)}createUrlTree(h,d,w){const O=h.segments.length>0?new Mt([],{[D]:h}):h;return new Zt(O,d,w)}expandSegmentGroup(h,d,w,O){return 0===w.segments.length&&w.hasChildren()?this.expandChildren(h,d,w).pipe((0,gt.U)(V=>new Mt([],V))):this.expandSegment(h,w,d,w.segments,O,!0)}expandChildren(h,d,w){const O=[];for(const V of Object.keys(w.children))"primary"===V?O.unshift(V):O.push(V);return(0,he.D)(O).pipe((0,kt.b)(V=>{const te=w.children[V],_e=Di(d,V);return this.expandSegmentGroup(h,_e,te,V).pipe((0,gt.U)(qe=>({segment:qe,outlet:V})))}),ge((V,te)=>(V[te.outlet]=te.segment,V),{}),function Te(_,h){const d=arguments.length>=2;return w=>w.pipe(_?(0,me.h)((O,V)=>_(O,V,w)):Se.y,xe(1),d?we(h):Be(()=>new Q))}())}expandSegment(h,d,w,O,V,te){return(0,he.D)(w).pipe((0,kt.b)(_e=>this.expandSegmentAgainstRoute(h,d,w,_e,O,V,te).pipe(J(wt=>{if(wt instanceof yn)return(0,ee.of)(null);throw wt}))),Le(_e=>!!_e),J((_e,qe)=>{if(_e instanceof Q||"EmptyError"===_e.name){if(Dn(d,O,V))return(0,ee.of)(new Mt([],{}));throw new yn(d)}throw _e}))}expandSegmentAgainstRoute(h,d,w,O,V,te,_e){return ft(O,d,V,te)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(h,d,O,V,te):_e&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(h,d,w,O,V,te):Gt(d):Gt(d)}expandSegmentAgainstRouteUsingRedirect(h,d,w,O,V,te){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(h,w,O,te):this.expandRegularSegmentAgainstRouteUsingRedirect(h,d,w,O,V,te)}expandWildCardWithParamsAgainstRouteUsingRedirect(h,d,w,O){const V=this.applyRedirectCommands([],w.redirectTo,{});return w.redirectTo.startsWith("/")?Vn(V):this.lineralizeSegments(w,V).pipe((0,Yt.z)(te=>{const _e=new Mt(te,{});return this.expandSegment(h,_e,d,te,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(h,d,w,O,V,te){const{matched:_e,consumedSegments:qe,remainingSegments:wt,positionalParamSegments:un}=A(d,O,V);if(!_e)return Gt(d);const Vt=this.applyRedirectCommands(qe,O.redirectTo,un);return O.redirectTo.startsWith("/")?Vn(Vt):this.lineralizeSegments(O,Vt).pipe((0,Yt.z)(Sn=>this.expandSegment(h,d,w,Sn.concat(wt),te,!1)))}matchSegmentAgainstRoute(h,d,w,O,V){if("**"===w.path)return w.loadChildren?(w._loadedConfig?(0,ee.of)(w._loadedConfig):this.configLoader.load(h.injector,w)).pipe((0,gt.U)(Vt=>(w._loadedConfig=Vt,new Mt(O,{})))):(0,ee.of)(new Mt(O,{}));const{matched:te,consumedSegments:_e,remainingSegments:qe}=A(d,w,O);return te?this.getChildConfig(h,w,O).pipe((0,Yt.z)(un=>{const Vt=un.module,Sn=un.routes,{segmentGroup:Rn,slicedSegments:po}=B(d,_e,qe,Sn),Hr=new Mt(Rn.segments,Rn.children);if(0===po.length&&Hr.hasChildren())return this.expandChildren(Vt,Sn,Hr).pipe((0,gt.U)(go=>new Mt(_e,go)));if(0===Sn.length&&0===po.length)return(0,ee.of)(new Mt(_e,{}));const mo=ii(w)===V;return this.expandSegment(Vt,Hr,Sn,po,mo?D:V,!0).pipe((0,gt.U)(Mr=>new Mt(_e.concat(Mr.segments),Mr.children)))})):Gt(d)}getChildConfig(h,d,w){return d.children?(0,ee.of)(new Qi(d.children,h)):d.loadChildren?void 0!==d._loadedConfig?(0,ee.of)(d._loadedConfig):this.runCanLoadGuards(h.injector,d,w).pipe((0,Yt.z)(O=>O?this.configLoader.load(h.injector,d).pipe((0,gt.U)(V=>(d._loadedConfig=V,V))):function In(_){return K(Ce(`Cannot load children because the guard of the route "path: '${_.path}'" returned false`))}(d))):(0,ee.of)(new Qi([],h))}runCanLoadGuards(h,d,w){const O=d.canLoad;if(!O||0===O.length)return(0,ee.of)(!0);const V=O.map(te=>{const _e=h.get(te);let qe;if(function Qr(_){return _&&gi(_.canLoad)}(_e))qe=_e.canLoad(d,w);else{if(!gi(_e))throw new Error("Invalid CanLoad guard");qe=_e(d,w)}return vt(qe)});return(0,ee.of)(V).pipe(Ji(),(0,Rt.b)(te=>{if(!wi(te))return;const _e=Ce(`Redirecting to "${this.urlSerializer.serialize(te)}"`);throw _e.url=te,_e}),(0,gt.U)(te=>!0===te))}lineralizeSegments(h,d){let w=[],O=d.root;for(;;){if(w=w.concat(O.segments),0===O.numberOfChildren)return(0,ee.of)(w);if(O.numberOfChildren>1||!O.children[D])return K(new Error(`Only absolute redirects can have named outlets. redirectTo: '${h.redirectTo}'`));O=O.children[D]}}applyRedirectCommands(h,d,w){return this.applyRedirectCreatreUrlTree(d,this.urlSerializer.parse(d),h,w)}applyRedirectCreatreUrlTree(h,d,w,O){const V=this.createSegmentGroup(h,d.root,w,O);return new Zt(V,this.createQueryParams(d.queryParams,this.urlTree.queryParams),d.fragment)}createQueryParams(h,d){const w={};return ht(h,(O,V)=>{if("string"==typeof O&&O.startsWith(":")){const _e=O.substring(1);w[V]=d[_e]}else w[V]=O}),w}createSegmentGroup(h,d,w,O){const V=this.createSegments(h,d.segments,w,O);let te={};return ht(d.children,(_e,qe)=>{te[qe]=this.createSegmentGroup(h,_e,w,O)}),new Mt(V,te)}createSegments(h,d,w,O){return d.map(V=>V.path.startsWith(":")?this.findPosParam(h,V,O):this.findOrReturn(V,w))}findPosParam(h,d,w){const O=w[d.path.substring(1)];if(!O)throw new Error(`Cannot redirect to '${h}'. Cannot find '${d.path}'.`);return O}findOrReturn(h,d){let w=0;for(const O of d){if(O.path===h.path)return d.splice(w),O;w++}return h}}function ki(_){const h={};for(const w of Object.keys(_.children)){const V=ki(_.children[w]);(V.segments.length>0||V.hasChildren())&&(h[w]=V)}return function tr(_){if(1===_.numberOfChildren&&_.children[D]){const h=_.children[D];return new Mt(_.segments.concat(h.segments),h.children)}return _}(new Mt(_.segments,h))}class x{constructor(h){this.path=h,this.route=this.path[this.path.length-1]}}class M{constructor(h,d){this.component=h,this.route=d}}function v(_,h,d){const w=_._root;return Mn(w,h?h._root:null,d,[w.value])}function Ke(_,h,d){const w=function Dt(_){if(!_)return null;for(let h=_.parent;h;h=h.parent){const d=h.routeConfig;if(d&&d._loadedConfig)return d._loadedConfig}return null}(h);return(w?w.module.injector:d).get(_)}function Mn(_,h,d,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const V=Kn(h);return _.children.forEach(te=>{(function _i(_,h,d,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const V=_.value,te=h?h.value:null,_e=d?d.getContext(_.value.outlet):null;if(te&&V.routeConfig===te.routeConfig){const qe=function $i(_,h,d){if("function"==typeof d)return d(_,h);switch(d){case"pathParamsChange":return!ve(_.url,h.url);case"pathParamsOrQueryParamsChange":return!ve(_.url,h.url)||!ut(_.queryParams,h.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!rr(_,h)||!ut(_.queryParams,h.queryParams);default:return!rr(_,h)}}(te,V,V.routeConfig.runGuardsAndResolvers);qe?O.canActivateChecks.push(new x(w)):(V.data=te.data,V._resolvedData=te._resolvedData),Mn(_,h,V.component?_e?_e.children:null:d,w,O),qe&&_e&&_e.outlet&&_e.outlet.isActivated&&O.canDeactivateChecks.push(new M(_e.outlet.component,te))}else te&&Li(h,_e,O),O.canActivateChecks.push(new x(w)),Mn(_,null,V.component?_e?_e.children:null:d,w,O)})(te,V[te.value.outlet],d,w.concat([te.value]),O),delete V[te.value.outlet]}),ht(V,(te,_e)=>Li(te,d.getContext(_e),O)),O}function Li(_,h,d){const w=Kn(_),O=_.value;ht(w,(V,te)=>{Li(V,O.component?h?h.children.getContext(te):null:h,d)}),d.canDeactivateChecks.push(new M(O.component&&h&&h.outlet&&h.outlet.isActivated?h.outlet.component:null,O))}class De{}function p(_){return new o.y(h=>h.error(_))}class g{constructor(h,d,w,O,V,te){this.rootComponentType=h,this.config=d,this.urlTree=w,this.url=O,this.paramsInheritanceStrategy=V,this.relativeLinkResolution=te}recognize(){const h=B(this.urlTree.root,[],[],this.config.filter(te=>void 0===te.redirectTo),this.relativeLinkResolution).segmentGroup,d=this.processSegmentGroup(this.config,h,D);if(null===d)return null;const w=new vn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},D,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new nn(w,d),V=new hi(this.url,O);return this.inheritParamsAndData(V._root),V}inheritParamsAndData(h){const d=h.value,w=Ii(d,this.paramsInheritanceStrategy);d.params=Object.freeze(w.params),d.data=Object.freeze(w.data),h.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(h,d,w){return 0===d.segments.length&&d.hasChildren()?this.processChildren(h,d):this.processSegment(h,d,d.segments,w)}processChildren(h,d){const w=[];for(const V of Object.keys(d.children)){const te=d.children[V],_e=Di(h,V),qe=this.processSegmentGroup(_e,te,V);if(null===qe)return null;w.push(...qe)}const O=F(w);return function a(_){_.sort((h,d)=>h.value.outlet===D?-1:d.value.outlet===D?1:h.value.outlet.localeCompare(d.value.outlet))}(O),O}processSegment(h,d,w,O){for(const V of h){const te=this.processSegmentAgainstRoute(V,d,w,O);if(null!==te)return te}return Dn(d,w,O)?[]:null}processSegmentAgainstRoute(h,d,w,O){if(h.redirectTo||!ft(h,d,w,O))return null;let V,te=[],_e=[];if("**"===h.path){const Rn=w.length>0?Kt(w).parameters:{};V=new vn(w,Rn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ie(h),ii(h),h.component,h,re(d),ce(d)+w.length,Je(h))}else{const Rn=A(d,h,w);if(!Rn.matched)return null;te=Rn.consumedSegments,_e=Rn.remainingSegments,V=new vn(te,Rn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ie(h),ii(h),h.component,h,re(d),ce(d)+te.length,Je(h))}const qe=function u(_){return _.children?_.children:_.loadChildren?_._loadedConfig.routes:[]}(h),{segmentGroup:wt,slicedSegments:un}=B(d,te,_e,qe.filter(Rn=>void 0===Rn.redirectTo),this.relativeLinkResolution);if(0===un.length&&wt.hasChildren()){const Rn=this.processChildren(qe,wt);return null===Rn?null:[new nn(V,Rn)]}if(0===qe.length&&0===un.length)return[new nn(V,[])];const Vt=ii(h)===O,Sn=this.processSegment(qe,wt,un,Vt?D:O);return null===Sn?null:[new nn(V,Sn)]}}function b(_){const h=_.value.routeConfig;return h&&""===h.path&&void 0===h.redirectTo}function F(_){const h=[],d=new Set;for(const w of _){if(!b(w)){h.push(w);continue}const O=h.find(V=>w.value.routeConfig===V.value.routeConfig);void 0!==O?(O.children.push(...w.children),d.add(O)):h.push(w)}for(const w of d){const O=F(w.children);h.push(new nn(w.value,O))}return h.filter(w=>!d.has(w))}function re(_){let h=_;for(;h._sourceSegment;)h=h._sourceSegment;return h}function ce(_){let h=_,d=h._segmentIndexShift?h._segmentIndexShift:0;for(;h._sourceSegment;)h=h._sourceSegment,d+=h._segmentIndexShift?h._segmentIndexShift:0;return d-1}function Ie(_){return _.data||{}}function Je(_){return _.resolve||{}}function Ut(_){return[...Object.keys(_),...Object.getOwnPropertySymbols(_)]}function wn(_){return(0,Xt.w)(h=>{const d=_(h);return d?(0,he.D)(d).pipe((0,gt.U)(()=>h)):(0,ee.of)(h)})}class Mi extends class ci{shouldDetach(h){return!1}store(h,d){}shouldAttach(h){return!1}retrieve(h){return null}shouldReuseRoute(h,d){return h.routeConfig===d.routeConfig}}{}const ri=new l.OlP("ROUTES");class Or{constructor(h,d,w,O){this.injector=h,this.compiler=d,this.onLoadStartListener=w,this.onLoadEndListener=O}load(h,d){if(d._loader$)return d._loader$;this.onLoadStartListener&&this.onLoadStartListener(d);const O=this.loadModuleFactory(d.loadChildren).pipe((0,gt.U)(V=>{this.onLoadEndListener&&this.onLoadEndListener(d);const te=V.create(h);return new Qi(rn(te.injector.get(ri,void 0,l.XFs.Self|l.XFs.Optional)).map(er),te)}),J(V=>{throw d._loader$=void 0,V}));return d._loader$=new se(O,()=>new Ze.x).pipe(ne()),d._loader$}loadModuleFactory(h){return vt(h()).pipe((0,Yt.z)(d=>d instanceof l.YKP?(0,ee.of)(d):(0,he.D)(this.compiler.compileModuleAsync(d))))}}class xi{shouldProcessUrl(h){return!0}extract(h){return h}merge(h,d){return h}}function Er(_){throw _}function Hn(_,h,d){return h.parse("/")}function vi(_,h){return(0,ee.of)(null)}const jn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let oi=(()=>{class _{constructor(d,w,O,V,te,_e,qe){this.rootComponentType=d,this.urlSerializer=w,this.rootContexts=O,this.location=V,this.config=qe,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ze.x,this.errorHandler=Er,this.malformedUriErrorHandler=Hn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vi,afterPreactivation:vi},this.urlHandlingStrategy=new xi,this.routeReuseStrategy=new Mi,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=te.get(l.h0i),this.console=te.get(l.c2e);const Vt=te.get(l.R0b);this.isNgZoneEnabled=Vt instanceof l.R0b&&l.R0b.isInAngularZone(),this.resetConfig(qe),this.currentUrlTree=function Ne(){return new Zt(new Mt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Or(te,_e,Sn=>this.triggerEvent(new jt(Sn)),Sn=>this.triggerEvent(new Ct(Sn))),this.routerState=zt(this.currentUrlTree,this.rootComponentType),this.transitions=new le.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var d;return null===(d=this.location.getState())||void 0===d?void 0:d.\u0275routerPageId}setupNavigations(d){const w=this.events;return d.pipe((0,me.h)(O=>0!==O.id),(0,gt.U)(O=>Object.assign(Object.assign({},O),{extractedUrl:this.urlHandlingStrategy.extract(O.rawUrl)})),(0,Xt.w)(O=>{let V=!1,te=!1;return(0,ee.of)(O).pipe((0,Rt.b)(_e=>{this.currentNavigation={id:_e.id,initialUrl:_e.currentRawUrl,extractedUrl:_e.extractedUrl,trigger:_e.source,extras:_e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Xt.w)(_e=>{const qe=this.browserUrlTree.toString(),wt=!this.navigated||_e.extractedUrl.toString()!==qe||qe!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||wt)&&this.urlHandlingStrategy.shouldProcessUrl(_e.rawUrl))return ho(_e.source)&&(this.browserUrlTree=_e.extractedUrl),(0,ee.of)(_e).pipe((0,Xt.w)(Vt=>{const Sn=this.transitions.getValue();return w.next(new sn(Vt.id,this.serializeUrl(Vt.extractedUrl),Vt.source,Vt.restoredState)),Sn!==this.transitions.getValue()?tt.E:Promise.resolve(Vt)}),function Fi(_,h,d,w){return(0,Xt.w)(O=>function Un(_,h,d,w,O){return new Ti(_,h,d,w,O).apply()}(_,h,d,O.extractedUrl,w).pipe((0,gt.U)(V=>Object.assign(Object.assign({},O),{urlAfterRedirects:V}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Rt.b)(Vt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Vt.urlAfterRedirects})}),function yt(_,h,d,w,O){return(0,Yt.z)(V=>function R(_,h,d,w,O="emptyOnly",V="legacy"){try{const te=new g(_,h,d,w,O,V).recognize();return null===te?p(new De):(0,ee.of)(te)}catch(te){return p(te)}}(_,h,V.urlAfterRedirects,d(V.urlAfterRedirects),w,O).pipe((0,gt.U)(te=>Object.assign(Object.assign({},V),{targetSnapshot:te}))))}(this.rootComponentType,this.config,Vt=>this.serializeUrl(Vt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Rt.b)(Vt=>{if("eager"===this.urlUpdateStrategy){if(!Vt.extras.skipLocationChange){const Rn=this.urlHandlingStrategy.merge(Vt.urlAfterRedirects,Vt.rawUrl);this.setBrowserUrl(Rn,Vt)}this.browserUrlTree=Vt.urlAfterRedirects}const Sn=new Z(Vt.id,this.serializeUrl(Vt.extractedUrl),this.serializeUrl(Vt.urlAfterRedirects),Vt.targetSnapshot);w.next(Sn)}));if(wt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Sn,extractedUrl:Rn,source:po,restoredState:Hr,extras:mo}=_e,Pr=new sn(Sn,this.serializeUrl(Rn),po,Hr);w.next(Pr);const Mr=zt(Rn,this.rootComponentType).snapshot;return(0,ee.of)(Object.assign(Object.assign({},_e),{targetSnapshot:Mr,urlAfterRedirects:Rn,extras:Object.assign(Object.assign({},mo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=_e.rawUrl,_e.resolve(null),tt.E}),wn(_e=>{const{targetSnapshot:qe,id:wt,extractedUrl:un,rawUrl:Vt,extras:{skipLocationChange:Sn,replaceUrl:Rn}}=_e;return this.hooks.beforePreactivation(qe,{navigationId:wt,appliedUrlTree:un,rawUrlTree:Vt,skipLocationChange:!!Sn,replaceUrl:!!Rn})}),(0,Rt.b)(_e=>{const qe=new je(_e.id,this.serializeUrl(_e.extractedUrl),this.serializeUrl(_e.urlAfterRedirects),_e.targetSnapshot);this.triggerEvent(qe)}),(0,gt.U)(_e=>Object.assign(Object.assign({},_e),{guards:v(_e.targetSnapshot,_e.currentSnapshot,this.rootContexts)})),function st(_,h){return(0,Yt.z)(d=>{const{targetSnapshot:w,currentSnapshot:O,guards:{canActivateChecks:V,canDeactivateChecks:te}}=d;return 0===te.length&&0===V.length?(0,ee.of)(Object.assign(Object.assign({},d),{guardsResult:!0})):function an(_,h,d,w){return(0,he.D)(_).pipe((0,Yt.z)(O=>function k(_,h,d,w,O){const V=h&&h.routeConfig?h.routeConfig.canDeactivate:null;if(!V||0===V.length)return(0,ee.of)(!0);const te=V.map(_e=>{const qe=Ke(_e,h,O);let wt;if(function Gi(_){return _&&gi(_.canDeactivate)}(qe))wt=vt(qe.canDeactivate(_,h,d,w));else{if(!gi(qe))throw new Error("Invalid CanDeactivate guard");wt=vt(qe(_,h,d,w))}return wt.pipe(Le())});return(0,ee.of)(te).pipe(Ji())}(O.component,O.route,d,h,w)),Le(O=>!0!==O,!0))}(te,w,O,_).pipe((0,Yt.z)(_e=>_e&&function yr(_){return"boolean"==typeof _}(_e)?function Xr(_,h,d,w){return(0,he.D)(h).pipe((0,kt.b)(O=>(0,Ve.z)(function bo(_,h){return null!==_&&h&&h(new Bt(_)),(0,ee.of)(!0)}(O.route.parent,w),function qn(_,h){return null!==_&&h&&h(new Re(_)),(0,ee.of)(!0)}(O.route,w),function Ui(_,h,d){const w=h[h.length-1],V=h.slice(0,h.length-1).reverse().map(te=>function H(_){const h=_.routeConfig?_.routeConfig.canActivateChild:null;return h&&0!==h.length?{node:_,guards:h}:null}(te)).filter(te=>null!==te).map(te=>(0,q.P)(()=>{const _e=te.guards.map(qe=>{const wt=Ke(qe,te.node,d);let un;if(function Br(_){return _&&gi(_.canActivateChild)}(wt))un=vt(wt.canActivateChild(w,_));else{if(!gi(wt))throw new Error("Invalid CanActivateChild guard");un=vt(wt(w,_))}return un.pipe(Le())});return(0,ee.of)(_e).pipe(Ji())}));return(0,ee.of)(V).pipe(Ji())}(_,O.path,d),function Cr(_,h,d){const w=h.routeConfig?h.routeConfig.canActivate:null;if(!w||0===w.length)return(0,ee.of)(!0);const O=w.map(V=>(0,q.P)(()=>{const te=Ke(V,h,d);let _e;if(function Ai(_){return _&&gi(_.canActivate)}(te))_e=vt(te.canActivate(h,_));else{if(!gi(te))throw new Error("Invalid CanActivate guard");_e=vt(te(h,_))}return _e.pipe(Le())}));return(0,ee.of)(O).pipe(Ji())}(_,O.route,d))),Le(O=>!0!==O,!0))}(w,V,_,h):(0,ee.of)(_e)),(0,gt.U)(_e=>Object.assign(Object.assign({},d),{guardsResult:_e})))})}(this.ngModule.injector,_e=>this.triggerEvent(_e)),(0,Rt.b)(_e=>{if(wi(_e.guardsResult)){const wt=Ce(`Redirecting to "${this.serializeUrl(_e.guardsResult)}"`);throw wt.url=_e.guardsResult,wt}const qe=new $e(_e.id,this.serializeUrl(_e.extractedUrl),this.serializeUrl(_e.urlAfterRedirects),_e.targetSnapshot,!!_e.guardsResult);this.triggerEvent(qe)}),(0,me.h)(_e=>!!_e.guardsResult||(this.restoreHistory(_e),this.cancelNavigationTransition(_e,""),!1)),wn(_e=>{if(_e.guards.canActivateChecks.length)return(0,ee.of)(_e).pipe((0,Rt.b)(qe=>{const wt=new ct(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(wt)}),(0,Xt.w)(qe=>{let wt=!1;return(0,ee.of)(qe).pipe(function Pt(_,h){return(0,Yt.z)(d=>{const{targetSnapshot:w,guards:{canActivateChecks:O}}=d;if(!O.length)return(0,ee.of)(d);let V=0;return(0,he.D)(O).pipe((0,kt.b)(te=>function en(_,h,d,w){return function cn(_,h,d,w){const O=Ut(_);if(0===O.length)return(0,ee.of)({});const V={};return(0,he.D)(O).pipe((0,Yt.z)(te=>function on(_,h,d,w){const O=Ke(_,h,w);return vt(O.resolve?O.resolve(h,d):O(h,d))}(_[te],h,d,w).pipe((0,Rt.b)(_e=>{V[te]=_e}))),xe(1),(0,Yt.z)(()=>Ut(V).length===O.length?(0,ee.of)(V):tt.E))}(_._resolve,_,h,w).pipe((0,gt.U)(V=>(_._resolvedData=V,_.data=Object.assign(Object.assign({},_.data),Ii(_,d).resolve),null)))}(te.route,w,_,h)),(0,Rt.b)(()=>V++),xe(1),(0,Yt.z)(te=>V===O.length?(0,ee.of)(d):tt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Rt.b)({next:()=>wt=!0,complete:()=>{wt||(this.restoreHistory(qe),this.cancelNavigationTransition(qe,"At least one route resolver didn't emit any value."))}}))}),(0,Rt.b)(qe=>{const wt=new Ot(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(wt)}))}),wn(_e=>{const{targetSnapshot:qe,id:wt,extractedUrl:un,rawUrl:Vt,extras:{skipLocationChange:Sn,replaceUrl:Rn}}=_e;return this.hooks.afterPreactivation(qe,{navigationId:wt,appliedUrlTree:un,rawUrlTree:Vt,skipLocationChange:!!Sn,replaceUrl:!!Rn})}),(0,gt.U)(_e=>{const qe=function xr(_,h,d){const w=Zn(_,h._root,d?d._root:void 0);return new mi(w,h)}(this.routeReuseStrategy,_e.targetSnapshot,_e.currentRouterState);return Object.assign(Object.assign({},_e),{targetRouterState:qe})}),(0,Rt.b)(_e=>{this.currentUrlTree=_e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(_e.urlAfterRedirects,_e.rawUrl),this.routerState=_e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(_e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,_e),this.browserUrlTree=_e.urlAfterRedirects)}),((_,h,d)=>(0,gt.U)(w=>(new vr(h,w.targetRouterState,w.currentRouterState,d).activate(_),w)))(this.rootContexts,this.routeReuseStrategy,_e=>this.triggerEvent(_e)),(0,Rt.b)({next(){V=!0},complete(){V=!0}}),function Et(_){return(0,Ee.e)((h,d)=>{try{h.subscribe(d)}finally{d.add(_)}})}(()=>{var _e;V||te||this.cancelNavigationTransition(O,`Navigation ID ${O.id} is not equal to the current navigation id ${this.navigationId}`),(null===(_e=this.currentNavigation)||void 0===_e?void 0:_e.id)===O.id&&(this.currentNavigation=null)}),J(_e=>{if(te=!0,function He(_){return _&&_[oe]}(_e)){const qe=wi(_e.url);qe||(this.navigated=!0,this.restoreHistory(O,!0));const wt=new ze(O.id,this.serializeUrl(O.extractedUrl),_e.message);w.next(wt),qe?setTimeout(()=>{const un=this.urlHandlingStrategy.merge(_e.url,this.rawUrlTree),Vt={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ho(O.source)};this.scheduleNavigation(un,"imperative",null,Vt,{resolve:O.resolve,reject:O.reject,promise:O.promise})},0):O.resolve(!1)}else{this.restoreHistory(O,!0);const qe=new X(O.id,this.serializeUrl(O.extractedUrl),_e);w.next(qe);try{O.resolve(this.errorHandler(_e))}catch(wt){O.reject(wt)}}return tt.E}))}))}resetRootComponentType(d){this.rootComponentType=d,this.routerState.root.component=this.rootComponentType}setTransition(d){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),d))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(d=>{const w="popstate"===d.type?"popstate":"hashchange";"popstate"===w&&setTimeout(()=>{var O;const V={replaceUrl:!0},te=(null===(O=d.state)||void 0===O?void 0:O.navigationId)?d.state:null;if(te){const qe=Object.assign({},te);delete qe.navigationId,delete qe.\u0275routerPageId,0!==Object.keys(qe).length&&(V.state=qe)}const _e=this.parseUrl(d.url);this.scheduleNavigation(_e,w,te,V)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(d){this.events.next(d)}resetConfig(d){ur(d),this.config=d.map(er),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(d,w={}){const{relativeTo:O,queryParams:V,fragment:te,queryParamsHandling:_e,preserveFragment:qe}=w,wt=O||this.routerState.root,un=qe?this.currentUrlTree.fragment:te;let Vt=null;switch(_e){case"merge":Vt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),V);break;case"preserve":Vt=this.currentUrlTree.queryParams;break;default:Vt=V||null}return null!==Vt&&(Vt=this.removeEmptyProps(Vt)),function qi(_,h,d,w,O){if(0===d.length)return Pi(h.root,h.root,h,w,O);const V=function fr(_){if("string"==typeof _[0]&&1===_.length&&"/"===_[0])return new or(!0,0,_);let h=0,d=!1;const w=_.reduce((O,V,te)=>{if("object"==typeof V&&null!=V){if(V.outlets){const _e={};return ht(V.outlets,(qe,wt)=>{_e[wt]="string"==typeof qe?qe.split("/"):qe}),[...O,{outlets:_e}]}if(V.segmentPath)return[...O,V.segmentPath]}return"string"!=typeof V?[...O,V]:0===te?(V.split("/").forEach((_e,qe)=>{0==qe&&"."===_e||(0==qe&&""===_e?d=!0:".."===_e?h++:""!=_e&&O.push(_e))}),O):[...O,V]},[]);return new or(d,h,w)}(d);if(V.toRoot())return Pi(h.root,new Mt([],{}),h,w,O);const te=function Fr(_,h,d){if(_.isAbsolute)return new pr(h.root,!0,0);if(-1===d.snapshot._lastPathIndex){const V=d.snapshot._urlSegment;return new pr(V,V===h.root,0)}const w=On(_.commands[0])?0:1;return function uo(_,h,d){let w=_,O=h,V=d;for(;V>O;){if(V-=O,w=w.parent,!w)throw new Error("Invalid number of '../'");O=w.segments.length}return new pr(w,!1,O-V)}(d.snapshot._urlSegment,d.snapshot._lastPathIndex+w,_.numberOfDoubleDots)}(V,h,_),_e=te.processChildren?gr(te.segmentGroup,te.index,V.commands):Lr(te.segmentGroup,te.index,V.commands);return Pi(te.segmentGroup,_e,h,w,O)}(wt,this.currentUrlTree,d,Vt,null!=un?un:null)}navigateByUrl(d,w={skipLocationChange:!1}){const O=wi(d)?d:this.parseUrl(d),V=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation(V,"imperative",null,w)}navigate(d,w={skipLocationChange:!1}){return function Mo(_){for(let h=0;h<_.length;h++){const d=_[h];if(null==d)throw new Error(`The requested path contains ${d} segment at index ${h}`)}}(d),this.navigateByUrl(this.createUrlTree(d,w),w)}serializeUrl(d){return this.urlSerializer.serialize(d)}parseUrl(d){let w;try{w=this.urlSerializer.parse(d)}catch(O){w=this.malformedUriErrorHandler(O,this.urlSerializer,d)}return w}isActive(d,w){let O;if(O=!0===w?Object.assign({},jn):!1===w?Object.assign({},eo):w,wi(d))return z(this.currentUrlTree,d,O);const V=this.parseUrl(d);return z(this.currentUrlTree,V,O)}removeEmptyProps(d){return Object.keys(d).reduce((w,O)=>{const V=d[O];return null!=V&&(w[O]=V),w},{})}processNavigations(){this.navigations.subscribe(d=>{this.navigated=!0,this.lastSuccessfulId=d.id,this.currentPageId=d.targetPageId,this.events.next(new et(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,d.resolve(!0)},d=>{this.console.warn(`Unhandled Navigation Error: ${d}`)})}scheduleNavigation(d,w,O,V,te){var _e,qe,wt;if(this.disposed)return Promise.resolve(!1);const un=this.transitions.value,Vt=ho(w)&&un&&!ho(un.source),Sn=un.rawUrl.toString()===d.toString(),Rn=un.id===(null===(_e=this.currentNavigation)||void 0===_e?void 0:_e.id);if(Vt&&Sn&&Rn)return Promise.resolve(!0);let Hr,mo,Pr;te?(Hr=te.resolve,mo=te.reject,Pr=te.promise):Pr=new Promise((Ao,ea)=>{Hr=Ao,mo=ea});const Mr=++this.navigationId;let go;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(O=this.location.getState()),go=O&&O.\u0275routerPageId?O.\u0275routerPageId:V.replaceUrl||V.skipLocationChange?null!==(qe=this.browserPageId)&&void 0!==qe?qe:0:(null!==(wt=this.browserPageId)&&void 0!==wt?wt:0)+1):go=0,this.setTransition({id:Mr,targetPageId:go,source:w,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:d,extras:V,resolve:Hr,reject:mo,promise:Pr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Pr.catch(Ao=>Promise.reject(Ao))}setBrowserUrl(d,w){const O=this.urlSerializer.serialize(d),V=Object.assign(Object.assign({},w.extras.state),this.generateNgRouterState(w.id,w.targetPageId));this.location.isCurrentPathEqualTo(O)||w.extras.replaceUrl?this.location.replaceState(O,"",V):this.location.go(O,"",V)}restoreHistory(d,w=!1){var O,V;if("computed"===this.canceledNavigationResolution){const te=this.currentPageId-d.targetPageId;"popstate"!==d.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(O=this.currentNavigation)||void 0===O?void 0:O.finalUrl)||0===te?this.currentUrlTree===(null===(V=this.currentNavigation)||void 0===V?void 0:V.finalUrl)&&0===te&&(this.resetState(d),this.browserUrlTree=d.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(te)}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(d),this.resetUrlToCurrentUrlTree())}resetState(d){this.routerState=d.currentRouterState,this.currentUrlTree=d.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,d.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(d,w){const O=new ze(d.id,this.serializeUrl(d.extractedUrl),w);this.triggerEvent(O),d.resolve(!1)}generateNgRouterState(d,w){return"computed"===this.canceledNavigationResolution?{navigationId:d,\u0275routerPageId:w}:{navigationId:d}}}return _.\u0275fac=function(d){l.$Z()},_.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac}),_})();function ho(_){return"imperative"!==_}let xt=(()=>{class _{constructor(d,w,O,V,te){this.router=d,this.route=w,this.tabIndexAttribute=O,this.renderer=V,this.el=te,this.commands=null,this.onChanges=new Ze.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(d){if(null!=this.tabIndexAttribute)return;const w=this.renderer,O=this.el.nativeElement;null!==d?w.setAttribute(O,"tabindex",d):w.removeAttribute(O,"tabindex")}ngOnChanges(d){this.onChanges.next(this)}set routerLink(d){null!=d?(this.commands=Array.isArray(d)?d:[d],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const d={skipLocationChange:Nt(this.skipLocationChange),replaceUrl:Nt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,d),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Nt(this.preserveFragment)})}}return _.\u0275fac=function(d){return new(d||_)(l.Y36(oi),l.Y36(Xn),l.$8M("tabindex"),l.Y36(l.Qsj),l.Y36(l.SBq))},_.\u0275dir=l.lG2({type:_,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(d,w){1&d&&l.NdJ("click",function(){return w.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[l.TTD]}),_})(),Lt=(()=>{class _{constructor(d,w,O){this.router=d,this.route=w,this.locationStrategy=O,this.commands=null,this.href=null,this.onChanges=new Ze.x,this.subscription=d.events.subscribe(V=>{V instanceof et&&this.updateTargetUrlAndHref()})}set routerLink(d){this.commands=null!=d?Array.isArray(d)?d:[d]:null}ngOnChanges(d){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(d,w,O,V,te){if(0!==d||w||O||V||te||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const _e={skipLocationChange:Nt(this.skipLocationChange),replaceUrl:Nt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,_e),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Nt(this.preserveFragment)})}}return _.\u0275fac=function(d){return new(d||_)(l.Y36(oi),l.Y36(Xn),l.Y36(Ht.S$))},_.\u0275dir=l.lG2({type:_,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(d,w){1&d&&l.NdJ("click",function(V){return w.onClick(V.button,V.ctrlKey,V.shiftKey,V.altKey,V.metaKey)}),2&d&&l.uIk("target",w.target)("href",w.href,l.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[l.TTD]}),_})();function Nt(_){return""===_||!!_}class ji{}class Dr{preload(h,d){return(0,ee.of)(null)}}let An=(()=>{class _{constructor(d,w,O,V){this.router=d,this.injector=O,this.preloadingStrategy=V,this.loader=new Or(O,w,qe=>d.triggerEvent(new jt(qe)),qe=>d.triggerEvent(new Ct(qe)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,me.h)(d=>d instanceof et),(0,kt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const d=this.injector.get(l.h0i);return this.processRoutes(d,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(d,w){const O=[];for(const V of w)if(V.loadChildren&&!V.canLoad&&V._loadedConfig){const te=V._loadedConfig;O.push(this.processRoutes(te.module,te.routes))}else V.loadChildren&&!V.canLoad?O.push(this.preloadConfig(d,V)):V.children&&O.push(this.processRoutes(d,V.children));return(0,he.D)(O).pipe((0,gn.J)(),(0,gt.U)(V=>{}))}preloadConfig(d,w){return this.preloadingStrategy.preload(w,()=>(w._loadedConfig?(0,ee.of)(w._loadedConfig):this.loader.load(d.injector,w)).pipe((0,Yt.z)(V=>(w._loadedConfig=V,this.processRoutes(V.module,V.routes)))))}}return _.\u0275fac=function(d){return new(d||_)(l.LFG(oi),l.LFG(l.Sil),l.LFG(l.zs3),l.LFG(ji))},_.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac}),_})(),Ir=(()=>{class _{constructor(d,w,O={}){this.router=d,this.viewportScroller=w,this.options=O,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},O.scrollPositionRestoration=O.scrollPositionRestoration||"disabled",O.anchorScrolling=O.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(d=>{d instanceof sn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=d.navigationTrigger,this.restoredId=d.restoredState?d.restoredState.navigationId:0):d instanceof et&&(this.lastId=d.id,this.scheduleScrollEvent(d,this.router.parseUrl(d.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(d=>{d instanceof S&&(d.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(d.position):d.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(d.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(d,w){this.router.triggerEvent(new S(d,"popstate"===this.lastSource?this.store[this.restoredId]:null,w))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return _.\u0275fac=function(d){l.$Z()},_.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac}),_})();const Jn=new l.OlP("ROUTER_CONFIGURATION"),Wi=new l.OlP("ROUTER_FORROOT_GUARD"),dr=[Ht.Ye,{provide:Pe,useClass:ot},{provide:oi,useFactory:function _s(_,h,d,w,O,V,te={},_e,qe){const wt=new oi(null,_,h,d,w,O,rn(V));return _e&&(wt.urlHandlingStrategy=_e),qe&&(wt.routeReuseStrategy=qe),function ko(_,h){_.errorHandler&&(h.errorHandler=_.errorHandler),_.malformedUriErrorHandler&&(h.malformedUriErrorHandler=_.malformedUriErrorHandler),_.onSameUrlNavigation&&(h.onSameUrlNavigation=_.onSameUrlNavigation),_.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=_.paramsInheritanceStrategy),_.relativeLinkResolution&&(h.relativeLinkResolution=_.relativeLinkResolution),_.urlUpdateStrategy&&(h.urlUpdateStrategy=_.urlUpdateStrategy),_.canceledNavigationResolution&&(h.canceledNavigationResolution=_.canceledNavigationResolution)}(te,wt),te.enableTracing&&wt.events.subscribe(un=>{var Vt,Sn;null===(Vt=console.group)||void 0===Vt||Vt.call(console,`Router Event: ${un.constructor.name}`),console.log(un.toString()),console.log(un),null===(Sn=console.groupEnd)||void 0===Sn||Sn.call(console)}),wt},deps:[Pe,Ri,Ht.Ye,l.zs3,l.Sil,ri,Jn,[class Hi{},new l.FiY],[class Wn{},new l.FiY]]},Ri,{provide:Xn,useFactory:function Xs(_){return _.routerState.root},deps:[oi]},An,Dr,class Ni{preload(h,d){return d().pipe(J(()=>(0,ee.of)(null)))}},{provide:Jn,useValue:{enableTracing:!1}}];function Ur(){return new l.PXZ("Router",oi)}let wo=(()=>{class _{constructor(d,w){}static forRoot(d,w){return{ngModule:_,providers:[dr,gs(d),{provide:Wi,useFactory:Ro,deps:[[oi,new l.FiY,new l.tp0]]},{provide:Jn,useValue:w||{}},{provide:Ht.S$,useFactory:fu,deps:[Ht.lw,[new l.tBr(Ht.mr),new l.FiY],Jn]},{provide:Ir,useFactory:hu,deps:[oi,Ht.EM,Jn]},{provide:ji,useExisting:w&&w.preloadingStrategy?w.preloadingStrategy:Dr},{provide:l.PXZ,multi:!0,useFactory:Ur},[Fo,{provide:l.ip1,multi:!0,useFactory:Co,deps:[Fo]},{provide:fo,useFactory:za,deps:[Fo]},{provide:l.tb,multi:!0,useExisting:fo}]]}}static forChild(d){return{ngModule:_,providers:[gs(d)]}}}return _.\u0275fac=function(d){return new(d||_)(l.LFG(Wi,8),l.LFG(oi,8))},_.\u0275mod=l.oAB({type:_}),_.\u0275inj=l.cJS({}),_})();function hu(_,h,d){return d.scrollOffset&&h.setOffset(d.scrollOffset),new Ir(_,h,d)}function fu(_,h,d={}){return d.useHash?new Ht.Do(_,h):new Ht.b0(_,h)}function Ro(_){return"guarded"}function gs(_){return[{provide:l.deG,multi:!0,useValue:_},{provide:ri,multi:!0,useValue:_}]}let Fo=(()=>{class _{constructor(d){this.injector=d,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ze.x}appInitializer(){return this.injector.get(Ht.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let w=null;const O=new Promise(_e=>w=_e),V=this.injector.get(oi),te=this.injector.get(Jn);return"disabled"===te.initialNavigation?(V.setUpLocationChangeListener(),w(!0)):"enabled"===te.initialNavigation||"enabledBlocking"===te.initialNavigation?(V.hooks.afterPreactivation=()=>this.initNavigation?(0,ee.of)(null):(this.initNavigation=!0,w(!0),this.resultOfPreactivationDone),V.initialNavigation()):w(!0),O})}bootstrapListener(d){const w=this.injector.get(Jn),O=this.injector.get(An),V=this.injector.get(Ir),te=this.injector.get(oi),_e=this.injector.get(l.z2F);d===_e.components[0]&&(("enabledNonBlocking"===w.initialNavigation||void 0===w.initialNavigation)&&te.initialNavigation(),O.setUpPreloading(),V.init(),te.resetRootComponentType(_e.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return _.\u0275fac=function(d){return new(d||_)(l.LFG(l.zs3))},_.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac}),_})();function Co(_){return _.appInitializer.bind(_)}function za(_){return _.bootstrapListener.bind(_)}const fo=new l.OlP("Router Initializer")}},Ye=>{Ye(Ye.s=5664)}]);
\ No newline at end of file