marketplacepos 2.1.8 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js +9592 -0
- package/Marketplace/default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js.map +1 -0
- package/Marketplace/index.html +23 -22
- package/Marketplace/main.js +630 -0
- package/Marketplace/main.js.map +1 -0
- package/Marketplace/polyfills.js +3398 -0
- package/Marketplace/polyfills.js.map +1 -0
- package/Marketplace/runtime.js +346 -0
- package/Marketplace/runtime.js.map +1 -0
- package/Marketplace/scripts.js +2634 -0
- package/Marketplace/scripts.js.map +1 -0
- package/Marketplace/src_app_login_login_module_ts.js +535 -0
- package/Marketplace/src_app_login_login_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_menu_module_ts.js +91621 -0
- package/Marketplace/src_app_menu_menu_module_ts.js.map +1 -0
- package/Marketplace/styles.css +30606 -0
- package/Marketplace/styles.css.map +1 -0
- package/Marketplace/vendor.js +71753 -0
- package/Marketplace/vendor.js.map +1 -0
- package/package.json +1 -1
- package/Marketplace/22.3ed8be5eefce7800.js +0 -1
- package/Marketplace/279.99f72f2db907a0bb.js +0 -1
- package/Marketplace/365.f9ccbbdc3ddf6406.js +0 -1
- package/Marketplace/3rdpartylicenses.txt +0 -490
- package/Marketplace/main.7096164b30c14167.js +0 -1
- package/Marketplace/polyfills.04dd6d83022797c4.js +0 -1
- package/Marketplace/runtime.014fe9715bc16791.js +0 -1
- package/Marketplace/scripts.512baec01df5d79f.js +0 -1
- package/Marketplace/styles.2acb2f61cf99c19d.css +0 -39
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[179],{632:(Ze,pe,S)=>{S.d(pe,{O:()=>Fe});var f=S(520),y=S(591),se=S(2916),X=S(353);const x=(()=>{function ze(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return ze.prototype=Object.create(Error.prototype),ze})();var Y=S(2697),Q=S(826),ae=S(9054);class q{constructor(me,Le,Be,Se){this.waitFor=me,this.absoluteTimeout=Le,this.withObservable=Be,this.scheduler=Se}call(me,Le){return Le.subscribe(new $(me,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class $ extends Q.L{constructor(me,Le,Be,Se,Ye){super(me),this.absoluteTimeout=Le,this.waitFor=Be,this.withObservable=Se,this.scheduler=Ye,this.action=null,this.scheduleTimeout()}static dispatchTimeout(me){const{withObservable:Le}=me;me._unsubscribeAndRecycle(),me.add((0,ae.D)(me,Le))}scheduleTimeout(){const{action:me}=this;me?this.action=me.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule($.dispatchTimeout,this.waitFor,this))}_next(me){this.absoluteTimeout||this.scheduleTimeout(),super._next(me)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var he=S(1737);var Ee=S(5e3),Re=S(4383);let Fe=(()=>{class ze{constructor(Le,Be){this.http=Le,this.toastr=Be,this._serverUrl="",this.currentRequest=new y.X(0)}get serverUrl(){return this._serverUrl}set serverUrl(Le){this._serverUrl=Le}addRequest(){this.currentRequest.next(this.currentRequest.value+1)}removeRequest(){this.currentRequest.next(this.currentRequest.value-1)}post(Le,Be,Se=1e5){return new se.y(Ye=>{let Mt=localStorage.getItem("Token"),jt=new f.WM;Mt&&(jt=new f.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+Mt}));let xt={headers:jt};this.addRequest(),this.http.post(Le,Be,xt).pipe(function He(ze,me=X.P){return function j(ze,me,Le=X.P){return Be=>{let Se=(0,Y.J)(ze),Ye=Se?+ze-Le.now():Math.abs(ze);return Be.lift(new q(Ye,Se,me,Le))}}(ze,(0,he._)(new x),me)}(Se)).subscribe(pt=>{this.removeRequest(),Ye.next(pt),Ye.complete()},pt=>{if(this.removeRequest(),200==pt.status)Ye.next(pt.error.text),Ye.complete();else{if(!this.unauthorizedErrorHandling(pt)){let At=this.errorMessageHandling(pt);this.toastr.error(""!=At.message?At.message:"An unknown error has occured!",At.header,{enableHtml:!0})}Ye.error(pt)}})})}unauthorizedErrorHandling(Le){let Be=!1;return 401==Le.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",Be=!0),Be}errorMessageHandling(Le){let Be="API Error",Se="Exception Message";return Le.error?(Be="API Error - "+Le.status,Le.error.Message&&(Se=-1!=Le.error.Message.indexOf("Message")?JSON.parse(Le.error.Message).Message:Le.error.Message)):Le.message&&(Be="API Error - "+Le.name,Se=Le.message),{header:Be,message:Se}}}return ze.\u0275fac=function(Le){return new(Le||ze)(Ee.LFG(f.eN),Ee.LFG(Re._W))},ze.\u0275prov=Ee.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})()},8002:(Ze,pe,S)=>{S.d(pe,{e:()=>y});var f=S(5e3);let y=(()=>{class se{constructor(){}GetNamePOS(){let F=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(F.access_token)}ParseToken(F){try{const Y=F.split(".")[0].replace("-","+").replace("_","/"),Q=JSON.parse(window.atob(Y)),j=F.split(".")[1].replace("-","+").replace("_","/"),q=JSON.parse(window.atob(j));return q.header=Q,q}catch(x){return!1}}}return se.\u0275fac=function(F){return new(F||se)},se.\u0275prov=f.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})()},6041:(Ze,pe,S)=>{var f=S(2313),y=S(5e3),se=S(520),X=S(6831);function F(z,ue){function k(){return!k.pred.apply(k.thisArg,arguments)}return k.pred=z,k.thisArg=ue,k}var x=S(9249),Y=S(2198),Q=S(2916),j=S(6787),q=S(8723),$=S(537),he=S(7545),He=S(826),Ee=S(9054);function Re(z){return ue=>ue.lift(new Fe(z))}class Fe{constructor(ue){this.durationSelector=ue}call(ue,k){return k.subscribe(new ze(ue,this.durationSelector))}}class ze extends He.L{constructor(ue,k){super(ue),this.durationSelector=k,this.hasValue=!1,this.durationSubscription=null}_next(ue){try{const k=this.durationSelector.call(this,ue);k&&this._tryNext(ue,k)}catch(k){this.destination.error(k)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(ue,k){let De=this.durationSubscription;this.value=ue,this.hasValue=!0,De&&(De.unsubscribe(),this.remove(De)),De=(0,Ee.D)(this,k),De&&!De.closed&&this.add(this.durationSubscription=De)}notifyNext(ue,k,De,Lt,An){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const ue=this.value,k=this.durationSubscription;k&&(this.durationSubscription=null,k.unsubscribe(),this.remove(k)),this.value=null,this.hasValue=!1,super._next(ue)}}}var me=S(5778),Le=S(2868),Be=S(9808);function Se(z,ue){1&z&&y.GkF(0)}function Ye(z,ue){if(1&z&&y._UZ(0,"sk-cube-grid",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function Mt(z,ue){if(1&z&&y._UZ(0,"sk-chasing-dots",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function jt(z,ue){if(1&z&&y._UZ(0,"sk-double-bounce",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function xt(z,ue){if(1&z&&y._UZ(0,"sk-rotating-plane",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function pt(z,ue){if(1&z&&y._UZ(0,"sk-spinner-pulse",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function Pt(z,ue){if(1&z&&y._UZ(0,"sk-three-bounce",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function At(z,ue){if(1&z&&y._UZ(0,"sk-wandering-cubes",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function Je(z,ue){if(1&z&&y._UZ(0,"sk-wave",4),2&z){const k=y.oxw(2);y.Q6J("backgroundColor",k.backgroundColor)}}function Dt(z,ue){if(1&z&&(y.TgZ(0,"div",1),y.YNc(1,Se,1,0,"ng-container",2),y.YNc(2,Ye,1,1,"sk-cube-grid",3),y.YNc(3,Mt,1,1,"sk-chasing-dots",3),y.YNc(4,jt,1,1,"sk-double-bounce",3),y.YNc(5,xt,1,1,"sk-rotating-plane",3),y.YNc(6,pt,1,1,"sk-spinner-pulse",3),y.YNc(7,Pt,1,1,"sk-three-bounce",3),y.YNc(8,At,1,1,"sk-wandering-cubes",3),y.YNc(9,Je,1,1,"sk-wave",3),y.qZA()),2&z){const k=y.oxw();y.Udp("opacity",k.opacity),y.ekj("backdrop",k.backdrop),y.xp6(1),y.Q6J("ngComponentOutlet",k.entryComponent),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skCubeGrid),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skChasingDots),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skDoubleBounce),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skRotatingPlane),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skSpinnerPulse),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skThreeBounce),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skWanderingCubes),y.xp6(1),y.Q6J("ngIf",k.spinner===k.spinkit.skWave)}}let je=(()=>{class z{}return z.\u0275fac=function(k){return new(k||z)},z.\u0275dir=y.lG2({type:z,inputs:{backgroundColor:"backgroundColor"}}),z})(),Dn=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-chasing-dots"]],features:[y.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(k,De){1&k&&(y.TgZ(0,"div",0),y._UZ(1,"div",1)(2,"div",2),y.qZA()),2&k&&(y.ekj("colored",!De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{animation:sk-chasingDotsRotate 2s linear infinite;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:40px}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-chasingDotsBounce 2s ease-in-out infinite;border-radius:100%;display:inline-block;height:60%;position:absolute;top:0;width:60%}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{animation-delay:-1s;bottom:0;top:auto}@keyframes sk-chasingDotsRotate{to{transform:rotate(1turn)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),z})(),bn=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-cube-grid"]],features:[y.qOj],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(k,De){1&k&&(y.TgZ(0,"div",0),y._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),y.qZA()),2&k&&(y.ekj("colored",!De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{animation:sk-cubeGridScaleDelay 1.3s ease-in-out infinite;float:left;height:33.33%;width:33.33%}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scaleX(1)}35%{transform:scale3D(0,0,1)}}"]}),z})(),Vt=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-double-bounce"]],features:[y.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(k,De){1&k&&(y.TgZ(0,"div",0),y._UZ(1,"div",1)(2,"div",2),y.qZA()),2&k&&(y.ekj("colored",!De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-doubleBounce 2s ease-in-out infinite;background-color:#333;border-radius:50%;height:100%;left:0;opacity:.6;position:absolute;top:0;width:100%}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),z})(),Kt=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-rotating-plane"]],features:[y.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(k,De){1&k&&y._UZ(0,"div",0),2&k&&y.Udp("background-color",De.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{animation:sk-rotatePlane 1.2s ease-in-out infinite;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0deg) rotateY(0deg)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),z})(),Tt=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-spinner-pulse"]],features:[y.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(k,De){1&k&&y._UZ(0,"div",0),2&k&&y.Udp("background-color",De.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{animation:sk-pulseScaleOut 1s ease-in-out infinite;border-radius:100%;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}"]}),z})(),rn=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-three-bounce"]],features:[y.qOj],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(k,De){1&k&&(y.TgZ(0,"div",0),y._UZ(1,"div",1)(2,"div",2)(3,"div",3),y.qZA()),2&k&&(y.ekj("colored",!De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{margin:auto;position:relative;text-align:center;top:50%;width:80px}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-three-bounce 1.4s ease-in-out 0s infinite both;border-radius:100%;display:inline-block;height:20px;width:20px}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),z})(),Ut=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-wandering-cubes"]],features:[y.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(k,De){1&k&&(y.TgZ(0,"div",0),y._UZ(1,"div",1)(2,"div",2),y.qZA()),2&k&&(y.ekj("colored",!De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both;height:10px;left:0;position:absolute;top:0;width:10px}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0deg)}25%{transform:translateX(30px) rotate(-90deg) scale(.5)}50%{transform:translateX(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translateX(30px) translateY(30px) rotate(-180deg)}75%{transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-1turn)}}"]}),z})(),ge=(()=>{class z extends je{}return z.\u0275fac=function(){let ue;return function(De){return(ue||(ue=y.n5z(z)))(De||z)}}(),z.\u0275cmp=y.Xpm({type:z,selectors:[["sk-wave"]],features:[y.qOj],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(k,De){1&k&&(y.TgZ(0,"div",0),y._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),y.qZA()),2&k&&(y.ekj("colored",!De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor),y.xp6(1),y.Udp("background-color",De.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{font-size:10px;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:50px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{animation:sk-waveStretchDelay 1.2s ease-in-out infinite;display:inline-block;float:left;height:100%;margin-right:1px;width:6px}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),z})(),we=(()=>{class z{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new X.t(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(k){this._filteredMethods=k}set filteredHeaders(k){this._filteredHeaders=k}set forceByPass(k){this._forceByPass=k}shouldBypassUrl(k){return this._filteredUrlPatterns.some(De=>De.test(k))}shouldBypassMethod(k){return this._filteredMethods.some(De=>De.toUpperCase()===k.method.toUpperCase())}shouldBypassHeader(k){return this._filteredHeaders.some(De=>k.headers.has(De))}shouldBypass(k){return this._forceByPass||this.shouldBypassUrl(k.urlWithParams)||this.shouldBypassMethod(k)||this.shouldBypassHeader(k)}intercept(k,De){const Lt=this.shouldBypass(k);return Lt||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),De.handle(k).pipe((0,$.x)(()=>{Lt||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return z.\u0275fac=function(k){return new(k||z)},z.\u0275prov=(0,y.Yz7)({factory:function(){return new z},token:z,providedIn:"root"}),z})();const Z=[{provide:se.TP,useExisting:we,multi:!0}];let ce=(()=>{class z{constructor(k){this.pendingRequestsInterceptor=k,this._visibility$=new X.t(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return z.\u0275fac=function(k){return new(k||z)(y.LFG(we))},z.\u0275prov=(0,y.Yz7)({factory:function(){return new z((0,y.LFG)(we))},token:z,providedIn:"root"}),z})();const Ue={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};let ie=(()=>{class z{constructor(k,De){this.pendingRequestsInterceptor=k,this.spinnerVisibility=De,this.spinkit=Ue,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.spinner=Ue.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[k,De]=function ae(z,ue,k){return[(0,Y.h)(ue,k)(new Q.y((0,x.s)(z))),(0,Y.h)(F(ue,k))(new Q.y((0,x.s)(z)))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,Lt=>Lt);this.isVisible$=(0,j.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,he.w)(()=>k.pipe(Re(()=>(0,q.H)(this.debounceDelay))))),k.pipe((0,he.w)(()=>De.pipe(Re(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,me.x)(),(0,Le.b)(Lt=>this.updateExpirationDelay(Lt)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(k=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(k)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(k){k&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,q.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return z.\u0275fac=function(k){return new(k||z)(y.Y36(we),y.Y36(ce))},z.\u0275cmp=y.Xpm({type:z,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",spinner:"spinner",backgroundColor:"backgroundColor"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity",4,"ngIf"],["id","spinner"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(k,De){1&k&&(y.YNc(0,Dt,10,13,"div",0),y.ALo(1,"async")),2&k&&y.Q6J("ngIf",y.lcZ(1,1,De.isVisible$))},directives:[Be.O5,Be.$G,bn,Dn,Vt,Kt,Tt,rn,Ut,ge],pipes:[Be.Ov],styles:["#spinner[_ngcontent-%COMP%]{left:50%;position:fixed;top:50%;transform:translate(-50%,-50%);z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{align-items:center;background-color:#f1f1f1;display:flex;height:100%;justify-content:center;left:0;top:0;transform:none;width:100%} .colored-parent, .colored>div{background-color:#333}"]}),z})(),fe=(()=>{class z{static forRoot(){return{ngModule:z,providers:[Z]}}}return z.\u0275fac=function(k){return new(k||z)},z.\u0275mod=y.oAB({type:z}),z.\u0275inj=y.cJS({imports:[[Be.ez]]}),z})();var U=S(632),re=S(8002),te=S(2302);const ne=[{path:"",loadChildren:()=>Promise.all([S.e(365),S.e(22)]).then(S.bind(S,22)).then(z=>z.LoginModule)},{path:"menu",loadChildren:()=>Promise.all([S.e(365),S.e(279)]).then(S.bind(S,8279)).then(z=>z.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let Ae=(()=>{class z{}return z.\u0275fac=function(k){return new(k||z)},z.\u0275mod=y.oAB({type:z}),z.\u0275inj=y.cJS({imports:[[te.Bz.forRoot(ne,{relativeLinkResolution:"legacy"})],te.Bz]}),z})();var ye=S(4850),Qe=S(1709);let Oe=(()=>{class z{constructor(k,De,Lt){this._router=k,this.titleService=De,this.activatedRoute=Lt}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe((0,Y.h)(k=>k instanceof te.m2)).pipe((0,ye.U)(()=>this.activatedRoute),(0,ye.U)(k=>{for(;k.firstChild;)k=k.firstChild;return k}),(0,Y.h)(k=>"primary"===k.outlet),(0,Qe.zg)(k=>k.data)).subscribe(k=>{let De=" | Marketplace";"Dealpos x Marketplace"==k.title&&(De=""),this.titleService.setTitle(k.title+De)})}overrideDateToJsonFunction(){function k(De){return De<10?"0"+De:De}Date.prototype.toJSON=function(){return this.getFullYear()+"-"+k(this.getMonth()+1)+"-"+k(this.getDate())+"T"+k(this.getHours())+":"+k(this.getMinutes())+":"+k(this.getSeconds())+".000"}}}return z.\u0275fac=function(k){return new(k||z)(y.Y36(te.F0),y.Y36(f.Dx),y.Y36(te.gz))},z.\u0275cmp=y.Xpm({type:z,selectors:[["app-root"]],decls:2,vars:0,template:function(k,De){1&k&&y._UZ(0,"router-outlet")(1,"ng-http-loader")},directives:[te.lC,ie],styles:[""]}),z})();var at=S(6360);let lt=(()=>{class z{constructor(k){this._router=k}intercept(k,De){let Lt=JSON.parse(window.localStorage.getItem("user")),An=new Date;if(null!=Lt){let Wn=new Date(Lt.expiredAt);k=k.clone(An<Wn?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${Lt.access_token}`}}:{setHeaders:{"Content-Type":"application/json"}})}else k=k.clone({setHeaders:{"Content-Type":"application/json"}});return De.handle(k)}}return z.\u0275fac=function(k){return new(k||z)(y.LFG(te.F0))},z.\u0275prov=y.Yz7({token:z,factory:z.\u0275fac}),z})();var yt=S(4383),de=S(1777);const H=["custom-toast-component",""];function N(z,ue){if(1&z){const k=y.EpF();y.TgZ(0,"a",10),y.NdJ("click",function(){return y.CHM(k),y.oxw(2).remove()}),y._uU(1," x "),y.qZA()}}function Ne(z,ue){if(1&z&&(y.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),y._uU(4),y.qZA()()(),y.TgZ(5,"div",8),y.YNc(6,N,2,0,"a",9),y.qZA()()),2&z){const k=y.oxw();y.Udp("display","inactive"===k.state.value?"none":""),y.xp6(2),y.Tol(k.options.titleClass),y.uIk("aria-label",k.title),y.xp6(2),y.Oqu(k.title),y.xp6(2),y.Q6J("ngIf",k.options.closeButton)}}const _e=function(z){return{notitle:z}};function ke(z,ue){if(1&z&&y._UZ(0,"div",11),2&z){const k=y.oxw();y.Tol(k.options.messageClass),y.Q6J("ngClass",y.VKq(4,_e,null==k.title))("innerHTML",k.message,y.oJD)}}function Ge(z,ue){if(1&z&&(y.TgZ(0,"div",12),y._uU(1),y.qZA()),2&z){const k=y.oxw();y.Tol(k.options.messageClass),y.Q6J("ngClass",y.VKq(5,_e,null==k.title)),y.uIk("aria-label",k.message),y.xp6(1),y.hij(" ",k.message," ")}}function Jt(z,ue){if(1&z){const k=y.EpF();y.TgZ(0,"a",10),y.NdJ("click",function(){return y.CHM(k),y.oxw().remove()}),y._uU(1," x "),y.qZA()}}function bt(z,ue){if(1&z&&(y.TgZ(0,"div"),y._UZ(1,"div",13),y.qZA()),2&z){const k=y.oxw();y.xp6(1),y.Udp("width",k.width+"%")}}let ct=(()=>{class z extends yt.FN{constructor(k,De){super(k,De),this.toastrService=k,this.toastPackage=De}ngOnInit(){}action(k){return k.stopPropagation(),this.toastPackage.triggerAction(),!1}}return z.\u0275fac=function(k){return new(k||z)(y.Y36(yt._W),y.Y36(yt.PR))},z.\u0275cmp=y.Xpm({type:z,selectors:[["","custom-toast-component",""]],features:[y.qOj],attrs:H,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(k,De){1&k&&(y.TgZ(0,"div",0),y.YNc(1,Ne,7,7,"div",1),y.YNc(2,ke,1,6,"div",2),y.YNc(3,Ge,2,7,"div",3),y.YNc(4,Jt,2,0,"a",4),y.YNc(5,bt,2,2,"div",5),y.qZA()),2&k&&(y.xp6(1),y.Q6J("ngIf",De.title),y.xp6(1),y.Q6J("ngIf",De.message&&De.options.enableHtml),y.xp6(1),y.Q6J("ngIf",De.message&&!De.options.enableHtml),y.xp6(1),y.Q6J("ngIf",De.options.closeButton&&null==De.title),y.xp6(1),y.Q6J("ngIf",De.options.progressBar))},directives:[Be.O5,Be.mk],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid #51a351}.toast-info[_nghost-%COMP%]{border:1.8px solid #2f96b4}.toast-error[_nghost-%COMP%]{border:1.8px solid #bd362f}.toast-warning[_nghost-%COMP%]{border:1.8px solid #f89406}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.6rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[(0,de.X$)("flyInOut",[(0,de.SB)("inactive",(0,de.oB)({opacity:0})),(0,de.eR)("inactive => active",(0,de.jt)("400ms ease-out",(0,de.F4)([(0,de.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,de.oB)({transform:"skewX(20deg)",opacity:1}),(0,de.oB)({transform:"skewX(-5deg)",opacity:1}),(0,de.oB)({transform:"none",opacity:1})]))),(0,de.eR)("active => removed",(0,de.jt)("400ms ease-out",(0,de.F4)([(0,de.oB)({opacity:1}),(0,de.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),z})();var Xt=S(6565);const sn={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!0},storeSchema:[]}]};let an=(()=>{class z{}return z.\u0275fac=function(k){return new(k||z)},z.\u0275mod=y.oAB({type:z,bootstrap:[Oe]}),z.\u0275inj=y.cJS({providers:[{provide:se.TP,useClass:lt,multi:!0},U.O,re.e],imports:[[f.b2,Ae,at.PW,yt.Rh.forRoot({toastComponent:ct,positionClass:"toast-bottom-right",closeButton:!0}),se.JF,Xt.Cz.forRoot(sn),fe.forRoot()]]}),z})();(0,y.G48)(),f.q6().bootstrapModule(an).catch(z=>console.error(z))},4383:(Ze,pe,S)=>{S.d(pe,{FN:()=>Dn,PR:()=>Be,Rh:()=>Vt,_W:()=>je});var f=S(5e3),y=S(1777),se=S(8929),X=S(2313),F=S(9808);const x=["toast-component",""];function Y(ge,we){if(1&ge){const Z=f.EpF();f.TgZ(0,"button",5),f.NdJ("click",function(){return f.CHM(Z),f.oxw().remove()}),f.TgZ(1,"span",6),f._uU(2,"\xd7"),f.qZA()()}}function Q(ge,we){if(1&ge&&(f.ynx(0),f._uU(1),f.BQk()),2&ge){const Z=f.oxw(2);f.xp6(1),f.hij("[",Z.duplicatesCount+1,"]")}}function ae(ge,we){if(1&ge&&(f.TgZ(0,"div"),f._uU(1),f.YNc(2,Q,2,1,"ng-container",4),f.qZA()),2&ge){const Z=f.oxw();f.Tol(Z.options.titleClass),f.uIk("aria-label",Z.title),f.xp6(1),f.hij(" ",Z.title," "),f.xp6(1),f.Q6J("ngIf",Z.duplicatesCount)}}function j(ge,we){if(1&ge&&f._UZ(0,"div",7),2&ge){const Z=f.oxw();f.Tol(Z.options.messageClass),f.Q6J("innerHTML",Z.message,f.oJD)}}function q(ge,we){if(1&ge&&(f.TgZ(0,"div",8),f._uU(1),f.qZA()),2&ge){const Z=f.oxw();f.Tol(Z.options.messageClass),f.uIk("aria-label",Z.message),f.xp6(1),f.hij(" ",Z.message," ")}}function $(ge,we){if(1&ge&&(f.TgZ(0,"div"),f._UZ(1,"div",9),f.qZA()),2&ge){const Z=f.oxw();f.xp6(1),f.Udp("width",Z.width+"%")}}function he(ge,we){if(1&ge){const Z=f.EpF();f.TgZ(0,"button",5),f.NdJ("click",function(){return f.CHM(Z),f.oxw().remove()}),f.TgZ(1,"span",6),f._uU(2,"\xd7"),f.qZA()()}}function He(ge,we){if(1&ge&&(f.ynx(0),f._uU(1),f.BQk()),2&ge){const Z=f.oxw(2);f.xp6(1),f.hij("[",Z.duplicatesCount+1,"]")}}function Ee(ge,we){if(1&ge&&(f.TgZ(0,"div"),f._uU(1),f.YNc(2,He,2,1,"ng-container",4),f.qZA()),2&ge){const Z=f.oxw();f.Tol(Z.options.titleClass),f.uIk("aria-label",Z.title),f.xp6(1),f.hij(" ",Z.title," "),f.xp6(1),f.Q6J("ngIf",Z.duplicatesCount)}}function Re(ge,we){if(1&ge&&f._UZ(0,"div",7),2&ge){const Z=f.oxw();f.Tol(Z.options.messageClass),f.Q6J("innerHTML",Z.message,f.oJD)}}function Fe(ge,we){if(1&ge&&(f.TgZ(0,"div",8),f._uU(1),f.qZA()),2&ge){const Z=f.oxw();f.Tol(Z.options.messageClass),f.uIk("aria-label",Z.message),f.xp6(1),f.hij(" ",Z.message," ")}}function ze(ge,we){if(1&ge&&(f.TgZ(0,"div"),f._UZ(1,"div",9),f.qZA()),2&ge){const Z=f.oxw();f.xp6(1),f.Udp("width",Z.width+"%")}}class Be{constructor(we,Z,ce,Ue,mt,ie){this.toastId=we,this.config=Z,this.message=ce,this.title=Ue,this.toastType=mt,this.toastRef=ie,this._onTap=new se.xQ,this._onAction=new se.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(we){this._onAction.next(we)}onAction(){return this._onAction.asObservable()}}const Se={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Ye=new f.OlP("ToastConfig");class Mt{constructor(we,Z){this.component=we,this.injector=Z}attach(we,Z){return this._attachedHost=we,we.attach(this,Z)}detach(){const we=this._attachedHost;if(we)return this._attachedHost=void 0,we.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(we){this._attachedHost=we}}class xt extends class jt{attach(we,Z){return this._attachedPortal=we,this.attachComponentPortal(we,Z)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(we){this._disposeFn=we}}{constructor(we,Z,ce){super(),this._hostDomElement=we,this._componentFactoryResolver=Z,this._appRef=ce}attachComponentPortal(we,Z){const ce=this._componentFactoryResolver.resolveComponentFactory(we.component);let Ue;return Ue=ce.create(we.injector),this._appRef.attachView(Ue.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ue.hostView),Ue.destroy()}),Z?this._hostDomElement.insertBefore(this._getComponentRootNode(Ue),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ue)),Ue}_getComponentRootNode(we){return we.hostView.rootNodes[0]}}let pt=(()=>{class ge{constructor(Z){this._document=Z}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Z=this._document.createElement("div");Z.classList.add("overlay-container"),this._document.body.appendChild(Z),this._containerElement=Z}}return ge.\u0275fac=function(Z){return new(Z||ge)(f.LFG(F.K0))},ge.\u0275prov=(0,f.Yz7)({factory:function(){return new ge((0,f.LFG)(F.K0))},token:ge,providedIn:"root"}),ge})();class Pt{constructor(we){this._portalHost=we}attach(we,Z=!0){return this._portalHost.attach(we,Z)}detach(){return this._portalHost.detach()}}let At=(()=>{class ge{constructor(Z,ce,Ue,mt){this._overlayContainer=Z,this._componentFactoryResolver=ce,this._appRef=Ue,this._document=mt,this._paneElements=new Map}create(Z,ce){return this._createOverlayRef(this.getPaneElement(Z,ce))}getPaneElement(Z="",ce){return this._paneElements.get(ce)||this._paneElements.set(ce,{}),this._paneElements.get(ce)[Z]||(this._paneElements.get(ce)[Z]=this._createPaneElement(Z,ce)),this._paneElements.get(ce)[Z]}_createPaneElement(Z,ce){const Ue=this._document.createElement("div");return Ue.id="toast-container",Ue.classList.add(Z),Ue.classList.add("toast-container"),ce?ce.getContainerElement().appendChild(Ue):this._overlayContainer.getContainerElement().appendChild(Ue),Ue}_createPortalHost(Z){return new xt(Z,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Z){return new Pt(this._createPortalHost(Z))}}return ge.\u0275fac=function(Z){return new(Z||ge)(f.LFG(pt),f.LFG(f._Vd),f.LFG(f.z2F),f.LFG(F.K0))},ge.\u0275prov=(0,f.Yz7)({factory:function(){return new ge((0,f.LFG)(pt),(0,f.LFG)(f._Vd),(0,f.LFG)(f.z2F),(0,f.LFG)(F.K0))},token:ge,providedIn:"root"}),ge})();class Je{constructor(we){this._overlayRef=we,this.duplicatesCount=0,this._afterClosed=new se.xQ,this._activate=new se.xQ,this._manualClose=new se.xQ,this._resetTimeout=new se.xQ,this._countDuplicate=new se.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(we,Z){we&&this._resetTimeout.next(),Z&&this._countDuplicate.next(++this.duplicatesCount)}}class Dt{constructor(we,Z){this._toastPackage=we,this._parentInjector=Z}get(we,Z,ce){return we===Be?this._toastPackage:this._parentInjector.get(we,Z,ce)}}let je=(()=>{class ge{constructor(Z,ce,Ue,mt,ie){this.overlay=ce,this._injector=Ue,this.sanitizer=mt,this.ngZone=ie,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Z.default),Z.config),Z.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Z.default.iconClasses),Z.config.iconClasses))}show(Z,ce,Ue={},mt=""){return this._preBuildNotification(mt,Z,ce,this.applyConfig(Ue))}success(Z,ce,Ue={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Z,ce,this.applyConfig(Ue))}error(Z,ce,Ue={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Z,ce,this.applyConfig(Ue))}info(Z,ce,Ue={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Z,ce,this.applyConfig(Ue))}warning(Z,ce,Ue={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Z,ce,this.applyConfig(Ue))}clear(Z){for(const ce of this.toasts)if(void 0!==Z){if(ce.toastId===Z)return void ce.toastRef.manualClose()}else ce.toastRef.manualClose()}remove(Z){const ce=this._findToast(Z);if(!ce||(ce.activeToast.toastRef.close(),this.toasts.splice(ce.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ue=this.toasts[this.currentlyActive].toastRef;Ue.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ue.activate())}return!0}findDuplicate(Z="",ce="",Ue,mt){const{includeTitleDuplicates:ie}=this.toastrConfig;for(const fe of this.toasts){const U=ie&&fe.title===Z;if((!ie||U)&&fe.message===ce)return fe.toastRef.onDuplicate(Ue,mt),fe}return null}applyConfig(Z={}){return Object.assign(Object.assign({},this.toastrConfig),Z)}_findToast(Z){for(let ce=0;ce<this.toasts.length;ce++)if(this.toasts[ce].toastId===Z)return{index:ce,activeToast:this.toasts[ce]};return null}_preBuildNotification(Z,ce,Ue,mt){return mt.onActivateTick?this.ngZone.run(()=>this._buildNotification(Z,ce,Ue,mt)):this._buildNotification(Z,ce,Ue,mt)}_buildNotification(Z,ce,Ue,mt){if(!mt.toastComponent)throw new Error("toastComponent required");const ie=this.findDuplicate(Ue,ce,this.toastrConfig.resetTimeoutOnDuplicate&&mt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ue||ce)&&this.toastrConfig.preventDuplicates&&null!==ie)return ie;this.previousToastMessage=ce;let fe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(fe=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const U=this.overlay.create(mt.positionClass,this.overlayContainer);this.index=this.index+1;let re=ce;ce&&mt.enableHtml&&(re=this.sanitizer.sanitize(f.q3G.HTML,ce));const te=new Je(U),ne=new Be(this.index,mt,re,Ue,Z,te),Ae=new Dt(ne,this._injector),ye=new Mt(mt.toastComponent,Ae),Qe=U.attach(ye,this.toastrConfig.newestOnTop);te.componentInstance=Qe.instance;const Oe={toastId:this.index,title:Ue||"",message:ce||"",toastRef:te,onShown:te.afterActivate(),onHidden:te.afterClosed(),onTap:ne.onTap(),onAction:ne.onAction(),portal:Qe};return fe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return ge.\u0275fac=function(Z){return new(Z||ge)(f.LFG(Ye),f.LFG(At),f.LFG(f.zs3),f.LFG(X.H7),f.LFG(f.R0b))},ge.\u0275prov=(0,f.Yz7)({factory:function(){return new ge((0,f.LFG)(Ye),(0,f.LFG)(At),(0,f.LFG)(f.gxx),(0,f.LFG)(X.H7),(0,f.LFG)(f.R0b))},token:ge,providedIn:"root"}),ge})(),Dn=(()=>{class ge{constructor(Z,ce,Ue){this.toastrService=Z,this.toastPackage=ce,this.ngZone=Ue,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=ce.message,this.title=ce.title,this.options=ce.config,this.originalTimeout=ce.config.timeOut,this.toastClasses=`${ce.toastType} ${ce.config.toastClass}`,this.sub=ce.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ce.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ce.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ce.toastRef.countDuplicate().subscribe(mt=>{this.duplicatesCount=mt})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Z=(new Date).getTime();this.width=(this.hideTime-Z)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(Z,ce){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Z),ce)):this.timeout=setTimeout(()=>Z(),ce)}outsideInterval(Z,ce){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Z),ce)):this.intervalId=setInterval(()=>Z(),ce)}runInsideAngular(Z){this.ngZone?this.ngZone.run(()=>Z()):Z()}}return ge.\u0275fac=function(Z){return new(Z||ge)(f.Y36(je),f.Y36(Be),f.Y36(f.R0b))},ge.\u0275cmp=f.Xpm({type:ge,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Z,ce){1&Z&&f.NdJ("click",function(){return ce.tapToast()})("mouseenter",function(){return ce.stickAround()})("mouseleave",function(){return ce.delayedHideToast()}),2&Z&&(f.d8E("@flyInOut",ce.state),f.Tol(ce.toastClasses),f.Udp("display",ce.displayStyle))},attrs:x,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(Z,ce){1&Z&&(f.YNc(0,Y,3,0,"button",0),f.YNc(1,ae,3,5,"div",1),f.YNc(2,j,1,3,"div",2),f.YNc(3,q,2,4,"div",3),f.YNc(4,$,2,2,"div",4)),2&Z&&(f.Q6J("ngIf",ce.options.closeButton),f.xp6(1),f.Q6J("ngIf",ce.title),f.xp6(1),f.Q6J("ngIf",ce.message&&ce.options.enableHtml),f.xp6(1),f.Q6J("ngIf",ce.message&&!ce.options.enableHtml),f.xp6(1),f.Q6J("ngIf",ce.options.progressBar))},directives:[F.O5],encapsulation:2,data:{animation:[(0,y.X$)("flyInOut",[(0,y.SB)("inactive",(0,y.oB)({opacity:0})),(0,y.SB)("active",(0,y.oB)({opacity:1})),(0,y.SB)("removed",(0,y.oB)({opacity:0})),(0,y.eR)("inactive => active",(0,y.jt)("{{ easeTime }}ms {{ easing }}")),(0,y.eR)("active => removed",(0,y.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),ge})();const bn=Object.assign(Object.assign({},Se),{toastComponent:Dn});let Vt=(()=>{class ge{static forRoot(Z={}){return{ngModule:ge,providers:[{provide:Ye,useValue:{default:bn,config:Z}}]}}}return ge.\u0275fac=function(Z){return new(Z||ge)},ge.\u0275mod=f.oAB({type:ge}),ge.\u0275inj=f.cJS({imports:[[F.ez]]}),ge})(),Tt=(()=>{class ge{constructor(Z,ce,Ue){this.toastrService=Z,this.toastPackage=ce,this.appRef=Ue,this.width=-1,this.toastClasses="",this.state="inactive",this.message=ce.message,this.title=ce.title,this.options=ce.config,this.originalTimeout=ce.config.timeOut,this.toastClasses=`${ce.toastType} ${ce.config.toastClass}`,this.sub=ce.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ce.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ce.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ce.toastRef.countDuplicate().subscribe(mt=>{this.duplicatesCount=mt})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Z=(new Date).getTime();this.width=(this.hideTime-Z)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return ge.\u0275fac=function(Z){return new(Z||ge)(f.Y36(je),f.Y36(Be),f.Y36(f.z2F))},ge.\u0275cmp=f.Xpm({type:ge,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Z,ce){1&Z&&f.NdJ("click",function(){return ce.tapToast()})("mouseenter",function(){return ce.stickAround()})("mouseleave",function(){return ce.delayedHideToast()}),2&Z&&(f.Tol(ce.toastClasses),f.Udp("display",ce.displayStyle))},attrs:x,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(Z,ce){1&Z&&(f.YNc(0,he,3,0,"button",0),f.YNc(1,Ee,3,5,"div",1),f.YNc(2,Re,1,3,"div",2),f.YNc(3,Fe,2,4,"div",3),f.YNc(4,ze,2,2,"div",4)),2&Z&&(f.Q6J("ngIf",ce.options.closeButton),f.xp6(1),f.Q6J("ngIf",ce.title),f.xp6(1),f.Q6J("ngIf",ce.message&&ce.options.enableHtml),f.xp6(1),f.Q6J("ngIf",ce.message&&!ce.options.enableHtml),f.xp6(1),f.Q6J("ngIf",ce.options.progressBar))},directives:[F.O5],encapsulation:2}),ge})();Object.assign(Object.assign({},Se),{toastComponent:Tt})},591:(Ze,pe,S)=>{S.d(pe,{X:()=>se});var f=S(8929),y=S(5279);class se extends f.xQ{constructor(F){super(),this._value=F}get value(){return this.getValue()}_subscribe(F){const x=super._subscribe(F);return x&&!x.closed&&F.next(this._value),x}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new y.N;return this._value}next(F){super.next(this._value=F)}}},1869:(Ze,pe,S)=>{S.d(pe,{d:()=>y});var f=S(3489);class y extends f.L{constructor(X,F,x){super(),this.parent=X,this.outerValue=F,this.outerIndex=x,this.index=0}_next(X){this.parent.notifyNext(this.outerValue,X,this.outerIndex,this.index++,this)}_error(X){this.parent.notifyError(X,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(Ze,pe,S)=>{S.d(pe,{P:()=>F});var f=S(8896),y=S(1086),se=S(1737);class F{constructor(Y,Q,ae){this.kind=Y,this.value=Q,this.error=ae,this.hasValue="N"===Y}observe(Y){switch(this.kind){case"N":return Y.next&&Y.next(this.value);case"E":return Y.error&&Y.error(this.error);case"C":return Y.complete&&Y.complete()}}do(Y,Q,ae){switch(this.kind){case"N":return Y&&Y(this.value);case"E":return Q&&Q(this.error);case"C":return ae&&ae()}}accept(Y,Q,ae){return Y&&"function"==typeof Y.next?this.observe(Y):this.do(Y,Q,ae)}toObservable(){switch(this.kind){case"N":return(0,y.of)(this.value);case"E":return(0,se._)(this.error);case"C":return(0,f.c)()}throw new Error("unexpected notification kind value")}static createNext(Y){return void 0!==Y?new F("N",Y):F.undefinedValueNotification}static createError(Y){return new F("E",void 0,Y)}static createComplete(){return F.completeNotification}}F.completeNotification=new F("C"),F.undefinedValueNotification=new F("N",void 0)},2916:(Ze,pe,S)=>{S.d(pe,{y:()=>q});var f=S(3489),se=S(7668),X=S(3292),x=S(3821),Y=S(5379);var j=S(2830);let q=(()=>{class he{constructor(Ee){this._isScalar=!1,Ee&&(this._subscribe=Ee)}lift(Ee){const Re=new he;return Re.source=this,Re.operator=Ee,Re}subscribe(Ee,Re,Fe){const{operator:ze}=this,me=function F(he,He,Ee){if(he){if(he instanceof f.L)return he;if(he[se.b])return he[se.b]()}return he||He||Ee?new f.L(he,He,Ee):new f.L(X.c)}(Ee,Re,Fe);if(me.add(ze?ze.call(me,this.source):this.source||j.v.useDeprecatedSynchronousErrorHandling&&!me.syncErrorThrowable?this._subscribe(me):this._trySubscribe(me)),j.v.useDeprecatedSynchronousErrorHandling&&me.syncErrorThrowable&&(me.syncErrorThrowable=!1,me.syncErrorThrown))throw me.syncErrorValue;return me}_trySubscribe(Ee){try{return this._subscribe(Ee)}catch(Re){j.v.useDeprecatedSynchronousErrorHandling&&(Ee.syncErrorThrown=!0,Ee.syncErrorValue=Re),function y(he){for(;he;){const{closed:He,destination:Ee,isStopped:Re}=he;if(He||Re)return!1;he=Ee&&Ee instanceof f.L?Ee:null}return!0}(Ee)?Ee.error(Re):console.warn(Re)}}forEach(Ee,Re){return new(Re=$(Re))((Fe,ze)=>{let me;me=this.subscribe(Le=>{try{Ee(Le)}catch(Be){ze(Be),me&&me.unsubscribe()}},ze,Fe)})}_subscribe(Ee){const{source:Re}=this;return Re&&Re.subscribe(Ee)}[x.L](){return this}pipe(...Ee){return 0===Ee.length?this:function ae(he){return 0===he.length?Y.y:1===he.length?he[0]:function(Ee){return he.reduce((Re,Fe)=>Fe(Re),Ee)}}(Ee)(this)}toPromise(Ee){return new(Ee=$(Ee))((Re,Fe)=>{let ze;this.subscribe(me=>ze=me,me=>Fe(me),()=>Re(ze))})}}return he.create=He=>new he(He),he})();function $(he){if(he||(he=j.v.Promise||Promise),!he)throw new Error("no Promise impl found");return he}},3292:(Ze,pe,S)=>{S.d(pe,{c:()=>se});var f=S(2830),y=S(2782);const se={closed:!0,next(X){},error(X){if(f.v.useDeprecatedSynchronousErrorHandling)throw X;(0,y.z)(X)},complete(){}}},826:(Ze,pe,S)=>{S.d(pe,{L:()=>y});var f=S(3489);class y extends f.L{notifyNext(X,F,x,Y,Q){this.destination.next(F)}notifyError(X,F){this.destination.error(X)}notifyComplete(X){this.destination.complete()}}},6831:(Ze,pe,S)=>{S.d(pe,{t:()=>Re});var f=S(8929),y=S(6686),X=S(2268);const x=new class F extends X.v{}(class se extends y.o{constructor(me,Le){super(me,Le),this.scheduler=me,this.work=Le}schedule(me,Le=0){return Le>0?super.schedule(me,Le):(this.delay=Le,this.state=me,this.scheduler.flush(this),this)}execute(me,Le){return Le>0||this.closed?super.execute(me,Le):this._execute(me,Le)}requestAsyncId(me,Le,Be=0){return null!==Be&&Be>0||null===Be&&this.delay>0?super.requestAsyncId(me,Le,Be):me.flush(this)}});var Y=S(2654),Q=S(3489),ae=S(9312);class $ extends Q.L{constructor(me,Le,Be=0){super(me),this.scheduler=Le,this.delay=Be}static dispatch(me){const{notification:Le,destination:Be}=me;Le.observe(Be),this.unsubscribe()}scheduleMessage(me){this.destination.add(this.scheduler.schedule($.dispatch,this.delay,new he(me,this.destination)))}_next(me){this.scheduleMessage(ae.P.createNext(me))}_error(me){this.scheduleMessage(ae.P.createError(me)),this.unsubscribe()}_complete(){this.scheduleMessage(ae.P.createComplete()),this.unsubscribe()}}class he{constructor(me,Le){this.notification=me,this.destination=Le}}var He=S(5279),Ee=S(5283);class Re extends f.xQ{constructor(me=Number.POSITIVE_INFINITY,Le=Number.POSITIVE_INFINITY,Be){super(),this.scheduler=Be,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=me<1?1:me,this._windowTime=Le<1?1:Le,Le===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(me){const Le=this._events;Le.push(me),Le.length>this._bufferSize&&Le.shift(),super.next(me)}nextTimeWindow(me){this._events.push(new Fe(this._getNow(),me)),this._trimBufferThenGetEvents(),super.next(me)}_subscribe(me){const Le=this._infiniteTimeWindow,Be=Le?this._events:this._trimBufferThenGetEvents(),Se=this.scheduler,Ye=Be.length;let Mt;if(this.closed)throw new He.N;if(this.isStopped||this.hasError?Mt=Y.w.EMPTY:(this.observers.push(me),Mt=new Ee.W(this,me)),Se&&me.add(me=new $(me,Se)),Le)for(let jt=0;jt<Ye&&!me.closed;jt++)me.next(Be[jt]);else for(let jt=0;jt<Ye&&!me.closed;jt++)me.next(Be[jt].value);return this.hasError?me.error(this.thrownError):this.isStopped&&me.complete(),Mt}_getNow(){return(this.scheduler||x).now()}_trimBufferThenGetEvents(){const me=this._getNow(),Le=this._bufferSize,Be=this._windowTime,Se=this._events,Ye=Se.length;let Mt=0;for(;Mt<Ye&&!(me-Se[Mt].time<Be);)Mt++;return Ye>Le&&(Mt=Math.max(Mt,Ye-Le)),Mt>0&&Se.splice(0,Mt),Se}}class Fe{constructor(me,Le){this.time=me,this.value=Le}}},8929:(Ze,pe,S)=>{S.d(pe,{Yc:()=>Y,xQ:()=>Q});var f=S(2916),y=S(3489),se=S(2654),X=S(5279),F=S(5283),x=S(7668);class Y extends y.L{constructor(q){super(q),this.destination=q}}let Q=(()=>{class j extends f.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[x.b](){return new Y(this)}lift($){const he=new ae(this,this);return he.operator=$,he}next($){if(this.closed)throw new X.N;if(!this.isStopped){const{observers:he}=this,He=he.length,Ee=he.slice();for(let Re=0;Re<He;Re++)Ee[Re].next($)}}error($){if(this.closed)throw new X.N;this.hasError=!0,this.thrownError=$,this.isStopped=!0;const{observers:he}=this,He=he.length,Ee=he.slice();for(let Re=0;Re<He;Re++)Ee[Re].error($);this.observers.length=0}complete(){if(this.closed)throw new X.N;this.isStopped=!0;const{observers:$}=this,he=$.length,He=$.slice();for(let Ee=0;Ee<he;Ee++)He[Ee].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe($){if(this.closed)throw new X.N;return super._trySubscribe($)}_subscribe($){if(this.closed)throw new X.N;return this.hasError?($.error(this.thrownError),se.w.EMPTY):this.isStopped?($.complete(),se.w.EMPTY):(this.observers.push($),new F.W(this,$))}asObservable(){const $=new f.y;return $.source=this,$}}return j.create=(q,$)=>new ae(q,$),j})();class ae extends Q{constructor(q,$){super(),this.destination=q,this.source=$}next(q){const{destination:$}=this;$&&$.next&&$.next(q)}error(q){const{destination:$}=this;$&&$.error&&this.destination.error(q)}complete(){const{destination:q}=this;q&&q.complete&&this.destination.complete()}_subscribe(q){const{source:$}=this;return $?this.source.subscribe(q):se.w.EMPTY}}},5283:(Ze,pe,S)=>{S.d(pe,{W:()=>y});var f=S(2654);class y extends f.w{constructor(X,F){super(),this.subject=X,this.subscriber=F,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const X=this.subject,F=X.observers;if(this.subject=null,!F||0===F.length||X.isStopped||X.closed)return;const x=F.indexOf(this.subscriber);-1!==x&&F.splice(x,1)}}},3489:(Ze,pe,S)=>{S.d(pe,{L:()=>Y});var f=S(7043),y=S(3292),se=S(2654),X=S(7668),F=S(2830),x=S(2782);class Y extends se.w{constructor(j,q,$){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=y.c;break;case 1:if(!j){this.destination=y.c;break}if("object"==typeof j){j instanceof Y?(this.syncErrorThrowable=j.syncErrorThrowable,this.destination=j,j.add(this)):(this.syncErrorThrowable=!0,this.destination=new Q(this,j));break}default:this.syncErrorThrowable=!0,this.destination=new Q(this,j,q,$)}}[X.b](){return this}static create(j,q,$){const he=new Y(j,q,$);return he.syncErrorThrowable=!1,he}next(j){this.isStopped||this._next(j)}error(j){this.isStopped||(this.isStopped=!0,this._error(j))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(j){this.destination.next(j)}_error(j){this.destination.error(j),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:j}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=j,this}}class Q extends Y{constructor(j,q,$,he){super(),this._parentSubscriber=j;let He,Ee=this;(0,f.m)(q)?He=q:q&&(He=q.next,$=q.error,he=q.complete,q!==y.c&&(Ee=Object.create(q),(0,f.m)(Ee.unsubscribe)&&this.add(Ee.unsubscribe.bind(Ee)),Ee.unsubscribe=this.unsubscribe.bind(this))),this._context=Ee,this._next=He,this._error=$,this._complete=he}next(j){if(!this.isStopped&&this._next){const{_parentSubscriber:q}=this;F.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable?this.__tryOrSetError(q,this._next,j)&&this.unsubscribe():this.__tryOrUnsub(this._next,j)}}error(j){if(!this.isStopped){const{_parentSubscriber:q}=this,{useDeprecatedSynchronousErrorHandling:$}=F.v;if(this._error)$&&q.syncErrorThrowable?(this.__tryOrSetError(q,this._error,j),this.unsubscribe()):(this.__tryOrUnsub(this._error,j),this.unsubscribe());else if(q.syncErrorThrowable)$?(q.syncErrorValue=j,q.syncErrorThrown=!0):(0,x.z)(j),this.unsubscribe();else{if(this.unsubscribe(),$)throw j;(0,x.z)(j)}}}complete(){if(!this.isStopped){const{_parentSubscriber:j}=this;if(this._complete){const q=()=>this._complete.call(this._context);F.v.useDeprecatedSynchronousErrorHandling&&j.syncErrorThrowable?(this.__tryOrSetError(j,q),this.unsubscribe()):(this.__tryOrUnsub(q),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(j,q){try{j.call(this._context,q)}catch($){if(this.unsubscribe(),F.v.useDeprecatedSynchronousErrorHandling)throw $;(0,x.z)($)}}__tryOrSetError(j,q,$){if(!F.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{q.call(this._context,$)}catch(he){return F.v.useDeprecatedSynchronousErrorHandling?(j.syncErrorValue=he,j.syncErrorThrown=!0,!0):((0,x.z)(he),!0)}return!1}_unsubscribe(){const{_parentSubscriber:j}=this;this._context=null,this._parentSubscriber=null,j.unsubscribe()}}},2654:(Ze,pe,S)=>{S.d(pe,{w:()=>x});var f=S(6688),y=S(7830),se=S(7043);const F=(()=>{function Q(ae){return Error.call(this),this.message=ae?`${ae.length} errors occurred during unsubscription:\n${ae.map((j,q)=>`${q+1}) ${j.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ae,this}return Q.prototype=Object.create(Error.prototype),Q})();class x{constructor(ae){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,ae&&(this._unsubscribe=ae)}unsubscribe(){let ae;if(this.closed)return;let{_parentOrParents:j,_unsubscribe:q,_subscriptions:$}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,j instanceof x)j.remove(this);else if(null!==j)for(let he=0;he<j.length;++he)j[he].remove(this);if((0,se.m)(q))try{q.call(this)}catch(he){ae=he instanceof F?Y(he.errors):[he]}if((0,f.k)($)){let he=-1,He=$.length;for(;++he<He;){const Ee=$[he];if((0,y.K)(Ee))try{Ee.unsubscribe()}catch(Re){ae=ae||[],Re instanceof F?ae=ae.concat(Y(Re.errors)):ae.push(Re)}}}if(ae)throw new F(ae)}add(ae){let j=ae;if(!ae)return x.EMPTY;switch(typeof ae){case"function":j=new x(ae);case"object":if(j===this||j.closed||"function"!=typeof j.unsubscribe)return j;if(this.closed)return j.unsubscribe(),j;if(!(j instanceof x)){const he=j;j=new x,j._subscriptions=[he]}break;default:throw new Error("unrecognized teardown "+ae+" added to Subscription.")}let{_parentOrParents:q}=j;if(null===q)j._parentOrParents=this;else if(q instanceof x){if(q===this)return j;j._parentOrParents=[q,this]}else{if(-1!==q.indexOf(this))return j;q.push(this)}const $=this._subscriptions;return null===$?this._subscriptions=[j]:$.push(j),j}remove(ae){const j=this._subscriptions;if(j){const q=j.indexOf(ae);-1!==q&&j.splice(q,1)}}}var Q;function Y(Q){return Q.reduce((ae,j)=>ae.concat(j instanceof F?j.errors:j),[])}x.EMPTY=((Q=new x).closed=!0,Q)},2830:(Ze,pe,S)=>{S.d(pe,{v:()=>y});let f=!1;const y={Promise:void 0,set useDeprecatedSynchronousErrorHandling(se){if(se){const X=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+X.stack)}else f&&console.log("RxJS: Back to a better error behavior. Thank you. <3");f=se},get useDeprecatedSynchronousErrorHandling(){return f}}},1762:(Ze,pe,S)=>{S.d(pe,{N:()=>x,c:()=>F});var f=S(8929),y=S(2916),se=S(2654),X=S(4327);class F extends y.y{constructor(q,$){super(),this.source=q,this.subjectFactory=$,this._refCount=0,this._isComplete=!1}_subscribe(q){return this.getSubject().subscribe(q)}getSubject(){const q=this._subject;return(!q||q.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let q=this._connection;return q||(this._isComplete=!1,q=this._connection=new se.w,q.add(this.source.subscribe(new Y(this.getSubject(),this))),q.closed&&(this._connection=null,q=se.w.EMPTY)),q}refCount(){return(0,X.x)()(this)}}const x=(()=>{const j=F.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:j._subscribe},_isComplete:{value:j._isComplete,writable:!0},getSubject:{value:j.getSubject},connect:{value:j.connect},refCount:{value:j.refCount}}})();class Y extends f.Yc{constructor(q,$){super(q),this.connectable=$}_error(q){this._unsubscribe(),super._error(q)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const q=this.connectable;if(q){this.connectable=null;const $=q._connection;q._refCount=0,q._subject=null,q._connection=null,$&&$.unsubscribe()}}}},6053:(Ze,pe,S)=>{S.d(pe,{aj:()=>Y});var f=S(2866),y=S(6688),se=S(826),X=S(9054),F=S(3009);const x={};function Y(...j){let q=null,$=null;return(0,f.K)(j[j.length-1])&&($=j.pop()),"function"==typeof j[j.length-1]&&(q=j.pop()),1===j.length&&(0,y.k)(j[0])&&(j=j[0]),(0,F.n)(j,$).lift(new Q(q))}class Q{constructor(q){this.resultSelector=q}call(q,$){return $.subscribe(new ae(q,this.resultSelector))}}class ae extends se.L{constructor(q,$){super(q),this.resultSelector=$,this.active=0,this.values=[],this.observables=[]}_next(q){this.values.push(x),this.observables.push(q)}_complete(){const q=this.observables,$=q.length;if(0===$)this.destination.complete();else{this.active=$,this.toRespond=$;for(let he=0;he<$;he++){const He=q[he];this.add((0,X.D)(this,He,He,he))}}}notifyComplete(q){0==(this.active-=1)&&this.destination.complete()}notifyNext(q,$,he,He,Ee){const Re=this.values,ze=this.toRespond?Re[he]===x?--this.toRespond:this.toRespond:0;Re[he]=$,0===ze&&(this.resultSelector?this._tryResultSelector(Re):this.destination.next(Re.slice()))}_tryResultSelector(q){let $;try{$=this.resultSelector.apply(this,q)}catch(he){return void this.destination.error(he)}this.destination.next($)}}},1221:(Ze,pe,S)=>{S.d(pe,{z:()=>X});var f=S(1086),y=S(9146);function X(...F){return function se(){return(0,y.J)(1)}()((0,f.of)(...F))}},8514:(Ze,pe,S)=>{S.d(pe,{P:()=>X});var f=S(2916),y=S(5254),se=S(8896);function X(F){return new f.y(x=>{let Y;try{Y=F()}catch(ae){return void x.error(ae)}return(Y?(0,y.D)(Y):(0,se.c)()).subscribe(x)})}},8896:(Ze,pe,S)=>{S.d(pe,{E:()=>y,c:()=>se});var f=S(2916);const y=new f.y(F=>F.complete());function se(F){return F?function X(F){return new f.y(x=>F.schedule(()=>x.complete()))}(F):y}},5254:(Ze,pe,S)=>{S.d(pe,{D:()=>Ee});var f=S(2916),y=S(9249),se=S(2654),X=S(3821),Y=S(6454),Q=S(5430),q=S(8955),$=S(8515);function Ee(Re,Fe){return Fe?function He(Re,Fe){if(null!=Re){if(function j(Re){return Re&&"function"==typeof Re[X.L]}(Re))return function F(Re,Fe){return new f.y(ze=>{const me=new se.w;return me.add(Fe.schedule(()=>{const Le=Re[X.L]();me.add(Le.subscribe({next(Be){me.add(Fe.schedule(()=>ze.next(Be)))},error(Be){me.add(Fe.schedule(()=>ze.error(Be)))},complete(){me.add(Fe.schedule(()=>ze.complete()))}}))})),me})}(Re,Fe);if((0,q.t)(Re))return function x(Re,Fe){return new f.y(ze=>{const me=new se.w;return me.add(Fe.schedule(()=>Re.then(Le=>{me.add(Fe.schedule(()=>{ze.next(Le),me.add(Fe.schedule(()=>ze.complete()))}))},Le=>{me.add(Fe.schedule(()=>ze.error(Le)))}))),me})}(Re,Fe);if((0,$.z)(Re))return(0,Y.r)(Re,Fe);if(function he(Re){return Re&&"function"==typeof Re[Q.hZ]}(Re)||"string"==typeof Re)return function ae(Re,Fe){if(!Re)throw new Error("Iterable cannot be null");return new f.y(ze=>{const me=new se.w;let Le;return me.add(()=>{Le&&"function"==typeof Le.return&&Le.return()}),me.add(Fe.schedule(()=>{Le=Re[Q.hZ](),me.add(Fe.schedule(function(){if(ze.closed)return;let Be,Se;try{const Ye=Le.next();Be=Ye.value,Se=Ye.done}catch(Ye){return void ze.error(Ye)}Se?ze.complete():(ze.next(Be),this.schedule())}))})),me})}(Re,Fe)}throw new TypeError((null!==Re&&typeof Re||Re)+" is not observable")}(Re,Fe):Re instanceof f.y?Re:new f.y((0,y.s)(Re))}},3009:(Ze,pe,S)=>{S.d(pe,{n:()=>X});var f=S(2916),y=S(3650),se=S(6454);function X(F,x){return x?(0,se.r)(F,x):new f.y((0,y.V)(F))}},6787:(Ze,pe,S)=>{S.d(pe,{T:()=>F});var f=S(2916),y=S(2866),se=S(9146),X=S(3009);function F(...x){let Y=Number.POSITIVE_INFINITY,Q=null,ae=x[x.length-1];return(0,y.K)(ae)?(Q=x.pop(),x.length>1&&"number"==typeof x[x.length-1]&&(Y=x.pop())):"number"==typeof ae&&(Y=x.pop()),null===Q&&1===x.length&&x[0]instanceof f.y?x[0]:(0,se.J)(Y)((0,X.n)(x,Q))}},1086:(Ze,pe,S)=>{S.d(pe,{of:()=>X});var f=S(2866),y=S(3009),se=S(6454);function X(...F){let x=F[F.length-1];return(0,f.K)(x)?(F.pop(),(0,se.r)(F,x)):(0,y.n)(F)}},1737:(Ze,pe,S)=>{S.d(pe,{_:()=>y});var f=S(2916);function y(X,F){return new f.y(F?x=>F.schedule(se,0,{error:X,subscriber:x}):x=>x.error(X))}function se({error:X,subscriber:F}){F.error(X)}},8723:(Ze,pe,S)=>{S.d(pe,{H:()=>F});var f=S(2916),y=S(353),se=S(4241),X=S(2866);function F(Y=0,Q,ae){let j=-1;return(0,se.k)(Q)?j=Number(Q)<1?1:Number(Q):(0,X.K)(Q)&&(ae=Q),(0,X.K)(ae)||(ae=y.P),new f.y(q=>{const $=(0,se.k)(Y)?Y:+Y-ae.now();return ae.schedule(x,$,{index:0,period:j,subscriber:q})})}function x(Y){const{index:Q,period:ae,subscriber:j}=Y;if(j.next(Q),!j.closed){if(-1===ae)return j.complete();Y.index=Q+1,this.schedule(Y,ae)}}},7221:(Ze,pe,S)=>{S.d(pe,{K:()=>X});var f=S(826),y=S(1869),se=S(9054);function X(Y){return function(ae){const j=new F(Y),q=ae.lift(j);return j.caught=q}}class F{constructor(Q){this.selector=Q}call(Q,ae){return ae.subscribe(new x(Q,this.selector,this.caught))}}class x extends f.L{constructor(Q,ae,j){super(Q),this.selector=ae,this.caught=j}error(Q){if(!this.isStopped){let ae;try{ae=this.selector(Q,this.caught)}catch($){return void super.error($)}this._unsubscribeAndRecycle();const j=new y.d(this,void 0,void 0);this.add(j);const q=(0,se.D)(this,ae,void 0,void 0,j);q!==j&&this.add(q)}}}},1406:(Ze,pe,S)=>{S.d(pe,{b:()=>y});var f=S(1709);function y(se,X){return(0,f.zg)(se,X,1)}},5778:(Ze,pe,S)=>{S.d(pe,{x:()=>y});var f=S(3489);function y(F,x){return Y=>Y.lift(new se(F,x))}class se{constructor(x,Y){this.compare=x,this.keySelector=Y}call(x,Y){return Y.subscribe(new X(x,this.compare,this.keySelector))}}class X extends f.L{constructor(x,Y,Q){super(x),this.keySelector=Q,this.hasKey=!1,"function"==typeof Y&&(this.compare=Y)}compare(x,Y){return x===Y}_next(x){let Y;try{const{keySelector:ae}=this;Y=ae?ae(x):x}catch(ae){return this.destination.error(ae)}let Q=!1;if(this.hasKey)try{const{compare:ae}=this;Q=ae(this.key,Y)}catch(ae){return this.destination.error(ae)}else this.hasKey=!0;Q||(this.key=Y,this.destination.next(x))}}},2198:(Ze,pe,S)=>{S.d(pe,{h:()=>y});var f=S(3489);function y(F,x){return function(Q){return Q.lift(new se(F,x))}}class se{constructor(x,Y){this.predicate=x,this.thisArg=Y}call(x,Y){return Y.subscribe(new X(x,this.predicate,this.thisArg))}}class X extends f.L{constructor(x,Y,Q){super(x),this.predicate=Y,this.thisArg=Q,this.count=0}_next(x){let Y;try{Y=this.predicate.call(this.thisArg,x,this.count++)}catch(Q){return void this.destination.error(Q)}Y&&this.destination.next(x)}}},537:(Ze,pe,S)=>{S.d(pe,{x:()=>se});var f=S(3489),y=S(2654);function se(x){return Y=>Y.lift(new X(x))}class X{constructor(Y){this.callback=Y}call(Y,Q){return Q.subscribe(new F(Y,this.callback))}}class F extends f.L{constructor(Y,Q){super(Y),this.add(new y.w(Q))}}},4850:(Ze,pe,S)=>{S.d(pe,{U:()=>y});var f=S(3489);function y(F,x){return function(Q){if("function"!=typeof F)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return Q.lift(new se(F,x))}}class se{constructor(x,Y){this.project=x,this.thisArg=Y}call(x,Y){return Y.subscribe(new X(x,this.project,this.thisArg))}}class X extends f.L{constructor(x,Y,Q){super(x),this.project=Y,this.count=0,this.thisArg=Q||this}_next(x){let Y;try{Y=this.project.call(this.thisArg,x,this.count++)}catch(Q){return void this.destination.error(Q)}this.destination.next(Y)}}},9146:(Ze,pe,S)=>{S.d(pe,{J:()=>se});var f=S(1709),y=S(5379);function se(X=Number.POSITIVE_INFINITY){return(0,f.zg)(y.y,X)}},1709:(Ze,pe,S)=>{S.d(pe,{zg:()=>x});var f=S(9054),y=S(826),se=S(1869),X=S(4850),F=S(5254);function x(ae,j,q=Number.POSITIVE_INFINITY){return"function"==typeof j?$=>$.pipe(x((he,He)=>(0,F.D)(ae(he,He)).pipe((0,X.U)((Ee,Re)=>j(he,Ee,He,Re))),q)):("number"==typeof j&&(q=j),$=>$.lift(new Y(ae,q)))}class Y{constructor(j,q=Number.POSITIVE_INFINITY){this.project=j,this.concurrent=q}call(j,q){return q.subscribe(new Q(j,this.project,this.concurrent))}}class Q extends y.L{constructor(j,q,$=Number.POSITIVE_INFINITY){super(j),this.project=q,this.concurrent=$,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(j){this.active<this.concurrent?this._tryNext(j):this.buffer.push(j)}_tryNext(j){let q;const $=this.index++;try{q=this.project(j,$)}catch(he){return void this.destination.error(he)}this.active++,this._innerSub(q,j,$)}_innerSub(j,q,$){const he=new se.d(this,q,$),He=this.destination;He.add(he);const Ee=(0,f.D)(this,j,void 0,void 0,he);Ee!==he&&He.add(Ee)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(j,q,$,he,He){this.destination.next(q)}notifyComplete(j){const q=this.buffer;this.remove(j),this.active--,q.length>0?this._next(q.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Ze,pe,S)=>{S.d(pe,{x:()=>y});var f=S(3489);function y(){return function(x){return x.lift(new se(x))}}class se{constructor(x){this.connectable=x}call(x,Y){const{connectable:Q}=this;Q._refCount++;const ae=new X(x,Q),j=Y.subscribe(ae);return ae.closed||(ae.connection=Q.connect()),j}}class X extends f.L{constructor(x,Y){super(x),this.connectable=Y}_unsubscribe(){const{connectable:x}=this;if(!x)return void(this.connection=null);this.connectable=null;const Y=x._refCount;if(Y<=0)return void(this.connection=null);if(x._refCount=Y-1,Y>1)return void(this.connection=null);const{connection:Q}=this,ae=x._connection;this.connection=null,ae&&(!Q||ae===Q)&&ae.unsubscribe()}}},2014:(Ze,pe,S)=>{S.d(pe,{R:()=>y});var f=S(3489);function y(F,x){let Y=!1;return arguments.length>=2&&(Y=!0),function(ae){return ae.lift(new se(F,x,Y))}}class se{constructor(x,Y,Q=!1){this.accumulator=x,this.seed=Y,this.hasSeed=Q}call(x,Y){return Y.subscribe(new X(x,this.accumulator,this.seed,this.hasSeed))}}class X extends f.L{constructor(x,Y,Q,ae){super(x),this.accumulator=Y,this._seed=Q,this.hasSeed=ae,this.index=0}get seed(){return this._seed}set seed(x){this.hasSeed=!0,this._seed=x}_next(x){if(this.hasSeed)return this._tryNext(x);this.seed=x,this.destination.next(x)}_tryNext(x){const Y=this.index++;let Q;try{Q=this.accumulator(this.seed,x,Y)}catch(ae){this.destination.error(ae)}this.seed=Q,this.destination.next(Q)}}},2474:(Ze,pe,S)=>{S.d(pe,{B:()=>Y});var f=S(1762);class se{constructor(ae,j){this.subjectFactory=ae,this.selector=j}call(ae,j){const{selector:q}=this,$=this.subjectFactory(),he=q($).subscribe(ae);return he.add(j.subscribe($)),he}}var X=S(4327),F=S(8929);function x(){return new F.xQ}function Y(){return Q=>(0,X.x)()(function y(Q,ae){return function(q){let $;if($="function"==typeof Q?Q:function(){return Q},"function"==typeof ae)return q.lift(new se($,ae));const he=Object.create(q,f.N);return he.source=q,he.subjectFactory=$,he}}(x)(Q))}},1059:(Ze,pe,S)=>{S.d(pe,{O:()=>se});var f=S(1221),y=S(2866);function se(...X){const F=X[X.length-1];return(0,y.K)(F)?(X.pop(),x=>(0,f.z)(X,x,F)):x=>(0,f.z)(X,x)}},7545:(Ze,pe,S)=>{S.d(pe,{w:()=>x});var f=S(826),y=S(1869),se=S(9054),X=S(4850),F=S(5254);function x(ae,j){return"function"==typeof j?q=>q.pipe(x(($,he)=>(0,F.D)(ae($,he)).pipe((0,X.U)((He,Ee)=>j($,He,he,Ee))))):q=>q.lift(new Y(ae))}class Y{constructor(j){this.project=j}call(j,q){return q.subscribe(new Q(j,this.project))}}class Q extends f.L{constructor(j,q){super(j),this.project=q,this.index=0}_next(j){let q;const $=this.index++;try{q=this.project(j,$)}catch(he){return void this.destination.error(he)}this._innerSub(q,j,$)}_innerSub(j,q,$){const he=this.innerSubscription;he&&he.unsubscribe();const He=new y.d(this,q,$),Ee=this.destination;Ee.add(He),this.innerSubscription=(0,se.D)(this,j,void 0,void 0,He),this.innerSubscription!==He&&Ee.add(this.innerSubscription)}_complete(){const{innerSubscription:j}=this;(!j||j.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(j){this.destination.remove(j),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(j,q,$,he,He){this.destination.next(q)}}},2986:(Ze,pe,S)=>{S.d(pe,{q:()=>X});var f=S(3489),y=S(4231),se=S(8896);function X(Y){return Q=>0===Y?(0,se.c)():Q.lift(new F(Y))}class F{constructor(Q){if(this.total=Q,this.total<0)throw new y.W}call(Q,ae){return ae.subscribe(new x(Q,this.total))}}class x extends f.L{constructor(Q,ae){super(Q),this.total=ae,this.count=0}_next(Q){const ae=this.total,j=++this.count;j<=ae&&(this.destination.next(Q),j===ae&&(this.destination.complete(),this.unsubscribe()))}}},2868:(Ze,pe,S)=>{S.d(pe,{b:()=>X});var f=S(3489);function y(){}var se=S(7043);function X(Y,Q,ae){return function(q){return q.lift(new F(Y,Q,ae))}}class F{constructor(Q,ae,j){this.nextOrObserver=Q,this.error=ae,this.complete=j}call(Q,ae){return ae.subscribe(new x(Q,this.nextOrObserver,this.error,this.complete))}}class x extends f.L{constructor(Q,ae,j,q){super(Q),this._tapNext=y,this._tapError=y,this._tapComplete=y,this._tapError=j||y,this._tapComplete=q||y,(0,se.m)(ae)?(this._context=this,this._tapNext=ae):ae&&(this._context=ae,this._tapNext=ae.next||y,this._tapError=ae.error||y,this._tapComplete=ae.complete||y)}_next(Q){try{this._tapNext.call(this._context,Q)}catch(ae){return void this.destination.error(ae)}this.destination.next(Q)}_error(Q){try{this._tapError.call(this._context,Q)}catch(ae){return void this.destination.error(ae)}this.destination.error(Q)}_complete(){try{this._tapComplete.call(this._context)}catch(Q){return void this.destination.error(Q)}return this.destination.complete()}}},6454:(Ze,pe,S)=>{S.d(pe,{r:()=>se});var f=S(2916),y=S(2654);function se(X,F){return new f.y(x=>{const Y=new y.w;let Q=0;return Y.add(F.schedule(function(){Q!==X.length?(x.next(X[Q++]),x.closed||Y.add(this.schedule())):x.complete()})),Y})}},6686:(Ze,pe,S)=>{S.d(pe,{o:()=>se});var f=S(2654);class y extends f.w{constructor(F,x){super()}schedule(F,x=0){return this}}class se extends y{constructor(F,x){super(F,x),this.scheduler=F,this.work=x,this.pending=!1}schedule(F,x=0){if(this.closed)return this;this.state=F;const Y=this.id,Q=this.scheduler;return null!=Y&&(this.id=this.recycleAsyncId(Q,Y,x)),this.pending=!0,this.delay=x,this.id=this.id||this.requestAsyncId(Q,this.id,x),this}requestAsyncId(F,x,Y=0){return setInterval(F.flush.bind(F,this),Y)}recycleAsyncId(F,x,Y=0){if(null!==Y&&this.delay===Y&&!1===this.pending)return x;clearInterval(x)}execute(F,x){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Y=this._execute(F,x);if(Y)return Y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(F,x){let Q,Y=!1;try{this.work(F)}catch(ae){Y=!0,Q=!!ae&&ae||new Error(ae)}if(Y)return this.unsubscribe(),Q}_unsubscribe(){const F=this.id,x=this.scheduler,Y=x.actions,Q=Y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==Q&&Y.splice(Q,1),null!=F&&(this.id=this.recycleAsyncId(x,F,null)),this.delay=null}}},2268:(Ze,pe,S)=>{S.d(pe,{v:()=>y});let f=(()=>{class se{constructor(F,x=se.now){this.SchedulerAction=F,this.now=x}schedule(F,x=0,Y){return new this.SchedulerAction(this,F).schedule(Y,x)}}return se.now=()=>Date.now(),se})();class y extends f{constructor(X,F=f.now){super(X,()=>y.delegate&&y.delegate!==this?y.delegate.now():F()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(X,F=0,x){return y.delegate&&y.delegate!==this?y.delegate.schedule(X,F,x):super.schedule(X,F,x)}flush(X){const{actions:F}=this;if(this.active)return void F.push(X);let x;this.active=!0;do{if(x=X.execute(X.state,X.delay))break}while(X=F.shift());if(this.active=!1,x){for(;X=F.shift();)X.unsubscribe();throw x}}}},353:(Ze,pe,S)=>{S.d(pe,{P:()=>se});var f=S(6686);const se=new(S(2268).v)(f.o)},5430:(Ze,pe,S)=>{S.d(pe,{hZ:()=>y});const y=function f(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ze,pe,S)=>{S.d(pe,{L:()=>f});const f="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ze,pe,S)=>{S.d(pe,{b:()=>f});const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ze,pe,S)=>{S.d(pe,{W:()=>y});const y=(()=>{function se(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return se.prototype=Object.create(Error.prototype),se})()},5279:(Ze,pe,S)=>{S.d(pe,{N:()=>y});const y=(()=>{function se(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return se.prototype=Object.create(Error.prototype),se})()},2782:(Ze,pe,S)=>{function f(y){setTimeout(()=>{throw y},0)}S.d(pe,{z:()=>f})},5379:(Ze,pe,S)=>{function f(y){return y}S.d(pe,{y:()=>f})},6688:(Ze,pe,S)=>{S.d(pe,{k:()=>f});const f=Array.isArray||(y=>y&&"number"==typeof y.length)},8515:(Ze,pe,S)=>{S.d(pe,{z:()=>f});const f=y=>y&&"number"==typeof y.length&&"function"!=typeof y},2697:(Ze,pe,S)=>{function f(y){return y instanceof Date&&!isNaN(+y)}S.d(pe,{J:()=>f})},7043:(Ze,pe,S)=>{function f(y){return"function"==typeof y}S.d(pe,{m:()=>f})},4241:(Ze,pe,S)=>{S.d(pe,{k:()=>y});var f=S(6688);function y(se){return!(0,f.k)(se)&&se-parseFloat(se)+1>=0}},7830:(Ze,pe,S)=>{function f(y){return null!==y&&"object"==typeof y}S.d(pe,{K:()=>f})},8955:(Ze,pe,S)=>{function f(y){return!!y&&"function"!=typeof y.subscribe&&"function"==typeof y.then}S.d(pe,{t:()=>f})},2866:(Ze,pe,S)=>{function f(y){return y&&"function"==typeof y.schedule}S.d(pe,{K:()=>f})},9249:(Ze,pe,S)=>{S.d(pe,{s:()=>q});var f=S(3650),y=S(2782),X=S(5430),x=S(3821),Q=S(8515),ae=S(8955),j=S(7830);const q=$=>{if($&&"function"==typeof $[x.L])return($=>he=>{const He=$[x.L]();if("function"!=typeof He.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return He.subscribe(he)})($);if((0,Q.z)($))return(0,f.V)($);if((0,ae.t)($))return($=>he=>($.then(He=>{he.closed||(he.next(He),he.complete())},He=>he.error(He)).then(null,y.z),he))($);if($&&"function"==typeof $[X.hZ])return($=>he=>{const He=$[X.hZ]();for(;;){const Ee=He.next();if(Ee.done){he.complete();break}if(he.next(Ee.value),he.closed)break}return"function"==typeof He.return&&he.add(()=>{He.return&&He.return()}),he})($);{const He=`You provided ${(0,j.K)($)?"an invalid object":`'${$}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(He)}}},3650:(Ze,pe,S)=>{S.d(pe,{V:()=>f});const f=y=>se=>{for(let X=0,F=y.length;X<F&&!se.closed;X++)se.next(y[X]);se.complete()}},9054:(Ze,pe,S)=>{S.d(pe,{D:()=>X});var f=S(1869),y=S(9249),se=S(2916);function X(F,x,Y,Q,ae=new f.d(F,Y,Q)){if(!ae.closed)return x instanceof se.y?x.subscribe(ae):(0,y.s)(x)(ae)}},1777:(Ze,pe,S)=>{S.d(pe,{F4:()=>j,IO:()=>Ee,LC:()=>y,SB:()=>ae,X$:()=>X,ZE:()=>me,ZN:()=>ze,_j:()=>f,eR:()=>q,jt:()=>F,k1:()=>Le,l3:()=>se,oB:()=>Q,pV:()=>he,ru:()=>x,vP:()=>Y});class f{}class y{}const se="*";function X(Be,Se){return{type:7,name:Be,definitions:Se,options:{}}}function F(Be,Se=null){return{type:4,styles:Se,timings:Be}}function x(Be,Se=null){return{type:3,steps:Be,options:Se}}function Y(Be,Se=null){return{type:2,steps:Be,options:Se}}function Q(Be){return{type:6,styles:Be,offset:null}}function ae(Be,Se,Ye){return{type:0,name:Be,styles:Se,options:Ye}}function j(Be){return{type:5,steps:Be}}function q(Be,Se,Ye=null){return{type:1,expr:Be,animation:Se,options:Ye}}function he(Be=null){return{type:9,options:Be}}function Ee(Be,Se,Ye=null){return{type:11,selector:Be,animation:Se,options:Ye}}function Fe(Be){Promise.resolve(null).then(Be)}class ze{constructor(Se=0,Ye=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Se+Ye}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Se=>Se()),this._onDoneFns=[])}onStart(Se){this._onStartFns.push(Se)}onDone(Se){this._onDoneFns.push(Se)}onDestroy(Se){this._onDestroyFns.push(Se)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Fe(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Se=>Se()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Se=>Se()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Se){this._position=this.totalTime?Se*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Se){const Ye="start"==Se?this._onStartFns:this._onDoneFns;Ye.forEach(Mt=>Mt()),Ye.length=0}}class me{constructor(Se){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Se;let Ye=0,Mt=0,jt=0;const xt=this.players.length;0==xt?Fe(()=>this._onFinish()):this.players.forEach(pt=>{pt.onDone(()=>{++Ye==xt&&this._onFinish()}),pt.onDestroy(()=>{++Mt==xt&&this._onDestroy()}),pt.onStart(()=>{++jt==xt&&this._onStart()})}),this.totalTime=this.players.reduce((pt,Pt)=>Math.max(pt,Pt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Se=>Se()),this._onDoneFns=[])}init(){this.players.forEach(Se=>Se.init())}onStart(Se){this._onStartFns.push(Se)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Se=>Se()),this._onStartFns=[])}onDone(Se){this._onDoneFns.push(Se)}onDestroy(Se){this._onDestroyFns.push(Se)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Se=>Se.play())}pause(){this.players.forEach(Se=>Se.pause())}restart(){this.players.forEach(Se=>Se.restart())}finish(){this._onFinish(),this.players.forEach(Se=>Se.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Se=>Se.destroy()),this._onDestroyFns.forEach(Se=>Se()),this._onDestroyFns=[])}reset(){this.players.forEach(Se=>Se.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Se){const Ye=Se*this.totalTime;this.players.forEach(Mt=>{const jt=Mt.totalTime?Math.min(1,Ye/Mt.totalTime):1;Mt.setPosition(jt)})}getPosition(){const Se=this.players.reduce((Ye,Mt)=>null===Ye||Mt.totalTime>Ye.totalTime?Mt:Ye,null);return null!=Se?Se.getPosition():0}beforeDestroy(){this.players.forEach(Se=>{Se.beforeDestroy&&Se.beforeDestroy()})}triggerCallback(Se){const Ye="start"==Se?this._onStartFns:this._onDoneFns;Ye.forEach(Mt=>Mt()),Ye.length=0}}const Le="!"},9808:(Ze,pe,S)=>{S.d(pe,{$G:()=>yr,Do:()=>Be,ED:()=>vr,EM:()=>zr,HT:()=>F,JF:()=>Bt,JJ:()=>si,K0:()=>Y,Mx:()=>jr,NF:()=>Tn,O5:()=>Zn,Ov:()=>Bs,RF:()=>fn,S$:()=>Fe,Ts:()=>Mr,V_:()=>j,Ye:()=>Se,b0:()=>Le,bD:()=>Xr,ez:()=>Vs,lw:()=>Q,mk:()=>fr,mr:()=>me,n9:()=>Pn,q:()=>se,sg:()=>gn,tP:()=>Zr,uU:()=>ei,w_:()=>x});var f=S(5e3);let y=null;function se(){return y}function F(_){y||(y=_)}class x{}const Y=new f.OlP("DocumentToken");let Q=(()=>{class _{historyGo(m){throw new Error("Not implemented")}}return _.\u0275fac=function(m){return new(m||_)},_.\u0275prov=f.Yz7({token:_,factory:function(){return function ae(){return(0,f.LFG)(q)}()},providedIn:"platform"}),_})();const j=new f.OlP("Location Initialized");let q=(()=>{class _ extends Q{constructor(m){super(),this._doc=m,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return se().getBaseHref(this._doc)}onPopState(m){const A=se().getGlobalEventTarget(this._doc,"window");return A.addEventListener("popstate",m,!1),()=>A.removeEventListener("popstate",m)}onHashChange(m){const A=se().getGlobalEventTarget(this._doc,"window");return A.addEventListener("hashchange",m,!1),()=>A.removeEventListener("hashchange",m)}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(m){this.location.pathname=m}pushState(m,A,G){$()?this._history.pushState(m,A,G):this.location.hash=G}replaceState(m,A,G){$()?this._history.replaceState(m,A,G):this.location.hash=G}forward(){this._history.forward()}back(){this._history.back()}historyGo(m=0){this._history.go(m)}getState(){return this._history.state}}return _.\u0275fac=function(m){return new(m||_)(f.LFG(Y))},_.\u0275prov=f.Yz7({token:_,factory:function(){return function he(){return new q((0,f.LFG)(Y))}()},providedIn:"platform"}),_})();function $(){return!!window.history.pushState}function He(_,T){if(0==_.length)return T;if(0==T.length)return _;let m=0;return _.endsWith("/")&&m++,T.startsWith("/")&&m++,2==m?_+T.substring(1):1==m?_+T:_+"/"+T}function Ee(_){const T=_.match(/#|\?|$/),m=T&&T.index||_.length;return _.slice(0,m-("/"===_[m-1]?1:0))+_.slice(m)}function Re(_){return _&&"?"!==_[0]?"?"+_:_}let Fe=(()=>{class _{historyGo(m){throw new Error("Not implemented")}}return _.\u0275fac=function(m){return new(m||_)},_.\u0275prov=f.Yz7({token:_,factory:function(){return function ze(_){const T=(0,f.LFG)(Y).location;return new Le((0,f.LFG)(Q),T&&T.origin||"")}()},providedIn:"root"}),_})();const me=new f.OlP("appBaseHref");let Le=(()=>{class _ extends Fe{constructor(m,A){if(super(),this._platformLocation=m,this._removeListenerFns=[],null==A&&(A=this._platformLocation.getBaseHrefFromDOM()),null==A)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=A}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(m){this._removeListenerFns.push(this._platformLocation.onPopState(m),this._platformLocation.onHashChange(m))}getBaseHref(){return this._baseHref}prepareExternalUrl(m){return He(this._baseHref,m)}path(m=!1){const A=this._platformLocation.pathname+Re(this._platformLocation.search),G=this._platformLocation.hash;return G&&m?`${A}${G}`:A}pushState(m,A,G,ve){const Me=this.prepareExternalUrl(G+Re(ve));this._platformLocation.pushState(m,A,Me)}replaceState(m,A,G,ve){const Me=this.prepareExternalUrl(G+Re(ve));this._platformLocation.replaceState(m,A,Me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(m=0){var A,G;null===(G=(A=this._platformLocation).historyGo)||void 0===G||G.call(A,m)}}return _.\u0275fac=function(m){return new(m||_)(f.LFG(Q),f.LFG(me,8))},_.\u0275prov=f.Yz7({token:_,factory:_.\u0275fac}),_})(),Be=(()=>{class _ extends Fe{constructor(m,A){super(),this._platformLocation=m,this._baseHref="",this._removeListenerFns=[],null!=A&&(this._baseHref=A)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(m){this._removeListenerFns.push(this._platformLocation.onPopState(m),this._platformLocation.onHashChange(m))}getBaseHref(){return this._baseHref}path(m=!1){let A=this._platformLocation.hash;return null==A&&(A="#"),A.length>0?A.substring(1):A}prepareExternalUrl(m){const A=He(this._baseHref,m);return A.length>0?"#"+A:A}pushState(m,A,G,ve){let Me=this.prepareExternalUrl(G+Re(ve));0==Me.length&&(Me=this._platformLocation.pathname),this._platformLocation.pushState(m,A,Me)}replaceState(m,A,G,ve){let Me=this.prepareExternalUrl(G+Re(ve));0==Me.length&&(Me=this._platformLocation.pathname),this._platformLocation.replaceState(m,A,Me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(m=0){var A,G;null===(G=(A=this._platformLocation).historyGo)||void 0===G||G.call(A,m)}}return _.\u0275fac=function(m){return new(m||_)(f.LFG(Q),f.LFG(me,8))},_.\u0275prov=f.Yz7({token:_,factory:_.\u0275fac}),_})(),Se=(()=>{class _{constructor(m,A){this._subject=new f.vpe,this._urlChangeListeners=[],this._platformStrategy=m;const G=this._platformStrategy.getBaseHref();this._platformLocation=A,this._baseHref=Ee(jt(G)),this._platformStrategy.onPopState(ve=>{this._subject.emit({url:this.path(!0),pop:!0,state:ve.state,type:ve.type})})}path(m=!1){return this.normalize(this._platformStrategy.path(m))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(m,A=""){return this.path()==this.normalize(m+Re(A))}normalize(m){return _.stripTrailingSlash(function Mt(_,T){return _&&T.startsWith(_)?T.substring(_.length):T}(this._baseHref,jt(m)))}prepareExternalUrl(m){return m&&"/"!==m[0]&&(m="/"+m),this._platformStrategy.prepareExternalUrl(m)}go(m,A="",G=null){this._platformStrategy.pushState(G,"",m,A),this._notifyUrlChangeListeners(this.prepareExternalUrl(m+Re(A)),G)}replaceState(m,A="",G=null){this._platformStrategy.replaceState(G,"",m,A),this._notifyUrlChangeListeners(this.prepareExternalUrl(m+Re(A)),G)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(m=0){var A,G;null===(G=(A=this._platformStrategy).historyGo)||void 0===G||G.call(A,m)}onUrlChange(m){this._urlChangeListeners.push(m),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(A=>{this._notifyUrlChangeListeners(A.url,A.state)}))}_notifyUrlChangeListeners(m="",A){this._urlChangeListeners.forEach(G=>G(m,A))}subscribe(m,A,G){return this._subject.subscribe({next:m,error:A,complete:G})}}return _.normalizeQueryParams=Re,_.joinWithSlash=He,_.stripTrailingSlash=Ee,_.\u0275fac=function(m){return new(m||_)(f.LFG(Fe),f.LFG(Q))},_.\u0275prov=f.Yz7({token:_,factory:function(){return function Ye(){return new Se((0,f.LFG)(Fe),(0,f.LFG)(Q))}()},providedIn:"root"}),_})();function jt(_){return _.replace(/\/index.html$/,"")}var pt=(()=>((pt=pt||{})[pt.Decimal=0]="Decimal",pt[pt.Percent=1]="Percent",pt[pt.Currency=2]="Currency",pt[pt.Scientific=3]="Scientific",pt))(),At=(()=>((At=At||{})[At.Format=0]="Format",At[At.Standalone=1]="Standalone",At))(),Je=(()=>((Je=Je||{})[Je.Narrow=0]="Narrow",Je[Je.Abbreviated=1]="Abbreviated",Je[Je.Wide=2]="Wide",Je[Je.Short=3]="Short",Je))(),Dt=(()=>((Dt=Dt||{})[Dt.Short=0]="Short",Dt[Dt.Medium=1]="Medium",Dt[Dt.Long=2]="Long",Dt[Dt.Full=3]="Full",Dt))(),je=(()=>((je=je||{})[je.Decimal=0]="Decimal",je[je.Group=1]="Group",je[je.List=2]="List",je[je.PercentSign=3]="PercentSign",je[je.PlusSign=4]="PlusSign",je[je.MinusSign=5]="MinusSign",je[je.Exponential=6]="Exponential",je[je.SuperscriptingExponent=7]="SuperscriptingExponent",je[je.PerMille=8]="PerMille",je[je.Infinity=9]="Infinity",je[je.NaN=10]="NaN",je[je.TimeSeparator=11]="TimeSeparator",je[je.CurrencyDecimal=12]="CurrencyDecimal",je[je.CurrencyGroup=13]="CurrencyGroup",je))();function we(_,T){return Oe((0,f.cg1)(_)[f.wAp.DateFormat],T)}function Z(_,T){return Oe((0,f.cg1)(_)[f.wAp.TimeFormat],T)}function ce(_,T){return Oe((0,f.cg1)(_)[f.wAp.DateTimeFormat],T)}function Ue(_,T){const m=(0,f.cg1)(_),A=m[f.wAp.NumberSymbols][T];if(void 0===A){if(T===je.CurrencyDecimal)return m[f.wAp.NumberSymbols][je.Decimal];if(T===je.CurrencyGroup)return m[f.wAp.NumberSymbols][je.Group]}return A}function ne(_){if(!_[f.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${_[f.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Oe(_,T){for(let m=T;m>-1;m--)if(void 0!==_[m])return _[m];throw new Error("Locale data API: locale data undefined")}function at(_){const[T,m]=_.split(":");return{hours:+T,minutes:+m}}const H=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,N={},Ne=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var _e=(()=>((_e=_e||{})[_e.Short=0]="Short",_e[_e.ShortGMT=1]="ShortGMT",_e[_e.Long=2]="Long",_e[_e.Extended=3]="Extended",_e))(),ke=(()=>((ke=ke||{})[ke.FullYear=0]="FullYear",ke[ke.Month=1]="Month",ke[ke.Date=2]="Date",ke[ke.Hours=3]="Hours",ke[ke.Minutes=4]="Minutes",ke[ke.Seconds=5]="Seconds",ke[ke.FractionalSeconds=6]="FractionalSeconds",ke[ke.Day=7]="Day",ke))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Jt(_,T,m,A){let G=function K(_){if(ee(_))return _;if("number"==typeof _&&!isNaN(_))return new Date(_);if("string"==typeof _){if(_=_.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(_)){const[G,ve=1,Me=1]=_.split("-").map(Xe=>+Xe);return bt(G,ve-1,Me)}const m=parseFloat(_);if(!isNaN(_-m))return new Date(m);let A;if(A=_.match(H))return function P(_){const T=new Date(0);let m=0,A=0;const G=_[8]?T.setUTCFullYear:T.setFullYear,ve=_[8]?T.setUTCHours:T.setHours;_[9]&&(m=Number(_[9]+_[10]),A=Number(_[9]+_[11])),G.call(T,Number(_[1]),Number(_[2])-1,Number(_[3]));const Me=Number(_[4]||0)-m,Xe=Number(_[5]||0)-A,Yt=Number(_[6]||0),Gt=Math.floor(1e3*parseFloat("0."+(_[7]||0)));return ve.call(T,Me,Xe,Yt,Gt),T}(A)}const T=new Date(_);if(!ee(T))throw new Error(`Unable to convert "${_}" into a date`);return T}(_);T=ct(m,T)||T;let Xe,Me=[];for(;T;){if(Xe=Ne.exec(T),!Xe){Me.push(T);break}{Me=Me.concat(Xe.slice(1));const It=Me.pop();if(!It)break;T=It}}let Yt=G.getTimezoneOffset();A&&(Yt=wn(A,Yt),G=function J(_,T,m){const A=m?-1:1,G=_.getTimezoneOffset();return function jn(_,T){return(_=new Date(_.getTime())).setMinutes(_.getMinutes()+T),_}(_,A*(wn(T,G)-G))}(G,A,!0));let Gt="";return Me.forEach(It=>{const Rt=function Ln(_){if(lr[_])return lr[_];let T;switch(_){case"G":case"GG":case"GGG":T=ue(Ge.Eras,Je.Abbreviated);break;case"GGGG":T=ue(Ge.Eras,Je.Wide);break;case"GGGGG":T=ue(Ge.Eras,Je.Narrow);break;case"y":T=$e(ke.FullYear,1,0,!1,!0);break;case"yy":T=$e(ke.FullYear,2,0,!0,!0);break;case"yyy":T=$e(ke.FullYear,3,0,!1,!0);break;case"yyyy":T=$e(ke.FullYear,4,0,!1,!0);break;case"Y":T=br(1);break;case"YY":T=br(2,!0);break;case"YYY":T=br(3);break;case"YYYY":T=br(4);break;case"M":case"L":T=$e(ke.Month,1,1);break;case"MM":case"LL":T=$e(ke.Month,2,1);break;case"MMM":T=ue(Ge.Months,Je.Abbreviated);break;case"MMMM":T=ue(Ge.Months,Je.Wide);break;case"MMMMM":T=ue(Ge.Months,Je.Narrow);break;case"LLL":T=ue(Ge.Months,Je.Abbreviated,At.Standalone);break;case"LLLL":T=ue(Ge.Months,Je.Wide,At.Standalone);break;case"LLLLL":T=ue(Ge.Months,Je.Narrow,At.Standalone);break;case"w":T=Kn(1);break;case"ww":T=Kn(2);break;case"W":T=Kn(1,!0);break;case"d":T=$e(ke.Date,1);break;case"dd":T=$e(ke.Date,2);break;case"c":case"cc":T=$e(ke.Day,1);break;case"ccc":T=ue(Ge.Days,Je.Abbreviated,At.Standalone);break;case"cccc":T=ue(Ge.Days,Je.Wide,At.Standalone);break;case"ccccc":T=ue(Ge.Days,Je.Narrow,At.Standalone);break;case"cccccc":T=ue(Ge.Days,Je.Short,At.Standalone);break;case"E":case"EE":case"EEE":T=ue(Ge.Days,Je.Abbreviated);break;case"EEEE":T=ue(Ge.Days,Je.Wide);break;case"EEEEE":T=ue(Ge.Days,Je.Narrow);break;case"EEEEEE":T=ue(Ge.Days,Je.Short);break;case"a":case"aa":case"aaa":T=ue(Ge.DayPeriods,Je.Abbreviated);break;case"aaaa":T=ue(Ge.DayPeriods,Je.Wide);break;case"aaaaa":T=ue(Ge.DayPeriods,Je.Narrow);break;case"b":case"bb":case"bbb":T=ue(Ge.DayPeriods,Je.Abbreviated,At.Standalone,!0);break;case"bbbb":T=ue(Ge.DayPeriods,Je.Wide,At.Standalone,!0);break;case"bbbbb":T=ue(Ge.DayPeriods,Je.Narrow,At.Standalone,!0);break;case"B":case"BB":case"BBB":T=ue(Ge.DayPeriods,Je.Abbreviated,At.Format,!0);break;case"BBBB":T=ue(Ge.DayPeriods,Je.Wide,At.Format,!0);break;case"BBBBB":T=ue(Ge.DayPeriods,Je.Narrow,At.Format,!0);break;case"h":T=$e(ke.Hours,1,-12);break;case"hh":T=$e(ke.Hours,2,-12);break;case"H":T=$e(ke.Hours,1);break;case"HH":T=$e(ke.Hours,2);break;case"m":T=$e(ke.Minutes,1);break;case"mm":T=$e(ke.Minutes,2);break;case"s":T=$e(ke.Seconds,1);break;case"ss":T=$e(ke.Seconds,2);break;case"S":T=$e(ke.FractionalSeconds,1);break;case"SS":T=$e(ke.FractionalSeconds,2);break;case"SSS":T=$e(ke.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":T=De(_e.Short);break;case"ZZZZZ":T=De(_e.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":T=De(_e.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":T=De(_e.Long);break;default:return null}return lr[_]=T,T}(It);Gt+=Rt?Rt(G,m,Yt):"''"===It?"'":It.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Gt}function bt(_,T,m){const A=new Date(0);return A.setFullYear(_,T,m),A.setHours(0,0,0),A}function ct(_,T){const m=function bn(_){return(0,f.cg1)(_)[f.wAp.LocaleId]}(_);if(N[m]=N[m]||{},N[m][T])return N[m][T];let A="";switch(T){case"shortDate":A=we(_,Dt.Short);break;case"mediumDate":A=we(_,Dt.Medium);break;case"longDate":A=we(_,Dt.Long);break;case"fullDate":A=we(_,Dt.Full);break;case"shortTime":A=Z(_,Dt.Short);break;case"mediumTime":A=Z(_,Dt.Medium);break;case"longTime":A=Z(_,Dt.Long);break;case"fullTime":A=Z(_,Dt.Full);break;case"short":const G=ct(_,"shortTime"),ve=ct(_,"shortDate");A=Xt(ce(_,Dt.Short),[G,ve]);break;case"medium":const Me=ct(_,"mediumTime"),Xe=ct(_,"mediumDate");A=Xt(ce(_,Dt.Medium),[Me,Xe]);break;case"long":const Yt=ct(_,"longTime"),Gt=ct(_,"longDate");A=Xt(ce(_,Dt.Long),[Yt,Gt]);break;case"full":const It=ct(_,"fullTime"),Rt=ct(_,"fullDate");A=Xt(ce(_,Dt.Full),[It,Rt])}return A&&(N[m][T]=A),A}function Xt(_,T){return T&&(_=_.replace(/\{([^}]+)}/g,function(m,A){return null!=T&&A in T?T[A]:m})),_}function sn(_,T,m="-",A,G){let ve="";(_<0||G&&_<=0)&&(G?_=1-_:(_=-_,ve=m));let Me=String(_);for(;Me.length<T;)Me="0"+Me;return A&&(Me=Me.substr(Me.length-T)),ve+Me}function $e(_,T,m=0,A=!1,G=!1){return function(ve,Me){let Xe=function z(_,T){switch(_){case ke.FullYear:return T.getFullYear();case ke.Month:return T.getMonth();case ke.Date:return T.getDate();case ke.Hours:return T.getHours();case ke.Minutes:return T.getMinutes();case ke.Seconds:return T.getSeconds();case ke.FractionalSeconds:return T.getMilliseconds();case ke.Day:return T.getDay();default:throw new Error(`Unknown DateType value "${_}".`)}}(_,ve);if((m>0||Xe>-m)&&(Xe+=m),_===ke.Hours)0===Xe&&-12===m&&(Xe=12);else if(_===ke.FractionalSeconds)return function an(_,T){return sn(_,3).substr(0,T)}(Xe,T);const Yt=Ue(Me,je.MinusSign);return sn(Xe,T,Yt,A,G)}}function ue(_,T,m=At.Format,A=!1){return function(G,ve){return function k(_,T,m,A,G,ve){switch(m){case Ge.Months:return function Tt(_,T,m){const A=(0,f.cg1)(_),ve=Oe([A[f.wAp.MonthsFormat],A[f.wAp.MonthsStandalone]],T);return Oe(ve,m)}(T,G,A)[_.getMonth()];case Ge.Days:return function Kt(_,T,m){const A=(0,f.cg1)(_),ve=Oe([A[f.wAp.DaysFormat],A[f.wAp.DaysStandalone]],T);return Oe(ve,m)}(T,G,A)[_.getDay()];case Ge.DayPeriods:const Me=_.getHours(),Xe=_.getMinutes();if(ve){const Gt=function Ae(_){const T=(0,f.cg1)(_);return ne(T),(T[f.wAp.ExtraData][2]||[]).map(A=>"string"==typeof A?at(A):[at(A[0]),at(A[1])])}(T),It=function ye(_,T,m){const A=(0,f.cg1)(_);ne(A);const ve=Oe([A[f.wAp.ExtraData][0],A[f.wAp.ExtraData][1]],T)||[];return Oe(ve,m)||[]}(T,G,A),Rt=Gt.findIndex(mn=>{if(Array.isArray(mn)){const[Wt,un]=mn,Wr=Me>=Wt.hours&&Xe>=Wt.minutes,tr=Me<un.hours||Me===un.hours&&Xe<un.minutes;if(Wt.hours<un.hours){if(Wr&&tr)return!0}else if(Wr||tr)return!0}else if(mn.hours===Me&&mn.minutes===Xe)return!0;return!1});if(-1!==Rt)return It[Rt]}return function Vt(_,T,m){const A=(0,f.cg1)(_),ve=Oe([A[f.wAp.DayPeriodsFormat],A[f.wAp.DayPeriodsStandalone]],T);return Oe(ve,m)}(T,G,A)[Me<12?0:1];case Ge.Eras:return function rn(_,T){return Oe((0,f.cg1)(_)[f.wAp.Eras],T)}(T,A)[_.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${m}`)}}(G,ve,_,T,m,A)}}function De(_){return function(T,m,A){const G=-1*A,ve=Ue(m,je.MinusSign),Me=G>0?Math.floor(G/60):Math.ceil(G/60);switch(_){case _e.Short:return(G>=0?"+":"")+sn(Me,2,ve)+sn(Math.abs(G%60),2,ve);case _e.ShortGMT:return"GMT"+(G>=0?"+":"")+sn(Me,1,ve);case _e.Long:return"GMT"+(G>=0?"+":"")+sn(Me,2,ve)+":"+sn(Math.abs(G%60),2,ve);case _e.Extended:return 0===A?"Z":(G>=0?"+":"")+sn(Me,2,ve)+":"+sn(Math.abs(G%60),2,ve);default:throw new Error(`Unknown zone width "${_}"`)}}}function Br(_){return bt(_.getFullYear(),_.getMonth(),_.getDate()+(4-_.getDay()))}function Kn(_,T=!1){return function(m,A){let G;if(T){const ve=new Date(m.getFullYear(),m.getMonth(),1).getDay()-1,Me=m.getDate();G=1+Math.floor((Me+ve)/7)}else{const ve=Br(m),Me=function Wn(_){const T=bt(_,0,1).getDay();return bt(_,0,1+(T<=4?4:11)-T)}(ve.getFullYear()),Xe=ve.getTime()-Me.getTime();G=1+Math.round(Xe/6048e5)}return sn(G,_,Ue(A,je.MinusSign))}}function br(_,T=!1){return function(m,A){return sn(Br(m).getFullYear(),_,Ue(A,je.MinusSign),T)}}const lr={};function wn(_,T){_=_.replace(/:/g,"");const m=Date.parse("Jan 01, 1970 00:00:00 "+_)/6e4;return isNaN(m)?T:m}function ee(_){return _ instanceof Date&&!isNaN(_.valueOf())}const Ie=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ur(_){const T=parseInt(_);if(isNaN(T))throw new Error("Invalid integer literal when parsing "+_);return T}function jr(_,T){T=encodeURIComponent(T);for(const m of _.split(";")){const A=m.indexOf("="),[G,ve]=-1==A?[m,""]:[m.slice(0,A),m.slice(A+1)];if(G.trim()===T)return decodeURIComponent(ve)}return null}let fr=(()=>{class _{constructor(m,A,G,ve){this._iterableDiffers=m,this._keyValueDiffers=A,this._ngEl=G,this._renderer=ve,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(m){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof m?m.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(m){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof m?m.split(/\s+/):m,this._rawClass&&((0,f.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const m=this._iterableDiffer.diff(this._rawClass);m&&this._applyIterableChanges(m)}else if(this._keyValueDiffer){const m=this._keyValueDiffer.diff(this._rawClass);m&&this._applyKeyValueChanges(m)}}_applyKeyValueChanges(m){m.forEachAddedItem(A=>this._toggleClass(A.key,A.currentValue)),m.forEachChangedItem(A=>this._toggleClass(A.key,A.currentValue)),m.forEachRemovedItem(A=>{A.previousValue&&this._toggleClass(A.key,!1)})}_applyIterableChanges(m){m.forEachAddedItem(A=>{if("string"!=typeof A.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,f.AaK)(A.item)}`);this._toggleClass(A.item,!0)}),m.forEachRemovedItem(A=>this._toggleClass(A.item,!1))}_applyClasses(m){m&&(Array.isArray(m)||m instanceof Set?m.forEach(A=>this._toggleClass(A,!0)):Object.keys(m).forEach(A=>this._toggleClass(A,!!m[A])))}_removeClasses(m){m&&(Array.isArray(m)||m instanceof Set?m.forEach(A=>this._toggleClass(A,!1)):Object.keys(m).forEach(A=>this._toggleClass(A,!1)))}_toggleClass(m,A){(m=m.trim())&&m.split(/\s+/g).forEach(G=>{A?this._renderer.addClass(this._ngEl.nativeElement,G):this._renderer.removeClass(this._ngEl.nativeElement,G)})}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.ZZ4),f.Y36(f.aQg),f.Y36(f.SBq),f.Y36(f.Qsj))},_.\u0275dir=f.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),_})(),yr=(()=>{class _{constructor(m){this._viewContainerRef=m,this._componentRef=null,this._moduleRef=null}ngOnChanges(m){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const A=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(m.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Me=A.get(f.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Me.injector)}else this._moduleRef=null;const ve=(this._moduleRef?this._moduleRef.componentFactoryResolver:A.get(f._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(ve,this._viewContainerRef.length,A,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.s_b))},_.\u0275dir=f.lG2({type:_,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[f.TTD]}),_})();class On{constructor(T,m,A,G){this.$implicit=T,this.ngForOf=m,this.index=A,this.count=G}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 gn=(()=>{class _{constructor(m,A,G){this._viewContainer=m,this._template=A,this._differs=G,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(m){this._ngForOf=m,this._ngForOfDirty=!0}set ngForTrackBy(m){this._trackByFn=m}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(m){m&&(this._template=m)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const m=this._ngForOf;!this._differ&&m&&(this._differ=this._differs.find(m).create(this.ngForTrackBy))}if(this._differ){const m=this._differ.diff(this._ngForOf);m&&this._applyChanges(m)}}_applyChanges(m){const A=this._viewContainer;m.forEachOperation((G,ve,Me)=>{if(null==G.previousIndex)A.createEmbeddedView(this._template,new On(G.item,this._ngForOf,-1,-1),null===Me?void 0:Me);else if(null==Me)A.remove(null===ve?void 0:ve);else if(null!==ve){const Xe=A.get(ve);A.move(Xe,Me),wr(Xe,G)}});for(let G=0,ve=A.length;G<ve;G++){const Xe=A.get(G).context;Xe.index=G,Xe.count=ve,Xe.ngForOf=this._ngForOf}m.forEachIdentityChange(G=>{wr(A.get(G.currentIndex),G)})}static ngTemplateContextGuard(m,A){return!0}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.s_b),f.Y36(f.Rgc),f.Y36(f.ZZ4))},_.\u0275dir=f.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),_})();function wr(_,T){_.context.$implicit=T.item}let Zn=(()=>{class _{constructor(m,A){this._viewContainer=m,this._context=new Ht,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=A}set ngIf(m){this._context.$implicit=this._context.ngIf=m,this._updateView()}set ngIfThen(m){Hr("ngIfThen",m),this._thenTemplateRef=m,this._thenViewRef=null,this._updateView()}set ngIfElse(m){Hr("ngIfElse",m),this._elseTemplateRef=m,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(m,A){return!0}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.s_b),f.Y36(f.Rgc))},_.\u0275dir=f.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_})();class Ht{constructor(){this.$implicit=null,this.ngIf=null}}function Hr(_,T){if(T&&!T.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,f.AaK)(T)}'.`)}class Es{constructor(T,m){this._viewContainerRef=T,this._templateRef=m,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(T){T&&!this._created?this.create():!T&&this._created&&this.destroy()}}let fn=(()=>{class _{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(m){this._ngSwitch=m,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(m){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(m)}_matchCase(m){const A=m==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||A,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),A}_updateDefaultCases(m){if(this._defaultViews&&m!==this._defaultUsed){this._defaultUsed=m;for(let A=0;A<this._defaultViews.length;A++)this._defaultViews[A].enforceState(m)}}}return _.\u0275fac=function(m){return new(m||_)},_.\u0275dir=f.lG2({type:_,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),_})(),Pn=(()=>{class _{constructor(m,A,G){this.ngSwitch=G,G._addCase(),this._view=new Es(m,A)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.s_b),f.Y36(f.Rgc),f.Y36(fn,9))},_.\u0275dir=f.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_})(),vr=(()=>{class _{constructor(m,A,G){G._addDefault(new Es(m,A))}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.s_b),f.Y36(f.Rgc),f.Y36(fn,9))},_.\u0275dir=f.lG2({type:_,selectors:[["","ngSwitchDefault",""]]}),_})(),Zr=(()=>{class _{constructor(m){this._viewContainerRef=m,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(m){if(m.ngTemplateOutlet){const A=this._viewContainerRef;this._viewRef&&A.remove(A.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?A.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&m.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.s_b))},_.\u0275dir=f.lG2({type:_,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[f.TTD]}),_})();function Hn(_,T){return new f.vHH(2100,"")}class Ei{createSubscription(T,m){return T.subscribe({next:m,error:A=>{throw A}})}dispose(T){T.unsubscribe()}onDestroy(T){T.unsubscribe()}}class Vr{createSubscription(T,m){return T.then(m,A=>{throw A})}dispose(T){}onDestroy(T){}}const $r=new Vr,Jr=new Ei;let Bs=(()=>{class _{constructor(m){this._ref=m,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(m){return this._obj?m!==this._obj?(this._dispose(),this.transform(m)):this._latestValue:(m&&this._subscribe(m),this._latestValue)}_subscribe(m){this._obj=m,this._strategy=this._selectStrategy(m),this._subscription=this._strategy.createSubscription(m,A=>this._updateLatestValue(m,A))}_selectStrategy(m){if((0,f.QGY)(m))return $r;if((0,f.F4k)(m))return Jr;throw Hn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(m,A){m===this._obj&&(this._latestValue=A,this._ref.markForCheck())}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.sBO,16))},_.\u0275pipe=f.Yjl({name:"async",type:_,pure:!1}),_})();const fo=new f.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ei=(()=>{class _{constructor(m,A){this.locale=m,this.defaultTimezone=A}transform(m,A="mediumDate",G,ve){var Me;if(null==m||""===m||m!=m)return null;try{return Jt(m,A,ve||this.locale,null!==(Me=null!=G?G:this.defaultTimezone)&&void 0!==Me?Me:void 0)}catch(Xe){throw Hn()}}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.soG,16),f.Y36(fo,24))},_.\u0275pipe=f.Yjl({name:"date",type:_,pure:!0}),_})(),Mr=(()=>{class _{transform(m){return JSON.stringify(m,null,2)}}return _.\u0275fac=function(m){return new(m||_)},_.\u0275pipe=f.Yjl({name:"json",type:_,pure:!1}),_})(),si=(()=>{class _{constructor(m){this._locale=m}transform(m,A,G){if(!function _r(_){return!(null==_||""===_||_!=_)}(m))return null;G=G||this._locale;try{return function St(_,T,m){return function mr(_,T,m,A,G,ve,Me=!1){let Xe="",Yt=!1;if(isFinite(_)){let Gt=function ir(_){let A,G,ve,Me,Xe,T=Math.abs(_)+"",m=0;for((G=T.indexOf("."))>-1&&(T=T.replace(".","")),(ve=T.search(/e/i))>0?(G<0&&(G=ve),G+=+T.slice(ve+1),T=T.substring(0,ve)):G<0&&(G=T.length),ve=0;"0"===T.charAt(ve);ve++);if(ve===(Xe=T.length))A=[0],G=1;else{for(Xe--;"0"===T.charAt(Xe);)Xe--;for(G-=ve,A=[],Me=0;ve<=Xe;ve++,Me++)A[Me]=Number(T.charAt(ve))}return G>22&&(A=A.splice(0,21),m=G-1,G=1),{digits:A,exponent:m,integerLen:G}}(_);Me&&(Gt=function qn(_){if(0===_.digits[0])return _;const T=_.digits.length-_.integerLen;return _.exponent?_.exponent+=2:(0===T?_.digits.push(0,0):1===T&&_.digits.push(0),_.integerLen+=2),_}(Gt));let It=T.minInt,Rt=T.minFrac,mn=T.maxFrac;if(ve){const Kr=ve.match(Ie);if(null===Kr)throw new Error(`${ve} is not a valid digit info`);const Gs=Kr[1],Yr=Kr[3],Ws=Kr[5];null!=Gs&&(It=ur(Gs)),null!=Yr&&(Rt=ur(Yr)),null!=Ws?mn=ur(Ws):null!=Yr&&Rt>mn&&(mn=Rt)}!function pn(_,T,m){if(T>m)throw new Error(`The minimum number of digits after fraction (${T}) is higher than the maximum (${m}).`);let A=_.digits,G=A.length-_.integerLen;const ve=Math.min(Math.max(T,G),m);let Me=ve+_.integerLen,Xe=A[Me];if(Me>0){A.splice(Math.max(_.integerLen,Me));for(let Rt=Me;Rt<A.length;Rt++)A[Rt]=0}else{G=Math.max(0,G),_.integerLen=1,A.length=Math.max(1,Me=ve+1),A[0]=0;for(let Rt=1;Rt<Me;Rt++)A[Rt]=0}if(Xe>=5)if(Me-1<0){for(let Rt=0;Rt>Me;Rt--)A.unshift(0),_.integerLen++;A.unshift(1),_.integerLen++}else A[Me-1]++;for(;G<Math.max(0,ve);G++)A.push(0);let Yt=0!==ve;const Gt=T+_.integerLen,It=A.reduceRight(function(Rt,mn,Wt,un){return un[Wt]=(mn+=Rt)<10?mn:mn-10,Yt&&(0===un[Wt]&&Wt>=Gt?un.pop():Yt=!1),mn>=10?1:0},0);It&&(A.unshift(It),_.integerLen++)}(Gt,Rt,mn);let Wt=Gt.digits,un=Gt.integerLen;const Wr=Gt.exponent;let tr=[];for(Yt=Wt.every(Kr=>!Kr);un<It;un++)Wt.unshift(0);for(;un<0;un++)Wt.unshift(0);un>0?tr=Wt.splice(un,Wt.length):(tr=Wt,Wt=[0]);const ft=[];for(Wt.length>=T.lgSize&&ft.unshift(Wt.splice(-T.lgSize,Wt.length).join(""));Wt.length>T.gSize;)ft.unshift(Wt.splice(-T.gSize,Wt.length).join(""));Wt.length&&ft.unshift(Wt.join("")),Xe=ft.join(Ue(m,A)),tr.length&&(Xe+=Ue(m,G)+tr.join("")),Wr&&(Xe+=Ue(m,je.Exponential)+"+"+Wr)}else Xe=Ue(m,je.Infinity);return Xe=_<0&&!Yt?T.negPre+Xe+T.negSuf:T.posPre+Xe+T.posSuf,Xe}(_,function en(_,T="-"){const m={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},A=_.split(";"),G=A[0],ve=A[1],Me=-1!==G.indexOf(".")?G.split("."):[G.substring(0,G.lastIndexOf("0")+1),G.substring(G.lastIndexOf("0")+1)],Xe=Me[0],Yt=Me[1]||"";m.posPre=Xe.substr(0,Xe.indexOf("#"));for(let It=0;It<Yt.length;It++){const Rt=Yt.charAt(It);"0"===Rt?m.minFrac=m.maxFrac=It+1:"#"===Rt?m.maxFrac=It+1:m.posSuf+=Rt}const Gt=Xe.split(",");if(m.gSize=Gt[1]?Gt[1].length:0,m.lgSize=Gt[2]||Gt[1]?(Gt[2]||Gt[1]).length:0,ve){const It=G.length-m.posPre.length-m.posSuf.length,Rt=ve.indexOf("#");m.negPre=ve.substr(0,Rt).replace(/'/g,""),m.negSuf=ve.substr(Rt+It).replace(/'/g,"")}else m.negPre=T+m.posPre,m.negSuf=m.posSuf;return m}(function mt(_,T){return(0,f.cg1)(_)[f.wAp.NumberFormats][T]}(T,pt.Decimal),Ue(T,je.MinusSign)),T,je.Group,je.Decimal,m)}(function er(_){if("string"==typeof _&&!isNaN(Number(_)-parseFloat(_)))return Number(_);if("number"!=typeof _)throw new Error(`${_} is not a number`);return _}(m),G,A)}catch(ve){throw Hn()}}}return _.\u0275fac=function(m){return new(m||_)(f.Y36(f.soG,16))},_.\u0275pipe=f.Yjl({name:"number",type:_,pure:!0}),_})();let Vs=(()=>{class _{}return _.\u0275fac=function(m){return new(m||_)},_.\u0275mod=f.oAB({type:_}),_.\u0275inj=f.cJS({}),_})();const Xr="browser";function Tn(_){return _===Xr}let zr=(()=>{class _{}return _.\u0275prov=(0,f.Yz7)({token:_,providedIn:"root",factory:()=>new Gr((0,f.LFG)(Y),window)}),_})();class Gr{constructor(T,m){this.document=T,this.window=m,this.offset=()=>[0,0]}setOffset(T){this.offset=Array.isArray(T)?()=>T:T}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(T){this.supportsScrolling()&&this.window.scrollTo(T[0],T[1])}scrollToAnchor(T){if(!this.supportsScrolling())return;const m=function Ts(_,T){const m=_.getElementById(T)||_.getElementsByName(T)[0];if(m)return m;if("function"==typeof _.createTreeWalker&&_.body&&(_.body.createShadowRoot||_.body.attachShadow)){const A=_.createTreeWalker(_.body,NodeFilter.SHOW_ELEMENT);let G=A.currentNode;for(;G;){const ve=G.shadowRoot;if(ve){const Me=ve.getElementById(T)||ve.querySelector(`[name="${T}"]`);if(Me)return Me}G=A.nextNode()}}return null}(this.document,T);m&&(this.scrollToElement(m),m.focus())}setHistoryScrollRestoration(T){if(this.supportScrollRestoration()){const m=this.window.history;m&&m.scrollRestoration&&(m.scrollRestoration=T)}}scrollToElement(T){const m=T.getBoundingClientRect(),A=m.left+this.window.pageXOffset,G=m.top+this.window.pageYOffset,ve=this.offset();this.window.scrollTo(A-ve[0],G-ve[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const T=zs(this.window.history)||zs(Object.getPrototypeOf(this.window.history));return!(!T||!T.writable&&!T.set)}catch(T){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(T){return!1}}}function zs(_){return Object.getOwnPropertyDescriptor(_,"scrollRestoration")}class Bt{}},520:(Ze,pe,S)=>{S.d(pe,{JF:()=>at,TP:()=>bn,WM:()=>j,eN:()=>je});var f=S(9808),y=S(5e3),se=S(1086),X=S(2916),F=S(1406),x=S(2198),Y=S(4850);class Q{}class ae{}class j{constructor(H){this.normalizedNames=new Map,this.lazyUpdate=null,H?this.lazyInit="string"==typeof H?()=>{this.headers=new Map,H.split("\n").forEach(N=>{const Ne=N.indexOf(":");if(Ne>0){const _e=N.slice(0,Ne),ke=_e.toLowerCase(),Ge=N.slice(Ne+1).trim();this.maybeSetNormalizedName(_e,ke),this.headers.has(ke)?this.headers.get(ke).push(Ge):this.headers.set(ke,[Ge])}})}:()=>{this.headers=new Map,Object.keys(H).forEach(N=>{let Ne=H[N];const _e=N.toLowerCase();"string"==typeof Ne&&(Ne=[Ne]),Ne.length>0&&(this.headers.set(_e,Ne),this.maybeSetNormalizedName(N,_e))})}:this.headers=new Map}has(H){return this.init(),this.headers.has(H.toLowerCase())}get(H){this.init();const N=this.headers.get(H.toLowerCase());return N&&N.length>0?N[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(H){return this.init(),this.headers.get(H.toLowerCase())||null}append(H,N){return this.clone({name:H,value:N,op:"a"})}set(H,N){return this.clone({name:H,value:N,op:"s"})}delete(H,N){return this.clone({name:H,value:N,op:"d"})}maybeSetNormalizedName(H,N){this.normalizedNames.has(N)||this.normalizedNames.set(N,H)}init(){this.lazyInit&&(this.lazyInit instanceof j?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(H=>this.applyUpdate(H)),this.lazyUpdate=null))}copyFrom(H){H.init(),Array.from(H.headers.keys()).forEach(N=>{this.headers.set(N,H.headers.get(N)),this.normalizedNames.set(N,H.normalizedNames.get(N))})}clone(H){const N=new j;return N.lazyInit=this.lazyInit&&this.lazyInit instanceof j?this.lazyInit:this,N.lazyUpdate=(this.lazyUpdate||[]).concat([H]),N}applyUpdate(H){const N=H.name.toLowerCase();switch(H.op){case"a":case"s":let Ne=H.value;if("string"==typeof Ne&&(Ne=[Ne]),0===Ne.length)return;this.maybeSetNormalizedName(H.name,N);const _e=("a"===H.op?this.headers.get(N):void 0)||[];_e.push(...Ne),this.headers.set(N,_e);break;case"d":const ke=H.value;if(ke){let Ge=this.headers.get(N);if(!Ge)return;Ge=Ge.filter(Jt=>-1===ke.indexOf(Jt)),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(H){this.init(),Array.from(this.normalizedNames.keys()).forEach(N=>H(this.normalizedNames.get(N),this.headers.get(N)))}}class q{encodeKey(H){return Ee(H)}encodeValue(H){return Ee(H)}decodeKey(H){return decodeURIComponent(H)}decodeValue(H){return decodeURIComponent(H)}}const he=/%(\d[a-f0-9])/gi,He={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ee(de){return encodeURIComponent(de).replace(he,(H,N)=>{var Ne;return null!==(Ne=He[N])&&void 0!==Ne?Ne:H})}function Re(de){return`${de}`}class Fe{constructor(H={}){if(this.updates=null,this.cloneFrom=null,this.encoder=H.encoder||new q,H.fromString){if(H.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $(de,H){const N=new Map;return de.length>0&&de.replace(/^\?/,"").split("&").forEach(_e=>{const ke=_e.indexOf("="),[Ge,Jt]=-1==ke?[H.decodeKey(_e),""]:[H.decodeKey(_e.slice(0,ke)),H.decodeValue(_e.slice(ke+1))],bt=N.get(Ge)||[];bt.push(Jt),N.set(Ge,bt)}),N}(H.fromString,this.encoder)}else H.fromObject?(this.map=new Map,Object.keys(H.fromObject).forEach(N=>{const Ne=H.fromObject[N];this.map.set(N,Array.isArray(Ne)?Ne:[Ne])})):this.map=null}has(H){return this.init(),this.map.has(H)}get(H){this.init();const N=this.map.get(H);return N?N[0]:null}getAll(H){return this.init(),this.map.get(H)||null}keys(){return this.init(),Array.from(this.map.keys())}append(H,N){return this.clone({param:H,value:N,op:"a"})}appendAll(H){const N=[];return Object.keys(H).forEach(Ne=>{const _e=H[Ne];Array.isArray(_e)?_e.forEach(ke=>{N.push({param:Ne,value:ke,op:"a"})}):N.push({param:Ne,value:_e,op:"a"})}),this.clone(N)}set(H,N){return this.clone({param:H,value:N,op:"s"})}delete(H,N){return this.clone({param:H,value:N,op:"d"})}toString(){return this.init(),this.keys().map(H=>{const N=this.encoder.encodeKey(H);return this.map.get(H).map(Ne=>N+"="+this.encoder.encodeValue(Ne)).join("&")}).filter(H=>""!==H).join("&")}clone(H){const N=new Fe({encoder:this.encoder});return N.cloneFrom=this.cloneFrom||this,N.updates=(this.updates||[]).concat(H),N}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(H=>this.map.set(H,this.cloneFrom.map.get(H))),this.updates.forEach(H=>{switch(H.op){case"a":case"s":const N=("a"===H.op?this.map.get(H.param):void 0)||[];N.push(Re(H.value)),this.map.set(H.param,N);break;case"d":if(void 0===H.value){this.map.delete(H.param);break}{let Ne=this.map.get(H.param)||[];const _e=Ne.indexOf(Re(H.value));-1!==_e&&Ne.splice(_e,1),Ne.length>0?this.map.set(H.param,Ne):this.map.delete(H.param)}}}),this.cloneFrom=this.updates=null)}}class me{constructor(){this.map=new Map}set(H,N){return this.map.set(H,N),this}get(H){return this.map.has(H)||this.map.set(H,H.defaultValue()),this.map.get(H)}delete(H){return this.map.delete(H),this}has(H){return this.map.has(H)}keys(){return this.map.keys()}}function Be(de){return"undefined"!=typeof ArrayBuffer&&de instanceof ArrayBuffer}function Se(de){return"undefined"!=typeof Blob&&de instanceof Blob}function Ye(de){return"undefined"!=typeof FormData&&de instanceof FormData}class jt{constructor(H,N,Ne,_e){let ke;if(this.url=N,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=H.toUpperCase(),function Le(de){switch(de){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||_e?(this.body=void 0!==Ne?Ne:null,ke=_e):ke=Ne,ke&&(this.reportProgress=!!ke.reportProgress,this.withCredentials=!!ke.withCredentials,ke.responseType&&(this.responseType=ke.responseType),ke.headers&&(this.headers=ke.headers),ke.context&&(this.context=ke.context),ke.params&&(this.params=ke.params)),this.headers||(this.headers=new j),this.context||(this.context=new me),this.params){const Ge=this.params.toString();if(0===Ge.length)this.urlWithParams=N;else{const Jt=N.indexOf("?");this.urlWithParams=N+(-1===Jt?"?":Jt<N.length-1?"&":"")+Ge}}else this.params=new Fe,this.urlWithParams=N}serializeBody(){return null===this.body?null:Be(this.body)||Se(this.body)||Ye(this.body)||function Mt(de){return"undefined"!=typeof URLSearchParams&&de instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Fe?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ye(this.body)?null:Se(this.body)?this.body.type||null:Be(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Fe?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(H={}){var N;const Ne=H.method||this.method,_e=H.url||this.url,ke=H.responseType||this.responseType,Ge=void 0!==H.body?H.body:this.body,Jt=void 0!==H.withCredentials?H.withCredentials:this.withCredentials,bt=void 0!==H.reportProgress?H.reportProgress:this.reportProgress;let ct=H.headers||this.headers,Xt=H.params||this.params;const sn=null!==(N=H.context)&&void 0!==N?N:this.context;return void 0!==H.setHeaders&&(ct=Object.keys(H.setHeaders).reduce((an,$e)=>an.set($e,H.setHeaders[$e]),ct)),H.setParams&&(Xt=Object.keys(H.setParams).reduce((an,$e)=>an.set($e,H.setParams[$e]),Xt)),new jt(Ne,_e,Ge,{params:Xt,headers:ct,context:sn,reportProgress:bt,responseType:ke,withCredentials:Jt})}}var xt=(()=>((xt=xt||{})[xt.Sent=0]="Sent",xt[xt.UploadProgress=1]="UploadProgress",xt[xt.ResponseHeader=2]="ResponseHeader",xt[xt.DownloadProgress=3]="DownloadProgress",xt[xt.Response=4]="Response",xt[xt.User=5]="User",xt))();class pt{constructor(H,N=200,Ne="OK"){this.headers=H.headers||new j,this.status=void 0!==H.status?H.status:N,this.statusText=H.statusText||Ne,this.url=H.url||null,this.ok=this.status>=200&&this.status<300}}class Pt extends pt{constructor(H={}){super(H),this.type=xt.ResponseHeader}clone(H={}){return new Pt({headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class At extends pt{constructor(H={}){super(H),this.type=xt.Response,this.body=void 0!==H.body?H.body:null}clone(H={}){return new At({body:void 0!==H.body?H.body:this.body,headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class Je extends pt{constructor(H){super(H,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${H.url||"(unknown url)"}`:`Http failure response for ${H.url||"(unknown url)"}: ${H.status} ${H.statusText}`,this.error=H.error||null}}function Dt(de,H){return{body:H,headers:de.headers,context:de.context,observe:de.observe,params:de.params,reportProgress:de.reportProgress,responseType:de.responseType,withCredentials:de.withCredentials}}let je=(()=>{class de{constructor(N){this.handler=N}request(N,Ne,_e={}){let ke;if(N instanceof jt)ke=N;else{let bt,ct;bt=_e.headers instanceof j?_e.headers:new j(_e.headers),_e.params&&(ct=_e.params instanceof Fe?_e.params:new Fe({fromObject:_e.params})),ke=new jt(N,Ne,void 0!==_e.body?_e.body:null,{headers:bt,context:_e.context,params:ct,reportProgress:_e.reportProgress,responseType:_e.responseType||"json",withCredentials:_e.withCredentials})}const Ge=(0,se.of)(ke).pipe((0,F.b)(bt=>this.handler.handle(bt)));if(N instanceof jt||"events"===_e.observe)return Ge;const Jt=Ge.pipe((0,x.h)(bt=>bt instanceof At));switch(_e.observe||"body"){case"body":switch(ke.responseType){case"arraybuffer":return Jt.pipe((0,Y.U)(bt=>{if(null!==bt.body&&!(bt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return bt.body}));case"blob":return Jt.pipe((0,Y.U)(bt=>{if(null!==bt.body&&!(bt.body instanceof Blob))throw new Error("Response is not a Blob.");return bt.body}));case"text":return Jt.pipe((0,Y.U)(bt=>{if(null!==bt.body&&"string"!=typeof bt.body)throw new Error("Response is not a string.");return bt.body}));default:return Jt.pipe((0,Y.U)(bt=>bt.body))}case"response":return Jt;default:throw new Error(`Unreachable: unhandled observe type ${_e.observe}}`)}}delete(N,Ne={}){return this.request("DELETE",N,Ne)}get(N,Ne={}){return this.request("GET",N,Ne)}head(N,Ne={}){return this.request("HEAD",N,Ne)}jsonp(N,Ne){return this.request("JSONP",N,{params:(new Fe).append(Ne,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(N,Ne={}){return this.request("OPTIONS",N,Ne)}patch(N,Ne,_e={}){return this.request("PATCH",N,Dt(_e,Ne))}post(N,Ne,_e={}){return this.request("POST",N,Dt(_e,Ne))}put(N,Ne,_e={}){return this.request("PUT",N,Dt(_e,Ne))}}return de.\u0275fac=function(N){return new(N||de)(y.LFG(Q))},de.\u0275prov=y.Yz7({token:de,factory:de.\u0275fac}),de})();class Dn{constructor(H,N){this.next=H,this.interceptor=N}handle(H){return this.interceptor.intercept(H,this.next)}}const bn=new y.OlP("HTTP_INTERCEPTORS");let Vt=(()=>{class de{intercept(N,Ne){return Ne.handle(N)}}return de.\u0275fac=function(N){return new(N||de)},de.\u0275prov=y.Yz7({token:de,factory:de.\u0275fac}),de})();const Ue=/^\)\]\}',?\n/;let ie=(()=>{class de{constructor(N){this.xhrFactory=N}handle(N){if("JSONP"===N.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new X.y(Ne=>{const _e=this.xhrFactory.build();if(_e.open(N.method,N.urlWithParams),N.withCredentials&&(_e.withCredentials=!0),N.headers.forEach(($e,z)=>_e.setRequestHeader($e,z.join(","))),N.headers.has("Accept")||_e.setRequestHeader("Accept","application/json, text/plain, */*"),!N.headers.has("Content-Type")){const $e=N.detectContentTypeHeader();null!==$e&&_e.setRequestHeader("Content-Type",$e)}if(N.responseType){const $e=N.responseType.toLowerCase();_e.responseType="json"!==$e?$e:"text"}const ke=N.serializeBody();let Ge=null;const Jt=()=>{if(null!==Ge)return Ge;const $e=_e.statusText||"OK",z=new j(_e.getAllResponseHeaders()),ue=function mt(de){return"responseURL"in de&&de.responseURL?de.responseURL:/^X-Request-URL:/m.test(de.getAllResponseHeaders())?de.getResponseHeader("X-Request-URL"):null}(_e)||N.url;return Ge=new Pt({headers:z,status:_e.status,statusText:$e,url:ue}),Ge},bt=()=>{let{headers:$e,status:z,statusText:ue,url:k}=Jt(),De=null;204!==z&&(De=void 0===_e.response?_e.responseText:_e.response),0===z&&(z=De?200:0);let Lt=z>=200&&z<300;if("json"===N.responseType&&"string"==typeof De){const An=De;De=De.replace(Ue,"");try{De=""!==De?JSON.parse(De):null}catch(Wn){De=An,Lt&&(Lt=!1,De={error:Wn,text:De})}}Lt?(Ne.next(new At({body:De,headers:$e,status:z,statusText:ue,url:k||void 0})),Ne.complete()):Ne.error(new Je({error:De,headers:$e,status:z,statusText:ue,url:k||void 0}))},ct=$e=>{const{url:z}=Jt(),ue=new Je({error:$e,status:_e.status||0,statusText:_e.statusText||"Unknown Error",url:z||void 0});Ne.error(ue)};let Xt=!1;const sn=$e=>{Xt||(Ne.next(Jt()),Xt=!0);let z={type:xt.DownloadProgress,loaded:$e.loaded};$e.lengthComputable&&(z.total=$e.total),"text"===N.responseType&&!!_e.responseText&&(z.partialText=_e.responseText),Ne.next(z)},an=$e=>{let z={type:xt.UploadProgress,loaded:$e.loaded};$e.lengthComputable&&(z.total=$e.total),Ne.next(z)};return _e.addEventListener("load",bt),_e.addEventListener("error",ct),_e.addEventListener("timeout",ct),_e.addEventListener("abort",ct),N.reportProgress&&(_e.addEventListener("progress",sn),null!==ke&&_e.upload&&_e.upload.addEventListener("progress",an)),_e.send(ke),Ne.next({type:xt.Sent}),()=>{_e.removeEventListener("error",ct),_e.removeEventListener("abort",ct),_e.removeEventListener("load",bt),_e.removeEventListener("timeout",ct),N.reportProgress&&(_e.removeEventListener("progress",sn),null!==ke&&_e.upload&&_e.upload.removeEventListener("progress",an)),_e.readyState!==_e.DONE&&_e.abort()}})}}return de.\u0275fac=function(N){return new(N||de)(y.LFG(f.JF))},de.\u0275prov=y.Yz7({token:de,factory:de.\u0275fac}),de})();const fe=new y.OlP("XSRF_COOKIE_NAME"),U=new y.OlP("XSRF_HEADER_NAME");class re{}let te=(()=>{class de{constructor(N,Ne,_e){this.doc=N,this.platform=Ne,this.cookieName=_e,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,f.Mx)(N,this.cookieName),this.lastCookieString=N),this.lastToken}}return de.\u0275fac=function(N){return new(N||de)(y.LFG(f.K0),y.LFG(y.Lbi),y.LFG(fe))},de.\u0275prov=y.Yz7({token:de,factory:de.\u0275fac}),de})(),ne=(()=>{class de{constructor(N,Ne){this.tokenService=N,this.headerName=Ne}intercept(N,Ne){const _e=N.url.toLowerCase();if("GET"===N.method||"HEAD"===N.method||_e.startsWith("http://")||_e.startsWith("https://"))return Ne.handle(N);const ke=this.tokenService.getToken();return null!==ke&&!N.headers.has(this.headerName)&&(N=N.clone({headers:N.headers.set(this.headerName,ke)})),Ne.handle(N)}}return de.\u0275fac=function(N){return new(N||de)(y.LFG(re),y.LFG(U))},de.\u0275prov=y.Yz7({token:de,factory:de.\u0275fac}),de})(),Ae=(()=>{class de{constructor(N,Ne){this.backend=N,this.injector=Ne,this.chain=null}handle(N){if(null===this.chain){const Ne=this.injector.get(bn,[]);this.chain=Ne.reduceRight((_e,ke)=>new Dn(_e,ke),this.backend)}return this.chain.handle(N)}}return de.\u0275fac=function(N){return new(N||de)(y.LFG(ae),y.LFG(y.zs3))},de.\u0275prov=y.Yz7({token:de,factory:de.\u0275fac}),de})(),Oe=(()=>{class de{static disable(){return{ngModule:de,providers:[{provide:ne,useClass:Vt}]}}static withOptions(N={}){return{ngModule:de,providers:[N.cookieName?{provide:fe,useValue:N.cookieName}:[],N.headerName?{provide:U,useValue:N.headerName}:[]]}}}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=y.oAB({type:de}),de.\u0275inj=y.cJS({providers:[ne,{provide:bn,useExisting:ne,multi:!0},{provide:re,useClass:te},{provide:fe,useValue:"XSRF-TOKEN"},{provide:U,useValue:"X-XSRF-TOKEN"}]}),de})(),at=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=y.oAB({type:de}),de.\u0275inj=y.cJS({providers:[je,{provide:Q,useClass:Ae},ie,{provide:ae,useExisting:ie}],imports:[[Oe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),de})()},5e3:(Ze,pe,S)=>{S.d(pe,{$8M:()=>Ns,$Z:()=>Bf,AFp:()=>ig,ALo:()=>Sp,AaK:()=>Q,AsE:()=>mu,BQk:()=>Ta,CHM:()=>wi,CRH:()=>Lp,CZH:()=>Vu,CqO:()=>Hf,DdM:()=>gp,EJc:()=>nC,EiD:()=>jc,EpF:()=>jf,F$t:()=>Gf,F4k:()=>Uf,FYo:()=>ap,FiY:()=>Co,G48:()=>CC,Gf:()=>Fp,GfV:()=>lp,GkF:()=>su,Gpc:()=>q,Gre:()=>Eh,HOy:()=>yu,Hsn:()=>Wf,IIB:()=>JE,Ikx:()=>vu,JOm:()=>gs,JVY:()=>hm,L6k:()=>pm,LAX:()=>mm,LFG:()=>Xn,LSH:()=>sl,Lbi:()=>lg,MAs:()=>Mf,NdJ:()=>ou,O4$:()=>Rn,OlP:()=>Fn,Oqu:()=>gu,PXZ:()=>mC,Q6J:()=>tu,QGY:()=>iu,Qsj:()=>tE,R0b:()=>as,RDi:()=>zs,Rgc:()=>Wo,SBq:()=>Vo,Sil:()=>sC,Suo:()=>kp,TTD:()=>_r,TgZ:()=>Ca,Tol:()=>ah,Udp:()=>fu,VKq:()=>mp,VLi:()=>hC,W1O:()=>Hp,WFA:()=>au,WLB:()=>yp,XFs:()=>ye,Xpm:()=>Br,Y36:()=>ko,YKP:()=>dp,YNc:()=>Sf,Yjl:()=>P,Yz7:()=>we,ZZ4:()=>tc,_Bn:()=>sp,_UZ:()=>ru,_Vd:()=>Ra,_c5:()=>BC,_uU:()=>ph,aQ5:()=>Ng,aQg:()=>nc,c2e:()=>cg,cJS:()=>ce,cg1:()=>Du,d8E:()=>_u,dDg:()=>hg,deG:()=>Rg,dqk:()=>ct,eBb:()=>gm,eFA:()=>mg,ekj:()=>hu,f3M:()=>bc,g9A:()=>ag,gxx:()=>va,h0i:()=>lo,hGG:()=>jC,hYB:()=>du,hij:()=>Ma,i9L:()=>Fg,iGM:()=>Np,ifc:()=>_e,ip1:()=>sg,kEZ:()=>vp,kL8:()=>Ph,kYT:()=>jn,kcU:()=>Dr,l5B:()=>_p,lG2:()=>K,lcZ:()=>Mp,mCW:()=>To,n5z:()=>Pi,n_E:()=>Fa,oAB:()=>wn,oJD:()=>Uc,oxw:()=>zf,pB0:()=>ym,pfw:()=>eC,q3G:()=>kn,qLn:()=>la,qOj:()=>Kl,qZA:()=>ba,qbA:()=>Dp,qzn:()=>ji,r_U:()=>XE,s9C:()=>uu,sBO:()=>bC,sIi:()=>No,s_b:()=>La,soG:()=>zu,tBr:()=>ra,tb:()=>ug,tp0:()=>bo,uIk:()=>ql,vHH:()=>Ee,vpe:()=>Ds,wAp:()=>vt,xi3:()=>Ap,xp6:()=>_d,yhl:()=>Pc,ynx:()=>wa,z2F:()=>Qu,z3N:()=>Fs,zSh:()=>Vl,zs3:()=>rs});var f=S(8929),y=S(2654),se=S(2916),X=S(6787),F=S(2474);function x(e){for(let t in e)if(e[t]===x)return t;throw Error("Could not find renamed property on target object.")}function Y(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Q(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Q).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 ae(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const j=x({__forward_ref__:x});function q(e){return e.__forward_ref__=q,e.toString=function(){return Q(this())},e}function $(e){return he(e)?e():e}function he(e){return"function"==typeof e&&e.hasOwnProperty(j)&&e.__forward_ref__===q}class Ee extends Error{constructor(t,n){super(function Re(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Fe(e){return"string"==typeof e?e:null==e?"":String(e)}function ze(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Fe(e)}function Se(e,t){const n=t?` in ${t}`:"";throw new Ee(-201,`No provider for ${ze(e)} found${n}`)}function Kt(e,t){null==e&&function Tt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function we(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ue(e){return mt(e,re)||mt(e,ne)}function mt(e,t){return e.hasOwnProperty(t)?e[t]:null}function U(e){return e&&(e.hasOwnProperty(te)||e.hasOwnProperty(Ae))?e[te]:null}const re=x({\u0275prov:x}),te=x({\u0275inj:x}),ne=x({ngInjectableDef:x}),Ae=x({ngInjectorDef:x});var ye=(()=>((ye=ye||{})[ye.Default=0]="Default",ye[ye.Host=1]="Host",ye[ye.Self=2]="Self",ye[ye.SkipSelf=4]="SkipSelf",ye[ye.Optional=8]="Optional",ye))();let Qe;function at(e){const t=Qe;return Qe=e,t}function lt(e,t,n){const r=Ue(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ye.Optional?null:void 0!==t?t:void Se(Q(e),"Injector")}function de(e){return{toString:e}.toString()}var H=(()=>((H=H||{})[H.OnPush=0]="OnPush",H[H.Default=1]="Default",H))(),_e=(()=>{return(e=_e||(_e={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",_e;var e})();const ke="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Jt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ct=ke||"undefined"!=typeof global&&global||Ge||Jt,an={},$e=[],z=x({\u0275cmp:x}),ue=x({\u0275dir:x}),k=x({\u0275pipe:x}),De=x({\u0275mod:x}),Lt=x({\u0275fac:x}),An=x({__NG_ELEMENT_ID__:x});let Wn=0;function Br(e){return de(()=>{const n={},r={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===H.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||_e.Emulated,id:"c",styles:e.styles||$e,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,o=e.pipes;return r.id+=Wn++,r.inputs=J(e.inputs,n),r.outputs=J(e.outputs),i&&i.forEach(d=>d(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(br):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(lr):null,r})}function br(e){return ee(e)||function Ie(e){return e[ue]||null}(e)}function lr(e){return function it(e){return e[k]||null}(e)}const Ln={};function wn(e){return de(()=>{const t={type:e.type,bootstrap:e.bootstrap||$e,declarations:e.declarations||$e,imports:e.imports||$e,exports:e.exports||$e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ln[e.id]=e.type),t})}function jn(e,t){return de(()=>{const n=dt(e,!0);n.declarations=t.declarations||$e,n.imports=t.imports||$e,n.exports=t.exports||$e})}function J(e,t){if(null==e)return an;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,t&&(t[s]=i)}return n}const K=Br;function P(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ee(e){return e[z]||null}function dt(e,t){const n=e[De]||null;if(!n&&!0===t)throw new Error(`Type ${Q(e)} does not have '\u0275mod' property.`);return n}function fn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Pn(e){return Array.isArray(e)&&!0===e[1]}function vr(e){return 0!=(8&e.flags)}function Tr(e){return 2==(2&e.flags)}function Sr(e){return 1==(1&e.flags)}function Un(e){return null!==e.template}function Js(e){return 0!=(512&e[2])}function Ar(e,t){return e.hasOwnProperty(Lt)?e[Lt]:null}class ii{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function _r(){return er}function er(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ir),oi}function oi(){const e=Xr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===an)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ir(e,t,n,r){const s=Xr(e)||function ai(e,t){return e[Vs]=t}(e,{previous:an,current:null}),i=s.current||(s.current={}),o=s.previous,d=this.declaredInputs[n],p=o[d];i[d]=new ii(p&&p.currentValue,t,o===an),e[r]=t}_r.ngInherit=!0;const Vs="__ngSimpleChanges__";function Xr(e){return e[Vs]||null}let Gr;function zs(e){Gr=e}function Ts(){return void 0!==Gr?Gr:"undefined"!=typeof document?document:void 0}function Bt(e){return!!e.listen}const _={createRenderer:(e,t)=>Ts()};function m(e){for(;Array.isArray(e);)e=e[0];return e}function ve(e,t){return m(t[e])}function Me(e,t){return m(t[e.index])}function Yt(e,t){return e.data[t]}function Gt(e,t){return e[t]}function It(e,t){const n=t[e];return fn(n)?n:n[0]}function Rt(e){return 4==(4&e[2])}function mn(e){return 128==(128&e[2])}function un(e,t){return null==t?null:e[t]}function Wr(e){e[18]=0}function tr(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const ft={lFrame:ut(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function li(){return ft.bindingsEnabled}function xe(){return ft.lFrame.lView}function Nt(){return ft.lFrame.tView}function wi(e){return ft.lFrame.contextLView=e,e[8]}function hn(){let e=Ti();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ti(){return ft.lFrame.currentTNode}function Jn(e,t){const n=ft.lFrame;n.currentTNode=e,n.isParent=t}function ui(){return ft.lFrame.isParent}function ci(){ft.lFrame.isParent=!1}function As(){return ft.isInCheckNoChangesMode}function Is(e){ft.isInCheckNoChangesMode=e}function Vn(){const e=ft.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Or(){return ft.lFrame.bindingIndex}function C(){return ft.lFrame.bindingIndex++}function a(e){const t=ft.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function b(e,t){const n=ft.lFrame;n.bindingIndex=n.bindingRootIndex=e,L(t)}function L(e){ft.lFrame.currentDirectiveIndex=e}function B(e){const t=ft.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function le(){return ft.lFrame.currentQueryIndex}function Ce(e){ft.lFrame.currentQueryIndex=e}function qe(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function rt(e,t,n){if(n&ye.SkipSelf){let s=t,i=e;for(;!(s=s.parent,null!==s||n&ye.Host||(s=qe(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;t=s,e=i}const r=ft.lFrame=Ft();return r.currentTNode=t,r.lView=e,!0}function _t(e){const t=Ft(),n=e[1];ft.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ft(){const e=ft.lFrame,t=null===e?null:e.child;return null===t?ut(e):t}function ut(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 wt(){const e=ft.lFrame;return ft.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const qt=wt;function yn(){const e=wt();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 Qt(){return ft.lFrame.selectedIndex}function nr(e){ft.lFrame.selectedIndex=e}function $t(){const e=ft.lFrame;return Yt(e.tView,e.selectedIndex)}function Rn(){ft.lFrame.currentNamespace="svg"}function Dr(){!function xr(){ft.lFrame.currentNamespace=null}()}function Er(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:d,ngAfterViewInit:p,ngAfterViewChecked:E,ngOnDestroy:w}=i;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),d&&((e.contentHooks||(e.contentHooks=[])).push(n,d),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,d)),p&&(e.viewHooks||(e.viewHooks=[])).push(-n,p),E&&((e.viewHooks||(e.viewHooks=[])).push(n,E),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,E)),null!=w&&(e.destroyHooks||(e.destroyHooks=[])).push(n,w)}}function Os(e,t,n){ot(e,t,3,n)}function Sn(e,t,n,r){(3&e[2])===n&&ot(e,t,n,r)}function et(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ot(e,t,n,r){const i=null!=r?r:-1,o=t.length-1;let d=0;for(let p=void 0!==r?65535&e[18]:0;p<o;p++)if("number"==typeof t[p+1]){if(d=t[p],null!=r&&d>=r)break}else t[p]<0&&(e[18]+=65536),(d<i||-1==i)&&(gt(e,n,t,p),e[18]=(4294901760&e[18])+p+2),p++}function gt(e,t,n,r){const s=n[r]<0,i=n[r+1],d=e[s?-n[r]:n[r]];if(s){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{i.call(d)}finally{}}}else try{i.call(d)}finally{}}class tn{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Nn(e,t,n){const r=Bt(e);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],d=n[s++],p=n[s++];r?e.setAttribute(t,d,p,o):t.setAttributeNS(o,d,p)}else{const o=i,d=n[++s];xs(o)?r&&e.setProperty(t,o,d):r?e.setAttribute(t,o,d):t.setAttribute(o,d),s++}}return s}function Rr(e){return 3===e||4===e||6===e}function xs(e){return 64===e.charCodeAt(0)}function Ai(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||Qo(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function Qo(e,t,n,r,s){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const d=e[i++];if("number"==typeof d){if(d===t){o=-1;break}if(d>t){o=i-1;break}}}for(;i<e.length;){const d=e[i];if("number"==typeof d)break;if(d===n){if(null===r)return void(null!==s&&(e[i+1]=s));if(r===e[i+1])return void(e[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==s&&e.splice(i++,0,s)}function qo(e){return-1!==e}function Ys(e){return 32767&e}function Rs(e,t){let n=function $a(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let po=!0;function Ii(e){const t=po;return po=e,t}let za=0;function hi(e,t){const n=h(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Xo(r.data,e),Xo(t,null),Xo(r.blueprint,null));const s=c(e,t),i=e.injectorIndex;if(qo(s)){const o=Ys(s),d=Rs(s,t),p=d[1].data;for(let E=0;E<8;E++)t[i+E]=d[o+E]|p[o+E]}return t[i+8]=s,i}function Xo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function h(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function c(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){const i=s[1],o=i.type;if(r=2===o?i.declTNode:1===o?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function u(e,t,n){!function Jo(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(An)&&(r=n[An]),null==r&&(r=n[An]=za++);const s=255&r;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function D(e,t,n){if(n&ye.Optional)return e;Se(t,"NodeInjector")}function M(e,t,n,r){if(n&ye.Optional&&void 0===r&&(r=null),0==(n&(ye.Self|ye.Host))){const s=e[9],i=at(void 0);try{return s?s.get(t,r,n&ye.Optional):lt(t,r,n&ye.Optional)}finally{at(i)}}return D(r,t,n)}function R(e,t,n,r=ye.Default,s){if(null!==e){const i=function nn(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(An)?e[An]:void 0;return"number"==typeof t?t>=0?255&t:be:t}(n);if("function"==typeof i){if(!rt(t,e,r))return r&ye.Host?D(s,n,r):M(t,n,r,s);try{const o=i(r);if(null!=o||r&ye.Optional)return o;Se(n)}finally{qt()}}else if("number"==typeof i){let o=null,d=h(e,t),p=-1,E=r&ye.Host?t[16][6]:null;for((-1===d||r&ye.SkipSelf)&&(p=-1===d?c(e,t):t[d+8],-1!==p&&Nr(r,!1)?(o=t[1],d=Ys(p),t=Rs(p,t)):d=-1);-1!==d;){const w=t[1];if(Zt(i,d,w.data)){const O=tt(d,t,n,o,r,E);if(O!==W)return O}p=t[d+8],-1!==p&&Nr(r,t[1].data[d+8]===E)&&Zt(i,d,t)?(o=w,d=Ys(p),t=Rs(p,t)):d=-1}}}return M(t,n,r,s)}const W={};function be(){return new Cr(hn(),xe())}function tt(e,t,n,r,s,i){const o=t[1],d=o.data[e+8],w=kt(d,o,n,null==r?Tr(d)&&po:r!=o&&0!=(3&d.type),s&ye.Host&&i===d);return null!==w?st(t,o,w,d):W}function kt(e,t,n,r,s){const i=e.providerIndexes,o=t.data,d=1048575&i,p=e.directiveStart,w=i>>20,V=s?d+w:e.directiveEnd;for(let oe=r?d:d+w;oe<V;oe++){const Te=o[oe];if(oe<p&&n===Te||oe>=p&&Te.type===n)return oe}if(s){const oe=o[p];if(oe&&Un(oe)&&oe.type===n)return p}return null}function st(e,t,n,r){let s=e[n];const i=t.data;if(function hr(e){return e instanceof tn}(s)){const o=s;o.resolving&&function me(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Ee(-200,`Circular dependency in DI detected for ${e}${n}`)}(ze(i[n]));const d=Ii(o.canSeeViewProviders);o.resolving=!0;const p=o.injectImpl?at(o.injectImpl):null;rt(e,r,ye.Default);try{s=e[n]=o.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ds(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const o=er(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==p&&at(p),Ii(d),o.resolving=!1,qt()}}return s}function Zt(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Nr(e,t){return!(e&ye.Self||e&ye.Host&&t)}class Cr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return R(this._tNode,this._lView,t,r,n)}}function Pi(e){return de(()=>{const t=e.prototype.constructor,n=t[Lt]||xi(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const i=s[Lt]||xi(s);if(i&&i!==n)return i;s=Object.getPrototypeOf(s)}return i=>new i})}function xi(e){return he(e)?()=>{const t=xi($(e));return t&&t()}:Ar(e)}function Ns(e){return function v(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s<r;){const i=n[s];if(Rr(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(i===t)return n[s+1];s+=2}}}return null}(hn(),e)}const Ri="__parameters__",Ni="__prop__metadata__";function Ga(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}function Fi(e,t,n){return de(()=>{const r=Ga(t);function s(...i){if(this instanceof s)return r.apply(this,i),this;const o=new s(...i);return d.annotation=o,d;function d(p,E,w){const O=p.hasOwnProperty(Ri)?p[Ri]:Object.defineProperty(p,Ri,{value:[]})[Ri];for(;O.length<=w;)O.push(null);return(O[w]=O[w]||[]).push(o),p}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function go(e,t,n,r){return de(()=>{const s=Ga(t);function i(...o){if(this instanceof i)return s.apply(this,o),this;const d=new i(...o);return function p(E,w){const O=E.constructor,V=O.hasOwnProperty(Ni)?O[Ni]:Object.defineProperty(O,Ni,{value:{}})[Ni];V[w]=V.hasOwnProperty(w)&&V[w]||[],V[w].unshift(d),r&&r(E,w,...o)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class Fn{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=we({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Rg=new Fn("AnalyzeForEntryComponents");class pc{}const Ng=go("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),pc),Fg=go("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),pc);function Qr(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Qr(r,t)):t!==e&&t.push(r)}return t}function fs(e,t){e.forEach(n=>Array.isArray(n)?fs(n,t):t(n))}function gc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ea(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Fr(e,t,n){let r=ki(e,t);return r>=0?e[1|r]=n:(r=~r,function Bg(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Ka(e,t){const n=ki(e,t);if(n>=0)return e[1|n]}function ki(e,t){return function vc(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const i=r+(s-r>>1),o=e[i<<n];if(t===o)return i<<n;o>t?s=i:r=i+1}return~(s<<n)}(e,t,1)}const _o={},Qa="__NG_DI_FLAG__",na="ngTempTokenPath",Gg=/\n/gm,Dc="__source",Kg=x({provide:String,useValue:x});let Do;function Ec(e){const t=Do;return Do=e,t}function Yg(e,t=ye.Default){if(void 0===Do)throw new Ee(203,"");return null===Do?lt(e,void 0,t):Do.get(e,t&ye.Optional?null:void 0,t)}function Xn(e,t=ye.Default){return(function Oe(){return Qe}()||Yg)($(e),t)}const bc=Xn;function qa(e){const t=[];for(let n=0;n<e.length;n++){const r=$(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Ee(900,"");let s,i=ye.Default;for(let o=0;o<r.length;o++){const d=r[o],p=Qg(d);"number"==typeof p?-1===p?s=d.token:i|=p:s=d}t.push(Xn(s,i))}else t.push(Xn(r))}return t}function Eo(e,t){return e[Qa]=t,e.prototype[Qa]=t,e}function Qg(e){return e[Qa]}const ra=Eo(Fi("Inject",e=>({token:e})),-1),Co=Eo(Fi("Optional"),8),bo=Eo(Fi("SkipSelf"),4);let ia,oa;function Bi(e){var t;return(null===(t=function Ja(){if(void 0===ia&&(ia=null,ct.trustedTypes))try{ia=ct.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ia}())||void 0===t?void 0:t.createHTML(e))||e}function Ac(e){var t;return(null===(t=function Xa(){if(void 0===oa&&(oa=null,ct.trustedTypes))try{oa=ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return oa}())||void 0===t?void 0:t.createHTML(e))||e}class pi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class lm extends pi{getTypeName(){return"HTML"}}class um extends pi{getTypeName(){return"Style"}}class cm extends pi{getTypeName(){return"Script"}}class dm extends pi{getTypeName(){return"URL"}}class fm extends pi{getTypeName(){return"ResourceURL"}}function Fs(e){return e instanceof pi?e.changingThisBreaksApplicationSecurity:e}function ji(e,t){const n=Pc(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 Pc(e){return e instanceof pi&&e.getTypeName()||null}function hm(e){return new lm(e)}function pm(e){return new um(e)}function gm(e){return new cm(e)}function mm(e){return new dm(e)}function ym(e){return new fm(e)}class vm{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Bi(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class _m{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 r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Bi(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Bi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0<s;s--){const o=n.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const Em=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Cm=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function To(e){return(e=String(e)).match(Em)||e.match(Cm)?e:"unsafe:"+e}function hs(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function So(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Nc=hs("area,br,col,hr,img,wbr"),Fc=hs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),kc=hs("rp,rt"),el=So(Nc,So(Fc,hs("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),So(kc,hs("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),So(kc,Fc)),tl=hs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nl=hs("srcset"),Lc=So(tl,nl,hs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hs("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),bm=hs("script,style,template");class wm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=this.checkClobberedElement(n,n.nextSibling);if(s){n=s;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!el.hasOwnProperty(n))return this.sanitizedSomething=!0,!bm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let s=0;s<r.length;s++){const i=r.item(s),o=i.name,d=o.toLowerCase();if(!Lc.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let p=i.value;tl[d]&&(p=To(p)),nl[d]&&(e=p,p=(e=String(e)).split(",").map(t=>To(t.trim())).join(", ")),this.buf.push(" ",o,'="',Bc(p),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();el.hasOwnProperty(n)&&!Nc.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Bc(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 Tm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sm=/([^\#-~ |!])/g;function Bc(e){return e.replace(/&/g,"&").replace(Tm,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Sm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let aa;function jc(e,t){let n=null;try{aa=aa||function xc(e){const t=new _m(e);return function Dm(){try{return!!(new window.DOMParser).parseFromString(Bi(""),"text/html")}catch(e){return!1}}()?new vm(t):t}(e);let r=t?String(t):"";n=aa.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=aa.getInertBodyElement(r)}while(r!==i);return Bi((new wm).sanitizeChildren(rl(n)||n))}finally{if(n){const r=rl(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function rl(e){return"content"in e&&function Mm(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var kn=(()=>((kn=kn||{})[kn.NONE=0]="NONE",kn[kn.HTML=1]="HTML",kn[kn.STYLE=2]="STYLE",kn[kn.SCRIPT=3]="SCRIPT",kn[kn.URL=4]="URL",kn[kn.RESOURCE_URL=5]="RESOURCE_URL",kn))();function Uc(e){const t=Mo();return t?Ac(t.sanitize(kn.HTML,e)||""):ji(e,"HTML")?Ac(Fs(e)):jc(Ts(),Fe(e))}function sl(e){const t=Mo();return t?t.sanitize(kn.URL,e)||"":ji(e,"URL")?Fs(e):To(Fe(e))}function Mo(){const e=xe();return e&&e[12]}const $c="__ngContext__";function or(e,t){e[$c]=t}function ol(e){const t=function Ao(e){return e[$c]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ll(e){return e.ngOriginalError}function $m(e,...t){e.error(...t)}class la{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function Vm(e){return e&&e.ngErrorLogger||$m}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ll(t);for(;n&&ll(n);)n=ll(n);return n||null}}const Xm=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ct))();function ps(e){return e instanceof Function?e():e}var gs=(()=>((gs=gs||{})[gs.Important=1]="Important",gs[gs.DashCase=2]="DashCase",gs))();function cl(e,t){return undefined(e,t)}function Io(e){const t=e[3];return Pn(t)?t[3]:t}function dl(e){return Jc(e[13])}function fl(e){return Jc(e[4])}function Jc(e){for(;null!==e&&!Pn(e);)e=e[4];return e}function Hi(e,t,n,r,s){if(null!=r){let i,o=!1;Pn(r)?i=r:fn(r)&&(o=!0,r=r[0]);const d=m(r);0===e&&null!==n?null==s?sd(t,n,d):gi(t,n,d,s||null,!0):1===e&&null!==n?gi(t,n,d,s||null,!0):2===e?function dd(e,t,n){const r=ua(e,t);r&&function hy(e,t,n,r){Bt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,d,o):3===e&&t.destroyNode(d),null!=i&&function my(e,t,n,r,s){const i=n[7];i!==m(n)&&Hi(t,e,r,i,s);for(let d=10;d<n.length;d++){const p=n[d];Oo(p[1],p,e,t,r,i)}}(t,e,i,n,s)}}function pl(e,t,n){if(Bt(e))return e.createElement(t,n);{const r=null!==n?function zr(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function ed(e,t){const n=e[9],r=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,tr(s,-1)),n.splice(r,1)}function gl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const s=r[17];null!==s&&s!==e&&ed(s,r),t>0&&(e[n-1][4]=r[4]);const i=ea(e,10+t);!function iy(e,t){Oo(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function td(e,t){if(!(256&t[2])){const n=t[11];Bt(n)&&n.destroyNode&&Oo(e,t,n,3,null,null),function ly(e){let t=e[13];if(!t)return ml(e[1],e);for(;t;){let n=null;if(fn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)fn(t)&&ml(t[1],t),t=t[3];null===t&&(t=e),fn(t)&&ml(t[1],t),n=t&&t[4]}t=n}}(t)}}function ml(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function fy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof tn)){const i=n[r+1];if(Array.isArray(i))for(let o=0;o<i.length;o+=2){const d=s[i[o]],p=i[o+1];try{p.call(d)}finally{}}else try{i.call(s)}finally{}}}}(e,t),function dy(e,t){const n=e.cleanup,r=t[7];let s=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const o=n[i+1],d="function"==typeof o?o(t):m(t[o]),p=r[s=n[i+2]],E=n[i+3];"boolean"==typeof E?d.removeEventListener(n[i],p,E):E>=0?r[s=E]():r[s=-E].unsubscribe(),i+=2}else{const o=r[s=n[i+1]];n[i].call(o)}if(null!==r){for(let i=s+1;i<r.length;i++)r[i]();t[7]=null}}(e,t),1===t[1].type&&Bt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Pn(t[3])){n!==t[3]&&ed(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function nd(e,t,n){return function rd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const s=e.data[r.directiveStart].encapsulation;if(s===_e.None||s===_e.Emulated)return null}return Me(r,n)}(e,t.parent,n)}function gi(e,t,n,r,s){Bt(e)?e.insertBefore(t,n,r,s):t.insertBefore(n,r,s)}function sd(e,t,n){Bt(e)?e.appendChild(t,n):t.appendChild(n)}function id(e,t,n,r,s){null!==r?gi(e,t,n,r,s):sd(e,t,n)}function ua(e,t){return Bt(e)?e.parentNode(t):t.parentNode}function od(e,t,n){return ld(e,t,n)}let ld=function ad(e,t,n){return 40&e.type?Me(e,n):null};function ca(e,t,n,r){const s=nd(e,r,t),i=t[11],d=od(r.parent||t[6],r,t);if(null!=s)if(Array.isArray(n))for(let p=0;p<n.length;p++)id(i,s,n[p],d,!1);else id(i,s,n,d,!1)}function da(e,t){if(null!==t){const n=t.type;if(3&n)return Me(t,e);if(4&n)return vl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return da(e,r);{const s=e[t.index];return Pn(s)?vl(-1,s):m(s)}}if(32&n)return cl(t,e)()||m(e[t.index]);{const r=cd(e,t);return null!==r?Array.isArray(r)?r[0]:da(Io(e[16]),r):da(e,t.next)}}return null}function cd(e,t){return null!==t?e[16][6].projection[t.projection]:null}function vl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],s=r[1].firstChild;if(null!==s)return da(r,s)}return t[7]}function _l(e,t,n,r,s,i,o){for(;null!=n;){const d=r[n.index],p=n.type;if(o&&0===t&&(d&&or(m(d),r),n.flags|=4),64!=(64&n.flags))if(8&p)_l(e,t,n.child,r,s,i,!1),Hi(t,e,s,d,i);else if(32&p){const E=cl(n,r);let w;for(;w=E();)Hi(t,e,s,w,i);Hi(t,e,s,d,i)}else 16&p?fd(e,t,r,n,s,i):Hi(t,e,s,d,i);n=o?n.projectionNext:n.next}}function Oo(e,t,n,r,s,i){_l(n,r,e.firstChild,t,s,i,!1)}function fd(e,t,n,r,s,i){const o=n[16],p=o[6].projection[r.projection];if(Array.isArray(p))for(let E=0;E<p.length;E++)Hi(t,e,s,p[E],i);else _l(e,t,p,o[3],s,i,!0)}function hd(e,t,n){Bt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Dl(e,t,n){Bt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function pd(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const i=t.length;if(s+i===r||e.charCodeAt(s+i)<=32)return s}n=s+1}}const gd="ng-template";function vy(e,t,n){let r=0;for(;r<e.length;){let s=e[r++];if(n&&"class"===s){if(s=e[r],-1!==pd(s.toLowerCase(),t,0))return!0}else if(1===s){for(;r<e.length&&"string"==typeof(s=e[r++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function md(e){return 4===e.type&&e.value!==gd}function _y(e,t,n){return t===(4!==e.type||n?e.value:gd)}function Dy(e,t,n){let r=4;const s=e.attrs||[],i=function by(e){for(let t=0;t<e.length;t++)if(Rr(e[t]))return t;return e.length}(s);let o=!1;for(let d=0;d<t.length;d++){const p=t[d];if("number"!=typeof p){if(!o)if(4&r){if(r=2|1&r,""!==p&&!_y(e,p,n)||""===p&&1===t.length){if(ts(r))return!1;o=!0}}else{const E=8&r?p:t[++d];if(8&r&&null!==e.attrs){if(!vy(e.attrs,E,n)){if(ts(r))return!1;o=!0}continue}const O=Ey(8&r?"class":p,s,md(e),n);if(-1===O){if(ts(r))return!1;o=!0;continue}if(""!==E){let V;V=O>i?"":s[O+1].toLowerCase();const oe=8&r?V:null;if(oe&&-1!==pd(oe,E,0)||2&r&&E!==V){if(ts(r))return!1;o=!0}}}}else{if(!o&&!ts(r)&&!ts(p))return!1;if(o&&ts(p))continue;o=!1,r=p|1&r}}return ts(r)||o}function ts(e){return 0==(1&e)}function Ey(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let i=!1;for(;s<t.length;){const o=t[s];if(o===e)return s;if(3===o||6===o)i=!0;else{if(1===o||2===o){let d=t[++s];for(;"string"==typeof d;)d=t[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=i?1:2}return-1}return function wy(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function yd(e,t,n=!1){for(let r=0;r<t.length;r++)if(Dy(e,t[r],n))return!0;return!1}function Ty(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function vd(e,t){return e?":not("+t.trim()+")":t}function Sy(e){let t=e[0],n=1,r=2,s="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&r){const d=e[++n];s+="["+o+(d.length>0?'="'+d+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""!==s&&!ts(o)&&(t+=vd(i,s),s=""),r=o,i=i||!ts(r);n++}return""!==s&&(t+=vd(i,s)),t}const Ot={};function _d(e){Dd(Nt(),xe(),Qt()+e,As())}function Dd(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Os(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Sn(t,i,0,n)}nr(n)}function fa(e,t){return e<<17|t<<2}function ns(e){return e>>17&32767}function El(e){return 2|e}function ks(e){return(131068&e)>>2}function Cl(e,t){return-131069&e|t<<2}function bl(e){return 1|e}function Pd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const o=e.data[i];Ce(s),o.contentQueries(2,t[i],i)}}}function Po(e,t,n,r,s,i,o,d,p,E){const w=t.blueprint.slice();return w[0]=s,w[2]=140|r,Wr(w),w[3]=w[15]=e,w[8]=n,w[10]=o||e&&e[10],w[11]=d||e&&e[11],w[12]=p||e&&e[12]||null,w[9]=E||e&&e[9]||null,w[6]=i,w[16]=2==t.type?e[16]:w,w}function Vi(e,t,n,r,s){let i=e.data[t];if(null===i)i=function xl(e,t,n,r,s){const i=Ti(),o=ui(),p=e.data[t]=function zy(e,t,n,r,s,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?i:i&&i.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=p),null!==i&&(o?null==i.child&&null!==p.parent&&(i.child=p):null===i.next&&(i.next=p)),p}(e,t,n,r,s),function l(){return ft.lFrame.inI18n}()&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=s;const o=function Ms(){const e=ft.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===o?-1:o.injectorIndex}return Jn(i,!0),i}function $i(e,t,n,r){if(0===n)return-1;const s=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function xo(e,t,n){_t(t);try{const r=e.viewQuery;null!==r&&Hl(1,r,n);const s=e.template;null!==s&&xd(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Pd(e,t),e.staticViewQueries&&Hl(2,e.viewQuery,n);const i=e.components;null!==i&&function Hy(e,t){for(let n=0;n<t.length;n++)lv(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,yn()}}function zi(e,t,n,r){const s=t[2];if(256==(256&s))return;_t(t);const i=As();try{Wr(t),function ho(e){return ft.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&xd(e,t,n,2,r);const o=3==(3&s);if(!i)if(o){const E=e.preOrderCheckHooks;null!==E&&Os(t,E,null)}else{const E=e.preOrderHooks;null!==E&&Sn(t,E,0,null),et(t,0)}if(function ov(e){for(let t=dl(e);null!==t;t=fl(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const s=n[r],i=s[3];0==(1024&s[2])&&tr(i,1),s[2]|=1024}}}(t),function iv(e){for(let t=dl(e);null!==t;t=fl(t))for(let n=10;n<t.length;n++){const r=t[n],s=r[1];mn(r)&&zi(s,r,s.template,r[8])}}(t),null!==e.contentQueries&&Pd(e,t),!i)if(o){const E=e.contentCheckHooks;null!==E&&Os(t,E)}else{const E=e.contentHooks;null!==E&&Sn(t,E,1),et(t,1)}!function jy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const s=n[r];if(s<0)nr(~s);else{const i=s,o=n[++r],d=n[++r];b(o,i),d(2,t[i])}}}finally{nr(-1)}}(e,t);const d=e.components;null!==d&&function Uy(e,t){for(let n=0;n<t.length;n++)av(e,t[n])}(t,d);const p=e.viewQuery;if(null!==p&&Hl(2,p,r),!i)if(o){const E=e.viewCheckHooks;null!==E&&Os(t,E)}else{const E=e.viewHooks;null!==E&&Sn(t,E,2),et(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,tr(t[3],-1))}finally{yn()}}function Vy(e,t,n,r){const s=t[10],i=!As(),o=Rt(t);try{i&&!o&&s.begin&&s.begin(),o&&xo(e,t,r),zi(e,t,n,r)}finally{i&&!o&&s.end&&s.end()}}function xd(e,t,n,r,s){const i=Qt(),o=2&r;try{nr(-1),o&&t.length>20&&Dd(e,t,20,As()),n(r,s)}finally{nr(i)}}function Rd(e,t,n){if(vr(t)){const s=t.directiveEnd;for(let i=t.directiveStart;i<s;i++){const o=e.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}}function Rl(e,t,n){!li()||(function Zy(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||hi(n,t),or(r,t);const o=n.initialInputs;for(let d=s;d<i;d++){const p=e.data[d],E=Un(p);E&&nv(t,n,p);const w=st(t,e,d,n);or(w,t),null!==o&&rv(0,d-s,w,p,0,o),E&&(It(n.index,t)[8]=w)}}(e,t,n,Me(n,t)),128==(128&n.flags)&&function Jy(e,t,n){const r=n.directiveStart,s=n.directiveEnd,o=n.index,d=function I(){return ft.lFrame.currentDirectiveIndex}();try{nr(o);for(let p=r;p<s;p++){const E=e.data[p],w=t[p];L(p),(null!==E.hostBindings||0!==E.hostVars||null!==E.hostAttrs)&&Hd(E,w)}}finally{nr(-1),L(d)}}(e,t,n))}function Nl(e,t,n=Me){const r=t.localNames;if(null!==r){let s=t.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],d=-1===o?n(t,e):e[o];e[s++]=d}}}function Nd(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ga(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ga(e,t,n,r,s,i,o,d,p,E){const w=20+r,O=w+s,V=function $y(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ot);return n}(w,O),oe="function"==typeof E?E():E;return V[1]={type:e,blueprint:V,template:n,queries:null,viewQuery:d,declTNode:t,data:V.slice().fill(null,w),bindingStartIndex:w,expandoStartIndex:O,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:p,consts:oe,incompleteFirstPass:!1}}function Ld(e,t,n,r){const s=Kd(t);null===n?s.push(r):(s.push(n),e.firstCreatePass&&Yd(e).push(r,s.length-1))}function Bd(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const s=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,s):n[r]=[t,s]}return n}function kr(e,t,n,r,s,i,o,d){const p=Me(t,n);let w,E=t.inputs;!d&&null!=E&&(w=E[r])?(Zd(e,n,w,r,s),Tr(t)&&function Ky(e,t){const n=It(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function Wy(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=o?o(s,t.value||"",r):s,Bt(i)?i.setProperty(p,r,s):xs(r)||(p.setProperty?p.setProperty(r,s):p[r]=s))}function Fl(e,t,n,r){let s=!1;if(li()){const i=function Xy(e,t,n){const r=e.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];yd(n,o.selectors,!1)&&(s||(s=[]),u(hi(n,t),e,o.type),Un(o)?(Vd(e,n),s.unshift(o)):s.push(o))}return s}(e,t,n),o=null===r?null:{"":-1};if(null!==i){s=!0,$d(n,e.data.length,i.length);for(let w=0;w<i.length;w++){const O=i[w];O.providersResolver&&O.providersResolver(O)}let d=!1,p=!1,E=$i(e,t,i.length,null);for(let w=0;w<i.length;w++){const O=i[w];n.mergedAttrs=Ai(n.mergedAttrs,O.hostAttrs),zd(e,n,t,E,O),tv(E,O,o),null!==O.contentQueries&&(n.flags|=8),(null!==O.hostBindings||null!==O.hostAttrs||0!==O.hostVars)&&(n.flags|=128);const V=O.type.prototype;!d&&(V.ngOnChanges||V.ngOnInit||V.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),d=!0),!p&&(V.ngOnChanges||V.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),p=!0),E++}!function Gy(e,t){const r=t.directiveEnd,s=e.data,i=t.attrs,o=[];let d=null,p=null;for(let E=t.directiveStart;E<r;E++){const w=s[E],O=w.inputs,V=null===i||md(t)?null:sv(O,i);o.push(V),d=Bd(O,E,d),p=Bd(w.outputs,E,p)}null!==d&&(d.hasOwnProperty("class")&&(t.flags|=16),d.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=d,t.outputs=p}(e,n)}o&&function ev(e,t,n){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const i=n[t[s+1]];if(null==i)throw new Ee(-301,!1);r.push(t[s],i)}}}(n,r,o)}return n.mergedAttrs=Ai(n.mergedAttrs,n.attrs),s}function Ud(e,t,n,r,s,i){const o=i.hostBindings;if(o){let d=e.hostBindingOpCodes;null===d&&(d=e.hostBindingOpCodes=[]);const p=~t.index;(function qy(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(d)!=p&&d.push(p),d.push(r,s,o)}}function Hd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Vd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function tv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Un(t)&&(n[""]=e)}}function $d(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function zd(e,t,n,r,s){e.data[r]=s;const i=s.factory||(s.factory=Ar(s.type)),o=new tn(i,Un(s),null);e.blueprint[r]=o,n[r]=o,Ud(e,t,0,r,$i(e,n,s.hostVars,Ot),s)}function nv(e,t,n){const r=Me(t,e),s=Nd(n),i=e[10],o=ma(e,Po(e,s,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=o}function ms(e,t,n,r,s,i){const o=Me(e,t);!function kl(e,t,n,r,s,i,o){if(null==i)Bt(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const d=null==o?Fe(i):o(i,r||"",s);Bt(e)?e.setAttribute(t,s,d,n):n?t.setAttributeNS(n,s,d):t.setAttribute(s,d)}}(t[11],o,i,e.value,n,r,s)}function rv(e,t,n,r,s,i){const o=i[t];if(null!==o){const d=r.setInput;for(let p=0;p<o.length;){const E=o[p++],w=o[p++],O=o[p++];null!==d?r.setInput(n,O,E,w):n[w]=O}}}function sv(e,t){let n=null,r=0;for(;r<t.length;){const s=t[r];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Gd(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function av(e,t){const n=It(t,e);if(mn(n)){const r=n[1];80&n[2]?zi(r,n,r.template,n[8]):n[5]>0&&Ll(n)}}function Ll(e){for(let r=dl(e);null!==r;r=fl(r))for(let s=10;s<r.length;s++){const i=r[s];if(1024&i[2]){const o=i[1];zi(o,i,o.template,i[8])}else i[5]>0&&Ll(i)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const s=It(n[r],e);mn(s)&&s[5]>0&&Ll(s)}}function lv(e,t){const n=It(t,e),r=n[1];(function uv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),xo(r,n,n[8])}function ma(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Bl(e){for(;e;){e[2]|=64;const t=Io(e);if(Js(e)&&!t)return e;e=t}return null}function Ul(e,t,n){const r=t[10];r.begin&&r.begin();try{zi(e,t,e.template,n)}catch(s){throw qd(t,s),s}finally{r.end&&r.end()}}function Wd(e){!function jl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=ol(n),s=r[1];Vy(s,r,s.template,n)}}(e[8])}function Hl(e,t,n){Ce(0),t(e,n)}const hv=(()=>Promise.resolve(null))();function Kd(e){return e[7]||(e[7]=[])}function Yd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||Un(e))&&(n=function A(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function qd(e,t){const n=e[9],r=n?n.get(la,null):null;r&&r.handleError(t)}function Zd(e,t,n,r,s){for(let i=0;i<n.length;){const o=n[i++],d=n[i++],p=t[o],E=e.data[o];null!==E.setInput?E.setInput(p,s,r,d):p[d]=s}}function Ls(e,t,n){const r=ve(t,e);!function Xc(e,t,n){Bt(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function ya(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const d=t[o];"number"==typeof d?i=d:1==i?s=ae(s,d):2==i&&(r=ae(r,d+": "+t[++o]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}const va=new Fn("INJECTOR",-1);class Jd{get(t,n=_o){if(n===_o){const r=new Error(`NullInjectorError: No provider for ${Q(t)}!`);throw r.name="NullInjectorError",r}return n}}const Vl=new Fn("Set Injector scope."),Ro={},mv={};let $l;function Xd(){return void 0===$l&&($l=new Jd),$l}function ef(e,t=null,n=null,r){const s=tf(e,t,n,r);return s._resolveInjectorDefTypes(),s}function tf(e,t=null,n=null,r){return new yv(e,n,t||Xd(),r)}class yv{constructor(t,n,r,s=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];n&&fs(n,d=>this.processProvider(d,t,n)),fs([t],d=>this.processInjectorType(d,[],i)),this.records.set(va,Gi(void 0,this));const o=this.records.get(Vl);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof t?null:Q(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=_o,r=ye.Default){this.assertNotDestroyed();const s=Ec(this),i=at(void 0);try{if(!(r&ye.SkipSelf)){let d=this.records.get(t);if(void 0===d){const p=function Tv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Fn}(t)&&Ue(t);d=p&&this.injectableDefInScope(p)?Gi(zl(t),Ro):null,this.records.set(t,d)}if(null!=d)return this.hydrate(t,d)}return(r&ye.Self?Xd():this.parent).get(t,n=r&ye.Optional&&n===_o?null:n)}catch(o){if("NullInjectorError"===o.name){if((o[na]=o[na]||[]).unshift(Q(t)),s)throw o;return function qg(e,t,n,r){const s=e[na];throw t[Dc]&&s.unshift(t[Dc]),e.message=function Zg(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=Q(t);if(Array.isArray(t))s=t.map(Q).join(" -> ");else if("object"==typeof t){let i=[];for(let o in t)if(t.hasOwnProperty(o)){let d=t[o];i.push(o+":"+("string"==typeof d?JSON.stringify(d):Q(d)))}s=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Gg,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[na]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{at(i),Ec(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,s)=>t.push(Q(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ee(205,!1)}processInjectorType(t,n,r){if(!(t=$(t)))return!1;let s=U(t);const i=null==s&&t.ngModule||void 0,o=void 0===i?t:i,d=-1!==r.indexOf(o);if(void 0!==i&&(s=U(i)),null==s)return!1;if(null!=s.imports&&!d){let w;r.push(o);try{fs(s.imports,O=>{this.processInjectorType(O,n,r)&&(void 0===w&&(w=[]),w.push(O))})}finally{}if(void 0!==w)for(let O=0;O<w.length;O++){const{ngModule:V,providers:oe}=w[O];fs(oe,Te=>this.processProvider(Te,V,oe||$e))}}this.injectorDefTypes.add(o);const p=Ar(o)||(()=>new o);this.records.set(o,Gi(p,Ro));const E=s.providers;if(null!=E&&!d){const w=t;fs(E,O=>this.processProvider(O,w,E))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let s=Wi(t=$(t))?t:$(t&&t.provide);const i=function _v(e,t,n){return rf(e)?Gi(void 0,e.useValue):Gi(nf(e),Ro)}(t);if(Wi(t)||!0!==t.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Gi(void 0,Ro,!0),o.factory=()=>qa(o.multi),this.records.set(s,o)),s=t,o.multi.push(t)}this.records.set(s,i)}hydrate(t,n){return n.value===Ro&&(n.value=mv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function wv(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=$(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function zl(e){const t=Ue(e),n=null!==t?t.factory:Ar(e);if(null!==n)return n;if(e instanceof Fn)throw new Ee(204,!1);if(e instanceof Function)return function vv(e){const t=e.length;if(t>0)throw vo(t,"?"),new Ee(204,!1);const n=function ie(e){const t=e&&(e[re]||e[ne]);if(t){const n=function fe(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 Ee(204,!1)}function nf(e,t,n){let r;if(Wi(e)){const s=$(e);return Ar(s)||zl(s)}if(rf(e))r=()=>$(e.useValue);else if(function Ev(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...qa(e.deps||[]));else if(function Dv(e){return!(!e||!e.useExisting)}(e))r=()=>Xn($(e.useExisting));else{const s=$(e&&(e.useClass||e.provide));if(!function bv(e){return!!e.deps}(e))return Ar(s)||zl(s);r=()=>new s(...qa(e.deps))}return r}function Gi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function rf(e){return null!==e&&"object"==typeof e&&Kg in e}function Wi(e){return"function"==typeof e}let rs=(()=>{class e{static create(n,r){var s;if(Array.isArray(n))return ef({name:""},r,n,"");{const i=null!==(s=n.name)&&void 0!==s?s:"";return ef({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=_o,e.NULL=new Jd,e.\u0275prov=we({token:e,providedIn:"any",factory:()=>Xn(va)}),e.__NG_ELEMENT_ID__=-1,e})();function Rv(e,t){Er(ol(e)[1],hn())}function Kl(e){let t=function mf(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(Un(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Ee(903,"");s=t.\u0275dir}if(s){if(n){r.push(s);const o=e;o.inputs=Yl(e.inputs),o.declaredInputs=Yl(e.declaredInputs),o.outputs=Yl(e.outputs);const d=s.hostBindings;d&&Lv(e,d);const p=s.viewQuery,E=s.contentQueries;if(p&&Fv(e,p),E&&kv(e,E),Y(e.inputs,s.inputs),Y(e.declaredInputs,s.declaredInputs),Y(e.outputs,s.outputs),Un(s)&&s.data.animation){const w=e.data;w.animation=(w.animation||[]).concat(s.data.animation)}}const i=s.features;if(i)for(let o=0;o<i.length;o++){const d=i[o];d&&d.ngInherit&&d(e),d===Kl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Nv(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Ai(s.hostAttrs,n=Ai(n,s.hostAttrs))}}(r)}function Yl(e){return e===an?{}:e===$e?[]:e}function Fv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function kv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,i)=>{t(r,s,i),n(r,s,i)}:t}function Lv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}let _a=null;function Ki(){if(!_a){const e=ct.Symbol;if(e&&e.iterator)_a=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(_a=r)}}}return _a}function No(e){return!!Ql(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ki()in e)}function Ql(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ys(e,t,n){return e[t]=n}function Fo(e,t){return e[t]}function ar(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function mi(e,t,n,r){const s=ar(e,t,n);return ar(e,t+1,r)||s}function qr(e,t,n,r,s,i){const o=mi(e,t,n,r);return mi(e,t+2,s,i)||o}function ql(e,t,n,r){const s=xe();return ar(s,C(),t)&&(Nt(),ms($t(),s,e,t,n,r)),ql}function Qi(e,t,n,r){return ar(e,C(),n)?t+Fe(n)+r:Ot}function qi(e,t,n,r,s,i){const d=mi(e,Or(),n,s);return a(2),d?t+Fe(n)+r+Fe(s)+i:Ot}function Sf(e,t,n,r,s,i,o,d){const p=xe(),E=Nt(),w=e+20,O=E.firstCreatePass?function zv(e,t,n,r,s,i,o,d,p){const E=t.consts,w=Vi(t,e,4,o||null,un(E,d));Fl(t,n,w,un(E,p)),Er(t,w);const O=w.tViews=ga(2,w,r,s,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,E);return null!==t.queries&&(t.queries.template(t,w),O.queries=t.queries.embeddedTView(w)),w}(w,E,p,t,n,r,s,i,o):E.data[w];Jn(O,!1);const V=p[11].createComment("");ca(E,p,V,O),or(V,p),ma(p,p[w]=Gd(V,p,V,O)),Sr(O)&&Rl(E,p,O),null!=o&&Nl(p,O,d)}function Mf(e){return Gt(function di(){return ft.lFrame.contextLView}(),20+e)}function ko(e,t=ye.Default){const n=xe();return null===n?Xn(e,t):R(hn(),n,$(e),t)}function Bf(){throw new Error("invalid")}function tu(e,t,n){const r=xe();return ar(r,C(),t)&&kr(Nt(),$t(),r,e,t,r[11],n,!1),tu}function nu(e,t,n,r,s){const o=s?"class":"style";Zd(e,n,t.inputs[o],o,r)}function Ca(e,t,n,r){const s=xe(),i=Nt(),o=20+e,d=s[11],p=s[o]=pl(d,t,function Si(){return ft.lFrame.currentNamespace}()),E=i.firstCreatePass?function d_(e,t,n,r,s,i,o){const d=t.consts,E=Vi(t,e,2,s,un(d,i));return Fl(t,n,E,un(d,o)),null!==E.attrs&&ya(E,E.attrs,!1),null!==E.mergedAttrs&&ya(E,E.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,E),E}(o,i,s,0,t,n,r):i.data[o];Jn(E,!0);const w=E.mergedAttrs;null!==w&&Nn(d,p,w);const O=E.classes;null!==O&&Dl(d,p,O);const V=E.styles;return null!==V&&hd(d,p,V),64!=(64&E.flags)&&ca(i,s,p,E),0===function Gs(){return ft.lFrame.elementDepthCount}()&&or(p,s),function Yr(){ft.lFrame.elementDepthCount++}(),Sr(E)&&(Rl(i,s,E),Rd(i,E,s)),null!==r&&Nl(s,E),Ca}function ba(){let e=hn();ui()?ci():(e=e.parent,Jn(e,!1));const t=e;!function Ws(){ft.lFrame.elementDepthCount--}();const n=Nt();return n.firstCreatePass&&(Er(n,e),vr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function fi(e){return 0!=(16&e.flags)}(t)&&nu(n,t,xe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Mi(e){return 0!=(32&e.flags)}(t)&&nu(n,t,xe(),t.stylesWithoutHost,!1),ba}function ru(e,t,n,r){return Ca(e,t,n,r),ba(),ru}function wa(e,t,n){const r=xe(),s=Nt(),i=e+20,o=s.firstCreatePass?function f_(e,t,n,r,s){const i=t.consts,o=un(i,r),d=Vi(t,e,8,"ng-container",o);return null!==o&&ya(d,o,!0),Fl(t,n,d,un(i,s)),null!==t.queries&&t.queries.elementStart(t,d),d}(i,s,r,t,n):s.data[i];Jn(o,!0);const d=r[i]=r[11].createComment("");return ca(s,r,d,o),or(d,r),Sr(o)&&(Rl(s,r,o),Rd(s,o,r)),null!=n&&Nl(r,o),wa}function Ta(){let e=hn();const t=Nt();return ui()?ci():(e=e.parent,Jn(e,!1)),t.firstCreatePass&&(Er(t,e),vr(e)&&t.queries.elementEnd(e)),Ta}function su(e,t,n){return wa(e,t,n),Ta(),su}function jf(){return xe()}function iu(e){return!!e&&"function"==typeof e.then}function Uf(e){return!!e&&"function"==typeof e.subscribe}const Hf=Uf;function ou(e,t,n,r){const s=xe(),i=Nt(),o=hn();return Vf(i,s,s[11],o,e,t,!!n,r),ou}function au(e,t){const n=hn(),r=xe(),s=Nt();return Vf(s,r,Qd(B(s.data),n,r),n,e,t,!1),au}function Vf(e,t,n,r,s,i,o,d){const p=Sr(r),w=e.firstCreatePass&&Yd(e),O=t[8],V=Kd(t);let oe=!0;if(3&r.type||d){const Ke=Me(r,t),nt=d?d(Ke):Ke,Pe=V.length,ht=d?zt=>d(m(zt[r.index])):r.index;if(Bt(n)){let zt=null;if(!d&&p&&(zt=function h_(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const o=s[i];if(o===n&&s[i+1]===r){const d=t[7],p=s[i+2];return d.length>p?d[p]:null}"string"==typeof o&&(i+=2)}return null}(e,t,s,r.index)),null!==zt)(zt.__ngLastListenerFn__||zt).__ngNextListenerFn__=i,zt.__ngLastListenerFn__=i,oe=!1;else{i=lu(r,t,O,i,!1);const on=n.listen(nt,s,i);V.push(i,on),w&&w.push(s,ht,Pe,Pe+1)}}else i=lu(r,t,O,i,!0),nt.addEventListener(s,i,o),V.push(i),w&&w.push(s,ht,Pe,o)}else i=lu(r,t,O,i,!1);const Te=r.outputs;let Ve;if(oe&&null!==Te&&(Ve=Te[s])){const Ke=Ve.length;if(Ke)for(let nt=0;nt<Ke;nt+=2){const Lr=t[Ve[nt]][Ve[nt+1]].subscribe(i),_i=V.length;V.push(i,Lr),w&&w.push(s,r.index,_i,-(_i+1))}}}function $f(e,t,n,r){try{return!1!==n(r)}catch(s){return qd(e,s),!1}}function lu(e,t,n,r,s){return function i(o){if(o===Function)return r;const d=2&e.flags?It(e.index,t):t;0==(32&t[2])&&Bl(d);let p=$f(t,0,r,o),E=i.__ngNextListenerFn__;for(;E;)p=$f(t,0,E,o)&&p,E=E.__ngNextListenerFn__;return s&&!1===p&&(o.preventDefault(),o.returnValue=!1),p}}function zf(e=1){return function Cn(e){return(ft.lFrame.contextLView=function $n(e,t){for(;e>0;)t=t[15],e--;return t}(e,ft.lFrame.contextLView))[8]}(e)}function p_(e,t){let n=null;const r=function Cy(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 s=0;s<t.length;s++){const i=t[s];if("*"!==i){if(null===r?yd(e,i,!0):Ty(r,i))return s}else n=s}return n}function Gf(e){const t=xe()[16][6];if(!t.projection){const r=t.projection=vo(e?e.length:1,null),s=r.slice();let i=t.child;for(;null!==i;){const o=e?p_(i,e):0;null!==o&&(s[o]?s[o].projectionNext=i:r[o]=i,s[o]=i),i=i.next}}}function Wf(e,t=0,n){const r=xe(),s=Nt(),i=Vi(s,20+e,16,null,n||null);null===i.projection&&(i.projection=t),ci(),64!=(64&i.flags)&&function gy(e,t,n){fd(t[11],0,t,n,nd(e,n,t),od(n.parent||t[6],n,t))}(s,r,i)}function uu(e,t,n){return cu(e,"",t,"",n),uu}function cu(e,t,n,r,s){const i=xe(),o=Qi(i,t,n,r);return o!==Ot&&kr(Nt(),$t(),i,e,o,i[11],s,!1),cu}function du(e,t,n,r,s,i,o){const d=xe(),p=qi(d,t,n,r,s,i);return p!==Ot&&kr(Nt(),$t(),d,e,p,d[11],o,!1),du}function eh(e,t,n,r,s){const i=e[n+1],o=null===t;let d=r?ns(i):ks(i),p=!1;for(;0!==d&&(!1===p||o);){const w=e[d+1];y_(e[d],t)&&(p=!0,e[d+1]=r?bl(w):El(w)),d=r?ns(w):ks(w)}p&&(e[n+1]=r?El(i):bl(i))}function y_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ki(e,t)>=0}const Gn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function th(e){return e.substring(Gn.key,Gn.keyEnd)}function nh(e,t){const n=Gn.textEnd;return n===t?-1:(t=Gn.keyEnd=function E_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Gn.key=t,n),so(e,t,n))}function so(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function fu(e,t,n){return is(e,t,n,!1),fu}function hu(e,t){return is(e,t,null,!0),hu}function ah(e){os(Fr,_s,e,!0)}function _s(e,t){for(let n=function __(e){return function sh(e){Gn.key=0,Gn.keyEnd=0,Gn.value=0,Gn.valueEnd=0,Gn.textEnd=e.length}(e),nh(e,so(e,0,Gn.textEnd))}(t);n>=0;n=nh(t,n))Fr(e,th(t),!0)}function is(e,t,n,r){const s=xe(),i=Nt(),o=a(2);i.firstUpdatePass&&uh(i,e,o,r),t!==Ot&&ar(s,o,t)&&dh(i,i.data[Qt()],s,s[11],e,s[o+1]=function P_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Q(Fs(e)))),e}(t,n),r,o)}function os(e,t,n,r){const s=Nt(),i=a(2);s.firstUpdatePass&&uh(s,null,i,r);const o=xe();if(n!==Ot&&ar(o,i,n)){const d=s.data[Qt()];if(hh(d,r)&&!lh(s,i)){let p=r?d.classesWithoutHost:d.stylesWithoutHost;null!==p&&(n=ae(p,n||"")),nu(s,d,o,n,r)}else!function O_(e,t,n,r,s,i,o,d){s===Ot&&(s=$e);let p=0,E=0,w=0<s.length?s[0]:null,O=0<i.length?i[0]:null;for(;null!==w||null!==O;){const V=p<s.length?s[p+1]:void 0,oe=E<i.length?i[E+1]:void 0;let Ve,Te=null;w===O?(p+=2,E+=2,V!==oe&&(Te=O,Ve=oe)):null===O||null!==w&&w<O?(p+=2,Te=w):(E+=2,Te=O,Ve=oe),null!==Te&&dh(e,t,n,r,Te,Ve,o,d),w=p<s.length?s[p]:null,O=E<i.length?i[E]:null}}(s,d,o,o[11],o[i+1],o[i+1]=function I_(e,t,n){if(null==n||""===n)return $e;const r=[],s=Fs(n);if(Array.isArray(s))for(let i=0;i<s.length;i++)e(r,s[i],!0);else if("object"==typeof s)for(const i in s)s.hasOwnProperty(i)&&e(r,i,s[i]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,i)}}function lh(e,t){return t>=e.expandoStartIndex}function uh(e,t,n,r){const s=e.data;if(null===s[n+1]){const i=s[Qt()],o=lh(e,n);hh(i,r)&&null===t&&!o&&(t=!1),t=function T_(e,t,n,r){const s=B(e);let i=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=Lo(n=pu(null,e,t,n,r),t.attrs,r),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==s)if(n=pu(s,e,t,n,r),null===i){let p=function S_(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ks(r))return e[ns(r)]}(e,t,r);void 0!==p&&Array.isArray(p)&&(p=pu(null,e,t,p[1],r),p=Lo(p,t.attrs,r),function M_(e,t,n,r){e[ns(n?t.classBindings:t.styleBindings)]=r}(e,t,r,p))}else i=function A_(e,t,n){let r;const s=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<s;i++)r=Lo(r,e[i].hostAttrs,n);return Lo(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(s,i,t,r),function g_(e,t,n,r,s,i){let o=i?t.classBindings:t.styleBindings,d=ns(o),p=ks(o);e[r]=n;let w,E=!1;if(Array.isArray(n)){const O=n;w=O[1],(null===w||ki(O,w)>0)&&(E=!0)}else w=n;if(s)if(0!==p){const V=ns(e[d+1]);e[r+1]=fa(V,d),0!==V&&(e[V+1]=Cl(e[V+1],r)),e[d+1]=function Iy(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=fa(d,0),0!==d&&(e[d+1]=Cl(e[d+1],r)),d=r;else e[r+1]=fa(p,0),0===d?d=r:e[p+1]=Cl(e[p+1],r),p=r;E&&(e[r+1]=El(e[r+1])),eh(e,w,r,!0),eh(e,w,r,!1),function m_(e,t,n,r,s){const i=s?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ki(i,t)>=0&&(n[r+1]=bl(n[r+1]))}(t,w,e,r,i),o=fa(d,p),i?t.classBindings=o:t.styleBindings=o}(s,i,t,n,o,r)}}function pu(e,t,n,r,s){let i=null;const o=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<o&&(i=t[d],r=Lo(r,i.hostAttrs,s),i!==e);)d++;return null!==e&&(n.directiveStylingLast=d),r}function Lo(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?s=o:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Fr(e,o,!!n||t[++i]))}return void 0===e?null:e}function dh(e,t,n,r,s,i,o,d){if(!(3&t.type))return;const p=e.data,E=p[d+1];Sa(function bd(e){return 1==(1&e)}(E)?fh(p,t,n,s,ks(E),o):void 0)||(Sa(i)||function Cd(e){return 2==(2&e)}(E)&&(i=fh(p,null,n,s,d,o)),function yy(e,t,n,r,s){const i=Bt(e);if(t)s?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:gs.DashCase;if(null==s)i?e.removeStyle(n,r,o):n.style.removeProperty(r);else{const d="string"==typeof s&&s.endsWith("!important");d&&(s=s.slice(0,-10),o|=gs.Important),i?e.setStyle(n,r,s,o):n.style.setProperty(r,s,d?"important":"")}}}(r,o,ve(Qt(),n),s,i))}function fh(e,t,n,r,s,i){const o=null===t;let d;for(;s>0;){const p=e[s],E=Array.isArray(p),w=E?p[1]:p,O=null===w;let V=n[s+1];V===Ot&&(V=O?$e:void 0);let oe=O?Ka(V,r):w===r?V:void 0;if(E&&!Sa(oe)&&(oe=Ka(p,r)),Sa(oe)&&(d=oe,o))return d;const Te=e[s+1];s=o?ns(Te):ks(Te)}if(null!==t){let p=i?t.residualClasses:t.residualStyles;null!=p&&(d=Ka(p,r))}return d}function Sa(e){return void 0!==e}function hh(e,t){return 0!=(e.flags&(t?16:32))}function ph(e,t=""){const n=xe(),r=Nt(),s=e+20,i=r.firstCreatePass?Vi(r,s,1,t,null):r.data[s],o=n[s]=function hl(e,t){return Bt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);ca(r,n,o,i),Jn(i,!1)}function gu(e){return Ma("",e,""),gu}function Ma(e,t,n){const r=xe(),s=Qi(r,e,t,n);return s!==Ot&&Ls(r,Qt(),s),Ma}function mu(e,t,n,r,s){const i=xe(),o=qi(i,e,t,n,r,s);return o!==Ot&&Ls(i,Qt(),o),mu}function yu(e,t,n,r,s,i,o,d,p){const E=xe(),w=function Ji(e,t,n,r,s,i,o,d,p,E){const O=qr(e,Or(),n,s,o,p);return a(4),O?t+Fe(n)+r+Fe(s)+i+Fe(o)+d+Fe(p)+E:Ot}(E,e,t,n,r,s,i,o,d,p);return w!==Ot&&Ls(E,Qt(),w),yu}function Eh(e,t,n){os(Fr,_s,Qi(xe(),e,t,n),!0)}function vu(e,t,n){const r=xe();return ar(r,C(),t)&&kr(Nt(),$t(),r,e,t,r[11],n,!0),vu}function _u(e,t,n){const r=xe();if(ar(r,C(),t)){const i=Nt(),o=$t();kr(i,o,r,e,t,Qd(B(i.data),o,r),n,!0)}return _u}const yi=void 0;var q_=["en",[["a","p"],["AM","PM"],yi],[["AM","PM"],yi,yi],[["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"]],yi,[["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"]],yi,[["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}",yi,"{1} 'at' {0}",yi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Q_(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let io={};function Du(e){const t=function Z_(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=xh(t);if(n)return n;const r=t.split("-")[0];if(n=xh(r),n)return n;if("en"===r)return q_;throw new Error(`Missing locale data for the locale "${e}".`)}function Ph(e){return Du(e)[vt.PluralCase]}function xh(e){return e in io||(io[e]=ct.ng&&ct.ng.common&&ct.ng.common.locales&&ct.ng.common.locales[e]),io[e]}var vt=(()=>((vt=vt||{})[vt.LocaleId=0]="LocaleId",vt[vt.DayPeriodsFormat=1]="DayPeriodsFormat",vt[vt.DayPeriodsStandalone=2]="DayPeriodsStandalone",vt[vt.DaysFormat=3]="DaysFormat",vt[vt.DaysStandalone=4]="DaysStandalone",vt[vt.MonthsFormat=5]="MonthsFormat",vt[vt.MonthsStandalone=6]="MonthsStandalone",vt[vt.Eras=7]="Eras",vt[vt.FirstDayOfWeek=8]="FirstDayOfWeek",vt[vt.WeekendRange=9]="WeekendRange",vt[vt.DateFormat=10]="DateFormat",vt[vt.TimeFormat=11]="TimeFormat",vt[vt.DateTimeFormat=12]="DateTimeFormat",vt[vt.NumberSymbols=13]="NumberSymbols",vt[vt.NumberFormats=14]="NumberFormats",vt[vt.CurrencyCode=15]="CurrencyCode",vt[vt.CurrencySymbol=16]="CurrencySymbol",vt[vt.CurrencyName=17]="CurrencyName",vt[vt.Currencies=18]="Currencies",vt[vt.Directionality=19]="Directionality",vt[vt.PluralCase=20]="PluralCase",vt[vt.ExtraData=21]="ExtraData",vt))();const Aa="en-US";let Rh=Aa;function bu(e,t,n,r,s){if(e=$(e),Array.isArray(e))for(let i=0;i<e.length;i++)bu(e[i],t,n,r,s);else{const i=Nt(),o=xe();let d=Wi(e)?e:$(e.provide),p=nf(e);const E=hn(),w=1048575&E.providerIndexes,O=E.directiveStart,V=E.providerIndexes>>20;if(Wi(e)||!e.multi){const oe=new tn(p,s,ko),Te=Tu(d,t,s?w:w+V,O);-1===Te?(u(hi(E,o),i,d),wu(i,e,t.length),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(oe),o.push(oe)):(n[Te]=oe,o[Te]=oe)}else{const oe=Tu(d,t,w+V,O),Te=Tu(d,t,w,w+V),Ve=oe>=0&&n[oe],Ke=Te>=0&&n[Te];if(s&&!Ke||!s&&!Ve){u(hi(E,o),i,d);const nt=function QD(e,t,n,r,s){const i=new tn(e,n,ko);return i.multi=[],i.index=t,i.componentProviders=0,rp(i,s,r&&!n),i}(s?YD:KD,n.length,s,r,p);!s&&Ke&&(n[Te].providerFactory=nt),wu(i,e,t.length,0),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(nt),o.push(nt)}else wu(i,e,oe>-1?oe:Te,rp(n[s?Te:oe],p,!s&&r));!s&&r&&Ke&&n[Te].componentProviders++}}}function wu(e,t,n,r){const s=Wi(t),i=function Cv(e){return!!e.useClass}(t);if(s||i){const p=(i?$(t.useClass):t).prototype.ngOnDestroy;if(p){const E=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const w=E.indexOf(n);-1===w?E.push(n,[r,p]):E[w+1].push(r,p)}else E.push(n,p)}}}function rp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Tu(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function KD(e,t,n,r){return Su(this.multi,[])}function YD(e,t,n,r){const s=this.multi;let i;if(this.providerFactory){const o=this.providerFactory.componentProviders,d=st(n,n[1],this.providerFactory.index,r);i=d.slice(0,o),Su(s,i);for(let p=o;p<d.length;p++)i.push(d[p])}else i=[],Su(s,i);return i}function Su(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function sp(e,t=[]){return n=>{n.providersResolver=(r,s)=>function WD(e,t,n){const r=Nt();if(r.firstCreatePass){const s=Un(e);bu(n,r.data,r.blueprint,s,!0),bu(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class ip{}class JD{resolveComponentFactory(t){throw function ZD(e){const t=Error(`No component factory found for ${Q(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ra=(()=>{class e{}return e.NULL=new JD,e})();function XD(){return ao(hn(),xe())}function ao(e,t){return new Vo(Me(e,t))}let Vo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=XD,e})();function eE(e){return e instanceof Vo?e.nativeElement:e}class ap{}let tE=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function rE(){const e=xe(),n=It(hn().index,e);return function nE(e){return e[11]}(fn(n)?n:e)}(),e})(),sE=(()=>{class e{}return e.\u0275prov=we({token:e,providedIn:"root",factory:()=>null}),e})();class lp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const iE=new lp("13.2.7"),Mu={};function Na(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(m(i)),Pn(i))for(let d=10;d<i.length;d++){const p=i[d],E=p[1].firstChild;null!==E&&Na(p[1],p,E,r)}const o=n.type;if(8&o)Na(e,t,n.child,r);else if(32&o){const d=cl(n,t);let p;for(;p=d();)r.push(p)}else if(16&o){const d=cd(t,n);if(Array.isArray(d))r.push(...d);else{const p=Io(t[16]);Na(p[1],p,d,r,!0)}}n=s?n.projectionNext:n.next}return r}class $o{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return Na(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Pn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(gl(t,r),ea(n,r))}this._attachedToViewContainer=!1}td(this._lView[1],this._lView)}onDestroy(t){Ld(this._lView[1],this._lView,null,t)}markForCheck(){Bl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ul(this._lView[1],this._lView,this.context)}checkNoChanges(){!function dv(e,t,n){Is(!0);try{Ul(e,t,n)}finally{Is(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Ee(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ay(e,t){Oo(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ee(902,"");this._appRef=t}}class oE extends $o{constructor(t){super(t),this._view=t}detectChanges(){Wd(this._view)}checkNoChanges(){!function fv(e){Is(!0);try{Wd(e)}finally{Is(!1)}}(this._view)}get context(){return null}}class up extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new Au(n,this.ngModule)}}function cp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Au extends ip{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function My(e){return e.map(Sy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return cp(this.componentDef.inputs)}get outputs(){return cp(this.componentDef.outputs)}create(t,n,r,s){const i=(s=s||this.ngModule)?function lE(e,t){return{get:(n,r,s)=>{const i=e.get(n,Mu,s);return i!==Mu||r===Mu?i:t.get(n,r,s)}}}(t,s.injector):t,o=i.get(ap,_),d=i.get(sE,null),p=o.createRenderer(null,this.componentDef),E=this.componentDef.selectors[0][0]||"div",w=r?function kd(e,t,n){if(Bt(e))return e.selectRootElement(t,n===_e.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(p,r,this.componentDef.encapsulation):pl(o.createRenderer(null,this.componentDef),E,function aE(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(E)),O=this.componentDef.onPush?576:528,V=function gf(e,t){return{components:[],scheduler:e||Xm,clean:hv,playerHandler:t||null,flags:0}}(),oe=ga(0,null,null,1,0,null,null,null,null,null),Te=Po(null,oe,V,O,null,null,o,p,d,i);let Ve,Ke;_t(Te);try{const nt=function hf(e,t,n,r,s,i){const o=n[1];n[20]=e;const p=Vi(o,20,2,"#host",null),E=p.mergedAttrs=t.hostAttrs;null!==E&&(ya(p,E,!0),null!==e&&(Nn(s,e,E),null!==p.classes&&Dl(s,e,p.classes),null!==p.styles&&hd(s,e,p.styles)));const w=r.createRenderer(e,t),O=Po(n,Nd(t),null,t.onPush?64:16,n[20],p,r,w,i||null,null);return o.firstCreatePass&&(u(hi(p,n),o,t.type),Vd(o,p),$d(p,n.length,1)),ma(n,O),n[20]=O}(w,this.componentDef,Te,o,p);if(w)if(r)Nn(p,w,["ng-version",iE.full]);else{const{attrs:Pe,classes:ht}=function Ay(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===s?""!==i&&t.push(i,e[++r]):8===s&&n.push(i);else{if(!ts(s))break;s=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Pe&&Nn(p,w,Pe),ht&&ht.length>0&&Dl(p,w,ht.join(" "))}if(Ke=Yt(oe,20),void 0!==n){const Pe=Ke.projection=[];for(let ht=0;ht<this.ngContentSelectors.length;ht++){const zt=n[ht];Pe.push(null!=zt?Array.from(zt):null)}}Ve=function pf(e,t,n,r,s){const i=n[1],o=function Qy(e,t,n){const r=hn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),zd(e,r,t,$i(e,t,1,null),n));const s=st(t,e,r.directiveStart,r);or(s,t);const i=Me(r,t);return i&&or(i,t),s}(i,n,t);if(r.components.push(o),e[8]=o,s&&s.forEach(p=>p(o,t)),t.contentQueries){const p=hn();t.contentQueries(1,o,p.directiveStart)}const d=hn();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(nr(d.index),Ud(n[1],d,0,d.directiveStart,d.directiveEnd,t),Hd(t,o)),o}(nt,this.componentDef,Te,V,[Rv]),xo(oe,Te,null)}finally{yn()}return new cE(this.componentType,Ve,ao(Ke,Te),Te,Ke)}}class cE extends class qD{}{constructor(t,n,r,s,i){super(),this.location=r,this._rootLView=s,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new oE(s),this.componentType=t}get injector(){return new Cr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class lo{}class dp{}const uo=new Map;class pp extends lo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new up(this);const r=dt(t);this._bootstrapComponents=ps(r.bootstrap),this._r3Injector=tf(t,n,[{provide:lo,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],Q(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=rs.THROW_IF_NOT_FOUND,r=ye.Default){return t===rs||t===lo||t===va?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Iu extends dp{constructor(t){super(),this.moduleType=t,null!==dt(t)&&function fE(e){const t=new Set;!function n(r){const s=dt(r,!0),i=s.id;null!==i&&(function fp(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Q(t)} vs ${Q(t.name)}`)}(i,uo.get(i),r),uo.set(i,r));const o=ps(s.imports);for(const d of o)t.has(d)||(t.add(d),n(d))}(e)}(t)}create(t){return new pp(this.moduleType,t)}}function gp(e,t,n){const r=Vn()+e,s=xe();return s[r]===Ot?ys(s,r,n?t.call(n):t()):Fo(s,r)}function mp(e,t,n,r){return Ep(xe(),Vn(),e,t,n,r)}function yp(e,t,n,r,s){return Cp(xe(),Vn(),e,t,n,r,s)}function vp(e,t,n,r,s,i){return function bp(e,t,n,r,s,i,o,d){const p=t+n;return function Da(e,t,n,r,s){const i=mi(e,t,n,r);return ar(e,t+2,s)||i}(e,p,s,i,o)?ys(e,p+3,d?r.call(d,s,i,o):r(s,i,o)):zo(e,p+3)}(xe(),Vn(),e,t,n,r,s,i)}function _p(e,t,n,r,s,i,o){return function wp(e,t,n,r,s,i,o,d,p){const E=t+n;return qr(e,E,s,i,o,d)?ys(e,E+4,p?r.call(p,s,i,o,d):r(s,i,o,d)):zo(e,E+4)}(xe(),Vn(),e,t,n,r,s,i,o)}function Dp(e,t,n,r,s,i,o,d){const p=Vn()+e,E=xe(),w=qr(E,p,n,r,s,i);return ar(E,p+4,o)||w?ys(E,p+5,d?t.call(d,n,r,s,i,o):t(n,r,s,i,o)):Fo(E,p+5)}function zo(e,t){const n=e[t];return n===Ot?void 0:n}function Ep(e,t,n,r,s,i){const o=t+n;return ar(e,o,s)?ys(e,o+1,i?r.call(i,s):r(s)):zo(e,o+1)}function Cp(e,t,n,r,s,i,o){const d=t+n;return mi(e,d,s,i)?ys(e,d+2,o?r.call(o,s,i):r(s,i)):zo(e,d+2)}function Sp(e,t){const n=Nt();let r;const s=e+20;n.firstCreatePass?(r=function yE(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=Ar(r.type)),o=at(ko);try{const d=Ii(!1),p=i();return Ii(d),function Gv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,xe(),s,p),p}finally{at(o)}}function Mp(e,t,n){const r=e+20,s=xe(),i=Gt(s,r);return Go(s,r)?Ep(s,Vn(),t,i.transform,n,i):i.transform(n)}function Ap(e,t,n,r){const s=e+20,i=xe(),o=Gt(i,s);return Go(i,s)?Cp(i,Vn(),t,o.transform,n,r,o):o.transform(n,r)}function Go(e,t){return e[1].data[t].pure}function Ou(e){return t=>{setTimeout(e,void 0,t)}}const Ds=class EE extends f.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var s,i,o;let d=t,p=n||(()=>null),E=r;if(t&&"object"==typeof t){const O=t;d=null===(s=O.next)||void 0===s?void 0:s.bind(O),p=null===(i=O.error)||void 0===i?void 0:i.bind(O),E=null===(o=O.complete)||void 0===o?void 0:o.bind(O)}this.__isAsync&&(p=Ou(p),d&&(d=Ou(d)),E&&(E=Ou(E)));const w=super.subscribe({next:d,error:p,complete:E});return t instanceof y.w&&t.add(w),w}};function CE(){return this._results[Ki()]()}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=Ki(),r=Fa.prototype;r[n]||(r[n]=CE)}get changes(){return this._changes||(this._changes=new Ds)}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 r=this;r.dirty=!1;const s=Qr(t);(this._changesDetected=!function kg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],i=t[r];if(n&&(s=n(s),i=n(i)),i!==s)return!1}return!0}(r._results,s,n))&&(r._results=s,r.length=s.length,r.last=s[this.length-1],r.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Wo=(()=>{class e{}return e.__NG_ELEMENT_ID__=TE,e})();const bE=Wo,wE=class extends bE{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Po(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),xo(n,r,t),new $o(r)}};function TE(){return ka(hn(),xe())}function ka(e,t){return 4&e.type?new wE(t,e,ao(e,t)):null}let La=(()=>{class e{}return e.__NG_ELEMENT_ID__=SE,e})();function SE(){return Pp(hn(),xe())}const ME=La,Ip=class extends ME{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ao(this._hostTNode,this._hostLView)}get injector(){return new Cr(this._hostTNode,this._hostLView)}get parentInjector(){const t=c(this._hostTNode,this._hostLView);if(qo(t)){const n=Rs(t,this._hostLView),r=Ys(t);return new Cr(n[1].data[r+8],n)}return new Cr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Op(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const s=t.createEmbeddedView(n||{});return this.insert(s,r),s}createComponent(t,n,r,s,i){const o=t&&!function yo(e){return"function"==typeof e}(t);let d;if(o)d=n;else{const O=n||{};d=O.index,r=O.injector,s=O.projectableNodes,i=O.ngModuleRef}const p=o?t:new Au(ee(t)),E=r||this.parentInjector;if(!i&&null==p.ngModule){const V=(o?E:this.parentInjector).get(lo,null);V&&(i=V)}const w=p.create(E,s,void 0,i);return this.insert(w.hostView,d),w}insert(t,n){const r=t._lView,s=r[1];if(function Wt(e){return Pn(e[3])}(r)){const w=this.indexOf(t);if(-1!==w)this.detach(w);else{const O=r[3],V=new Ip(O,O[6],O[3]);V.detach(V.indexOf(t))}}const i=this._adjustIndex(n),o=this._lContainer;!function uy(e,t,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=t),r<i-10?(t[4]=n[s],gc(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function cy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const d=t[19];null!==d&&d.insertView(e),t[2]|=128}(s,r,o,i);const d=vl(i,o),p=r[11],E=ua(p,o[7]);return null!==E&&function oy(e,t,n,r,s,i){r[0]=s,r[6]=t,Oo(e,r,n,1,s,i)}(s,o[6],p,r,E,d),t.attachToViewContainerRef(),gc(Pu(o),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Op(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=gl(this._lContainer,n);r&&(ea(Pu(this._lContainer),n),td(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=gl(this._lContainer,n);return r&&null!=ea(Pu(this._lContainer),n)?new $o(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Op(e){return e[8]}function Pu(e){return e[8]||(e[8]=[])}function Pp(e,t){let n;const r=t[e.index];if(Pn(r))n=r;else{let s;if(8&e.type)s=m(r);else{const i=t[11];s=i.createComment("");const o=Me(e,t);gi(i,ua(i,o),s,function py(e,t){return Bt(e)?e.nextSibling(t):t.nextSibling}(i,o),!1)}t[e.index]=n=Gd(r,t,s,e),ma(t,n)}return new Ip(n,e,t)}class xu{constructor(t){this.queryList=t,this.matches=null}clone(){return new xu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ru{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let i=0;i<r;i++){const o=n.getByIndex(i);s.push(this.queries[o.indexInDeclarationView].clone())}return new Ru(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Up(t,n).matches&&this.queries[n].setDirty()}}class xp{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Nu{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const s=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,s);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new Nu(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Fu{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Fu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const i=r[s];this.matchTNodeWithReadOption(t,n,OE(n,i)),this.matchTNodeWithReadOption(t,n,kt(n,t,i,!1,!1))}else r===Wo?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,kt(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Vo||s===La||s===Wo&&4&n.type)this.addMatch(n.index,-2);else{const i=kt(n,t,s,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function OE(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function xE(e,t,n,r){return-1===n?function PE(e,t){return 11&e.type?ao(e,t):4&e.type?ka(e,t):null}(t,e):-2===n?function RE(e,t,n){return n===Vo?ao(t,e):n===Wo?ka(t,e):n===La?Pp(t,e):void 0}(e,t,r):st(e,e[1],n,t)}function Rp(e,t,n,r){const s=t[19].queries[r];if(null===s.matches){const i=e.data,o=n.matches,d=[];for(let p=0;p<o.length;p+=2){const E=o[p];d.push(E<0?null:xE(t,i[E],o[p+1],n.metadata.read))}s.matches=d}return s.matches}function ku(e,t,n,r){const s=e.queries.getByIndex(n),i=s.matches;if(null!==i){const o=Rp(e,t,s,n);for(let d=0;d<i.length;d+=2){const p=i[d];if(p>0)r.push(o[d/2]);else{const E=i[d+1],w=t[-p];for(let O=10;O<w.length;O++){const V=w[O];V[17]===V[3]&&ku(V[1],V,E,r)}if(null!==w[9]){const O=w[9];for(let V=0;V<O.length;V++){const oe=O[V];ku(oe[1],oe,E,r)}}}}}return r}function Np(e){const t=xe(),n=Nt(),r=le();Ce(r+1);const s=Up(n,r);if(e.dirty&&Rt(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const i=s.crossesNgTemplate?ku(n,t,r,[]):Rp(n,t,s,r);e.reset(i,eE),e.notifyOnChanges()}return!0}return!1}function Fp(e,t,n){const r=Nt();r.firstCreatePass&&(jp(r,new xp(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Bp(r,xe(),t)}function kp(e,t,n,r){const s=Nt();if(s.firstCreatePass){const i=hn();jp(s,new xp(t,n,r),i.index),function FE(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}Bp(s,xe(),n)}function Lp(){return function NE(e,t){return e[19].queries[t].queryList}(xe(),le())}function Bp(e,t,n){const r=new Fa(4==(4&n));Ld(e,t,r,r.destroy),null===t[19]&&(t[19]=new Ru),t[19].queries.push(new xu(r))}function jp(e,t,n){null===e.queries&&(e.queries=new Nu),e.queries.track(new Fu(t,n))}function Up(e,t){return e.queries.getByIndex(t)}function Hp(e,t){return ka(e,t)}const JE=go("Input",e=>({bindingPropertyName:e})),XE=go("Output",e=>({bindingPropertyName:e})),eC=go("HostBinding",e=>({hostPropertyName:e}));function Ua(...e){}const sg=new Fn("Application Initializer");let Vu=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const i=this.appInits[s]();if(iu(i))n.push(i);else if(Hf(i)){const o=new Promise((d,p)=>{i.subscribe({complete:d,error:p})});n.push(o)}}Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Xn(sg,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ig=new Fn("AppId",{providedIn:"root",factory:function og(){return`${$u()}${$u()}${$u()}`}});function $u(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ag=new Fn("Platform Initializer"),lg=new Fn("Platform ID"),ug=new Fn("appBootstrapListener");let cg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e})();const zu=new Fn("LocaleId",{providedIn:"root",factory:()=>bc(zu,ye.Optional|ye.SkipSelf)||function tC(){return"undefined"!=typeof $localize&&$localize.locale||Aa}()}),nC=new Fn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let sC=(()=>{class e{compileModuleSync(n){return new Iu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=ps(dt(n).declarations).reduce((o,d)=>{const p=ee(d);return p&&o.push(new Au(p)),o},[]);return new rC(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const oC=(()=>Promise.resolve(0))();function Gu(e){"undefined"==typeof Zone?oC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class as{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ds(!1),this.onMicrotaskEmpty=new Ds(!1),this.onStable=new Ds(!1),this.onError=new Ds(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function aC(){let e=ct.requestAnimationFrame,t=ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function cC(e){const t=()=>{!function uC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ct,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ku(e),e.isCheckStableRunning=!0,Wu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ku(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,d)=>{try{return dg(e),n.invokeTask(s,i,o,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),fg(e)}},onInvoke:(n,r,s,i,o,d,p)=>{try{return dg(e),n.invoke(s,i,o,d,p)}finally{e.shouldCoalesceRunChangeDetection&&t(),fg(e)}},onHasTask:(n,r,s,i)=>{n.hasTask(s,i),r===s&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ku(e),Wu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,s,i)=>(n.handleError(s,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!as.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(as.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+s,t,lC,Ua,Ua);try{return i.runTask(o,n,r)}finally{i.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function Wu(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 Ku(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function dg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fg(e){e._nesting--,Wu(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ds,this.onMicrotaskEmpty=new Ds,this.onStable=new Ds,this.onError=new Ds}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}let hg=(()=>{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:()=>{as.assertNotInAngularZone(),Gu(()=>{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())Gu(()=>{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(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.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,r,s){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:s})}whenStable(n,r,s){if(s&&!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,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,s){return[]}}return e.\u0275fac=function(n){return new(n||e)(Xn(as))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e})(),pg=(()=>{class e{constructor(){this._applications=new Map,Yu.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return Yu.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e})();class fC{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function hC(e){Yu=e}let ls,Yu=new fC;const gg=new Fn("AllowMultipleToken");class mC{constructor(t,n){this.name=t,this.token=n}}function mg(e,t,n=[]){const r=`Platform: ${t}`,s=new Fn(r);return(i=[])=>{let o=yg();if(!o||o.injector.get(gg,!1))if(e)e(n.concat(i).concat({provide:s,useValue:!0}));else{const d=n.concat(i).concat({provide:s,useValue:!0},{provide:Vl,useValue:"platform"});!function yC(e){if(ls&&!ls.destroyed&&!ls.injector.get(gg,!1))throw new Ee(400,"");ls=e.get(vg);const t=e.get(ag,null);t&&t.forEach(n=>n())}(rs.create({providers:d,name:r}))}return function vC(e){const t=yg();if(!t)throw new Ee(401,"");return t}()}}function yg(){return ls&&!ls.destroyed?ls:null}let vg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const d=function _C(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new as({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),p=[{provide:as,useValue:d}];return d.run(()=>{const E=rs.create({providers:p,parent:this.injector,name:n.moduleType.name}),w=n.create(E),O=w.injector.get(la,null);if(!O)throw new Ee(402,"");return d.runOutsideAngular(()=>{const V=d.onError.subscribe({next:oe=>{O.handleError(oe)}});w.onDestroy(()=>{qu(this._modules,w),V.unsubscribe()})}),function DC(e,t,n){try{const r=n();return iu(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(O,d,()=>{const V=w.injector.get(Vu);return V.runInitializers(),V.donePromise.then(()=>(function tD(e){Kt(e,"Expected localeId to be defined"),"string"==typeof e&&(Rh=e.toLowerCase().replace(/_/g,"-"))}(w.injector.get(zu,Aa)||Aa),this._moduleDoBootstrap(w),w))})})}bootstrapModule(n,r=[]){const s=_g({},r);return function pC(e,t,n){const r=new Iu(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,s))}_moduleDoBootstrap(n){const r=n.injector.get(Qu);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new Ee(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ee(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)(Xn(rs))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e})();function _g(e,t){return Array.isArray(t)?t.reduce(_g,e):Object.assign(Object.assign({},e),t)}let Qu=(()=>{class e{constructor(n,r,s,i,o){this._zone=n,this._injector=r,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=o,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 d=new se.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),p=new se.y(E=>{let w;this._zone.runOutsideAngular(()=>{w=this._zone.onStable.subscribe(()=>{as.assertNotInAngularZone(),Gu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const O=this._zone.onUnstable.subscribe(()=>{as.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{w.unsubscribe(),O.unsubscribe()}});this.isStable=(0,X.T)(d,p.pipe((0,F.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new Ee(405,"");let s;s=n instanceof ip?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);const i=function gC(e){return e.isBoundToModule}(s)?void 0:this._injector.get(lo),d=s.create(rs.NULL,[],r||s.selector,i),p=d.location.nativeElement,E=d.injector.get(hg,null),w=E&&d.injector.get(pg);return E&&w&&w.registerApplication(p,E),d.onDestroy(()=>{this.detachView(d.hostView),qu(this.components,d),w&&w.unregisterApplication(p)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new Ee(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 r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;qu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(ug,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(Xn(as),Xn(rs),Xn(la),Xn(Ra),Xn(Vu))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Eg=!0;function CC(){Eg=!1}let bC=(()=>{class e{}return e.__NG_ELEMENT_ID__=wC,e})();function wC(e){return function TC(e,t,n){if(Tr(e)&&!n){const r=It(e.index,t);return new $o(r,r)}return 47&e.type?new $o(t[16],t):null}(hn(),xe(),16==(16&e))}class Sg{constructor(){}supports(t){return No(t)}create(t){return new PC(t)}}const OC=(e,t)=>t;class PC{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,r=this._removalsHead,s=0,i=null;for(;n||r;){const o=!r||n&&n.currentIndex<Ag(r,s,i)?n:r,d=Ag(o,s,i),p=o.currentIndex;if(o===r)s--,r=r._nextRemoved;else if(n=n._next,null==o.previousIndex)s++;else{i||(i=[]);const E=d-s,w=p-s;if(E!=w){for(let V=0;V<E;V++){const oe=V<i.length?i[V]:i[V]=0,Te=oe+V;w<=Te&&Te<E&&(i[V]=oe+1)}i[o.previousIndex]=w-E}}d!==p&&t(o,d,p)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!No(t))throw new Ee(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,i,o,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)i=t[d],o=this._trackByFn(d,i),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,i,o,d)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,o,d),r=!0),n=n._next}else s=0,function $v(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Ki()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,d=>{o=this._trackByFn(s,d),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,d,o,s)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,o,s),r=!0),n=n._next,s++}),this.length=s;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,r,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,s)):t=this._addAfter(new xC(n,r),i,s),t}_verifyReinsertion(t,n,r,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Mg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._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 Mg),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 xC{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Mg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new RC,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.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 Ag(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class Ig{constructor(){}supports(t){return t instanceof Map||Ql(t)}create(){return new NC}}class NC{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Ql(t)))throw new Ee(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._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 s=this._records.get(t);this._maybeAddToChanges(s,n);const i=s._prev,o=s._next;return i&&(i._next=o),o&&(o._prev=i),s._next=null,s._prev=null,s}const r=new FC(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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(r=>n(t[r],r))}}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 Og(){return new tc([new Sg])}let tc=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Og()),deps:[[e,new bo,new Co]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new Ee(901,"")}}return e.\u0275prov=we({token:e,providedIn:"root",factory:Og}),e})();function Pg(){return new nc([new Ig])}let nc=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Pg()),deps:[[e,new bo,new Co]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Ee(901,"")}}return e.\u0275prov=we({token:e,providedIn:"root",factory:Pg}),e})();const BC=mg(null,"core",[{provide:lg,useValue:"unknown"},{provide:vg,deps:[rs]},{provide:pg,deps:[]},{provide:cg,deps:[]}]);let jC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Xn(Qu))},e.\u0275mod=wn({type:e}),e.\u0275inj=ce({}),e})()},6360:(Ze,pe,S)=>{S.d(pe,{Qb:()=>di,PW:()=>Or});var f=S(5e3),y=S(2313),se=S(1777);const X=!1;function x(C){return new f.vHH(3e3,X)}function Z(){return"undefined"!=typeof window&&void 0!==window.document}function ce(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ue(C){switch(C.length){case 0:return new se.ZN;case 1:return C[0];default:return new se.ZE(C)}}function mt(C,a,l,g,b={},I={}){const L=[],B=[];let le=-1,Ce=null;if(g.forEach(qe=>{const rt=qe.offset,_t=rt==le,Ft=_t&&Ce||{};Object.keys(qe).forEach(ut=>{let wt=ut,qt=qe[ut];if("offset"!==ut)switch(wt=a.normalizePropertyName(wt,L),qt){case se.k1:qt=b[ut];break;case se.l3:qt=I[ut];break;default:qt=a.normalizeStyleValue(ut,wt,qt,L)}Ft[wt]=qt}),_t||B.push(Ft),Ce=Ft,le=rt}),L.length)throw function Je(C){return new f.vHH(3502,X)}();return B}function ie(C,a,l,g){switch(a){case"start":C.onStart(()=>g(l&&fe(l,"start",C)));break;case"done":C.onDone(()=>g(l&&fe(l,"done",C)));break;case"destroy":C.onDestroy(()=>g(l&&fe(l,"destroy",C)))}}function fe(C,a,l){const g=l.totalTime,I=U(C.element,C.triggerName,C.fromState,C.toState,a||C.phaseName,null==g?C.totalTime:g,!!l.disabled),L=C._data;return null!=L&&(I._data=L),I}function U(C,a,l,g,b="",I=0,L){return{element:C,triggerName:a,fromState:l,toState:g,phaseName:b,totalTime:I,disabled:!!L}}function re(C,a,l){let g;return C instanceof Map?(g=C.get(a),g||C.set(a,g=l)):(g=C[a],g||(g=C[a]=l)),g}function te(C){const a=C.indexOf(":");return[C.substring(1,a),C.substr(a+1)]}let ne=(C,a)=>!1,Ae=(C,a,l)=>[],ye=null;function Qe(C){const a=C.parentNode||C.host;return a===ye?null:a}(ce()||"undefined"!=typeof Element)&&(Z()?(ye=(()=>document.documentElement)(),ne=(C,a)=>{for(;a;){if(a===C)return!0;a=Qe(a)}return!1}):ne=(C,a)=>C.contains(a),Ae=(C,a,l)=>{if(l)return Array.from(C.querySelectorAll(a));const g=C.querySelector(a);return g?[g]:[]});let lt=null,yt=!1;function de(C){lt||(lt=function H(){return"undefined"!=typeof document?document.body:null}()||{},yt=!!lt.style&&"WebkitAppearance"in lt.style);let a=!0;return lt.style&&!function at(C){return"ebkit"==C.substring(1,6)}(C)&&(a=C in lt.style,!a&&yt&&(a="Webkit"+C.charAt(0).toUpperCase()+C.substr(1)in lt.style)),a}const N=ne,Ne=Ae;let ke=(()=>{class C{validateStyleProperty(l){return de(l)}matchesElement(l,g){return!1}containsElement(l,g){return N(l,g)}getParentElement(l){return Qe(l)}query(l,g,b){return Ne(l,g,b)}computeStyle(l,g,b){return b||""}animate(l,g,b,I,L,B=[],le){return new se.ZN(b,I)}}return C.\u0275fac=function(l){return new(l||C)},C.\u0275prov=f.Yz7({token:C,factory:C.\u0275fac}),C})(),Ge=(()=>{class C{}return C.NOOP=new ke,C})();const Xt="ng-enter",sn="ng-leave",an="ng-trigger",$e=".ng-trigger",z="ng-animating",ue=".ng-animating";function k(C){if("number"==typeof C)return C;const a=C.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:De(parseFloat(a[1]),a[2])}function De(C,a){return"s"===a?1e3*C:C}function Lt(C,a,l){return C.hasOwnProperty("duration")?C:function An(C,a,l){let b,I=0,L="";if("string"==typeof C){const B=C.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===B)return a.push(x()),{duration:0,delay:0,easing:""};b=De(parseFloat(B[1]),B[2]);const le=B[3];null!=le&&(I=De(parseFloat(le),B[4]));const Ce=B[5];Ce&&(L=Ce)}else b=C;if(!l){let B=!1,le=a.length;b<0&&(a.push(function Y(){return new f.vHH(3100,X)}()),B=!0),I<0&&(a.push(function Q(){return new f.vHH(3101,X)}()),B=!0),B&&a.splice(le,0,x())}return{duration:b,delay:I,easing:L}}(C,a,l)}function Wn(C,a={}){return Object.keys(C).forEach(l=>{a[l]=C[l]}),a}function Kn(C,a,l={}){if(a)for(let g in C)l[g]=C[g];else Wn(C,l);return l}function br(C,a,l){return l?a+":"+l+";":""}function lr(C){let a="";for(let l=0;l<C.style.length;l++){const g=C.style.item(l);a+=br(0,g,C.style.getPropertyValue(g))}for(const l in C.style)C.style.hasOwnProperty(l)&&!l.startsWith("_")&&(a+=br(0,dn(l),C.style[l]));C.setAttribute("style",a)}function Ln(C,a,l){C.style&&(Object.keys(a).forEach(g=>{const b=dt(g);l&&!l.hasOwnProperty(g)&&(l[g]=C.style[b]),C.style[b]=a[g]}),ce()&&lr(C))}function wn(C,a){C.style&&(Object.keys(a).forEach(l=>{const g=dt(l);C.style[g]=""}),ce()&&lr(C))}function jn(C){return Array.isArray(C)?1==C.length?C[0]:(0,se.vP)(C):C}const K=new RegExp("{{\\s*(.+?)\\s*}}","g");function P(C){let a=[];if("string"==typeof C){let l;for(;l=K.exec(C);)a.push(l[1]);K.lastIndex=0}return a}function ee(C,a,l){const g=C.toString(),b=g.replace(K,(I,L)=>{let B=a[L];return a.hasOwnProperty(L)||(l.push(function j(C){return new f.vHH(3003,X)}()),B=""),B.toString()});return b==g?C:b}function Ie(C){const a=[];let l=C.next();for(;!l.done;)a.push(l.value),l=C.next();return a}const it=/-+([a-z0-9])/g;function dt(C){return C.replace(it,(...a)=>a[1].toUpperCase())}function dn(C){return C.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function vn(C,a,l){switch(a.type){case 7:return C.visitTrigger(a,l);case 0:return C.visitState(a,l);case 1:return C.visitTransition(a,l);case 2:return C.visitSequence(a,l);case 3:return C.visitGroup(a,l);case 4:return C.visitAnimate(a,l);case 5:return C.visitKeyframes(a,l);case 6:return C.visitStyle(a,l);case 8:return C.visitReference(a,l);case 9:return C.visitAnimateChild(a,l);case 10:return C.visitAnimateRef(a,l);case 11:return C.visitQuery(a,l);case 12:return C.visitStagger(a,l);default:throw function q(C){return new f.vHH(3004,X)}()}}function Qn(C,a){return window.getComputedStyle(C)[a]}function pn(C,a){const l=[];return"string"==typeof C?C.split(/\s*,\s*/).forEach(g=>function ur(C,a,l){if(":"==C[0]){const le=function ln(C,a){switch(C){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g)<parseFloat(l);default:return a.push(function xt(C){return new f.vHH(3016,X)}()),"* => *"}}(C,l);if("function"==typeof le)return void a.push(le);C=le}const g=C.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(function jt(C){return new f.vHH(3015,X)}()),a;const b=g[1],I=g[2],L=g[3];a.push(Et(b,L));"<"==I[0]&&!("*"==b&&"*"==L)&&a.push(Et(L,b))}(g,l,a)):l.push(C),l}const cr=new Set(["true","1"]),dr=new Set(["false","0"]);function Et(C,a){const l=cr.has(C)||dr.has(C),g=cr.has(a)||dr.has(a);return(b,I)=>{let L="*"==C||C==b,B="*"==a||a==I;return!L&&l&&"boolean"==typeof b&&(L=b?cr.has(C):dr.has(C)),!B&&g&&"boolean"==typeof I&&(B=I?cr.has(a):dr.has(a)),L&&B}}const fr=new RegExp("s*:selfs*,?","g");function yr(C,a,l,g){return new gn(C).build(a,l,g)}class gn{constructor(a){this._driver=a}build(a,l,g){const b=new Zn(l);this._resetContextStyleTimingState(b);const I=vn(this,jn(a),b);return b.unsupportedCSSPropertiesFound.size&&b.unsupportedCSSPropertiesFound.keys(),I}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,l){let g=l.queryCount=0,b=l.depCount=0;const I=[],L=[];return"@"==a.name.charAt(0)&&l.errors.push(function he(){return new f.vHH(3006,X)}()),a.definitions.forEach(B=>{if(this._resetContextStyleTimingState(l),0==B.type){const le=B,Ce=le.name;Ce.toString().split(/\s*,\s*/).forEach(qe=>{le.name=qe,I.push(this.visitState(le,l))}),le.name=Ce}else if(1==B.type){const le=this.visitTransition(B,l);g+=le.queryCount,b+=le.depCount,L.push(le)}else l.errors.push(function He(){return new f.vHH(3007,X)}())}),{type:7,name:a.name,states:I,transitions:L,queryCount:g,depCount:b,options:null}}visitState(a,l){const g=this.visitStyle(a.styles,l),b=a.options&&a.options.params||null;if(g.containsDynamicStyles){const I=new Set,L=b||{};g.styles.forEach(B=>{if(Hr(B)){const le=B;Object.keys(le).forEach(Ce=>{P(le[Ce]).forEach(qe=>{L.hasOwnProperty(qe)||I.add(qe)})})}}),I.size&&(Ie(I.values()),l.errors.push(function Ee(C,a){return new f.vHH(3008,X)}()))}return{type:0,name:a.name,style:g,options:b?{params:b}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const g=vn(this,jn(a.animation),l);return{type:1,matchers:pn(a.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:fn(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(g=>vn(this,g,l)),options:fn(a.options)}}visitGroup(a,l){const g=l.currentTime;let b=0;const I=a.steps.map(L=>{l.currentTime=g;const B=vn(this,L,l);return b=Math.max(b,l.currentTime),B});return l.currentTime=b,{type:3,steps:I,options:fn(a.options)}}visitAnimate(a,l){const g=function Es(C,a){let l=null;if(C.hasOwnProperty("duration"))l=C;else if("number"==typeof C)return Pn(Lt(C,a).duration,0,"");const g=C;if(g.split(/\s+/).some(I=>"{"==I.charAt(0)&&"{"==I.charAt(1))){const I=Pn(0,0,"");return I.dynamic=!0,I.strValue=g,I}return l=l||Lt(g,a),Pn(l.duration,l.delay,l.easing)}(a.timings,l.errors);l.currentAnimateTimings=g;let b,I=a.styles?a.styles:(0,se.oB)({});if(5==I.type)b=this.visitKeyframes(I,l);else{let L=a.styles,B=!1;if(!L){B=!0;const Ce={};g.easing&&(Ce.easing=g.easing),L=(0,se.oB)(Ce)}l.currentTime+=g.duration+g.delay;const le=this.visitStyle(L,l);le.isEmptyStep=B,b=le}return l.currentAnimateTimings=null,{type:4,timings:g,style:b,options:null}}visitStyle(a,l){const g=this._makeStyleAst(a,l);return this._validateStyleAst(g,l),g}_makeStyleAst(a,l){const g=[];Array.isArray(a.styles)?a.styles.forEach(L=>{"string"==typeof L?L==se.l3?g.push(L):l.errors.push(function Re(C){return new f.vHH(3002,X)}()):g.push(L)}):g.push(a.styles);let b=!1,I=null;return g.forEach(L=>{if(Hr(L)){const B=L,le=B.easing;if(le&&(I=le,delete B.easing),!b)for(let Ce in B)if(B[Ce].toString().indexOf("{{")>=0){b=!0;break}}}),{type:6,styles:g,easing:I,offset:a.offset,containsDynamicStyles:b,options:null}}_validateStyleAst(a,l){const g=l.currentAnimateTimings;let b=l.currentTime,I=l.currentTime;g&&I>0&&(I-=g.duration+g.delay),a.styles.forEach(L=>{"string"!=typeof L&&Object.keys(L).forEach(B=>{if(!this._driver.validateStyleProperty(B))return delete L[B],void l.unsupportedCSSPropertiesFound.add(B);const le=l.collectedStyles[l.currentQuerySelector],Ce=le[B];let qe=!0;Ce&&(I!=b&&I>=Ce.startTime&&b<=Ce.endTime&&(l.errors.push(function ze(C,a,l,g,b){return new f.vHH(3010,X)}()),qe=!1),I=Ce.startTime),qe&&(le[B]={startTime:I,endTime:b}),l.options&&function J(C,a,l){const g=a.params||{},b=P(C);b.length&&b.forEach(I=>{g.hasOwnProperty(I)||l.push(function ae(C){return new f.vHH(3001,X)}())})}(L[B],l.options,l.errors)})})}visitKeyframes(a,l){const g={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function me(){return new f.vHH(3011,X)}()),g;let I=0;const L=[];let B=!1,le=!1,Ce=0;const qe=a.steps.map(yn=>{const Cn=this._makeStyleAst(yn,l);let $n=null!=Cn.offset?Cn.offset:function Ht(C){if("string"==typeof C)return null;let a=null;if(Array.isArray(C))C.forEach(l=>{if(Hr(l)&&l.hasOwnProperty("offset")){const g=l;a=parseFloat(g.offset),delete g.offset}});else if(Hr(C)&&C.hasOwnProperty("offset")){const l=C;a=parseFloat(l.offset),delete l.offset}return a}(Cn.styles),Qt=0;return null!=$n&&(I++,Qt=Cn.offset=$n),le=le||Qt<0||Qt>1,B=B||Qt<Ce,Ce=Qt,L.push(Qt),Cn});le&&l.errors.push(function Le(){return new f.vHH(3012,X)}()),B&&l.errors.push(function Be(){return new f.vHH(3200,X)}());const rt=a.steps.length;let _t=0;I>0&&I<rt?l.errors.push(function Se(){return new f.vHH(3202,X)}()):0==I&&(_t=1/(rt-1));const Ft=rt-1,ut=l.currentTime,wt=l.currentAnimateTimings,qt=wt.duration;return qe.forEach((yn,Cn)=>{const $n=_t>0?Cn==Ft?1:_t*Cn:L[Cn],Qt=$n*qt;l.currentTime=ut+wt.delay+Qt,wt.duration=Qt,this._validateStyleAst(yn,l),yn.offset=$n,g.styles.push(yn)}),g}visitReference(a,l){return{type:8,animation:vn(this,jn(a.animation),l),options:fn(a.options)}}visitAnimateChild(a,l){return l.depCount++,{type:9,options:fn(a.options)}}visitAnimateRef(a,l){return{type:10,animation:this.visitReference(a.animation,l),options:fn(a.options)}}visitQuery(a,l){const g=l.currentQuerySelector,b=a.options||{};l.queryCount++,l.currentQuery=a;const[I,L]=function wr(C){const a=!!C.split(/\s*,\s*/).find(l=>":self"==l);return a&&(C=C.replace(fr,"")),C=C.replace(/@\*/g,$e).replace(/@\w+/g,l=>$e+"-"+l.substr(1)).replace(/:animating/g,ue),[C,a]}(a.selector);l.currentQuerySelector=g.length?g+" "+I:I,re(l.collectedStyles,l.currentQuerySelector,{});const B=vn(this,jn(a.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:I,limit:b.limit||0,optional:!!b.optional,includeSelf:L,animation:B,originalSelector:a.selector,options:fn(a.options)}}visitStagger(a,l){l.currentQuery||l.errors.push(function Ye(){return new f.vHH(3013,X)}());const g="full"===a.timings?{duration:0,delay:0,easing:"full"}:Lt(a.timings,l.errors,!0);return{type:12,animation:vn(this,jn(a.animation),l),timings:g,options:null}}}class Zn{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 Hr(C){return!Array.isArray(C)&&"object"==typeof C}function fn(C){return C?(C=Wn(C)).params&&(C.params=function Ur(C){return C?Wn(C):null}(C.params)):C={},C}function Pn(C,a,l){return{duration:C,delay:a,easing:l}}function vr(C,a,l,g,b,I,L=null,B=!1){return{type:1,element:C,keyframes:a,preStyleProps:l,postStyleProps:g,duration:b,delay:I,totalTime:b+I,easing:L,subTimeline:B}}class Tr{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,l){let g=this._map.get(a);g||this._map.set(a,g=[]),g.push(...l)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Js=new RegExp(":enter","g"),Di=new RegExp(":leave","g");function Hn(C,a,l,g,b,I={},L={},B,le,Ce=[]){return(new Ei).buildKeyframes(C,a,l,g,b,I,L,B,le,Ce)}class Ei{buildKeyframes(a,l,g,b,I,L,B,le,Ce,qe=[]){Ce=Ce||new Tr;const rt=new $r(a,l,Ce,b,I,qe,[]);rt.options=le,rt.currentTimeline.setStyles([L],null,rt.errors,le),vn(this,g,rt);const _t=rt.timelines.filter(Ft=>Ft.containsAnimation());if(Object.keys(B).length){let Ft;for(let ut=_t.length-1;ut>=0;ut--){const wt=_t[ut];if(wt.element===l){Ft=wt;break}}Ft&&!Ft.allowOnlyTimelineStyles()&&Ft.setStyles([B],null,rt.errors,le)}return _t.length?_t.map(Ft=>Ft.buildKeyframes()):[vr(l,[],[],[],0,0,"",!1)]}visitTrigger(a,l){}visitState(a,l){}visitTransition(a,l){}visitAnimateChild(a,l){const g=l.subInstructions.get(l.element);if(g){const b=l.createSubContext(a.options),I=l.currentTimeline.currentTime,L=this._visitSubInstructions(g,b,b.options);I!=L&&l.transformIntoNewTimeline(L)}l.previousNode=a}visitAnimateRef(a,l){const g=l.createSubContext(a.options);g.transformIntoNewTimeline(),this.visitReference(a.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=a}_visitSubInstructions(a,l,g){let I=l.currentTimeline.currentTime;const L=null!=g.duration?k(g.duration):null,B=null!=g.delay?k(g.delay):null;return 0!==L&&a.forEach(le=>{const Ce=l.appendInstructionToTimeline(le,L,B);I=Math.max(I,Ce.duration+Ce.delay)}),I}visitReference(a,l){l.updateOptions(a.options,!0),vn(this,a.animation,l),l.previousNode=a}visitSequence(a,l){const g=l.subContextCount;let b=l;const I=a.options;if(I&&(I.params||I.delay)&&(b=l.createSubContext(I),b.transformIntoNewTimeline(),null!=I.delay)){6==b.previousNode.type&&(b.currentTimeline.snapshotCurrentStyles(),b.previousNode=Vr);const L=k(I.delay);b.delayNextStep(L)}a.steps.length&&(a.steps.forEach(L=>vn(this,L,b)),b.currentTimeline.applyStylesToKeyframe(),b.subContextCount>g&&b.transformIntoNewTimeline()),l.previousNode=a}visitGroup(a,l){const g=[];let b=l.currentTimeline.currentTime;const I=a.options&&a.options.delay?k(a.options.delay):0;a.steps.forEach(L=>{const B=l.createSubContext(a.options);I&&B.delayNextStep(I),vn(this,L,B),b=Math.max(b,B.currentTimeline.currentTime),g.push(B.currentTimeline)}),g.forEach(L=>l.currentTimeline.mergeTimelineCollectedStyles(L)),l.transformIntoNewTimeline(b),l.previousNode=a}_visitTiming(a,l){if(a.dynamic){const g=a.strValue;return Lt(l.params?ee(g,l.params,l.errors):g,l.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,l){const g=l.currentAnimateTimings=this._visitTiming(a.timings,l),b=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),b.snapshotCurrentStyles());const I=a.style;5==I.type?this.visitKeyframes(I,l):(l.incrementTime(g.duration),this.visitStyle(I,l),b.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=a}visitStyle(a,l){const g=l.currentTimeline,b=l.currentAnimateTimings;!b&&g.getCurrentStyleProperties().length&&g.forwardFrame();const I=b&&b.easing||a.easing;a.isEmptyStep?g.applyEmptyStep(I):g.setStyles(a.styles,I,l.errors,l.options),l.previousNode=a}visitKeyframes(a,l){const g=l.currentAnimateTimings,b=l.currentTimeline.duration,I=g.duration,B=l.createSubContext().currentTimeline;B.easing=g.easing,a.styles.forEach(le=>{B.forwardTime((le.offset||0)*I),B.setStyles(le.styles,le.easing,l.errors,l.options),B.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(B),l.transformIntoNewTimeline(b+I),l.previousNode=a}visitQuery(a,l){const g=l.currentTimeline.currentTime,b=a.options||{},I=b.delay?k(b.delay):0;I&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=Vr);let L=g;const B=l.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!b.optional,l.errors);l.currentQueryTotal=B.length;let le=null;B.forEach((Ce,qe)=>{l.currentQueryIndex=qe;const rt=l.createSubContext(a.options,Ce);I&&rt.delayNextStep(I),Ce===l.element&&(le=rt.currentTimeline),vn(this,a.animation,rt),rt.currentTimeline.applyStylesToKeyframe(),L=Math.max(L,rt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(L),le&&(l.currentTimeline.mergeTimelineCollectedStyles(le),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=a}visitStagger(a,l){const g=l.parentContext,b=l.currentTimeline,I=a.timings,L=Math.abs(I.duration),B=L*(l.currentQueryTotal-1);let le=L*l.currentQueryIndex;switch(I.duration<0?"reverse":I.easing){case"reverse":le=B-le;break;case"full":le=g.currentStaggerTime}const qe=l.currentTimeline;le&&qe.delayNextStep(le);const rt=qe.currentTime;vn(this,a.animation,l),l.previousNode=a,g.currentStaggerTime=b.currentTime-rt+(b.startTime-g.currentTimeline.startTime)}}const Vr={};class $r{constructor(a,l,g,b,I,L,B,le){this._driver=a,this.element=l,this.subInstructions=g,this._enterClassName=b,this._leaveClassName=I,this.errors=L,this.timelines=B,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=le||new Jr(this._driver,l,0),B.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,l){if(!a)return;const g=a;let b=this.options;null!=g.duration&&(b.duration=k(g.duration)),null!=g.delay&&(b.delay=k(g.delay));const I=g.params;if(I){let L=b.params;L||(L=this.options.params={}),Object.keys(I).forEach(B=>{(!l||!L.hasOwnProperty(B))&&(L[B]=ee(I[B],L,this.errors))})}}_copyOptions(){const a={};if(this.options){const l=this.options.params;if(l){const g=a.params={};Object.keys(l).forEach(b=>{g[b]=l[b]})}}return a}createSubContext(a=null,l,g){const b=l||this.element,I=new $r(this._driver,b,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(b,g||0));return I.previousNode=this.previousNode,I.currentAnimateTimings=this.currentAnimateTimings,I.options=this._copyOptions(),I.updateOptions(a),I.currentQueryIndex=this.currentQueryIndex,I.currentQueryTotal=this.currentQueryTotal,I.parentContext=this,this.subContextCount++,I}transformIntoNewTimeline(a){return this.previousNode=Vr,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,l,g){const b={duration:null!=l?l:a.duration,delay:this.currentTimeline.currentTime+(null!=g?g:0)+a.delay,easing:""},I=new Bs(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,b,a.stretchStartingKeyframe);return this.timelines.push(I),b}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,l,g,b,I,L){let B=[];if(b&&B.push(this.element),a.length>0){a=(a=a.replace(Js,"."+this._enterClassName)).replace(Di,"."+this._leaveClassName);let Ce=this._driver.query(this.element,a,1!=g);0!==g&&(Ce=g<0?Ce.slice(Ce.length+g,Ce.length):Ce.slice(0,g)),B.push(...Ce)}return!I&&0==B.length&&L.push(function Mt(C){return new f.vHH(3014,X)}()),B}}class Jr{constructor(a,l,g,b){this._driver=a,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=b,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 Jr(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]||se.l3,this._currentKeyframe[l]=se.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,l,g,b){l&&(this._previousKeyframe.easing=l);const I=b&&b.params||{},L=function Ci(C,a){const l={};let g;return C.forEach(b=>{"*"===b?(g=g||Object.keys(a),g.forEach(I=>{l[I]=se.l3})):Kn(b,!1,l)}),l}(a,this._globalTimelineStyles);Object.keys(L).forEach(B=>{const le=ee(L[B],I,g);this._pendingStyles[B]=le,this._localTimelineStyles.hasOwnProperty(B)||(this._backFill[B]=this._globalTimelineStyles.hasOwnProperty(B)?this._globalTimelineStyles[B]:se.l3),this._updateStyle(B,le)})}applyStylesToKeyframe(){const a=this._pendingStyles,l=Object.keys(a);0!=l.length&&(this._pendingStyles={},l.forEach(g=>{this._currentKeyframe[g]=a[g]}),Object.keys(this._localTimelineStyles).forEach(g=>{this._currentKeyframe.hasOwnProperty(g)||(this._currentKeyframe[g]=this._localTimelineStyles[g])}))}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 g=this._styleSummary[l],b=a._styleSummary[l];(!g||b.time>g.time)&&this._updateStyle(l,b.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let b=[];this._keyframes.forEach((B,le)=>{const Ce=Kn(B,!0);Object.keys(Ce).forEach(qe=>{const rt=Ce[qe];rt==se.k1?a.add(qe):rt==se.l3&&l.add(qe)}),g||(Ce.offset=le/this.duration),b.push(Ce)});const I=a.size?Ie(a.values()):[],L=l.size?Ie(l.values()):[];if(g){const B=b[0],le=Wn(B);B.offset=0,le.offset=1,b=[B,le]}return vr(this.element,b,I,L,this.duration,this.startTime,this.easing,!1)}}class Bs extends Jr{constructor(a,l,g,b,I,L,B=!1){super(a,l,L.delay),this.keyframes=g,this.preStyleProps=b,this.postStyleProps=I,this._stretchStartingKeyframe=B,this.timings={duration:L.duration,delay:L.delay,easing:L.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:l,duration:g,easing:b}=this.timings;if(this._stretchStartingKeyframe&&l){const I=[],L=g+l,B=l/L,le=Kn(a[0],!1);le.offset=0,I.push(le);const Ce=Kn(a[0],!1);Ce.offset=js(B),I.push(Ce);const qe=a.length-1;for(let rt=1;rt<=qe;rt++){let _t=Kn(a[rt],!1);_t.offset=js((l+_t.offset*g)/L),I.push(_t)}g=L,l=0,b="",a=I}return vr(this.element,a,this.preStyleProps,this.postStyleProps,g,l,b,!0)}}function js(C,a=3){const l=Math.pow(10,a-1);return Math.round(C*l)/l}class Us{}class ei extends Us{normalizePropertyName(a,l){return dt(a)}normalizeStyleValue(a,l,g,b){let I="";const L=g.toString().trim();if(ti[l]&&0!==g&&"0"!==g)if("number"==typeof g)I="px";else{const B=g.match(/^[+-]?[\d\.]+([a-z]*)$/);B&&0==B[1].length&&b.push(function $(C,a){return new f.vHH(3005,X)}())}return L+I}}const ti=(()=>function Cs(C){const a={};return C.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 ni(C,a,l,g,b,I,L,B,le,Ce,qe,rt,_t){return{type:0,element:C,triggerName:a,isRemovalTransition:b,fromState:l,fromStyles:I,toState:g,toStyles:L,timelines:B,queriedElements:le,preStyleProps:Ce,postStyleProps:qe,totalTime:rt,errors:_t}}const Mr={};class us{constructor(a,l,g){this._triggerName=a,this.ast=l,this._stateStyles=g}match(a,l,g,b){return function ri(C,a,l,g,b){return C.some(I=>I(a,l,g,b))}(this.ast.matchers,a,l,g,b)}buildStyles(a,l,g){const b=this._stateStyles["*"],I=this._stateStyles[a],L=b?b.buildStyles(l,g):{};return I?I.buildStyles(l,g):L}build(a,l,g,b,I,L,B,le,Ce,qe){const rt=[],_t=this.ast.options&&this.ast.options.params||Mr,ut=this.buildStyles(g,B&&B.params||Mr,rt),wt=le&&le.params||Mr,qt=this.buildStyles(b,wt,rt),yn=new Set,Cn=new Map,$n=new Map,Qt="void"===b,nr={params:Object.assign(Object.assign({},_t),wt)},$t=qe?[]:Hn(a,l,this.ast.animation,I,L,ut,qt,nr,Ce,rt);let Rn=0;if($t.forEach(Dr=>{Rn=Math.max(Dr.duration+Dr.delay,Rn)}),rt.length)return ni(l,this._triggerName,g,b,Qt,ut,qt,[],[],Cn,$n,Rn,rt);$t.forEach(Dr=>{const xr=Dr.element,Si=re(Cn,xr,{});Dr.preStyleProps.forEach(Er=>Si[Er]=!0);const ds=re($n,xr,{});Dr.postStyleProps.forEach(Er=>ds[Er]=!0),xr!==l&&yn.add(xr)});const Pr=Ie(yn.values());return ni(l,this._triggerName,g,b,Qt,ut,qt,$t,Pr,Cn,$n,Rn)}}class Hs{constructor(a,l,g){this.styles=a,this.defaultParams=l,this.normalizer=g}buildStyles(a,l){const g={},b=Wn(this.defaultParams);return Object.keys(a).forEach(I=>{const L=a[I];null!=L&&(b[I]=L)}),this.styles.styles.forEach(I=>{if("string"!=typeof I){const L=I;Object.keys(L).forEach(B=>{let le=L[B];le.length>1&&(le=ee(le,b,l));const Ce=this.normalizer.normalizePropertyName(B,l);le=this.normalizer.normalizeStyleValue(B,Ce,le,l),g[Ce]=le})}}),g}}class Ar{constructor(a,l,g){this.name=a,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states={},l.states.forEach(b=>{this.states[b.name]=new Hs(b.style,b.options&&b.options.params||{},g)}),_r(this.states,"true","1"),_r(this.states,"false","0"),l.transitions.forEach(b=>{this.transitionFactories.push(new us(a,b,this.states))}),this.fallbackTransition=function ii(C,a,l){return new us(C,{type:1,animation:{type:2,steps:[],options:null},matchers:[(L,B)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,l,g,b){return this.transitionFactories.find(L=>L.match(a,l,g,b))||null}matchStyles(a,l,g){return this.fallbackTransition.buildStyles(a,l,g)}}function _r(C,a,l){C.hasOwnProperty(a)?C.hasOwnProperty(l)||(C[l]=C[a]):C.hasOwnProperty(l)&&(C[a]=C[l])}const er=new Tr;class oi{constructor(a,l,g){this.bodyNode=a,this._driver=l,this._normalizer=g,this._animations={},this._playersById={},this.players=[]}register(a,l){const g=[],I=yr(this._driver,l,g,[]);if(g.length)throw function Dt(C){return new f.vHH(3503,X)}();this._animations[a]=I}_buildPlayer(a,l,g){const b=a.element,I=mt(0,this._normalizer,0,a.keyframes,l,g);return this._driver.animate(b,I,a.duration,a.delay,a.easing,[],!0)}create(a,l,g={}){const b=[],I=this._animations[a];let L;const B=new Map;if(I?(L=Hn(this._driver,l,I,Xt,sn,{},{},g,er,b),L.forEach(qe=>{const rt=re(B,qe.element,{});qe.postStyleProps.forEach(_t=>rt[_t]=null)})):(b.push(function je(){return new f.vHH(3300,X)}()),L=[]),b.length)throw function Dn(C){return new f.vHH(3504,X)}();B.forEach((qe,rt)=>{Object.keys(qe).forEach(_t=>{qe[_t]=this._driver.computeStyle(rt,_t,se.l3)})});const Ce=Ue(L.map(qe=>{const rt=B.get(qe.element);return this._buildPlayer(qe,{},rt)}));return this._playersById[a]=Ce,Ce.onDestroy(()=>this.destroy(a)),this.players.push(Ce),Ce}destroy(a){const l=this._getPlayer(a);l.destroy(),delete this._playersById[a];const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(a){const l=this._playersById[a];if(!l)throw function bn(C){return new f.vHH(3301,X)}();return l}listen(a,l,g,b){const I=U(l,"","","");return ie(this._getPlayer(a),g,I,b),()=>{}}command(a,l,g,b){if("register"==g)return void this.register(a,b[0]);if("create"==g)return void this.create(a,l,b[0]||{});const I=this._getPlayer(a);switch(g){case"play":I.play();break;case"pause":I.pause();break;case"reset":I.reset();break;case"restart":I.restart();break;case"finish":I.finish();break;case"init":I.init();break;case"setPosition":I.setPosition(parseFloat(b[0]));break;case"destroy":this.destroy(a)}}}const Ir="ng-animate-queued",Xr="ng-animate-disabled",Tn=[],ws={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},cs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xn="__ng_removed";class $s{constructor(a,l=""){this.namespaceId=l;const g=a&&a.hasOwnProperty("value");if(this.value=function _(C){return null!=C?C:null}(g?a.value:a),g){const I=Wn(a);delete I.value,this.options=I}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const l=a.params;if(l){const g=this.options.params;Object.keys(l).forEach(b=>{null==g[b]&&(g[b]=l[b])})}}}const zr="void",Gr=new $s(zr);class zs{constructor(a,l,g){this.id=a,this.hostElement=l,this._engine=g,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Me(l,this._hostClassName)}listen(a,l,g,b){if(!this._triggers.hasOwnProperty(l))throw function Vt(C,a){return new f.vHH(3302,X)}();if(null==g||0==g.length)throw function Kt(C){return new f.vHH(3303,X)}();if(!function m(C){return"start"==C||"done"==C}(g))throw function Tt(C,a){return new f.vHH(3400,X)}();const I=re(this._elementListeners,a,[]),L={name:l,phase:g,callback:b};I.push(L);const B=re(this._engine.statesByElement,a,{});return B.hasOwnProperty(l)||(Me(a,an),Me(a,an+"-"+l),B[l]=Gr),()=>{this._engine.afterFlush(()=>{const le=I.indexOf(L);le>=0&&I.splice(le,1),this._triggers[l]||delete B[l]})}}register(a,l){return!this._triggers[a]&&(this._triggers[a]=l,!0)}_getTrigger(a){const l=this._triggers[a];if(!l)throw function rn(C){return new f.vHH(3401,X)}();return l}trigger(a,l,g,b=!0){const I=this._getTrigger(l),L=new Ss(this.id,l,a);let B=this._engine.statesByElement.get(a);B||(Me(a,an),Me(a,an+"-"+l),this._engine.statesByElement.set(a,B={}));let le=B[l];const Ce=new $s(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&le&&Ce.absorbOptions(le.options),B[l]=Ce,le||(le=Gr),Ce.value!==zr&&le.value===Ce.value){if(!function Rt(C,a){const l=Object.keys(C),g=Object.keys(a);if(l.length!=g.length)return!1;for(let b=0;b<l.length;b++){const I=l[b];if(!a.hasOwnProperty(I)||C[I]!==a[I])return!1}return!0}(le.params,Ce.params)){const wt=[],qt=I.matchStyles(le.value,le.params,wt),yn=I.matchStyles(Ce.value,Ce.params,wt);wt.length?this._engine.reportError(wt):this._engine.afterFlush(()=>{wn(a,qt),Ln(a,yn)})}return}const _t=re(this._engine.playersByElement,a,[]);_t.forEach(wt=>{wt.namespaceId==this.id&&wt.triggerName==l&&wt.queued&&wt.destroy()});let Ft=I.matchTransition(le.value,Ce.value,a,Ce.params),ut=!1;if(!Ft){if(!b)return;Ft=I.fallbackTransition,ut=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:Ft,fromState:le,toState:Ce,player:L,isFallbackTransition:ut}),ut||(Me(a,Ir),L.onStart(()=>{Xe(a,Ir)})),L.onDone(()=>{let wt=this.players.indexOf(L);wt>=0&&this.players.splice(wt,1);const qt=this._engine.playersByElement.get(a);if(qt){let yn=qt.indexOf(L);yn>=0&&qt.splice(yn,1)}}),this.players.push(L),_t.push(L),L}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((l,g)=>{delete l[a]}),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(b=>b.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const l=this._engine.playersByElement.get(a);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,l){const g=this._engine.driver.query(a,$e,!0);g.forEach(b=>{if(b[xn])return;const I=this._engine.fetchNamespacesByElement(b);I.size?I.forEach(L=>L.triggerLeaveAnimation(b,l,!1,!0)):this.clearElementCache(b)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(b=>this.clearElementCache(b)))}triggerLeaveAnimation(a,l,g,b){const I=this._engine.statesByElement.get(a),L=new Map;if(I){const B=[];if(Object.keys(I).forEach(le=>{if(L.set(le,I[le].value),this._triggers[le]){const Ce=this.trigger(a,le,zr,b);Ce&&B.push(Ce)}}),B.length)return this._engine.markElementAsRemoved(this.id,a,!0,l,L),g&&Ue(B).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const l=this._elementListeners.get(a),g=this._engine.statesByElement.get(a);if(l&&g){const b=new Set;l.forEach(I=>{const L=I.name;if(b.has(L))return;b.add(L);const le=this._triggers[L].fallbackTransition,Ce=g[L]||Gr,qe=new $s(zr),rt=new Ss(this.id,L,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:L,transition:le,fromState:Ce,toState:qe,player:rt,isFallbackTransition:!0})})}}removeNode(a,l){const g=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,l),this.triggerLeaveAnimation(a,l,!0))return;let b=!1;if(g.totalAnimations){const I=g.players.length?g.playersByQueriedElement.get(a):[];if(I&&I.length)b=!0;else{let L=a;for(;L=L.parentNode;)if(g.statesByElement.get(L)){b=!0;break}}}if(this.prepareLeaveAnimationListeners(a),b)g.markElementAsRemoved(this.id,a,!1,l);else{const I=a[xn];(!I||I===ws)&&(g.afterFlush(()=>this.clearElementCache(a)),g.destroyInnerAnimations(a),g._onRemovalComplete(a,l))}}insertNode(a,l){Me(a,this._hostClassName)}drainQueuedTransitions(a){const l=[];return this._queue.forEach(g=>{const b=g.player;if(b.destroyed)return;const I=g.element,L=this._elementListeners.get(I);L&&L.forEach(B=>{if(B.name==g.triggerName){const le=U(I,g.triggerName,g.fromState.value,g.toState.value);le._data=a,ie(g.player,B.phase,le,B.callback)}}),b.markedForDestroy?this._engine.afterFlush(()=>{b.destroy()}):l.push(g)}),this._queue=[],l.sort((g,b)=>{const I=g.transition.ast.depCount,L=b.transition.ast.depCount;return 0==I||0==L?I-L:this._engine.driver.containsElement(g.element,b.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(g=>g.element===a)||l,l}}class Ts{constructor(a,l,g){this.bodyNode=a,this.driver=l,this._normalizer=g,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=(b,I)=>{}}_onRemovalComplete(a,l){this.onRemovalComplete(a,l)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&a.push(g)})}),a}createNamespace(a,l){const g=new zs(a,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[a]=g}_balanceNamespaceList(a,l){const g=this._namespaceList,b=this.namespacesByHostElement,I=g.length-1;if(I>=0){let L=!1;if(void 0!==this.driver.getParentElement){let B=this.driver.getParentElement(l);for(;B;){const le=b.get(B);if(le){const Ce=g.indexOf(le);g.splice(Ce+1,0,a),L=!0;break}B=this.driver.getParentElement(B)}}else for(let B=I;B>=0;B--)if(this.driver.containsElement(g[B].hostElement,l)){g.splice(B+1,0,a),L=!0;break}L||g.unshift(a)}else g.push(a);return b.set(l,a),a}register(a,l){let g=this._namespaceLookup[a];return g||(g=this.createNamespace(a,l)),g}registerTrigger(a,l,g){let b=this._namespaceLookup[a];b&&b.register(l,g)&&this.totalAnimations++}destroy(a,l){if(!a)return;const g=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[a];const b=this._namespaceList.indexOf(g);b>=0&&this._namespaceList.splice(b,1)}),this.afterFlushAnimationsDone(()=>g.destroy(l))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const l=new Set,g=this.statesByElement.get(a);if(g){const b=Object.keys(g);for(let I=0;I<b.length;I++){const L=g[b[I]].namespaceId;if(L){const B=this._fetchNamespace(L);B&&l.add(B)}}}return l}trigger(a,l,g,b){if(T(l)){const I=this._fetchNamespace(a);if(I)return I.trigger(l,g,b),!0}return!1}insertNode(a,l,g,b){if(!T(l))return;const I=l[xn];if(I&&I.setForRemoval){I.setForRemoval=!1,I.setForMove=!0;const L=this.collectedLeaveElements.indexOf(l);L>=0&&this.collectedLeaveElements.splice(L,1)}if(a){const L=this._fetchNamespace(a);L&&L.insertNode(l,g)}b&&this.collectEnterElement(l)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,l){l?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Me(a,Xr)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Xe(a,Xr))}removeNode(a,l,g,b){if(T(l)){const I=a?this._fetchNamespace(a):null;if(I?I.removeNode(l,b):this.markElementAsRemoved(a,l,!1,b),g){const L=this.namespacesByHostElement.get(l);L&&L.id!==a&&L.removeNode(l,b)}}else this._onRemovalComplete(l,b)}markElementAsRemoved(a,l,g,b,I){this.collectedLeaveElements.push(l),l[xn]={namespaceId:a,setForRemoval:b,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:I}}listen(a,l,g,b,I){return T(l)?this._fetchNamespace(a).listen(l,g,b,I):()=>{}}_buildInstruction(a,l,g,b,I){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,g,b,a.fromState.options,a.toState.options,l,I)}destroyInnerAnimations(a){let l=this.driver.query(a,$e,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(a,ue,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(a){const l=this.playersByElement.get(a);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(a){const l=this.playersByQueriedElement.get(a);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Ue(this.players).onDone(()=>a());a()})}processLeaveNode(a){var l;const g=a[xn];if(g&&g.setForRemoval){if(a[xn]=ws,g.namespaceId){this.destroyInnerAnimations(a);const b=this._fetchNamespace(g.namespaceId);b&&b.clearElementCache(a)}this._onRemovalComplete(a,g.setForRemoval)}(null===(l=a.classList)||void 0===l?void 0:l.contains(Xr))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(b=>{this.markElementAsDisabled(b,!1)})}flush(a=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,b)=>this._balanceNamespaceList(g,b)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;g<this.collectedEnterElements.length;g++)Me(this.collectedEnterElements[g],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const g=[];try{l=this._flushAnimations(g,a)}finally{for(let b=0;b<g.length;b++)g[b]()}}else for(let g=0;g<this.collectedLeaveElements.length;g++)this.processLeaveNode(this.collectedLeaveElements[g]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(g=>g()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?Ue(l).onDone(()=>{g.forEach(b=>b())}):g.forEach(b=>b())}}reportError(a){throw function Ut(C){return new f.vHH(3402,X)}()}_flushAnimations(a,l){const g=new Tr,b=[],I=new Map,L=[],B=new Map,le=new Map,Ce=new Map,qe=new Set;this.disabledNodes.forEach(et=>{qe.add(et);const ot=this.driver.query(et,".ng-animate-queued",!0);for(let gt=0;gt<ot.length;gt++)qe.add(ot[gt])});const rt=this.bodyNode,_t=Array.from(this.statesByElement.keys()),Ft=ve(_t,this.collectedEnterElements),ut=new Map;let wt=0;Ft.forEach((et,ot)=>{const gt=Xt+wt++;ut.set(ot,gt),et.forEach(Ct=>Me(Ct,gt))});const qt=[],yn=new Set,Cn=new Set;for(let et=0;et<this.collectedLeaveElements.length;et++){const ot=this.collectedLeaveElements[et],gt=ot[xn];gt&>.setForRemoval&&(qt.push(ot),yn.add(ot),gt.hasAnimation?this.driver.query(ot,".ng-star-inserted",!0).forEach(Ct=>yn.add(Ct)):Cn.add(ot))}const $n=new Map,Qt=ve(_t,Array.from(yn));Qt.forEach((et,ot)=>{const gt=sn+wt++;$n.set(ot,gt),et.forEach(Ct=>Me(Ct,gt))}),a.push(()=>{Ft.forEach((et,ot)=>{const gt=ut.get(ot);et.forEach(Ct=>Xe(Ct,gt))}),Qt.forEach((et,ot)=>{const gt=$n.get(ot);et.forEach(Ct=>Xe(Ct,gt))}),qt.forEach(et=>{this.processLeaveNode(et)})});const nr=[],$t=[];for(let et=this._namespaceList.length-1;et>=0;et--)this._namespaceList[et].drainQueuedTransitions(l).forEach(gt=>{const Ct=gt.player,tn=gt.element;if(nr.push(Ct),this.collectedEnterElements.length){const Bn=tn[xn];if(Bn&&Bn.setForMove){if(Bn.previousTriggersValues&&Bn.previousTriggersValues.has(gt.triggerName)){const Ps=Bn.previousTriggersValues.get(gt.triggerName),Nn=this.statesByElement.get(gt.element);Nn&&Nn[gt.triggerName]&&(Nn[gt.triggerName].value=Ps)}return void Ct.destroy()}}const hr=!rt||!this.driver.containsElement(rt,tn),rr=$n.get(tn),sr=ut.get(tn),cn=this._buildInstruction(gt,g,sr,rr,hr);if(cn.errors&&cn.errors.length)return void $t.push(cn);if(hr)return Ct.onStart(()=>wn(tn,cn.fromStyles)),Ct.onDestroy(()=>Ln(tn,cn.toStyles)),void b.push(Ct);if(gt.isFallbackTransition)return Ct.onStart(()=>wn(tn,cn.fromStyles)),Ct.onDestroy(()=>Ln(tn,cn.toStyles)),void b.push(Ct);const fi=[];cn.timelines.forEach(Bn=>{Bn.stretchStartingKeyframe=!0,this.disabledNodes.has(Bn.element)||fi.push(Bn)}),cn.timelines=fi,g.append(tn,cn.timelines),L.push({instruction:cn,player:Ct,element:tn}),cn.queriedElements.forEach(Bn=>re(B,Bn,[]).push(Ct)),cn.preStyleProps.forEach((Bn,Ps)=>{const Nn=Object.keys(Bn);if(Nn.length){let Rr=le.get(Ps);Rr||le.set(Ps,Rr=new Set),Nn.forEach(xs=>Rr.add(xs))}}),cn.postStyleProps.forEach((Bn,Ps)=>{const Nn=Object.keys(Bn);let Rr=Ce.get(Ps);Rr||Ce.set(Ps,Rr=new Set),Nn.forEach(xs=>Rr.add(xs))})});if($t.length){const et=[];$t.forEach(ot=>{et.push(function we(C,a){return new f.vHH(3505,X)}())}),nr.forEach(ot=>ot.destroy()),this.reportError(et)}const Rn=new Map,Pr=new Map;L.forEach(et=>{const ot=et.element;g.has(ot)&&(Pr.set(ot,ot),this._beforeAnimationBuild(et.player.namespaceId,et.instruction,Rn))}),b.forEach(et=>{const ot=et.element;this._getPreviousPlayers(ot,!1,et.namespaceId,et.triggerName,null).forEach(Ct=>{re(Rn,ot,[]).push(Ct),Ct.destroy()})});const Dr=qt.filter(et=>mn(et,le,Ce)),xr=new Map;G(xr,this.driver,Cn,Ce,se.l3).forEach(et=>{mn(et,le,Ce)&&Dr.push(et)});const ds=new Map;Ft.forEach((et,ot)=>{G(ds,this.driver,new Set(et),le,se.k1)}),Dr.forEach(et=>{const ot=xr.get(et),gt=ds.get(et);xr.set(et,Object.assign(Object.assign({},ot),gt))});const Er=[],Os=[],Sn={};L.forEach(et=>{const{element:ot,player:gt,instruction:Ct}=et;if(g.has(ot)){if(qe.has(ot))return gt.onDestroy(()=>Ln(ot,Ct.toStyles)),gt.disabled=!0,gt.overrideTotalTime(Ct.totalTime),void b.push(gt);let tn=Sn;if(Pr.size>1){let rr=ot;const sr=[];for(;rr=rr.parentNode;){const cn=Pr.get(rr);if(cn){tn=cn;break}sr.push(rr)}sr.forEach(cn=>Pr.set(cn,tn))}const hr=this._buildAnimation(gt.namespaceId,Ct,Rn,I,ds,xr);if(gt.setRealPlayer(hr),tn===Sn)Er.push(gt);else{const rr=this.playersByElement.get(tn);rr&&rr.length&&(gt.parentPlayer=Ue(rr)),b.push(gt)}}else wn(ot,Ct.fromStyles),gt.onDestroy(()=>Ln(ot,Ct.toStyles)),Os.push(gt),qe.has(ot)&&b.push(gt)}),Os.forEach(et=>{const ot=I.get(et.element);if(ot&&ot.length){const gt=Ue(ot);et.setRealPlayer(gt)}}),b.forEach(et=>{et.parentPlayer?et.syncPlayerEvents(et.parentPlayer):et.destroy()});for(let et=0;et<qt.length;et++){const ot=qt[et],gt=ot[xn];if(Xe(ot,sn),gt&>.hasAnimation)continue;let Ct=[];if(B.size){let hr=B.get(ot);hr&&hr.length&&Ct.push(...hr);let rr=this.driver.query(ot,ue,!0);for(let sr=0;sr<rr.length;sr++){let cn=B.get(rr[sr]);cn&&cn.length&&Ct.push(...cn)}}const tn=Ct.filter(hr=>!hr.destroyed);tn.length?Yt(this,ot,tn):this.processLeaveNode(ot)}return qt.length=0,Er.forEach(et=>{this.players.push(et),et.onDone(()=>{et.destroy();const ot=this.players.indexOf(et);this.players.splice(ot,1)}),et.play()}),Er}elementContainsData(a,l){let g=!1;const b=l[xn];return b&&b.setForRemoval&&(g=!0),this.playersByElement.has(l)&&(g=!0),this.playersByQueriedElement.has(l)&&(g=!0),this.statesByElement.has(l)&&(g=!0),this._fetchNamespace(a).elementContainsData(l)||g}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,l,g,b,I){let L=[];if(l){const B=this.playersByQueriedElement.get(a);B&&(L=B)}else{const B=this.playersByElement.get(a);if(B){const le=!I||I==zr;B.forEach(Ce=>{Ce.queued||!le&&Ce.triggerName!=b||L.push(Ce)})}}return(g||b)&&(L=L.filter(B=>!(g&&g!=B.namespaceId||b&&b!=B.triggerName))),L}_beforeAnimationBuild(a,l,g){const I=l.element,L=l.isRemovalTransition?void 0:a,B=l.isRemovalTransition?void 0:l.triggerName;for(const le of l.timelines){const Ce=le.element,qe=Ce!==I,rt=re(g,Ce,[]);this._getPreviousPlayers(Ce,qe,L,B,l.toState).forEach(Ft=>{const ut=Ft.getRealPlayer();ut.beforeDestroy&&ut.beforeDestroy(),Ft.destroy(),rt.push(Ft)})}wn(I,l.fromStyles)}_buildAnimation(a,l,g,b,I,L){const B=l.triggerName,le=l.element,Ce=[],qe=new Set,rt=new Set,_t=l.timelines.map(ut=>{const wt=ut.element;qe.add(wt);const qt=wt[xn];if(qt&&qt.removedBeforeQueried)return new se.ZN(ut.duration,ut.delay);const yn=wt!==le,Cn=function Gt(C){const a=[];return It(C,a),a}((g.get(wt)||Tn).map(Rn=>Rn.getRealPlayer())).filter(Rn=>!!Rn.element&&Rn.element===wt),$n=I.get(wt),Qt=L.get(wt),nr=mt(0,this._normalizer,0,ut.keyframes,$n,Qt),$t=this._buildPlayer(ut,nr,Cn);if(ut.subTimeline&&b&&rt.add(wt),yn){const Rn=new Ss(a,B,wt);Rn.setRealPlayer($t),Ce.push(Rn)}return $t});Ce.forEach(ut=>{re(this.playersByQueriedElement,ut.element,[]).push(ut),ut.onDone(()=>function Bt(C,a,l){let g;if(C instanceof Map){if(g=C.get(a),g){if(g.length){const b=g.indexOf(l);g.splice(b,1)}0==g.length&&C.delete(a)}}else if(g=C[a],g){if(g.length){const b=g.indexOf(l);g.splice(b,1)}0==g.length&&delete C[a]}return g}(this.playersByQueriedElement,ut.element,ut))}),qe.forEach(ut=>Me(ut,z));const Ft=Ue(_t);return Ft.onDestroy(()=>{qe.forEach(ut=>Xe(ut,z)),Ln(le,l.toStyles)}),rt.forEach(ut=>{re(b,ut,[]).push(Ft)}),Ft}_buildPlayer(a,l,g){return l.length>0?this.driver.animate(a.element,l,a.duration,a.delay,a.easing,g):new se.ZN(a.duration,a.delay)}}class Ss{constructor(a,l,g){this.namespaceId=a,this.triggerName=l,this.element=g,this._player=new se.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(g=>ie(a,l,void 0,g))}),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){re(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 T(C){return C&&1===C.nodeType}function A(C,a){const l=C.style.display;return C.style.display=null!=a?a:"none",l}function G(C,a,l,g,b){const I=[];l.forEach(le=>I.push(A(le)));const L=[];g.forEach((le,Ce)=>{const qe={};le.forEach(rt=>{const _t=qe[rt]=a.computeStyle(Ce,rt,b);(!_t||0==_t.length)&&(Ce[xn]=cs,L.push(Ce))}),C.set(Ce,qe)});let B=0;return l.forEach(le=>A(le,I[B++])),L}function ve(C,a){const l=new Map;if(C.forEach(B=>l.set(B,[])),0==a.length)return l;const b=new Set(a),I=new Map;function L(B){if(!B)return 1;let le=I.get(B);if(le)return le;const Ce=B.parentNode;return le=l.has(Ce)?Ce:b.has(Ce)?1:L(Ce),I.set(B,le),le}return a.forEach(B=>{const le=L(B);1!==le&&l.get(le).push(B)}),l}function Me(C,a){var l;null===(l=C.classList)||void 0===l||l.add(a)}function Xe(C,a){var l;null===(l=C.classList)||void 0===l||l.remove(a)}function Yt(C,a,l){Ue(l).onDone(()=>C.processLeaveNode(a))}function It(C,a){for(let l=0;l<C.length;l++){const g=C[l];g instanceof se.ZE?It(g.players,a):a.push(g)}}function mn(C,a,l){const g=l.get(C);if(!g)return!1;let b=a.get(C);return b?g.forEach(I=>b.add(I)):a.set(C,g),l.delete(C),!0}class Wt{constructor(a,l,g){this.bodyNode=a,this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(b,I)=>{},this._transitionEngine=new Ts(a,l,g),this._timelineEngine=new oi(a,l,g),this._transitionEngine.onRemovalComplete=(b,I)=>this.onRemovalComplete(b,I)}registerTrigger(a,l,g,b,I){const L=a+"-"+b;let B=this._triggerCache[L];if(!B){const le=[],qe=yr(this._driver,I,le,[]);if(le.length)throw function At(C,a){return new f.vHH(3404,X)}();B=function si(C,a,l){return new Ar(C,a,l)}(b,qe,this._normalizer),this._triggerCache[L]=B}this._transitionEngine.registerTrigger(l,b,B)}register(a,l){this._transitionEngine.register(a,l)}destroy(a,l){this._transitionEngine.destroy(a,l)}onInsert(a,l,g,b){this._transitionEngine.insertNode(a,l,g,b)}onRemove(a,l,g,b){this._transitionEngine.removeNode(a,l,b||!1,g)}disableAnimations(a,l){this._transitionEngine.markElementAsDisabled(a,l)}process(a,l,g,b){if("@"==g.charAt(0)){const[I,L]=te(g);this._timelineEngine.command(I,l,L,b)}else this._transitionEngine.trigger(a,l,g,b)}listen(a,l,g,b,I){if("@"==g.charAt(0)){const[L,B]=te(g);return this._timelineEngine.listen(L,l,B,I)}return this._transitionEngine.listen(a,l,g,b,I)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Wr=(()=>{class C{constructor(l,g,b){this._element=l,this._startStyles=g,this._endStyles=b,this._state=0;let I=C.initialStylesByElement.get(l);I||C.initialStylesByElement.set(l,I={}),this._initialStyles=I}start(){this._state<1&&(this._startStyles&&Ln(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ln(this._element,this._initialStyles),this._endStyles&&(Ln(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(C.initialStylesByElement.delete(this._element),this._startStyles&&(wn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),Ln(this._element,this._initialStyles),this._state=3)}}return C.initialStylesByElement=new WeakMap,C})();function tr(C){let a=null;const l=Object.keys(C);for(let g=0;g<l.length;g++){const b=l[g];ft(b)&&(a=a||{},a[b]=C[b])}return a}function ft(C){return"display"===C||"position"===C}class Kr{constructor(a,l,g,b){this.element=a,this.keyframes=l,this.options=g,this._specialStyles=b,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),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,g){return a.animate(l,g)}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(g=>{"offset"!=g&&(a[g]=this._finished?l[g]:Qn(this.element,g))})}this.currentSnapshot=a}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}}class Gs{validateStyleProperty(a){return de(a)}matchesElement(a,l){return!1}containsElement(a,l){return N(a,l)}getParentElement(a){return Qe(a)}query(a,l,g){return Ne(a,l,g)}computeStyle(a,l,g){return window.getComputedStyle(a)[l]}animate(a,l,g,b,I,L=[]){const le={duration:g,delay:b,fill:0==b?"both":"forwards"};I&&(le.easing=I);const Ce={},qe=L.filter(_t=>_t instanceof Kr);(function En(C,a){return 0===C||0===a})(g,b)&&qe.forEach(_t=>{let Ft=_t.currentSnapshot;Object.keys(Ft).forEach(ut=>Ce[ut]=Ft[ut])}),l=function Yn(C,a,l){const g=Object.keys(l);if(g.length&&a.length){let I=a[0],L=[];if(g.forEach(B=>{I.hasOwnProperty(B)||L.push(B),I[B]=l[B]}),L.length)for(var b=1;b<a.length;b++){let B=a[b];L.forEach(function(le){B[le]=Qn(C,le)})}}return a}(a,l=l.map(_t=>Kn(_t,!1)),Ce);const rt=function un(C,a){let l=null,g=null;return Array.isArray(a)&&a.length?(l=tr(a[0]),a.length>1&&(g=tr(a[a.length-1]))):a&&(l=tr(a)),l||g?new Wr(C,l,g):null}(a,l);return new Kr(a,l,le,rt)}}var Yr=S(9808);let Ws=(()=>{class C extends se._j{constructor(l,g){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(g.body,{id:"0",encapsulation:f.ifc.None,styles:[],data:{animation:[]}})}build(l){const g=this._nextAnimationId.toString();this._nextAnimationId++;const b=Array.isArray(l)?(0,se.vP)(l):l;return bi(this._renderer,null,g,"register",[b]),new li(g,this._renderer)}}return C.\u0275fac=function(l){return new(l||C)(f.LFG(f.FYo),f.LFG(Yr.K0))},C.\u0275prov=f.Yz7({token:C,factory:C.\u0275fac}),C})();class li extends se.LC{constructor(a,l){super(),this._id=a,this._renderer=l}create(a,l){return new Ks(this._id,a,l||{},this._renderer)}}class Ks{constructor(a,l,g,b){this.id=a,this.element=l,this._renderer=b,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(a,l){return this._renderer.listen(this.element,`@@${this.id}:${a}`,l)}_command(a,...l){return bi(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 bi(C,a,l,g,b){return C.setProperty(a,`@@${l}:${g}`,b)}const Nt="@.disabled";let wi=(()=>{class C{constructor(l,g,b){this.delegate=l,this.engine=g,this._zone=b,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(I,L)=>{const B=null==L?void 0:L.parentNode(I);B&&L.removeChild(B,I)}}createRenderer(l,g){const I=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let qe=this._rendererCache.get(I);return qe||(qe=new hn("",I,this.engine),this._rendererCache.set(I,qe)),qe}const L=g.id,B=g.id+"-"+this._currentId;this._currentId++,this.engine.register(B,l);const le=qe=>{Array.isArray(qe)?qe.forEach(le):this.engine.registerTrigger(L,B,l,qe.name,qe)};return g.data.animation.forEach(le),new Ti(this,B,I,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,g,b){l>=0&&l<this._microtaskId?this._zone.run(()=>g(b)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(I=>{const[L,B]=I;L(B)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,b]))}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 C.\u0275fac=function(l){return new(l||C)(f.LFG(f.FYo),f.LFG(Wt),f.LFG(f.R0b))},C.\u0275prov=f.Yz7({token:C,factory:C.\u0275fac}),C})();class hn{constructor(a,l,g){this.namespaceId=a,this.delegate=l,this.engine=g,this.destroyNode=this.delegate.destroyNode?b=>l.destroyNode(b):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,g,b=!0){this.delegate.insertBefore(a,l,g),this.engine.onInsert(this.namespaceId,l,a,b)}removeChild(a,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate,g)}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,g,b){this.delegate.setAttribute(a,l,g,b)}removeAttribute(a,l,g){this.delegate.removeAttribute(a,l,g)}addClass(a,l){this.delegate.addClass(a,l)}removeClass(a,l){this.delegate.removeClass(a,l)}setStyle(a,l,g,b){this.delegate.setStyle(a,l,g,b)}removeStyle(a,l,g){this.delegate.removeStyle(a,l,g)}setProperty(a,l,g){"@"==l.charAt(0)&&l==Nt?this.disableAnimations(a,!!g):this.delegate.setProperty(a,l,g)}setValue(a,l){this.delegate.setValue(a,l)}listen(a,l,g){return this.delegate.listen(a,l,g)}disableAnimations(a,l){this.engine.disableAnimations(a,l)}}class Ti extends hn{constructor(a,l,g,b){super(l,g,b),this.factory=a,this.namespaceId=l}setProperty(a,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Nt?this.disableAnimations(a,g=void 0===g||!!g):this.engine.process(this.namespaceId,a,l.substr(1),g):this.delegate.setProperty(a,l,g)}listen(a,l,g){if("@"==l.charAt(0)){const b=function Ms(C){switch(C){case"body":return document.body;case"document":return document;case"window":return window;default:return C}}(a);let I=l.substr(1),L="";return"@"!=I.charAt(0)&&([I,L]=function Jn(C){const a=C.indexOf(".");return[C.substring(0,a),C.substr(a+1)]}(I)),this.engine.listen(this.namespaceId,b,I,L,B=>{this.factory.scheduleListenerCallback(B._data||-1,g,B)})}return this.delegate.listen(a,l,g)}}let ui=(()=>{class C extends Wt{constructor(l,g,b){super(l.body,g,b)}ngOnDestroy(){this.flush()}}return C.\u0275fac=function(l){return new(l||C)(f.LFG(Yr.K0),f.LFG(Ge),f.LFG(Us))},C.\u0275prov=f.Yz7({token:C,factory:C.\u0275fac}),C})();const di=new f.OlP("AnimationModuleType"),As=[{provide:se._j,useClass:Ws},{provide:Us,useFactory:function ci(){return new ei}},{provide:Wt,useClass:ui},{provide:f.FYo,useFactory:function Yo(C,a,l){return new wi(C,a,l)},deps:[y.se,Wt,f.R0b]}],Is=[{provide:Ge,useFactory:()=>new Gs},{provide:di,useValue:"BrowserAnimations"},...As],Vn=[{provide:Ge,useClass:ke},{provide:di,useValue:"NoopAnimations"},...As];let Or=(()=>{class C{static withConfig(l){return{ngModule:C,providers:l.disableAnimations?Vn:Is}}}return C.\u0275fac=function(l){return new(l||C)},C.\u0275mod=f.oAB({type:C}),C.\u0275inj=f.cJS({providers:Is,imports:[y.b2]}),C})()},2313:(Ze,pe,S)=>{S.d(pe,{Dx:()=>at,H7:()=>lr,b2:()=>ne,q6:()=>re,se:()=>Dt});var f=S(9808),y=S(5e3);class se extends f.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class X extends se{static makeCurrent(){(0,f.HT)(new X)}onAndCancel(K,P,ee){return K.addEventListener(P,ee,!1),()=>{K.removeEventListener(P,ee,!1)}}dispatchEvent(K,P){K.dispatchEvent(P)}remove(K){K.parentNode&&K.parentNode.removeChild(K)}createElement(K,P){return(P=P||this.getDefaultDocument()).createElement(K)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(K){return K.nodeType===Node.ELEMENT_NODE}isShadowRoot(K){return K instanceof DocumentFragment}getGlobalEventTarget(K,P){return"window"===P?window:"document"===P?K:"body"===P?K.body:null}getBaseHref(K){const P=function x(){return F=F||document.querySelector("base"),F?F.getAttribute("href"):null}();return null==P?null:function Q(J){Y=Y||document.createElement("a"),Y.setAttribute("href",J);const K=Y.pathname;return"/"===K.charAt(0)?K:`/${K}`}(P)}resetBaseElement(){F=null}getUserAgent(){return window.navigator.userAgent}getCookie(K){return(0,f.Mx)(document.cookie,K)}}let Y,F=null;const ae=new y.OlP("TRANSITION_ID"),q=[{provide:y.ip1,useFactory:function j(J,K,P){return()=>{P.get(y.CZH).donePromise.then(()=>{const ee=(0,f.q)(),Ie=K.querySelectorAll(`style[ng-transition="${J}"]`);for(let it=0;it<Ie.length;it++)ee.remove(Ie[it])})}},deps:[ae,f.K0,y.zs3],multi:!0}];class ${static init(){(0,y.VLi)(new $)}addToWindow(K){y.dqk.getAngularTestability=(ee,Ie=!0)=>{const it=K.findTestabilityInTree(ee,Ie);if(null==it)throw new Error("Could not find testability for element.");return it},y.dqk.getAllAngularTestabilities=()=>K.getAllTestabilities(),y.dqk.getAllAngularRootElements=()=>K.getAllRootElements(),y.dqk.frameworkStabilizers||(y.dqk.frameworkStabilizers=[]),y.dqk.frameworkStabilizers.push(ee=>{const Ie=y.dqk.getAllAngularTestabilities();let it=Ie.length,dt=!1;const dn=function(En){dt=dt||En,it--,0==it&&ee(dt)};Ie.forEach(function(En){En.whenStable(dn)})})}findTestabilityInTree(K,P,ee){if(null==P)return null;const Ie=K.getTestability(P);return null!=Ie?Ie:ee?(0,f.q)().isShadowRoot(P)?this.findTestabilityInTree(K,P.host,!0):this.findTestabilityInTree(K,P.parentElement,!0):null}}let he=(()=>{class J{build(){return new XMLHttpRequest}}return J.\u0275fac=function(P){return new(P||J)},J.\u0275prov=y.Yz7({token:J,factory:J.\u0275fac}),J})();const He=new y.OlP("EventManagerPlugins");let Ee=(()=>{class J{constructor(P,ee){this._zone=ee,this._eventNameToPlugin=new Map,P.forEach(Ie=>Ie.manager=this),this._plugins=P.slice().reverse()}addEventListener(P,ee,Ie){return this._findPluginFor(ee).addEventListener(P,ee,Ie)}addGlobalEventListener(P,ee,Ie){return this._findPluginFor(ee).addGlobalEventListener(P,ee,Ie)}getZone(){return this._zone}_findPluginFor(P){const ee=this._eventNameToPlugin.get(P);if(ee)return ee;const Ie=this._plugins;for(let it=0;it<Ie.length;it++){const dt=Ie[it];if(dt.supports(P))return this._eventNameToPlugin.set(P,dt),dt}throw new Error(`No event manager plugin found for event ${P}`)}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(He),y.LFG(y.R0b))},J.\u0275prov=y.Yz7({token:J,factory:J.\u0275fac}),J})();class Re{constructor(K){this._doc=K}addGlobalEventListener(K,P,ee){const Ie=(0,f.q)().getGlobalEventTarget(this._doc,K);if(!Ie)throw new Error(`Unsupported event target ${Ie} for event ${P}`);return this.addEventListener(Ie,P,ee)}}let Fe=(()=>{class J{constructor(){this._stylesSet=new Set}addStyles(P){const ee=new Set;P.forEach(Ie=>{this._stylesSet.has(Ie)||(this._stylesSet.add(Ie),ee.add(Ie))}),this.onStylesAdded(ee)}onStylesAdded(P){}getAllStyles(){return Array.from(this._stylesSet)}}return J.\u0275fac=function(P){return new(P||J)},J.\u0275prov=y.Yz7({token:J,factory:J.\u0275fac}),J})(),ze=(()=>{class J extends Fe{constructor(P){super(),this._doc=P,this._hostNodes=new Map,this._hostNodes.set(P.head,[])}_addStylesToHost(P,ee,Ie){P.forEach(it=>{const dt=this._doc.createElement("style");dt.textContent=it,Ie.push(ee.appendChild(dt))})}addHost(P){const ee=[];this._addStylesToHost(this._stylesSet,P,ee),this._hostNodes.set(P,ee)}removeHost(P){const ee=this._hostNodes.get(P);ee&&ee.forEach(me),this._hostNodes.delete(P)}onStylesAdded(P){this._hostNodes.forEach((ee,Ie)=>{this._addStylesToHost(P,Ie,ee)})}ngOnDestroy(){this._hostNodes.forEach(P=>P.forEach(me))}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(f.K0))},J.\u0275prov=y.Yz7({token:J,factory:J.\u0275fac}),J})();function me(J){(0,f.q)().remove(J)}const Le={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/"},Be=/%COMP%/g;function Pt(J,K,P){for(let ee=0;ee<K.length;ee++){let Ie=K[ee];Array.isArray(Ie)?Pt(J,Ie,P):(Ie=Ie.replace(Be,J),P.push(Ie))}return P}function At(J){return K=>{if("__ngUnwrap__"===K)return J;!1===J(K)&&(K.preventDefault(),K.returnValue=!1)}}let Dt=(()=>{class J{constructor(P,ee,Ie){this.eventManager=P,this.sharedStylesHost=ee,this.appId=Ie,this.rendererByCompId=new Map,this.defaultRenderer=new je(P)}createRenderer(P,ee){if(!P||!ee)return this.defaultRenderer;switch(ee.encapsulation){case y.ifc.Emulated:{let Ie=this.rendererByCompId.get(ee.id);return Ie||(Ie=new Vt(this.eventManager,this.sharedStylesHost,ee,this.appId),this.rendererByCompId.set(ee.id,Ie)),Ie.applyToHost(P),Ie}case 1:case y.ifc.ShadowDom:return new Kt(this.eventManager,this.sharedStylesHost,P,ee);default:if(!this.rendererByCompId.has(ee.id)){const Ie=Pt(ee.id,ee.styles,[]);this.sharedStylesHost.addStyles(Ie),this.rendererByCompId.set(ee.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(Ee),y.LFG(ze),y.LFG(y.AFp))},J.\u0275prov=y.Yz7({token:J,factory:J.\u0275fac}),J})();class je{constructor(K){this.eventManager=K,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(K,P){return P?document.createElementNS(Le[P]||P,K):document.createElement(K)}createComment(K){return document.createComment(K)}createText(K){return document.createTextNode(K)}appendChild(K,P){K.appendChild(P)}insertBefore(K,P,ee){K&&K.insertBefore(P,ee)}removeChild(K,P){K&&K.removeChild(P)}selectRootElement(K,P){let ee="string"==typeof K?document.querySelector(K):K;if(!ee)throw new Error(`The selector "${K}" did not match any elements`);return P||(ee.textContent=""),ee}parentNode(K){return K.parentNode}nextSibling(K){return K.nextSibling}setAttribute(K,P,ee,Ie){if(Ie){P=Ie+":"+P;const it=Le[Ie];it?K.setAttributeNS(it,P,ee):K.setAttribute(P,ee)}else K.setAttribute(P,ee)}removeAttribute(K,P,ee){if(ee){const Ie=Le[ee];Ie?K.removeAttributeNS(Ie,P):K.removeAttribute(`${ee}:${P}`)}else K.removeAttribute(P)}addClass(K,P){K.classList.add(P)}removeClass(K,P){K.classList.remove(P)}setStyle(K,P,ee,Ie){Ie&(y.JOm.DashCase|y.JOm.Important)?K.style.setProperty(P,ee,Ie&y.JOm.Important?"important":""):K.style[P]=ee}removeStyle(K,P,ee){ee&y.JOm.DashCase?K.style.removeProperty(P):K.style[P]=""}setProperty(K,P,ee){K[P]=ee}setValue(K,P){K.nodeValue=P}listen(K,P,ee){return"string"==typeof K?this.eventManager.addGlobalEventListener(K,P,At(ee)):this.eventManager.addEventListener(K,P,At(ee))}}class Vt extends je{constructor(K,P,ee,Ie){super(K),this.component=ee;const it=Pt(Ie+"-"+ee.id,ee.styles,[]);P.addStyles(it),this.contentAttr=function xt(J){return"_ngcontent-%COMP%".replace(Be,J)}(Ie+"-"+ee.id),this.hostAttr=function pt(J){return"_nghost-%COMP%".replace(Be,J)}(Ie+"-"+ee.id)}applyToHost(K){super.setAttribute(K,this.hostAttr,"")}createElement(K,P){const ee=super.createElement(K,P);return super.setAttribute(ee,this.contentAttr,""),ee}}class Kt extends je{constructor(K,P,ee,Ie){super(K),this.sharedStylesHost=P,this.hostEl=ee,this.shadowRoot=ee.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const it=Pt(Ie.id,Ie.styles,[]);for(let dt=0;dt<it.length;dt++){const dn=document.createElement("style");dn.textContent=it[dt],this.shadowRoot.appendChild(dn)}}nodeOrShadowRoot(K){return K===this.hostEl?this.shadowRoot:K}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(K,P){return super.appendChild(this.nodeOrShadowRoot(K),P)}insertBefore(K,P,ee){return super.insertBefore(this.nodeOrShadowRoot(K),P,ee)}removeChild(K,P){return super.removeChild(this.nodeOrShadowRoot(K),P)}parentNode(K){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(K)))}}let Tt=(()=>{class J extends Re{constructor(P){super(P)}supports(P){return!0}addEventListener(P,ee,Ie){return P.addEventListener(ee,Ie,!1),()=>this.removeEventListener(P,ee,Ie)}removeEventListener(P,ee,Ie){return P.removeEventListener(ee,Ie)}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(f.K0))},J.\u0275prov=y.Yz7({token:J,factory:J.\u0275fac}),J})();const rn=["alt","control","meta","shift"],ge={"\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"},we={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"},Z={alt:J=>J.altKey,control:J=>J.ctrlKey,meta:J=>J.metaKey,shift:J=>J.shiftKey};let ce=(()=>{class J extends Re{constructor(P){super(P)}supports(P){return null!=J.parseEventName(P)}addEventListener(P,ee,Ie){const it=J.parseEventName(ee),dt=J.eventCallback(it.fullKey,Ie,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,f.q)().onAndCancel(P,it.domEventName,dt))}static parseEventName(P){const ee=P.toLowerCase().split("."),Ie=ee.shift();if(0===ee.length||"keydown"!==Ie&&"keyup"!==Ie)return null;const it=J._normalizeKey(ee.pop());let dt="";if(rn.forEach(En=>{const Yn=ee.indexOf(En);Yn>-1&&(ee.splice(Yn,1),dt+=En+".")}),dt+=it,0!=ee.length||0===it.length)return null;const dn={};return dn.domEventName=Ie,dn.fullKey=dt,dn}static getEventFullKey(P){let ee="",Ie=function Ue(J){let K=J.key;if(null==K){if(K=J.keyIdentifier,null==K)return"Unidentified";K.startsWith("U+")&&(K=String.fromCharCode(parseInt(K.substring(2),16)),3===J.location&&we.hasOwnProperty(K)&&(K=we[K]))}return ge[K]||K}(P);return Ie=Ie.toLowerCase()," "===Ie?Ie="space":"."===Ie&&(Ie="dot"),rn.forEach(it=>{it!=Ie&&Z[it](P)&&(ee+=it+".")}),ee+=Ie,ee}static eventCallback(P,ee,Ie){return it=>{J.getEventFullKey(it)===P&&Ie.runGuarded(()=>ee(it))}}static _normalizeKey(P){return"esc"===P?"escape":P}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(f.K0))},J.\u0275prov=y.Yz7({token:J,factory:J.\u0275fac}),J})();const re=(0,y.eFA)(y._c5,"browser",[{provide:y.Lbi,useValue:f.bD},{provide:y.g9A,useValue:function mt(){X.makeCurrent(),$.init()},multi:!0},{provide:f.K0,useFactory:function fe(){return(0,y.RDi)(document),document},deps:[]}]),te=[{provide:y.zSh,useValue:"root"},{provide:y.qLn,useFactory:function ie(){return new y.qLn},deps:[]},{provide:He,useClass:Tt,multi:!0,deps:[f.K0,y.R0b,y.Lbi]},{provide:He,useClass:ce,multi:!0,deps:[f.K0]},{provide:Dt,useClass:Dt,deps:[Ee,ze,y.AFp]},{provide:y.FYo,useExisting:Dt},{provide:Fe,useExisting:ze},{provide:ze,useClass:ze,deps:[f.K0]},{provide:y.dDg,useClass:y.dDg,deps:[y.R0b]},{provide:Ee,useClass:Ee,deps:[He,y.R0b]},{provide:f.JF,useClass:he,deps:[]}];let ne=(()=>{class J{constructor(P){if(P)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(P){return{ngModule:J,providers:[{provide:y.AFp,useValue:P.appId},{provide:ae,useExisting:y.AFp},q]}}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(J,12))},J.\u0275mod=y.oAB({type:J}),J.\u0275inj=y.cJS({providers:te,imports:[f.ez,y.hGG]}),J})(),at=(()=>{class J{constructor(P){this._doc=P}getTitle(){return this._doc.title}setTitle(P){this._doc.title=P||""}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(f.K0))},J.\u0275prov=y.Yz7({token:J,factory:function(P){let ee=null;return ee=P?new P:function Oe(){return new at((0,y.LFG)(f.K0))}(),ee},providedIn:"root"}),J})();"undefined"!=typeof window&&window;let lr=(()=>{class J{}return J.\u0275fac=function(P){return new(P||J)},J.\u0275prov=y.Yz7({token:J,factory:function(P){let ee=null;return ee=P?new(P||J):y.LFG(wn),ee},providedIn:"root"}),J})(),wn=(()=>{class J extends lr{constructor(P){super(),this._doc=P}sanitize(P,ee){if(null==ee)return null;switch(P){case y.q3G.NONE:return ee;case y.q3G.HTML:return(0,y.qzn)(ee,"HTML")?(0,y.z3N)(ee):(0,y.EiD)(this._doc,String(ee)).toString();case y.q3G.STYLE:return(0,y.qzn)(ee,"Style")?(0,y.z3N)(ee):ee;case y.q3G.SCRIPT:if((0,y.qzn)(ee,"Script"))return(0,y.z3N)(ee);throw new Error("unsafe value used in a script context");case y.q3G.URL:return(0,y.yhl)(ee),(0,y.qzn)(ee,"URL")?(0,y.z3N)(ee):(0,y.mCW)(String(ee));case y.q3G.RESOURCE_URL:if((0,y.qzn)(ee,"ResourceURL"))return(0,y.z3N)(ee);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${P} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(P){return(0,y.JVY)(P)}bypassSecurityTrustStyle(P){return(0,y.L6k)(P)}bypassSecurityTrustScript(P){return(0,y.eBb)(P)}bypassSecurityTrustUrl(P){return(0,y.LAX)(P)}bypassSecurityTrustResourceUrl(P){return(0,y.pB0)(P)}}return J.\u0275fac=function(P){return new(P||J)(y.LFG(f.K0))},J.\u0275prov=y.Yz7({token:J,factory:function(P){let ee=null;return ee=P?new P:function Ln(J){return new wn(J.get(f.K0))}(y.LFG(y.zs3)),ee},providedIn:"root"}),J})()},2302:(Ze,pe,S)=>{S.d(pe,{gz:()=>Ht,m2:()=>ie,F0:()=>Sn,Od:()=>hr,yS:()=>Ct,Bz:()=>Qo,lC:()=>xn});var f=S(5e3);const se=(()=>{function h(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return h.prototype=Object.create(Error.prototype),h})();var X=S(5254),F=S(1086),x=S(591),Y=S(6053),Q=S(1737),ae=S(1221),j=S(8514),q=S(2916),$=S(8896),he=S(1762),He=S(8929),Ee=S(2198),Re=S(3489),Fe=S(4231);function ze(h){return function(u){return 0===h?(0,$.c)():u.lift(new me(h))}}class me{constructor(c){if(this.total=c,this.total<0)throw new Fe.W}call(c,u){return u.subscribe(new Le(c,this.total))}}class Le extends Re.L{constructor(c,u){super(c),this.total=u,this.ring=new Array,this.count=0}_next(c){const u=this.ring,v=this.total,D=this.count++;u.length<v?u.push(c):u[D%v]=c}_complete(){const c=this.destination;let u=this.count;if(u>0){const v=this.count>=this.total?this.total:this.count,D=this.ring;for(let M=0;M<v;M++){const R=u++%v;c.next(D[R])}}c.complete()}}function Be(h=Mt){return c=>c.lift(new Se(h))}class Se{constructor(c){this.errorFactory=c}call(c,u){return u.subscribe(new Ye(c,this.errorFactory))}}class Ye extends Re.L{constructor(c,u){super(c),this.errorFactory=u,this.hasValue=!1}_next(c){this.hasValue=!0,this.destination.next(c)}_complete(){if(this.hasValue)return this.destination.complete();{let c;try{c=this.errorFactory()}catch(u){c=u}this.destination.error(c)}}}function Mt(){return new se}function jt(h=null){return c=>c.lift(new xt(h))}class xt{constructor(c){this.defaultValue=c}call(c,u){return u.subscribe(new pt(c,this.defaultValue))}}class pt extends Re.L{constructor(c,u){super(c),this.defaultValue=u,this.isEmpty=!0}_next(c){this.isEmpty=!1,this.destination.next(c)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Pt=S(5379),Je=S(2986);function Dt(h,c){const u=arguments.length>=2;return v=>v.pipe(h?(0,Ee.h)((D,M)=>h(D,M,v)):Pt.y,(0,Je.q)(1),u?jt(c):Be(()=>new se))}var je=S(4850),Dn=S(7545),bn=S(1059),Vt=S(2014),Kt=S(7221),Tt=S(1406),rn=S(1709),Ut=S(2868),ge=S(4327),we=S(537),Z=S(9146),ce=S(9808);class Ue{constructor(c,u){this.id=c,this.url=u}}class mt extends Ue{constructor(c,u,v="imperative",D=null){super(c,u),this.navigationTrigger=v,this.restoredState=D}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ie extends Ue{constructor(c,u,v){super(c,u),this.urlAfterRedirects=v}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class fe extends Ue{constructor(c,u,v){super(c,u),this.reason=v}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class U extends Ue{constructor(c,u,v){super(c,u),this.error=v}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class re extends Ue{constructor(c,u,v,D){super(c,u),this.urlAfterRedirects=v,this.state=D}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class te extends Ue{constructor(c,u,v,D){super(c,u),this.urlAfterRedirects=v,this.state=D}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ne extends Ue{constructor(c,u,v,D,M){super(c,u),this.urlAfterRedirects=v,this.state=D,this.shouldActivate=M}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ae extends Ue{constructor(c,u,v,D){super(c,u),this.urlAfterRedirects=v,this.state=D}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ye extends Ue{constructor(c,u,v,D){super(c,u),this.urlAfterRedirects=v,this.state=D}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qe{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Oe{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class at{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lt{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yt{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class de{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class H{constructor(c,u,v){this.routerEvent=c,this.position=u,this.anchor=v}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const N="primary";class Ne{constructor(c){this.params=c||{}}has(c){return Object.prototype.hasOwnProperty.call(this.params,c)}get(c){if(this.has(c)){const u=this.params[c];return Array.isArray(u)?u[0]:u}return null}getAll(c){if(this.has(c)){const u=this.params[c];return Array.isArray(u)?u:[u]}return[]}get keys(){return Object.keys(this.params)}}function _e(h){return new Ne(h)}const ke="ngNavigationCancelingError";function Ge(h){const c=Error("NavigationCancelingError: "+h);return c[ke]=!0,c}function bt(h,c,u){const v=u.path.split("/");if(v.length>h.length||"full"===u.pathMatch&&(c.hasChildren()||v.length<h.length))return null;const D={};for(let M=0;M<v.length;M++){const R=v[M],W=h[M];if(R.startsWith(":"))D[R.substring(1)]=W;else if(R!==W.path)return null}return{consumed:h.slice(0,v.length),posParams:D}}function Xt(h,c){const u=h?Object.keys(h):void 0,v=c?Object.keys(c):void 0;if(!u||!v||u.length!=v.length)return!1;let D;for(let M=0;M<u.length;M++)if(D=u[M],!sn(h[D],c[D]))return!1;return!0}function sn(h,c){if(Array.isArray(h)&&Array.isArray(c)){if(h.length!==c.length)return!1;const u=[...h].sort(),v=[...c].sort();return u.every((D,M)=>v[M]===D)}return h===c}function an(h){return Array.prototype.concat.apply([],h)}function $e(h){return h.length>0?h[h.length-1]:null}function ue(h,c){for(const u in h)h.hasOwnProperty(u)&&c(h[u],u)}function k(h){return(0,f.CqO)(h)?h:(0,f.QGY)(h)?(0,X.D)(Promise.resolve(h)):(0,F.of)(h)}const Lt={exact:function Kn(h,c,u){if(!ee(h.segments,c.segments)||!wn(h.segments,c.segments,u)||h.numberOfChildren!==c.numberOfChildren)return!1;for(const v in c.children)if(!h.children[v]||!Kn(h.children[v],c.children[v],u))return!1;return!0},subset:lr},An={exact:function Br(h,c){return Xt(h,c)},subset:function br(h,c){return Object.keys(c).length<=Object.keys(h).length&&Object.keys(c).every(u=>sn(h[u],c[u]))},ignored:()=>!0};function Wn(h,c,u){return Lt[u.paths](h.root,c.root,u.matrixParams)&&An[u.queryParams](h.queryParams,c.queryParams)&&!("exact"===u.fragment&&h.fragment!==c.fragment)}function lr(h,c,u){return Ln(h,c,c.segments,u)}function Ln(h,c,u,v){if(h.segments.length>u.length){const D=h.segments.slice(0,u.length);return!(!ee(D,u)||c.hasChildren()||!wn(D,u,v))}if(h.segments.length===u.length){if(!ee(h.segments,u)||!wn(h.segments,u,v))return!1;for(const D in c.children)if(!h.children[D]||!lr(h.children[D],c.children[D],v))return!1;return!0}{const D=u.slice(0,h.segments.length),M=u.slice(h.segments.length);return!!(ee(h.segments,D)&&wn(h.segments,D,v)&&h.children[N])&&Ln(h.children[N],c,M,v)}}function wn(h,c,u){return c.every((v,D)=>An[u](h[D].parameters,v.parameters))}class jn{constructor(c,u,v){this.root=c,this.queryParams=u,this.fragment=v}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_e(this.queryParams)),this._queryParamMap}toString(){return dn.serialize(this)}}class J{constructor(c,u){this.segments=c,this.children=u,this.parent=null,ue(u,(v,D)=>v.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return En(this)}}class K{constructor(c,u){this.path=c,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=_e(this.parameters)),this._parameterMap}toString(){return St(this)}}function ee(h,c){return h.length===c.length&&h.every((u,v)=>u.path===c[v].path)}class it{}class dt{parse(c){const u=new Et(c);return new jn(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(c){const u=`/${Yn(c.root,!0)}`,v=function qn(h){const c=Object.keys(h).map(u=>{const v=h[u];return Array.isArray(v)?v.map(D=>`${Qn(u)}=${Qn(D)}`).join("&"):`${Qn(u)}=${Qn(v)}`}).filter(u=>!!u);return c.length?`?${c.join("&")}`:""}(c.queryParams);return`${u}${v}${"string"==typeof c.fragment?`#${function _n(h){return encodeURI(h)}(c.fragment)}`:""}`}}const dn=new dt;function En(h){return h.segments.map(c=>St(c)).join("/")}function Yn(h,c){if(!h.hasChildren())return En(h);if(c){const u=h.children[N]?Yn(h.children[N],!1):"",v=[];return ue(h.children,(D,M)=>{M!==N&&v.push(`${M}:${Yn(D,!1)}`)}),v.length>0?`${u}(${v.join("//")})`:u}{const u=function Ie(h,c){let u=[];return ue(h.children,(v,D)=>{D===N&&(u=u.concat(c(v,D)))}),ue(h.children,(v,D)=>{D!==N&&(u=u.concat(c(v,D)))}),u}(h,(v,D)=>D===N?[Yn(h.children[N],!1)]:[`${D}:${Yn(v,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[N]?`${En(h)}/${u[0]}`:`${En(h)}/(${u.join("//")})`}}function vn(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qn(h){return vn(h).replace(/%3B/gi,";")}function mr(h){return vn(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function In(h){return decodeURIComponent(h)}function We(h){return In(h.replace(/\+/g,"%20"))}function St(h){return`${mr(h.path)}${function en(h){return Object.keys(h).map(c=>`;${mr(c)}=${mr(h[c])}`).join("")}(h.parameters)}`}const ir=/^[^\/()?;=#]+/;function pn(h){const c=h.match(ir);return c?c[0]:""}const ur=/^[^=?&#]+/,cr=/^[^&#]+/;class Et{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){const c={};if(this.consumeOptional("?"))do{this.parseQueryParam(c)}while(this.consumeOptional("&"));return c}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const c=[];for(this.peekStartsWith("(")||c.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),c.push(this.parseSegment());let u={};this.peekStartsWith("/(")&&(this.capture("/"),u=this.parseParens(!0));let v={};return this.peekStartsWith("(")&&(v=this.parseParens(!1)),(c.length>0||Object.keys(u).length>0)&&(v[N]=new J(c,u)),v}parseSegment(){const c=pn(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new K(In(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const u=pn(this.remaining);if(!u)return;this.capture(u);let v="";if(this.consumeOptional("=")){const D=pn(this.remaining);D&&(v=D,this.capture(v))}c[In(u)]=In(v)}parseQueryParam(c){const u=function ln(h){const c=h.match(ur);return c?c[0]:""}(this.remaining);if(!u)return;this.capture(u);let v="";if(this.consumeOptional("=")){const R=function dr(h){const c=h.match(cr);return c?c[0]:""}(this.remaining);R&&(v=R,this.capture(v))}const D=We(u),M=We(v);if(c.hasOwnProperty(D)){let R=c[D];Array.isArray(R)||(R=[R],c[D]=R),R.push(M)}else c[D]=M}parseParens(c){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const v=pn(this.remaining),D=this.remaining[v.length];if("/"!==D&&")"!==D&&";"!==D)throw new Error(`Cannot parse url '${this.url}'`);let M;v.indexOf(":")>-1?(M=v.substr(0,v.indexOf(":")),this.capture(M),this.capture(":")):c&&(M=N);const R=this.parseChildren();u[M]=1===Object.keys(R).length?R[N]:new J([],R),this.consumeOptional("//")}return u}peekStartsWith(c){return this.remaining.startsWith(c)}consumeOptional(c){return!!this.peekStartsWith(c)&&(this.remaining=this.remaining.substring(c.length),!0)}capture(c){if(!this.consumeOptional(c))throw new Error(`Expected "${c}".`)}}class jr{constructor(c){this._root=c}get root(){return this._root.value}parent(c){const u=this.pathFromRoot(c);return u.length>1?u[u.length-2]:null}children(c){const u=fr(c,this._root);return u?u.children.map(v=>v.value):[]}firstChild(c){const u=fr(c,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(c){const u=yr(c,this._root);return u.length<2?[]:u[u.length-2].children.map(D=>D.value).filter(D=>D!==c)}pathFromRoot(c){return yr(c,this._root).map(u=>u.value)}}function fr(h,c){if(h===c.value)return c;for(const u of c.children){const v=fr(h,u);if(v)return v}return null}function yr(h,c){if(h===c.value)return[c];for(const u of c.children){const v=yr(h,u);if(v.length)return v.unshift(c),v}return[]}class On{constructor(c,u){this.value=c,this.children=u}toString(){return`TreeNode(${this.value})`}}function gn(h){const c={};return h&&h.children.forEach(u=>c[u.value.outlet]=u),c}class wr extends jr{constructor(c,u){super(c),this.snapshot=u,vr(this,c)}toString(){return this.snapshot.toString()}}function Ur(h,c){const u=function Zn(h,c){const R=new fn([],{},{},"",{},N,c,null,h.root,-1,{});return new Pn("",new On(R,[]))}(h,c),v=new x.X([new K("",{})]),D=new x.X({}),M=new x.X({}),R=new x.X({}),W=new x.X(""),be=new Ht(v,D,R,W,M,N,c,u.root);return be.snapshot=u.root,new wr(new On(be,[]),u)}class Ht{constructor(c,u,v,D,M,R,W,be){this.url=c,this.params=u,this.queryParams=v,this.fragment=D,this.data=M,this.outlet=R,this.component=W,this._futureSnapshot=be}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,je.U)(c=>_e(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,je.U)(c=>_e(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hr(h,c="emptyOnly"){const u=h.pathFromRoot;let v=0;if("always"!==c)for(v=u.length-1;v>=1;){const D=u[v],M=u[v-1];if(D.routeConfig&&""===D.routeConfig.path)v--;else{if(M.component)break;v--}}return function Es(h){return h.reduce((c,u)=>({params:Object.assign(Object.assign({},c.params),u.params),data:Object.assign(Object.assign({},c.data),u.data),resolve:Object.assign(Object.assign({},c.resolve),u._resolvedData)}),{params:{},data:{},resolve:{}})}(u.slice(v))}class fn{constructor(c,u,v,D,M,R,W,be,tt,kt,st){this.url=c,this.params=u,this.queryParams=v,this.fragment=D,this.data=M,this.outlet=R,this.component=W,this.routeConfig=be,this._urlSegment=tt,this._lastPathIndex=kt,this._resolve=st}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=_e(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_e(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(v=>v.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pn extends jr{constructor(c,u){super(u),this.url=c,vr(this,u)}toString(){return Tr(this._root)}}function vr(h,c){c.value._routerState=h,c.children.forEach(u=>vr(h,u))}function Tr(h){const c=h.children.length>0?` { ${h.children.map(Tr).join(", ")} } `:"";return`${h.value}${c}`}function Sr(h){if(h.snapshot){const c=h.snapshot,u=h._futureSnapshot;h.snapshot=u,Xt(c.queryParams,u.queryParams)||h.queryParams.next(u.queryParams),c.fragment!==u.fragment&&h.fragment.next(u.fragment),Xt(c.params,u.params)||h.params.next(u.params),function ct(h,c){if(h.length!==c.length)return!1;for(let u=0;u<h.length;++u)if(!Xt(h[u],c[u]))return!1;return!0}(c.url,u.url)||h.url.next(u.url),Xt(c.data,u.data)||h.data.next(u.data)}else h.snapshot=h._futureSnapshot,h.data.next(h._futureSnapshot.data)}function Un(h,c){const u=Xt(h.params,c.params)&&function P(h,c){return ee(h,c)&&h.every((u,v)=>Xt(u.parameters,c[v].parameters))}(h.url,c.url);return u&&!(!h.parent!=!c.parent)&&(!h.parent||Un(h.parent,c.parent))}function Zr(h,c,u){if(u&&h.shouldReuseRoute(c.value,u.value.snapshot)){const v=u.value;v._futureSnapshot=c.value;const D=function Di(h,c,u){return c.children.map(v=>{for(const D of u.children)if(h.shouldReuseRoute(v.value,D.value.snapshot))return Zr(h,v,D);return Zr(h,v)})}(h,c,u);return new On(v,D)}{if(h.shouldAttach(c.value)){const M=h.retrieve(c.value);if(null!==M){const R=M.route;return R.value._futureSnapshot=c.value,R.children=c.children.map(W=>Zr(h,W)),R}}const v=function Hn(h){return new Ht(new x.X(h.url),new x.X(h.params),new x.X(h.queryParams),new x.X(h.fragment),new x.X(h.data),h.outlet,h.component,h)}(c.value),D=c.children.map(M=>Zr(h,M));return new On(v,D)}}function Vr(h){return"object"==typeof h&&null!=h&&!h.outlets&&!h.segmentPath}function $r(h){return"object"==typeof h&&null!=h&&h.outlets}function Jr(h,c,u,v,D){let M={};if(v&&ue(v,(W,be)=>{M[be]=Array.isArray(W)?W.map(tt=>`${tt}`):`${W}`}),h===c)return new jn(u,M,D);const R=Bs(h,c,u);return new jn(R,M,D)}function Bs(h,c,u){const v={};return ue(h.children,(D,M)=>{v[M]=D===c?u:Bs(D,c,u)}),new J(h.segments,v)}class js{constructor(c,u,v){if(this.isAbsolute=c,this.numberOfDoubleDots=u,this.commands=v,c&&v.length>0&&Vr(v[0]))throw new Error("Root segment cannot have matrix parameters");const D=v.find($r);if(D&&D!==$e(v))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Xs{constructor(c,u,v){this.segmentGroup=c,this.processChildren=u,this.index=v}}function ti(h,c,u){if(h||(h=new J([],{})),0===h.segments.length&&h.hasChildren())return Cs(h,c,u);const v=function ni(h,c,u){let v=0,D=c;const M={match:!1,pathIndex:0,commandIndex:0};for(;D<h.segments.length;){if(v>=u.length)return M;const R=h.segments[D],W=u[v];if($r(W))break;const be=`${W}`,tt=v<u.length-1?u[v+1]:null;if(D>0&&void 0===be)break;if(be&&tt&&"object"==typeof tt&&void 0===tt.outlets){if(!Hs(be,tt,R))return M;v+=2}else{if(!Hs(be,{},R))return M;v++}D++}return{match:!0,pathIndex:D,commandIndex:v}}(h,c,u),D=u.slice(v.commandIndex);if(v.match&&v.pathIndex<h.segments.length){const M=new J(h.segments.slice(0,v.pathIndex),{});return M.children[N]=new J(h.segments.slice(v.pathIndex),h.children),Cs(M,0,D)}return v.match&&0===D.length?new J(h.segments,{}):v.match&&!h.hasChildren()?Mr(h,c,u):v.match?Cs(h,0,D):Mr(h,c,u)}function Cs(h,c,u){if(0===u.length)return new J(h.segments,{});{const v=function ei(h){return $r(h[0])?h[0].outlets:{[N]:h}}(u),D={};return ue(v,(M,R)=>{"string"==typeof M&&(M=[M]),null!==M&&(D[R]=ti(h.children[R],c,M))}),ue(h.children,(M,R)=>{void 0===v[R]&&(D[R]=M)}),new J(h.segments,D)}}function Mr(h,c,u){const v=h.segments.slice(0,c);let D=0;for(;D<u.length;){const M=u[D];if($r(M)){const be=us(M.outlets);return new J(v,be)}if(0===D&&Vr(u[0])){v.push(new K(h.segments[c].path,ri(u[0]))),D++;continue}const R=$r(M)?M.outlets[N]:`${M}`,W=D<u.length-1?u[D+1]:null;R&&W&&Vr(W)?(v.push(new K(R,ri(W))),D+=2):(v.push(new K(R,{})),D++)}return new J(v,{})}function us(h){const c={};return ue(h,(u,v)=>{"string"==typeof u&&(u=[u]),null!==u&&(c[v]=Mr(new J([],{}),0,u))}),c}function ri(h){const c={};return ue(h,(u,v)=>c[v]=`${u}`),c}function Hs(h,c,u){return h==u.path&&Xt(c,u.parameters)}class Ar{constructor(c,u,v,D){this.routeReuseStrategy=c,this.futureState=u,this.currState=v,this.forwardEvent=D}activate(c){const u=this.futureState._root,v=this.currState?this.currState._root:null;this.deactivateChildRoutes(u,v,c),Sr(this.futureState.root),this.activateChildRoutes(u,v,c)}deactivateChildRoutes(c,u,v){const D=gn(u);c.children.forEach(M=>{const R=M.value.outlet;this.deactivateRoutes(M,D[R],v),delete D[R]}),ue(D,(M,R)=>{this.deactivateRouteAndItsChildren(M,v)})}deactivateRoutes(c,u,v){const D=c.value,M=u?u.value:null;if(D===M)if(D.component){const R=v.getContext(D.outlet);R&&this.deactivateChildRoutes(c,u,R.children)}else this.deactivateChildRoutes(c,u,v);else M&&this.deactivateRouteAndItsChildren(u,v)}deactivateRouteAndItsChildren(c,u){c.value.component&&this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,u):this.deactivateRouteAndOutlet(c,u)}detachAndStoreRouteSubtree(c,u){const v=u.getContext(c.value.outlet),D=v&&c.value.component?v.children:u,M=gn(c);for(const R of Object.keys(M))this.deactivateRouteAndItsChildren(M[R],D);if(v&&v.outlet){const R=v.outlet.detach(),W=v.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:R,route:c,contexts:W})}}deactivateRouteAndOutlet(c,u){const v=u.getContext(c.value.outlet),D=v&&c.value.component?v.children:u,M=gn(c);for(const R of Object.keys(M))this.deactivateRouteAndItsChildren(M[R],D);v&&v.outlet&&(v.outlet.deactivate(),v.children.onOutletDeactivated(),v.attachRef=null,v.resolver=null,v.route=null)}activateChildRoutes(c,u,v){const D=gn(u);c.children.forEach(M=>{this.activateRoutes(M,D[M.value.outlet],v),this.forwardEvent(new de(M.value.snapshot))}),c.children.length&&this.forwardEvent(new lt(c.value.snapshot))}activateRoutes(c,u,v){const D=c.value,M=u?u.value:null;if(Sr(D),D===M)if(D.component){const R=v.getOrCreateContext(D.outlet);this.activateChildRoutes(c,u,R.children)}else this.activateChildRoutes(c,u,v);else if(D.component){const R=v.getOrCreateContext(D.outlet);if(this.routeReuseStrategy.shouldAttach(D.snapshot)){const W=this.routeReuseStrategy.retrieve(D.snapshot);this.routeReuseStrategy.store(D.snapshot,null),R.children.onOutletReAttached(W.contexts),R.attachRef=W.componentRef,R.route=W.route.value,R.outlet&&R.outlet.attach(W.componentRef,W.route.value),Sr(W.route.value),this.activateChildRoutes(c,null,R.children)}else{const W=function ii(h){for(let c=h.parent;c;c=c.parent){const u=c.routeConfig;if(u&&u._loadedConfig)return u._loadedConfig;if(u&&u.component)return null}return null}(D.snapshot),be=W?W.module.componentFactoryResolver:null;R.attachRef=null,R.route=D,R.resolver=be,R.outlet&&R.outlet.activateWith(D,be),this.activateChildRoutes(c,null,R.children)}}else this.activateChildRoutes(c,null,v)}}class _r{constructor(c,u){this.routes=c,this.module=u}}function er(h){return"function"==typeof h}function Ir(h){return h instanceof jn}const es=Symbol("INITIAL_VALUE");function Tn(){return(0,Dn.w)(h=>(0,Y.aj)(h.map(c=>c.pipe((0,Je.q)(1),(0,bn.O)(es)))).pipe((0,Vt.R)((c,u)=>{let v=!1;return u.reduce((D,M,R)=>D!==es?D:(M===es&&(v=!0),v||!1!==M&&R!==u.length-1&&!Ir(M)?D:M),c)},es),(0,Ee.h)(c=>c!==es),(0,je.U)(c=>Ir(c)?c:!0===c),(0,Je.q)(1)))}class ws{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new cs,this.attachRef=null}}class cs{constructor(){this.contexts=new Map}onChildOutletCreated(c,u){const v=this.getOrCreateContext(c);v.outlet=u,this.contexts.set(c,v)}onChildOutletDestroyed(c){const u=this.getContext(c);u&&(u.outlet=null,u.attachRef=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let u=this.getContext(c);return u||(u=new ws,this.contexts.set(c,u)),u}getContext(c){return this.contexts.get(c)||null}}let xn=(()=>{class h{constructor(u,v,D,M,R){this.parentContexts=u,this.location=v,this.resolver=D,this.changeDetector=R,this.activated=null,this._activatedRoute=null,this.activateEvents=new f.vpe,this.deactivateEvents=new f.vpe,this.attachEvents=new f.vpe,this.detachEvents=new f.vpe,this.name=M||N,u.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const u=this.parentContexts.getContext(this.name);u&&u.route&&(u.attachRef?this.attach(u.attachRef,u.route):this.activateWith(u.route,u.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 u=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(u.instance),u}attach(u,v){this.activated=u,this._activatedRoute=v,this.location.insert(u.hostView),this.attachEvents.emit(u.instance)}deactivate(){if(this.activated){const u=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(u)}}activateWith(u,v){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=u;const R=(v=v||this.resolver).resolveComponentFactory(u._futureSnapshot.routeConfig.component),W=this.parentContexts.getOrCreateContext(this.name).children,be=new $s(u,W,this.location.injector);this.activated=this.location.createComponent(R,this.location.length,be),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return h.\u0275fac=function(u){return new(u||h)(f.Y36(cs),f.Y36(f.s_b),f.Y36(f._Vd),f.$8M("name"),f.Y36(f.sBO))},h.\u0275dir=f.lG2({type:h,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),h})();class $s{constructor(c,u,v){this.route=c,this.childContexts=u,this.parent=v}get(c,u){return c===Ht?this.route:c===cs?this.childContexts:this.parent.get(c,u)}}let zr=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275cmp=f.Xpm({type:h,selectors:[["ng-component"]],decls:1,vars:0,template:function(u,v){1&u&&f._UZ(0,"router-outlet")},directives:[xn],encapsulation:2}),h})();function Gr(h,c=""){for(let u=0;u<h.length;u++){const v=h[u];zs(v,Ts(c,v))}}function zs(h,c){h.children&&Gr(h.children,c)}function Ts(h,c){return c?h||c.path?h&&!c.path?`${h}/`:!h&&c.path?c.path:`${h}/${c.path}`:"":h}function Ss(h){const c=h.children&&h.children.map(Ss),u=c?Object.assign(Object.assign({},h),{children:c}):Object.assign({},h);return!u.component&&(c||u.loadChildren)&&u.outlet&&u.outlet!==N&&(u.component=zr),u}function Bt(h){return h.outlet||N}function _(h,c){const u=h.filter(v=>Bt(v)===c);return u.push(...h.filter(v=>Bt(v)!==c)),u}const T={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function m(h,c,u){var v;if(""===c.path)return"full"===c.pathMatch&&(h.hasChildren()||u.length>0)?Object.assign({},T):{matched:!0,consumedSegments:[],remainingSegments:u,parameters:{},positionalParamSegments:{}};const M=(c.matcher||bt)(u,h,c);if(!M)return Object.assign({},T);const R={};ue(M.posParams,(be,tt)=>{R[tt]=be.path});const W=M.consumed.length>0?Object.assign(Object.assign({},R),M.consumed[M.consumed.length-1].parameters):R;return{matched:!0,consumedSegments:M.consumed,remainingSegments:u.slice(M.consumed.length),parameters:W,positionalParamSegments:null!==(v=M.posParams)&&void 0!==v?v:{}}}function A(h,c,u,v,D="corrected"){if(u.length>0&&function Me(h,c,u){return u.some(v=>Yt(h,c,v)&&Bt(v)!==N)}(h,u,v)){const R=new J(c,function ve(h,c,u,v){const D={};D[N]=v,v._sourceSegment=h,v._segmentIndexShift=c.length;for(const M of u)if(""===M.path&&Bt(M)!==N){const R=new J([],{});R._sourceSegment=h,R._segmentIndexShift=c.length,D[Bt(M)]=R}return D}(h,c,v,new J(u,h.children)));return R._sourceSegment=h,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:[]}}if(0===u.length&&function Xe(h,c,u){return u.some(v=>Yt(h,c,v))}(h,u,v)){const R=new J(h.segments,function G(h,c,u,v,D,M){const R={};for(const W of v)if(Yt(h,u,W)&&!D[Bt(W)]){const be=new J([],{});be._sourceSegment=h,be._segmentIndexShift="legacy"===M?h.segments.length:c.length,R[Bt(W)]=be}return Object.assign(Object.assign({},D),R)}(h,c,u,v,h.children,D));return R._sourceSegment=h,R._segmentIndexShift=c.length,{segmentGroup:R,slicedSegments:u}}const M=new J(h.segments,h.children);return M._sourceSegment=h,M._segmentIndexShift=c.length,{segmentGroup:M,slicedSegments:u}}function Yt(h,c,u){return(!(h.hasChildren()||c.length>0)||"full"!==u.pathMatch)&&""===u.path}function Gt(h,c,u,v){return!!(Bt(h)===v||v!==N&&Yt(c,u,h))&&("**"===h.path||m(c,h,u).matched)}function It(h,c,u){return 0===c.length&&!h.children[u]}class Rt{constructor(c){this.segmentGroup=c||null}}class mn{constructor(c){this.urlTree=c}}function Wt(h){return(0,Q._)(new Rt(h))}function un(h){return(0,Q._)(new mn(h))}class Kr{constructor(c,u,v,D,M){this.configLoader=u,this.urlSerializer=v,this.urlTree=D,this.config=M,this.allowRedirects=!0,this.ngModule=c.get(f.h0i)}apply(){const c=A(this.urlTree.root,[],[],this.config).segmentGroup,u=new J(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,u,N).pipe((0,je.U)(M=>this.createUrlTree(Yr(M),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Kt.K)(M=>{if(M instanceof mn)return this.allowRedirects=!1,this.match(M.urlTree);throw M instanceof Rt?this.noMatchError(M):M}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,N).pipe((0,je.U)(D=>this.createUrlTree(Yr(D),c.queryParams,c.fragment))).pipe((0,Kt.K)(D=>{throw D instanceof Rt?this.noMatchError(D):D}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,u,v){const D=c.segments.length>0?new J([],{[N]:c}):c;return new jn(D,u,v)}expandSegmentGroup(c,u,v,D){return 0===v.segments.length&&v.hasChildren()?this.expandChildren(c,u,v).pipe((0,je.U)(M=>new J([],M))):this.expandSegment(c,v,u,v.segments,D,!0)}expandChildren(c,u,v){const D=[];for(const M of Object.keys(v.children))"primary"===M?D.unshift(M):D.push(M);return(0,X.D)(D).pipe((0,Tt.b)(M=>{const R=v.children[M],W=_(u,M);return this.expandSegmentGroup(c,W,R,M).pipe((0,je.U)(be=>({segment:be,outlet:M})))}),(0,Vt.R)((M,R)=>(M[R.outlet]=R.segment,M),{}),function At(h,c){const u=arguments.length>=2;return v=>v.pipe(h?(0,Ee.h)((D,M)=>h(D,M,v)):Pt.y,ze(1),u?jt(c):Be(()=>new se))}())}expandSegment(c,u,v,D,M,R){return(0,X.D)(v).pipe((0,Tt.b)(W=>this.expandSegmentAgainstRoute(c,u,v,W,D,M,R).pipe((0,Kt.K)(tt=>{if(tt instanceof Rt)return(0,F.of)(null);throw tt}))),Dt(W=>!!W),(0,Kt.K)((W,be)=>{if(W instanceof se||"EmptyError"===W.name)return It(u,D,M)?(0,F.of)(new J([],{})):Wt(u);throw W}))}expandSegmentAgainstRoute(c,u,v,D,M,R,W){return Gt(D,u,M,R)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(c,u,D,M,R):W&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,u,v,D,M,R):Wt(u):Wt(u)}expandSegmentAgainstRouteUsingRedirect(c,u,v,D,M,R){return"**"===D.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,v,D,R):this.expandRegularSegmentAgainstRouteUsingRedirect(c,u,v,D,M,R)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,u,v,D){const M=this.applyRedirectCommands([],v.redirectTo,{});return v.redirectTo.startsWith("/")?un(M):this.lineralizeSegments(v,M).pipe((0,rn.zg)(R=>{const W=new J(R,{});return this.expandSegment(c,W,u,R,D,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,u,v,D,M,R){const{matched:W,consumedSegments:be,remainingSegments:tt,positionalParamSegments:kt}=m(u,D,M);if(!W)return Wt(u);const st=this.applyRedirectCommands(be,D.redirectTo,kt);return D.redirectTo.startsWith("/")?un(st):this.lineralizeSegments(D,st).pipe((0,rn.zg)(nn=>this.expandSegment(c,u,v,nn.concat(tt),R,!1)))}matchSegmentAgainstRoute(c,u,v,D,M){if("**"===v.path)return v.loadChildren?(v._loadedConfig?(0,F.of)(v._loadedConfig):this.configLoader.load(c.injector,v)).pipe((0,je.U)(st=>(v._loadedConfig=st,new J(D,{})))):(0,F.of)(new J(D,{}));const{matched:R,consumedSegments:W,remainingSegments:be}=m(u,v,D);return R?this.getChildConfig(c,v,D).pipe((0,rn.zg)(kt=>{const st=kt.module,nn=kt.routes,{segmentGroup:Zt,slicedSegments:Nr}=A(u,W,be,nn),Cr=new J(Zt.segments,Zt.children);if(0===Nr.length&&Cr.hasChildren())return this.expandChildren(st,nn,Cr).pipe((0,je.U)(Qs=>new J(W,Qs)));if(0===nn.length&&0===Nr.length)return(0,F.of)(new J(W,{}));const Pi=Bt(v)===M;return this.expandSegment(st,Cr,nn,Nr,Pi?N:M,!0).pipe((0,je.U)(Ns=>new J(W.concat(Ns.segments),Ns.children)))})):Wt(u)}getChildConfig(c,u,v){return u.children?(0,F.of)(new _r(u.children,c)):u.loadChildren?void 0!==u._loadedConfig?(0,F.of)(u._loadedConfig):this.runCanLoadGuards(c.injector,u,v).pipe((0,rn.zg)(D=>D?this.configLoader.load(c.injector,u).pipe((0,je.U)(M=>(u._loadedConfig=M,M))):function tr(h){return(0,Q._)(Ge(`Cannot load children because the guard of the route "path: '${h.path}'" returned false`))}(u))):(0,F.of)(new _r([],c))}runCanLoadGuards(c,u,v){const D=u.canLoad;if(!D||0===D.length)return(0,F.of)(!0);const M=D.map(R=>{const W=c.get(R);let be;if(function Vs(h){return h&&er(h.canLoad)}(W))be=W.canLoad(u,v);else{if(!er(W))throw new Error("Invalid CanLoad guard");be=W(u,v)}return k(be)});return(0,F.of)(M).pipe(Tn(),(0,Ut.b)(R=>{if(!Ir(R))return;const W=Ge(`Redirecting to "${this.urlSerializer.serialize(R)}"`);throw W.url=R,W}),(0,je.U)(R=>!0===R))}lineralizeSegments(c,u){let v=[],D=u.root;for(;;){if(v=v.concat(D.segments),0===D.numberOfChildren)return(0,F.of)(v);if(D.numberOfChildren>1||!D.children[N])return(0,Q._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${c.redirectTo}'`));D=D.children[N]}}applyRedirectCommands(c,u,v){return this.applyRedirectCreatreUrlTree(u,this.urlSerializer.parse(u),c,v)}applyRedirectCreatreUrlTree(c,u,v,D){const M=this.createSegmentGroup(c,u.root,v,D);return new jn(M,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(c,u){const v={};return ue(c,(D,M)=>{if("string"==typeof D&&D.startsWith(":")){const W=D.substring(1);v[M]=u[W]}else v[M]=D}),v}createSegmentGroup(c,u,v,D){const M=this.createSegments(c,u.segments,v,D);let R={};return ue(u.children,(W,be)=>{R[be]=this.createSegmentGroup(c,W,v,D)}),new J(M,R)}createSegments(c,u,v,D){return u.map(M=>M.path.startsWith(":")?this.findPosParam(c,M,D):this.findOrReturn(M,v))}findPosParam(c,u,v){const D=v[u.path.substring(1)];if(!D)throw new Error(`Cannot redirect to '${c}'. Cannot find '${u.path}'.`);return D}findOrReturn(c,u){let v=0;for(const D of u){if(D.path===c.path)return u.splice(v),D;v++}return c}}function Yr(h){const c={};for(const v of Object.keys(h.children)){const M=Yr(h.children[v]);(M.segments.length>0||M.hasChildren())&&(c[v]=M)}return function Gs(h){if(1===h.numberOfChildren&&h.children[N]){const c=h.children[N];return new J(h.segments.concat(c.segments),c.children)}return h}(new J(h.segments,c))}class li{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class Ks{constructor(c,u){this.component=c,this.route=u}}function bi(h,c,u){const v=h._root;return hn(v,c?c._root:null,u,[v.value])}function Nt(h,c,u){const v=function wi(h){if(!h)return null;for(let c=h.parent;c;c=c.parent){const u=c.routeConfig;if(u&&u._loadedConfig)return u._loadedConfig}return null}(c);return(v?v.module.injector:u).get(h)}function hn(h,c,u,v,D={canDeactivateChecks:[],canActivateChecks:[]}){const M=gn(c);return h.children.forEach(R=>{(function Ti(h,c,u,v,D={canDeactivateChecks:[],canActivateChecks:[]}){const M=h.value,R=c?c.value:null,W=u?u.getContext(h.value.outlet):null;if(R&&M.routeConfig===R.routeConfig){const be=function Ms(h,c,u){if("function"==typeof u)return u(h,c);switch(u){case"pathParamsChange":return!ee(h.url,c.url);case"pathParamsOrQueryParamsChange":return!ee(h.url,c.url)||!Xt(h.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Un(h,c)||!Xt(h.queryParams,c.queryParams);default:return!Un(h,c)}}(R,M,M.routeConfig.runGuardsAndResolvers);be?D.canActivateChecks.push(new li(v)):(M.data=R.data,M._resolvedData=R._resolvedData),hn(h,c,M.component?W?W.children:null:u,v,D),be&&W&&W.outlet&&W.outlet.isActivated&&D.canDeactivateChecks.push(new Ks(W.outlet.component,R))}else R&&Jn(c,W,D),D.canActivateChecks.push(new li(v)),hn(h,null,M.component?W?W.children:null:u,v,D)})(R,M[R.value.outlet],u,v.concat([R.value]),D),delete M[R.value.outlet]}),ue(M,(R,W)=>Jn(R,u.getContext(W),D)),D}function Jn(h,c,u){const v=gn(h),D=h.value;ue(v,(M,R)=>{Jn(M,D.component?c?c.children.getContext(R):null:c,u)}),u.canDeactivateChecks.push(new Ks(D.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,D))}class ho{}function C(h){return new q.y(c=>c.error(h))}class l{constructor(c,u,v,D,M,R){this.rootComponentType=c,this.config=u,this.urlTree=v,this.url=D,this.paramsInheritanceStrategy=M,this.relativeLinkResolution=R}recognize(){const c=A(this.urlTree.root,[],[],this.config.filter(R=>void 0===R.redirectTo),this.relativeLinkResolution).segmentGroup,u=this.processSegmentGroup(this.config,c,N);if(null===u)return null;const v=new fn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},N,this.rootComponentType,null,this.urlTree.root,-1,{}),D=new On(v,u),M=new Pn(this.url,D);return this.inheritParamsAndData(M._root),M}inheritParamsAndData(c){const u=c.value,v=Hr(u,this.paramsInheritanceStrategy);u.params=Object.freeze(v.params),u.data=Object.freeze(v.data),c.children.forEach(D=>this.inheritParamsAndData(D))}processSegmentGroup(c,u,v){return 0===u.segments.length&&u.hasChildren()?this.processChildren(c,u):this.processSegment(c,u,u.segments,v)}processChildren(c,u){const v=[];for(const M of Object.keys(u.children)){const R=u.children[M],W=_(c,M),be=this.processSegmentGroup(W,R,M);if(null===be)return null;v.push(...be)}const D=L(v);return function g(h){h.sort((c,u)=>c.value.outlet===N?-1:u.value.outlet===N?1:c.value.outlet.localeCompare(u.value.outlet))}(D),D}processSegment(c,u,v,D){for(const M of c){const R=this.processSegmentAgainstRoute(M,u,v,D);if(null!==R)return R}return It(u,v,D)?[]:null}processSegmentAgainstRoute(c,u,v,D){if(c.redirectTo||!Gt(c,u,v,D))return null;let M,R=[],W=[];if("**"===c.path){const Zt=v.length>0?$e(v).parameters:{};M=new fn(v,Zt,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qe(c),Bt(c),c.component,c,le(u),Ce(u)+v.length,rt(c))}else{const Zt=m(u,c,v);if(!Zt.matched)return null;R=Zt.consumedSegments,W=Zt.remainingSegments,M=new fn(R,Zt.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qe(c),Bt(c),c.component,c,le(u),Ce(u)+R.length,rt(c))}const be=function b(h){return h.children?h.children:h.loadChildren?h._loadedConfig.routes:[]}(c),{segmentGroup:tt,slicedSegments:kt}=A(u,R,W,be.filter(Zt=>void 0===Zt.redirectTo),this.relativeLinkResolution);if(0===kt.length&&tt.hasChildren()){const Zt=this.processChildren(be,tt);return null===Zt?null:[new On(M,Zt)]}if(0===be.length&&0===kt.length)return[new On(M,[])];const st=Bt(c)===D,nn=this.processSegment(be,tt,kt,st?N:D);return null===nn?null:[new On(M,nn)]}}function I(h){const c=h.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function L(h){const c=[],u=new Set;for(const v of h){if(!I(v)){c.push(v);continue}const D=c.find(M=>v.value.routeConfig===M.value.routeConfig);void 0!==D?(D.children.push(...v.children),u.add(D)):c.push(v)}for(const v of u){const D=L(v.children);c.push(new On(v.value,D))}return c.filter(v=>!u.has(v))}function le(h){let c=h;for(;c._sourceSegment;)c=c._sourceSegment;return c}function Ce(h){let c=h,u=c._segmentIndexShift?c._segmentIndexShift:0;for(;c._sourceSegment;)c=c._sourceSegment,u+=c._segmentIndexShift?c._segmentIndexShift:0;return u-1}function qe(h){return h.data||{}}function rt(h){return h.resolve||{}}function qt(h){return[...Object.keys(h),...Object.getOwnPropertySymbols(h)]}function Cn(h){return(0,Dn.w)(c=>{const u=h(c);return u?(0,X.D)(u).pipe((0,je.U)(()=>c)):(0,F.of)(c)})}class nr extends class Qt{shouldDetach(c){return!1}store(c,u){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,u){return c.routeConfig===u.routeConfig}}{}const $t=new f.OlP("ROUTES");class Rn{constructor(c,u,v,D){this.injector=c,this.compiler=u,this.onLoadStartListener=v,this.onLoadEndListener=D}load(c,u){if(u._loader$)return u._loader$;this.onLoadStartListener&&this.onLoadStartListener(u);const D=this.loadModuleFactory(u.loadChildren).pipe((0,je.U)(M=>{this.onLoadEndListener&&this.onLoadEndListener(u);const R=M.create(c);return new _r(an(R.injector.get($t,void 0,f.XFs.Self|f.XFs.Optional)).map(Ss),R)}),(0,Kt.K)(M=>{throw u._loader$=void 0,M}));return u._loader$=new he.c(D,()=>new He.xQ).pipe((0,ge.x)()),u._loader$}loadModuleFactory(c){return k(c()).pipe((0,rn.zg)(u=>u instanceof f.YKP?(0,F.of)(u):(0,X.D)(this.compiler.compileModuleAsync(u))))}}class Dr{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,u){return c}}function xr(h){throw h}function Si(h,c,u){return c.parse("/")}function ds(h,c){return(0,F.of)(null)}const Er={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Os={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Sn=(()=>{class h{constructor(u,v,D,M,R,W,be){this.rootComponentType=u,this.urlSerializer=v,this.rootContexts=D,this.location=M,this.config=be,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=xr,this.malformedUriErrorHandler=Si,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ds,afterPreactivation:ds},this.urlHandlingStrategy=new Dr,this.routeReuseStrategy=new nr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=R.get(f.h0i),this.console=R.get(f.c2e);const st=R.get(f.R0b);this.isNgZoneEnabled=st instanceof f.R0b&&f.R0b.isInAngularZone(),this.resetConfig(be),this.currentUrlTree=function De(){return new jn(new J([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Rn(R,W,nn=>this.triggerEvent(new Qe(nn)),nn=>this.triggerEvent(new Oe(nn))),this.routerState=Ur(this.currentUrlTree,this.rootComponentType),this.transitions=new x.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 u;return null===(u=this.location.getState())||void 0===u?void 0:u.\u0275routerPageId}setupNavigations(u){const v=this.events;return u.pipe((0,Ee.h)(D=>0!==D.id),(0,je.U)(D=>Object.assign(Object.assign({},D),{extractedUrl:this.urlHandlingStrategy.extract(D.rawUrl)})),(0,Dn.w)(D=>{let M=!1,R=!1;return(0,F.of)(D).pipe((0,Ut.b)(W=>{this.currentNavigation={id:W.id,initialUrl:W.currentRawUrl,extractedUrl:W.extractedUrl,trigger:W.source,extras:W.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Dn.w)(W=>{const be=this.browserUrlTree.toString(),tt=!this.navigated||W.extractedUrl.toString()!==be||be!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||tt)&&this.urlHandlingStrategy.shouldProcessUrl(W.rawUrl))return ot(W.source)&&(this.browserUrlTree=W.extractedUrl),(0,F.of)(W).pipe((0,Dn.w)(st=>{const nn=this.transitions.getValue();return v.next(new mt(st.id,this.serializeUrl(st.extractedUrl),st.source,st.restoredState)),nn!==this.transitions.getValue()?$.E:Promise.resolve(st)}),function Ws(h,c,u,v){return(0,Dn.w)(D=>function ft(h,c,u,v,D){return new Kr(h,c,u,v,D).apply()}(h,c,u,D.extractedUrl,v).pipe((0,je.U)(M=>Object.assign(Object.assign({},D),{urlAfterRedirects:M}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ut.b)(st=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:st.urlAfterRedirects})}),function _t(h,c,u,v,D){return(0,rn.zg)(M=>function a(h,c,u,v,D="emptyOnly",M="legacy"){try{const R=new l(h,c,u,v,D,M).recognize();return null===R?C(new ho):(0,F.of)(R)}catch(R){return C(R)}}(h,c,M.urlAfterRedirects,u(M.urlAfterRedirects),v,D).pipe((0,je.U)(R=>Object.assign(Object.assign({},M),{targetSnapshot:R}))))}(this.rootComponentType,this.config,st=>this.serializeUrl(st),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ut.b)(st=>{if("eager"===this.urlUpdateStrategy){if(!st.extras.skipLocationChange){const Zt=this.urlHandlingStrategy.merge(st.urlAfterRedirects,st.rawUrl);this.setBrowserUrl(Zt,st)}this.browserUrlTree=st.urlAfterRedirects}const nn=new re(st.id,this.serializeUrl(st.extractedUrl),this.serializeUrl(st.urlAfterRedirects),st.targetSnapshot);v.next(nn)}));if(tt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:nn,extractedUrl:Zt,source:Nr,restoredState:Cr,extras:Pi}=W,xi=new mt(nn,this.serializeUrl(Zt),Nr,Cr);v.next(xi);const Ns=Ur(Zt,this.rootComponentType).snapshot;return(0,F.of)(Object.assign(Object.assign({},W),{targetSnapshot:Ns,urlAfterRedirects:Zt,extras:Object.assign(Object.assign({},Pi),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=W.rawUrl,W.resolve(null),$.E}),Cn(W=>{const{targetSnapshot:be,id:tt,extractedUrl:kt,rawUrl:st,extras:{skipLocationChange:nn,replaceUrl:Zt}}=W;return this.hooks.beforePreactivation(be,{navigationId:tt,appliedUrlTree:kt,rawUrlTree:st,skipLocationChange:!!nn,replaceUrl:!!Zt})}),(0,Ut.b)(W=>{const be=new te(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot);this.triggerEvent(be)}),(0,je.U)(W=>Object.assign(Object.assign({},W),{guards:bi(W.targetSnapshot,W.currentSnapshot,this.rootContexts)})),function ui(h,c){return(0,rn.zg)(u=>{const{targetSnapshot:v,currentSnapshot:D,guards:{canActivateChecks:M,canDeactivateChecks:R}}=u;return 0===R.length&&0===M.length?(0,F.of)(Object.assign(Object.assign({},u),{guardsResult:!0})):function ci(h,c,u,v){return(0,X.D)(h).pipe((0,rn.zg)(D=>function Or(h,c,u,v,D){const M=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!M||0===M.length)return(0,F.of)(!0);const R=M.map(W=>{const be=Nt(W,c,D);let tt;if(function bs(h){return h&&er(h.canDeactivate)}(be))tt=k(be.canDeactivate(h,c,u,v));else{if(!er(be))throw new Error("Invalid CanDeactivate guard");tt=k(be(h,c,u,v))}return tt.pipe(Dt())});return(0,F.of)(R).pipe(Tn())}(D.component,D.route,u,c,v)),Dt(D=>!0!==D,!0))}(R,v,D,h).pipe((0,rn.zg)(W=>W&&function oi(h){return"boolean"==typeof h}(W)?function Yo(h,c,u,v){return(0,X.D)(c).pipe((0,Tt.b)(D=>(0,ae.z)(function As(h,c){return null!==h&&c&&c(new at(h)),(0,F.of)(!0)}(D.route.parent,v),function di(h,c){return null!==h&&c&&c(new yt(h)),(0,F.of)(!0)}(D.route,v),function Vn(h,c,u){const v=c[c.length-1],M=c.slice(0,c.length-1).reverse().map(R=>function xe(h){const c=h.routeConfig?h.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:h,guards:c}:null}(R)).filter(R=>null!==R).map(R=>(0,j.P)(()=>{const W=R.guards.map(be=>{const tt=Nt(be,R.node,u);let kt;if(function ai(h){return h&&er(h.canActivateChild)}(tt))kt=k(tt.canActivateChild(v,h));else{if(!er(tt))throw new Error("Invalid CanActivateChild guard");kt=k(tt(v,h))}return kt.pipe(Dt())});return(0,F.of)(W).pipe(Tn())}));return(0,F.of)(M).pipe(Tn())}(h,D.path,u),function Is(h,c,u){const v=c.routeConfig?c.routeConfig.canActivate:null;if(!v||0===v.length)return(0,F.of)(!0);const D=v.map(M=>(0,j.P)(()=>{const R=Nt(M,c,u);let W;if(function Xr(h){return h&&er(h.canActivate)}(R))W=k(R.canActivate(c,h));else{if(!er(R))throw new Error("Invalid CanActivate guard");W=k(R(c,h))}return W.pipe(Dt())}));return(0,F.of)(D).pipe(Tn())}(h,D.route,u))),Dt(D=>!0!==D,!0))}(v,M,h,c):(0,F.of)(W)),(0,je.U)(W=>Object.assign(Object.assign({},u),{guardsResult:W})))})}(this.ngModule.injector,W=>this.triggerEvent(W)),(0,Ut.b)(W=>{if(Ir(W.guardsResult)){const tt=Ge(`Redirecting to "${this.serializeUrl(W.guardsResult)}"`);throw tt.url=W.guardsResult,tt}const be=new ne(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot,!!W.guardsResult);this.triggerEvent(be)}),(0,Ee.h)(W=>!!W.guardsResult||(this.restoreHistory(W),this.cancelNavigationTransition(W,""),!1)),Cn(W=>{if(W.guards.canActivateChecks.length)return(0,F.of)(W).pipe((0,Ut.b)(be=>{const tt=new Ae(be.id,this.serializeUrl(be.extractedUrl),this.serializeUrl(be.urlAfterRedirects),be.targetSnapshot);this.triggerEvent(tt)}),(0,Dn.w)(be=>{let tt=!1;return(0,F.of)(be).pipe(function Ft(h,c){return(0,rn.zg)(u=>{const{targetSnapshot:v,guards:{canActivateChecks:D}}=u;if(!D.length)return(0,F.of)(u);let M=0;return(0,X.D)(D).pipe((0,Tt.b)(R=>function ut(h,c,u,v){return function wt(h,c,u,v){const D=qt(h);if(0===D.length)return(0,F.of)({});const M={};return(0,X.D)(D).pipe((0,rn.zg)(R=>function yn(h,c,u,v){const D=Nt(h,c,v);return k(D.resolve?D.resolve(c,u):D(c,u))}(h[R],c,u,v).pipe((0,Ut.b)(W=>{M[R]=W}))),ze(1),(0,rn.zg)(()=>qt(M).length===D.length?(0,F.of)(M):$.E))}(h._resolve,h,c,v).pipe((0,je.U)(M=>(h._resolvedData=M,h.data=Object.assign(Object.assign({},h.data),Hr(h,u).resolve),null)))}(R.route,v,h,c)),(0,Ut.b)(()=>M++),ze(1),(0,rn.zg)(R=>M===D.length?(0,F.of)(u):$.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ut.b)({next:()=>tt=!0,complete:()=>{tt||(this.restoreHistory(be),this.cancelNavigationTransition(be,"At least one route resolver didn't emit any value."))}}))}),(0,Ut.b)(be=>{const tt=new ye(be.id,this.serializeUrl(be.extractedUrl),this.serializeUrl(be.urlAfterRedirects),be.targetSnapshot);this.triggerEvent(tt)}))}),Cn(W=>{const{targetSnapshot:be,id:tt,extractedUrl:kt,rawUrl:st,extras:{skipLocationChange:nn,replaceUrl:Zt}}=W;return this.hooks.afterPreactivation(be,{navigationId:tt,appliedUrlTree:kt,rawUrlTree:st,skipLocationChange:!!nn,replaceUrl:!!Zt})}),(0,je.U)(W=>{const be=function Js(h,c,u){const v=Zr(h,c._root,u?u._root:void 0);return new wr(v,c)}(this.routeReuseStrategy,W.targetSnapshot,W.currentRouterState);return Object.assign(Object.assign({},W),{targetRouterState:be})}),(0,Ut.b)(W=>{this.currentUrlTree=W.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(W.urlAfterRedirects,W.rawUrl),this.routerState=W.targetRouterState,"deferred"===this.urlUpdateStrategy&&(W.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,W),this.browserUrlTree=W.urlAfterRedirects)}),((h,c,u)=>(0,je.U)(v=>(new Ar(c,v.targetRouterState,v.currentRouterState,u).activate(h),v)))(this.rootContexts,this.routeReuseStrategy,W=>this.triggerEvent(W)),(0,Ut.b)({next(){M=!0},complete(){M=!0}}),(0,we.x)(()=>{var W;M||R||this.cancelNavigationTransition(D,`Navigation ID ${D.id} is not equal to the current navigation id ${this.navigationId}`),(null===(W=this.currentNavigation)||void 0===W?void 0:W.id)===D.id&&(this.currentNavigation=null)}),(0,Kt.K)(W=>{if(R=!0,function Jt(h){return h&&h[ke]}(W)){const be=Ir(W.url);be||(this.navigated=!0,this.restoreHistory(D,!0));const tt=new fe(D.id,this.serializeUrl(D.extractedUrl),W.message);v.next(tt),be?setTimeout(()=>{const kt=this.urlHandlingStrategy.merge(W.url,this.rawUrlTree),st={skipLocationChange:D.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ot(D.source)};this.scheduleNavigation(kt,"imperative",null,st,{resolve:D.resolve,reject:D.reject,promise:D.promise})},0):D.resolve(!1)}else{this.restoreHistory(D,!0);const be=new U(D.id,this.serializeUrl(D.extractedUrl),W);v.next(be);try{D.resolve(this.errorHandler(W))}catch(tt){D.reject(tt)}}return $.E}))}))}resetRootComponentType(u){this.rootComponentType=u,this.routerState.root.component=this.rootComponentType}setTransition(u){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),u))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(u=>{const v="popstate"===u.type?"popstate":"hashchange";"popstate"===v&&setTimeout(()=>{var D;const M={replaceUrl:!0},R=(null===(D=u.state)||void 0===D?void 0:D.navigationId)?u.state:null;if(R){const be=Object.assign({},R);delete be.navigationId,delete be.\u0275routerPageId,0!==Object.keys(be).length&&(M.state=be)}const W=this.parseUrl(u.url);this.scheduleNavigation(W,v,R,M)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(u){this.events.next(u)}resetConfig(u){Gr(u),this.config=u.map(Ss),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(u,v={}){const{relativeTo:D,queryParams:M,fragment:R,queryParamsHandling:W,preserveFragment:be}=v,tt=D||this.routerState.root,kt=be?this.currentUrlTree.fragment:R;let st=null;switch(W){case"merge":st=Object.assign(Object.assign({},this.currentUrlTree.queryParams),M);break;case"preserve":st=this.currentUrlTree.queryParams;break;default:st=M||null}return null!==st&&(st=this.removeEmptyProps(st)),function Ei(h,c,u,v,D){if(0===u.length)return Jr(c.root,c.root,c.root,v,D);const M=function Ci(h){if("string"==typeof h[0]&&1===h.length&&"/"===h[0])return new js(!0,0,h);let c=0,u=!1;const v=h.reduce((D,M,R)=>{if("object"==typeof M&&null!=M){if(M.outlets){const W={};return ue(M.outlets,(be,tt)=>{W[tt]="string"==typeof be?be.split("/"):be}),[...D,{outlets:W}]}if(M.segmentPath)return[...D,M.segmentPath]}return"string"!=typeof M?[...D,M]:0===R?(M.split("/").forEach((W,be)=>{0==be&&"."===W||(0==be&&""===W?u=!0:".."===W?c++:""!=W&&D.push(W))}),D):[...D,M]},[]);return new js(u,c,v)}(u);if(M.toRoot())return Jr(c.root,c.root,new J([],{}),v,D);const R=function Us(h,c,u){if(h.isAbsolute)return new Xs(c.root,!0,0);if(-1===u.snapshot._lastPathIndex){const M=u.snapshot._urlSegment;return new Xs(M,M===c.root,0)}const v=Vr(h.commands[0])?0:1;return function fo(h,c,u){let v=h,D=c,M=u;for(;M>D;){if(M-=D,v=v.parent,!v)throw new Error("Invalid number of '../'");D=v.segments.length}return new Xs(v,!1,D-M)}(u.snapshot._urlSegment,u.snapshot._lastPathIndex+v,h.numberOfDoubleDots)}(M,c,h),W=R.processChildren?Cs(R.segmentGroup,R.index,M.commands):ti(R.segmentGroup,R.index,M.commands);return Jr(c.root,R.segmentGroup,W,v,D)}(tt,this.currentUrlTree,u,st,null!=kt?kt:null)}navigateByUrl(u,v={skipLocationChange:!1}){const D=Ir(u)?u:this.parseUrl(u),M=this.urlHandlingStrategy.merge(D,this.rawUrlTree);return this.scheduleNavigation(M,"imperative",null,v)}navigate(u,v={skipLocationChange:!1}){return function et(h){for(let c=0;c<h.length;c++){const u=h[c];if(null==u)throw new Error(`The requested path contains ${u} segment at index ${c}`)}}(u),this.navigateByUrl(this.createUrlTree(u,v),v)}serializeUrl(u){return this.urlSerializer.serialize(u)}parseUrl(u){let v;try{v=this.urlSerializer.parse(u)}catch(D){v=this.malformedUriErrorHandler(D,this.urlSerializer,u)}return v}isActive(u,v){let D;if(D=!0===v?Object.assign({},Er):!1===v?Object.assign({},Os):v,Ir(u))return Wn(this.currentUrlTree,u,D);const M=this.parseUrl(u);return Wn(this.currentUrlTree,M,D)}removeEmptyProps(u){return Object.keys(u).reduce((v,D)=>{const M=u[D];return null!=M&&(v[D]=M),v},{})}processNavigations(){this.navigations.subscribe(u=>{this.navigated=!0,this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId,this.events.next(new ie(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,u.resolve(!0)},u=>{this.console.warn(`Unhandled Navigation Error: ${u}`)})}scheduleNavigation(u,v,D,M,R){var W,be;if(this.disposed)return Promise.resolve(!1);let tt,kt,st;R?(tt=R.resolve,kt=R.reject,st=R.promise):st=new Promise((Nr,Cr)=>{tt=Nr,kt=Cr});const nn=++this.navigationId;let Zt;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(D=this.location.getState()),Zt=D&&D.\u0275routerPageId?D.\u0275routerPageId:M.replaceUrl||M.skipLocationChange?null!==(W=this.browserPageId)&&void 0!==W?W:0:(null!==(be=this.browserPageId)&&void 0!==be?be:0)+1):Zt=0,this.setTransition({id:nn,targetPageId:Zt,source:v,restoredState:D,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:u,extras:M,resolve:tt,reject:kt,promise:st,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),st.catch(Nr=>Promise.reject(Nr))}setBrowserUrl(u,v){const D=this.urlSerializer.serialize(u),M=Object.assign(Object.assign({},v.extras.state),this.generateNgRouterState(v.id,v.targetPageId));this.location.isCurrentPathEqualTo(D)||v.extras.replaceUrl?this.location.replaceState(D,"",M):this.location.go(D,"",M)}restoreHistory(u,v=!1){var D,M;if("computed"===this.canceledNavigationResolution){const R=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(D=this.currentNavigation)||void 0===D?void 0:D.finalUrl)||0===R?this.currentUrlTree===(null===(M=this.currentNavigation)||void 0===M?void 0:M.finalUrl)&&0===R&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(R)}else"replace"===this.canceledNavigationResolution&&(v&&this.resetState(u),this.resetUrlToCurrentUrlTree())}resetState(u){this.routerState=u.currentRouterState,this.currentUrlTree=u.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,u.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(u,v){const D=new fe(u.id,this.serializeUrl(u.extractedUrl),v);this.triggerEvent(D),u.resolve(!1)}generateNgRouterState(u,v){return"computed"===this.canceledNavigationResolution?{navigationId:u,\u0275routerPageId:v}:{navigationId:u}}}return h.\u0275fac=function(u){f.$Z()},h.\u0275prov=f.Yz7({token:h,factory:h.\u0275fac}),h})();function ot(h){return"imperative"!==h}let gt=(()=>{class h{constructor(u,v,D,M,R){this.router=u,this.route=v,this.tabIndexAttribute=D,this.renderer=M,this.el=R,this.commands=null,this.onChanges=new He.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(u){if(null!=this.tabIndexAttribute)return;const v=this.renderer,D=this.el.nativeElement;null!==u?v.setAttribute(D,"tabindex",u):v.removeAttribute(D,"tabindex")}ngOnChanges(u){this.onChanges.next(this)}set routerLink(u){null!=u?(this.commands=Array.isArray(u)?u:[u],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const u={skipLocationChange:tn(this.skipLocationChange),replaceUrl:tn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,u),!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:tn(this.preserveFragment)})}}return h.\u0275fac=function(u){return new(u||h)(f.Y36(Sn),f.Y36(Ht),f.$8M("tabindex"),f.Y36(f.Qsj),f.Y36(f.SBq))},h.\u0275dir=f.lG2({type:h,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(u,v){1&u&&f.NdJ("click",function(){return v.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),h})(),Ct=(()=>{class h{constructor(u,v,D){this.router=u,this.route=v,this.locationStrategy=D,this.commands=null,this.href=null,this.onChanges=new He.xQ,this.subscription=u.events.subscribe(M=>{M instanceof ie&&this.updateTargetUrlAndHref()})}set routerLink(u){this.commands=null!=u?Array.isArray(u)?u:[u]:null}ngOnChanges(u){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(u,v,D,M,R){if(0!==u||v||D||M||R||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const W={skipLocationChange:tn(this.skipLocationChange),replaceUrl:tn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,W),!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:tn(this.preserveFragment)})}}return h.\u0275fac=function(u){return new(u||h)(f.Y36(Sn),f.Y36(Ht),f.Y36(ce.S$))},h.\u0275dir=f.lG2({type:h,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(u,v){1&u&&f.NdJ("click",function(M){return v.onClick(M.button,M.ctrlKey,M.shiftKey,M.altKey,M.metaKey)}),2&u&&f.uIk("target",v.target)("href",v.href,f.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),h})();function tn(h){return""===h||!!h}let hr=(()=>{class h{constructor(u,v,D,M,R,W){this.router=u,this.element=v,this.renderer=D,this.cdr=M,this.link=R,this.linkWithHref=W,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new f.vpe,this.routerEventsSubscription=u.events.subscribe(be=>{be instanceof ie&&this.update()})}ngAfterContentInit(){(0,F.of)(this.links.changes,this.linksWithHrefs.changes,(0,F.of)(null)).pipe((0,Z.J)()).subscribe(u=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var u;null===(u=this.linkInputChangesSubscription)||void 0===u||u.unsubscribe();const v=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(D=>!!D).map(D=>D.onChanges);this.linkInputChangesSubscription=(0,X.D)(v).pipe((0,Z.J)()).subscribe(D=>{this.isActive!==this.isLinkActive(this.router)(D)&&this.update()})}set routerLinkActive(u){const v=Array.isArray(u)?u:u.split(" ");this.classes=v.filter(D=>!!D)}ngOnChanges(u){this.update()}ngOnDestroy(){var u;this.routerEventsSubscription.unsubscribe(),null===(u=this.linkInputChangesSubscription)||void 0===u||u.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const u=this.hasActiveLinks();this.isActive!==u&&(this.isActive=u,this.cdr.markForCheck(),this.classes.forEach(v=>{u?this.renderer.addClass(this.element.nativeElement,v):this.renderer.removeClass(this.element.nativeElement,v)}),this.isActiveChange.emit(u))})}isLinkActive(u){const v=function rr(h){return!!h.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return D=>!!D.urlTree&&u.isActive(D.urlTree,v)}hasActiveLinks(){const u=this.isLinkActive(this.router);return this.link&&u(this.link)||this.linkWithHref&&u(this.linkWithHref)||this.links.some(u)||this.linksWithHrefs.some(u)}}return h.\u0275fac=function(u){return new(u||h)(f.Y36(Sn),f.Y36(f.SBq),f.Y36(f.Qsj),f.Y36(f.sBO),f.Y36(gt,8),f.Y36(Ct,8))},h.\u0275dir=f.lG2({type:h,selectors:[["","routerLinkActive",""]],contentQueries:function(u,v,D){if(1&u&&(f.Suo(D,gt,5),f.Suo(D,Ct,5)),2&u){let M;f.iGM(M=f.CRH())&&(v.links=M),f.iGM(M=f.CRH())&&(v.linksWithHrefs=M)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[f.TTD]}),h})();class sr{}class fi{preload(c,u){return(0,F.of)(null)}}let Mi=(()=>{class h{constructor(u,v,D,M){this.router=u,this.injector=D,this.preloadingStrategy=M,this.loader=new Rn(D,v,be=>u.triggerEvent(new Qe(be)),be=>u.triggerEvent(new Oe(be)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ee.h)(u=>u instanceof ie),(0,Tt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const u=this.injector.get(f.h0i);return this.processRoutes(u,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,v){const D=[];for(const M of v)if(M.loadChildren&&!M.canLoad&&M._loadedConfig){const R=M._loadedConfig;D.push(this.processRoutes(R.module,R.routes))}else M.loadChildren&&!M.canLoad?D.push(this.preloadConfig(u,M)):M.children&&D.push(this.processRoutes(u,M.children));return(0,X.D)(D).pipe((0,Z.J)(),(0,je.U)(M=>{}))}preloadConfig(u,v){return this.preloadingStrategy.preload(v,()=>(v._loadedConfig?(0,F.of)(v._loadedConfig):this.loader.load(u.injector,v)).pipe((0,rn.zg)(M=>(v._loadedConfig=M,this.processRoutes(M.module,M.routes)))))}}return h.\u0275fac=function(u){return new(u||h)(f.LFG(Sn),f.LFG(f.Sil),f.LFG(f.zs3),f.LFG(sr))},h.\u0275prov=f.Yz7({token:h,factory:h.\u0275fac}),h})(),Bn=(()=>{class h{constructor(u,v,D={}){this.router=u,this.viewportScroller=v,this.options=D,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},D.scrollPositionRestoration=D.scrollPositionRestoration||"disabled",D.anchorScrolling=D.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(u=>{u instanceof mt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof ie&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.router.parseUrl(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(u=>{u instanceof H&&(u.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(u.position):u.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(u.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(u,v){this.router.triggerEvent(new H(u,"popstate"===this.lastSource?this.store[this.restoredId]:null,v))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return h.\u0275fac=function(u){f.$Z()},h.\u0275prov=f.Yz7({token:h,factory:h.\u0275fac}),h})();const Nn=new f.OlP("ROUTER_CONFIGURATION"),Rr=new f.OlP("ROUTER_FORROOT_GUARD"),xs=[ce.Ye,{provide:it,useClass:dt},{provide:Sn,useFactory:function po(h,c,u,v,D,M,R={},W,be){const tt=new Sn(null,h,c,u,v,D,an(M));return W&&(tt.urlHandlingStrategy=W),be&&(tt.routeReuseStrategy=be),function Ii(h,c){h.errorHandler&&(c.errorHandler=h.errorHandler),h.malformedUriErrorHandler&&(c.malformedUriErrorHandler=h.malformedUriErrorHandler),h.onSameUrlNavigation&&(c.onSameUrlNavigation=h.onSameUrlNavigation),h.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=h.paramsInheritanceStrategy),h.relativeLinkResolution&&(c.relativeLinkResolution=h.relativeLinkResolution),h.urlUpdateStrategy&&(c.urlUpdateStrategy=h.urlUpdateStrategy),h.canceledNavigationResolution&&(c.canceledNavigationResolution=h.canceledNavigationResolution)}(R,tt),R.enableTracing&&tt.events.subscribe(kt=>{var st,nn;null===(st=console.group)||void 0===st||st.call(console,`Router Event: ${kt.constructor.name}`),console.log(kt.toString()),console.log(kt),null===(nn=console.groupEnd)||void 0===nn||nn.call(console)}),tt},deps:[it,cs,ce.Ye,f.zs3,f.Sil,$t,Nn,[class Pr{},new f.FiY],[class $n{},new f.FiY]]},cs,{provide:Ht,useFactory:function fc(h){return h.routerState.root},deps:[Sn]},Mi,fi,class cn{preload(c,u){return u().pipe((0,Kt.K)(()=>(0,F.of)(null)))}},{provide:Nn,useValue:{enableTracing:!1}}];function Ai(){return new f.PXZ("Router",Sn)}let Qo=(()=>{class h{constructor(u,v){}static forRoot(u,v){return{ngModule:h,providers:[xs,Rs(u),{provide:Rr,useFactory:$a,deps:[[Sn,new f.FiY,new f.tp0]]},{provide:Nn,useValue:v||{}},{provide:ce.S$,useFactory:Ys,deps:[ce.lw,[new f.tBr(ce.mr),new f.FiY],Nn]},{provide:Bn,useFactory:qo,deps:[Sn,ce.EM,Nn]},{provide:sr,useExisting:v&&v.preloadingStrategy?v.preloadingStrategy:fi},{provide:f.PXZ,multi:!0,useFactory:Ai},[Oi,{provide:f.ip1,multi:!0,useFactory:Zo,deps:[Oi]},{provide:Jo,useFactory:za,deps:[Oi]},{provide:f.tb,multi:!0,useExisting:Jo}]]}}static forChild(u){return{ngModule:h,providers:[Rs(u)]}}}return h.\u0275fac=function(u){return new(u||h)(f.LFG(Rr,8),f.LFG(Sn,8))},h.\u0275mod=f.oAB({type:h}),h.\u0275inj=f.cJS({}),h})();function qo(h,c,u){return u.scrollOffset&&c.setOffset(u.scrollOffset),new Bn(h,c,u)}function Ys(h,c,u={}){return u.useHash?new ce.Do(h,c):new ce.b0(h,c)}function $a(h){return"guarded"}function Rs(h){return[{provide:f.deG,multi:!0,useValue:h},{provide:$t,multi:!0,useValue:h}]}let Oi=(()=>{class h{constructor(u){this.injector=u,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(ce.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let v=null;const D=new Promise(W=>v=W),M=this.injector.get(Sn),R=this.injector.get(Nn);return"disabled"===R.initialNavigation?(M.setUpLocationChangeListener(),v(!0)):"enabled"===R.initialNavigation||"enabledBlocking"===R.initialNavigation?(M.hooks.afterPreactivation=()=>this.initNavigation?(0,F.of)(null):(this.initNavigation=!0,v(!0),this.resultOfPreactivationDone),M.initialNavigation()):v(!0),D})}bootstrapListener(u){const v=this.injector.get(Nn),D=this.injector.get(Mi),M=this.injector.get(Bn),R=this.injector.get(Sn),W=this.injector.get(f.z2F);u===W.components[0]&&(("enabledNonBlocking"===v.initialNavigation||void 0===v.initialNavigation)&&R.initialNavigation(),D.setUpPreloading(),M.init(),R.resetRootComponentType(W.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return h.\u0275fac=function(u){return new(u||h)(f.LFG(f.zs3))},h.\u0275prov=f.Yz7({token:h,factory:h.\u0275fac}),h})();function Zo(h){return h.appInitializer.bind(h)}function za(h){return h.bootstrapListener.bind(h)}const Jo=new f.OlP("Router Initializer")},6565:(Ze,pe,S)=>{S.d(pe,{Cz:()=>mt,ys:()=>Ue});var f=S(5e3),y=S(9808);function j(ie,fe,U,re){return new(U||(U=Promise))(function(ne,Ae){function ye(at){try{Oe(re.next(at))}catch(lt){Ae(lt)}}function Qe(at){try{Oe(re.throw(at))}catch(lt){Ae(lt)}}function Oe(at){at.done?ne(at.value):function te(ne){return ne instanceof U?ne:new U(function(Ae){Ae(ne)})}(at.value).then(ye,Qe)}Oe((re=re.apply(ie,fe||[])).next())})}var Je=S(2916),Dt=S(5254),je=S(6053),Dn=S(8929),bn=S(2986);function Vt(ie,fe,U,re){return new Promise((te,ne)=>{ie||ne("IndexedDB not available");const Ae=ie.open(fe,U);let ye;Ae.onsuccess=Qe=>{ye=Ae.result,te(ye)},Ae.onerror=Qe=>{ne(`IndexedDB error: ${Ae.error}`)},"function"==typeof re&&(Ae.onupgradeneeded=Qe=>{re(Qe,ye)})})}function Kt(ie,fe,U,re,te){if(!ie)return;const ne=ie.open(fe,U);ne.onupgradeneeded=Ae=>{const ye=Ae.target.result;re.forEach(Oe=>{if(!ye.objectStoreNames.contains(Oe.store)){const at=ye.createObjectStore(Oe.store,Oe.storeConfig);Oe.storeSchema.forEach(lt=>{at.createIndex(lt.name,lt.keypath,lt.options)})}});const Qe=te&&te();Qe&&Object.keys(Qe).map(Oe=>parseInt(Oe,10)).filter(Oe=>Oe>Ae.oldVersion).sort((Oe,at)=>Oe-at).forEach(Oe=>{Qe[Oe](ye,ne.transaction)}),ye.close()},ne.onsuccess=Ae=>{Ae.target.result.close()}}function Ut(ie,fe,U){ie||U("You need to use the openDatabase function to create a database before you query it!"),function rn(ie,fe){return ie.objectStoreNames.contains(fe)}(ie,fe)||U(`objectStore does not exists: ${fe}`)}function ge(ie,fe){const U=ie.transaction(fe.storeName,fe.dbMode);return U.onerror=fe.error,U.onabort=fe.abort,U}function we(ie,fe,U,re){return{storeName:fe,dbMode:ie,error:te=>{U(te)},abort:te=>{U(te)}}}var Z=(()=>{return(ie=Z||(Z={})).readonly="readonly",ie.readwrite="readwrite",Z;var ie})();const ce=new f.OlP(null);let Ue=(()=>{class ie{constructor(U,re){if(this.dbConfig=U,this.platformId=re,!U.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!U.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=(0,y.NF)(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,Kt(this.indexedDB,U.name,U.version,U.objectStoresMeta,U.migrationFactory),Vt(this.indexedDB,U.name).then(te=>{te.version!==U.version&&(this.dbConfig.version=te.version)}))}createObjectStore(U,re){const te=[U];Kt(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,te,re)}add(U,re,te){return new Je.y(ne=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Ae=>{const Qe=ge(Ae,we(Z.readwrite,U,at=>ne.error(at))).objectStore(U);(Boolean(te)?Qe.add(re,te):Qe.add(re)).onsuccess=at=>j(this,void 0,void 0,function*(){Qe.get(at.target.result).onsuccess=de=>{ne.next(de.target.result),ne.complete()}})}).catch(Ae=>ne.error(Ae))})}bulkAdd(U,re){const te=new Promise((ne,Ae)=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ye=>{const Oe=ge(ye,we(Z.readwrite,U,ne)).objectStore(U),at=re.map(lt=>new Promise((yt,de)=>{const H=lt.key;delete lt.key,(Boolean(H)?Oe.add(lt,H):Oe.add(lt)).onsuccess=Ne=>{yt(Ne.target.result)}}));ne(Promise.all(at))}).catch(ye=>Ae(ye))});return(0,Dt.D)(te)}bulkDelete(U,re){const te=re.map(ne=>new Promise((Ae,ye)=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Qe=>{const Oe=ge(Qe,we(Z.readwrite,U,ye));Oe.objectStore(U).delete(ne),Oe.oncomplete=()=>{this.getAll(U).pipe((0,bn.q)(1)).subscribe(lt=>{Ae(lt)})}}).catch(Qe=>ye(Qe))}));return(0,Dt.D)(Promise.all(te))}getByKey(U,re){return new Je.y(te=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>{const Qe=ge(ne,we(Z.readonly,U,te.error)).objectStore(U).get(re);Qe.onsuccess=Oe=>{te.next(Oe.target.result),te.complete()},Qe.onerror=Oe=>{te.error(Oe)}}).catch(ne=>te.error(ne))})}bulkGet(U,re){const te=re.map(ne=>this.getByKey(U,ne));return new Je.y(ne=>{(0,je.aj)(te).subscribe(Ae=>{ne.next(Ae),ne.complete()})})}getByID(U,re){return new Je.y(te=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>{Ut(ne,U,Oe=>te.error(Oe)),ge(ne,we(Z.readonly,U,te.error)).objectStore(U).get(re).onsuccess=Oe=>{te.next(Oe.target.result)}}).catch(ne=>te.error(ne))})}getByIndex(U,re,te){return new Je.y(ne=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Ae=>{Ut(Ae,U,lt=>ne.error(lt)),ge(Ae,we(Z.readonly,U,ne.error)).objectStore(U).index(re).get(te).onsuccess=lt=>{ne.next(lt.target.result),ne.complete()}}).catch(Ae=>ne.error(Ae))})}getAll(U){return new Je.y(re=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(te=>{Ut(te,U,Qe=>re.error(Qe));const ye=ge(te,we(Z.readonly,U,re.error)).objectStore(U).getAll();ye.onerror=Qe=>{re.error(Qe)},ye.onsuccess=({target:{result:Qe}})=>{re.next(Qe),re.complete()}}).catch(te=>re.error(te))})}update(U,re){return new Je.y(te=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>{Ut(ne,U,Oe=>te.error(Oe));const ye=ge(ne,we(Z.readwrite,U,Oe=>te.error(Oe))).objectStore(U);ye.put(re).onsuccess=Oe=>j(this,void 0,void 0,function*(){ye.get(Oe.target.result).onsuccess=yt=>{te.next(yt.target.result),te.complete()}})}).catch(ne=>te.error(ne))})}delete(U,re){return new Je.y(te=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>{Ut(ne,U,Qe=>te.error(Qe));const Ae=ge(ne,we(Z.readwrite,U,Qe=>te.error(Qe)));Ae.objectStore(U).delete(re),Ae.oncomplete=()=>{this.getAll(U).pipe((0,bn.q)(1)).subscribe(Qe=>{te.next(Qe),te.complete()})}}).catch(ne=>te.error(ne))})}deleteByKey(U,re){return new Je.y(te=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>{Ut(ne,U,Qe=>te.error(Qe));const Ae=ge(ne,we(Z.readwrite,U,Qe=>te.error(Qe))),ye=Ae.objectStore(U);Ae.oncomplete=()=>{te.next(!0),te.complete()},ye.delete(re)}).catch(ne=>te.error(ne))})}clear(U){return new Je.y(re=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(te=>{Ut(te,U,ye=>re.error(ye));const ne=ge(te,we(Z.readwrite,U,ye=>re.error(ye)));ne.objectStore(U).clear(),ne.oncomplete=()=>{re.next(!0),re.complete()}}).catch(te=>re.error(te))})}deleteDatabase(){return new Je.y(U=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(re=>j(this,void 0,void 0,function*(){yield re.close();const te=this.indexedDB.deleteDatabase(this.dbConfig.name);te.onsuccess=()=>{U.next(!0),U.complete()},te.onerror=ne=>U.error(ne),te.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(re=>U.error(re))})}openCursor(U,re){return new Je.y(te=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>{Ut(ne,U,Oe=>te.error(Oe));const ye=ge(ne,we(Z.readonly,U,te.error)).objectStore(U);(void 0===re?ye.openCursor():ye.openCursor(re)).onsuccess=Oe=>{te.next(Oe),te.complete()}}).catch(ne=>te.error(ne))})}openCursorByIndex(U,re,te,ne=Z.readonly){const Ae=new Dn.xQ;return Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ye=>{Ut(ye,U,yt=>{Ae.error(yt)}),ge(ye,we(ne,U,yt=>{Ae.error(yt)})).objectStore(U).index(re).openCursor(te).onsuccess=yt=>{Ae.next(yt)}}).catch(ye=>Ae.error(ye)),Ae}getAllByIndex(U,re,te){const ne=[];return new Je.y(Ae=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ye=>{Ut(ye,U,yt=>Ae.error(yt)),ge(ye,we(Z.readonly,U,Ae.error)).objectStore(U).index(re).openCursor(te).onsuccess=yt=>{const de=yt.target.result;de?(ne.push(de.value),de.continue()):(Ae.next(ne),Ae.complete())}}).catch(ye=>Ae.error(ye))})}getAllKeysByIndex(U,re,te){const ne=[];return new Je.y(Ae=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ye=>{Ut(ye,U,yt=>Ae.error(yt)),ge(ye,we(Z.readonly,U,Ae.error)).objectStore(U).index(re).openKeyCursor(te).onsuccess=yt=>{const de=yt.target.result;de?(ne.push({primaryKey:de.primaryKey,key:de.key}),de.continue()):(Ae.next(ne),Ae.complete())}}).catch(ye=>Ae.error(ye))})}count(U,re){return new Je.y(te=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>{Ut(ne,U,Oe=>te.error(Oe));const Qe=ge(ne,we(Z.readonly,U,te.error)).objectStore(U).count(re);Qe.onerror=Oe=>te.error(Oe),Qe.onsuccess=Oe=>{te.next(Oe.target.result),te.complete()}}).catch(ne=>te.error(ne))})}countByIndex(U,re,te){return new Je.y(ne=>{Vt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Ae=>{Ut(Ae,U,lt=>ne.error(lt));const at=ge(Ae,we(Z.readonly,U,ne.error)).objectStore(U).index(re).count(te);at.onerror=lt=>ne.error(lt),at.onsuccess=lt=>{ne.next(lt.target.result),ne.complete()}}).catch(Ae=>ne.error(Ae))})}deleteObjectStore(U){return function Tt(ie,fe,U){if(!ie||!fe||!U)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new Je.y(re=>{try{const ne=indexedDB.open(ie,fe+1);ne.onupgradeneeded=Ae=>{const ye=Ae.target.result;ye.deleteObjectStore(U),ye.close(),console.log("onupgradeneeded"),re.next(!0),re.complete()},ne.onerror=Ae=>re.error(Ae)}catch(te){re.error(te)}})}(this.dbConfig.name,++this.dbConfig.version,U)}}return ie.\u0275fac=function(U){return new(U||ie)(f.LFG(ce),f.LFG(f.Lbi))},ie.\u0275prov=f.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),mt=(()=>{class ie{static forRoot(U){return{ngModule:ie,providers:[Ue,{provide:ce,useValue:U}]}}}return ie.\u0275fac=function(U){return new(U||ie)},ie.\u0275mod=f.oAB({type:ie}),ie.\u0275inj=f.cJS({imports:[[y.ez]]}),ie})()}},Ze=>{Ze(Ze.s=6041)}]);
|