zohodealpos 2.3.6 → 2.3.8

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkzoho=self.webpackChunkzoho||[]).push([[179],{405:(ze,de,M)=>{M.d(de,{O:()=>pe});var g=M(520),_=M(591),Z=M(2916),se=M(353);const U=(()=>{function Te(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return Te.prototype=Object.create(Error.prototype),Te})();var Y=M(2697),Q=M(1177);class V{constructor(Pe,Oe,we,ie){this.waitFor=Pe,this.absoluteTimeout=Oe,this.withObservable=we,this.scheduler=ie}call(Pe,Oe){return Oe.subscribe(new F(Pe,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class F extends Q.Ds{constructor(Pe,Oe,we,ie,ue){super(Pe),this.absoluteTimeout=Oe,this.waitFor=we,this.withObservable=ie,this.scheduler=ue,this.scheduleTimeout()}static dispatchTimeout(Pe){const{withObservable:Oe}=Pe;Pe._unsubscribeAndRecycle(),Pe.add((0,Q.ft)(Oe,new Q.IY(Pe)))}scheduleTimeout(){const{action:Pe}=this;Pe?this.action=Pe.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(F.dispatchTimeout,this.waitFor,this))}_next(Pe){this.absoluteTimeout||this.scheduleTimeout(),super._next(Pe)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var oe=M(1737);var Ee=M(9863),ee=M(2290);let pe=(()=>{class Te{constructor(Oe,we){this.http=Oe,this.toastr=we,this.currentRequest=new _.X(0)}post(Oe,we,ie=1e5){return new Z.y(ue=>{var Ze=JSON.parse(window.localStorage.getItem("user"));let ot=new g.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});null!=Ze&&(ot=new g.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+Ze.access_token}));let Dt={headers:ot};this.addRequest(),this.http.post(Oe,we,Dt).pipe(function he(Te,Pe=se.P){return function $(Te,Pe,Oe=se.P){return we=>{let ie=(0,Y.J)(Te),ue=ie?+Te-Oe.now():Math.abs(Te);return we.lift(new V(ue,ie,Pe,Oe))}}(Te,(0,oe._)(new U),Pe)}(ie)).subscribe(We=>{this.removeRequest(),ue.next(We),ue.complete()},We=>{this.removeRequest(),200==We.status&&(ue.next(We.error.text),ue.complete()),401==We.status&&(ue.next(We.error.text),ue.complete()),ue.error(We)})})}postFormData(Oe,we){this.addRequest();var ue="Bearer "+JSON.parse(window.localStorage.getItem("user")).access_token;return new Promise((ot,Dt)=>{var We=new XMLHttpRequest;We.onreadystatechange=function(){4==We.readyState&&(200==We.status?ot(JSON.parse(We.response)):Dt(We.response))},We.open("POST",Oe,!0),We.setRequestHeader("Authorization",ue),We.send(we)}).then(ot=>this.handleSuccess(ot)).catch(ot=>this.handleError(ot))}get(Oe){var we=JSON.parse(window.localStorage.getItem("user"));let ie=new g.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});return null!=we&&(ie=new g.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+we.access_token})),this.http.get(Oe,{headers:ie})}handleSuccess(Oe){return this.removeRequest(),void 0===Oe._body?Oe:(Oe._body=Oe._body||{},Oe.json())}handleError(Oe){if(this.removeRequest(),void 0===Oe._body)return Promise.reject(Oe.message||Oe);{let we=Oe.json();return Promise.reject(we.ExceptionMessage||we.Message||we)}}addRequest(){this.currentRequest.next(this.currentRequest.value+1)}removeRequest(){this.currentRequest.next(this.currentRequest.value-1)}}return Te.\u0275fac=function(Oe){return new(Oe||Te)(Ee.LFG(g.eN),Ee.LFG(ee._W))},Te.\u0275prov=Ee.Yz7({token:Te,factory:Te.\u0275fac}),Te})()},8002:(ze,de,M)=>{M.d(de,{e:()=>_});var g=M(9863);let _=(()=>{class Z{constructor(){}GetNamePOS(){let B=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(B.access_token)}ParseToken(B){try{const Y=B.split(".")[0].replace("-","+").replace("_","/"),Q=JSON.parse(window.atob(Y)),V=B.split(".")[1].replace("-","+").replace("_","/"),F=JSON.parse(window.atob(V));return F.header=Q,F}catch(U){return!1}}}return Z.\u0275fac=function(B){return new(B||Z)},Z.\u0275prov=g.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})()},2908:(ze,de,M)=>{var g=M(2313),_=M(9863),Z=M(520),se=M(405),B=M(8555);const U=[{path:"",loadChildren:()=>Promise.all([M.e(84),M.e(718)]).then(M.bind(M,7718)).then(O=>O.LoginModule)},{path:"pages",loadChildren:()=>Promise.all([M.e(84),M.e(795)]).then(M.bind(M,3795)).then(O=>O.PagesModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let Y=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=_.oAB({type:O}),O.\u0275inj=_.cJS({imports:[[B.Bz.forRoot(U)],B.Bz]}),O})();var Q=M(6831);function $(O,q){function R(){return!R.pred.apply(R.thisArg,arguments)}return R.pred=O,R.thisArg=q,R}var V=M(9249),F=M(2198),oe=M(2916),Ee=M(6787),ee=M(7739),pe=M(537),Te=M(7545),Pe=M(1177);function Oe(O){return q=>q.lift(new we(O))}class we{constructor(q){this.durationSelector=q}call(q,R){return R.subscribe(new ie(q,this.durationSelector))}}class ie extends Pe.Ds{constructor(q,R){super(q),this.durationSelector=R,this.hasValue=!1}_next(q){try{const R=this.durationSelector.call(this,q);R&&this._tryNext(q,R)}catch(R){this.destination.error(R)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(q,R){let ce=this.durationSubscription;this.value=q,this.hasValue=!0,ce&&(ce.unsubscribe(),this.remove(ce)),ce=(0,Pe.ft)(R,new Pe.IY(this)),ce&&!ce.closed&&this.add(this.durationSubscription=ce)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const q=this.value,R=this.durationSubscription;R&&(this.durationSubscription=void 0,R.unsubscribe(),this.remove(R)),this.value=void 0,this.hasValue=!1,super._next(q)}}}var ue=M(5778),Ze=M(2994),ot=M(9808);function Dt(O,q){1&O&&_.GkF(0)}function We(O,q){if(1&O&&_._UZ(0,"sk-cube-grid",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}function dt(O,q){if(1&O&&_._UZ(0,"sk-chasing-dots",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}function Tt(O,q){if(1&O&&_._UZ(0,"sk-double-bounce",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}function St(O,q){if(1&O&&_._UZ(0,"sk-rotating-plane",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}function ht(O,q){if(1&O&&_._UZ(0,"sk-spinner-pulse",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}function at(O,q){if(1&O&&_._UZ(0,"sk-three-bounce",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}function He(O,q){if(1&O&&_._UZ(0,"sk-wandering-cubes",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}function Un(O,q){if(1&O&&_._UZ(0,"sk-wave",4),2&O){const R=_.oxw(2);_.Q6J("backgroundColor",R.backgroundColor)}}const It=function(O){return{"background-color":O}};function un(O,q){if(1&O&&(_.TgZ(0,"div",1),_.YNc(1,Dt,1,0,"ng-container",2),_.YNc(2,We,1,1,"sk-cube-grid",3),_.YNc(3,dt,1,1,"sk-chasing-dots",3),_.YNc(4,Tt,1,1,"sk-double-bounce",3),_.YNc(5,St,1,1,"sk-rotating-plane",3),_.YNc(6,ht,1,1,"sk-spinner-pulse",3),_.YNc(7,at,1,1,"sk-three-bounce",3),_.YNc(8,He,1,1,"sk-wandering-cubes",3),_.YNc(9,Un,1,1,"sk-wave",3),_.qZA()),2&O){const R=_.oxw();_.Udp("opacity",R.opacity),_.ekj("backdrop",R.backdrop),_.Q6J("ngStyle",_.VKq(14,It,R.backdrop?R.backdropBackgroundColor:"transparent")),_.xp6(1),_.Q6J("ngComponentOutlet",R.entryComponent),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skCubeGrid),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skChasingDots),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skDoubleBounce),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skRotatingPlane),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skSpinnerPulse),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skThreeBounce),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skWanderingCubes),_.xp6(1),_.Q6J("ngIf",R.spinner===R.spinkit.skWave)}}let cn=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275dir=_.lG2({type:O,inputs:{backgroundColor:"backgroundColor"}}),O})(),En=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-chasing-dots"]],features:[_.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(R,ce){1&R&&(_.TgZ(0,"div",0),_._UZ(1,"div",1),_._UZ(2,"div",2),_.qZA()),2&R&&(_.ekj("colored",!ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),O})(),Cn=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-cube-grid"]],features:[_.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(R,ce){1&R&&(_.TgZ(0,"div",0),_._UZ(1,"div",1),_._UZ(2,"div",2),_._UZ(3,"div",3),_._UZ(4,"div",4),_._UZ(5,"div",5),_._UZ(6,"div",6),_._UZ(7,"div",7),_._UZ(8,"div",8),_._UZ(9,"div",9),_.qZA()),2&R&&(_.ekj("colored",!ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.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:scale(1)}35%{transform:scale(0)}}"]}),O})(),Vt=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-double-bounce"]],features:[_.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(R,ce){1&R&&(_.TgZ(0,"div",0),_._UZ(1,"div",1),_._UZ(2,"div",2),_.qZA()),2&R&&(_.ekj("colored",!ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:sk-doubleBounce 2s infinite ease-in-out}.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)}}"]}),O})(),ve=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-rotating-plane"]],features:[_.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(R,ce){1&R&&_._UZ(0,"div",0),2&R&&_.Udp("background-color",ce.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:sk-rotatePlane 1.2s infinite ease-in-out}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),O})(),Ce=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-spinner-pulse"]],features:[_.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(R,ce){1&R&&_._UZ(0,"div",0),2&R&&_.Udp("background-color",ce.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:sk-pulseScaleOut 1s infinite ease-in-out}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),O})(),J=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-three-bounce"]],features:[_.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(R,ce){1&R&&(_.TgZ(0,"div",0),_._UZ(1,"div",1),_._UZ(2,"div",2),_._UZ(3,"div",3),_.qZA()),2&R&&(_.ekj("colored",!ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:sk-three-bounce 1.4s ease-in-out 0s infinite both}.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)}}"]}),O})(),le=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-wandering-cubes"]],features:[_.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(R,ce){1&R&&(_.TgZ(0,"div",0),_._UZ(1,"div",1),_._UZ(2,"div",2),_.qZA()),2&R&&(_.ekj("colored",!ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),O})(),Ne=(()=>{class O extends cn{}return O.\u0275fac=function(){let q;return function(ce){return(q||(q=_.n5z(O)))(ce||O)}}(),O.\u0275cmp=_.Xpm({type:O,selectors:[["sk-wave"]],features:[_.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(R,ce){1&R&&(_.TgZ(0,"div",0),_._UZ(1,"div",1),_._UZ(2,"div",2),_._UZ(3,"div",3),_._UZ(4,"div",4),_._UZ(5,"div",5),_.qZA()),2&R&&(_.ekj("colored",!ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor),_.xp6(1),_.Udp("background-color",ce.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:sk-waveStretchDelay 1.2s infinite ease-in-out}.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)}}"]}),O})();const Be={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 jt=(()=>{class O{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Q.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(R){this._filteredMethods=R}set filteredHeaders(R){this._filteredHeaders=R}set forceByPass(R){this._forceByPass=R}shouldBypassUrl(R){return this._filteredUrlPatterns.some(ce=>ce.test(R))}shouldBypassMethod(R){return this._filteredMethods.some(ce=>ce.toUpperCase()===R.method.toUpperCase())}shouldBypassHeader(R){return this._filteredHeaders.some(ce=>R.headers.has(ce))}shouldBypass(R){return this._forceByPass||this.shouldBypassUrl(R.urlWithParams)||this.shouldBypassMethod(R)||this.shouldBypassHeader(R)}intercept(R,ce){const st=this.shouldBypass(R);return st||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),ce.handle(R).pipe((0,pe.x)(()=>{st||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return O.\u0275fac=function(R){return new(R||O)},O.\u0275prov=_.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();const zt=[{provide:Z.TP,useExisting:jt,multi:!0}];let dn=(()=>{class O{constructor(R){this.pendingRequestsInterceptor=R,this._visibility$=new Q.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 O.\u0275fac=function(R){return new(R||O)(_.LFG(jt))},O.\u0275prov=_.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),nn=(()=>{class O{constructor(R,ce){this.pendingRequestsInterceptor=R,this.spinnerVisibility=ce,this.spinkit=Be,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.backdropBackgroundColor="#f1f1f1",this.spinner=Be.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[R,ce]=function he(O,q,R){return[(0,F.h)(q,R)(new oe.y((0,V.s)(O))),(0,F.h)($(q,R))(new oe.y((0,V.s)(O)))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,st=>st);this.isVisible$=(0,Ee.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,Te.w)(()=>R.pipe(Oe(()=>(0,ee.H)(this.debounceDelay))))),R.pipe((0,Te.w)(()=>ce.pipe(Oe(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,ue.x)(),(0,Ze.b)(st=>this.updateExpirationDelay(st)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(R=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(R)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(R){R&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,ee.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return O.\u0275fac=function(R){return new(R||O)(_.Y36(jt),_.Y36(dn))},O.\u0275cmp=_.Xpm({type:O,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(R,ce){1&R&&(_.YNc(0,un,10,16,"div",0),_.ALo(1,"async")),2&R&&_.Q6J("ngIf",_.lcZ(1,1,ce.isVisible$))},directives:[ot.O5,ot.PC,ot.$G,Cn,En,Vt,ve,Ce,J,le,Ne],pipes:[ot.Ov],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),O})(),Hn=(()=>{class O{static forRoot(){return{ngModule:O,providers:[zt]}}}return O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=_.oAB({type:O}),O.\u0275inj=_.cJS({imports:[[ot.ez]]}),O})(),Jn=(()=>{class O{constructor(){this.title="zoho"}ngOnInit(){this.overrideDateToJsonFunction()}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return new Date(this.getTime()-60*this.getTimezoneOffset()*1e3).toISOString()}}}return O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=_.Xpm({type:O,selectors:[["app-root"]],decls:2,vars:0,template:function(R,ce){1&R&&(_._UZ(0,"router-outlet"),_._UZ(1,"ng-http-loader"))},directives:[B.lC,nn],styles:[".main-content[_ngcontent-%COMP%]{margin-left:80px;flex-grow:1;transition:margin-left .25s,margin-right .25s,width .25s,flex .25s}.content-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;min-height:calc(80vh - .5rem)}.chosen[_ngcontent-%COMP%]{background-color:#9fd550;z-index:1}.show[_ngcontent-%COMP%]{z-index:10000}@media (max-width: 767px){.body-content[_ngcontent-%COMP%]{padding-top:50px}}.flex-right[_ngcontent-%COMP%] .mat-sort-header-container[_ngcontent-%COMP%]{justify-content:end!important}.align-right[_ngcontent-%COMP%] .mat-sort-header-container[_ngcontent-%COMP%]{justify-content:flex-end!important}.datepicker[_ngcontent-%COMP%]{width:125px}.mat-datepicker-content[_ngcontent-%COMP%] .mat-calendar[_ngcontent-%COMP%]{height:auto!important}"]}),O})();var Vn=M(6360),Rn=M(2290);let Ht=(()=>{class O{constructor(R){this._router=R}intercept(R,ce){let st=JSON.parse(window.localStorage.getItem("user")),bt=new Date;if(null!=st){let qt=new Date(st.expiredAt);R=R.clone(bt<qt?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${st.access_token}`}}:{setHeaders:{"Content-Type":"application/json"}})}else R=R.clone({setHeaders:{"Content-Type":"application/json"}});return ce.handle(R)}}return O.\u0275fac=function(R){return new(R||O)(_.LFG(B.F0))},O.\u0275prov=_.Yz7({token:O,factory:O.\u0275fac}),O})();var ar=M(8002),nt=M(8514),_e=M(1737),K=M(3753),W=M(1086),De=M(1221),ae=M(8929),Fe=M(7876);const Ie=new oe.y(Fe.Z);var lt=M(4850),Ct=M(2536),rn=M(2986),At=M(353),Et=M(2697),je=M(3489),xn=M(9312);class mt{constructor(q,R){this.delay=q,this.scheduler=R}call(q,R){return R.subscribe(new rt(q,this.delay,this.scheduler))}}class rt extends je.L{constructor(q,R,ce){super(q),this.delay=R,this.scheduler=ce,this.queue=[],this.active=!1,this.errored=!1}static dispatch(q){const R=q.source,ce=R.queue,st=q.scheduler,bt=q.destination;for(;ce.length>0&&ce[0].time-st.now()<=0;)ce.shift().notification.observe(bt);if(ce.length>0){const qt=Math.max(0,ce[0].time-st.now());this.schedule(q,qt)}else this.unsubscribe(),R.active=!1}_schedule(q){this.active=!0,this.destination.add(q.schedule(rt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:q}))}scheduleNotification(q){if(!0===this.errored)return;const R=this.scheduler,ce=new lr(R.now()+this.delay,q);this.queue.push(ce),!1===this.active&&this._schedule(R)}_next(q){this.scheduleNotification(xn.P.createNext(q))}_error(q){this.errored=!0,this.queue=[],this.destination.error(q),this.unsubscribe()}_complete(){this.scheduleNotification(xn.P.createComplete()),this.unsubscribe()}}class lr{constructor(q,R){this.time=q,this.notification=R}}const bn="Service workers are disabled or not supported by this browser";class er{constructor(q){if(this.serviceWorker=q,q){const ce=(0,K.R)(q,"controllerchange").pipe((0,lt.U)(()=>q.controller)),st=(0,nt.P)(()=>(0,W.of)(q.controller)),bt=(0,De.z)(st,ce);this.worker=bt.pipe((0,F.h)(hn=>!!hn)),this.registration=this.worker.pipe((0,Te.w)(()=>q.getRegistration()));const cr=(0,K.R)(q,"message").pipe((0,lt.U)(hn=>hn.data)).pipe((0,F.h)(hn=>hn&&hn.type)).pipe(function Qt(O){return O?(0,Ct.O)(()=>new ae.xQ,O):(0,Ct.O)(new ae.xQ)}());cr.connect(),this.events=cr}else this.worker=this.events=this.registration=function Xn(O){return(0,nt.P)(()=>(0,_e._)(new Error(O)))}(bn)}postMessage(q,R){return this.worker.pipe((0,rn.q)(1),(0,Ze.b)(ce=>{ce.postMessage(Object.assign({action:q},R))})).toPromise().then(()=>{})}postMessageWithOperation(q,R,ce){const st=this.waitForOperationCompleted(ce),bt=this.postMessage(q,R);return Promise.all([bt,st]).then(([,qt])=>qt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(q){let R;return R="string"==typeof q?ce=>ce.type===q:ce=>q.includes(ce.type),this.events.pipe((0,F.h)(R))}nextEventOfType(q){return this.eventsOfType(q).pipe((0,rn.q)(1))}waitForOperationCompleted(q){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,F.h)(R=>R.nonce===q),(0,rn.q)(1),(0,lt.U)(R=>{if(void 0!==R.result)return R.result;throw new Error(R.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Xt=(()=>{class O{constructor(R){if(this.sw=R,this.subscriptionChanges=new ae.xQ,!R.isEnabled)return this.messages=Ie,this.notificationClicks=Ie,void(this.subscription=Ie);this.messages=this.sw.eventsOfType("PUSH").pipe((0,lt.U)(st=>st.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,lt.U)(st=>st.data)),this.pushManager=this.sw.registration.pipe((0,lt.U)(st=>st.pushManager));const ce=this.pushManager.pipe((0,Te.w)(st=>st.getSubscription()));this.subscription=(0,Ee.T)(ce,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(R){if(!this.sw.isEnabled)return Promise.reject(new Error(bn));const ce={userVisibleOnly:!0};let st=this.decodeBase64(R.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),bt=new Uint8Array(new ArrayBuffer(st.length));for(let qt=0;qt<st.length;qt++)bt[qt]=st.charCodeAt(qt);return ce.applicationServerKey=bt,this.pushManager.pipe((0,Te.w)(qt=>qt.subscribe(ce)),(0,rn.q)(1)).toPromise().then(qt=>(this.subscriptionChanges.next(qt),qt))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,rn.q)(1),(0,Te.w)(ce=>{if(null===ce)throw new Error("Not subscribed to push notifications.");return ce.unsubscribe().then(st=>{if(!st)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(bn))}decodeBase64(R){return atob(R)}}return O.\u0275fac=function(R){return new(R||O)(_.LFG(er))},O.\u0275prov=_.Yz7({token:O,factory:O.\u0275fac}),O})(),Tn=(()=>{class O{constructor(R){if(this.sw=R,!R.isEnabled)return this.versionUpdates=Ie,this.available=Ie,this.activated=Ie,void(this.unrecoverable=Ie);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,F.h)(ce=>"VERSION_READY"===ce.type),(0,lt.U)(ce=>({type:"UPDATE_AVAILABLE",current:ce.currentVersion,available:ce.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(bn));const R=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:R},R)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(bn));const R=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:R},R)}}return O.\u0275fac=function(R){return new(R||O)(_.LFG(er))},O.\u0275prov=_.Yz7({token:O,factory:O.\u0275fac}),O})();class $n{}const zn=new _.OlP("NGSW_REGISTER_SCRIPT");function yr(O,q,R,ce){return()=>{if(!(0,ot.NF)(ce)||!("serviceWorker"in navigator)||!1===R.enabled)return;let bt;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof R.registrationStrategy)bt=R.registrationStrategy();else{const[Nn,...Qn]=(R.registrationStrategy||"registerWhenStable:30000").split(":");switch(Nn){case"registerImmediately":bt=(0,W.of)(null);break;case"registerWithDelay":bt=ur(+Qn[0]||0);break;case"registerWhenStable":bt=Qn[0]?(0,Ee.T)(re(O),ur(+Qn[0])):re(O);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${R.registrationStrategy}`)}}O.get(_.R0b).runOutsideAngular(()=>bt.pipe((0,rn.q)(1)).subscribe(()=>navigator.serviceWorker.register(q,{scope:R.scope}).catch(Nn=>console.error("Service worker registration failed with:",Nn))))}}function ur(O){return(0,W.of)(null).pipe(function Pt(O,q=At.P){const ce=(0,Et.J)(O)?+O-q.now():Math.abs(O);return st=>st.lift(new mt(ce,q))}(O))}function re(O){return O.get(_.z2F).isStable.pipe((0,F.h)(R=>R))}function L(O,q){return new er((0,ot.NF)(q)&&!1!==O.enabled?navigator.serviceWorker:void 0)}let x=(()=>{class O{static register(R,ce={}){return{ngModule:O,providers:[{provide:zn,useValue:R},{provide:$n,useValue:ce},{provide:er,useFactory:L,deps:[$n,_.Lbi]},{provide:_.ip1,useFactory:yr,deps:[_.zs3,zn,$n,_.Lbi],multi:!0}]}}}return O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=_.oAB({type:O}),O.\u0275inj=_.cJS({providers:[Xt,Tn]}),O})();let be=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=_.oAB({type:O,bootstrap:[Jn]}),O.\u0275inj=_.cJS({providers:[se.O,ar.e,{provide:Z.TP,useClass:Ht,multi:!0}],imports:[[g.b2,Y,Vn.PW,Rn.Rh.forRoot({positionClass:"toast-bottom-right",preventDuplicates:!0}),Z.JF,Hn.forRoot(),x.register("ngsw-worker.js",{enabled:true})]]}),O})();(0,_.G48)(),g.q6().bootstrapModule(be).catch(O=>console.error(O))},591:(ze,de,M)=>{M.d(de,{X:()=>Z});var g=M(8929),_=M(5279);class Z extends g.xQ{constructor(B){super(),this._value=B}get value(){return this.getValue()}_subscribe(B){const U=super._subscribe(B);return U&&!U.closed&&B.next(this._value),U}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _.N;return this._value}next(B){super.next(this._value=B)}}},9312:(ze,de,M)=>{M.d(de,{P:()=>B});var g=M(8896),_=M(1086),Z=M(1737);class B{constructor(Y,Q,$){this.kind=Y,this.value=Q,this.error=$,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,$){switch(this.kind){case"N":return Y&&Y(this.value);case"E":return Q&&Q(this.error);case"C":return $&&$()}}accept(Y,Q,$){return Y&&"function"==typeof Y.next?this.observe(Y):this.do(Y,Q,$)}toObservable(){switch(this.kind){case"N":return(0,_.of)(this.value);case"E":return(0,Z._)(this.error);case"C":return(0,g.c)()}throw new Error("unexpected notification kind value")}static createNext(Y){return void 0!==Y?new B("N",Y):B.undefinedValueNotification}static createError(Y){return new B("E",void 0,Y)}static createComplete(){return B.completeNotification}}B.completeNotification=new B("C"),B.undefinedValueNotification=new B("N",void 0)},2916:(ze,de,M)=>{M.d(de,{y:()=>F});var g=M(3489),Z=M(7668),se=M(3292),U=M(3821),Y=M(5379);var V=M(2830);let F=(()=>{class he{constructor(ee){this._isScalar=!1,ee&&(this._subscribe=ee)}lift(ee){const pe=new he;return pe.source=this,pe.operator=ee,pe}subscribe(ee,pe,Te){const{operator:Pe}=this,Oe=function B(he,Ee,ee){if(he){if(he instanceof g.L)return he;if(he[Z.b])return he[Z.b]()}return he||Ee||ee?new g.L(he,Ee,ee):new g.L(se.c)}(ee,pe,Te);if(Oe.add(Pe?Pe.call(Oe,this.source):this.source||V.v.useDeprecatedSynchronousErrorHandling&&!Oe.syncErrorThrowable?this._subscribe(Oe):this._trySubscribe(Oe)),V.v.useDeprecatedSynchronousErrorHandling&&Oe.syncErrorThrowable&&(Oe.syncErrorThrowable=!1,Oe.syncErrorThrown))throw Oe.syncErrorValue;return Oe}_trySubscribe(ee){try{return this._subscribe(ee)}catch(pe){V.v.useDeprecatedSynchronousErrorHandling&&(ee.syncErrorThrown=!0,ee.syncErrorValue=pe),function _(he){for(;he;){const{closed:Ee,destination:ee,isStopped:pe}=he;if(Ee||pe)return!1;he=ee&&ee instanceof g.L?ee:null}return!0}(ee)?ee.error(pe):console.warn(pe)}}forEach(ee,pe){return new(pe=oe(pe))((Te,Pe)=>{let Oe;Oe=this.subscribe(we=>{try{ee(we)}catch(ie){Pe(ie),Oe&&Oe.unsubscribe()}},Pe,Te)})}_subscribe(ee){const{source:pe}=this;return pe&&pe.subscribe(ee)}[U.L](){return this}pipe(...ee){return 0===ee.length?this:function $(he){return 0===he.length?Y.y:1===he.length?he[0]:function(ee){return he.reduce((pe,Te)=>Te(pe),ee)}}(ee)(this)}toPromise(ee){return new(ee=oe(ee))((pe,Te)=>{let Pe;this.subscribe(Oe=>Pe=Oe,Oe=>Te(Oe),()=>pe(Pe))})}}return he.create=Ee=>new he(Ee),he})();function oe(he){if(he||(he=V.v.Promise||Promise),!he)throw new Error("no Promise impl found");return he}},3292:(ze,de,M)=>{M.d(de,{c:()=>Z});var g=M(2830),_=M(2782);const Z={closed:!0,next(se){},error(se){if(g.v.useDeprecatedSynchronousErrorHandling)throw se;(0,_.z)(se)},complete(){}}},6831:(ze,de,M)=>{M.d(de,{t:()=>Te});var g=M(8929),_=M(6686),se=M(2268);const Y=new class B extends se.v{}(class Z extends _.o{constructor(we,ie){super(we,ie),this.scheduler=we,this.work=ie}schedule(we,ie=0){return ie>0?super.schedule(we,ie):(this.delay=ie,this.state=we,this.scheduler.flush(this),this)}execute(we,ie){return ie>0||this.closed?super.execute(we,ie):this._execute(we,ie)}requestAsyncId(we,ie,ue=0){return null!==ue&&ue>0||null===ue&&this.delay>0?super.requestAsyncId(we,ie,ue):we.flush(this)}});var Q=M(2654),$=M(3489),V=M(9312);class he extends $.L{constructor(we,ie,ue=0){super(we),this.scheduler=ie,this.delay=ue}static dispatch(we){const{notification:ie,destination:ue}=we;ie.observe(ue),this.unsubscribe()}scheduleMessage(we){this.destination.add(this.scheduler.schedule(he.dispatch,this.delay,new Ee(we,this.destination)))}_next(we){this.scheduleMessage(V.P.createNext(we))}_error(we){this.scheduleMessage(V.P.createError(we)),this.unsubscribe()}_complete(){this.scheduleMessage(V.P.createComplete()),this.unsubscribe()}}class Ee{constructor(we,ie){this.notification=we,this.destination=ie}}var ee=M(5279),pe=M(5283);class Te extends g.xQ{constructor(we=Number.POSITIVE_INFINITY,ie=Number.POSITIVE_INFINITY,ue){super(),this.scheduler=ue,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=we<1?1:we,this._windowTime=ie<1?1:ie,ie===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(we){if(!this.isStopped){const ie=this._events;ie.push(we),ie.length>this._bufferSize&&ie.shift()}super.next(we)}nextTimeWindow(we){this.isStopped||(this._events.push(new Pe(this._getNow(),we)),this._trimBufferThenGetEvents()),super.next(we)}_subscribe(we){const ie=this._infiniteTimeWindow,ue=ie?this._events:this._trimBufferThenGetEvents(),Ze=this.scheduler,ot=ue.length;let Dt;if(this.closed)throw new ee.N;if(this.isStopped||this.hasError?Dt=Q.w.EMPTY:(this.observers.push(we),Dt=new pe.W(this,we)),Ze&&we.add(we=new he(we,Ze)),ie)for(let We=0;We<ot&&!we.closed;We++)we.next(ue[We]);else for(let We=0;We<ot&&!we.closed;We++)we.next(ue[We].value);return this.hasError?we.error(this.thrownError):this.isStopped&&we.complete(),Dt}_getNow(){return(this.scheduler||Y).now()}_trimBufferThenGetEvents(){const we=this._getNow(),ie=this._bufferSize,ue=this._windowTime,Ze=this._events,ot=Ze.length;let Dt=0;for(;Dt<ot&&!(we-Ze[Dt].time<ue);)Dt++;return ot>ie&&(Dt=Math.max(Dt,ot-ie)),Dt>0&&Ze.splice(0,Dt),Ze}}class Pe{constructor(we,ie){this.time=we,this.value=ie}}},8929:(ze,de,M)=>{M.d(de,{Yc:()=>Y,xQ:()=>Q});var g=M(2916),_=M(3489),Z=M(2654),se=M(5279),B=M(5283),U=M(7668);class Y extends _.L{constructor(F){super(F),this.destination=F}}let Q=(()=>{class V extends g.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[U.b](){return new Y(this)}lift(oe){const he=new $(this,this);return he.operator=oe,he}next(oe){if(this.closed)throw new se.N;if(!this.isStopped){const{observers:he}=this,Ee=he.length,ee=he.slice();for(let pe=0;pe<Ee;pe++)ee[pe].next(oe)}}error(oe){if(this.closed)throw new se.N;this.hasError=!0,this.thrownError=oe,this.isStopped=!0;const{observers:he}=this,Ee=he.length,ee=he.slice();for(let pe=0;pe<Ee;pe++)ee[pe].error(oe);this.observers.length=0}complete(){if(this.closed)throw new se.N;this.isStopped=!0;const{observers:oe}=this,he=oe.length,Ee=oe.slice();for(let ee=0;ee<he;ee++)Ee[ee].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(oe){if(this.closed)throw new se.N;return super._trySubscribe(oe)}_subscribe(oe){if(this.closed)throw new se.N;return this.hasError?(oe.error(this.thrownError),Z.w.EMPTY):this.isStopped?(oe.complete(),Z.w.EMPTY):(this.observers.push(oe),new B.W(this,oe))}asObservable(){const oe=new g.y;return oe.source=this,oe}}return V.create=(F,oe)=>new $(F,oe),V})();class $ extends Q{constructor(F,oe){super(),this.destination=F,this.source=oe}next(F){const{destination:oe}=this;oe&&oe.next&&oe.next(F)}error(F){const{destination:oe}=this;oe&&oe.error&&this.destination.error(F)}complete(){const{destination:F}=this;F&&F.complete&&this.destination.complete()}_subscribe(F){const{source:oe}=this;return oe?this.source.subscribe(F):Z.w.EMPTY}}},5283:(ze,de,M)=>{M.d(de,{W:()=>_});var g=M(2654);class _ extends g.w{constructor(se,B){super(),this.subject=se,this.subscriber=B,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const se=this.subject,B=se.observers;if(this.subject=null,!B||0===B.length||se.isStopped||se.closed)return;const U=B.indexOf(this.subscriber);-1!==U&&B.splice(U,1)}}},3489:(ze,de,M)=>{M.d(de,{L:()=>Y});var g=M(7043),_=M(3292),Z=M(2654),se=M(7668),B=M(2830),U=M(2782);class Y extends Z.w{constructor(V,F,oe){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_.c;break;case 1:if(!V){this.destination=_.c;break}if("object"==typeof V){V instanceof Y?(this.syncErrorThrowable=V.syncErrorThrowable,this.destination=V,V.add(this)):(this.syncErrorThrowable=!0,this.destination=new Q(this,V));break}default:this.syncErrorThrowable=!0,this.destination=new Q(this,V,F,oe)}}[se.b](){return this}static create(V,F,oe){const he=new Y(V,F,oe);return he.syncErrorThrowable=!1,he}next(V){this.isStopped||this._next(V)}error(V){this.isStopped||(this.isStopped=!0,this._error(V))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(V){this.destination.next(V)}_error(V){this.destination.error(V),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:V}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=V,this}}class Q extends Y{constructor(V,F,oe,he){super(),this._parentSubscriber=V;let Ee,ee=this;(0,g.m)(F)?Ee=F:F&&(Ee=F.next,oe=F.error,he=F.complete,F!==_.c&&(ee=Object.create(F),(0,g.m)(ee.unsubscribe)&&this.add(ee.unsubscribe.bind(ee)),ee.unsubscribe=this.unsubscribe.bind(this))),this._context=ee,this._next=Ee,this._error=oe,this._complete=he}next(V){if(!this.isStopped&&this._next){const{_parentSubscriber:F}=this;B.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?this.__tryOrSetError(F,this._next,V)&&this.unsubscribe():this.__tryOrUnsub(this._next,V)}}error(V){if(!this.isStopped){const{_parentSubscriber:F}=this,{useDeprecatedSynchronousErrorHandling:oe}=B.v;if(this._error)oe&&F.syncErrorThrowable?(this.__tryOrSetError(F,this._error,V),this.unsubscribe()):(this.__tryOrUnsub(this._error,V),this.unsubscribe());else if(F.syncErrorThrowable)oe?(F.syncErrorValue=V,F.syncErrorThrown=!0):(0,U.z)(V),this.unsubscribe();else{if(this.unsubscribe(),oe)throw V;(0,U.z)(V)}}}complete(){if(!this.isStopped){const{_parentSubscriber:V}=this;if(this._complete){const F=()=>this._complete.call(this._context);B.v.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable?(this.__tryOrSetError(V,F),this.unsubscribe()):(this.__tryOrUnsub(F),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(V,F){try{V.call(this._context,F)}catch(oe){if(this.unsubscribe(),B.v.useDeprecatedSynchronousErrorHandling)throw oe;(0,U.z)(oe)}}__tryOrSetError(V,F,oe){if(!B.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{F.call(this._context,oe)}catch(he){return B.v.useDeprecatedSynchronousErrorHandling?(V.syncErrorValue=he,V.syncErrorThrown=!0,!0):((0,U.z)(he),!0)}return!1}_unsubscribe(){const{_parentSubscriber:V}=this;this._context=null,this._parentSubscriber=null,V.unsubscribe()}}},2654:(ze,de,M)=>{M.d(de,{w:()=>U});var g=M(6688),_=M(7830),Z=M(7043);const B=(()=>{function Q($){return Error.call(this),this.message=$?`${$.length} errors occurred during unsubscription:\n${$.map((V,F)=>`${F+1}) ${V.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=$,this}return Q.prototype=Object.create(Error.prototype),Q})();class U{constructor($){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,$&&(this._ctorUnsubscribe=!0,this._unsubscribe=$)}unsubscribe(){let $;if(this.closed)return;let{_parentOrParents:V,_ctorUnsubscribe:F,_unsubscribe:oe,_subscriptions:he}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,V instanceof U)V.remove(this);else if(null!==V)for(let Ee=0;Ee<V.length;++Ee)V[Ee].remove(this);if((0,Z.m)(oe)){F&&(this._unsubscribe=void 0);try{oe.call(this)}catch(Ee){$=Ee instanceof B?Y(Ee.errors):[Ee]}}if((0,g.k)(he)){let Ee=-1,ee=he.length;for(;++Ee<ee;){const pe=he[Ee];if((0,_.K)(pe))try{pe.unsubscribe()}catch(Te){$=$||[],Te instanceof B?$=$.concat(Y(Te.errors)):$.push(Te)}}}if($)throw new B($)}add($){let V=$;if(!$)return U.EMPTY;switch(typeof $){case"function":V=new U($);case"object":if(V===this||V.closed||"function"!=typeof V.unsubscribe)return V;if(this.closed)return V.unsubscribe(),V;if(!(V instanceof U)){const he=V;V=new U,V._subscriptions=[he]}break;default:throw new Error("unrecognized teardown "+$+" added to Subscription.")}let{_parentOrParents:F}=V;if(null===F)V._parentOrParents=this;else if(F instanceof U){if(F===this)return V;V._parentOrParents=[F,this]}else{if(-1!==F.indexOf(this))return V;F.push(this)}const oe=this._subscriptions;return null===oe?this._subscriptions=[V]:oe.push(V),V}remove($){const V=this._subscriptions;if(V){const F=V.indexOf($);-1!==F&&V.splice(F,1)}}}var Q;function Y(Q){return Q.reduce(($,V)=>$.concat(V instanceof B?V.errors:V),[])}U.EMPTY=((Q=new U).closed=!0,Q)},2830:(ze,de,M)=>{M.d(de,{v:()=>_});let g=!1;const _={Promise:void 0,set useDeprecatedSynchronousErrorHandling(Z){if(Z){const se=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+se.stack)}else g&&console.log("RxJS: Back to a better error behavior. Thank you. <3");g=Z},get useDeprecatedSynchronousErrorHandling(){return g}}},1177:(ze,de,M)=>{M.d(de,{Ds:()=>U,IY:()=>se,ft:()=>Q});var g=M(3489),_=M(2916),Z=M(9249);class se extends g.L{constructor(V){super(),this.parent=V}_next(V){this.parent.notifyNext(V)}_error(V){this.parent.notifyError(V),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class U extends g.L{notifyNext(V){this.destination.next(V)}notifyError(V){this.destination.error(V)}notifyComplete(){this.destination.complete()}}function Q($,V){if(V.closed)return;if($ instanceof _.y)return $.subscribe(V);let F;try{F=(0,Z.s)($)(V)}catch(oe){V.error(oe)}return F}},1762:(ze,de,M)=>{M.d(de,{N:()=>U,c:()=>B});var g=M(8929),_=M(2916),Z=M(2654),se=M(4327);class B extends _.y{constructor(F,oe){super(),this.source=F,this.subjectFactory=oe,this._refCount=0,this._isComplete=!1}_subscribe(F){return this.getSubject().subscribe(F)}getSubject(){const F=this._subject;return(!F||F.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let F=this._connection;return F||(this._isComplete=!1,F=this._connection=new Z.w,F.add(this.source.subscribe(new Y(this.getSubject(),this))),F.closed&&(this._connection=null,F=Z.w.EMPTY)),F}refCount(){return(0,se.x)()(this)}}const U=(()=>{const V=B.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:V._subscribe},_isComplete:{value:V._isComplete,writable:!0},getSubject:{value:V.getSubject},connect:{value:V.connect},refCount:{value:V.refCount}}})();class Y extends g.Yc{constructor(F,oe){super(F),this.connectable=oe}_error(F){this._unsubscribe(),super._error(F)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const F=this.connectable;if(F){this.connectable=null;const oe=F._connection;F._refCount=0,F._subject=null,F._connection=null,oe&&oe.unsubscribe()}}}},3426:(ze,de,M)=>{M.d(de,{aj:()=>F});var g=M(2866),_=M(6688),Z=M(3489);class se extends Z.L{notifyNext(ee,pe,Te,Pe,Oe){this.destination.next(pe)}notifyError(ee,pe){this.destination.error(ee)}notifyComplete(ee){this.destination.complete()}}class B extends Z.L{constructor(ee,pe,Te){super(),this.parent=ee,this.outerValue=pe,this.outerIndex=Te,this.index=0}_next(ee){this.parent.notifyNext(this.outerValue,ee,this.outerIndex,this.index++,this)}_error(ee){this.parent.notifyError(ee,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var U=M(9249),Y=M(2916);function Q(Ee,ee,pe,Te,Pe=new B(Ee,pe,Te)){if(!Pe.closed)return ee instanceof Y.y?ee.subscribe(Pe):(0,U.s)(ee)(Pe)}var $=M(3009);const V={};function F(...Ee){let ee,pe;return(0,g.K)(Ee[Ee.length-1])&&(pe=Ee.pop()),"function"==typeof Ee[Ee.length-1]&&(ee=Ee.pop()),1===Ee.length&&(0,_.k)(Ee[0])&&(Ee=Ee[0]),(0,$.n)(Ee,pe).lift(new oe(ee))}class oe{constructor(ee){this.resultSelector=ee}call(ee,pe){return pe.subscribe(new he(ee,this.resultSelector))}}class he extends se{constructor(ee,pe){super(ee),this.resultSelector=pe,this.active=0,this.values=[],this.observables=[]}_next(ee){this.values.push(V),this.observables.push(ee)}_complete(){const ee=this.observables,pe=ee.length;if(0===pe)this.destination.complete();else{this.active=pe,this.toRespond=pe;for(let Te=0;Te<pe;Te++)this.add(Q(this,ee[Te],void 0,Te))}}notifyComplete(ee){0==(this.active-=1)&&this.destination.complete()}notifyNext(ee,pe,Te){const Pe=this.values,we=this.toRespond?Pe[Te]===V?--this.toRespond:this.toRespond:0;Pe[Te]=pe,0===we&&(this.resultSelector?this._tryResultSelector(Pe):this.destination.next(Pe.slice()))}_tryResultSelector(ee){let pe;try{pe=this.resultSelector.apply(this,ee)}catch(Te){return void this.destination.error(Te)}this.destination.next(pe)}}},1221:(ze,de,M)=>{M.d(de,{z:()=>se});var g=M(1086),_=M(9146);function se(...B){return function Z(){return(0,_.J)(1)}()((0,g.of)(...B))}},8514:(ze,de,M)=>{M.d(de,{P:()=>se});var g=M(2916),_=M(5254),Z=M(8896);function se(B){return new g.y(U=>{let Y;try{Y=B()}catch($){return void U.error($)}return(Y?(0,_.D)(Y):(0,Z.c)()).subscribe(U)})}},8896:(ze,de,M)=>{M.d(de,{E:()=>_,c:()=>Z});var g=M(2916);const _=new g.y(B=>B.complete());function Z(B){return B?function se(B){return new g.y(U=>B.schedule(()=>U.complete()))}(B):_}},5254:(ze,de,M)=>{M.d(de,{D:()=>ee});var g=M(2916),_=M(9249),Z=M(2654),se=M(3821),Y=M(6454),Q=M(5430),F=M(8955),oe=M(8515);function ee(pe,Te){return Te?function Ee(pe,Te){if(null!=pe){if(function V(pe){return pe&&"function"==typeof pe[se.L]}(pe))return function B(pe,Te){return new g.y(Pe=>{const Oe=new Z.w;return Oe.add(Te.schedule(()=>{const we=pe[se.L]();Oe.add(we.subscribe({next(ie){Oe.add(Te.schedule(()=>Pe.next(ie)))},error(ie){Oe.add(Te.schedule(()=>Pe.error(ie)))},complete(){Oe.add(Te.schedule(()=>Pe.complete()))}}))})),Oe})}(pe,Te);if((0,F.t)(pe))return function U(pe,Te){return new g.y(Pe=>{const Oe=new Z.w;return Oe.add(Te.schedule(()=>pe.then(we=>{Oe.add(Te.schedule(()=>{Pe.next(we),Oe.add(Te.schedule(()=>Pe.complete()))}))},we=>{Oe.add(Te.schedule(()=>Pe.error(we)))}))),Oe})}(pe,Te);if((0,oe.z)(pe))return(0,Y.r)(pe,Te);if(function he(pe){return pe&&"function"==typeof pe[Q.hZ]}(pe)||"string"==typeof pe)return function $(pe,Te){if(!pe)throw new Error("Iterable cannot be null");return new g.y(Pe=>{const Oe=new Z.w;let we;return Oe.add(()=>{we&&"function"==typeof we.return&&we.return()}),Oe.add(Te.schedule(()=>{we=pe[Q.hZ](),Oe.add(Te.schedule(function(){if(Pe.closed)return;let ie,ue;try{const Ze=we.next();ie=Ze.value,ue=Ze.done}catch(Ze){return void Pe.error(Ze)}ue?Pe.complete():(Pe.next(ie),this.schedule())}))})),Oe})}(pe,Te)}throw new TypeError((null!==pe&&typeof pe||pe)+" is not observable")}(pe,Te):pe instanceof g.y?pe:new g.y((0,_.s)(pe))}},3009:(ze,de,M)=>{M.d(de,{n:()=>se});var g=M(2916),_=M(3650),Z=M(6454);function se(B,U){return U?(0,Z.r)(B,U):new g.y((0,_.V)(B))}},3753:(ze,de,M)=>{M.d(de,{R:()=>U});var g=M(2916),_=M(6688),Z=M(7043),se=M(4850);function U(F,oe,he,Ee){return(0,Z.m)(he)&&(Ee=he,he=void 0),Ee?U(F,oe,he).pipe((0,se.U)(ee=>(0,_.k)(ee)?Ee(...ee):Ee(ee))):new g.y(ee=>{Y(F,oe,function pe(Te){ee.next(arguments.length>1?Array.prototype.slice.call(arguments):Te)},ee,he)})}function Y(F,oe,he,Ee,ee){let pe;if(function V(F){return F&&"function"==typeof F.addEventListener&&"function"==typeof F.removeEventListener}(F)){const Te=F;F.addEventListener(oe,he,ee),pe=()=>Te.removeEventListener(oe,he,ee)}else if(function $(F){return F&&"function"==typeof F.on&&"function"==typeof F.off}(F)){const Te=F;F.on(oe,he),pe=()=>Te.off(oe,he)}else if(function Q(F){return F&&"function"==typeof F.addListener&&"function"==typeof F.removeListener}(F)){const Te=F;F.addListener(oe,he),pe=()=>Te.removeListener(oe,he)}else{if(!F||!F.length)throw new TypeError("Invalid event target");for(let Te=0,Pe=F.length;Te<Pe;Te++)Y(F[Te],oe,he,Ee,ee)}Ee.add(pe)}},6787:(ze,de,M)=>{M.d(de,{T:()=>B});var g=M(2916),_=M(2866),Z=M(9146),se=M(3009);function B(...U){let Y=Number.POSITIVE_INFINITY,Q=null,$=U[U.length-1];return(0,_.K)($)?(Q=U.pop(),U.length>1&&"number"==typeof U[U.length-1]&&(Y=U.pop())):"number"==typeof $&&(Y=U.pop()),null===Q&&1===U.length&&U[0]instanceof g.y?U[0]:(0,Z.J)(Y)((0,se.n)(U,Q))}},1086:(ze,de,M)=>{M.d(de,{of:()=>se});var g=M(2866),_=M(3009),Z=M(6454);function se(...B){let U=B[B.length-1];return(0,g.K)(U)?(B.pop(),(0,Z.r)(B,U)):(0,_.n)(B)}},1737:(ze,de,M)=>{M.d(de,{_:()=>_});var g=M(2916);function _(se,B){return new g.y(B?U=>B.schedule(Z,0,{error:se,subscriber:U}):U=>U.error(se))}function Z({error:se,subscriber:B}){B.error(se)}},7739:(ze,de,M)=>{M.d(de,{H:()=>U});var g=M(2916),_=M(353),Z=M(6688);function se(Q){return!(0,Z.k)(Q)&&Q-parseFloat(Q)+1>=0}var B=M(2866);function U(Q=0,$,V){let F=-1;return se($)?F=Number($)<1?1:Number($):(0,B.K)($)&&(V=$),(0,B.K)(V)||(V=_.P),new g.y(oe=>{const he=se(Q)?Q:+Q-V.now();return V.schedule(Y,he,{index:0,period:F,subscriber:oe})})}function Y(Q){const{index:$,period:V,subscriber:F}=Q;if(F.next($),!F.closed){if(-1===V)return F.complete();Q.index=$+1,this.schedule(Q,V)}}},7221:(ze,de,M)=>{M.d(de,{K:()=>_});var g=M(1177);function _(B){return function(Y){const Q=new Z(B),$=Y.lift(Q);return Q.caught=$}}class Z{constructor(U){this.selector=U}call(U,Y){return Y.subscribe(new se(U,this.selector,this.caught))}}class se extends g.Ds{constructor(U,Y,Q){super(U),this.selector=Y,this.caught=Q}error(U){if(!this.isStopped){let Y;try{Y=this.selector(U,this.caught)}catch(V){return void super.error(V)}this._unsubscribeAndRecycle();const Q=new g.IY(this);this.add(Q);const $=(0,g.ft)(Y,Q);$!==Q&&this.add($)}}}},1406:(ze,de,M)=>{M.d(de,{b:()=>_});var g=M(1709);function _(Z,se){return(0,g.zg)(Z,se,1)}},5778:(ze,de,M)=>{M.d(de,{x:()=>_});var g=M(3489);function _(B,U){return Y=>Y.lift(new Z(B,U))}class Z{constructor(U,Y){this.compare=U,this.keySelector=Y}call(U,Y){return Y.subscribe(new se(U,this.compare,this.keySelector))}}class se extends g.L{constructor(U,Y,Q){super(U),this.keySelector=Q,this.hasKey=!1,"function"==typeof Y&&(this.compare=Y)}compare(U,Y){return U===Y}_next(U){let Y;try{const{keySelector:$}=this;Y=$?$(U):U}catch($){return this.destination.error($)}let Q=!1;if(this.hasKey)try{const{compare:$}=this;Q=$(this.key,Y)}catch($){return this.destination.error($)}else this.hasKey=!0;Q||(this.key=Y,this.destination.next(U))}}},2198:(ze,de,M)=>{M.d(de,{h:()=>_});var g=M(3489);function _(B,U){return function(Q){return Q.lift(new Z(B,U))}}class Z{constructor(U,Y){this.predicate=U,this.thisArg=Y}call(U,Y){return Y.subscribe(new se(U,this.predicate,this.thisArg))}}class se extends g.L{constructor(U,Y,Q){super(U),this.predicate=Y,this.thisArg=Q,this.count=0}_next(U){let Y;try{Y=this.predicate.call(this.thisArg,U,this.count++)}catch(Q){return void this.destination.error(Q)}Y&&this.destination.next(U)}}},537:(ze,de,M)=>{M.d(de,{x:()=>Z});var g=M(3489),_=M(2654);function Z(U){return Y=>Y.lift(new se(U))}class se{constructor(Y){this.callback=Y}call(Y,Q){return Q.subscribe(new B(Y,this.callback))}}class B extends g.L{constructor(Y,Q){super(Y),this.add(new _.w(Q))}}},4850:(ze,de,M)=>{M.d(de,{U:()=>_});var g=M(3489);function _(B,U){return function(Q){if("function"!=typeof B)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return Q.lift(new Z(B,U))}}class Z{constructor(U,Y){this.project=U,this.thisArg=Y}call(U,Y){return Y.subscribe(new se(U,this.project,this.thisArg))}}class se extends g.L{constructor(U,Y,Q){super(U),this.project=Y,this.count=0,this.thisArg=Q||this}_next(U){let Y;try{Y=this.project.call(this.thisArg,U,this.count++)}catch(Q){return void this.destination.error(Q)}this.destination.next(Y)}}},9146:(ze,de,M)=>{M.d(de,{J:()=>Z});var g=M(1709),_=M(5379);function Z(se=Number.POSITIVE_INFINITY){return(0,g.zg)(_.y,se)}},1709:(ze,de,M)=>{M.d(de,{zg:()=>se});var g=M(4850),_=M(5254),Z=M(1177);function se(Q,$,V=Number.POSITIVE_INFINITY){return"function"==typeof $?F=>F.pipe(se((oe,he)=>(0,_.D)(Q(oe,he)).pipe((0,g.U)((Ee,ee)=>$(oe,Ee,he,ee))),V)):("number"==typeof $&&(V=$),F=>F.lift(new B(Q,V)))}class B{constructor($,V=Number.POSITIVE_INFINITY){this.project=$,this.concurrent=V}call($,V){return V.subscribe(new U($,this.project,this.concurrent))}}class U extends Z.Ds{constructor($,V,F=Number.POSITIVE_INFINITY){super($),this.project=V,this.concurrent=F,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next($){this.active<this.concurrent?this._tryNext($):this.buffer.push($)}_tryNext($){let V;const F=this.index++;try{V=this.project($,F)}catch(oe){return void this.destination.error(oe)}this.active++,this._innerSub(V)}_innerSub($){const V=new Z.IY(this),F=this.destination;F.add(V);const oe=(0,Z.ft)($,V);oe!==V&&F.add(oe)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext($){this.destination.next($)}notifyComplete(){const $=this.buffer;this.active--,$.length>0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(ze,de,M)=>{M.d(de,{O:()=>_});var g=M(1762);function _(se,B){return function(Y){let Q;if(Q="function"==typeof se?se:function(){return se},"function"==typeof B)return Y.lift(new Z(Q,B));const $=Object.create(Y,g.N);return $.source=Y,$.subjectFactory=Q,$}}class Z{constructor(B,U){this.subjectFactory=B,this.selector=U}call(B,U){const{selector:Y}=this,Q=this.subjectFactory(),$=Y(Q).subscribe(B);return $.add(U.subscribe(Q)),$}}},4327:(ze,de,M)=>{M.d(de,{x:()=>_});var g=M(3489);function _(){return function(U){return U.lift(new Z(U))}}class Z{constructor(U){this.connectable=U}call(U,Y){const{connectable:Q}=this;Q._refCount++;const $=new se(U,Q),V=Y.subscribe($);return $.closed||($.connection=Q.connect()),V}}class se extends g.L{constructor(U,Y){super(U),this.connectable=Y}_unsubscribe(){const{connectable:U}=this;if(!U)return void(this.connection=null);this.connectable=null;const Y=U._refCount;if(Y<=0)return void(this.connection=null);if(U._refCount=Y-1,Y>1)return void(this.connection=null);const{connection:Q}=this,$=U._connection;this.connection=null,$&&(!Q||$===Q)&&$.unsubscribe()}}},1059:(ze,de,M)=>{M.d(de,{O:()=>Z});var g=M(1221),_=M(2866);function Z(...se){const B=se[se.length-1];return(0,_.K)(B)?(se.pop(),U=>(0,g.z)(se,U,B)):U=>(0,g.z)(se,U)}},7545:(ze,de,M)=>{M.d(de,{w:()=>se});var g=M(4850),_=M(5254),Z=M(1177);function se(Y,Q){return"function"==typeof Q?$=>$.pipe(se((V,F)=>(0,_.D)(Y(V,F)).pipe((0,g.U)((oe,he)=>Q(V,oe,F,he))))):$=>$.lift(new B(Y))}class B{constructor(Q){this.project=Q}call(Q,$){return $.subscribe(new U(Q,this.project))}}class U extends Z.Ds{constructor(Q,$){super(Q),this.project=$,this.index=0}_next(Q){let $;const V=this.index++;try{$=this.project(Q,V)}catch(F){return void this.destination.error(F)}this._innerSub($)}_innerSub(Q){const $=this.innerSubscription;$&&$.unsubscribe();const V=new Z.IY(this),F=this.destination;F.add(V),this.innerSubscription=(0,Z.ft)(Q,V),this.innerSubscription!==V&&F.add(this.innerSubscription)}_complete(){const{innerSubscription:Q}=this;(!Q||Q.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(Q){this.destination.next(Q)}}},2986:(ze,de,M)=>{M.d(de,{q:()=>se});var g=M(3489),_=M(4231),Z=M(8896);function se(Y){return Q=>0===Y?(0,Z.c)():Q.lift(new B(Y))}class B{constructor(Q){if(this.total=Q,this.total<0)throw new _.W}call(Q,$){return $.subscribe(new U(Q,this.total))}}class U extends g.L{constructor(Q,$){super(Q),this.total=$,this.count=0}_next(Q){const $=this.total,V=++this.count;V<=$&&(this.destination.next(Q),V===$&&(this.destination.complete(),this.unsubscribe()))}}},2994:(ze,de,M)=>{M.d(de,{b:()=>se});var g=M(3489),_=M(7876),Z=M(7043);function se(Y,Q,$){return function(F){return F.lift(new B(Y,Q,$))}}class B{constructor(Q,$,V){this.nextOrObserver=Q,this.error=$,this.complete=V}call(Q,$){return $.subscribe(new U(Q,this.nextOrObserver,this.error,this.complete))}}class U extends g.L{constructor(Q,$,V,F){super(Q),this._tapNext=_.Z,this._tapError=_.Z,this._tapComplete=_.Z,this._tapError=V||_.Z,this._tapComplete=F||_.Z,(0,Z.m)($)?(this._context=this,this._tapNext=$):$&&(this._context=$,this._tapNext=$.next||_.Z,this._tapError=$.error||_.Z,this._tapComplete=$.complete||_.Z)}_next(Q){try{this._tapNext.call(this._context,Q)}catch($){return void this.destination.error($)}this.destination.next(Q)}_error(Q){try{this._tapError.call(this._context,Q)}catch($){return void this.destination.error($)}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,de,M)=>{M.d(de,{r:()=>Z});var g=M(2916),_=M(2654);function Z(se,B){return new g.y(U=>{const Y=new _.w;let Q=0;return Y.add(B.schedule(function(){Q!==se.length?(U.next(se[Q++]),U.closed||Y.add(this.schedule())):U.complete()})),Y})}},6686:(ze,de,M)=>{M.d(de,{o:()=>Z});var g=M(2654);class _ extends g.w{constructor(B,U){super()}schedule(B,U=0){return this}}class Z extends _{constructor(B,U){super(B,U),this.scheduler=B,this.work=U,this.pending=!1}schedule(B,U=0){if(this.closed)return this;this.state=B;const Y=this.id,Q=this.scheduler;return null!=Y&&(this.id=this.recycleAsyncId(Q,Y,U)),this.pending=!0,this.delay=U,this.id=this.id||this.requestAsyncId(Q,this.id,U),this}requestAsyncId(B,U,Y=0){return setInterval(B.flush.bind(B,this),Y)}recycleAsyncId(B,U,Y=0){if(null!==Y&&this.delay===Y&&!1===this.pending)return U;clearInterval(U)}execute(B,U){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Y=this._execute(B,U);if(Y)return Y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,U){let Q,Y=!1;try{this.work(B)}catch($){Y=!0,Q=!!$&&$||new Error($)}if(Y)return this.unsubscribe(),Q}_unsubscribe(){const B=this.id,U=this.scheduler,Y=U.actions,Q=Y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==Q&&Y.splice(Q,1),null!=B&&(this.id=this.recycleAsyncId(U,B,null)),this.delay=null}}},2268:(ze,de,M)=>{M.d(de,{v:()=>_});let g=(()=>{class Z{constructor(B,U=Z.now){this.SchedulerAction=B,this.now=U}schedule(B,U=0,Y){return new this.SchedulerAction(this,B).schedule(Y,U)}}return Z.now=()=>Date.now(),Z})();class _ extends g{constructor(se,B=g.now){super(se,()=>_.delegate&&_.delegate!==this?_.delegate.now():B()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(se,B=0,U){return _.delegate&&_.delegate!==this?_.delegate.schedule(se,B,U):super.schedule(se,B,U)}flush(se){const{actions:B}=this;if(this.active)return void B.push(se);let U;this.active=!0;do{if(U=se.execute(se.state,se.delay))break}while(se=B.shift());if(this.active=!1,U){for(;se=B.shift();)se.unsubscribe();throw U}}}},353:(ze,de,M)=>{M.d(de,{P:()=>se});var g=M(6686);const se=new(M(2268).v)(g.o)},5430:(ze,de,M)=>{M.d(de,{hZ:()=>_});const _=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(ze,de,M)=>{M.d(de,{L:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(ze,de,M)=>{M.d(de,{b:()=>g});const g="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(ze,de,M)=>{M.d(de,{W:()=>_});const _=(()=>{function Z(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return Z.prototype=Object.create(Error.prototype),Z})()},5279:(ze,de,M)=>{M.d(de,{N:()=>_});const _=(()=>{function Z(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return Z.prototype=Object.create(Error.prototype),Z})()},2782:(ze,de,M)=>{function g(_){setTimeout(()=>{throw _},0)}M.d(de,{z:()=>g})},5379:(ze,de,M)=>{function g(_){return _}M.d(de,{y:()=>g})},6688:(ze,de,M)=>{M.d(de,{k:()=>g});const g=Array.isArray||(_=>_&&"number"==typeof _.length)},8515:(ze,de,M)=>{M.d(de,{z:()=>g});const g=_=>_&&"number"==typeof _.length&&"function"!=typeof _},2697:(ze,de,M)=>{function g(_){return _ instanceof Date&&!isNaN(+_)}M.d(de,{J:()=>g})},7043:(ze,de,M)=>{function g(_){return"function"==typeof _}M.d(de,{m:()=>g})},7830:(ze,de,M)=>{function g(_){return null!==_&&"object"==typeof _}M.d(de,{K:()=>g})},8955:(ze,de,M)=>{function g(_){return!!_&&"function"!=typeof _.subscribe&&"function"==typeof _.then}M.d(de,{t:()=>g})},2866:(ze,de,M)=>{function g(_){return _&&"function"==typeof _.schedule}M.d(de,{K:()=>g})},7876:(ze,de,M)=>{function g(){}M.d(de,{Z:()=>g})},9249:(ze,de,M)=>{M.d(de,{s:()=>F});var g=M(3650),_=M(2782),se=M(5430),U=M(3821),Q=M(8515),$=M(8955),V=M(7830);const F=oe=>{if(oe&&"function"==typeof oe[U.L])return(oe=>he=>{const Ee=oe[U.L]();if("function"!=typeof Ee.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ee.subscribe(he)})(oe);if((0,Q.z)(oe))return(0,g.V)(oe);if((0,$.t)(oe))return(oe=>he=>(oe.then(Ee=>{he.closed||(he.next(Ee),he.complete())},Ee=>he.error(Ee)).then(null,_.z),he))(oe);if(oe&&"function"==typeof oe[se.hZ])return(oe=>he=>{const Ee=oe[se.hZ]();for(;;){let ee;try{ee=Ee.next()}catch(pe){return he.error(pe),he}if(ee.done){he.complete();break}if(he.next(ee.value),he.closed)break}return"function"==typeof Ee.return&&he.add(()=>{Ee.return&&Ee.return()}),he})(oe);{const Ee=`You provided ${(0,V.K)(oe)?"an invalid object":`'${oe}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ee)}}},3650:(ze,de,M)=>{M.d(de,{V:()=>g});const g=_=>Z=>{for(let se=0,B=_.length;se<B&&!Z.closed;se++)Z.next(_[se]);Z.complete()}},1777:(ze,de,M)=>{M.d(de,{F4:()=>V,IO:()=>ee,LC:()=>_,SB:()=>$,X$:()=>se,ZE:()=>Oe,ZN:()=>Pe,_j:()=>g,eR:()=>F,jt:()=>B,k1:()=>we,l3:()=>Z,oB:()=>Q,pV:()=>he,ru:()=>U,vP:()=>Y});class g{}class _{}const Z="*";function se(ie,ue){return{type:7,name:ie,definitions:ue,options:{}}}function B(ie,ue=null){return{type:4,styles:ue,timings:ie}}function U(ie,ue=null){return{type:3,steps:ie,options:ue}}function Y(ie,ue=null){return{type:2,steps:ie,options:ue}}function Q(ie){return{type:6,styles:ie,offset:null}}function $(ie,ue,Ze){return{type:0,name:ie,styles:ue,options:Ze}}function V(ie){return{type:5,steps:ie}}function F(ie,ue,Ze=null){return{type:1,expr:ie,animation:ue,options:Ze}}function he(ie=null){return{type:9,options:ie}}function ee(ie,ue,Ze=null){return{type:11,selector:ie,animation:ue,options:Ze}}function Te(ie){Promise.resolve(null).then(ie)}class Pe{constructor(ue=0,Ze=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ue+Ze}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ue=>ue()),this._onDoneFns=[])}onStart(ue){this._onStartFns.push(ue)}onDone(ue){this._onDoneFns.push(ue)}onDestroy(ue){this._onDestroyFns.push(ue)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Te(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ue=>ue()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ue=>ue()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ue){this._position=this.totalTime?ue*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ue){const Ze="start"==ue?this._onStartFns:this._onDoneFns;Ze.forEach(ot=>ot()),Ze.length=0}}class Oe{constructor(ue){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ue;let Ze=0,ot=0,Dt=0;const We=this.players.length;0==We?Te(()=>this._onFinish()):this.players.forEach(dt=>{dt.onDone(()=>{++Ze==We&&this._onFinish()}),dt.onDestroy(()=>{++ot==We&&this._onDestroy()}),dt.onStart(()=>{++Dt==We&&this._onStart()})}),this.totalTime=this.players.reduce((dt,Tt)=>Math.max(dt,Tt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ue=>ue()),this._onDoneFns=[])}init(){this.players.forEach(ue=>ue.init())}onStart(ue){this._onStartFns.push(ue)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ue=>ue()),this._onStartFns=[])}onDone(ue){this._onDoneFns.push(ue)}onDestroy(ue){this._onDestroyFns.push(ue)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ue=>ue.play())}pause(){this.players.forEach(ue=>ue.pause())}restart(){this.players.forEach(ue=>ue.restart())}finish(){this._onFinish(),this.players.forEach(ue=>ue.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ue=>ue.destroy()),this._onDestroyFns.forEach(ue=>ue()),this._onDestroyFns=[])}reset(){this.players.forEach(ue=>ue.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ue){const Ze=ue*this.totalTime;this.players.forEach(ot=>{const Dt=ot.totalTime?Math.min(1,Ze/ot.totalTime):1;ot.setPosition(Dt)})}getPosition(){const ue=this.players.reduce((Ze,ot)=>null===Ze||ot.totalTime>Ze.totalTime?ot:Ze,null);return null!=ue?ue.getPosition():0}beforeDestroy(){this.players.forEach(ue=>{ue.beforeDestroy&&ue.beforeDestroy()})}triggerCallback(ue){const Ze="start"==ue?this._onStartFns:this._onDoneFns;Ze.forEach(ot=>ot()),Ze.length=0}}const we="!"},9808:(ze,de,M)=>{M.d(de,{$G:()=>tr,Do:()=>ie,ED:()=>Mr,EM:()=>Gs,HT:()=>B,JF:()=>Ys,JJ:()=>cs,K0:()=>Y,Mx:()=>Zt,NF:()=>Er,Nd:()=>Ms,O5:()=>_r,OU:()=>mn,Ov:()=>kr,PC:()=>Dr,RF:()=>$t,S$:()=>Te,Ts:()=>js,V_:()=>V,Ye:()=>ue,b0:()=>we,bD:()=>fs,ez:()=>hr,lw:()=>Q,mk:()=>Sr,mr:()=>Oe,n9:()=>Ot,q:()=>Z,sg:()=>Mn,tP:()=>Yr,uU:()=>Ls,w_:()=>U});var g=M(9863);let _=null;function Z(){return _}function B(m){_||(_=m)}class U{}const Y=new g.OlP("DocumentToken");let Q=(()=>{class m{historyGo(v){throw new Error("Not implemented")}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=g.Yz7({token:m,factory:function(){return function $(){return(0,g.LFG)(F)}()},providedIn:"platform"}),m})();const V=new g.OlP("Location Initialized");let F=(()=>{class m extends Q{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(v){const S=Z().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",v,!1),()=>S.removeEventListener("popstate",v)}onHashChange(v){const S=Z().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",v,!1),()=>S.removeEventListener("hashchange",v)}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(v){this.location.pathname=v}pushState(v,S,H){oe()?this._history.pushState(v,S,H):this.location.hash=H}replaceState(v,S,H){oe()?this._history.replaceState(v,S,H):this.location.hash=H}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return m.\u0275fac=function(v){return new(v||m)(g.LFG(Y))},m.\u0275prov=g.Yz7({token:m,factory:function(){return function he(){return new F((0,g.LFG)(Y))}()},providedIn:"platform"}),m})();function oe(){return!!window.history.pushState}function Ee(m,T){if(0==m.length)return T;if(0==T.length)return m;let v=0;return m.endsWith("/")&&v++,T.startsWith("/")&&v++,2==v?m+T.substring(1):1==v?m+T:m+"/"+T}function ee(m){const T=m.match(/#|\?|$/),v=T&&T.index||m.length;return m.slice(0,v-("/"===m[v-1]?1:0))+m.slice(v)}function pe(m){return m&&"?"!==m[0]?"?"+m:m}let Te=(()=>{class m{historyGo(v){throw new Error("Not implemented")}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=g.Yz7({token:m,factory:function(){return function Pe(m){const T=(0,g.LFG)(Y).location;return new we((0,g.LFG)(Q),T&&T.origin||"")}()},providedIn:"root"}),m})();const Oe=new g.OlP("appBaseHref");let we=(()=>{class m extends Te{constructor(v,S){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)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=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return Ee(this._baseHref,v)}path(v=!1){const S=this._platformLocation.pathname+pe(this._platformLocation.search),H=this._platformLocation.hash;return H&&v?`${S}${H}`:S}pushState(v,S,H,fe){const Me=this.prepareExternalUrl(H+pe(fe));this._platformLocation.pushState(v,S,Me)}replaceState(v,S,H,fe){const Me=this.prepareExternalUrl(H+pe(fe));this._platformLocation.replaceState(v,S,Me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,H;null===(H=(S=this._platformLocation).historyGo)||void 0===H||H.call(S,v)}}return m.\u0275fac=function(v){return new(v||m)(g.LFG(Q),g.LFG(Oe,8))},m.\u0275prov=g.Yz7({token:m,factory:m.\u0275fac}),m})(),ie=(()=>{class m extends Te{constructor(v,S){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(v){const S=Ee(this._baseHref,v);return S.length>0?"#"+S:S}pushState(v,S,H,fe){let Me=this.prepareExternalUrl(H+pe(fe));0==Me.length&&(Me=this._platformLocation.pathname),this._platformLocation.pushState(v,S,Me)}replaceState(v,S,H,fe){let Me=this.prepareExternalUrl(H+pe(fe));0==Me.length&&(Me=this._platformLocation.pathname),this._platformLocation.replaceState(v,S,Me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var S,H;null===(H=(S=this._platformLocation).historyGo)||void 0===H||H.call(S,v)}}return m.\u0275fac=function(v){return new(v||m)(g.LFG(Q),g.LFG(Oe,8))},m.\u0275prov=g.Yz7({token:m,factory:m.\u0275fac}),m})(),ue=(()=>{class m{constructor(v,S){this._subject=new g.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const H=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=ee(Dt(H)),this._platformStrategy.onPopState(fe=>{this._subject.emit({url:this.path(!0),pop:!0,state:fe.state,type:fe.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,S=""){return this.path()==this.normalize(v+pe(S))}normalize(v){return m.stripTrailingSlash(function ot(m,T){return m&&T.startsWith(m)?T.substring(m.length):T}(this._baseHref,Dt(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,S="",H=null){this._platformStrategy.pushState(H,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+pe(S)),H)}replaceState(v,S="",H=null){this._platformStrategy.replaceState(H,"",v,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+pe(S)),H)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var S,H;null===(H=(S=this._platformStrategy).historyGo)||void 0===H||H.call(S,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(v="",S){this._urlChangeListeners.forEach(H=>H(v,S))}subscribe(v,S,H){return this._subject.subscribe({next:v,error:S,complete:H})}}return m.normalizeQueryParams=pe,m.joinWithSlash=Ee,m.stripTrailingSlash=ee,m.\u0275fac=function(v){return new(v||m)(g.LFG(Te),g.LFG(Q))},m.\u0275prov=g.Yz7({token:m,factory:function(){return function Ze(){return new ue((0,g.LFG)(Te),(0,g.LFG)(Q))}()},providedIn:"root"}),m})();function Dt(m){return m.replace(/\/index.html$/,"")}var dt=(()=>((dt=dt||{})[dt.Decimal=0]="Decimal",dt[dt.Percent=1]="Percent",dt[dt.Currency=2]="Currency",dt[dt.Scientific=3]="Scientific",dt))(),Tt=(()=>((Tt=Tt||{})[Tt.Zero=0]="Zero",Tt[Tt.One=1]="One",Tt[Tt.Two=2]="Two",Tt[Tt.Few=3]="Few",Tt[Tt.Many=4]="Many",Tt[Tt.Other=5]="Other",Tt))(),St=(()=>((St=St||{})[St.Format=0]="Format",St[St.Standalone=1]="Standalone",St))(),ht=(()=>((ht=ht||{})[ht.Narrow=0]="Narrow",ht[ht.Abbreviated=1]="Abbreviated",ht[ht.Wide=2]="Wide",ht[ht.Short=3]="Short",ht))(),at=(()=>((at=at||{})[at.Short=0]="Short",at[at.Medium=1]="Medium",at[at.Long=2]="Long",at[at.Full=3]="Full",at))(),He=(()=>((He=He||{})[He.Decimal=0]="Decimal",He[He.Group=1]="Group",He[He.List=2]="List",He[He.PercentSign=3]="PercentSign",He[He.PlusSign=4]="PlusSign",He[He.MinusSign=5]="MinusSign",He[He.Exponential=6]="Exponential",He[He.SuperscriptingExponent=7]="SuperscriptingExponent",He[He.PerMille=8]="PerMille",He[He.Infinity=9]="Infinity",He[He.NaN=10]="NaN",He[He.TimeSeparator=11]="TimeSeparator",He[He.CurrencyDecimal=12]="CurrencyDecimal",He[He.CurrencyGroup=13]="CurrencyGroup",He))();function Ce(m,T){return Ht((0,g.cg1)(m)[g.wAp.DateFormat],T)}function J(m,T){return Ht((0,g.cg1)(m)[g.wAp.TimeFormat],T)}function le(m,T){return Ht((0,g.cg1)(m)[g.wAp.DateTimeFormat],T)}function Ne(m,T){const v=(0,g.cg1)(m),S=v[g.wAp.NumberSymbols][T];if(void 0===S){if(T===He.CurrencyDecimal)return v[g.wAp.NumberSymbols][He.Decimal];if(T===He.CurrencyGroup)return v[g.wAp.NumberSymbols][He.Group]}return S}const nn=g.kL8;function Hn(m){if(!m[g.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${m[g.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ht(m,T){for(let v=T;v>-1;v--)if(void 0!==m[v])return m[v];throw new Error("Locale data API: locale data undefined")}function ar(m){const[T,v]=m.split(":");return{hours:+T,minutes:+v}}const W=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,De={},ae=/((?:[^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 Fe=(()=>((Fe=Fe||{})[Fe.Short=0]="Short",Fe[Fe.ShortGMT=1]="ShortGMT",Fe[Fe.Long=2]="Long",Fe[Fe.Extended=3]="Extended",Fe))(),Ie=(()=>((Ie=Ie||{})[Ie.FullYear=0]="FullYear",Ie[Ie.Month=1]="Month",Ie[Ie.Date=2]="Date",Ie[Ie.Hours=3]="Hours",Ie[Ie.Minutes=4]="Minutes",Ie[Ie.Seconds=5]="Seconds",Ie[Ie.FractionalSeconds=6]="FractionalSeconds",Ie[Ie.Day=7]="Day",Ie))(),$e=(()=>(($e=$e||{})[$e.DayPeriods=0]="DayPeriods",$e[$e.Days=1]="Days",$e[$e.Months=2]="Months",$e[$e.Eras=3]="Eras",$e))();function lt(m,T,v,S){let H=function L(m){if(te(m))return m;if("number"==typeof m&&!isNaN(m))return new Date(m);if("string"==typeof m){if(m=m.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(m)){const[H,fe=1,Me=1]=m.split("-").map(Ue=>+Ue);return Ct(H,fe-1,Me)}const v=parseFloat(m);if(!isNaN(m-v))return new Date(v);let S;if(S=m.match(W))return function x(m){const T=new Date(0);let v=0,S=0;const H=m[8]?T.setUTCFullYear:T.setFullYear,fe=m[8]?T.setUTCHours:T.setHours;m[9]&&(v=Number(m[9]+m[10]),S=Number(m[9]+m[11])),H.call(T,Number(m[1]),Number(m[2])-1,Number(m[3]));const Me=Number(m[4]||0)-v,Ue=Number(m[5]||0)-S,Bt=Number(m[6]||0),kt=Math.floor(1e3*parseFloat("0."+(m[7]||0)));return fe.call(T,Me,Ue,Bt,kt),T}(S)}const T=new Date(m);if(!te(T))throw new Error(`Unable to convert "${m}" into a date`);return T}(m);T=Qt(v,T)||T;let Ue,Me=[];for(;T;){if(Ue=ae.exec(T),!Ue){Me.push(T);break}{Me=Me.concat(Ue.slice(1));const xt=Me.pop();if(!xt)break;T=xt}}let Bt=H.getTimezoneOffset();S&&(Bt=yr(S,Bt),H=function re(m,T,v){const S=v?-1:1,H=m.getTimezoneOffset();return function ur(m,T){return(m=new Date(m.getTime())).setMinutes(m.getMinutes()+T),m}(m,S*(yr(T,H)-H))}(H,S,!0));let kt="";return Me.forEach(xt=>{const ut=function zn(m){if($n[m])return $n[m];let T;switch(m){case"G":case"GG":case"GGG":T=Pt($e.Eras,ht.Abbreviated);break;case"GGGG":T=Pt($e.Eras,ht.Wide);break;case"GGGGG":T=Pt($e.Eras,ht.Narrow);break;case"y":T=je(Ie.FullYear,1,0,!1,!0);break;case"yy":T=je(Ie.FullYear,2,0,!0,!0);break;case"yyy":T=je(Ie.FullYear,3,0,!1,!0);break;case"yyyy":T=je(Ie.FullYear,4,0,!1,!0);break;case"Y":T=Tn(1);break;case"YY":T=Tn(2,!0);break;case"YYY":T=Tn(3);break;case"YYYY":T=Tn(4);break;case"M":case"L":T=je(Ie.Month,1,1);break;case"MM":case"LL":T=je(Ie.Month,2,1);break;case"MMM":T=Pt($e.Months,ht.Abbreviated);break;case"MMMM":T=Pt($e.Months,ht.Wide);break;case"MMMMM":T=Pt($e.Months,ht.Narrow);break;case"LLL":T=Pt($e.Months,ht.Abbreviated,St.Standalone);break;case"LLLL":T=Pt($e.Months,ht.Wide,St.Standalone);break;case"LLLLL":T=Pt($e.Months,ht.Narrow,St.Standalone);break;case"w":T=Xt(1);break;case"ww":T=Xt(2);break;case"W":T=Xt(1,!0);break;case"d":T=je(Ie.Date,1);break;case"dd":T=je(Ie.Date,2);break;case"c":case"cc":T=je(Ie.Day,1);break;case"ccc":T=Pt($e.Days,ht.Abbreviated,St.Standalone);break;case"cccc":T=Pt($e.Days,ht.Wide,St.Standalone);break;case"ccccc":T=Pt($e.Days,ht.Narrow,St.Standalone);break;case"cccccc":T=Pt($e.Days,ht.Short,St.Standalone);break;case"E":case"EE":case"EEE":T=Pt($e.Days,ht.Abbreviated);break;case"EEEE":T=Pt($e.Days,ht.Wide);break;case"EEEEE":T=Pt($e.Days,ht.Narrow);break;case"EEEEEE":T=Pt($e.Days,ht.Short);break;case"a":case"aa":case"aaa":T=Pt($e.DayPeriods,ht.Abbreviated);break;case"aaaa":T=Pt($e.DayPeriods,ht.Wide);break;case"aaaaa":T=Pt($e.DayPeriods,ht.Narrow);break;case"b":case"bb":case"bbb":T=Pt($e.DayPeriods,ht.Abbreviated,St.Standalone,!0);break;case"bbbb":T=Pt($e.DayPeriods,ht.Wide,St.Standalone,!0);break;case"bbbbb":T=Pt($e.DayPeriods,ht.Narrow,St.Standalone,!0);break;case"B":case"BB":case"BBB":T=Pt($e.DayPeriods,ht.Abbreviated,St.Format,!0);break;case"BBBB":T=Pt($e.DayPeriods,ht.Wide,St.Format,!0);break;case"BBBBB":T=Pt($e.DayPeriods,ht.Narrow,St.Format,!0);break;case"h":T=je(Ie.Hours,1,-12);break;case"hh":T=je(Ie.Hours,2,-12);break;case"H":T=je(Ie.Hours,1);break;case"HH":T=je(Ie.Hours,2);break;case"m":T=je(Ie.Minutes,1);break;case"mm":T=je(Ie.Minutes,2);break;case"s":T=je(Ie.Seconds,1);break;case"ss":T=je(Ie.Seconds,2);break;case"S":T=je(Ie.FractionalSeconds,1);break;case"SS":T=je(Ie.FractionalSeconds,2);break;case"SSS":T=je(Ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":T=rt(Fe.Short);break;case"ZZZZZ":T=rt(Fe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":T=rt(Fe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":T=rt(Fe.Long);break;default:return null}return $n[m]=T,T}(xt);kt+=ut?ut(H,v,Bt):"''"===xt?"'":xt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),kt}function Ct(m,T,v){const S=new Date(0);return S.setFullYear(m,T,v),S.setHours(0,0,0),S}function Qt(m,T){const v=function It(m){return(0,g.cg1)(m)[g.wAp.LocaleId]}(m);if(De[v]=De[v]||{},De[v][T])return De[v][T];let S="";switch(T){case"shortDate":S=Ce(m,at.Short);break;case"mediumDate":S=Ce(m,at.Medium);break;case"longDate":S=Ce(m,at.Long);break;case"fullDate":S=Ce(m,at.Full);break;case"shortTime":S=J(m,at.Short);break;case"mediumTime":S=J(m,at.Medium);break;case"longTime":S=J(m,at.Long);break;case"fullTime":S=J(m,at.Full);break;case"short":const H=Qt(m,"shortTime"),fe=Qt(m,"shortDate");S=rn(le(m,at.Short),[H,fe]);break;case"medium":const Me=Qt(m,"mediumTime"),Ue=Qt(m,"mediumDate");S=rn(le(m,at.Medium),[Me,Ue]);break;case"long":const Bt=Qt(m,"longTime"),kt=Qt(m,"longDate");S=rn(le(m,at.Long),[Bt,kt]);break;case"full":const xt=Qt(m,"fullTime"),ut=Qt(m,"fullDate");S=rn(le(m,at.Full),[xt,ut])}return S&&(De[v][T]=S),S}function rn(m,T){return T&&(m=m.replace(/\{([^}]+)}/g,function(v,S){return null!=T&&S in T?T[S]:v})),m}function At(m,T,v="-",S,H){let fe="";(m<0||H&&m<=0)&&(H?m=1-m:(m=-m,fe=v));let Me=String(m);for(;Me.length<T;)Me="0"+Me;return S&&(Me=Me.substr(Me.length-T)),fe+Me}function je(m,T,v=0,S=!1,H=!1){return function(fe,Me){let Ue=function xn(m,T){switch(m){case Ie.FullYear:return T.getFullYear();case Ie.Month:return T.getMonth();case Ie.Date:return T.getDate();case Ie.Hours:return T.getHours();case Ie.Minutes:return T.getMinutes();case Ie.Seconds:return T.getSeconds();case Ie.FractionalSeconds:return T.getMilliseconds();case Ie.Day:return T.getDay();default:throw new Error(`Unknown DateType value "${m}".`)}}(m,fe);if((v>0||Ue>-v)&&(Ue+=v),m===Ie.Hours)0===Ue&&-12===v&&(Ue=12);else if(m===Ie.FractionalSeconds)return function Et(m,T){return At(m,3).substr(0,T)}(Ue,T);const Bt=Ne(Me,He.MinusSign);return At(Ue,T,Bt,S,H)}}function Pt(m,T,v=St.Format,S=!1){return function(H,fe){return function mt(m,T,v,S,H,fe){switch(v){case $e.Months:return function En(m,T,v){const S=(0,g.cg1)(m),fe=Ht([S[g.wAp.MonthsFormat],S[g.wAp.MonthsStandalone]],T);return Ht(fe,v)}(T,H,S)[m.getMonth()];case $e.Days:return function cn(m,T,v){const S=(0,g.cg1)(m),fe=Ht([S[g.wAp.DaysFormat],S[g.wAp.DaysStandalone]],T);return Ht(fe,v)}(T,H,S)[m.getDay()];case $e.DayPeriods:const Me=m.getHours(),Ue=m.getMinutes();if(fe){const kt=function Jn(m){const T=(0,g.cg1)(m);return Hn(T),(T[g.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?ar(S):[ar(S[0]),ar(S[1])])}(T),xt=function Vn(m,T,v){const S=(0,g.cg1)(m);Hn(S);const fe=Ht([S[g.wAp.ExtraData][0],S[g.wAp.ExtraData][1]],T)||[];return Ht(fe,v)||[]}(T,H,S),ut=kt.findIndex(Wt=>{if(Array.isArray(Wt)){const[Ut,ln]=Wt,Pn=Me>=Ut.hours&&Ue>=Ut.minutes,Cr=Me<ln.hours||Me===ln.hours&&Ue<ln.minutes;if(Ut.hours<ln.hours){if(Pn&&Cr)return!0}else if(Pn||Cr)return!0}else if(Wt.hours===Me&&Wt.minutes===Ue)return!0;return!1});if(-1!==ut)return xt[ut]}return function un(m,T,v){const S=(0,g.cg1)(m),fe=Ht([S[g.wAp.DayPeriodsFormat],S[g.wAp.DayPeriodsStandalone]],T);return Ht(fe,v)}(T,H,S)[Me<12?0:1];case $e.Eras:return function Cn(m,T){return Ht((0,g.cg1)(m)[g.wAp.Eras],T)}(T,S)[m.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${v}`)}}(H,fe,m,T,v,S)}}function rt(m){return function(T,v,S){const H=-1*S,fe=Ne(v,He.MinusSign),Me=H>0?Math.floor(H/60):Math.ceil(H/60);switch(m){case Fe.Short:return(H>=0?"+":"")+At(Me,2,fe)+At(Math.abs(H%60),2,fe);case Fe.ShortGMT:return"GMT"+(H>=0?"+":"")+At(Me,1,fe);case Fe.Long:return"GMT"+(H>=0?"+":"")+At(Me,2,fe)+":"+At(Math.abs(H%60),2,fe);case Fe.Extended:return 0===S?"Z":(H>=0?"+":"")+At(Me,2,fe)+":"+At(Math.abs(H%60),2,fe);default:throw new Error(`Unknown zone width "${m}"`)}}}function er(m){return Ct(m.getFullYear(),m.getMonth(),m.getDate()+(4-m.getDay()))}function Xt(m,T=!1){return function(v,S){let H;if(T){const fe=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,Me=v.getDate();H=1+Math.floor((Me+fe)/7)}else{const fe=er(v),Me=function Xn(m){const T=Ct(m,0,1).getDay();return Ct(m,0,1+(T<=4?4:11)-T)}(fe.getFullYear()),Ue=fe.getTime()-Me.getTime();H=1+Math.round(Ue/6048e5)}return At(H,m,Ne(S,He.MinusSign))}}function Tn(m,T=!1){return function(v,S){return At(er(v).getFullYear(),m,Ne(S,He.MinusSign),T)}}const $n={};function yr(m,T){m=m.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+m)/6e4;return isNaN(v)?T:v}function te(m){return m instanceof Date&&!isNaN(m.valueOf())}const be=/^(\d+)?\.((\d+)(-(\d+))?)?$/,q=".",R="0";function Ft(m){const T=parseInt(m);if(isNaN(T))throw new Error("Invalid integer literal when parsing "+m);return T}class gn{}let an=(()=>{class m extends gn{constructor(v){super(),this.locale=v}getPluralCategory(v,S){switch(nn(S||this.locale)(v)){case Tt.Zero:return"zero";case Tt.One:return"one";case Tt.Two:return"two";case Tt.Few:return"few";case Tt.Many:return"many";default:return"other"}}}return m.\u0275fac=function(v){return new(v||m)(g.LFG(g.soG))},m.\u0275prov=g.Yz7({token:m,factory:m.\u0275fac}),m})();function Zt(m,T){T=encodeURIComponent(T);for(const v of m.split(";")){const S=v.indexOf("="),[H,fe]=-1==S?[v,""]:[v.slice(0,S),v.slice(S+1)];if(H.trim()===T)return decodeURIComponent(fe)}return null}let Sr=(()=>{class m{constructor(v,S,H,fe){this._iterableDiffers=v,this._keyValueDiffers=S,this._ngEl=H,this._renderer=fe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(v){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof v?v.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(v){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof v?v.split(/\s+/):v,this._rawClass&&((0,g.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const v=this._iterableDiffer.diff(this._rawClass);v&&this._applyIterableChanges(v)}else if(this._keyValueDiffer){const v=this._keyValueDiffer.diff(this._rawClass);v&&this._applyKeyValueChanges(v)}}_applyKeyValueChanges(v){v.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),v.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,g.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),v.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!0)):Object.keys(v).forEach(S=>this._toggleClass(S,!!v[S])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(S=>this._toggleClass(S,!1)):Object.keys(v).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(v,S){(v=v.trim())&&v.split(/\s+/g).forEach(H=>{S?this._renderer.addClass(this._ngEl.nativeElement,H):this._renderer.removeClass(this._ngEl.nativeElement,H)})}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.ZZ4),g.Y36(g.aQg),g.Y36(g.SBq),g.Y36(g.Qsj))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),m})(),tr=(()=>{class m{constructor(v){this._viewContainerRef=v,this._componentRef=null,this._moduleRef=null}ngOnChanges(v){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const S=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(v.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Me=S.get(g.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Me.injector)}else this._moduleRef=null;const fe=(this._moduleRef?this._moduleRef.componentFactoryResolver:S.get(g._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(fe,this._viewContainerRef.length,S,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.s_b))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[g.TTD]}),m})();class ft{constructor(T,v,S,H){this.$implicit=T,this.ngForOf=v,this.index=S,this.count=H}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 Mn=(()=>{class m{constructor(v,S,H){this._viewContainer=v,this._template=S,this._differs=H,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;if(!this._differ&&v)try{this._differ=this._differs.find(v).create(this.ngForTrackBy)}catch(S){throw new Error(`Cannot find a differ supporting object '${v}' of type '${function ls(m){return m.name||typeof m}(v)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const S=[];v.forEachOperation((H,fe,Me)=>{if(null==H.previousIndex){const Ue=this._viewContainer.createEmbeddedView(this._template,new ft(null,this._ngForOf,-1,-1),null===Me?void 0:Me),Bt=new Fn(H,Ue);S.push(Bt)}else if(null==Me)this._viewContainer.remove(null===fe?void 0:fe);else if(null!==fe){const Ue=this._viewContainer.get(fe);this._viewContainer.move(Ue,Me);const Bt=new Fn(H,Ue);S.push(Bt)}});for(let H=0;H<S.length;H++)this._perViewChange(S[H].view,S[H].record);for(let H=0,fe=this._viewContainer.length;H<fe;H++){const Me=this._viewContainer.get(H);Me.context.index=H,Me.context.count=fe,Me.context.ngForOf=this._ngForOf}v.forEachIdentityChange(H=>{this._viewContainer.get(H.currentIndex).context.$implicit=H.item})}_perViewChange(v,S){v.context.$implicit=S.item}static ngTemplateContextGuard(v,S){return!0}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(g.ZZ4))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),m})();class Fn{constructor(T,v){this.record=T,this.view=v}}let _r=(()=>{class m{constructor(v,S){this._viewContainer=v,this._context=new An,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){kn("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){kn("ngIfElse",v),this._elseTemplateRef=v,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(v,S){return!0}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.s_b),g.Y36(g.Rgc))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),m})();class An{constructor(){this.$implicit=null,this.ngIf=null}}function kn(m,T){if(T&&!T.createEmbeddedView)throw new Error(`${m} must be a TemplateRef, but received '${(0,g.AaK)(T)}'.`)}class dr{constructor(T,v){this._viewContainerRef=T,this._templateRef=v,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 $t=(()=>{class m{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const S=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||S,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),S}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let S=0;S<this._defaultViews.length;S++)this._defaultViews[S].enforceState(v)}}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275dir=g.lG2({type:m,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),m})(),Ot=(()=>{class m{constructor(v,S,H){this.ngSwitch=H,H._addCase(),this._view=new dr(v,S)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36($t,9))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),m})(),Mr=(()=>{class m{constructor(v,S,H){H._addDefault(new dr(v,S))}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36($t,9))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngSwitchDefault",""]]}),m})(),Dr=(()=>{class m{constructor(v,S,H){this._ngEl=v,this._differs=S,this._renderer=H,this._ngStyle=null,this._differ=null}set ngStyle(v){this._ngStyle=v,!this._differ&&v&&(this._differ=this._differs.find(v).create())}ngDoCheck(){if(this._differ){const v=this._differ.diff(this._ngStyle);v&&this._applyChanges(v)}}_setStyle(v,S){const[H,fe]=v.split(".");null!=(S=null!=S&&fe?`${S}${fe}`:S)?this._renderer.setStyle(this._ngEl.nativeElement,H,S):this._renderer.removeStyle(this._ngEl.nativeElement,H)}_applyChanges(v){v.forEachRemovedItem(S=>this._setStyle(S.key,null)),v.forEachAddedItem(S=>this._setStyle(S.key,S.currentValue)),v.forEachChangedItem(S=>this._setStyle(S.key,S.currentValue))}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.SBq),g.Y36(g.aQg),g.Y36(g.Qsj))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),m})(),Yr=(()=>{class m{constructor(v){this._viewContainerRef=v,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(v){if(v.ngTemplateOutlet){const S=this._viewContainerRef;this._viewRef&&S.remove(S.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?S.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&v.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.s_b))},m.\u0275dir=g.lG2({type:m,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[g.TTD]}),m})();function Gt(m,T){return Error(`InvalidPipeArgument: '${T}' for pipe '${(0,g.AaK)(m)}'`)}class si{createSubscription(T,v){return T.subscribe({next:v,error:S=>{throw S}})}dispose(T){T.unsubscribe()}onDestroy(T){T.unsubscribe()}}class ii{createSubscription(T,v){return T.then(v,S=>{throw S})}dispose(T){}onDestroy(T){}}const Qr=new ii,Fr=new si;let kr=(()=>{class m{constructor(v){this._ref=v,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(v){return this._obj?v!==this._obj?(this._dispose(),this.transform(v)):this._latestValue:(v&&this._subscribe(v),this._latestValue)}_subscribe(v){this._obj=v,this._strategy=this._selectStrategy(v),this._subscription=this._strategy.createSubscription(v,S=>this._updateLatestValue(v,S))}_selectStrategy(v){if((0,g.QGY)(v))return Qr;if((0,g.F4k)(v))return Fr;throw Gt(m,v)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(v,S){v===this._obj&&(this._latestValue=S,this._ref.markForCheck())}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.sBO,16))},m.\u0275pipe=g.Yjl({name:"async",type:m,pure:!1}),m})();const _i=new g.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ls=(()=>{class m{constructor(v,S){this.locale=v,this.defaultTimezone=S}transform(v,S="mediumDate",H,fe){var Me;if(null==v||""===v||v!=v)return null;try{return lt(v,S,fe||this.locale,null!==(Me=null!=H?H:this.defaultTimezone)&&void 0!==Me?Me:void 0)}catch(Ue){throw Gt(m,Ue.message)}}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.soG,16),g.Y36(_i,24))},m.\u0275pipe=g.Yjl({name:"date",type:m,pure:!0}),m})(),js=(()=>{class m{transform(v){return JSON.stringify(v,null,2)}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275pipe=g.Yjl({name:"json",type:m,pure:!1}),m})(),Ms=(()=>{class m{constructor(v){this.differs=v,this.keyValues=[],this.compareFn=Hs}transform(v,S=Hs){if(!v||!(v instanceof Map)&&"object"!=typeof v)return null;this.differ||(this.differ=this.differs.find(v).create());const H=this.differ.diff(v),fe=S!==this.compareFn;return H&&(this.keyValues=[],H.forEachItem(Me=>{this.keyValues.push(function Us(m,T){return{key:m,value:T}}(Me.key,Me.currentValue))})),(H||fe)&&(this.keyValues.sort(S),this.compareFn=S),this.keyValues}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.aQg,16))},m.\u0275pipe=g.Yjl({name:"keyvalue",type:m,pure:!1}),m})();function Hs(m,T){const v=m.key,S=T.key;if(v===S)return 0;if(void 0===v)return 1;if(void 0===S)return-1;if(null===v)return 1;if(null===S)return-1;if("string"==typeof v&&"string"==typeof S)return v<S?-1:1;if("number"==typeof v&&"number"==typeof S)return v-S;if("boolean"==typeof v&&"boolean"==typeof S)return v<S?-1:1;const H=String(v),fe=String(S);return H==fe?0:H<fe?-1:1}let cs=(()=>{class m{constructor(v){this._locale=v}transform(v,S,H){if(!function Vs(m){return!(null==m||""===m||m!=m)}(v))return null;H=H||this._locale;try{return function fn(m,T,v){return function Qn(m,T,v,S,H,fe,Me=!1){let Ue="",Bt=!1;if(isFinite(m)){let kt=function ke(m){let S,H,fe,Me,Ue,T=Math.abs(m)+"",v=0;for((H=T.indexOf(q))>-1&&(T=T.replace(q,"")),(fe=T.search(/e/i))>0?(H<0&&(H=fe),H+=+T.slice(fe+1),T=T.substring(0,fe)):H<0&&(H=T.length),fe=0;T.charAt(fe)===R;fe++);if(fe===(Ue=T.length))S=[0],H=1;else{for(Ue--;T.charAt(Ue)===R;)Ue--;for(H-=fe,S=[],Me=0;fe<=Ue;fe++,Me++)S[Me]=Number(T.charAt(fe))}return H>22&&(S=S.splice(0,21),v=H-1,H=1),{digits:S,exponent:v,integerLen:H}}(m);Me&&(kt=function Sn(m){if(0===m.digits[0])return m;const T=m.digits.length-m.integerLen;return m.exponent?m.exponent+=2:(0===T?m.digits.push(0,0):1===T&&m.digits.push(0),m.integerLen+=2),m}(kt));let xt=T.minInt,ut=T.minFrac,Wt=T.maxFrac;if(fe){const tt=fe.match(be);if(null===tt)throw new Error(`${fe} is not a valid digit info`);const ai=tt[1],Ps=tt[3],ms=tt[5];null!=ai&&(xt=Ft(ai)),null!=Ps&&(ut=Ft(Ps)),null!=ms?Wt=Ft(ms):null!=Ps&&ut>Wt&&(Wt=ut)}!function vt(m,T,v){if(T>v)throw new Error(`The minimum number of digits after fraction (${T}) is higher than the maximum (${v}).`);let S=m.digits,H=S.length-m.integerLen;const fe=Math.min(Math.max(T,H),v);let Me=fe+m.integerLen,Ue=S[Me];if(Me>0){S.splice(Math.max(m.integerLen,Me));for(let ut=Me;ut<S.length;ut++)S[ut]=0}else{H=Math.max(0,H),m.integerLen=1,S.length=Math.max(1,Me=fe+1),S[0]=0;for(let ut=1;ut<Me;ut++)S[ut]=0}if(Ue>=5)if(Me-1<0){for(let ut=0;ut>Me;ut--)S.unshift(0),m.integerLen++;S.unshift(1),m.integerLen++}else S[Me-1]++;for(;H<Math.max(0,fe);H++)S.push(0);let Bt=0!==fe;const kt=T+m.integerLen,xt=S.reduceRight(function(ut,Wt,Ut,ln){return ln[Ut]=(Wt+=ut)<10?Wt:Wt-10,Bt&&(0===ln[Ut]&&Ut>=kt?ln.pop():Bt=!1),Wt>=10?1:0},0);xt&&(S.unshift(xt),m.integerLen++)}(kt,ut,Wt);let Ut=kt.digits,ln=kt.integerLen;const Pn=kt.exponent;let Cr=[];for(Bt=Ut.every(tt=>!tt);ln<xt;ln++)Ut.unshift(0);for(;ln<0;ln++)Ut.unshift(0);ln>0?Cr=Ut.splice(ln,Ut.length):(Cr=Ut,Ut=[0]);const jr=[];for(Ut.length>=T.lgSize&&jr.unshift(Ut.splice(-T.lgSize,Ut.length).join(""));Ut.length>T.gSize;)jr.unshift(Ut.splice(-T.gSize,Ut.length).join(""));Ut.length&&jr.unshift(Ut.join("")),Ue=jr.join(Ne(v,S)),Cr.length&&(Ue+=Ne(v,H)+Cr.join("")),Pn&&(Ue+=Ne(v,He.Exponential)+"+"+Pn)}else Ue=Ne(v,He.Infinity);return Ue=m<0&&!Bt?T.negPre+Ue+T.negSuf:T.posPre+Ue+T.posSuf,Ue}(m,function Kr(m,T="-"){const v={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},S=m.split(";"),H=S[0],fe=S[1],Me=-1!==H.indexOf(q)?H.split(q):[H.substring(0,H.lastIndexOf(R)+1),H.substring(H.lastIndexOf(R)+1)],Ue=Me[0],Bt=Me[1]||"";v.posPre=Ue.substr(0,Ue.indexOf("#"));for(let xt=0;xt<Bt.length;xt++){const ut=Bt.charAt(xt);ut===R?v.minFrac=v.maxFrac=xt+1:"#"===ut?v.maxFrac=xt+1:v.posSuf+=ut}const kt=Ue.split(",");if(v.gSize=kt[1]?kt[1].length:0,v.lgSize=kt[2]||kt[1]?(kt[2]||kt[1]).length:0,fe){const xt=H.length-v.posPre.length-v.posSuf.length,ut=fe.indexOf("#");v.negPre=fe.substr(0,ut).replace(/'/g,""),v.negSuf=fe.substr(ut+xt).replace(/'/g,"")}else v.negPre=T+v.posPre,v.negSuf=v.posSuf;return v}(function Be(m,T){return(0,g.cg1)(m)[g.wAp.NumberFormats][T]}(T,dt.Decimal),Ne(T,He.MinusSign)),T,He.Group,He.Decimal,v)}(function hs(m){if("string"==typeof m&&!isNaN(Number(m)-parseFloat(m)))return Number(m);if("number"!=typeof m)throw new Error(`${m} is not a number`);return m}(v),H,S)}catch(fe){throw Gt(m,fe.message)}}}return m.\u0275fac=function(v){return new(v||m)(g.Y36(g.soG,16))},m.\u0275pipe=g.Yjl({name:"number",type:m,pure:!0}),m})();let mn=(()=>{class m{transform(v,S,H){if(null==v)return null;if(!this.supports(v))throw Gt(m,v);return v.slice(S,H)}supports(v){return"string"==typeof v||Array.isArray(v)}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275pipe=g.Yjl({name:"slice",type:m,pure:!1}),m})(),hr=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({providers:[{provide:gn,useClass:an}]}),m})();const fs="browser";function Er(m){return m===fs}let Gs=(()=>{class m{}return m.\u0275prov=(0,g.Yz7)({token:m,providedIn:"root",factory:()=>new Is((0,g.LFG)(Y),window)}),m})();class Is{constructor(T,v){this.document=T,this.window=v,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 v=function Ws(m,T){const v=m.getElementById(T)||m.getElementsByName(T)[0];if(v)return v;if("function"==typeof m.createTreeWalker&&m.body&&(m.body.createShadowRoot||m.body.attachShadow)){const S=m.createTreeWalker(m.body,NodeFilter.SHOW_ELEMENT);let H=S.currentNode;for(;H;){const fe=H.shadowRoot;if(fe){const Me=fe.getElementById(T)||fe.querySelector(`[name="${T}"]`);if(Me)return Me}H=S.nextNode()}}return null}(this.document,T);v&&(this.scrollToElement(v),this.attemptFocus(v))}setHistoryScrollRestoration(T){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=T)}}scrollToElement(T){const v=T.getBoundingClientRect(),S=v.left+this.window.pageXOffset,H=v.top+this.window.pageYOffset,fe=this.offset();this.window.scrollTo(S-fe[0],H-fe[1])}attemptFocus(T){return T.focus(),this.document.activeElement===T}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const T=Br(this.window.history)||Br(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 Br(m){return Object.getOwnPropertyDescriptor(m,"scrollRestoration")}class Ys{}},520:(ze,de,M)=>{M.d(de,{JF:()=>Ht,TP:()=>It,WM:()=>V,eN:()=>He});var g=M(9808),_=M(9863),Z=M(1086),se=M(2916),B=M(1406),U=M(2198),Y=M(4850);class Q{}class ${}class V{constructor(K){this.normalizedNames=new Map,this.lazyUpdate=null,K?this.lazyInit="string"==typeof K?()=>{this.headers=new Map,K.split("\n").forEach(W=>{const De=W.indexOf(":");if(De>0){const ae=W.slice(0,De),Fe=ae.toLowerCase(),Ie=W.slice(De+1).trim();this.maybeSetNormalizedName(ae,Fe),this.headers.has(Fe)?this.headers.get(Fe).push(Ie):this.headers.set(Fe,[Ie])}})}:()=>{this.headers=new Map,Object.keys(K).forEach(W=>{let De=K[W];const ae=W.toLowerCase();"string"==typeof De&&(De=[De]),De.length>0&&(this.headers.set(ae,De),this.maybeSetNormalizedName(W,ae))})}:this.headers=new Map}has(K){return this.init(),this.headers.has(K.toLowerCase())}get(K){this.init();const W=this.headers.get(K.toLowerCase());return W&&W.length>0?W[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(K){return this.init(),this.headers.get(K.toLowerCase())||null}append(K,W){return this.clone({name:K,value:W,op:"a"})}set(K,W){return this.clone({name:K,value:W,op:"s"})}delete(K,W){return this.clone({name:K,value:W,op:"d"})}maybeSetNormalizedName(K,W){this.normalizedNames.has(W)||this.normalizedNames.set(W,K)}init(){this.lazyInit&&(this.lazyInit instanceof V?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(K=>this.applyUpdate(K)),this.lazyUpdate=null))}copyFrom(K){K.init(),Array.from(K.headers.keys()).forEach(W=>{this.headers.set(W,K.headers.get(W)),this.normalizedNames.set(W,K.normalizedNames.get(W))})}clone(K){const W=new V;return W.lazyInit=this.lazyInit&&this.lazyInit instanceof V?this.lazyInit:this,W.lazyUpdate=(this.lazyUpdate||[]).concat([K]),W}applyUpdate(K){const W=K.name.toLowerCase();switch(K.op){case"a":case"s":let De=K.value;if("string"==typeof De&&(De=[De]),0===De.length)return;this.maybeSetNormalizedName(K.name,W);const ae=("a"===K.op?this.headers.get(W):void 0)||[];ae.push(...De),this.headers.set(W,ae);break;case"d":const Fe=K.value;if(Fe){let Ie=this.headers.get(W);if(!Ie)return;Ie=Ie.filter($e=>-1===Fe.indexOf($e)),0===Ie.length?(this.headers.delete(W),this.normalizedNames.delete(W)):this.headers.set(W,Ie)}else this.headers.delete(W),this.normalizedNames.delete(W)}}forEach(K){this.init(),Array.from(this.normalizedNames.keys()).forEach(W=>K(this.normalizedNames.get(W),this.headers.get(W)))}}class F{encodeKey(K){return ee(K)}encodeValue(K){return ee(K)}decodeKey(K){return decodeURIComponent(K)}decodeValue(K){return decodeURIComponent(K)}}const he=/%(\d[a-f0-9])/gi,Ee={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ee(_e){return encodeURIComponent(_e).replace(he,(K,W)=>{var De;return null!==(De=Ee[W])&&void 0!==De?De:K})}function pe(_e){return`${_e}`}class Te{constructor(K={}){if(this.updates=null,this.cloneFrom=null,this.encoder=K.encoder||new F,K.fromString){if(K.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(_e,K){const W=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(ae=>{const Fe=ae.indexOf("="),[Ie,$e]=-1==Fe?[K.decodeKey(ae),""]:[K.decodeKey(ae.slice(0,Fe)),K.decodeValue(ae.slice(Fe+1))],lt=W.get(Ie)||[];lt.push($e),W.set(Ie,lt)}),W}(K.fromString,this.encoder)}else K.fromObject?(this.map=new Map,Object.keys(K.fromObject).forEach(W=>{const De=K.fromObject[W];this.map.set(W,Array.isArray(De)?De:[De])})):this.map=null}has(K){return this.init(),this.map.has(K)}get(K){this.init();const W=this.map.get(K);return W?W[0]:null}getAll(K){return this.init(),this.map.get(K)||null}keys(){return this.init(),Array.from(this.map.keys())}append(K,W){return this.clone({param:K,value:W,op:"a"})}appendAll(K){const W=[];return Object.keys(K).forEach(De=>{const ae=K[De];Array.isArray(ae)?ae.forEach(Fe=>{W.push({param:De,value:Fe,op:"a"})}):W.push({param:De,value:ae,op:"a"})}),this.clone(W)}set(K,W){return this.clone({param:K,value:W,op:"s"})}delete(K,W){return this.clone({param:K,value:W,op:"d"})}toString(){return this.init(),this.keys().map(K=>{const W=this.encoder.encodeKey(K);return this.map.get(K).map(De=>W+"="+this.encoder.encodeValue(De)).join("&")}).filter(K=>""!==K).join("&")}clone(K){const W=new Te({encoder:this.encoder});return W.cloneFrom=this.cloneFrom||this,W.updates=(this.updates||[]).concat(K),W}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(K=>this.map.set(K,this.cloneFrom.map.get(K))),this.updates.forEach(K=>{switch(K.op){case"a":case"s":const W=("a"===K.op?this.map.get(K.param):void 0)||[];W.push(pe(K.value)),this.map.set(K.param,W);break;case"d":if(void 0===K.value){this.map.delete(K.param);break}{let De=this.map.get(K.param)||[];const ae=De.indexOf(pe(K.value));-1!==ae&&De.splice(ae,1),De.length>0?this.map.set(K.param,De):this.map.delete(K.param)}}}),this.cloneFrom=this.updates=null)}}class Oe{constructor(){this.map=new Map}set(K,W){return this.map.set(K,W),this}get(K){return this.map.has(K)||this.map.set(K,K.defaultValue()),this.map.get(K)}delete(K){return this.map.delete(K),this}keys(){return this.map.keys()}}function ie(_e){return"undefined"!=typeof ArrayBuffer&&_e instanceof ArrayBuffer}function ue(_e){return"undefined"!=typeof Blob&&_e instanceof Blob}function Ze(_e){return"undefined"!=typeof FormData&&_e instanceof FormData}class Dt{constructor(K,W,De,ae){let Fe;if(this.url=W,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=K.toUpperCase(),function we(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ae?(this.body=void 0!==De?De:null,Fe=ae):Fe=De,Fe&&(this.reportProgress=!!Fe.reportProgress,this.withCredentials=!!Fe.withCredentials,Fe.responseType&&(this.responseType=Fe.responseType),Fe.headers&&(this.headers=Fe.headers),Fe.context&&(this.context=Fe.context),Fe.params&&(this.params=Fe.params)),this.headers||(this.headers=new V),this.context||(this.context=new Oe),this.params){const Ie=this.params.toString();if(0===Ie.length)this.urlWithParams=W;else{const $e=W.indexOf("?");this.urlWithParams=W+(-1===$e?"?":$e<W.length-1?"&":"")+Ie}}else this.params=new Te,this.urlWithParams=W}serializeBody(){return null===this.body?null:ie(this.body)||ue(this.body)||Ze(this.body)||function ot(_e){return"undefined"!=typeof URLSearchParams&&_e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Te?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||Ze(this.body)?null:ue(this.body)?this.body.type||null:ie(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Te?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(K={}){var W;const De=K.method||this.method,ae=K.url||this.url,Fe=K.responseType||this.responseType,Ie=void 0!==K.body?K.body:this.body,$e=void 0!==K.withCredentials?K.withCredentials:this.withCredentials,lt=void 0!==K.reportProgress?K.reportProgress:this.reportProgress;let Ct=K.headers||this.headers,Qt=K.params||this.params;const rn=null!==(W=K.context)&&void 0!==W?W:this.context;return void 0!==K.setHeaders&&(Ct=Object.keys(K.setHeaders).reduce((At,Et)=>At.set(Et,K.setHeaders[Et]),Ct)),K.setParams&&(Qt=Object.keys(K.setParams).reduce((At,Et)=>At.set(Et,K.setParams[Et]),Qt)),new Dt(De,ae,Ie,{params:Qt,headers:Ct,context:rn,reportProgress:lt,responseType:Fe,withCredentials:$e})}}var We=(()=>((We=We||{})[We.Sent=0]="Sent",We[We.UploadProgress=1]="UploadProgress",We[We.ResponseHeader=2]="ResponseHeader",We[We.DownloadProgress=3]="DownloadProgress",We[We.Response=4]="Response",We[We.User=5]="User",We))();class dt{constructor(K,W=200,De="OK"){this.headers=K.headers||new V,this.status=void 0!==K.status?K.status:W,this.statusText=K.statusText||De,this.url=K.url||null,this.ok=this.status>=200&&this.status<300}}class Tt extends dt{constructor(K={}){super(K),this.type=We.ResponseHeader}clone(K={}){return new Tt({headers:K.headers||this.headers,status:void 0!==K.status?K.status:this.status,statusText:K.statusText||this.statusText,url:K.url||this.url||void 0})}}class St extends dt{constructor(K={}){super(K),this.type=We.Response,this.body=void 0!==K.body?K.body:null}clone(K={}){return new St({body:void 0!==K.body?K.body:this.body,headers:K.headers||this.headers,status:void 0!==K.status?K.status:this.status,statusText:K.statusText||this.statusText,url:K.url||this.url||void 0})}}class ht extends dt{constructor(K){super(K,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${K.url||"(unknown url)"}`:`Http failure response for ${K.url||"(unknown url)"}: ${K.status} ${K.statusText}`,this.error=K.error||null}}function at(_e,K){return{body:K,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let He=(()=>{class _e{constructor(W){this.handler=W}request(W,De,ae={}){let Fe;if(W instanceof Dt)Fe=W;else{let lt,Ct;lt=ae.headers instanceof V?ae.headers:new V(ae.headers),ae.params&&(Ct=ae.params instanceof Te?ae.params:new Te({fromObject:ae.params})),Fe=new Dt(W,De,void 0!==ae.body?ae.body:null,{headers:lt,context:ae.context,params:Ct,reportProgress:ae.reportProgress,responseType:ae.responseType||"json",withCredentials:ae.withCredentials})}const Ie=(0,Z.of)(Fe).pipe((0,B.b)(lt=>this.handler.handle(lt)));if(W instanceof Dt||"events"===ae.observe)return Ie;const $e=Ie.pipe((0,U.h)(lt=>lt instanceof St));switch(ae.observe||"body"){case"body":switch(Fe.responseType){case"arraybuffer":return $e.pipe((0,Y.U)(lt=>{if(null!==lt.body&&!(lt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return lt.body}));case"blob":return $e.pipe((0,Y.U)(lt=>{if(null!==lt.body&&!(lt.body instanceof Blob))throw new Error("Response is not a Blob.");return lt.body}));case"text":return $e.pipe((0,Y.U)(lt=>{if(null!==lt.body&&"string"!=typeof lt.body)throw new Error("Response is not a string.");return lt.body}));default:return $e.pipe((0,Y.U)(lt=>lt.body))}case"response":return $e;default:throw new Error(`Unreachable: unhandled observe type ${ae.observe}}`)}}delete(W,De={}){return this.request("DELETE",W,De)}get(W,De={}){return this.request("GET",W,De)}head(W,De={}){return this.request("HEAD",W,De)}jsonp(W,De){return this.request("JSONP",W,{params:(new Te).append(De,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(W,De={}){return this.request("OPTIONS",W,De)}patch(W,De,ae={}){return this.request("PATCH",W,at(ae,De))}post(W,De,ae={}){return this.request("POST",W,at(ae,De))}put(W,De,ae={}){return this.request("PUT",W,at(ae,De))}}return _e.\u0275fac=function(W){return new(W||_e)(_.LFG(Q))},_e.\u0275prov=_.Yz7({token:_e,factory:_e.\u0275fac}),_e})();class Un{constructor(K,W){this.next=K,this.interceptor=W}handle(K){return this.interceptor.intercept(K,this.next)}}const It=new _.OlP("HTTP_INTERCEPTORS");let un=(()=>{class _e{intercept(W,De){return De.handle(W)}}return _e.\u0275fac=function(W){return new(W||_e)},_e.\u0275prov=_.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const le=/^\)\]\}',?\n/;let Be=(()=>{class _e{constructor(W){this.xhrFactory=W}handle(W){if("JSONP"===W.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new se.y(De=>{const ae=this.xhrFactory.build();if(ae.open(W.method,W.urlWithParams),W.withCredentials&&(ae.withCredentials=!0),W.headers.forEach((Et,je)=>ae.setRequestHeader(Et,je.join(","))),W.headers.has("Accept")||ae.setRequestHeader("Accept","application/json, text/plain, */*"),!W.headers.has("Content-Type")){const Et=W.detectContentTypeHeader();null!==Et&&ae.setRequestHeader("Content-Type",Et)}if(W.responseType){const Et=W.responseType.toLowerCase();ae.responseType="json"!==Et?Et:"text"}const Fe=W.serializeBody();let Ie=null;const $e=()=>{if(null!==Ie)return Ie;const Et=1223===ae.status?204:ae.status,je=ae.statusText||"OK",xn=new V(ae.getAllResponseHeaders()),Pt=function Ne(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(ae)||W.url;return Ie=new Tt({headers:xn,status:Et,statusText:je,url:Pt}),Ie},lt=()=>{let{headers:Et,status:je,statusText:xn,url:Pt}=$e(),mt=null;204!==je&&(mt=void 0===ae.response?ae.responseText:ae.response),0===je&&(je=mt?200:0);let rt=je>=200&&je<300;if("json"===W.responseType&&"string"==typeof mt){const lr=mt;mt=mt.replace(le,"");try{mt=""!==mt?JSON.parse(mt):null}catch(bn){mt=lr,rt&&(rt=!1,mt={error:bn,text:mt})}}rt?(De.next(new St({body:mt,headers:Et,status:je,statusText:xn,url:Pt||void 0})),De.complete()):De.error(new ht({error:mt,headers:Et,status:je,statusText:xn,url:Pt||void 0}))},Ct=Et=>{const{url:je}=$e(),xn=new ht({error:Et,status:ae.status||0,statusText:ae.statusText||"Unknown Error",url:je||void 0});De.error(xn)};let Qt=!1;const rn=Et=>{Qt||(De.next($e()),Qt=!0);let je={type:We.DownloadProgress,loaded:Et.loaded};Et.lengthComputable&&(je.total=Et.total),"text"===W.responseType&&!!ae.responseText&&(je.partialText=ae.responseText),De.next(je)},At=Et=>{let je={type:We.UploadProgress,loaded:Et.loaded};Et.lengthComputable&&(je.total=Et.total),De.next(je)};return ae.addEventListener("load",lt),ae.addEventListener("error",Ct),ae.addEventListener("timeout",Ct),ae.addEventListener("abort",Ct),W.reportProgress&&(ae.addEventListener("progress",rn),null!==Fe&&ae.upload&&ae.upload.addEventListener("progress",At)),ae.send(Fe),De.next({type:We.Sent}),()=>{ae.removeEventListener("error",Ct),ae.removeEventListener("abort",Ct),ae.removeEventListener("load",lt),ae.removeEventListener("timeout",Ct),W.reportProgress&&(ae.removeEventListener("progress",rn),null!==Fe&&ae.upload&&ae.upload.removeEventListener("progress",At)),ae.readyState!==ae.DONE&&ae.abort()}})}}return _e.\u0275fac=function(W){return new(W||_e)(_.LFG(g.JF))},_e.\u0275prov=_.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const tn=new _.OlP("XSRF_COOKIE_NAME"),jt=new _.OlP("XSRF_HEADER_NAME");class zt{}let dn=(()=>{class _e{constructor(W,De,ae){this.doc=W,this.platform=De,this.cookieName=ae,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const W=this.doc.cookie||"";return W!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,g.Mx)(W,this.cookieName),this.lastCookieString=W),this.lastToken}}return _e.\u0275fac=function(W){return new(W||_e)(_.LFG(g.K0),_.LFG(_.Lbi),_.LFG(tn))},_e.\u0275prov=_.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),nn=(()=>{class _e{constructor(W,De){this.tokenService=W,this.headerName=De}intercept(W,De){const ae=W.url.toLowerCase();if("GET"===W.method||"HEAD"===W.method||ae.startsWith("http://")||ae.startsWith("https://"))return De.handle(W);const Fe=this.tokenService.getToken();return null!==Fe&&!W.headers.has(this.headerName)&&(W=W.clone({headers:W.headers.set(this.headerName,Fe)})),De.handle(W)}}return _e.\u0275fac=function(W){return new(W||_e)(_.LFG(zt),_.LFG(jt))},_e.\u0275prov=_.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Hn=(()=>{class _e{constructor(W,De){this.backend=W,this.injector=De,this.chain=null}handle(W){if(null===this.chain){const De=this.injector.get(It,[]);this.chain=De.reduceRight((ae,Fe)=>new Un(ae,Fe),this.backend)}return this.chain.handle(W)}}return _e.\u0275fac=function(W){return new(W||_e)(_.LFG($),_.LFG(_.zs3))},_e.\u0275prov=_.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Rn=(()=>{class _e{static disable(){return{ngModule:_e,providers:[{provide:nn,useClass:un}]}}static withOptions(W={}){return{ngModule:_e,providers:[W.cookieName?{provide:tn,useValue:W.cookieName}:[],W.headerName?{provide:jt,useValue:W.headerName}:[]]}}}return _e.\u0275fac=function(W){return new(W||_e)},_e.\u0275mod=_.oAB({type:_e}),_e.\u0275inj=_.cJS({providers:[nn,{provide:It,useExisting:nn,multi:!0},{provide:zt,useClass:dn},{provide:tn,useValue:"XSRF-TOKEN"},{provide:jt,useValue:"X-XSRF-TOKEN"}]}),_e})(),Ht=(()=>{class _e{}return _e.\u0275fac=function(W){return new(W||_e)},_e.\u0275mod=_.oAB({type:_e}),_e.\u0275inj=_.cJS({providers:[He,{provide:Q,useClass:Hn},Be,{provide:$,useExisting:Be}],imports:[[Rn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),_e})()},9863:(ze,de,M)=>{M.d(de,{deG:()=>Fg,tb:()=>ag,AFp:()=>sg,ip1:()=>Vu,CZH:()=>ao,hGG:()=>GC,z2F:()=>Yo,sBO:()=>DC,Sil:()=>zu,_Vd:()=>Ho,EJc:()=>ug,SBq:()=>Vo,qLn:()=>Mo,vpe:()=>Ss,tBr:()=>Eo,XFs:()=>nt,OlP:()=>_n,zs3:()=>Gr,ZZ4:()=>Ha,aQg:()=>Va,soG:()=>ja,YKP:()=>cp,h0i:()=>so,PXZ:()=>fC,R0b:()=>xr,FiY:()=>di,Lbi:()=>og,g9A:()=>ig,n_E:()=>xa,Qsj:()=>nE,FYo:()=>op,JOm:()=>Es,q3G:()=>wn,tp0:()=>Ri,Rgc:()=>Wo,dDg:()=>hg,GfV:()=>ap,s_b:()=>Fa,ifc:()=>Ct,eFA:()=>gg,G48:()=>_C,Gpc:()=>Ee,f3M:()=>Qg,_c5:()=>BC,VLi:()=>cC,c2e:()=>lg,zSh:()=>$l,wAp:()=>ct,vHH:()=>Pe,EiD:()=>xc,mCW:()=>bo,qzn:()=>Fi,JVY:()=>pm,pB0:()=>vm,eBb:()=>mm,L6k:()=>gm,LAX:()=>ym,cg1:()=>Du,kL8:()=>Pf,yhl:()=>Tc,dqk:()=>je,sIi:()=>xo,CqO:()=>Lh,QGY:()=>lu,F4k:()=>kh,RDi:()=>Ws,AaK:()=>F,z3N:()=>xs,qOj:()=>Yl,TTD:()=>hr,_Bn:()=>rp,xp6:()=>pd,uIk:()=>Zl,Tol:()=>sf,Gre:()=>Df,ekj:()=>pu,Suo:()=>kp,Xpm:()=>zn,lG2:()=>O,Yz7:()=>Be,cJS:()=>jt,oAB:()=>x,Yjl:()=>q,Y36:()=>Fo,_UZ:()=>xh,GkF:()=>Nh,BQk:()=>au,ynx:()=>ou,qZA:()=>iu,TgZ:()=>su,EpF:()=>Fh,n5z:()=>ts,Ikx:()=>vu,LFG:()=>Yn,$8M:()=>Ir,$Z:()=>Rh,NdJ:()=>uu,CRH:()=>Lp,kcU:()=>Kn,O4$:()=>pn,oxw:()=>Uh,ALo:()=>Tp,lcZ:()=>Sp,xi3:()=>Mp,Dn7:()=>Ap,Hsn:()=>Vh,F$t:()=>Hh,Q6J:()=>nu,s9C:()=>hu,MGl:()=>wa,DdM:()=>pp,VKq:()=>gp,WLB:()=>mp,kEZ:()=>yp,l5B:()=>vp,qbA:()=>_p,iGM:()=>Np,MAs:()=>Eh,CHM:()=>uo,oJD:()=>Nc,LSH:()=>sl,Udp:()=>fu,WFA:()=>cu,d8E:()=>_u,YNc:()=>Dh,W1O:()=>Hp,_uU:()=>hf,Oqu:()=>mu,hij:()=>Sa,AsE:()=>yu,Gf:()=>Fp});var g=M(8929),_=M(2654),Z=M(2916),se=M(6787),B=M(2536),U=M(4327);function Y(){return new g.xQ}function $(e){for(let t in e)if(e[t]===$)return t;throw Error("Could not find renamed property on target object.")}function V(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function F(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(F).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 oe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const he=$({__forward_ref__:$});function Ee(e){return e.__forward_ref__=Ee,e.toString=function(){return F(this())},e}function ee(e){return pe(e)?e():e}function pe(e){return"function"==typeof e&&e.hasOwnProperty(he)&&e.__forward_ref__===Ee}class Pe extends Error{constructor(t,n){super(function we(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function ie(e){return"string"==typeof e?e:null==e?"":String(e)}function ue(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ie(e)}function We(e,t){const n=t?` in ${t}`:"";throw new Pe("201",`No provider for ${ue(e)} found${n}`)}function ve(e,t){null==e&&function Ce(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Be(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function jt(e){return{providers:e.providers||[],imports:e.imports||[]}}function zt(e){return dn(e,Vn)||dn(e,Ht)}function dn(e,t){return e.hasOwnProperty(t)?e[t]:null}function Jn(e){return e&&(e.hasOwnProperty(Rn)||e.hasOwnProperty(ar))?e[Rn]:null}const Vn=$({\u0275prov:$}),Rn=$({\u0275inj:$}),Ht=$({ngInjectableDef:$}),ar=$({ngInjectorDef:$});var nt=(()=>((nt=nt||{})[nt.Default=0]="Default",nt[nt.Host=1]="Host",nt[nt.Self=2]="Self",nt[nt.SkipSelf=4]="SkipSelf",nt[nt.Optional=8]="Optional",nt))();let _e;function W(e){const t=_e;return _e=e,t}function De(e,t,n){const r=zt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&nt.Optional?null:void 0!==t?t:void We(F(e),"Injector")}function Fe(e){return{toString:e}.toString()}var Ie=(()=>((Ie=Ie||{})[Ie.OnPush=0]="OnPush",Ie[Ie.Default=1]="Default",Ie))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const Qt="undefined"!=typeof globalThis&&globalThis,rn="undefined"!=typeof window&&window,At="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,je=Qt||"undefined"!=typeof global&&global||rn||At,mt={},rt=[],lr=$({\u0275cmp:$}),bn=$({\u0275dir:$}),Xn=$({\u0275pipe:$}),er=$({\u0275mod:$}),Xt=$({\u0275fac:$}),Tn=$({__NG_ELEMENT_ID__:$});let $n=0;function zn(e){return Fe(()=>{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===Ie.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,id:"c",styles:e.styles||rt,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,a=e.pipes;return r.id+=$n++,r.inputs=be(e.inputs,n),r.outputs=be(e.outputs),i&&i.forEach(d=>d(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(ur):null,r.pipeDefs=a?()=>("function"==typeof a?a():a).map(re):null,r})}function ur(e){return R(e)||function ce(e){return e[bn]||null}(e)}function re(e){return function st(e){return e[Xn]||null}(e)}const L={};function x(e){return Fe(()=>{const t={type:e.type,bootstrap:e.bootstrap||rt,declarations:e.declarations||rt,imports:e.imports||rt,exports:e.exports||rt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(L[e.id]=e.type),t})}function be(e,t){if(null==e)return mt;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 O=zn;function q(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function R(e){return e[lr]||null}function bt(e,t){const n=e[er]||null;if(!n&&!0===t)throw new Error(`Type ${F(e)} does not have '\u0275mod' property.`);return n}function Gn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ln(e){return Array.isArray(e)&&!0===e[1]}function Dr(e){return 0!=(8&e.flags)}function Yr(e){return 2==(2&e.flags)}function Ar(e){return 1==(1&e.flags)}function Gt(e){return null!==e.template}function si(e){return 0!=(512&e[2])}function mn(e,t){return e.hasOwnProperty(Xt)?e[Xt]:null}class Ei{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function hr(){return fs}function fs(e){return e.type.prototype.ngOnChanges&&(e.setInput=$s),As}function As(){const e=Er(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===mt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function $s(e,t,n,r){const s=Er(e)||function ps(e,t){return e[Zr]=t}(e,{previous:mt,current:null}),i=s.current||(s.current={}),a=s.previous,d=this.declaredInputs[n],p=a[d];i[d]=new Ei(p&&p.currentValue,t,a===mt),e[r]=t}hr.ngInherit=!0;const Zr="__ngSimpleChanges__";function Er(e){return e[Zr]||null}const Gs="http://www.w3.org/2000/svg";let Br;function Ws(e){Br=e}function Ks(){return void 0!==Br?Br:"undefined"!=typeof document?document:void 0}function m(e){return!!e.listen}const T={createRenderer:(e,t)=>Ks()};function S(e){for(;Array.isArray(e);)e=e[0];return e}function Me(e,t){return S(t[e])}function Ue(e,t){return S(t[e.index])}function kt(e,t){return e.data[t]}function xt(e,t){return e[t]}function ut(e,t){const n=t[e];return Gn(n)?n:n[0]}function Wt(e){return 4==(4&e[2])}function Ut(e){return 128==(128&e[2])}function Pn(e,t){return null==t?null:e[t]}function Cr(e){e[18]=0}function jr(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 tt={lFrame:li(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Os(){return tt.bindingsEnabled}function Ae(){return tt.lFrame.lView}function wt(){return tt.lFrame.tView}function uo(e){return tt.lFrame.contextLView=e,e[8]}function C(){let e=o();for(;null!==e&&64===e.type;)e=e.parent;return e}function o(){return tt.lFrame.currentTNode}function f(e,t){const n=tt.lFrame;n.currentTNode=e,n.isParent=t}function b(){return tt.lFrame.isParent}function I(){tt.lFrame.isParent=!1}function ne(){return tt.isInCheckNoChangesMode}function me(e){tt.isInCheckNoChangesMode=e}function Re(){const e=tt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yt(){return tt.lFrame.bindingIndex++}function qe(e){const t=tt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function en(e,t){const n=tt.lFrame;n.bindingIndex=n.bindingRootIndex=e,yn(t)}function yn(e){tt.lFrame.currentDirectiveIndex=e}function vn(e){const t=tt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ur(){return tt.lFrame.currentQueryIndex}function qn(e){tt.lFrame.currentQueryIndex=e}function On(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function fr(e,t,n){if(n&nt.SkipSelf){let s=t,i=e;for(;!(s=s.parent,null!==s||n&nt.Host||(s=On(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;t=s,e=i}const r=tt.lFrame=br();return r.currentTNode=t,r.lView=e,!0}function nr(e){const t=br(),n=e[1];tt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function br(){const e=tt.lFrame,t=null===e?null:e.child;return null===t?li(e):t}function li(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 ys(){const e=tt.lFrame;return tt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Hr=ys;function Jr(){const e=ys();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 Ge(){return tt.lFrame.selectedIndex}function Xe(e){tt.lFrame.selectedIndex=e}function Je(){const e=tt.lFrame;return kt(e.tView,e.selectedIndex)}function pn(){tt.lFrame.currentNamespace=Gs}function Kn(){!function Vr(){tt.lFrame.currentNamespace=null}()}function Zn(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:d,ngAfterViewInit:p,ngAfterViewChecked:E,ngOnDestroy:w}=i;a&&(e.contentHooks||(e.contentHooks=[])).push(-n,a),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 on(e,t,n){es(e,t,3,n)}function Xr(e,t,n,r){(3&e[2])===n&&es(e,t,n,r)}function rr(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function es(e,t,n,r){const i=null!=r?r:-1,a=t.length-1;let d=0;for(let p=void 0!==r?65535&e[18]:0;p<a;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)&&(wi(e,n,t,p),e[18]=(4294901760&e[18])+p+2),p++}function wi(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 Qs{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ci(e,t,n){const r=m(e);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const a=n[s++],d=n[s++],p=n[s++];r?e.setAttribute(t,d,p,a):t.setAttributeNS(a,d,p)}else{const a=i,d=n[++s];fo(a)?r&&e.setProperty(t,a,d):r?e.setAttribute(t,a,d):t.setAttribute(a,d),s++}}return s}function Zo(e){return 3===e||4===e||6===e}function fo(e){return 64===e.charCodeAt(0)}function Si(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||Jo(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function Jo(e,t,n,r,s){let i=0,a=e.length;if(-1===t)a=-1;else for(;i<e.length;){const d=e[i++];if("number"==typeof d){if(d===t){a=-1;break}if(d>t){a=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!==a&&(e.splice(a,0,t),i=a+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==s&&e.splice(i++,0,s)}function Xo(e){return-1!==e}function Zs(e){return 32767&e}function Js(e,t){let n=function ea(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let po=!0;function Mi(e){const t=po;return po=e,t}let sa=0;function Ai(e,t){const n=c(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,h(r.data,e),h(t,null),h(r.blueprint,null));const s=u(e,t),i=e.injectorIndex;if(Xo(s)){const a=Zs(s),d=Js(s,t),p=d[1].data;for(let E=0;E<8;E++)t[i+E]=d[a+E]|p[a+E]}return t[i+8]=s,i}function h(e,t){e.push(0,0,0,0,0,0,0,0,t)}function c(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function u(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],a=i.type;if(r=2===a?i.declTNode:1===a?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function y(e,t,n){!function za(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Tn)&&(r=n[Tn]),null==r&&(r=n[Tn]=sa++);const s=255&r;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function A(e,t,n){if(n&nt.Optional)return e;We(t,"NodeInjector")}function N(e,t,n,r){if(n&nt.Optional&&void 0===r&&(r=null),0==(n&(nt.Self|nt.Host))){const s=e[9],i=W(void 0);try{return s?s.get(t,r,n&nt.Optional):De(t,r,n&nt.Optional)}finally{W(i)}}return A(r,t,n)}function G(e,t,n,r=nt.Default,s){if(null!==e){const i=function Kt(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Tn)?e[Tn]:void 0;return"number"==typeof t?t>=0?255&t:Ye:t}(n);if("function"==typeof i){if(!fr(t,e,r))return r&nt.Host?A(s,n,r):N(t,n,r,s);try{const a=i(r);if(null!=a||r&nt.Optional)return a;We(n)}finally{Hr()}}else if("number"==typeof i){let a=null,d=c(e,t),p=-1,E=r&nt.Host?t[16][6]:null;for((-1===d||r&nt.SkipSelf)&&(p=-1===d?u(e,t):t[d+8],-1!==p&&$r(r,!1)?(a=t[1],d=Zs(p),t=Js(p,t)):d=-1);-1!==d;){const w=t[1];if(Xs(i,d,w.data)){const P=Nt(d,t,n,a,r,E);if(P!==ge)return P}p=t[d+8],-1!==p&&$r(r,t[1].data[d+8]===E)&&Xs(i,d,t)?(a=w,d=Zs(p),t=Js(p,t)):d=-1}}}return N(t,n,r,s)}const ge={};function Ye(){return new sr(C(),Ae())}function Nt(e,t,n,r,s,i){const a=t[1],d=a.data[e+8],w=et(d,a,n,null==r?Yr(d)&&po:r!=a&&0!=(3&d.type),s&nt.Host&&i===d);return null!==w?Lt(t,a,w,d):ge}function et(e,t,n,r,s){const i=e.providerIndexes,a=t.data,d=1048575&i,p=e.directiveStart,w=i>>20,z=s?d+w:e.directiveEnd;for(let X=r?d:d+w;X<z;X++){const ye=a[X];if(X<p&&n===ye||X>=p&&ye.type===n)return X}if(s){const X=a[p];if(X&&Gt(X)&&X.type===n)return p}return null}function Lt(e,t,n,r){let s=e[n];const i=t.data;if(function $a(e){return e instanceof Qs}(s)){const a=s;a.resolving&&function Ze(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Pe("200",`Circular dependency in DI detected for ${e}${n}`)}(ue(i[n]));const d=Mi(a.canSeeViewProviders);a.resolving=!0;const p=a.injectImpl?W(a.injectImpl):null;fr(e,r,nt.Default);try{s=e[n]=a.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function co(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const a=fs(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}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&&W(p),Mi(d),a.resolving=!1,Hr()}}return s}function Xs(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function $r(e,t){return!(e&nt.Self||e&nt.Host&&t)}class sr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return G(this._tNode,this._lView,t,r,n)}}function ts(e){return Fe(()=>{const t=e.prototype.constructor,n=t[Xt]||ei(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const i=s[Xt]||ei(s);if(i&&i!==n)return i;s=Object.getPrototypeOf(s)}return i=>new i})}function ei(e){return pe(e)?()=>{const t=ei(ee(e));return t&&t()}:mn(e)}function Ir(e){return function D(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(Zo(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}(C(),e)}const ti="__parameters__";function Pi(e,t,n){return Fe(()=>{const r=function Ga(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...i){if(this instanceof s)return r.apply(this,i),this;const a=new s(...i);return d.annotation=a,d;function d(p,E,w){const P=p.hasOwnProperty(ti)?p[ti]:Object.defineProperty(p,ti,{value:[]})[ti];for(;P.length<=w;)P.push(null);return(P[w]=P[w]||[]).push(a),p}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class _n{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=Be({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Fg=new _n("AnalyzeForEntryComponents");function zr(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)),zr(r,t)):t!==e&&t.push(r)}return t}function vs(e,t){e.forEach(n=>Array.isArray(n)?vs(n,t):t(n))}function cc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ia(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Or(e,t,n){let r=Oi(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=Oi(e,t);if(n>=0)return e[1|n]}function Oi(e,t){return function fc(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const i=r+(s-r>>1),a=e[i<<n];if(t===a)return i<<n;a>t?s=i:r=i+1}return~(s<<n)}(e,t,1)}const vo={},Qa="__NG_DI_FLAG__",aa="ngTempTokenPath",Gg=/\n/gm,gc="__source",Kg=$({provide:String,useValue:$});let _o;function mc(e){const t=_o;return _o=e,t}function Yg(e,t=nt.Default){if(void 0===_o)throw new Error("inject() must be called from an injection context");return null===_o?De(e,void 0,t):_o.get(e,t&nt.Optional?null:void 0,t)}function Yn(e,t=nt.Default){return(function K(){return _e}()||Yg)(ee(e),t)}const Qg=Yn;function qa(e){const t=[];for(let n=0;n<e.length;n++){const r=ee(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let s,i=nt.Default;for(let a=0;a<r.length;a++){const d=r[a],p=qg(d);"number"==typeof p?-1===p?s=d.token:i|=p:s=d}t.push(Yn(s,i))}else t.push(Yn(r))}return t}function Do(e,t){return e[Qa]=t,e.prototype[Qa]=t,e}function qg(e){return e[Qa]}const Eo=Do(Pi("Inject",e=>({token:e})),-1),di=Do(Pi("Optional"),8),Ri=Do(Pi("SkipSelf"),4);let ua,ca;function Ni(e){var t;return(null===(t=function Ja(){if(void 0===ua&&(ua=null,je.trustedTypes))try{ua=je.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ua}())||void 0===t?void 0:t.createHTML(e))||e}function Cc(e){var t;return(null===(t=function Xa(){if(void 0===ca&&(ca=null,je.trustedTypes))try{ca=je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ca}())||void 0===t?void 0:t.createHTML(e))||e}class hi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class um extends hi{getTypeName(){return"HTML"}}class cm extends hi{getTypeName(){return"Style"}}class dm extends hi{getTypeName(){return"Script"}}class hm extends hi{getTypeName(){return"URL"}}class fm extends hi{getTypeName(){return"ResourceURL"}}function xs(e){return e instanceof hi?e.changingThisBreaksApplicationSecurity:e}function Fi(e,t){const n=Tc(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 Tc(e){return e instanceof hi&&e.getTypeName()||null}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 hm(e)}function vm(e){return new fm(e)}class _m{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Ni(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Dm{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=Ni(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Ni(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0<s;s--){const a=n.item(s).name;("xmlns:ns1"===a||0===a.indexOf("ns1:"))&&t.removeAttribute(a)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const Cm=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,bm=/^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 bo(e){return(e=String(e)).match(Cm)||e.match(bm)?e:"unsafe:"+e}function _s(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function wo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ac=_s("area,br,col,hr,img,wbr"),Ic=_s("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pc=_s("rp,rt"),el=wo(Ac,wo(Ic,_s("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")),wo(Pc,_s("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")),wo(Pc,Ic)),tl=_s("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nl=_s("srcset"),Oc=wo(tl,nl,_s("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"),_s("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")),wm=_s("script,style,template");class Tm{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,!wm.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),a=i.name,d=a.toLowerCase();if(!Oc.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let p=i.value;tl[d]&&(p=bo(p)),nl[d]&&(e=p,p=(e=String(e)).split(",").map(t=>bo(t.trim())).join(", ")),this.buf.push(" ",a,'="',Rc(p),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();el.hasOwnProperty(n)&&!Ac.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Rc(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 Sm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mm=/([^\#-~ |!])/g;function Rc(e){return e.replace(/&/g,"&amp;").replace(Sm,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Mm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let da;function xc(e,t){let n=null;try{da=da||function Sc(e){const t=new Dm(e);return function Em(){try{return!!(new window.DOMParser).parseFromString(Ni(""),"text/html")}catch(e){return!1}}()?new _m(t):t}(e);let r=t?String(t):"";n=da.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=da.getInertBodyElement(r)}while(r!==i);return Ni((new Tm).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 Am(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wn=(()=>((wn=wn||{})[wn.NONE=0]="NONE",wn[wn.HTML=1]="HTML",wn[wn.STYLE=2]="STYLE",wn[wn.SCRIPT=3]="SCRIPT",wn[wn.URL=4]="URL",wn[wn.RESOURCE_URL=5]="RESOURCE_URL",wn))();function Nc(e){const t=To();return t?Cc(t.sanitize(wn.HTML,e)||""):Fi(e,"HTML")?Cc(xs(e)):xc(Ks(),ie(e))}function sl(e){const t=To();return t?t.sanitize(wn.URL,e)||"":Fi(e,"URL")?xs(e):bo(ie(e))}function To(){const e=Ae();return e&&e[12]}const Lc="__ngContext__";function ir(e,t){e[Lc]=t}function ol(e){const t=function So(e){return e[Lc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ll(e){return e.ngOriginalError}function Gm(e,...t){e.error(...t)}class Mo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function zm(e){return e&&e.ngErrorLogger||Gm}(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 Vc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(je))();function Ds(e){return e instanceof Function?e():e}var Es=(()=>((Es=Es||{})[Es.Important=1]="Important",Es[Es.DashCase=2]="DashCase",Es))();function cl(e,t){return undefined(e,t)}function Ao(e){const t=e[3];return Ln(t)?t[3]:t}function dl(e){return Kc(e[13])}function hl(e){return Kc(e[4])}function Kc(e){for(;null!==e&&!Ln(e);)e=e[4];return e}function Li(e,t,n,r,s){if(null!=r){let i,a=!1;Ln(r)?i=r:Gn(r)&&(a=!0,r=r[0]);const d=S(r);0===e&&null!==n?null==s?Xc(t,n,d):fi(t,n,d,s||null,!0):1===e&&null!==n?fi(t,n,d,s||null,!0):2===e?function od(e,t,n){const r=ha(e,t);r&&function py(e,t,n,r){m(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,d,a):3===e&&t.destroyNode(d),null!=i&&function yy(e,t,n,r,s){const i=n[7];i!==S(n)&&Li(t,e,r,i,s);for(let d=10;d<n.length;d++){const p=n[d];Io(p[1],p,e,t,r,i)}}(t,e,i,n,s)}}function pl(e,t,n){return m(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Qc(e,t){const n=e[9],r=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,jr(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&&Qc(s,r),t>0&&(e[n-1][4]=r[4]);const i=ia(e,10+t);!function oy(e,t){Io(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const a=i[19];null!==a&&a.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function qc(e,t){if(!(256&t[2])){const n=t[11];m(n)&&n.destroyNode&&Io(e,t,n,3,null,null),function uy(e){let t=e[13];if(!t)return ml(e[1],e);for(;t;){let n=null;if(Gn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Gn(t)&&ml(t[1],t),t=t[3];null===t&&(t=e),Gn(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 Qs)){const i=n[r+1];if(Array.isArray(i))for(let a=0;a<i.length;a+=2){const d=s[i[a]],p=i[a+1];try{p.call(d)}finally{}}else try{i.call(s)}finally{}}}}(e,t),function hy(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 a=n[i+1],d="function"==typeof a?a(t):S(t[a]),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 a=r[s=n[i+1]];n[i].call(a)}if(null!==r){for(let i=s+1;i<r.length;i++)r[i]();t[7]=null}}(e,t),1===t[1].type&&m(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Ln(t[3])){n!==t[3]&&Qc(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Zc(e,t,n){return function Jc(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===Ct.None||s===Ct.Emulated)return null}return Ue(r,n)}(e,t.parent,n)}function fi(e,t,n,r,s){m(e)?e.insertBefore(t,n,r,s):t.insertBefore(n,r,s)}function Xc(e,t,n){m(e)?e.appendChild(t,n):t.appendChild(n)}function ed(e,t,n,r,s){null!==r?fi(e,t,n,r,s):Xc(e,t,n)}function ha(e,t){return m(e)?e.parentNode(t):t.parentNode}function td(e,t,n){return rd(e,t,n)}let rd=function nd(e,t,n){return 40&e.type?Ue(e,n):null};function fa(e,t,n,r){const s=Zc(e,r,t),i=t[11],d=td(r.parent||t[6],r,t);if(null!=s)if(Array.isArray(n))for(let p=0;p<n.length;p++)ed(i,s,n[p],d,!1);else ed(i,s,n,d,!1)}function pa(e,t){if(null!==t){const n=t.type;if(3&n)return Ue(t,e);if(4&n)return vl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return pa(e,r);{const s=e[t.index];return Ln(s)?vl(-1,s):S(s)}}if(32&n)return cl(t,e)()||S(e[t.index]);{const r=id(e,t);return null!==r?Array.isArray(r)?r[0]:pa(Ao(e[16]),r):pa(e,t.next)}}return null}function id(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 pa(r,s)}return t[7]}function _l(e,t,n,r,s,i,a){for(;null!=n;){const d=r[n.index],p=n.type;if(a&&0===t&&(d&&ir(S(d),r),n.flags|=4),64!=(64&n.flags))if(8&p)_l(e,t,n.child,r,s,i,!1),Li(t,e,s,d,i);else if(32&p){const E=cl(n,r);let w;for(;w=E();)Li(t,e,s,w,i);Li(t,e,s,d,i)}else 16&p?ad(e,t,r,n,s,i):Li(t,e,s,d,i);n=a?n.projectionNext:n.next}}function Io(e,t,n,r,s,i){_l(n,r,e.firstChild,t,s,i,!1)}function ad(e,t,n,r,s,i){const a=n[16],p=a[6].projection[r.projection];if(Array.isArray(p))for(let E=0;E<p.length;E++)Li(t,e,s,p[E],i);else _l(e,t,p,a[3],s,i,!0)}function ld(e,t,n){m(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Dl(e,t,n){m(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function ud(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 cd="ng-template";function _y(e,t,n){let r=0;for(;r<e.length;){let s=e[r++];if(n&&"class"===s){if(s=e[r],-1!==ud(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 dd(e){return 4===e.type&&e.value!==cd}function Dy(e,t,n){return t===(4!==e.type||n?e.value:cd)}function Ey(e,t,n){let r=4;const s=e.attrs||[],i=function wy(e){for(let t=0;t<e.length;t++)if(Zo(e[t]))return t;return e.length}(s);let a=!1;for(let d=0;d<t.length;d++){const p=t[d];if("number"!=typeof p){if(!a)if(4&r){if(r=2|1&r,""!==p&&!Dy(e,p,n)||""===p&&1===t.length){if(ns(r))return!1;a=!0}}else{const E=8&r?p:t[++d];if(8&r&&null!==e.attrs){if(!_y(e.attrs,E,n)){if(ns(r))return!1;a=!0}continue}const P=Cy(8&r?"class":p,s,dd(e),n);if(-1===P){if(ns(r))return!1;a=!0;continue}if(""!==E){let z;z=P>i?"":s[P+1].toLowerCase();const X=8&r?z:null;if(X&&-1!==ud(X,E,0)||2&r&&E!==z){if(ns(r))return!1;a=!0}}}}else{if(!a&&!ns(r)&&!ns(p))return!1;if(a&&ns(p))continue;a=!1,r=p|1&r}}return ns(r)||a}function ns(e){return 0==(1&e)}function Cy(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let i=!1;for(;s<t.length;){const a=t[s];if(a===e)return s;if(3===a||6===a)i=!0;else{if(1===a||2===a){let d=t[++s];for(;"string"==typeof d;)d=t[++s];continue}if(4===a)break;if(0===a){s+=4;continue}}s+=i?1:2}return-1}return function Ty(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 hd(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ey(e,t[r],n))return!0;return!1}function Sy(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 fd(e,t){return e?":not("+t.trim()+")":t}function My(e){let t=e[0],n=1,r=2,s="",i=!1;for(;n<e.length;){let a=e[n];if("string"==typeof a)if(2&r){const d=e[++n];s+="["+a+(d.length>0?'="'+d+'"':"")+"]"}else 8&r?s+="."+a:4&r&&(s+=" "+a);else""!==s&&!ns(a)&&(t+=fd(i,s),s=""),r=a,i=i||!ns(r);n++}return""!==s&&(t+=fd(i,s)),t}const _t={};function pd(e){gd(wt(),Ae(),Ge()+e,ne())}function gd(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&on(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Xr(t,i,0,n)}Xe(n)}function ga(e,t){return e<<17|t<<2}function rs(e){return e>>17&32767}function El(e){return 2|e}function Ns(e){return(131068&e)>>2}function Cl(e,t){return-131069&e|t<<2}function bl(e){return 1|e}function Sd(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 a=e.data[i];qn(s),a.contentQueries(2,t[i],i)}}}function Po(e,t,n,r,s,i,a,d,p,E){const w=t.blueprint.slice();return w[0]=s,w[2]=140|r,Cr(w),w[3]=w[15]=e,w[8]=n,w[10]=a||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 Bi(e,t,n,r,s){let i=e.data[t];if(null===i)i=function Rl(e,t,n,r,s){const i=o(),a=b(),p=e.data[t]=function Gy(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,a?i:i&&i.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=p),null!==i&&(a?null==i.child&&null!==p.parent&&(i.child=p):null===i.next&&(i.next=p)),p}(e,t,n,r,s),function gt(){return tt.lFrame.inI18n}()&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=s;const a=function l(){const e=tt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===a?-1:a.injectorIndex}return f(i,!0),i}function ji(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 Oo(e,t,n){nr(t);try{const r=e.viewQuery;null!==r&&Hl(1,r,n);const s=e.template;null!==s&&Md(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Sd(e,t),e.staticViewQueries&&Hl(2,e.viewQuery,n);const i=e.components;null!==i&&function Vy(e,t){for(let n=0;n<t.length;n++)uv(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Jr()}}function Ui(e,t,n,r){const s=t[2];if(256==(256&s))return;nr(t);const i=ne();try{Cr(t),function pt(e){return tt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Md(e,t,n,2,r);const a=3==(3&s);if(!i)if(a){const E=e.preOrderCheckHooks;null!==E&&on(t,E,null)}else{const E=e.preOrderHooks;null!==E&&Xr(t,E,0,null),rr(t,0)}if(function av(e){for(let t=dl(e);null!==t;t=hl(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])&&jr(i,1),s[2]|=1024}}}(t),function ov(e){for(let t=dl(e);null!==t;t=hl(t))for(let n=10;n<t.length;n++){const r=t[n],s=r[1];Ut(r)&&Ui(s,r,s.template,r[8])}}(t),null!==e.contentQueries&&Sd(e,t),!i)if(a){const E=e.contentCheckHooks;null!==E&&on(t,E)}else{const E=e.contentHooks;null!==E&&Xr(t,E,1),rr(t,1)}!function Uy(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)Xe(~s);else{const i=s,a=n[++r],d=n[++r];en(a,i),d(2,t[i])}}}finally{Xe(-1)}}(e,t);const d=e.components;null!==d&&function Hy(e,t){for(let n=0;n<t.length;n++)lv(e,t[n])}(t,d);const p=e.viewQuery;if(null!==p&&Hl(2,p,r),!i)if(a){const E=e.viewCheckHooks;null!==E&&on(t,E)}else{const E=e.viewHooks;null!==E&&Xr(t,E,2),rr(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,jr(t[3],-1))}finally{Jr()}}function $y(e,t,n,r){const s=t[10],i=!ne(),a=Wt(t);try{i&&!a&&s.begin&&s.begin(),a&&Oo(e,t,r),Ui(e,t,n,r)}finally{i&&!a&&s.end&&s.end()}}function Md(e,t,n,r,s){const i=Ge(),a=2&r;try{Xe(-1),a&&t.length>20&&gd(e,t,20,ne()),n(r,s)}finally{Xe(i)}}function Ad(e,t,n){if(Dr(t)){const s=t.directiveEnd;for(let i=t.directiveStart;i<s;i++){const a=e.data[i];a.contentQueries&&a.contentQueries(1,n[i],i)}}}function xl(e,t,n){!Os()||(function Jy(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||Ai(n,t),ir(r,t);const a=n.initialInputs;for(let d=s;d<i;d++){const p=e.data[d],E=Gt(p);E&&rv(t,n,p);const w=Lt(t,e,d,n);ir(w,t),null!==a&&sv(0,d-s,w,p,0,a),E&&(ut(n.index,t)[8]=w)}}(e,t,n,Ue(n,t)),128==(128&n.flags)&&function Xy(e,t,n){const r=n.directiveStart,s=n.directiveEnd,a=n.index,d=function sn(){return tt.lFrame.currentDirectiveIndex}();try{Xe(a);for(let p=r;p<s;p++){const E=e.data[p],w=t[p];yn(p),(null!==E.hostBindings||0!==E.hostVars||null!==E.hostAttrs)&&kd(E,w)}}finally{Xe(-1),yn(d)}}(e,t,n))}function Nl(e,t,n=Ue){const r=t.localNames;if(null!==r){let s=t.index+1;for(let i=0;i<r.length;i+=2){const a=r[i+1],d=-1===a?n(t,e):e[a];e[s++]=d}}}function Id(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=va(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function va(e,t,n,r,s,i,a,d,p,E){const w=20+r,P=w+s,z=function zy(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:_t);return n}(w,P),X="function"==typeof E?E():E;return z[1]={type:e,blueprint:z,template:n,queries:null,viewQuery:d,declTNode:t,data:z.slice().fill(null,w),bindingStartIndex:w,expandoStartIndex:P,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 a?a():a,firstChild:null,schemas:p,consts:X,incompleteFirstPass:!1}}function Rd(e,t,n,r){const s=Vd(t);null===n?s.push(r):(s.push(n),e.firstCreatePass&&$d(e).push(r,s.length-1))}function xd(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 Rr(e,t,n,r,s,i,a,d){const p=Ue(t,n);let w,E=t.inputs;!d&&null!=E&&(w=E[r])?(Wd(e,n,w,r,s),Yr(t)&&function Yy(e,t){const n=ut(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function Ky(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=a?a(s,t.value||"",r):s,m(i)?i.setProperty(p,r,s):fo(r)||(p.setProperty?p.setProperty(r,s):p[r]=s))}function Fl(e,t,n,r){let s=!1;if(Os()){const i=function ev(e,t,n){const r=e.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const a=r[i];hd(n,a.selectors,!1)&&(s||(s=[]),y(Ai(n,t),e,a.type),Gt(a)?(Ld(e,n),s.unshift(a)):s.push(a))}return s}(e,t,n),a=null===r?null:{"":-1};if(null!==i){s=!0,Bd(n,e.data.length,i.length);for(let w=0;w<i.length;w++){const P=i[w];P.providersResolver&&P.providersResolver(P)}let d=!1,p=!1,E=ji(e,t,i.length,null);for(let w=0;w<i.length;w++){const P=i[w];n.mergedAttrs=Si(n.mergedAttrs,P.hostAttrs),jd(e,n,t,E,P),nv(E,P,a),null!==P.contentQueries&&(n.flags|=8),(null!==P.hostBindings||null!==P.hostAttrs||0!==P.hostVars)&&(n.flags|=128);const z=P.type.prototype;!d&&(z.ngOnChanges||z.ngOnInit||z.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),d=!0),!p&&(z.ngOnChanges||z.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),p=!0),E++}!function Wy(e,t){const r=t.directiveEnd,s=e.data,i=t.attrs,a=[];let d=null,p=null;for(let E=t.directiveStart;E<r;E++){const w=s[E],P=w.inputs,z=null===i||dd(t)?null:iv(P,i);a.push(z),d=xd(P,E,d),p=xd(w.outputs,E,p)}null!==d&&(d.hasOwnProperty("class")&&(t.flags|=16),d.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=d,t.outputs=p}(e,n)}a&&function tv(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 Pe("301",`Export of name '${t[s+1]}' not found!`);r.push(t[s],i)}}}(n,r,a)}return n.mergedAttrs=Si(n.mergedAttrs,n.attrs),s}function Fd(e,t,n,r,s,i){const a=i.hostBindings;if(a){let d=e.hostBindingOpCodes;null===d&&(d=e.hostBindingOpCodes=[]);const p=~t.index;(function Zy(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,a)}}function kd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ld(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function nv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Gt(t)&&(n[""]=e)}}function Bd(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function jd(e,t,n,r,s){e.data[r]=s;const i=s.factory||(s.factory=mn(s.type)),a=new Qs(i,Gt(s),null);e.blueprint[r]=a,n[r]=a,Fd(e,t,0,r,ji(e,n,s.hostVars,_t),s)}function rv(e,t,n){const r=Ue(t,e),s=Id(n),i=e[10],a=_a(e,Po(e,s,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=a}function Cs(e,t,n,r,s,i){const a=Ue(e,t);!function kl(e,t,n,r,s,i,a){if(null==i)m(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const d=null==a?ie(i):a(i,r||"",s);m(e)?e.setAttribute(t,s,d,n):n?t.setAttributeNS(n,s,d):t.setAttribute(s,d)}}(t[11],a,i,e.value,n,r,s)}function sv(e,t,n,r,s,i){const a=i[t];if(null!==a){const d=r.setInput;for(let p=0;p<a.length;){const E=a[p++],w=a[p++],P=a[p++];null!==d?r.setInput(n,P,E,w):n[w]=P}}}function iv(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 Ud(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function lv(e,t){const n=ut(t,e);if(Ut(n)){const r=n[1];80&n[2]?Ui(r,n,r.template,n[8]):n[5]>0&&Ll(n)}}function Ll(e){for(let r=dl(e);null!==r;r=hl(r))for(let s=10;s<r.length;s++){const i=r[s];if(1024&i[2]){const a=i[1];Ui(a,i,a.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=ut(n[r],e);Ut(s)&&s[5]>0&&Ll(s)}}function uv(e,t){const n=ut(t,e),r=n[1];(function cv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Oo(r,n,n[8])}function _a(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=Ao(e);if(si(e)&&!t)return e;e=t}return null}function Ul(e,t,n){const r=t[10];r.begin&&r.begin();try{Ui(e,t,e.template,n)}catch(s){throw Gd(t,s),s}finally{r.end&&r.end()}}function Hd(e){!function jl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=ol(n),s=r[1];$y(s,r,s.template,n)}}(e[8])}function Hl(e,t,n){qn(0),t(e,n)}const pv=(()=>Promise.resolve(null))();function Vd(e){return e[7]||(e[7]=[])}function $d(e){return e.cleanup||(e.cleanup=[])}function zd(e,t,n){return(null===e||Gt(e))&&(n=function H(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Gd(e,t){const n=e[9],r=n?n.get(Mo,null):null;r&&r.handleError(t)}function Wd(e,t,n,r,s){for(let i=0;i<n.length;){const a=n[i++],d=n[i++],p=t[a],E=e.data[a];null!==E.setInput?E.setInput(p,s,r,d):p[d]=s}}function Fs(e,t,n){const r=Me(t,e);!function Yc(e,t,n){m(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function Da(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,i=0;if(null!==t)for(let a=0;a<t.length;a++){const d=t[a];"number"==typeof d?i=d:1==i?s=oe(s,d):2==i&&(r=oe(r,d+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}const Vl=new _n("INJECTOR",-1);class Kd{get(t,n=vo){if(n===vo){const r=new Error(`NullInjectorError: No provider for ${F(t)}!`);throw r.name="NullInjectorError",r}return n}}const $l=new _n("Set Injector scope."),Ro={},yv={};let zl;function Yd(){return void 0===zl&&(zl=new Kd),zl}function Qd(e,t=null,n=null,r){const s=qd(e,t,n,r);return s._resolveInjectorDefTypes(),s}function qd(e,t=null,n=null,r){return new vv(e,n,t||Yd(),r)}class vv{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&&vs(n,d=>this.processProvider(d,t,n)),vs([t],d=>this.processInjectorType(d,[],i)),this.records.set(Vl,Hi(void 0,this));const a=this.records.get($l);this.scope=null!=a?a.value:null,this.source=s||("object"==typeof t?null:F(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=vo,r=nt.Default){this.assertNotDestroyed();const s=mc(this),i=W(void 0);try{if(!(r&nt.SkipSelf)){let d=this.records.get(t);if(void 0===d){const p=function Sv(e){return"function"==typeof e||"object"==typeof e&&e instanceof _n}(t)&&zt(t);d=p&&this.injectableDefInScope(p)?Hi(Gl(t),Ro):null,this.records.set(t,d)}if(null!=d)return this.hydrate(t,d)}return(r&nt.Self?Yd():this.parent).get(t,n=r&nt.Optional&&n===vo?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[aa]=a[aa]||[]).unshift(F(t)),s)throw a;return function Zg(e,t,n,r){const s=e[aa];throw t[gc]&&s.unshift(t[gc]),e.message=function Jg(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=F(t);if(Array.isArray(t))s=t.map(F).join(" -> ");else if("object"==typeof t){let i=[];for(let a in t)if(t.hasOwnProperty(a)){let d=t[a];i.push(a+":"+("string"==typeof d?JSON.stringify(d):F(d)))}s=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Gg,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[aa]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{W(i),mc(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,s)=>t.push(F(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=ee(t)))return!1;let s=Jn(t);const i=null==s&&t.ngModule||void 0,a=void 0===i?t:i,d=-1!==r.indexOf(a);if(void 0!==i&&(s=Jn(i)),null==s)return!1;if(null!=s.imports&&!d){let w;r.push(a);try{vs(s.imports,P=>{this.processInjectorType(P,n,r)&&(void 0===w&&(w=[]),w.push(P))})}finally{}if(void 0!==w)for(let P=0;P<w.length;P++){const{ngModule:z,providers:X}=w[P];vs(X,ye=>this.processProvider(ye,z,X||rt))}}this.injectorDefTypes.add(a);const p=mn(a)||(()=>new a);this.records.set(a,Hi(p,Ro));const E=s.providers;if(null!=E&&!d){const w=t;vs(E,P=>this.processProvider(P,w,E))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let s=Vi(t=ee(t))?t:ee(t&&t.provide);const i=function Dv(e,t,n){return Jd(e)?Hi(void 0,e.useValue):Hi(Zd(e),Ro)}(t);if(Vi(t)||!0!==t.multi)this.records.get(s);else{let a=this.records.get(s);a||(a=Hi(void 0,Ro,!0),a.factory=()=>qa(a.multi),this.records.set(s,a)),s=t,a.multi.push(t)}this.records.set(s,i)}hydrate(t,n){return n.value===Ro&&(n.value=yv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Tv(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=ee(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Gl(e){const t=zt(e),n=null!==t?t.factory:mn(e);if(null!==n)return n;if(e instanceof _n)throw new Error(`Token ${F(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function _v(e){const t=e.length;if(t>0){const r=yo(t,"?");throw new Error(`Can't resolve all parameters for ${F(e)}: (${r.join(", ")}).`)}const n=function nn(e){const t=e&&(e[Vn]||e[Ht]);if(t){const n=function Hn(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 Error("unreachable")}function Zd(e,t,n){let r;if(Vi(e)){const s=ee(e);return mn(s)||Gl(s)}if(Jd(e))r=()=>ee(e.useValue);else if(function Cv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...qa(e.deps||[]));else if(function Ev(e){return!(!e||!e.useExisting)}(e))r=()=>Yn(ee(e.useExisting));else{const s=ee(e&&(e.useClass||e.provide));if(!function wv(e){return!!e.deps}(e))return mn(s)||Gl(s);r=()=>new s(...qa(e.deps))}return r}function Hi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Jd(e){return null!==e&&"object"==typeof e&&Kg in e}function Vi(e){return"function"==typeof e}let Gr=(()=>{class e{static create(n,r){var s;if(Array.isArray(n))return Qd({name:""},r,n,"");{const i=null!==(s=n.name)&&void 0!==s?s:"";return Qd({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=vo,e.NULL=new Kd,e.\u0275prov=Be({token:e,providedIn:"any",factory:()=>Yn(Vl)}),e.__NG_ELEMENT_ID__=-1,e})();function Nv(e,t){Zn(ol(e)[1],C())}function Yl(e){let t=function ch(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(Gt(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(n){r.push(s);const a=e;a.inputs=Ql(e.inputs),a.declaredInputs=Ql(e.declaredInputs),a.outputs=Ql(e.outputs);const d=s.hostBindings;d&&Bv(e,d);const p=s.viewQuery,E=s.contentQueries;if(p&&kv(e,p),E&&Lv(e,E),V(e.inputs,s.inputs),V(e.declaredInputs,s.declaredInputs),V(e.outputs,s.outputs),Gt(s)&&s.data.animation){const w=e.data;w.animation=(w.animation||[]).concat(s.data.animation)}}const i=s.features;if(i)for(let a=0;a<i.length;a++){const d=i[a];d&&d.ngInherit&&d(e),d===Yl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Fv(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=Si(s.hostAttrs,n=Si(n,s.hostAttrs))}}(r)}function Ql(e){return e===mt?{}:e===rt?[]:e}function kv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Lv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,i)=>{t(r,s,i),n(r,s,i)}:t}function Bv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}let Ea=null;function $i(){if(!Ea){const e=je.Symbol;if(e&&e.iterator)Ea=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&&(Ea=r)}}}return Ea}function xo(e){return!!ql(e)&&(Array.isArray(e)||!(e instanceof Map)&&$i()in e)}function ql(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bs(e,t,n){return e[t]=n}function No(e,t){return e[t]}function or(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function pi(e,t,n,r){const s=or(e,t,n);return or(e,t+1,r)||s}function Wr(e,t,n,r,s,i){const a=pi(e,t,n,r);return pi(e,t+2,s,i)||a}function Zl(e,t,n,r){const s=Ae();return or(s,yt(),t)&&(wt(),Cs(Je(),s,e,t,n,r)),Zl}function Gi(e,t,n,r){return or(e,yt(),n)?t+ie(n)+r:_t}function Wi(e,t,n,r,s,i){const d=pi(e,function Ve(){return tt.lFrame.bindingIndex}(),n,s);return qe(2),d?t+ie(n)+r+ie(s)+i:_t}function Dh(e,t,n,r,s,i,a,d){const p=Ae(),E=wt(),w=e+20,P=E.firstCreatePass?function Gv(e,t,n,r,s,i,a,d,p){const E=t.consts,w=Bi(t,e,4,a||null,Pn(E,d));Fl(t,n,w,Pn(E,p)),Zn(t,w);const P=w.tViews=va(2,w,r,s,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,E);return null!==t.queries&&(t.queries.template(t,w),P.queries=t.queries.embeddedTView(w)),w}(w,E,p,t,n,r,s,i,a):E.data[w];f(P,!1);const z=p[11].createComment("");fa(E,p,z,P),ir(z,p),_a(p,p[w]=Ud(z,p,z,P)),Ar(P)&&xl(E,p,P),null!=a&&Nl(p,P,d)}function Eh(e){return xt(function j(){return tt.lFrame.contextLView}(),20+e)}function Fo(e,t=nt.Default){const n=Ae();return null===n?Yn(e,t):G(C(),n,ee(e),t)}function Rh(){throw new Error("invalid")}function nu(e,t,n){const r=Ae();return or(r,yt(),t)&&Rr(wt(),Je(),r,e,t,r[11],n,!1),nu}function ru(e,t,n,r,s){const a=s?"class":"style";Wd(e,n,t.inputs[a],a,r)}function su(e,t,n,r){const s=Ae(),i=wt(),a=20+e,d=s[11],p=s[a]=pl(d,t,function Jt(){return tt.lFrame.currentNamespace}()),E=i.firstCreatePass?function h_(e,t,n,r,s,i,a){const d=t.consts,E=Bi(t,e,2,s,Pn(d,i));return Fl(t,n,E,Pn(d,a)),null!==E.attrs&&Da(E,E.attrs,!1),null!==E.mergedAttrs&&Da(E,E.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,E),E}(a,i,s,0,t,n,r):i.data[a];f(E,!0);const w=E.mergedAttrs;null!==w&&ci(d,p,w);const P=E.classes;null!==P&&Dl(d,p,P);const z=E.styles;null!==z&&ld(d,p,z),64!=(64&E.flags)&&fa(i,s,p,E),0===function Ps(){return tt.lFrame.elementDepthCount}()&&ir(p,s),function ms(){tt.lFrame.elementDepthCount++}(),Ar(E)&&(xl(i,s,E),Ad(i,E,s)),null!==r&&Nl(s,E)}function iu(){let e=C();b()?I():(e=e.parent,f(e,!1));const t=e;!function lo(){tt.lFrame.elementDepthCount--}();const n=wt();n.firstCreatePass&&(Zn(n,e),Dr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qo(e){return 0!=(16&e.flags)}(t)&&ru(n,t,Ae(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ho(e){return 0!=(32&e.flags)}(t)&&ru(n,t,Ae(),t.stylesWithoutHost,!1)}function xh(e,t,n,r){su(e,t,n,r),iu()}function ou(e,t,n){const r=Ae(),s=wt(),i=e+20,a=s.firstCreatePass?function f_(e,t,n,r,s){const i=t.consts,a=Pn(i,r),d=Bi(t,e,8,"ng-container",a);return null!==a&&Da(d,a,!0),Fl(t,n,d,Pn(i,s)),null!==t.queries&&t.queries.elementStart(t,d),d}(i,s,r,t,n):s.data[i];f(a,!0);const d=r[i]=r[11].createComment("");fa(s,r,d,a),ir(d,r),Ar(a)&&(xl(s,r,a),Ad(s,a,r)),null!=n&&Nl(r,a)}function au(){let e=C();const t=wt();b()?I():(e=e.parent,f(e,!1)),t.firstCreatePass&&(Zn(t,e),Dr(e)&&t.queries.elementEnd(e))}function Nh(e,t,n){ou(e,t,n),au()}function Fh(){return Ae()}function lu(e){return!!e&&"function"==typeof e.then}function kh(e){return!!e&&"function"==typeof e.subscribe}const Lh=kh;function uu(e,t,n,r){const s=Ae(),i=wt(),a=C();return Bh(i,s,s[11],a,e,t,!!n,r),uu}function cu(e,t){const n=C(),r=Ae(),s=wt();return Bh(s,r,zd(vn(s.data),n,r),n,e,t,!1),cu}function Bh(e,t,n,r,s,i,a,d){const p=Ar(r),w=e.firstCreatePass&&$d(e),P=t[8],z=Vd(t);let X=!0;if(3&r.type||d){const Le=Ue(r,t),Qe=d?d(Le):Le,Se=z.length,it=d?Rt=>d(S(Rt[r.index])):r.index;if(m(n)){let Rt=null;if(!d&&p&&(Rt=function p_(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const a=s[i];if(a===n&&s[i+1]===r){const d=t[7],p=s[i+2];return d.length>p?d[p]:null}"string"==typeof a&&(i+=2)}return null}(e,t,s,r.index)),null!==Rt)(Rt.__ngLastListenerFn__||Rt).__ngNextListenerFn__=i,Rt.__ngLastListenerFn__=i,X=!1;else{i=du(r,t,P,i,!1);const Yt=n.listen(Qe,s,i);z.push(i,Yt),w&&w.push(s,it,Se,Se+1)}}else i=du(r,t,P,i,!0),Qe.addEventListener(s,i,a),z.push(i),w&&w.push(s,it,Se,a)}else i=du(r,t,P,i,!1);const ye=r.outputs;let xe;if(X&&null!==ye&&(xe=ye[s])){const Le=xe.length;if(Le)for(let Qe=0;Qe<Le;Qe+=2){const Nr=t[xe[Qe]][xe[Qe+1]].subscribe(i),yi=z.length;z.push(i,Nr),w&&w.push(s,r.index,yi,-(yi+1))}}}function jh(e,t,n,r){try{return!1!==n(r)}catch(s){return Gd(e,s),!1}}function du(e,t,n,r,s){return function i(a){if(a===Function)return r;const d=2&e.flags?ut(e.index,t):t;0==(32&t[2])&&Bl(d);let p=jh(t,0,r,a),E=i.__ngNextListenerFn__;for(;E;)p=jh(t,0,E,a)&&p,E=E.__ngNextListenerFn__;return s&&!1===p&&(a.preventDefault(),a.returnValue=!1),p}}function Uh(e=1){return function bi(e){return(tt.lFrame.contextLView=function Ke(e,t){for(;e>0;)t=t[15],e--;return t}(e,tt.lFrame.contextLView))[8]}(e)}function g_(e,t){let n=null;const r=function by(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?hd(e,i,!0):Sy(r,i))return s}else n=s}return n}function Hh(e){const t=Ae()[16][6];if(!t.projection){const r=t.projection=yo(e?e.length:1,null),s=r.slice();let i=t.child;for(;null!==i;){const a=e?g_(i,e):0;null!==a&&(s[a]?s[a].projectionNext=i:r[a]=i,s[a]=i),i=i.next}}}function Vh(e,t=0,n){const r=Ae(),s=wt(),i=Bi(s,20+e,16,null,n||null);null===i.projection&&(i.projection=t),I(),64!=(64&i.flags)&&function my(e,t,n){ad(t[11],0,t,n,Zc(e,n,t),td(n.parent||t[6],n,t))}(s,r,i)}function hu(e,t,n){return wa(e,"",t,"",n),hu}function wa(e,t,n,r,s){const i=Ae(),a=Gi(i,t,n,r);return a!==_t&&Rr(wt(),Je(),i,e,a,i[11],s,!1),wa}function Zh(e,t,n,r,s){const i=e[n+1],a=null===t;let d=r?rs(i):Ns(i),p=!1;for(;0!==d&&(!1===p||a);){const w=e[d+1];v_(e[d],t)&&(p=!0,e[d+1]=r?bl(w):El(w)),d=r?rs(w):Ns(w)}p&&(e[n+1]=r?El(i):bl(i))}function v_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Oi(e,t)>=0}const jn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jh(e){return e.substring(jn.key,jn.keyEnd)}function Xh(e,t){const n=jn.textEnd;return n===t?-1:(t=jn.keyEnd=function C_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,jn.key=t,n),eo(e,t,n))}function eo(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 pu(e,t){return is(e,t,null,!0),pu}function sf(e){os(Or,Ts,e,!0)}function Ts(e,t){for(let n=function D_(e){return function tf(e){jn.key=0,jn.keyEnd=0,jn.value=0,jn.valueEnd=0,jn.textEnd=e.length}(e),Xh(e,eo(e,0,jn.textEnd))}(t);n>=0;n=Xh(t,n))Or(e,Jh(t),!0)}function is(e,t,n,r){const s=Ae(),i=wt(),a=qe(2);i.firstUpdatePass&&af(i,e,a,r),t!==_t&&or(s,a,t)&&uf(i,i.data[Ge()],s,s[11],e,s[a+1]=function R_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=F(xs(e)))),e}(t,n),r,a)}function os(e,t,n,r){const s=wt(),i=qe(2);s.firstUpdatePass&&af(s,null,i,r);const a=Ae();if(n!==_t&&or(a,i,n)){const d=s.data[Ge()];if(df(d,r)&&!of(s,i)){let p=r?d.classesWithoutHost:d.stylesWithoutHost;null!==p&&(n=oe(p,n||"")),ru(s,d,a,n,r)}else!function O_(e,t,n,r,s,i,a,d){s===_t&&(s=rt);let p=0,E=0,w=0<s.length?s[0]:null,P=0<i.length?i[0]:null;for(;null!==w||null!==P;){const z=p<s.length?s[p+1]:void 0,X=E<i.length?i[E+1]:void 0;let xe,ye=null;w===P?(p+=2,E+=2,z!==X&&(ye=P,xe=X)):null===P||null!==w&&w<P?(p+=2,ye=w):(E+=2,ye=P,xe=X),null!==ye&&uf(e,t,n,r,ye,xe,a,d),w=p<s.length?s[p]:null,P=E<i.length?i[E]:null}}(s,d,a,a[11],a[i+1],a[i+1]=function P_(e,t,n){if(null==n||""===n)return rt;const r=[],s=xs(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 of(e,t){return t>=e.expandoStartIndex}function af(e,t,n,r){const s=e.data;if(null===s[n+1]){const i=s[Ge()],a=of(e,n);df(i,r)&&null===t&&!a&&(t=!1),t=function S_(e,t,n,r){const s=vn(e);let i=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=ko(n=gu(null,e,t,n,r),t.attrs,r),i=null);else{const a=t.directiveStylingLast;if(-1===a||e[a]!==s)if(n=gu(s,e,t,n,r),null===i){let p=function M_(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ns(r))return e[rs(r)]}(e,t,r);void 0!==p&&Array.isArray(p)&&(p=gu(null,e,t,p[1],r),p=ko(p,t.attrs,r),function A_(e,t,n,r){e[rs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,p))}else i=function I_(e,t,n){let r;const s=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<s;i++)r=ko(r,e[i].hostAttrs,n);return ko(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(s,i,t,r),function m_(e,t,n,r,s,i){let a=i?t.classBindings:t.styleBindings,d=rs(a),p=Ns(a);e[r]=n;let w,E=!1;if(Array.isArray(n)){const P=n;w=P[1],(null===w||Oi(P,w)>0)&&(E=!0)}else w=n;if(s)if(0!==p){const z=rs(e[d+1]);e[r+1]=ga(z,d),0!==z&&(e[z+1]=Cl(e[z+1],r)),e[d+1]=function Py(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=ga(d,0),0!==d&&(e[d+1]=Cl(e[d+1],r)),d=r;else e[r+1]=ga(p,0),0===d?d=r:e[p+1]=Cl(e[p+1],r),p=r;E&&(e[r+1]=El(e[r+1])),Zh(e,w,r,!0),Zh(e,w,r,!1),function y_(e,t,n,r,s){const i=s?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Oi(i,t)>=0&&(n[r+1]=bl(n[r+1]))}(t,w,e,r,i),a=ga(d,p),i?t.classBindings=a:t.styleBindings=a}(s,i,t,n,a,r)}}function gu(e,t,n,r,s){let i=null;const a=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<a&&(i=t[d],r=ko(r,i.hostAttrs,s),i!==e);)d++;return null!==e&&(n.directiveStylingLast=d),r}function ko(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let i=0;i<t.length;i++){const a=t[i];"number"==typeof a?s=a:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Or(e,a,!!n||t[++i]))}return void 0===e?null:e}function uf(e,t,n,r,s,i,a,d){if(!(3&t.type))return;const p=e.data,E=p[d+1];Ta(function vd(e){return 1==(1&e)}(E)?cf(p,t,n,s,Ns(E),a):void 0)||(Ta(i)||function yd(e){return 2==(2&e)}(E)&&(i=cf(p,null,n,s,d,a)),function vy(e,t,n,r,s){const i=m(e);if(t)s?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let a=-1===r.indexOf("-")?void 0:Es.DashCase;if(null==s)i?e.removeStyle(n,r,a):n.style.removeProperty(r);else{const d="string"==typeof s&&s.endsWith("!important");d&&(s=s.slice(0,-10),a|=Es.Important),i?e.setStyle(n,r,s,a):n.style.setProperty(r,s,d?"important":"")}}}(r,a,Me(Ge(),n),s,i))}function cf(e,t,n,r,s,i){const a=null===t;let d;for(;s>0;){const p=e[s],E=Array.isArray(p),w=E?p[1]:p,P=null===w;let z=n[s+1];z===_t&&(z=P?rt:void 0);let X=P?Ka(z,r):w===r?z:void 0;if(E&&!Ta(X)&&(X=Ka(p,r)),Ta(X)&&(d=X,a))return d;const ye=e[s+1];s=a?rs(ye):Ns(ye)}if(null!==t){let p=i?t.residualClasses:t.residualStyles;null!=p&&(d=Ka(p,r))}return d}function Ta(e){return void 0!==e}function df(e,t){return 0!=(e.flags&(t?16:32))}function hf(e,t=""){const n=Ae(),r=wt(),s=e+20,i=r.firstCreatePass?Bi(r,s,1,t,null):r.data[s],a=n[s]=function fl(e,t){return m(e)?e.createText(t):e.createTextNode(t)}(n[11],t);fa(r,n,a,i),f(i,!1)}function mu(e){return Sa("",e,""),mu}function Sa(e,t,n){const r=Ae(),s=Gi(r,e,t,n);return s!==_t&&Fs(r,Ge(),s),Sa}function yu(e,t,n,r,s){const i=Ae(),a=Wi(i,e,t,n,r,s);return a!==_t&&Fs(i,Ge(),a),yu}function Df(e,t,n){os(Or,Ts,Gi(Ae(),e,t,n),!0)}function vu(e,t,n){const r=Ae();return or(r,yt(),t)&&Rr(wt(),Je(),r,e,t,r[11],n,!0),vu}function _u(e,t,n){const r=Ae();if(or(r,yt(),t)){const i=wt(),a=Je();Rr(i,a,r,e,t,zd(vn(i.data),a,r),n,!0)}return _u}const gi=void 0;var Z_=["en",[["a","p"],["AM","PM"],gi],[["AM","PM"],gi,gi],[["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"]],gi,[["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"]],gi,[["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}",gi,"{1} 'at' {0}",gi],[".",",",";","%","+","-","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 to={};function Du(e){const t=function J_(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Of(t);if(n)return n;const r=t.split("-")[0];if(n=Of(r),n)return n;if("en"===r)return Z_;throw new Error(`Missing locale data for the locale "${e}".`)}function Pf(e){return Du(e)[ct.PluralCase]}function Of(e){return e in to||(to[e]=je.ng&&je.ng.common&&je.ng.common.locales&&je.ng.common.locales[e]),to[e]}var ct=(()=>((ct=ct||{})[ct.LocaleId=0]="LocaleId",ct[ct.DayPeriodsFormat=1]="DayPeriodsFormat",ct[ct.DayPeriodsStandalone=2]="DayPeriodsStandalone",ct[ct.DaysFormat=3]="DaysFormat",ct[ct.DaysStandalone=4]="DaysStandalone",ct[ct.MonthsFormat=5]="MonthsFormat",ct[ct.MonthsStandalone=6]="MonthsStandalone",ct[ct.Eras=7]="Eras",ct[ct.FirstDayOfWeek=8]="FirstDayOfWeek",ct[ct.WeekendRange=9]="WeekendRange",ct[ct.DateFormat=10]="DateFormat",ct[ct.TimeFormat=11]="TimeFormat",ct[ct.DateTimeFormat=12]="DateTimeFormat",ct[ct.NumberSymbols=13]="NumberSymbols",ct[ct.NumberFormats=14]="NumberFormats",ct[ct.CurrencyCode=15]="CurrencyCode",ct[ct.CurrencySymbol=16]="CurrencySymbol",ct[ct.CurrencyName=17]="CurrencyName",ct[ct.Currencies=18]="Currencies",ct[ct.Directionality=19]="Directionality",ct[ct.PluralCase=20]="PluralCase",ct[ct.ExtraData=21]="ExtraData",ct))();const Ma="en-US";let Rf=Ma;function bu(e,t,n,r,s){if(e=ee(e),Array.isArray(e))for(let i=0;i<e.length;i++)bu(e[i],t,n,r,s);else{const i=wt(),a=Ae();let d=Vi(e)?e:ee(e.provide),p=Zd(e);const E=C(),w=1048575&E.providerIndexes,P=E.directiveStart,z=E.providerIndexes>>20;if(Vi(e)||!e.multi){const X=new Qs(p,s,Fo),ye=Tu(d,t,s?w:w+z,P);-1===ye?(y(Ai(E,a),i,d),wu(i,e,t.length),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(X),a.push(X)):(n[ye]=X,a[ye]=X)}else{const X=Tu(d,t,w+z,P),ye=Tu(d,t,w,w+z),xe=X>=0&&n[X],Le=ye>=0&&n[ye];if(s&&!Le||!s&&!xe){y(Ai(E,a),i,d);const Qe=function qD(e,t,n,r,s){const i=new Qs(e,n,Fo);return i.multi=[],i.index=t,i.componentProviders=0,np(i,s,r&&!n),i}(s?QD:YD,n.length,s,r,p);!s&&Le&&(n[ye].providerFactory=Qe),wu(i,e,t.length,0),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(Qe),a.push(Qe)}else wu(i,e,X>-1?X:ye,np(n[s?ye:X],p,!s&&r));!s&&r&&Le&&n[ye].componentProviders++}}}function wu(e,t,n,r){const s=Vi(t),i=function bv(e){return!!e.useClass}(t);if(s||i){const p=(i?ee(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 np(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 YD(e,t,n,r){return Su(this.multi,[])}function QD(e,t,n,r){const s=this.multi;let i;if(this.providerFactory){const a=this.providerFactory.componentProviders,d=Lt(n,n[1],this.providerFactory.index,r);i=d.slice(0,a),Su(s,i);for(let p=a;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 rp(e,t=[]){return n=>{n.providersResolver=(r,s)=>function KD(e,t,n){const r=wt();if(r.firstCreatePass){const s=Gt(e);bu(n,r.data,r.blueprint,s,!0),bu(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class sp{}class XD{resolveComponentFactory(t){throw function JD(e){const t=Error(`No component factory found for ${F(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ho=(()=>{class e{}return e.NULL=new XD,e})();function eE(){return ro(C(),Ae())}function ro(e,t){return new Vo(Ue(e,t))}let Vo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=eE,e})();function tE(e){return e instanceof Vo?e.nativeElement:e}class op{}let nE=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function sE(){const e=Ae(),n=ut(C().index,e);return function rE(e){return e[11]}(Gn(n)?n:e)}(),e})(),iE=(()=>{class e{}return e.\u0275prov=Be({token:e,providedIn:"root",factory:()=>null}),e})();class ap{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const oE=new ap("13.0.3"),Mu={};function Ra(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(S(i)),Ln(i))for(let d=10;d<i.length;d++){const p=i[d],E=p[1].firstChild;null!==E&&Ra(p[1],p,E,r)}const a=n.type;if(8&a)Ra(e,t,n.child,r);else if(32&a){const d=cl(n,t);let p;for(;p=d();)r.push(p)}else if(16&a){const d=id(t,n);if(Array.isArray(d))r.push(...d);else{const p=Ao(t[16]);Ra(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 Ra(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(Ln(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(gl(t,r),ia(n,r))}this._attachedToViewContainer=!1}qc(this._lView[1],this._lView)}onDestroy(t){Rd(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 hv(e,t,n){me(!0);try{Ul(e,t,n)}finally{me(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ly(e,t){Io(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class aE extends $o{constructor(t){super(t),this._view=t}detectChanges(){Hd(this._view)}checkNoChanges(){!function fv(e){me(!0);try{Hd(e)}finally{me(!1)}}(this._view)}get context(){return null}}class lp extends Ho{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=R(t);return new Au(n,this.ngModule)}}function up(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const uE=new _n("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Vc});class Au extends sp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Ay(e){return e.map(My).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return up(this.componentDef.inputs)}get outputs(){return up(this.componentDef.outputs)}create(t,n,r,s){const i=(s=s||this.ngModule)?function cE(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,a=i.get(op,T),d=i.get(iE,null),p=a.createRenderer(null,this.componentDef),E=this.componentDef.selectors[0][0]||"div",w=r?function Od(e,t,n){if(m(e))return e.selectRootElement(t,n===Ct.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(p,r,this.componentDef.encapsulation):pl(a.createRenderer(null,this.componentDef),E,function lE(e){const t=e.toLowerCase();return"svg"===t?Gs:"math"===t?"http://www.w3.org/1998/MathML/":null}(E)),P=this.componentDef.onPush?576:528,z=function uh(e,t){return{components:[],scheduler:e||Vc,clean:pv,playerHandler:t||null,flags:0}}(),X=va(0,null,null,1,0,null,null,null,null,null),ye=Po(null,X,z,P,null,null,a,p,d,i);let xe,Le;nr(ye);try{const Qe=function ah(e,t,n,r,s,i){const a=n[1];n[20]=e;const p=Bi(a,20,2,"#host",null),E=p.mergedAttrs=t.hostAttrs;null!==E&&(Da(p,E,!0),null!==e&&(ci(s,e,E),null!==p.classes&&Dl(s,e,p.classes),null!==p.styles&&ld(s,e,p.styles)));const w=r.createRenderer(e,t),P=Po(n,Id(t),null,t.onPush?64:16,n[20],p,r,w,i||null,null);return a.firstCreatePass&&(y(Ai(p,n),a,t.type),Ld(a,p),Bd(p,n.length,1)),_a(n,P),n[20]=P}(w,this.componentDef,ye,a,p);if(w)if(r)ci(p,w,["ng-version",oE.full]);else{const{attrs:Se,classes:it}=function Iy(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(!ns(s))break;s=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Se&&ci(p,w,Se),it&&it.length>0&&Dl(p,w,it.join(" "))}if(Le=kt(X,20),void 0!==n){const Se=Le.projection=[];for(let it=0;it<this.ngContentSelectors.length;it++){const Rt=n[it];Se.push(null!=Rt?Array.from(Rt):null)}}xe=function lh(e,t,n,r,s){const i=n[1],a=function qy(e,t,n){const r=C();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),jd(e,r,t,ji(e,t,1,null),n));const s=Lt(t,e,r.directiveStart,r);ir(s,t);const i=Ue(r,t);return i&&ir(i,t),s}(i,n,t);if(r.components.push(a),e[8]=a,s&&s.forEach(p=>p(a,t)),t.contentQueries){const p=C();t.contentQueries(1,a,p.directiveStart)}const d=C();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Xe(d.index),Fd(n[1],d,0,d.directiveStart,d.directiveEnd,t),kd(t,a)),a}(Qe,this.componentDef,ye,z,[Nv]),Oo(X,ye,null)}finally{Jr()}return new hE(this.componentType,xe,ro(Le,ye),ye,Le)}}class hE extends class ZD{}{constructor(t,n,r,s,i){super(),this.location=r,this._rootLView=s,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new aE(s),this.componentType=t}get injector(){return new sr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class so{}class cp{}const io=new Map;class fp extends so{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new lp(this);const r=bt(t);this._bootstrapComponents=Ds(r.bootstrap),this._r3Injector=qd(t,n,[{provide:so,useValue:this},{provide:Ho,useValue:this.componentFactoryResolver}],F(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Gr.THROW_IF_NOT_FOUND,r=nt.Default){return t===Gr||t===so||t===Vl?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 cp{constructor(t){super(),this.moduleType=t,null!==bt(t)&&function pE(e){const t=new Set;!function n(r){const s=bt(r,!0),i=s.id;null!==i&&(function dp(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${F(t)} vs ${F(t.name)}`)}(i,io.get(i),r),io.set(i,r));const a=Ds(s.imports);for(const d of a)t.has(d)||(t.add(d),n(d))}(e)}(t)}create(t){return new fp(this.moduleType,t)}}function pp(e,t,n){const r=Re()+e,s=Ae();return s[r]===_t?bs(s,r,n?t.call(n):t()):No(s,r)}function gp(e,t,n,r){return Dp(Ae(),Re(),e,t,n,r)}function mp(e,t,n,r,s){return Ep(Ae(),Re(),e,t,n,r,s)}function yp(e,t,n,r,s,i){return Cp(Ae(),Re(),e,t,n,r,s,i)}function vp(e,t,n,r,s,i,a){return function bp(e,t,n,r,s,i,a,d,p){const E=t+n;return Wr(e,E,s,i,a,d)?bs(e,E+4,p?r.call(p,s,i,a,d):r(s,i,a,d)):zo(e,E+4)}(Ae(),Re(),e,t,n,r,s,i,a)}function _p(e,t,n,r,s,i,a,d){const p=Re()+e,E=Ae(),w=Wr(E,p,n,r,s,i);return or(E,p+4,a)||w?bs(E,p+5,d?t.call(d,n,r,s,i,a):t(n,r,s,i,a)):No(E,p+5)}function zo(e,t){const n=e[t];return n===_t?void 0:n}function Dp(e,t,n,r,s,i){const a=t+n;return or(e,a,s)?bs(e,a+1,i?r.call(i,s):r(s)):zo(e,a+1)}function Ep(e,t,n,r,s,i,a){const d=t+n;return pi(e,d,s,i)?bs(e,d+2,a?r.call(a,s,i):r(s,i)):zo(e,d+2)}function Cp(e,t,n,r,s,i,a,d){const p=t+n;return function Ca(e,t,n,r,s){const i=pi(e,t,n,r);return or(e,t+2,s)||i}(e,p,s,i,a)?bs(e,p+3,d?r.call(d,s,i,a):r(s,i,a)):zo(e,p+3)}function Tp(e,t){const n=wt();let r;const s=e+20;n.firstCreatePass?(r=function _E(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=mn(r.type)),a=W(Fo);try{const d=Mi(!1),p=i();return Mi(d),function Wv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ae(),s,p),p}finally{W(a)}}function Sp(e,t,n){const r=e+20,s=Ae(),i=xt(s,r);return Go(s,r)?Dp(s,Re(),t,i.transform,n,i):i.transform(n)}function Mp(e,t,n,r){const s=e+20,i=Ae(),a=xt(i,s);return Go(i,s)?Ep(i,Re(),t,a.transform,n,r,a):a.transform(n,r)}function Ap(e,t,n,r,s){const i=e+20,a=Ae(),d=xt(a,i);return Go(a,i)?Cp(a,Re(),t,d.transform,n,r,s,d):d.transform(n,r,s)}function Go(e,t){return e[1].data[t].pure}function Pu(e){return t=>{setTimeout(e,void 0,t)}}const Ss=class CE extends g.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var s,i,a;let d=t,p=n||(()=>null),E=r;if(t&&"object"==typeof t){const P=t;d=null===(s=P.next)||void 0===s?void 0:s.bind(P),p=null===(i=P.error)||void 0===i?void 0:i.bind(P),E=null===(a=P.complete)||void 0===a?void 0:a.bind(P)}this.__isAsync&&(p=Pu(p),d&&(d=Pu(d)),E&&(E=Pu(E)));const w=super.subscribe({next:d,error:p,complete:E});return t instanceof _.w&&t.add(w),w}};function bE(){return this._results[$i()]()}class xa{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=$i(),r=xa.prototype;r[n]||(r[n]=bE)}get changes(){return this._changes||(this._changes=new Ss)}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=zr(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__=SE,e})();const wE=Wo,TE=class extends wE{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)),Oo(n,r,t),new $o(r)}};function SE(){return Na(C(),Ae())}function Na(e,t){return 4&e.type?new TE(t,e,ro(e,t)):null}let Fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=ME,e})();function ME(){return Op(C(),Ae())}const AE=Fa,Ip=class extends AE{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ro(this._hostTNode,this._hostLView)}get injector(){return new sr(this._hostTNode,this._hostLView)}get parentInjector(){const t=u(this._hostTNode,this._hostLView);if(Xo(t)){const n=Js(t,this._hostLView),r=Zs(t);return new sr(n[1].data[r+8],n)}return new sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Pp(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 a=t&&!function mo(e){return"function"==typeof e}(t);let d;if(a)d=n;else{const P=n||{};d=P.index,r=P.injector,s=P.projectableNodes,i=P.ngModuleRef}const p=a?t:new Au(R(t)),E=r||this.parentInjector;if(!i&&null==p.ngModule&&E){const P=E.get(so,null);P&&(i=P)}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 ln(e){return Ln(e[3])}(r)){const w=this.indexOf(t);if(-1!==w)this.detach(w);else{const P=r[3],z=new Ip(P,P[6],P[3]);z.detach(z.indexOf(t))}}const i=this._adjustIndex(n),a=this._lContainer;!function cy(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],cc(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const a=t[17];null!==a&&n!==a&&function dy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);const d=t[19];null!==d&&d.insertView(e),t[2]|=128}(s,r,a,i);const d=vl(i,a),p=r[11],E=ha(p,a[7]);return null!==E&&function ay(e,t,n,r,s,i){r[0]=s,r[6]=t,Io(e,r,n,1,s,i)}(s,a[6],p,r,E,d),t.attachToViewContainerRef(),cc(Ou(a),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Pp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=gl(this._lContainer,n);r&&(ia(Ou(this._lContainer),n),qc(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=gl(this._lContainer,n);return r&&null!=ia(Ou(this._lContainer),n)?new $o(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Pp(e){return e[8]}function Ou(e){return e[8]||(e[8]=[])}function Op(e,t){let n;const r=t[e.index];if(Ln(r))n=r;else{let s;if(8&e.type)s=S(r);else{const i=t[11];s=i.createComment("");const a=Ue(e,t);fi(i,ha(i,a),s,function gy(e,t){return m(e)?e.nextSibling(t):t.nextSibling}(i,a),!1)}t[e.index]=n=Ud(r,t,s,e),_a(t,n)}return new Ip(n,e,t)}class Ru{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ru(this.queryList)}setDirty(){this.queryList.setDirty()}}class xu{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 a=n.getByIndex(i);s.push(this.queries[a.indexInDeclarationView].clone())}return new xu(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 Rp{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,et(n,t,i,!1,!1))}else r===Wo?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,et(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Vo||s===Fa||s===Wo&&4&n.type)this.addMatch(n.index,-2);else{const i=et(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 RE(e,t){return 11&e.type?ro(e,t):4&e.type?Na(e,t):null}(t,e):-2===n?function NE(e,t,n){return n===Vo?ro(t,e):n===Wo?Na(t,e):n===Fa?Op(t,e):void 0}(e,t,r):Lt(e,e[1],n,t)}function xp(e,t,n,r){const s=t[19].queries[r];if(null===s.matches){const i=e.data,a=n.matches,d=[];for(let p=0;p<a.length;p+=2){const E=a[p];d.push(E<0?null:xE(t,i[E],a[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 a=xp(e,t,s,n);for(let d=0;d<i.length;d+=2){const p=i[d];if(p>0)r.push(a[d/2]);else{const E=i[d+1],w=t[-p];for(let P=10;P<w.length;P++){const z=w[P];z[17]===z[3]&&ku(z[1],z,E,r)}if(null!==w[9]){const P=w[9];for(let z=0;z<P.length;z++){const X=P[z];ku(X[1],X,E,r)}}}}}return r}function Np(e){const t=Ae(),n=wt(),r=Ur();qn(r+1);const s=Up(n,r);if(e.dirty&&Wt(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const i=s.crossesNgTemplate?ku(n,t,r,[]):xp(n,t,s,r);e.reset(i,tE),e.notifyOnChanges()}return!0}return!1}function Fp(e,t,n){const r=wt();r.firstCreatePass&&(jp(r,new Rp(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Bp(r,Ae(),t)}function kp(e,t,n,r){const s=wt();if(s.firstCreatePass){const i=C();jp(s,new Rp(t,n,r),i.index),function kE(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,Ae(),n)}function Lp(){return function FE(e,t){return e[19].queries[t].queryList}(Ae(),Ur())}function Bp(e,t,n){const r=new xa(4==(4&n));Rd(e,t,r,r.destroy),null===t[19]&&(t[19]=new xu),t[19].queries.push(new Ru(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 Na(e,t)}function Ba(...e){}const Vu=new _n("Application Initializer");let ao=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ba,this.reject=Ba,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(lu(i))n.push(i);else if(Lh(i)){const a=new Promise((d,p)=>{i.subscribe({complete:d,error:p})});n.push(a)}}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)(Yn(Vu,8))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e})();const sg=new _n("AppId"),eC={provide:sg,useFactory:function XE(){return`${$u()}${$u()}${$u()}`},deps:[]};function $u(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ig=new _n("Platform Initializer"),og=new _n("Platform ID"),ag=new _n("appBootstrapListener");let lg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e})();const ja=new _n("LocaleId"),ug=new _n("DefaultCurrencyCode");class tC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let zu=(()=>{class e{compileModuleSync(n){return new Iu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Ds(bt(n).declarations).reduce((a,d)=>{const p=R(d);return p&&a.push(new Au(p)),a},[]);return new tC(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=Be({token:e,factory:e.\u0275fac}),e})();const rC=(()=>Promise.resolve(0))();function Gu(e){"undefined"==typeof Zone?rC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class xr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ss(!1),this.onMicrotaskEmpty=new Ss(!1),this.onStable=new Ss(!1),this.onError=new Ss(!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 sC(){let e=je.requestAnimationFrame,t=je.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 aC(e){const t=()=>{!function oC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(je,()=>{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,a,d)=>{try{return cg(e),n.invokeTask(s,i,a,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),dg(e)}},onInvoke:(n,r,s,i,a,d,p)=>{try{return cg(e),n.invoke(s,i,a,d,p)}finally{e.shouldCoalesceRunChangeDetection&&t(),dg(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!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(xr.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,a=i.scheduleEventTask("NgZoneEvent: "+s,t,iC,Ba,Ba);try{return i.runTask(a,n,r)}finally{i.cancelTask(a)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const iC={};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 cg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dg(e){e._nesting--,Wu(e)}class lC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ss,this.onMicrotaskEmpty=new Ss,this.onStable=new Ss,this.onError=new Ss}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:()=>{xr.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(a=>a.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)(Yn(xr))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e})(),fg=(()=>{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=Be({token:e,factory:e.\u0275fac}),e})();class uC{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function cC(e){Yu=e}let as,Yu=new uC;const pg=new _n("AllowMultipleToken");class fC{constructor(t,n){this.name=t,this.token=n}}function gg(e,t,n=[]){const r=`Platform: ${t}`,s=new _n(r);return(i=[])=>{let a=mg();if(!a||a.injector.get(pg,!1))if(e)e(n.concat(i).concat({provide:s,useValue:!0}));else{const d=n.concat(i).concat({provide:s,useValue:!0},{provide:$l,useValue:"platform"});!function pC(e){if(as&&!as.destroyed&&!as.injector.get(pg,!1))throw new Pe("400","");as=e.get(yg);const t=e.get(ig,null);t&&t.forEach(n=>n())}(Gr.create({providers:d,name:r}))}return function gC(e){const t=mg();if(!t)throw new Pe("401","");return t}()}}function mg(){return as&&!as.destroyed?as:null}let yg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const d=function mC(e,t){let n;return n="noop"===e?new lC:("zone.js"===e?void 0:e)||new xr({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:xr,useValue:d}];return d.run(()=>{const E=Gr.create({providers:p,parent:this.injector,name:n.moduleType.name}),w=n.create(E),P=w.injector.get(Mo,null);if(!P)throw new Pe("402","");return d.runOutsideAngular(()=>{const z=d.onError.subscribe({next:X=>{P.handleError(X)}});w.onDestroy(()=>{Qu(this._modules,w),z.unsubscribe()})}),function yC(e,t,n){try{const r=n();return lu(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(P,d,()=>{const z=w.injector.get(ao);return z.runInitializers(),z.donePromise.then(()=>(function nD(e){ve(e,"Expected localeId to be defined"),"string"==typeof e&&(Rf=e.toLowerCase().replace(/_/g,"-"))}(w.injector.get(ja,Ma)||Ma),this._moduleDoBootstrap(w),w))})})}bootstrapModule(n,r=[]){const s=vg({},r);return function dC(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(Yo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new Pe("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 Pe("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)(Yn(Gr))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e})();function vg(e,t){return Array.isArray(t)?t.reduce(vg,e):Object.assign(Object.assign({},e),t)}let Yo=(()=>{class e{constructor(n,r,s,i,a){this._zone=n,this._injector=r,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=a,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 Z.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),p=new Z.y(E=>{let w;this._zone.runOutsideAngular(()=>{w=this._zone.onStable.subscribe(()=>{xr.assertNotInAngularZone(),Gu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{xr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{w.unsubscribe(),P.unsubscribe()}});this.isStable=(0,se.T)(d,p.pipe(function Q(){return e=>(0,U.x)()((0,B.O)(Y)(e))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Pe("405","");let s;s=n instanceof sp?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);const i=function hC(e){return e.isBoundToModule}(s)?void 0:this._injector.get(so),d=s.create(Gr.NULL,[],r||s.selector,i),p=d.location.nativeElement,E=d.injector.get(hg,null),w=E&&d.injector.get(fg);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 Pe("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(ag,[]).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)(Yn(xr),Yn(Gr),Yn(Mo),Yn(Ho),Yn(ao))},e.\u0275prov=Be({token:e,factory:e.\u0275fac}),e})();function Qu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Dg=!0;function _C(){Dg=!1}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=EC,e})();function EC(e){return function CC(e,t,n){if(Yr(e)&&!n){const r=ut(e.index,t);return new $o(r,r)}return 47&e.type?new $o(t[16],t):null}(C(),Ae(),16==(16&e))}class Mg{constructor(){}supports(t){return xo(t)}create(t){return new AC(t)}}const MC=(e,t)=>t;class AC{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||MC}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 a=!r||n&&n.currentIndex<Ig(r,s,i)?n:r,d=Ig(a,s,i),p=a.currentIndex;if(a===r)s--,r=r._nextRemoved;else if(n=n._next,null==a.previousIndex)s++;else{i||(i=[]);const E=d-s,w=p-s;if(E!=w){for(let z=0;z<E;z++){const X=z<i.length?i[z]:i[z]=0,ye=X+z;w<=ye&&ye<E&&(i[z]=X+1)}i[a.previousIndex]=w-E}}d!==p&&t(a,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=[]),!xo(t))throw new Error(`Error trying to diff '${F(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,i,a,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)i=t[d],a=this._trackByFn(d,i),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,i,a,d)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,a,d),r=!0),n=n._next}else s=0,function zv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[$i()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,d=>{a=this._trackByFn(s,d),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,d,a,s)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,a,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 IC(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 Ag),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 Ag),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 IC{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 PC{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 Ag{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new PC,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 Ig(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 Pg{constructor(){}supports(t){return t instanceof Map||ql(t)}create(){return new OC}}class OC{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 Error(`Error trying to diff '${F(t)}'. Only maps and objects are allowed`)}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,a=s._next;return i&&(i._next=a),a&&(a._prev=i),s._next=null,s._prev=null,s}const r=new RC(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 RC{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 Ha([new Mg])}let Ha=(()=>{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 Ri,new di]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function xC(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=Be({token:e,providedIn:"root",factory:Og}),e})();function Rg(){return new Va([new Pg])}let Va=(()=>{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||Rg()),deps:[[e,new Ri,new di]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=Be({token:e,providedIn:"root",factory:Rg}),e})();const NC=[new Pg],kC=new Ha([new Mg]),LC=new Va(NC),BC=gg(null,"core",[{provide:og,useValue:"unknown"},{provide:yg,deps:[Gr]},{provide:fg,deps:[]},{provide:lg,deps:[]}]),$C=[{provide:Yo,useClass:Yo,deps:[xr,Gr,Mo,Ho,ao]},{provide:uE,deps:[xr],useFactory:function zC(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:ao,useClass:ao,deps:[[new di,Vu]]},{provide:zu,useClass:zu,deps:[]},eC,{provide:Ha,useFactory:function jC(){return kC},deps:[]},{provide:Va,useFactory:function UC(){return LC},deps:[]},{provide:ja,useFactory:function HC(e){return e||function VC(){return"undefined"!=typeof $localize&&$localize.locale||Ma}()},deps:[[new Eo(ja),new di,new Ri]]},{provide:ug,useValue:"USD"}];let GC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Yn(Yo))},e.\u0275mod=x({type:e}),e.\u0275inj=jt({providers:$C}),e})()},6360:(ze,de,M)=>{M.d(de,{Qb:()=>Os,PW:()=>wt});var g=M(9863),_=M(2313),Z=M(1777);function se(){return"undefined"!=typeof window&&void 0!==window.document}function B(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function U(C){switch(C.length){case 0:return new Z.ZN;case 1:return C[0];default:return new Z.ZE(C)}}function Y(C,o,l,f,b={},I={}){const k=[],j=[];let ne=-1,me=null;if(f.forEach(Re=>{const Ve=Re.offset,pt=Ve==ne,yt=pt&&me||{};Object.keys(Re).forEach(qe=>{let gt=qe,Mt=Re[qe];if("offset"!==qe)switch(gt=o.normalizePropertyName(gt,k),Mt){case Z.k1:Mt=b[qe];break;case Z.l3:Mt=I[qe];break;default:Mt=o.normalizeStyleValue(qe,gt,Mt,k)}yt[gt]=Mt}),pt||j.push(yt),me=yt,ne=Ve}),k.length){const Re="\n - ";throw new Error(`Unable to animate due to the following errors:${Re}${k.join(Re)}`)}return j}function Q(C,o,l,f){switch(o){case"start":C.onStart(()=>f(l&&$(l,"start",C)));break;case"done":C.onDone(()=>f(l&&$(l,"done",C)));break;case"destroy":C.onDestroy(()=>f(l&&$(l,"destroy",C)))}}function $(C,o,l){const f=l.totalTime,I=V(C.element,C.triggerName,C.fromState,C.toState,o||C.phaseName,null==f?C.totalTime:f,!!l.disabled),k=C._data;return null!=k&&(I._data=k),I}function V(C,o,l,f,b="",I=0,k){return{element:C,triggerName:o,fromState:l,toState:f,phaseName:b,totalTime:I,disabled:!!k}}function F(C,o,l){let f;return C instanceof Map?(f=C.get(o),f||C.set(o,f=l)):(f=C[o],f||(f=C[o]=l)),f}function oe(C){const o=C.indexOf(":");return[C.substring(1,o),C.substr(o+1)]}let he=(C,o)=>!1,Ee=(C,o)=>!1,ee=(C,o,l)=>[];const pe=B();(pe||"undefined"!=typeof Element)&&(he=se()?(C,o)=>{for(;o&&o!==document.documentElement;){if(o===C)return!0;o=o.parentNode||o.host}return!1}:(C,o)=>C.contains(o),Ee=(()=>{if(pe||Element.prototype.matches)return(C,o)=>C.matches(o);{const C=Element.prototype,o=C.matchesSelector||C.mozMatchesSelector||C.msMatchesSelector||C.oMatchesSelector||C.webkitMatchesSelector;return o?(l,f)=>o.apply(l,[f]):Ee}})(),ee=(C,o,l)=>{let f=[];if(l){const b=C.querySelectorAll(o);for(let I=0;I<b.length;I++)f.push(b[I])}else{const b=C.querySelector(o);b&&f.push(b)}return f});let Pe=null,Oe=!1;function we(C){Pe||(Pe=function ie(){return"undefined"!=typeof document?document.body:null}()||{},Oe=!!Pe.style&&"WebkitAppearance"in Pe.style);let o=!0;return Pe.style&&!function Te(C){return"ebkit"==C.substring(1,6)}(C)&&(o=C in Pe.style,!o&&Oe&&(o="Webkit"+C.charAt(0).toUpperCase()+C.substr(1)in Pe.style)),o}const ue=Ee,Ze=he,ot=ee;function Dt(C){const o={};return Object.keys(C).forEach(l=>{const f=l.replace(/([a-z])([A-Z])/g,"$1-$2");o[f]=C[l]}),o}let We=(()=>{class C{validateStyleProperty(l){return we(l)}matchesElement(l,f){return ue(l,f)}containsElement(l,f){return Ze(l,f)}query(l,f,b){return ot(l,f,b)}computeStyle(l,f,b){return b||""}animate(l,f,b,I,k,j=[],ne){return new Z.ZN(b,I)}}return C.\u0275fac=function(l){return new(l||C)},C.\u0275prov=g.Yz7({token:C,factory:C.\u0275fac}),C})(),dt=(()=>{class C{}return C.NOOP=new We,C})();const at="ng-enter",He="ng-leave",un="ng-trigger",cn=".ng-trigger",En="ng-animating",Cn=".ng-animating";function Vt(C){if("number"==typeof C)return C;const o=C.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:ve(parseFloat(o[1]),o[2])}function ve(C,o){return"s"===o?1e3*C:C}function Ce(C,o,l){return C.hasOwnProperty("duration")?C:function J(C,o,l){let b,I=0,k="";if("string"==typeof C){const j=C.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===j)return o.push(`The provided timing value "${C}" is invalid.`),{duration:0,delay:0,easing:""};b=ve(parseFloat(j[1]),j[2]);const ne=j[3];null!=ne&&(I=ve(parseFloat(ne),j[4]));const me=j[5];me&&(k=me)}else b=C;if(!l){let j=!1,ne=o.length;b<0&&(o.push("Duration values below 0 are not allowed for this animation step."),j=!0),I<0&&(o.push("Delay values below 0 are not allowed for this animation step."),j=!0),j&&o.splice(ne,0,`The provided timing value "${C}" is invalid.`)}return{duration:b,delay:I,easing:k}}(C,o,l)}function le(C,o={}){return Object.keys(C).forEach(l=>{o[l]=C[l]}),o}function Be(C,o,l={}){if(o)for(let f in C)l[f]=C[f];else le(C,l);return l}function tn(C,o,l){return l?o+":"+l+";":""}function jt(C){let o="";for(let l=0;l<C.style.length;l++){const f=C.style.item(l);o+=tn(0,f,C.style.getPropertyValue(f))}for(const l in C.style)C.style.hasOwnProperty(l)&&!l.startsWith("_")&&(o+=tn(0,_e(l),C.style[l]));C.setAttribute("style",o)}function zt(C,o,l){C.style&&(Object.keys(o).forEach(f=>{const b=nt(f);l&&!l.hasOwnProperty(f)&&(l[f]=C.style[b]),C.style[b]=o[f]}),B()&&jt(C))}function dn(C,o){C.style&&(Object.keys(o).forEach(l=>{const f=nt(l);C.style[f]=""}),B()&&jt(C))}function nn(C){return Array.isArray(C)?1==C.length?C[0]:(0,Z.vP)(C):C}const Jn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Vn(C){let o=[];if("string"==typeof C){let l;for(;l=Jn.exec(C);)o.push(l[1]);Jn.lastIndex=0}return o}function Rn(C,o,l){const f=C.toString(),b=f.replace(Jn,(I,k)=>{let j=o[k];return o.hasOwnProperty(k)||(l.push(`Please provide a value for the animation param ${k}`),j=""),j.toString()});return b==f?C:b}function Ht(C){const o=[];let l=C.next();for(;!l.done;)o.push(l.value),l=C.next();return o}const ar=/-+([a-z0-9])/g;function nt(C){return C.replace(ar,(...o)=>o[1].toUpperCase())}function _e(C){return C.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function K(C,o){return 0===C||0===o}function W(C,o,l){const f=Object.keys(l);if(f.length&&o.length){let I=o[0],k=[];if(f.forEach(j=>{I.hasOwnProperty(j)||k.push(j),I[j]=l[j]}),k.length)for(var b=1;b<o.length;b++){let j=o[b];k.forEach(function(ne){j[ne]=ae(C,ne)})}}return o}function De(C,o,l){switch(o.type){case 7:return C.visitTrigger(o,l);case 0:return C.visitState(o,l);case 1:return C.visitTransition(o,l);case 2:return C.visitSequence(o,l);case 3:return C.visitGroup(o,l);case 4:return C.visitAnimate(o,l);case 5:return C.visitKeyframes(o,l);case 6:return C.visitStyle(o,l);case 8:return C.visitReference(o,l);case 9:return C.visitAnimateChild(o,l);case 10:return C.visitAnimateRef(o,l);case 11:return C.visitQuery(o,l);case 12:return C.visitStagger(o,l);default:throw new Error(`Unable to resolve animation metadata node #${o.type}`)}}function ae(C,o){return window.getComputedStyle(C)[o]}function Ie(C,o){const l=[];return"string"==typeof C?C.split(/\s*,\s*/).forEach(f=>function $e(C,o,l){if(":"==C[0]){const ne=function lt(C,o){switch(C){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,f)=>parseFloat(f)>parseFloat(l);case":decrement":return(l,f)=>parseFloat(f)<parseFloat(l);default:return o.push(`The transition alias value "${C}" is not supported`),"* => *"}}(C,l);if("function"==typeof ne)return void o.push(ne);C=ne}const f=C.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==f||f.length<4)return l.push(`The provided transition expression "${C}" is not supported`),o;const b=f[1],I=f[2],k=f[3];o.push(rn(b,k));"<"==I[0]&&!("*"==b&&"*"==k)&&o.push(rn(k,b))}(f,l,o)):l.push(C),l}const Ct=new Set(["true","1"]),Qt=new Set(["false","0"]);function rn(C,o){const l=Ct.has(C)||Qt.has(C),f=Ct.has(o)||Qt.has(o);return(b,I)=>{let k="*"==C||C==b,j="*"==o||o==I;return!k&&l&&"boolean"==typeof b&&(k=b?Ct.has(C):Qt.has(C)),!j&&f&&"boolean"==typeof I&&(j=I?Ct.has(o):Qt.has(o)),k&&j}}const Et=new RegExp("s*:selfs*,?","g");function je(C,o,l){return new Pt(C).build(o,l)}class Pt{constructor(o){this._driver=o}build(o,l){const f=new lr(l);return this._resetContextStyleTimingState(f),De(this,nn(o),f)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles={},o.collectedStyles[""]={},o.currentTime=0}visitTrigger(o,l){let f=l.queryCount=0,b=l.depCount=0;const I=[],k=[];return"@"==o.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),o.definitions.forEach(j=>{if(this._resetContextStyleTimingState(l),0==j.type){const ne=j,me=ne.name;me.toString().split(/\s*,\s*/).forEach(Re=>{ne.name=Re,I.push(this.visitState(ne,l))}),ne.name=me}else if(1==j.type){const ne=this.visitTransition(j,l);f+=ne.queryCount,b+=ne.depCount,k.push(ne)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:o.name,states:I,transitions:k,queryCount:f,depCount:b,options:null}}visitState(o,l){const f=this.visitStyle(o.styles,l),b=o.options&&o.options.params||null;if(f.containsDynamicStyles){const I=new Set,k=b||{};if(f.styles.forEach(j=>{if(Xn(j)){const ne=j;Object.keys(ne).forEach(me=>{Vn(ne[me]).forEach(Re=>{k.hasOwnProperty(Re)||I.add(Re)})})}}),I.size){const j=Ht(I.values());l.errors.push(`state("${o.name}", ...) must define default values for all the following style substitutions: ${j.join(", ")}`)}}return{type:0,name:o.name,style:f,options:b?{params:b}:null}}visitTransition(o,l){l.queryCount=0,l.depCount=0;const f=De(this,nn(o.animation),l);return{type:1,matchers:Ie(o.expr,l.errors),animation:f,queryCount:l.queryCount,depCount:l.depCount,options:Xt(o.options)}}visitSequence(o,l){return{type:2,steps:o.steps.map(f=>De(this,f,l)),options:Xt(o.options)}}visitGroup(o,l){const f=l.currentTime;let b=0;const I=o.steps.map(k=>{l.currentTime=f;const j=De(this,k,l);return b=Math.max(b,l.currentTime),j});return l.currentTime=b,{type:3,steps:I,options:Xt(o.options)}}visitAnimate(o,l){const f=function er(C,o){let l=null;if(C.hasOwnProperty("duration"))l=C;else if("number"==typeof C)return Tn(Ce(C,o).duration,0,"");const f=C;if(f.split(/\s+/).some(I=>"{"==I.charAt(0)&&"{"==I.charAt(1))){const I=Tn(0,0,"");return I.dynamic=!0,I.strValue=f,I}return l=l||Ce(f,o),Tn(l.duration,l.delay,l.easing)}(o.timings,l.errors);l.currentAnimateTimings=f;let b,I=o.styles?o.styles:(0,Z.oB)({});if(5==I.type)b=this.visitKeyframes(I,l);else{let k=o.styles,j=!1;if(!k){j=!0;const me={};f.easing&&(me.easing=f.easing),k=(0,Z.oB)(me)}l.currentTime+=f.duration+f.delay;const ne=this.visitStyle(k,l);ne.isEmptyStep=j,b=ne}return l.currentAnimateTimings=null,{type:4,timings:f,style:b,options:null}}visitStyle(o,l){const f=this._makeStyleAst(o,l);return this._validateStyleAst(f,l),f}_makeStyleAst(o,l){const f=[];Array.isArray(o.styles)?o.styles.forEach(k=>{"string"==typeof k?k==Z.l3?f.push(k):l.errors.push(`The provided style string value ${k} is not allowed.`):f.push(k)}):f.push(o.styles);let b=!1,I=null;return f.forEach(k=>{if(Xn(k)){const j=k,ne=j.easing;if(ne&&(I=ne,delete j.easing),!b)for(let me in j)if(j[me].toString().indexOf("{{")>=0){b=!0;break}}}),{type:6,styles:f,easing:I,offset:o.offset,containsDynamicStyles:b,options:null}}_validateStyleAst(o,l){const f=l.currentAnimateTimings;let b=l.currentTime,I=l.currentTime;f&&I>0&&(I-=f.duration+f.delay),o.styles.forEach(k=>{"string"!=typeof k&&Object.keys(k).forEach(j=>{if(!this._driver.validateStyleProperty(j))return void l.errors.push(`The provided animation property "${j}" is not a supported CSS property for animations`);const ne=l.collectedStyles[l.currentQuerySelector],me=ne[j];let Re=!0;me&&(I!=b&&I>=me.startTime&&b<=me.endTime&&(l.errors.push(`The CSS property "${j}" that exists between the times of "${me.startTime}ms" and "${me.endTime}ms" is also being animated in a parallel animation between the times of "${I}ms" and "${b}ms"`),Re=!1),I=me.startTime),Re&&(ne[j]={startTime:I,endTime:b}),l.options&&function Hn(C,o,l){const f=o.params||{},b=Vn(C);b.length&&b.forEach(I=>{f.hasOwnProperty(I)||l.push(`Unable to resolve the local animation param ${I} in the given list of values`)})}(k[j],l.options,l.errors)})})}visitKeyframes(o,l){const f={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),f;let I=0;const k=[];let j=!1,ne=!1,me=0;const Re=o.steps.map(en=>{const sn=this._makeStyleAst(en,l);let yn=null!=sn.offset?sn.offset:function bn(C){if("string"==typeof C)return null;let o=null;if(Array.isArray(C))C.forEach(l=>{if(Xn(l)&&l.hasOwnProperty("offset")){const f=l;o=parseFloat(f.offset),delete f.offset}});else if(Xn(C)&&C.hasOwnProperty("offset")){const l=C;o=parseFloat(l.offset),delete l.offset}return o}(sn.styles),vn=0;return null!=yn&&(I++,vn=sn.offset=yn),ne=ne||vn<0||vn>1,j=j||vn<me,me=vn,k.push(vn),sn});ne&&l.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),j&&l.errors.push("Please ensure that all keyframe offsets are in order");const Ve=o.steps.length;let pt=0;I>0&&I<Ve?l.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==I&&(pt=1/(Ve-1));const yt=Ve-1,qe=l.currentTime,gt=l.currentAnimateTimings,Mt=gt.duration;return Re.forEach((en,sn)=>{const yn=pt>0?sn==yt?1:pt*sn:k[sn],vn=yn*Mt;l.currentTime=qe+gt.delay+vn,gt.duration=vn,this._validateStyleAst(en,l),en.offset=yn,f.styles.push(en)}),f}visitReference(o,l){return{type:8,animation:De(this,nn(o.animation),l),options:Xt(o.options)}}visitAnimateChild(o,l){return l.depCount++,{type:9,options:Xt(o.options)}}visitAnimateRef(o,l){return{type:10,animation:this.visitReference(o.animation,l),options:Xt(o.options)}}visitQuery(o,l){const f=l.currentQuerySelector,b=o.options||{};l.queryCount++,l.currentQuery=o;const[I,k]=function mt(C){const o=!!C.split(/\s*,\s*/).find(l=>":self"==l);return o&&(C=C.replace(Et,"")),C=C.replace(/@\*/g,cn).replace(/@\w+/g,l=>cn+"-"+l.substr(1)).replace(/:animating/g,Cn),[C,o]}(o.selector);l.currentQuerySelector=f.length?f+" "+I:I,F(l.collectedStyles,l.currentQuerySelector,{});const j=De(this,nn(o.animation),l);return l.currentQuery=null,l.currentQuerySelector=f,{type:11,selector:I,limit:b.limit||0,optional:!!b.optional,includeSelf:k,animation:j,originalSelector:o.selector,options:Xt(o.options)}}visitStagger(o,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const f="full"===o.timings?{duration:0,delay:0,easing:"full"}:Ce(o.timings,l.errors,!0);return{type:12,animation:De(this,nn(o.animation),l),timings:f,options:null}}}class lr{constructor(o){this.errors=o,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}}function Xn(C){return!Array.isArray(C)&&"object"==typeof C}function Xt(C){return C?(C=le(C)).params&&(C.params=function rt(C){return C?le(C):null}(C.params)):C={},C}function Tn(C,o,l){return{duration:C,delay:o,easing:l}}function $n(C,o,l,f,b,I,k=null,j=!1){return{type:1,element:C,keyframes:o,preStyleProps:l,postStyleProps:f,duration:b,delay:I,totalTime:b+I,easing:k,subTimeline:j}}class zn{constructor(){this._map=new Map}consume(o){let l=this._map.get(o);return l?this._map.delete(o):l=[],l}append(o,l){let f=this._map.get(o);f||this._map.set(o,f=[]),f.push(...l)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const re=new RegExp(":enter","g"),x=new RegExp(":leave","g");function te(C,o,l,f,b,I={},k={},j,ne,me=[]){return(new be).buildKeyframes(C,o,l,f,b,I,k,j,ne,me)}class be{buildKeyframes(o,l,f,b,I,k,j,ne,me,Re=[]){me=me||new zn;const Ve=new q(o,l,me,b,I,Re,[]);Ve.options=ne,Ve.currentTimeline.setStyles([k],null,Ve.errors,ne),De(this,f,Ve);const pt=Ve.timelines.filter(yt=>yt.containsAnimation());if(pt.length&&Object.keys(j).length){const yt=pt[pt.length-1];yt.allowOnlyTimelineStyles()||yt.setStyles([j],null,Ve.errors,ne)}return pt.length?pt.map(yt=>yt.buildKeyframes()):[$n(l,[],[],[],0,0,"",!1)]}visitTrigger(o,l){}visitState(o,l){}visitTransition(o,l){}visitAnimateChild(o,l){const f=l.subInstructions.consume(l.element);if(f){const b=l.createSubContext(o.options),I=l.currentTimeline.currentTime,k=this._visitSubInstructions(f,b,b.options);I!=k&&l.transformIntoNewTimeline(k)}l.previousNode=o}visitAnimateRef(o,l){const f=l.createSubContext(o.options);f.transformIntoNewTimeline(),this.visitReference(o.animation,f),l.transformIntoNewTimeline(f.currentTimeline.currentTime),l.previousNode=o}_visitSubInstructions(o,l,f){let I=l.currentTimeline.currentTime;const k=null!=f.duration?Vt(f.duration):null,j=null!=f.delay?Vt(f.delay):null;return 0!==k&&o.forEach(ne=>{const me=l.appendInstructionToTimeline(ne,k,j);I=Math.max(I,me.duration+me.delay)}),I}visitReference(o,l){l.updateOptions(o.options,!0),De(this,o.animation,l),l.previousNode=o}visitSequence(o,l){const f=l.subContextCount;let b=l;const I=o.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=O);const k=Vt(I.delay);b.delayNextStep(k)}o.steps.length&&(o.steps.forEach(k=>De(this,k,b)),b.currentTimeline.applyStylesToKeyframe(),b.subContextCount>f&&b.transformIntoNewTimeline()),l.previousNode=o}visitGroup(o,l){const f=[];let b=l.currentTimeline.currentTime;const I=o.options&&o.options.delay?Vt(o.options.delay):0;o.steps.forEach(k=>{const j=l.createSubContext(o.options);I&&j.delayNextStep(I),De(this,k,j),b=Math.max(b,j.currentTimeline.currentTime),f.push(j.currentTimeline)}),f.forEach(k=>l.currentTimeline.mergeTimelineCollectedStyles(k)),l.transformIntoNewTimeline(b),l.previousNode=o}_visitTiming(o,l){if(o.dynamic){const f=o.strValue;return Ce(l.params?Rn(f,l.params,l.errors):f,l.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,l){const f=l.currentAnimateTimings=this._visitTiming(o.timings,l),b=l.currentTimeline;f.delay&&(l.incrementTime(f.delay),b.snapshotCurrentStyles());const I=o.style;5==I.type?this.visitKeyframes(I,l):(l.incrementTime(f.duration),this.visitStyle(I,l),b.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=o}visitStyle(o,l){const f=l.currentTimeline,b=l.currentAnimateTimings;!b&&f.getCurrentStyleProperties().length&&f.forwardFrame();const I=b&&b.easing||o.easing;o.isEmptyStep?f.applyEmptyStep(I):f.setStyles(o.styles,I,l.errors,l.options),l.previousNode=o}visitKeyframes(o,l){const f=l.currentAnimateTimings,b=l.currentTimeline.duration,I=f.duration,j=l.createSubContext().currentTimeline;j.easing=f.easing,o.styles.forEach(ne=>{j.forwardTime((ne.offset||0)*I),j.setStyles(ne.styles,ne.easing,l.errors,l.options),j.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(j),l.transformIntoNewTimeline(b+I),l.previousNode=o}visitQuery(o,l){const f=l.currentTimeline.currentTime,b=o.options||{},I=b.delay?Vt(b.delay):0;I&&(6===l.previousNode.type||0==f&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=O);let k=f;const j=l.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!b.optional,l.errors);l.currentQueryTotal=j.length;let ne=null;j.forEach((me,Re)=>{l.currentQueryIndex=Re;const Ve=l.createSubContext(o.options,me);I&&Ve.delayNextStep(I),me===l.element&&(ne=Ve.currentTimeline),De(this,o.animation,Ve),Ve.currentTimeline.applyStylesToKeyframe(),k=Math.max(k,Ve.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(k),ne&&(l.currentTimeline.mergeTimelineCollectedStyles(ne),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=o}visitStagger(o,l){const f=l.parentContext,b=l.currentTimeline,I=o.timings,k=Math.abs(I.duration),j=k*(l.currentQueryTotal-1);let ne=k*l.currentQueryIndex;switch(I.duration<0?"reverse":I.easing){case"reverse":ne=j-ne;break;case"full":ne=f.currentStaggerTime}const Re=l.currentTimeline;ne&&Re.delayNextStep(ne);const Ve=Re.currentTime;De(this,o.animation,l),l.previousNode=o,f.currentStaggerTime=b.currentTime-Ve+(b.startTime-f.currentTimeline.startTime)}}const O={};class q{constructor(o,l,f,b,I,k,j,ne){this._driver=o,this.element=l,this.subInstructions=f,this._enterClassName=b,this._leaveClassName=I,this.errors=k,this.timelines=j,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=O,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ne||new R(this._driver,l,0),j.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,l){if(!o)return;const f=o;let b=this.options;null!=f.duration&&(b.duration=Vt(f.duration)),null!=f.delay&&(b.delay=Vt(f.delay));const I=f.params;if(I){let k=b.params;k||(k=this.options.params={}),Object.keys(I).forEach(j=>{(!l||!k.hasOwnProperty(j))&&(k[j]=Rn(I[j],k,this.errors))})}}_copyOptions(){const o={};if(this.options){const l=this.options.params;if(l){const f=o.params={};Object.keys(l).forEach(b=>{f[b]=l[b]})}}return o}createSubContext(o=null,l,f){const b=l||this.element,I=new q(this._driver,b,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(b,f||0));return I.previousNode=this.previousNode,I.currentAnimateTimings=this.currentAnimateTimings,I.options=this._copyOptions(),I.updateOptions(o),I.currentQueryIndex=this.currentQueryIndex,I.currentQueryTotal=this.currentQueryTotal,I.parentContext=this,this.subContextCount++,I}transformIntoNewTimeline(o){return this.previousNode=O,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,l,f){const b={duration:null!=l?l:o.duration,delay:this.currentTimeline.currentTime+(null!=f?f:0)+o.delay,easing:""},I=new ce(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,b,o.stretchStartingKeyframe);return this.timelines.push(I),b}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,l,f,b,I,k){let j=[];if(b&&j.push(this.element),o.length>0){o=(o=o.replace(re,"."+this._enterClassName)).replace(x,"."+this._leaveClassName);let me=this._driver.query(this.element,o,1!=f);0!==f&&(me=f<0?me.slice(me.length+f,me.length):me.slice(0,f)),j.push(...me)}return!I&&0==j.length&&k.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),j}}class R{constructor(o,l,f,b){this._driver=o,this.element=l,this.startTime=f,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(o){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+o),l&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,l){return this.applyStylesToKeyframe(),new R(this._driver,o,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(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,l){this._localTimelineStyles[o]=l,this._globalTimelineStyles[o]=l,this._styleSummary[o]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&(this._previousKeyframe.easing=o),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||Z.l3,this._currentKeyframe[l]=Z.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,l,f,b){l&&(this._previousKeyframe.easing=l);const I=b&&b.params||{},k=function bt(C,o){const l={};let f;return C.forEach(b=>{"*"===b?(f=f||Object.keys(o),f.forEach(I=>{l[I]=Z.l3})):Be(b,!1,l)}),l}(o,this._globalTimelineStyles);Object.keys(k).forEach(j=>{const ne=Rn(k[j],I,f);this._pendingStyles[j]=ne,this._localTimelineStyles.hasOwnProperty(j)||(this._backFill[j]=this._globalTimelineStyles.hasOwnProperty(j)?this._globalTimelineStyles[j]:Z.l3),this._updateStyle(j,ne)})}applyStylesToKeyframe(){const o=this._pendingStyles,l=Object.keys(o);0!=l.length&&(this._pendingStyles={},l.forEach(f=>{this._currentKeyframe[f]=o[f]}),Object.keys(this._localTimelineStyles).forEach(f=>{this._currentKeyframe.hasOwnProperty(f)||(this._currentKeyframe[f]=this._localTimelineStyles[f])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(o=>{const l=this._localTimelineStyles[o];this._pendingStyles[o]=l,this._updateStyle(o,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let l in this._currentKeyframe)o.push(l);return o}mergeTimelineCollectedStyles(o){Object.keys(o._styleSummary).forEach(l=>{const f=this._styleSummary[l],b=o._styleSummary[l];(!f||b.time>f.time)&&this._updateStyle(l,b.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,l=new Set,f=1===this._keyframes.size&&0===this.duration;let b=[];this._keyframes.forEach((j,ne)=>{const me=Be(j,!0);Object.keys(me).forEach(Re=>{const Ve=me[Re];Ve==Z.k1?o.add(Re):Ve==Z.l3&&l.add(Re)}),f||(me.offset=ne/this.duration),b.push(me)});const I=o.size?Ht(o.values()):[],k=l.size?Ht(l.values()):[];if(f){const j=b[0],ne=le(j);j.offset=0,ne.offset=1,b=[j,ne]}return $n(this.element,b,I,k,this.duration,this.startTime,this.easing,!1)}}class ce extends R{constructor(o,l,f,b,I,k,j=!1){super(o,l,k.delay),this.keyframes=f,this.preStyleProps=b,this.postStyleProps=I,this._stretchStartingKeyframe=j,this.timings={duration:k.duration,delay:k.delay,easing:k.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:l,duration:f,easing:b}=this.timings;if(this._stretchStartingKeyframe&&l){const I=[],k=f+l,j=l/k,ne=Be(o[0],!1);ne.offset=0,I.push(ne);const me=Be(o[0],!1);me.offset=st(j),I.push(me);const Re=o.length-1;for(let Ve=1;Ve<=Re;Ve++){let pt=Be(o[Ve],!1);pt.offset=st((l+pt.offset*f)/k),I.push(pt)}f=k,l=0,b="",o=I}return $n(this.element,o,this.preStyleProps,this.postStyleProps,f,l,b,!0)}}function st(C,o=3){const l=Math.pow(10,o-1);return Math.round(C*l)/l}class Nn{}class cr extends Nn{normalizePropertyName(o,l){return nt(o)}normalizeStyleValue(o,l,f,b){let I="";const k=f.toString().trim();if(hn[l]&&0!==f&&"0"!==f)if("number"==typeof f)I="px";else{const j=f.match(/^[+-]?[\d\.]+([a-z]*)$/);j&&0==j[1].length&&b.push(`Please provide a CSS unit value for ${o}:${f}`)}return k+I}}const hn=(()=>function fn(C){const o={};return C.forEach(l=>o[l]=!0),o}("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 Kr(C,o,l,f,b,I,k,j,ne,me,Re,Ve,pt){return{type:0,element:C,triggerName:o,isRemovalTransition:b,fromState:l,fromStyles:I,toState:f,toStyles:k,timelines:j,queriedElements:ne,preStyleProps:me,postStyleProps:Re,totalTime:Ve,errors:pt}}const Sn={};class ke{constructor(o,l,f){this._triggerName=o,this.ast=l,this._stateStyles=f}match(o,l,f,b){return function vt(C,o,l,f,b){return C.some(I=>I(o,l,f,b))}(this.ast.matchers,o,l,f,b)}buildStyles(o,l,f){const b=this._stateStyles["*"],I=this._stateStyles[o],k=b?b.buildStyles(l,f):{};return I?I.buildStyles(l,f):k}build(o,l,f,b,I,k,j,ne,me,Re){const Ve=[],pt=this.ast.options&&this.ast.options.params||Sn,qe=this.buildStyles(f,j&&j.params||Sn,Ve),gt=ne&&ne.params||Sn,Mt=this.buildStyles(b,gt,Ve),en=new Set,sn=new Map,yn=new Map,vn="void"===b,Ur={params:Object.assign(Object.assign({},pt),gt)},qn=Re?[]:te(o,l,this.ast.animation,I,k,qe,Mt,Ur,me,Ve);let On=0;if(qn.forEach(nr=>{On=Math.max(nr.duration+nr.delay,On)}),Ve.length)return Kr(l,this._triggerName,f,b,vn,qe,Mt,[],[],sn,yn,On,Ve);qn.forEach(nr=>{const br=nr.element,li=F(sn,br,{});nr.preStyleProps.forEach(Hr=>li[Hr]=!0);const ys=F(yn,br,{});nr.postStyleProps.forEach(Hr=>ys[Hr]=!0),br!==l&&en.add(br)});const fr=Ht(en.values());return Kr(l,this._triggerName,f,b,vn,qe,Mt,qn,fr,sn,yn,On)}}class Ft{constructor(o,l,f){this.styles=o,this.defaultParams=l,this.normalizer=f}buildStyles(o,l){const f={},b=le(this.defaultParams);return Object.keys(o).forEach(I=>{const k=o[I];null!=k&&(b[I]=k)}),this.styles.styles.forEach(I=>{if("string"!=typeof I){const k=I;Object.keys(k).forEach(j=>{let ne=k[j];ne.length>1&&(ne=Rn(ne,b,l));const me=this.normalizer.normalizePropertyName(j,l);ne=this.normalizer.normalizeStyleValue(j,me,ne,l),f[me]=ne})}}),f}}class vr{constructor(o,l,f){this.name=o,this.ast=l,this._normalizer=f,this.transitionFactories=[],this.states={},l.states.forEach(b=>{this.states[b.name]=new Ft(b.style,b.options&&b.options.params||{},f)}),Tr(this.states,"true","1"),Tr(this.states,"false","0"),l.transitions.forEach(b=>{this.transitionFactories.push(new ke(o,b,this.states))}),this.fallbackTransition=function an(C,o,l){return new ke(C,{type:1,animation:{type:2,steps:[],options:null},matchers:[(k,j)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,l,f,b){return this.transitionFactories.find(k=>k.match(o,l,f,b))||null}matchStyles(o,l,f){return this.fallbackTransition.buildStyles(o,l,f)}}function Tr(C,o,l){C.hasOwnProperty(o)?C.hasOwnProperty(l)||(C[l]=C[o]):C.hasOwnProperty(l)&&(C[o]=C[l])}const Zt=new zn;class Sr{constructor(o,l,f){this.bodyNode=o,this._driver=l,this._normalizer=f,this._animations={},this._playersById={},this.players=[]}register(o,l){const f=[],b=je(this._driver,l,f);if(f.length)throw new Error(`Unable to build the animation due to the following errors: ${f.join("\n")}`);this._animations[o]=b}_buildPlayer(o,l,f){const b=o.element,I=Y(0,this._normalizer,0,o.keyframes,l,f);return this._driver.animate(b,I,o.duration,o.delay,o.easing,[],!0)}create(o,l,f={}){const b=[],I=this._animations[o];let k;const j=new Map;if(I?(k=te(this._driver,l,I,at,He,{},{},f,Zt,b),k.forEach(Re=>{const Ve=F(j,Re.element,{});Re.postStyleProps.forEach(pt=>Ve[pt]=null)})):(b.push("The requested animation doesn't exist or has already been destroyed"),k=[]),b.length)throw new Error(`Unable to create the animation due to the following errors: ${b.join("\n")}`);j.forEach((Re,Ve)=>{Object.keys(Re).forEach(pt=>{Re[pt]=this._driver.computeStyle(Ve,pt,Z.l3)})});const me=U(k.map(Re=>{const Ve=j.get(Re.element);return this._buildPlayer(Re,{},Ve)}));return this._playersById[o]=me,me.onDestroy(()=>this.destroy(o)),this.players.push(me),me}destroy(o){const l=this._getPlayer(o);l.destroy(),delete this._playersById[o];const f=this.players.indexOf(l);f>=0&&this.players.splice(f,1)}_getPlayer(o){const l=this._playersById[o];if(!l)throw new Error(`Unable to find the timeline player referenced by ${o}`);return l}listen(o,l,f,b){const I=V(l,"","","");return Q(this._getPlayer(o),f,I,b),()=>{}}command(o,l,f,b){if("register"==f)return void this.register(o,b[0]);if("create"==f)return void this.create(o,l,b[0]||{});const I=this._getPlayer(o);switch(f){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(o)}}}const tr="ng-animate-queued",Mn="ng-animate-disabled",Fn=".ng-animate-disabled",An=[],kn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$t="__ng_removed";class Ot{constructor(o,l=""){this.namespaceId=l;const f=o&&o.hasOwnProperty("value");if(this.value=function Ar(C){return null!=C?C:null}(f?o.value:o),f){const I=le(o);delete I.value,this.options=I}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const l=o.params;if(l){const f=this.options.params;Object.keys(l).forEach(b=>{null==f[b]&&(f[b]=l[b])})}}}const Mr="void",us=new Ot(Mr);class Gn{constructor(o,l,f){this.id=o,this.hostElement=l,this._engine=f,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,Wn(l,this._hostClassName)}listen(o,l,f,b){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${f}" because the animation trigger "${l}" doesn't exist!`);if(null==f||0==f.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if(!function si(C){return"start"==C||"done"==C}(f))throw new Error(`The provided animation trigger event "${f}" for the animation trigger "${l}" is not supported!`);const I=F(this._elementListeners,o,[]),k={name:l,phase:f,callback:b};I.push(k);const j=F(this._engine.statesByElement,o,{});return j.hasOwnProperty(l)||(Wn(o,un),Wn(o,un+"-"+l),j[l]=us),()=>{this._engine.afterFlush(()=>{const ne=I.indexOf(k);ne>=0&&I.splice(ne,1),this._triggers[l]||delete j[l]})}}register(o,l){return!this._triggers[o]&&(this._triggers[o]=l,!0)}_getTrigger(o){const l=this._triggers[o];if(!l)throw new Error(`The provided animation trigger "${o}" has not been registered!`);return l}trigger(o,l,f,b=!0){const I=this._getTrigger(l),k=new Dr(this.id,l,o);let j=this._engine.statesByElement.get(o);j||(Wn(o,un),Wn(o,un+"-"+l),this._engine.statesByElement.set(o,j={}));let ne=j[l];const me=new Ot(f,this.id);if(!(f&&f.hasOwnProperty("value"))&&ne&&me.absorbOptions(ne.options),j[l]=me,ne||(ne=us),me.value!==Mr&&ne.value===me.value){if(!function Di(C,o){const l=Object.keys(C),f=Object.keys(o);if(l.length!=f.length)return!1;for(let b=0;b<l.length;b++){const I=l[b];if(!o.hasOwnProperty(I)||C[I]!==o[I])return!1}return!0}(ne.params,me.params)){const gt=[],Mt=I.matchStyles(ne.value,ne.params,gt),en=I.matchStyles(me.value,me.params,gt);gt.length?this._engine.reportError(gt):this._engine.afterFlush(()=>{dn(o,Mt),zt(o,en)})}return}const pt=F(this._engine.playersByElement,o,[]);pt.forEach(gt=>{gt.namespaceId==this.id&&gt.triggerName==l&&gt.queued&&gt.destroy()});let yt=I.matchTransition(ne.value,me.value,o,me.params),qe=!1;if(!yt){if(!b)return;yt=I.fallbackTransition,qe=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:l,transition:yt,fromState:ne,toState:me,player:k,isFallbackTransition:qe}),qe||(Wn(o,tr),k.onStart(()=>{qr(o,tr)})),k.onDone(()=>{let gt=this.players.indexOf(k);gt>=0&&this.players.splice(gt,1);const Mt=this._engine.playersByElement.get(o);if(Mt){let en=Mt.indexOf(k);en>=0&&Mt.splice(en,1)}}),this.players.push(k),pt.push(k),k}deregister(o){delete this._triggers[o],this._engine.statesByElement.forEach((l,f)=>{delete l[o]}),this._elementListeners.forEach((l,f)=>{this._elementListeners.set(f,l.filter(b=>b.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const l=this._engine.playersByElement.get(o);l&&(l.forEach(f=>f.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,l){const f=this._engine.driver.query(o,cn,!0);f.forEach(b=>{if(b[$t])return;const I=this._engine.fetchNamespacesByElement(b);I.size?I.forEach(k=>k.triggerLeaveAnimation(b,l,!1,!0)):this.clearElementCache(b)}),this._engine.afterFlushAnimationsDone(()=>f.forEach(b=>this.clearElementCache(b)))}triggerLeaveAnimation(o,l,f,b){const I=this._engine.statesByElement.get(o);if(I){const k=[];if(Object.keys(I).forEach(j=>{if(this._triggers[j]){const ne=this.trigger(o,j,Mr,b);ne&&k.push(ne)}}),k.length)return this._engine.markElementAsRemoved(this.id,o,!0,l),f&&U(k).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const l=this._elementListeners.get(o),f=this._engine.statesByElement.get(o);if(l&&f){const b=new Set;l.forEach(I=>{const k=I.name;if(b.has(k))return;b.add(k);const ne=this._triggers[k].fallbackTransition,me=f[k]||us,Re=new Ot(Mr),Ve=new Dr(this.id,k,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:k,transition:ne,fromState:me,toState:Re,player:Ve,isFallbackTransition:!0})})}}removeNode(o,l){const f=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,l),this.triggerLeaveAnimation(o,l,!0))return;let b=!1;if(f.totalAnimations){const I=f.players.length?f.playersByQueriedElement.get(o):[];if(I&&I.length)b=!0;else{let k=o;for(;k=k.parentNode;)if(f.statesByElement.get(k)){b=!0;break}}}if(this.prepareLeaveAnimationListeners(o),b)f.markElementAsRemoved(this.id,o,!1,l);else{const I=o[$t];(!I||I===kn)&&(f.afterFlush(()=>this.clearElementCache(o)),f.destroyInnerAnimations(o),f._onRemovalComplete(o,l))}}insertNode(o,l){Wn(o,this._hostClassName)}drainQueuedTransitions(o){const l=[];return this._queue.forEach(f=>{const b=f.player;if(b.destroyed)return;const I=f.element,k=this._elementListeners.get(I);k&&k.forEach(j=>{if(j.name==f.triggerName){const ne=V(I,f.triggerName,f.fromState.value,f.toState.value);ne._data=o,Q(f.player,j.phase,ne,j.callback)}}),b.markedForDestroy?this._engine.afterFlush(()=>{b.destroy()}):l.push(f)}),this._queue=[],l.sort((f,b)=>{const I=f.transition.ast.depCount,k=b.transition.ast.depCount;return 0==I||0==k?I-k:this._engine.driver.containsElement(f.element,b.element)?1:-1})}destroy(o){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let l=!1;return this._elementListeners.has(o)&&(l=!0),l=!!this._queue.find(f=>f.element===o)||l,l}}class Ln{constructor(o,l,f){this.bodyNode=o,this.driver=l,this._normalizer=f,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(o,l){this.onRemovalComplete(o,l)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(l=>{l.players.forEach(f=>{f.queued&&o.push(f)})}),o}createNamespace(o,l){const f=new Gn(o,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(f,l):(this.newHostElements.set(l,f),this.collectEnterElement(l)),this._namespaceLookup[o]=f}_balanceNamespaceList(o,l){const f=this._namespaceList.length-1;if(f>=0){let b=!1;for(let I=f;I>=0;I--)if(this.driver.containsElement(this._namespaceList[I].hostElement,l)){this._namespaceList.splice(I+1,0,o),b=!0;break}b||this._namespaceList.splice(0,0,o)}else this._namespaceList.push(o);return this.namespacesByHostElement.set(l,o),o}register(o,l){let f=this._namespaceLookup[o];return f||(f=this.createNamespace(o,l)),f}registerTrigger(o,l,f){let b=this._namespaceLookup[o];b&&b.register(l,f)&&this.totalAnimations++}destroy(o,l){if(!o)return;const f=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(f.hostElement),delete this._namespaceLookup[o];const b=this._namespaceList.indexOf(f);b>=0&&this._namespaceList.splice(b,1)}),this.afterFlushAnimationsDone(()=>f.destroy(l))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const l=new Set,f=this.statesByElement.get(o);if(f){const b=Object.keys(f);for(let I=0;I<b.length;I++){const k=f[b[I]].namespaceId;if(k){const j=this._fetchNamespace(k);j&&l.add(j)}}}return l}trigger(o,l,f,b){if(Gt(l)){const I=this._fetchNamespace(o);if(I)return I.trigger(l,f,b),!0}return!1}insertNode(o,l,f,b){if(!Gt(l))return;const I=l[$t];if(I&&I.setForRemoval){I.setForRemoval=!1,I.setForMove=!0;const k=this.collectedLeaveElements.indexOf(l);k>=0&&this.collectedLeaveElements.splice(k,1)}if(o){const k=this._fetchNamespace(o);k&&k.insertNode(l,f)}b&&this.collectEnterElement(l)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,l){l?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Wn(o,Mn)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),qr(o,Mn))}removeNode(o,l,f,b){if(Gt(l)){const I=o?this._fetchNamespace(o):null;if(I?I.removeNode(l,b):this.markElementAsRemoved(o,l,!1,b),f){const k=this.namespacesByHostElement.get(l);k&&k.id!==o&&k.removeNode(l,b)}}else this._onRemovalComplete(l,b)}markElementAsRemoved(o,l,f,b){this.collectedLeaveElements.push(l),l[$t]={namespaceId:o,setForRemoval:b,hasAnimation:f,removedBeforeQueried:!1}}listen(o,l,f,b,I){return Gt(l)?this._fetchNamespace(o).listen(l,f,b,I):()=>{}}_buildInstruction(o,l,f,b,I){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,f,b,o.fromState.options,o.toState.options,l,I)}destroyInnerAnimations(o){let l=this.driver.query(o,cn,!0);l.forEach(f=>this.destroyActiveAnimationsForElement(f)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(o,Cn,!0),l.forEach(f=>this.finishActiveQueriedAnimationOnElement(f)))}destroyActiveAnimationsForElement(o){const l=this.playersByElement.get(o);l&&l.forEach(f=>{f.queued?f.markedForDestroy=!0:f.destroy()})}finishActiveQueriedAnimationOnElement(o){const l=this.playersByQueriedElement.get(o);l&&l.forEach(f=>f.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return U(this.players).onDone(()=>o());o()})}processLeaveNode(o){const l=o[$t];if(l&&l.setForRemoval){if(o[$t]=kn,l.namespaceId){this.destroyInnerAnimations(o);const f=this._fetchNamespace(l.namespaceId);f&&f.clearElementCache(o)}this._onRemovalComplete(o,l.setForRemoval)}this.driver.matchesElement(o,Fn)&&this.markElementAsDisabled(o,!1),this.driver.query(o,Fn,!0).forEach(f=>{this.markElementAsDisabled(f,!1)})}flush(o=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((f,b)=>this._balanceNamespaceList(f,b)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let f=0;f<this.collectedEnterElements.length;f++)Wn(this.collectedEnterElements[f],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const f=[];try{l=this._flushAnimations(f,o)}finally{for(let b=0;b<f.length;b++)f[b]()}}else for(let f=0;f<this.collectedLeaveElements.length;f++)this.processLeaveNode(this.collectedLeaveElements[f]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(f=>f()),this._flushFns=[],this._whenQuietFns.length){const f=this._whenQuietFns;this._whenQuietFns=[],l.length?U(l).onDone(()=>{f.forEach(b=>b())}):f.forEach(b=>b())}}reportError(o){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${o.join("\n")}`)}_flushAnimations(o,l){const f=new zn,b=[],I=new Map,k=[],j=new Map,ne=new Map,me=new Map,Re=new Set;this.disabledNodes.forEach(Ke=>{Re.add(Ke);const Ge=this.driver.query(Ke,".ng-animate-queued",!0);for(let Xe=0;Xe<Ge.length;Xe++)Re.add(Ge[Xe])});const Ve=this.bodyNode,pt=Array.from(this.statesByElement.keys()),yt=Fr(pt,this.collectedEnterElements),qe=new Map;let gt=0;yt.forEach((Ke,Ge)=>{const Xe=at+gt++;qe.set(Ge,Xe),Ke.forEach(Je=>Wn(Je,Xe))});const Mt=[],en=new Set,sn=new Set;for(let Ke=0;Ke<this.collectedLeaveElements.length;Ke++){const Ge=this.collectedLeaveElements[Ke],Xe=Ge[$t];Xe&&Xe.setForRemoval&&(Mt.push(Ge),en.add(Ge),Xe.hasAnimation?this.driver.query(Ge,".ng-star-inserted",!0).forEach(Je=>en.add(Je)):sn.add(Ge))}const yn=new Map,vn=Fr(pt,Array.from(en));vn.forEach((Ke,Ge)=>{const Xe=He+gt++;yn.set(Ge,Xe),Ke.forEach(Je=>Wn(Je,Xe))}),o.push(()=>{yt.forEach((Ke,Ge)=>{const Xe=qe.get(Ge);Ke.forEach(Je=>qr(Je,Xe))}),vn.forEach((Ke,Ge)=>{const Xe=yn.get(Ge);Ke.forEach(Je=>qr(Je,Xe))}),Mt.forEach(Ke=>{this.processLeaveNode(Ke)})});const Ur=[],qn=[];for(let Ke=this._namespaceList.length-1;Ke>=0;Ke--)this._namespaceList[Ke].drainQueuedTransitions(l).forEach(Xe=>{const Je=Xe.player,pn=Xe.element;if(Ur.push(Je),this.collectedEnterElements.length){const Zn=pn[$t];if(Zn&&Zn.setForMove)return void Je.destroy()}const wr=!Ve||!this.driver.containsElement(Ve,pn),Kn=yn.get(pn),Vr=qe.get(pn),Jt=this._buildInstruction(Xe,f,Vr,Kn,wr);if(Jt.errors&&Jt.errors.length)qn.push(Jt);else{if(wr)return Je.onStart(()=>dn(pn,Jt.fromStyles)),Je.onDestroy(()=>zt(pn,Jt.toStyles)),void b.push(Je);if(Xe.isFallbackTransition)return Je.onStart(()=>dn(pn,Jt.fromStyles)),Je.onDestroy(()=>zt(pn,Jt.toStyles)),void b.push(Je);Jt.timelines.forEach(Zn=>Zn.stretchStartingKeyframe=!0),f.append(pn,Jt.timelines),k.push({instruction:Jt,player:Je,element:pn}),Jt.queriedElements.forEach(Zn=>F(j,Zn,[]).push(Je)),Jt.preStyleProps.forEach((Zn,on)=>{const Xr=Object.keys(Zn);if(Xr.length){let rr=ne.get(on);rr||ne.set(on,rr=new Set),Xr.forEach(es=>rr.add(es))}}),Jt.postStyleProps.forEach((Zn,on)=>{const Xr=Object.keys(Zn);let rr=me.get(on);rr||me.set(on,rr=new Set),Xr.forEach(es=>rr.add(es))})}});if(qn.length){const Ke=[];qn.forEach(Ge=>{Ke.push(`@${Ge.triggerName} has failed due to:\n`),Ge.errors.forEach(Xe=>Ke.push(`- ${Xe}\n`))}),Ur.forEach(Ge=>Ge.destroy()),this.reportError(Ke)}const On=new Map,fr=new Map;k.forEach(Ke=>{const Ge=Ke.element;f.has(Ge)&&(fr.set(Ge,Ge),this._beforeAnimationBuild(Ke.player.namespaceId,Ke.instruction,On))}),b.forEach(Ke=>{const Ge=Ke.element;this._getPreviousPlayers(Ge,!1,Ke.namespaceId,Ke.triggerName,null).forEach(Je=>{F(On,Ge,[]).push(Je),Je.destroy()})});const nr=Mt.filter(Ke=>Bs(Ke,ne,me)),br=new Map;Qr(br,this.driver,sn,me,Z.l3).forEach(Ke=>{Bs(Ke,ne,me)&&nr.push(Ke)});const ys=new Map;yt.forEach((Ke,Ge)=>{Qr(ys,this.driver,new Set(Ke),ne,Z.k1)}),nr.forEach(Ke=>{const Ge=br.get(Ke),Xe=ys.get(Ke);br.set(Ke,Object.assign(Object.assign({},Ge),Xe))});const Hr=[],Jr=[],bi={};k.forEach(Ke=>{const{element:Ge,player:Xe,instruction:Je}=Ke;if(f.has(Ge)){if(Re.has(Ge))return Xe.onDestroy(()=>zt(Ge,Je.toStyles)),Xe.disabled=!0,Xe.overrideTotalTime(Je.totalTime),void b.push(Xe);let pn=bi;if(fr.size>1){let Kn=Ge;const Vr=[];for(;Kn=Kn.parentNode;){const Jt=fr.get(Kn);if(Jt){pn=Jt;break}Vr.push(Kn)}Vr.forEach(Jt=>fr.set(Jt,pn))}const wr=this._buildAnimation(Xe.namespaceId,Je,On,I,ys,br);if(Xe.setRealPlayer(wr),pn===bi)Hr.push(Xe);else{const Kn=this.playersByElement.get(pn);Kn&&Kn.length&&(Xe.parentPlayer=U(Kn)),b.push(Xe)}}else dn(Ge,Je.fromStyles),Xe.onDestroy(()=>zt(Ge,Je.toStyles)),Jr.push(Xe),Re.has(Ge)&&b.push(Xe)}),Jr.forEach(Ke=>{const Ge=I.get(Ke.element);if(Ge&&Ge.length){const Xe=U(Ge);Ke.setRealPlayer(Xe)}}),b.forEach(Ke=>{Ke.parentPlayer?Ke.syncPlayerEvents(Ke.parentPlayer):Ke.destroy()});for(let Ke=0;Ke<Mt.length;Ke++){const Ge=Mt[Ke],Xe=Ge[$t];if(qr(Ge,He),Xe&&Xe.hasAnimation)continue;let Je=[];if(j.size){let wr=j.get(Ge);wr&&wr.length&&Je.push(...wr);let Kn=this.driver.query(Ge,Cn,!0);for(let Vr=0;Vr<Kn.length;Vr++){let Jt=j.get(Kn[Vr]);Jt&&Jt.length&&Je.push(...Jt)}}const pn=Je.filter(wr=>!wr.destroyed);pn.length?ks(this,Ge,pn):this.processLeaveNode(Ge)}return Mt.length=0,Hr.forEach(Ke=>{this.players.push(Ke),Ke.onDone(()=>{Ke.destroy();const Ge=this.players.indexOf(Ke);this.players.splice(Ge,1)}),Ke.play()}),Hr}elementContainsData(o,l){let f=!1;const b=l[$t];return b&&b.setForRemoval&&(f=!0),this.playersByElement.has(l)&&(f=!0),this.playersByQueriedElement.has(l)&&(f=!0),this.statesByElement.has(l)&&(f=!0),this._fetchNamespace(o).elementContainsData(l)||f}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,l,f,b,I){let k=[];if(l){const j=this.playersByQueriedElement.get(o);j&&(k=j)}else{const j=this.playersByElement.get(o);if(j){const ne=!I||I==Mr;j.forEach(me=>{me.queued||!ne&&me.triggerName!=b||k.push(me)})}}return(f||b)&&(k=k.filter(j=>!(f&&f!=j.namespaceId||b&&b!=j.triggerName))),k}_beforeAnimationBuild(o,l,f){const I=l.element,k=l.isRemovalTransition?void 0:o,j=l.isRemovalTransition?void 0:l.triggerName;for(const ne of l.timelines){const me=ne.element,Re=me!==I,Ve=F(f,me,[]);this._getPreviousPlayers(me,Re,k,j,l.toState).forEach(yt=>{const qe=yt.getRealPlayer();qe.beforeDestroy&&qe.beforeDestroy(),yt.destroy(),Ve.push(yt)})}dn(I,l.fromStyles)}_buildAnimation(o,l,f,b,I,k){const j=l.triggerName,ne=l.element,me=[],Re=new Set,Ve=new Set,pt=l.timelines.map(qe=>{const gt=qe.element;Re.add(gt);const Mt=gt[$t];if(Mt&&Mt.removedBeforeQueried)return new Z.ZN(qe.duration,qe.delay);const en=gt!==ne,sn=function _i(C){const o=[];return Ls(C,o),o}((f.get(gt)||An).map(On=>On.getRealPlayer())).filter(On=>!!On.element&&On.element===gt),yn=I.get(gt),vn=k.get(gt),Ur=Y(0,this._normalizer,0,qe.keyframes,yn,vn),qn=this._buildPlayer(qe,Ur,sn);if(qe.subTimeline&&b&&Ve.add(gt),en){const On=new Dr(o,j,gt);On.setRealPlayer(qn),me.push(On)}return qn});me.forEach(qe=>{F(this.playersByQueriedElement,qe.element,[]).push(qe),qe.onDone(()=>function Yr(C,o,l){let f;if(C instanceof Map){if(f=C.get(o),f){if(f.length){const b=f.indexOf(l);f.splice(b,1)}0==f.length&&C.delete(o)}}else if(f=C[o],f){if(f.length){const b=f.indexOf(l);f.splice(b,1)}0==f.length&&delete C[o]}return f}(this.playersByQueriedElement,qe.element,qe))}),Re.forEach(qe=>Wn(qe,En));const yt=U(pt);return yt.onDestroy(()=>{Re.forEach(qe=>qr(qe,En)),zt(ne,l.toStyles)}),Ve.forEach(qe=>{F(b,qe,[]).push(yt)}),yt}_buildPlayer(o,l,f){return l.length>0?this.driver.animate(o.element,l,o.duration,o.delay,o.easing,f):new Z.ZN(o.duration,o.delay)}}class Dr{constructor(o,l,f){this.namespaceId=o,this.triggerName=l,this.element=f,this._player=new Z.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(f=>Q(o,l,void 0,f))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const l=this._player;l.triggerCallback&&o.onStart(()=>l.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,l){F(this._queuedCallbacks,o,[]).push(l)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}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(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const l=this._player;l.triggerCallback&&l.triggerCallback(o)}}function Gt(C){return C&&1===C.nodeType}function ii(C,o){const l=C.style.display;return C.style.display=null!=o?o:"none",l}function Qr(C,o,l,f,b){const I=[];l.forEach(ne=>I.push(ii(ne)));const k=[];f.forEach((ne,me)=>{const Re={};ne.forEach(Ve=>{const pt=Re[Ve]=o.computeStyle(me,Ve,b);(!pt||0==pt.length)&&(me[$t]=dr,k.push(me))}),C.set(me,Re)});let j=0;return l.forEach(ne=>ii(ne,I[j++])),k}function Fr(C,o){const l=new Map;if(C.forEach(j=>l.set(j,[])),0==o.length)return l;const b=new Set(o),I=new Map;function k(j){if(!j)return 1;let ne=I.get(j);if(ne)return ne;const me=j.parentNode;return ne=l.has(me)?me:b.has(me)?1:k(me),I.set(j,ne),ne}return o.forEach(j=>{const ne=k(j);1!==ne&&l.get(ne).push(j)}),l}const kr="$$classes";function Wn(C,o){if(C.classList)C.classList.add(o);else{let l=C[kr];l||(l=C[kr]={}),l[o]=!0}}function qr(C,o){if(C.classList)C.classList.remove(o);else{let l=C[kr];l&&delete l[o]}}function ks(C,o,l){U(l).onDone(()=>C.processLeaveNode(o))}function Ls(C,o){for(let l=0;l<C.length;l++){const f=C[l];f instanceof Z.ZE?Ls(f.players,o):o.push(f)}}function Bs(C,o,l){const f=l.get(C);if(!f)return!1;let b=o.get(C);return b?f.forEach(I=>b.add(I)):o.set(C,f),l.delete(C),!0}class Lr{constructor(o,l,f){this.bodyNode=o,this._driver=l,this._normalizer=f,this._triggerCache={},this.onRemovalComplete=(b,I)=>{},this._transitionEngine=new Ln(o,l,f),this._timelineEngine=new Sr(o,l,f),this._transitionEngine.onRemovalComplete=(b,I)=>this.onRemovalComplete(b,I)}registerTrigger(o,l,f,b,I){const k=o+"-"+b;let j=this._triggerCache[k];if(!j){const ne=[],me=je(this._driver,I,ne);if(ne.length)throw new Error(`The animation trigger "${b}" has failed to build due to the following errors:\n - ${ne.join("\n - ")}`);j=function gn(C,o,l){return new vr(C,o,l)}(b,me,this._normalizer),this._triggerCache[k]=j}this._transitionEngine.registerTrigger(l,b,j)}register(o,l){this._transitionEngine.register(o,l)}destroy(o,l){this._transitionEngine.destroy(o,l)}onInsert(o,l,f,b){this._transitionEngine.insertNode(o,l,f,b)}onRemove(o,l,f,b){this._transitionEngine.removeNode(o,l,b||!1,f)}disableAnimations(o,l){this._transitionEngine.markElementAsDisabled(o,l)}process(o,l,f,b){if("@"==f.charAt(0)){const[I,k]=oe(f);this._timelineEngine.command(I,l,k,b)}else this._transitionEngine.trigger(o,l,f,b)}listen(o,l,f,b,I){if("@"==f.charAt(0)){const[k,j]=oe(f);return this._timelineEngine.listen(k,l,j,I)}return this._transitionEngine.listen(o,l,f,b,I)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function js(C,o){let l=null,f=null;return Array.isArray(o)&&o.length?(l=Ms(o[0]),o.length>1&&(f=Ms(o[o.length-1]))):o&&(l=Ms(o)),l||f?new Us(C,l,f):null}let Us=(()=>{class C{constructor(l,f,b){this._element=l,this._startStyles=f,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&&zt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(zt(this._element,this._initialStyles),this._endStyles&&(zt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(C.initialStylesByElement.delete(this._element),this._startStyles&&(dn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(dn(this._element,this._endStyles),this._endStyles=null),zt(this._element,this._initialStyles),this._state=3)}}return C.initialStylesByElement=new WeakMap,C})();function Ms(C){let o=null;const l=Object.keys(C);for(let f=0;f<l.length;f++){const b=l[f];Hs(b)&&(o=o||{},o[b]=C[b])}return o}function Hs(C){return"display"===C||"position"===C}const ds="animation",oi="animationend";class hs{constructor(o,l,f,b,I,k,j){this._element=o,this._name=l,this._duration=f,this._delay=b,this._easing=I,this._fillMode=k,this._onDoneFn=j,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=ne=>this._handleCallback(ne)}apply(){(function Ei(C,o){const l=Er(C,"").trim();let f=0;l.length&&(f=function ps(C,o){let l=0;for(let f=0;f<C.length;f++)C.charAt(f)===o&&l++;return l}(l,",")+1,o=`${l}, ${o}`),Zr(C,"",o)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),$s(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){mn(this._element,this._name,"paused")}resume(){mn(this._element,this._name,"running")}setPosition(o){const l=fs(this._element,this._name);this._position=o*this._duration,Zr(this._element,"Delay",`-${this._position}ms`,l)}getPosition(){return this._position}_handleCallback(o){const l=o._ngTestManualTimestamp||Date.now(),f=1e3*parseFloat(o.elapsedTime.toFixed(3));o.animationName==this._name&&Math.max(l-this._startTime,0)>=this._delay&&f>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),$s(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function hr(C,o){const f=Er(C,"").split(","),b=As(f,o);b>=0&&(f.splice(b,1),Zr(C,"",f.join(",")))}(this._element,this._name))}}function mn(C,o,l){Zr(C,"PlayState",l,fs(C,o))}function fs(C,o){const l=Er(C,"");return l.indexOf(",")>0?As(l.split(","),o):As([l],o)}function As(C,o){for(let l=0;l<C.length;l++)if(C[l].indexOf(o)>=0)return l;return-1}function $s(C,o,l){l?C.removeEventListener(oi,o):C.addEventListener(oi,o)}function Zr(C,o,l,f){const b=ds+o;if(null!=f){const I=C.style[b];if(I.length){const k=I.split(",");k[f]=l,l=k.join(",")}}C.style[b]=l}function Er(C,o){return C.style[ds+o]||""}class In{constructor(o,l,f,b,I,k,j,ne){this.element=o,this.keyframes=l,this.animationName=f,this._duration=b,this._delay=I,this._finalStyles=j,this._specialStyles=ne,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=k||"linear",this.totalTime=b+I,this._buildStyler()}onStart(o){this._onStartFns.push(o)}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(o=>o()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(o){this._styler.setPosition(o)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new hs(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(o){const l="start"==o?this._onStartFns:this._onDoneFns;l.forEach(f=>f()),l.length=0}beforeDestroy(){this.init();const o={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(f=>{"offset"!=f&&(o[f]=l?this._finalStyles[f]:ae(this.element,f))})}this.currentSnapshot=o}}class Gs extends Z.ZN{constructor(o,l){super(),this.element=o,this._startingStyles={},this.__initialized=!1,this._styles=Dt(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(o=>{this._startingStyles[o]=this.element.style[o]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(o=>this.element.style.setProperty(o,this._styles[o])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(o=>{const l=this._startingStyles[o];l?this.element.style.setProperty(o,l):this.element.style.removeProperty(o)}),this._startingStyles=null,super.destroy())}}class Ws{constructor(){this._count=0}validateStyleProperty(o){return we(o)}matchesElement(o,l){return ue(o,l)}containsElement(o,l){return Ze(o,l)}query(o,l,f){return ot(o,l,f)}computeStyle(o,l,f){return window.getComputedStyle(o)[l]}buildKeyframeElement(o,l,f){f=f.map(j=>Dt(j));let b=`@keyframes ${l} {\n`,I="";f.forEach(j=>{I=" ";const ne=parseFloat(j.offset);b+=`${I}${100*ne}% {\n`,I+=" ",Object.keys(j).forEach(me=>{const Re=j[me];switch(me){case"offset":return;case"easing":return void(Re&&(b+=`${I}animation-timing-function: ${Re};\n`));default:return void(b+=`${I}${me}: ${Re};\n`)}}),b+=`${I}}\n`}),b+="}\n";const k=document.createElement("style");return k.textContent=b,k}animate(o,l,f,b,I,k=[],j){const ne=k.filter(Mt=>Mt instanceof In),me={};K(f,b)&&ne.forEach(Mt=>{let en=Mt.currentSnapshot;Object.keys(en).forEach(sn=>me[sn]=en[sn])});const Re=function Ys(C){let o={};return C&&(Array.isArray(C)?C:[C]).forEach(f=>{Object.keys(f).forEach(b=>{"offset"==b||"easing"==b||(o[b]=f[b])})}),o}(l=W(o,l,me));if(0==f)return new Gs(o,Re);const Ve="gen_css_kf_"+this._count++,pt=this.buildKeyframeElement(o,Ve,l);(function Ks(C){var o;const l=null===(o=C.getRootNode)||void 0===o?void 0:o.call(C);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(o).appendChild(pt);const qe=js(o,l),gt=new In(o,l,Ve,f,b,I,Re,qe);return gt.onDestroy(()=>function m(C){C.parentNode.removeChild(C)}(pt)),gt}}class S{constructor(o,l,f,b){this.element=o,this.keyframes=l,this.options=f,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=f.duration,this._delay=f.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(o,l,f){return o.animate(l,f)}onStart(o){this._onStartFns.push(o)}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),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(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(l=>{"offset"!=l&&(o[l]=this._finished?this._finalKeyframe[l]:ae(this.element,l))}),this.currentSnapshot=o}triggerCallback(o){const l="start"==o?this._onStartFns:this._onDoneFns;l.forEach(f=>f()),l.length=0}}class H{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Me().toString()),this._cssKeyframesDriver=new Ws}validateStyleProperty(o){return we(o)}matchesElement(o,l){return ue(o,l)}containsElement(o,l){return Ze(o,l)}query(o,l,f){return ot(o,l,f)}computeStyle(o,l,f){return window.getComputedStyle(o)[l]}overrideWebAnimationsSupport(o){this._isNativeImpl=o}animate(o,l,f,b,I,k=[],j){if(!j&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(o,l,f,b,I,k);const Re={duration:f,delay:b,fill:0==b?"both":"forwards"};I&&(Re.easing=I);const Ve={},pt=k.filter(qe=>qe instanceof S);K(f,b)&&pt.forEach(qe=>{let gt=qe.currentSnapshot;Object.keys(gt).forEach(Mt=>Ve[Mt]=gt[Mt])});const yt=js(o,l=W(o,l=l.map(qe=>Be(qe,!1)),Ve));return new S(o,l,Re,yt)}}function Me(){return se()&&Element.prototype.animate||{}}var Ue=M(9808);let Bt=(()=>{class C extends Z._j{constructor(l,f){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(f.body,{id:"0",encapsulation:g.ifc.None,styles:[],data:{animation:[]}})}build(l){const f=this._nextAnimationId.toString();this._nextAnimationId++;const b=Array.isArray(l)?(0,Z.vP)(l):l;return ut(this._renderer,null,f,"register",[b]),new kt(f,this._renderer)}}return C.\u0275fac=function(l){return new(l||C)(g.LFG(g.FYo),g.LFG(Ue.K0))},C.\u0275prov=g.Yz7({token:C,factory:C.\u0275fac}),C})();class kt extends Z.LC{constructor(o,l){super(),this._id=o,this._renderer=l}create(o,l){return new xt(this._id,o,l||{},this._renderer)}}class xt{constructor(o,l,f,b){this.id=o,this.element=l,this._renderer=b,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",f)}_listen(o,l){return this._renderer.listen(this.element,`@@${this.id}:${o}`,l)}_command(o,...l){return ut(this._renderer,this.element,this.id,o,l)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}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(o){this._command("setPosition",o)}getPosition(){var o,l;return null!==(l=null===(o=this._renderer.engine.players[+this.id])||void 0===o?void 0:o.getPosition())&&void 0!==l?l:0}}function ut(C,o,l,f,b){return C.setProperty(o,`@@${l}:${f}`,b)}const Ut="@.disabled";let ln=(()=>{class C{constructor(l,f,b){this.delegate=l,this.engine=f,this._zone=b,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),f.onRemovalComplete=(I,k)=>{const j=null==k?void 0:k.parentNode(I);j&&k.removeChild(j,I)}}createRenderer(l,f){const I=this.delegate.createRenderer(l,f);if(!(l&&f&&f.data&&f.data.animation)){let Re=this._rendererCache.get(I);return Re||(Re=new Pn("",I,this.engine),this._rendererCache.set(I,Re)),Re}const k=f.id,j=f.id+"-"+this._currentId;this._currentId++,this.engine.register(j,l);const ne=Re=>{Array.isArray(Re)?Re.forEach(ne):this.engine.registerTrigger(k,j,l,Re.name,Re)};return f.data.animation.forEach(ne),new Cr(this,j,I,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,f,b){l>=0&&l<this._microtaskId?this._zone.run(()=>f(b)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(I=>{const[k,j]=I;k(j)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([f,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)(g.LFG(g.FYo),g.LFG(Lr),g.LFG(g.R0b))},C.\u0275prov=g.Yz7({token:C,factory:C.\u0275fac}),C})();class Pn{constructor(o,l,f){this.namespaceId=o,this.delegate=l,this.engine=f,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(o,l){return this.delegate.createElement(o,l)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,l){this.delegate.appendChild(o,l),this.engine.onInsert(this.namespaceId,l,o,!1)}insertBefore(o,l,f,b=!0){this.delegate.insertBefore(o,l,f),this.engine.onInsert(this.namespaceId,l,o,b)}removeChild(o,l,f){this.engine.onRemove(this.namespaceId,l,this.delegate,f)}selectRootElement(o,l){return this.delegate.selectRootElement(o,l)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,l,f,b){this.delegate.setAttribute(o,l,f,b)}removeAttribute(o,l,f){this.delegate.removeAttribute(o,l,f)}addClass(o,l){this.delegate.addClass(o,l)}removeClass(o,l){this.delegate.removeClass(o,l)}setStyle(o,l,f,b){this.delegate.setStyle(o,l,f,b)}removeStyle(o,l,f){this.delegate.removeStyle(o,l,f)}setProperty(o,l,f){"@"==l.charAt(0)&&l==Ut?this.disableAnimations(o,!!f):this.delegate.setProperty(o,l,f)}setValue(o,l){this.delegate.setValue(o,l)}listen(o,l,f){return this.delegate.listen(o,l,f)}disableAnimations(o,l){this.engine.disableAnimations(o,l)}}class Cr extends Pn{constructor(o,l,f,b){super(l,f,b),this.factory=o,this.namespaceId=l}setProperty(o,l,f){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Ut?this.disableAnimations(o,f=void 0===f||!!f):this.engine.process(this.namespaceId,o,l.substr(1),f):this.delegate.setProperty(o,l,f)}listen(o,l,f){if("@"==l.charAt(0)){const b=function jr(C){switch(C){case"body":return document.body;case"document":return document;case"window":return window;default:return C}}(o);let I=l.substr(1),k="";return"@"!=I.charAt(0)&&([I,k]=function tt(C){const o=C.indexOf(".");return[C.substring(0,o),C.substr(o+1)]}(I)),this.engine.listen(this.namespaceId,b,I,k,j=>{this.factory.scheduleListenerCallback(j._data||-1,f,j)})}return this.delegate.listen(o,l,f)}}let ai=(()=>{class C extends Lr{constructor(l,f,b){super(l.body,f,b)}ngOnDestroy(){this.flush()}}return C.\u0275fac=function(l){return new(l||C)(g.LFG(Ue.K0),g.LFG(dt),g.LFG(Nn))},C.\u0275prov=g.Yz7({token:C,factory:C.\u0275fac}),C})();const Os=new g.OlP("AnimationModuleType"),Rs=[{provide:Z._j,useClass:Bt},{provide:Nn,useFactory:function ms(){return new cr}},{provide:Lr,useClass:ai},{provide:g.FYo,useFactory:function lo(C,o,l){return new ln(C,o,l)},deps:[_.se,Lr,g.R0b]}],Ci=[{provide:dt,useFactory:function Ps(){return function fe(){return"function"==typeof Me()}()?new H:new Ws}},{provide:Os,useValue:"BrowserAnimations"},...Rs],Ae=[{provide:dt,useClass:We},{provide:Os,useValue:"NoopAnimations"},...Rs];let wt=(()=>{class C{static withConfig(l){return{ngModule:C,providers:l.disableAnimations?Ae:Ci}}}return C.\u0275fac=function(l){return new(l||C)},C.\u0275mod=g.oAB({type:C}),C.\u0275inj=g.cJS({providers:Ci,imports:[_.b2]}),C})()},2313:(ze,de,M)=>{M.d(de,{H7:()=>$n,b2:()=>Hn,q6:()=>dn,se:()=>at});var g=M(9808),_=M(9863);class Z extends g.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class se extends Z{static makeCurrent(){(0,g.HT)(new se)}onAndCancel(L,x,te){return L.addEventListener(x,te,!1),()=>{L.removeEventListener(x,te,!1)}}dispatchEvent(L,x){L.dispatchEvent(x)}remove(L){L.parentNode&&L.parentNode.removeChild(L)}createElement(L,x){return(x=x||this.getDefaultDocument()).createElement(L)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(L){return L.nodeType===Node.ELEMENT_NODE}isShadowRoot(L){return L instanceof DocumentFragment}getGlobalEventTarget(L,x){return"window"===x?window:"document"===x?L:"body"===x?L.body:null}getBaseHref(L){const x=function U(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==x?null:function Q(re){Y=Y||document.createElement("a"),Y.setAttribute("href",re);const L=Y.pathname;return"/"===L.charAt(0)?L:`/${L}`}(x)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(L){return(0,g.Mx)(document.cookie,L)}}let Y,B=null;const $=new _.OlP("TRANSITION_ID"),F=[{provide:_.ip1,useFactory:function V(re,L,x){return()=>{x.get(_.CZH).donePromise.then(()=>{const te=(0,g.q)(),be=L.querySelectorAll(`style[ng-transition="${re}"]`);for(let O=0;O<be.length;O++)te.remove(be[O])})}},deps:[$,g.K0,_.zs3],multi:!0}];class oe{static init(){(0,_.VLi)(new oe)}addToWindow(L){_.dqk.getAngularTestability=(te,be=!0)=>{const O=L.findTestabilityInTree(te,be);if(null==O)throw new Error("Could not find testability for element.");return O},_.dqk.getAllAngularTestabilities=()=>L.getAllTestabilities(),_.dqk.getAllAngularRootElements=()=>L.getAllRootElements(),_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(te=>{const be=_.dqk.getAllAngularTestabilities();let O=be.length,q=!1;const R=function(ce){q=q||ce,O--,0==O&&te(q)};be.forEach(function(ce){ce.whenStable(R)})})}findTestabilityInTree(L,x,te){if(null==x)return null;const be=L.getTestability(x);return null!=be?be:te?(0,g.q)().isShadowRoot(x)?this.findTestabilityInTree(L,x.host,!0):this.findTestabilityInTree(L,x.parentElement,!0):null}}let he=(()=>{class re{build(){return new XMLHttpRequest}}return re.\u0275fac=function(x){return new(x||re)},re.\u0275prov=_.Yz7({token:re,factory:re.\u0275fac}),re})();const Ee=new _.OlP("EventManagerPlugins");let ee=(()=>{class re{constructor(x,te){this._zone=te,this._eventNameToPlugin=new Map,x.forEach(be=>be.manager=this),this._plugins=x.slice().reverse()}addEventListener(x,te,be){return this._findPluginFor(te).addEventListener(x,te,be)}addGlobalEventListener(x,te,be){return this._findPluginFor(te).addGlobalEventListener(x,te,be)}getZone(){return this._zone}_findPluginFor(x){const te=this._eventNameToPlugin.get(x);if(te)return te;const be=this._plugins;for(let O=0;O<be.length;O++){const q=be[O];if(q.supports(x))return this._eventNameToPlugin.set(x,q),q}throw new Error(`No event manager plugin found for event ${x}`)}}return re.\u0275fac=function(x){return new(x||re)(_.LFG(Ee),_.LFG(_.R0b))},re.\u0275prov=_.Yz7({token:re,factory:re.\u0275fac}),re})();class pe{constructor(L){this._doc=L}addGlobalEventListener(L,x,te){const be=(0,g.q)().getGlobalEventTarget(this._doc,L);if(!be)throw new Error(`Unsupported event target ${be} for event ${x}`);return this.addEventListener(be,x,te)}}let Te=(()=>{class re{constructor(){this._stylesSet=new Set}addStyles(x){const te=new Set;x.forEach(be=>{this._stylesSet.has(be)||(this._stylesSet.add(be),te.add(be))}),this.onStylesAdded(te)}onStylesAdded(x){}getAllStyles(){return Array.from(this._stylesSet)}}return re.\u0275fac=function(x){return new(x||re)},re.\u0275prov=_.Yz7({token:re,factory:re.\u0275fac}),re})(),Pe=(()=>{class re extends Te{constructor(x){super(),this._doc=x,this._hostNodes=new Map,this._hostNodes.set(x.head,[])}_addStylesToHost(x,te,be){x.forEach(O=>{const q=this._doc.createElement("style");q.textContent=O,be.push(te.appendChild(q))})}addHost(x){const te=[];this._addStylesToHost(this._stylesSet,x,te),this._hostNodes.set(x,te)}removeHost(x){const te=this._hostNodes.get(x);te&&te.forEach(Oe),this._hostNodes.delete(x)}onStylesAdded(x){this._hostNodes.forEach((te,be)=>{this._addStylesToHost(x,be,te)})}ngOnDestroy(){this._hostNodes.forEach(x=>x.forEach(Oe))}}return re.\u0275fac=function(x){return new(x||re)(_.LFG(g.K0))},re.\u0275prov=_.Yz7({token:re,factory:re.\u0275fac}),re})();function Oe(re){(0,g.q)().remove(re)}const we={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/"},ie=/%COMP%/g;function Tt(re,L,x){for(let te=0;te<L.length;te++){let be=L[te];Array.isArray(be)?Tt(re,be,x):(be=be.replace(ie,re),x.push(be))}return x}function St(re){return L=>{if("__ngUnwrap__"===L)return re;!1===re(L)&&(L.preventDefault(),L.returnValue=!1)}}let at=(()=>{class re{constructor(x,te,be){this.eventManager=x,this.sharedStylesHost=te,this.appId=be,this.rendererByCompId=new Map,this.defaultRenderer=new He(x)}createRenderer(x,te){if(!x||!te)return this.defaultRenderer;switch(te.encapsulation){case _.ifc.Emulated:{let be=this.rendererByCompId.get(te.id);return be||(be=new un(this.eventManager,this.sharedStylesHost,te,this.appId),this.rendererByCompId.set(te.id,be)),be.applyToHost(x),be}case 1:case _.ifc.ShadowDom:return new cn(this.eventManager,this.sharedStylesHost,x,te);default:if(!this.rendererByCompId.has(te.id)){const be=Tt(te.id,te.styles,[]);this.sharedStylesHost.addStyles(be),this.rendererByCompId.set(te.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return re.\u0275fac=function(x){return new(x||re)(_.LFG(ee),_.LFG(Pe),_.LFG(_.AFp))},re.\u0275prov=_.Yz7({token:re,factory:re.\u0275fac}),re})();class He{constructor(L){this.eventManager=L,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(L,x){return x?document.createElementNS(we[x]||x,L):document.createElement(L)}createComment(L){return document.createComment(L)}createText(L){return document.createTextNode(L)}appendChild(L,x){L.appendChild(x)}insertBefore(L,x,te){L&&L.insertBefore(x,te)}removeChild(L,x){L&&L.removeChild(x)}selectRootElement(L,x){let te="string"==typeof L?document.querySelector(L):L;if(!te)throw new Error(`The selector "${L}" did not match any elements`);return x||(te.textContent=""),te}parentNode(L){return L.parentNode}nextSibling(L){return L.nextSibling}setAttribute(L,x,te,be){if(be){x=be+":"+x;const O=we[be];O?L.setAttributeNS(O,x,te):L.setAttribute(x,te)}else L.setAttribute(x,te)}removeAttribute(L,x,te){if(te){const be=we[te];be?L.removeAttributeNS(be,x):L.removeAttribute(`${te}:${x}`)}else L.removeAttribute(x)}addClass(L,x){L.classList.add(x)}removeClass(L,x){L.classList.remove(x)}setStyle(L,x,te,be){be&(_.JOm.DashCase|_.JOm.Important)?L.style.setProperty(x,te,be&_.JOm.Important?"important":""):L.style[x]=te}removeStyle(L,x,te){te&_.JOm.DashCase?L.style.removeProperty(x):L.style[x]=""}setProperty(L,x,te){L[x]=te}setValue(L,x){L.nodeValue=x}listen(L,x,te){return"string"==typeof L?this.eventManager.addGlobalEventListener(L,x,St(te)):this.eventManager.addEventListener(L,x,St(te))}}class un extends He{constructor(L,x,te,be){super(L),this.component=te;const O=Tt(be+"-"+te.id,te.styles,[]);x.addStyles(O),this.contentAttr=function We(re){return"_ngcontent-%COMP%".replace(ie,re)}(be+"-"+te.id),this.hostAttr=function dt(re){return"_nghost-%COMP%".replace(ie,re)}(be+"-"+te.id)}applyToHost(L){super.setAttribute(L,this.hostAttr,"")}createElement(L,x){const te=super.createElement(L,x);return super.setAttribute(te,this.contentAttr,""),te}}class cn extends He{constructor(L,x,te,be){super(L),this.sharedStylesHost=x,this.hostEl=te,this.shadowRoot=te.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const O=Tt(be.id,be.styles,[]);for(let q=0;q<O.length;q++){const R=document.createElement("style");R.textContent=O[q],this.shadowRoot.appendChild(R)}}nodeOrShadowRoot(L){return L===this.hostEl?this.shadowRoot:L}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(L,x){return super.appendChild(this.nodeOrShadowRoot(L),x)}insertBefore(L,x,te){return super.insertBefore(this.nodeOrShadowRoot(L),x,te)}removeChild(L,x){return super.removeChild(this.nodeOrShadowRoot(L),x)}parentNode(L){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(L)))}}let En=(()=>{class re extends pe{constructor(x){super(x)}supports(x){return!0}addEventListener(x,te,be){return x.addEventListener(te,be,!1),()=>this.removeEventListener(x,te,be)}removeEventListener(x,te,be){return x.removeEventListener(te,be)}}return re.\u0275fac=function(x){return new(x||re)(_.LFG(g.K0))},re.\u0275prov=_.Yz7({token:re,factory:re.\u0275fac}),re})();const Cn=["alt","control","meta","shift"],ve={"\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"},Ce={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"},J={alt:re=>re.altKey,control:re=>re.ctrlKey,meta:re=>re.metaKey,shift:re=>re.shiftKey};let le=(()=>{class re extends pe{constructor(x){super(x)}supports(x){return null!=re.parseEventName(x)}addEventListener(x,te,be){const O=re.parseEventName(te),q=re.eventCallback(O.fullKey,be,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.q)().onAndCancel(x,O.domEventName,q))}static parseEventName(x){const te=x.toLowerCase().split("."),be=te.shift();if(0===te.length||"keydown"!==be&&"keyup"!==be)return null;const O=re._normalizeKey(te.pop());let q="";if(Cn.forEach(ce=>{const st=te.indexOf(ce);st>-1&&(te.splice(st,1),q+=ce+".")}),q+=O,0!=te.length||0===O.length)return null;const R={};return R.domEventName=be,R.fullKey=q,R}static getEventFullKey(x){let te="",be=function Ne(re){let L=re.key;if(null==L){if(L=re.keyIdentifier,null==L)return"Unidentified";L.startsWith("U+")&&(L=String.fromCharCode(parseInt(L.substring(2),16)),3===re.location&&Ce.hasOwnProperty(L)&&(L=Ce[L]))}return ve[L]||L}(x);return be=be.toLowerCase()," "===be?be="space":"."===be&&(be="dot"),Cn.forEach(O=>{O!=be&&J[O](x)&&(te+=O+".")}),te+=be,te}static eventCallback(x,te,be){return O=>{re.getEventFullKey(O)===x&&be.runGuarded(()=>te(O))}}static _normalizeKey(x){return"esc"===x?"escape":x}}return re.\u0275fac=function(x){return new(x||re)(_.LFG(g.K0))},re.\u0275prov=_.Yz7({token:re,factory:re.\u0275fac}),re})();const dn=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:g.bD},{provide:_.g9A,useValue:function Be(){se.makeCurrent(),oe.init()},multi:!0},{provide:g.K0,useFactory:function jt(){return(0,_.RDi)(document),document},deps:[]}]),nn=[{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function tn(){return new _.qLn},deps:[]},{provide:Ee,useClass:En,multi:!0,deps:[g.K0,_.R0b,_.Lbi]},{provide:Ee,useClass:le,multi:!0,deps:[g.K0]},{provide:at,useClass:at,deps:[ee,Pe,_.AFp]},{provide:_.FYo,useExisting:at},{provide:Te,useExisting:Pe},{provide:Pe,useClass:Pe,deps:[g.K0]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b]},{provide:ee,useClass:ee,deps:[Ee,_.R0b]},{provide:g.JF,useClass:he,deps:[]}];let Hn=(()=>{class re{constructor(x){if(x)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(x){return{ngModule:re,providers:[{provide:_.AFp,useValue:x.appId},{provide:$,useExisting:_.AFp},F]}}}return re.\u0275fac=function(x){return new(x||re)(_.LFG(re,12))},re.\u0275mod=_.oAB({type:re}),re.\u0275inj=_.cJS({providers:nn,imports:[g.ez,_.hGG]}),re})();"undefined"!=typeof window&&window;let $n=(()=>{class re{}return re.\u0275fac=function(x){return new(x||re)},re.\u0275prov=_.Yz7({token:re,factory:function(x){let te=null;return te=x?new(x||re):_.LFG(yr),te},providedIn:"root"}),re})(),yr=(()=>{class re extends $n{constructor(x){super(),this._doc=x}sanitize(x,te){if(null==te)return null;switch(x){case _.q3G.NONE:return te;case _.q3G.HTML:return(0,_.qzn)(te,"HTML")?(0,_.z3N)(te):(0,_.EiD)(this._doc,String(te)).toString();case _.q3G.STYLE:return(0,_.qzn)(te,"Style")?(0,_.z3N)(te):te;case _.q3G.SCRIPT:if((0,_.qzn)(te,"Script"))return(0,_.z3N)(te);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.yhl)(te),(0,_.qzn)(te,"URL")?(0,_.z3N)(te):(0,_.mCW)(String(te));case _.q3G.RESOURCE_URL:if((0,_.qzn)(te,"ResourceURL"))return(0,_.z3N)(te);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${x} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(x){return(0,_.JVY)(x)}bypassSecurityTrustStyle(x){return(0,_.L6k)(x)}bypassSecurityTrustScript(x){return(0,_.eBb)(x)}bypassSecurityTrustUrl(x){return(0,_.LAX)(x)}bypassSecurityTrustResourceUrl(x){return(0,_.pB0)(x)}}return re.\u0275fac=function(x){return new(x||re)(_.LFG(g.K0))},re.\u0275prov=_.Yz7({token:re,factory:function(x){let te=null;return te=x?new x:function zn(re){return new yr(re.get(g.K0))}(_.LFG(_.zs3)),te},providedIn:"root"}),re})()},8555:(ze,de,M)=>{M.d(de,{gz:()=>kn,m2:()=>jt,F0:()=>on,rH:()=>es,Od:()=>Qs,yS:()=>wi,Bz:()=>Si,lC:()=>In});var g=M(9863);const Z=(()=>{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 se=M(5254),B=M(1086),U=M(591),Y=M(3426),Q=M(2916),$=M(1221),V=M(8514),F=M(8896),oe=M(1762),he=M(8929),Ee=M(3489);function ee(h,c){let u=!1;return arguments.length>=2&&(u=!0),function(D){return D.lift(new pe(h,c,u))}}class pe{constructor(c,u,y=!1){this.accumulator=c,this.seed=u,this.hasSeed=y}call(c,u){return u.subscribe(new Te(c,this.accumulator,this.seed,this.hasSeed))}}class Te extends Ee.L{constructor(c,u,y,D){super(c),this.accumulator=u,this._seed=y,this.hasSeed=D,this.index=0}get seed(){return this._seed}set seed(c){this.hasSeed=!0,this._seed=c}_next(c){if(this.hasSeed)return this._tryNext(c);this.seed=c,this.destination.next(c)}_tryNext(c){const u=this.index++;let y;try{y=this.accumulator(this.seed,c,u)}catch(D){this.destination.error(D)}this.seed=y,this.destination.next(y)}}var Pe=M(2198),Oe=M(4231);function we(h){return function(u){return 0===h?(0,F.c)():u.lift(new ie(h))}}class ie{constructor(c){if(this.total=c,this.total<0)throw new Oe.W}call(c,u){return u.subscribe(new ue(c,this.total))}}class ue extends Ee.L{constructor(c,u){super(c),this.total=u,this.ring=new Array,this.count=0}_next(c){const u=this.ring,y=this.total,D=this.count++;u.length<y?u.push(c):u[D%y]=c}_complete(){const c=this.destination;let u=this.count;if(u>0){const y=this.count>=this.total?this.total:this.count,D=this.ring;for(let A=0;A<y;A++){const N=u++%y;c.next(D[N])}}c.complete()}}function Ze(h=We){return c=>c.lift(new ot(h))}class ot{constructor(c){this.errorFactory=c}call(c,u){return u.subscribe(new Dt(c,this.errorFactory))}}class Dt extends Ee.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 We(){return new Z}function dt(h=null){return c=>c.lift(new Tt(h))}class Tt{constructor(c){this.defaultValue=c}call(c,u){return u.subscribe(new St(c,this.defaultValue))}}class St extends Ee.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 ht=M(5379),He=M(2986);function Un(h,c){const u=arguments.length>=2;return y=>y.pipe(h?(0,Pe.h)((D,A)=>h(D,A,y)):ht.y,(0,He.q)(1),u?dt(c):Ze(()=>new Z))}var It=M(4850),un=M(7545),cn=M(1059),En=M(7221),Cn=M(1406),Vt=M(1709),ve=M(2994),Ce=M(4327),J=M(537),le=M(9146),Ne=M(9808);class Be{constructor(c,u){this.id=c,this.url=u}}class tn extends Be{constructor(c,u,y="imperative",D=null){super(c,u),this.navigationTrigger=y,this.restoredState=D}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jt extends Be{constructor(c,u,y){super(c,u),this.urlAfterRedirects=y}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zt extends Be{constructor(c,u,y){super(c,u),this.reason=y}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class dn extends Be{constructor(c,u,y){super(c,u),this.error=y}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nn extends Be{constructor(c,u,y,D){super(c,u),this.urlAfterRedirects=y,this.state=D}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn extends Be{constructor(c,u,y,D){super(c,u),this.urlAfterRedirects=y,this.state=D}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jn extends Be{constructor(c,u,y,D,A){super(c,u),this.urlAfterRedirects=y,this.state=D,this.shouldActivate=A}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Vn extends Be{constructor(c,u,y,D){super(c,u),this.urlAfterRedirects=y,this.state=D}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rn extends Be{constructor(c,u,y,D){super(c,u),this.urlAfterRedirects=y,this.state=D}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ht{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ar{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nt{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _e{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class K{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class De{constructor(c,u,y){this.routerEvent=c,this.position=u,this.anchor=y}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ae="primary";class Fe{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 Ie(h){return new Fe(h)}const $e="ngNavigationCancelingError";function lt(h){const c=Error("NavigationCancelingError: "+h);return c[$e]=!0,c}function Qt(h,c,u){const y=u.path.split("/");if(y.length>h.length||"full"===u.pathMatch&&(c.hasChildren()||y.length<h.length))return null;const D={};for(let A=0;A<y.length;A++){const N=y[A],G=h[A];if(N.startsWith(":"))D[N.substring(1)]=G;else if(N!==G.path)return null}return{consumed:h.slice(0,y.length),posParams:D}}function At(h,c){const u=h?Object.keys(h):void 0,y=c?Object.keys(c):void 0;if(!u||!y||u.length!=y.length)return!1;let D;for(let A=0;A<u.length;A++)if(D=u[A],!Et(h[D],c[D]))return!1;return!0}function Et(h,c){if(Array.isArray(h)&&Array.isArray(c)){if(h.length!==c.length)return!1;const u=[...h].sort(),y=[...c].sort();return u.every((D,A)=>y[A]===D)}return h===c}function je(h){return Array.prototype.concat.apply([],h)}function xn(h){return h.length>0?h[h.length-1]:null}function mt(h,c){for(const u in h)h.hasOwnProperty(u)&&c(h[u],u)}function rt(h){return(0,g.CqO)(h)?h:(0,g.QGY)(h)?(0,se.D)(Promise.resolve(h)):(0,B.of)(h)}const bn={exact:function Tn(h,c,u){if(!be(h.segments,c.segments)||!ur(h.segments,c.segments,u)||h.numberOfChildren!==c.numberOfChildren)return!1;for(const y in c.children)if(!h.children[y]||!Tn(h.children[y],c.children[y],u))return!1;return!0},subset:zn},Xn={exact:function Xt(h,c){return At(h,c)},subset:function $n(h,c){return Object.keys(c).length<=Object.keys(h).length&&Object.keys(c).every(u=>Et(h[u],c[u]))},ignored:()=>!0};function er(h,c,u){return bn[u.paths](h.root,c.root,u.matrixParams)&&Xn[u.queryParams](h.queryParams,c.queryParams)&&!("exact"===u.fragment&&h.fragment!==c.fragment)}function zn(h,c,u){return yr(h,c,c.segments,u)}function yr(h,c,u,y){if(h.segments.length>u.length){const D=h.segments.slice(0,u.length);return!(!be(D,u)||c.hasChildren()||!ur(D,u,y))}if(h.segments.length===u.length){if(!be(h.segments,u)||!ur(h.segments,u,y))return!1;for(const D in c.children)if(!h.children[D]||!zn(h.children[D],c.children[D],y))return!1;return!0}{const D=u.slice(0,h.segments.length),A=u.slice(h.segments.length);return!!(be(h.segments,D)&&ur(h.segments,D,y)&&h.children[ae])&&yr(h.children[ae],c,A,y)}}function ur(h,c,u){return c.every((y,D)=>Xn[u](h[D].parameters,y.parameters))}class re{constructor(c,u,y){this.root=c,this.queryParams=u,this.fragment=y}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ie(this.queryParams)),this._queryParamMap}toString(){return ce.serialize(this)}}class L{constructor(c,u){this.segments=c,this.children=u,this.parent=null,mt(u,(y,D)=>y.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return st(this)}}class x{constructor(c,u){this.path=c,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=Ie(this.parameters)),this._parameterMap}toString(){return Kr(this)}}function be(h,c){return h.length===c.length&&h.every((u,y)=>u.path===c[y].path)}class q{}class R{parse(c){const u=new Zt(c);return new re(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(c){const u=`/${bt(c.root,!0)}`,y=function ke(h){const c=Object.keys(h).map(u=>{const y=h[u];return Array.isArray(y)?y.map(D=>`${Nn(u)}=${Nn(D)}`).join("&"):`${Nn(u)}=${Nn(y)}`}).filter(u=>!!u);return c.length?`?${c.join("&")}`:""}(c.queryParams);return`${u}${y}${"string"==typeof c.fragment?`#${function Qn(h){return encodeURI(h)}(c.fragment)}`:""}`}}const ce=new R;function st(h){return h.segments.map(c=>Kr(c)).join("/")}function bt(h,c){if(!h.hasChildren())return st(h);if(c){const u=h.children[ae]?bt(h.children[ae],!1):"",y=[];return mt(h.children,(D,A)=>{A!==ae&&y.push(`${A}:${bt(D,!1)}`)}),y.length>0?`${u}(${y.join("//")})`:u}{const u=function O(h,c){let u=[];return mt(h.children,(y,D)=>{D===ae&&(u=u.concat(c(y,D)))}),mt(h.children,(y,D)=>{D!==ae&&(u=u.concat(c(y,D)))}),u}(h,(y,D)=>D===ae?[bt(h.children[ae],!1)]:[`${D}:${bt(y,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[ae]?`${st(h)}/${u[0]}`:`${st(h)}/(${u.join("//")})`}}function qt(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nn(h){return qt(h).replace(/%3B/gi,";")}function cr(h){return qt(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hn(h){return decodeURIComponent(h)}function fn(h){return hn(h.replace(/\+/g,"%20"))}function Kr(h){return`${cr(h.path)}${function Sn(h){return Object.keys(h).map(c=>`;${cr(c)}=${cr(h[c])}`).join("")}(h.parameters)}`}const vt=/^[^\/()?;=#]+/;function Ft(h){const c=h.match(vt);return c?c[0]:""}const gn=/^[^=?&#]+/,an=/^[^&#]+/;class Zt{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new L([],{}):new L([],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 y={};return this.peekStartsWith("(")&&(y=this.parseParens(!1)),(c.length>0||Object.keys(u).length>0)&&(y[ae]=new L(c,u)),y}parseSegment(){const c=Ft(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new x(hn(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const u=Ft(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const D=Ft(this.remaining);D&&(y=D,this.capture(y))}c[hn(u)]=hn(y)}parseQueryParam(c){const u=function vr(h){const c=h.match(gn);return c?c[0]:""}(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const N=function Tr(h){const c=h.match(an);return c?c[0]:""}(this.remaining);N&&(y=N,this.capture(y))}const D=fn(u),A=fn(y);if(c.hasOwnProperty(D)){let N=c[D];Array.isArray(N)||(N=[N],c[D]=N),N.push(A)}else c[D]=A}parseParens(c){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const y=Ft(this.remaining),D=this.remaining[y.length];if("/"!==D&&")"!==D&&";"!==D)throw new Error(`Cannot parse url '${this.url}'`);let A;y.indexOf(":")>-1?(A=y.substr(0,y.indexOf(":")),this.capture(A),this.capture(":")):c&&(A=ae);const N=this.parseChildren();u[A]=1===Object.keys(N).length?N[ae]:new L([],N),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 Sr{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=tr(c,this._root);return u?u.children.map(y=>y.value):[]}firstChild(c){const u=tr(c,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(c){const u=ft(c,this._root);return u.length<2?[]:u[u.length-2].children.map(D=>D.value).filter(D=>D!==c)}pathFromRoot(c){return ft(c,this._root).map(u=>u.value)}}function tr(h,c){if(h===c.value)return c;for(const u of c.children){const y=tr(h,u);if(y)return y}return null}function ft(h,c){if(h===c.value)return[c];for(const u of c.children){const y=ft(h,u);if(y.length)return y.unshift(c),y}return[]}class Mn{constructor(c,u){this.value=c,this.children=u}toString(){return`TreeNode(${this.value})`}}function Fn(h){const c={};return h&&h.children.forEach(u=>c[u.value.outlet]=u),c}class ls extends Sr{constructor(c,u){super(c),this.snapshot=u,us(this,c)}toString(){return this.snapshot.toString()}}function _r(h,c){const u=function An(h,c){const N=new Ot([],{},{},"",{},ae,c,null,h.root,-1,{});return new Mr("",new Mn(N,[]))}(h,c),y=new U.X([new x("",{})]),D=new U.X({}),A=new U.X({}),N=new U.X({}),G=new U.X(""),ge=new kn(y,D,N,G,A,ae,c,u.root);return ge.snapshot=u.root,new ls(new Mn(ge,[]),u)}class kn{constructor(c,u,y,D,A,N,G,ge){this.url=c,this.params=u,this.queryParams=y,this.fragment=D,this.data=A,this.outlet=N,this.component=G,this._futureSnapshot=ge}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,It.U)(c=>Ie(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,It.U)(c=>Ie(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dr(h,c="emptyOnly"){const u=h.pathFromRoot;let y=0;if("always"!==c)for(y=u.length-1;y>=1;){const D=u[y],A=u[y-1];if(D.routeConfig&&""===D.routeConfig.path)y--;else{if(A.component)break;y--}}return function $t(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(y))}class Ot{constructor(c,u,y,D,A,N,G,ge,Ye,Nt,et){this.url=c,this.params=u,this.queryParams=y,this.fragment=D,this.data=A,this.outlet=N,this.component=G,this.routeConfig=ge,this._urlSegment=Ye,this._lastPathIndex=Nt,this._resolve=et}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=Ie(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ie(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(y=>y.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Mr extends Sr{constructor(c,u){super(u),this.url=c,us(this,u)}toString(){return Gn(this._root)}}function us(h,c){c.value._routerState=h,c.children.forEach(u=>us(h,u))}function Gn(h){const c=h.children.length>0?` { ${h.children.map(Gn).join(", ")} } `:"";return`${h.value}${c}`}function Ln(h){if(h.snapshot){const c=h.snapshot,u=h._futureSnapshot;h.snapshot=u,At(c.queryParams,u.queryParams)||h.queryParams.next(u.queryParams),c.fragment!==u.fragment&&h.fragment.next(u.fragment),At(c.params,u.params)||h.params.next(u.params),function rn(h,c){if(h.length!==c.length)return!1;for(let u=0;u<h.length;++u)if(!At(h[u],c[u]))return!1;return!0}(c.url,u.url)||h.url.next(u.url),At(c.data,u.data)||h.data.next(u.data)}else h.snapshot=h._futureSnapshot,h.data.next(h._futureSnapshot.data)}function Dr(h,c){const u=At(h.params,c.params)&&function te(h,c){return be(h,c)&&h.every((u,y)=>At(u.parameters,c[y].parameters))}(h.url,c.url);return u&&!(!h.parent!=!c.parent)&&(!h.parent||Dr(h.parent,c.parent))}function Ar(h,c,u){if(u&&h.shouldReuseRoute(c.value,u.value.snapshot)){const y=u.value;y._futureSnapshot=c.value;const D=function Gt(h,c,u){return c.children.map(y=>{for(const D of u.children)if(h.shouldReuseRoute(y.value,D.value.snapshot))return Ar(h,y,D);return Ar(h,y)})}(h,c,u);return new Mn(y,D)}{if(h.shouldAttach(c.value)){const A=h.retrieve(c.value);if(null!==A){const N=A.route;return N.value._futureSnapshot=c.value,N.children=c.children.map(G=>Ar(h,G)),N}}const y=function si(h){return new kn(new U.X(h.url),new U.X(h.params),new U.X(h.queryParams),new U.X(h.fragment),new U.X(h.data),h.outlet,h.component,h)}(c.value),D=c.children.map(A=>Ar(h,A));return new Mn(y,D)}}function Qr(h){return"object"==typeof h&&null!=h&&!h.outlets&&!h.segmentPath}function Fr(h){return"object"==typeof h&&null!=h&&h.outlets}function kr(h,c,u,y,D){let A={};return y&&mt(y,(N,G)=>{A[G]=Array.isArray(N)?N.map(ge=>`${ge}`):`${N}`}),new re(u.root===h?c:vi(u.root,h,c),A,D)}function vi(h,c,u){const y={};return mt(h.children,(D,A)=>{y[A]=D===c?u:vi(D,c,u)}),new L(h.segments,y)}class Wn{constructor(c,u,y){if(this.isAbsolute=c,this.numberOfDoubleDots=u,this.commands=y,c&&y.length>0&&Qr(y[0]))throw new Error("Root segment cannot have matrix parameters");const D=y.find(Fr);if(D&&D!==xn(y))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ks{constructor(c,u,y){this.segmentGroup=c,this.processChildren=u,this.index=y}}function Bs(h,c,u){if(h||(h=new L([],{})),0===h.segments.length&&h.hasChildren())return Lr(h,c,u);const y=function js(h,c,u){let y=0,D=c;const A={match:!1,pathIndex:0,commandIndex:0};for(;D<h.segments.length;){if(y>=u.length)return A;const N=h.segments[D],G=u[y];if(Fr(G))break;const ge=`${G}`,Ye=y<u.length-1?u[y+1]:null;if(D>0&&void 0===ge)break;if(ge&&Ye&&"object"==typeof Ye&&void 0===Ye.outlets){if(!cs(ge,Ye,N))return A;y+=2}else{if(!cs(ge,{},N))return A;y++}D++}return{match:!0,pathIndex:D,commandIndex:y}}(h,c,u),D=u.slice(y.commandIndex);if(y.match&&y.pathIndex<h.segments.length){const A=new L(h.segments.slice(0,y.pathIndex),{});return A.children[ae]=new L(h.segments.slice(y.pathIndex),h.children),Lr(A,0,D)}return y.match&&0===D.length?new L(h.segments,{}):y.match&&!h.hasChildren()?Us(h,c,u):y.match?Lr(h,0,D):Us(h,c,u)}function Lr(h,c,u){if(0===u.length)return new L(h.segments,{});{const y=function Di(h){return Fr(h[0])?h[0].outlets:{[ae]:h}}(u),D={};return mt(y,(A,N)=>{"string"==typeof A&&(A=[A]),null!==A&&(D[N]=Bs(h.children[N],c,A))}),mt(h.children,(A,N)=>{void 0===y[N]&&(D[N]=A)}),new L(h.segments,D)}}function Us(h,c,u){const y=h.segments.slice(0,c);let D=0;for(;D<u.length;){const A=u[D];if(Fr(A)){const ge=Ms(A.outlets);return new L(y,ge)}if(0===D&&Qr(u[0])){y.push(new x(h.segments[c].path,Hs(u[0]))),D++;continue}const N=Fr(A)?A.outlets[ae]:`${A}`,G=D<u.length-1?u[D+1]:null;N&&G&&Qr(G)?(y.push(new x(N,Hs(G))),D+=2):(y.push(new x(N,{})),D++)}return new L(y,{})}function Ms(h){const c={};return mt(h,(u,y)=>{"string"==typeof u&&(u=[u]),null!==u&&(c[y]=Us(new L([],{}),0,u))}),c}function Hs(h){const c={};return mt(h,(u,y)=>c[y]=`${u}`),c}function cs(h,c,u){return h==u.path&&At(c,u.parameters)}class oi{constructor(c,u,y,D){this.routeReuseStrategy=c,this.futureState=u,this.currState=y,this.forwardEvent=D}activate(c){const u=this.futureState._root,y=this.currState?this.currState._root:null;this.deactivateChildRoutes(u,y,c),Ln(this.futureState.root),this.activateChildRoutes(u,y,c)}deactivateChildRoutes(c,u,y){const D=Fn(u);c.children.forEach(A=>{const N=A.value.outlet;this.deactivateRoutes(A,D[N],y),delete D[N]}),mt(D,(A,N)=>{this.deactivateRouteAndItsChildren(A,y)})}deactivateRoutes(c,u,y){const D=c.value,A=u?u.value:null;if(D===A)if(D.component){const N=y.getContext(D.outlet);N&&this.deactivateChildRoutes(c,u,N.children)}else this.deactivateChildRoutes(c,u,y);else A&&this.deactivateRouteAndItsChildren(u,y)}deactivateRouteAndItsChildren(c,u){c.value.component&&this.routeReuseStrategy.shouldDetach(c.value.snapshot)?this.detachAndStoreRouteSubtree(c,u):this.deactivateRouteAndOutlet(c,u)}detachAndStoreRouteSubtree(c,u){const y=u.getContext(c.value.outlet),D=y&&c.value.component?y.children:u,A=Fn(c);for(const N of Object.keys(A))this.deactivateRouteAndItsChildren(A[N],D);if(y&&y.outlet){const N=y.outlet.detach(),G=y.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:N,route:c,contexts:G})}}deactivateRouteAndOutlet(c,u){const y=u.getContext(c.value.outlet),D=y&&c.value.component?y.children:u,A=Fn(c);for(const N of Object.keys(A))this.deactivateRouteAndItsChildren(A[N],D);y&&y.outlet&&(y.outlet.deactivate(),y.children.onOutletDeactivated(),y.attachRef=null,y.resolver=null,y.route=null)}activateChildRoutes(c,u,y){const D=Fn(u);c.children.forEach(A=>{this.activateRoutes(A,D[A.value.outlet],y),this.forwardEvent(new W(A.value.snapshot))}),c.children.length&&this.forwardEvent(new _e(c.value.snapshot))}activateRoutes(c,u,y){const D=c.value,A=u?u.value:null;if(Ln(D),D===A)if(D.component){const N=y.getOrCreateContext(D.outlet);this.activateChildRoutes(c,u,N.children)}else this.activateChildRoutes(c,u,y);else if(D.component){const N=y.getOrCreateContext(D.outlet);if(this.routeReuseStrategy.shouldAttach(D.snapshot)){const G=this.routeReuseStrategy.retrieve(D.snapshot);this.routeReuseStrategy.store(D.snapshot,null),N.children.onOutletReAttached(G.contexts),N.attachRef=G.componentRef,N.route=G.route.value,N.outlet&&N.outlet.attach(G.componentRef,G.route.value),Ln(G.route.value),this.activateChildRoutes(c,null,N.children)}else{const G=function Vs(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),ge=G?G.module.componentFactoryResolver:null;N.attachRef=null,N.route=D,N.resolver=ge,N.outlet&&N.outlet.activateWith(D,ge),this.activateChildRoutes(c,null,N.children)}}else this.activateChildRoutes(c,null,y)}}class hs{constructor(c,u){this.routes=c,this.module=u}}function mn(h){return"function"==typeof h}function hr(h){return h instanceof re}const Er=Symbol("INITIAL_VALUE");function ps(){return(0,un.w)(h=>(0,Y.aj)(h.map(c=>c.pipe((0,He.q)(1),(0,cn.O)(Er)))).pipe(ee((c,u)=>{let y=!1;return u.reduce((D,A,N)=>D!==Er?D:(A===Er&&(y=!0),y||!1!==A&&N!==u.length-1&&!hr(A)?D:A),c)},Er),(0,Pe.h)(c=>c!==Er),(0,It.U)(c=>hr(c)?c:!0===c),(0,He.q)(1)))}class zs{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gs,this.attachRef=null}}class gs{constructor(){this.contexts=new Map}onChildOutletCreated(c,u){const y=this.getOrCreateContext(c);y.outlet=u,this.contexts.set(c,y)}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 zs,this.contexts.set(c,u)),u}getContext(c){return this.contexts.get(c)||null}}let In=(()=>{class h{constructor(u,y,D,A,N){this.parentContexts=u,this.location=y,this.resolver=D,this.changeDetector=N,this.activated=null,this._activatedRoute=null,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.name=A||ae,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,y){this.activated=u,this._activatedRoute=y,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,y){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=u;const N=(y=y||this.resolver).resolveComponentFactory(u._futureSnapshot.routeConfig.component),G=this.parentContexts.getOrCreateContext(this.name).children,ge=new Gs(u,G,this.location.injector);this.activated=this.location.createComponent(N,this.location.length,ge),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return h.\u0275fac=function(u){return new(u||h)(g.Y36(gs),g.Y36(g.s_b),g.Y36(g._Vd),g.$8M("name"),g.Y36(g.sBO))},h.\u0275dir=g.lG2({type:h,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),h})();class Gs{constructor(c,u,y){this.route=c,this.childContexts=u,this.parent=y}get(c,u){return c===kn?this.route:c===gs?this.childContexts:this.parent.get(c,u)}}let Is=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275cmp=g.Xpm({type:h,selectors:[["ng-component"]],decls:1,vars:0,template:function(u,y){1&u&&g._UZ(0,"router-outlet")},directives:[In],encapsulation:2}),h})();function Br(h,c=""){for(let u=0;u<h.length;u++){const y=h[u];Ws(y,Ks(c,y))}}function Ws(h,c){h.children&&Br(h.children,c)}function Ks(h,c){return c?h||c.path?h&&!c.path?`${h}/`:!h&&c.path?c.path:`${h}/${c.path}`:"":h}function Ys(h){const c=h.children&&h.children.map(Ys),u=c?Object.assign(Object.assign({},h),{children:c}):Object.assign({},h);return!u.component&&(c||u.loadChildren)&&u.outlet&&u.outlet!==ae&&(u.component=Is),u}function m(h){return h.outlet||ae}function T(h,c){const u=h.filter(y=>m(y)===c);return u.push(...h.filter(y=>m(y)!==c)),u}const v={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function S(h,c,u){var y;if(""===c.path)return"full"===c.pathMatch&&(h.hasChildren()||u.length>0)?Object.assign({},v):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const A=(c.matcher||Qt)(u,h,c);if(!A)return Object.assign({},v);const N={};mt(A.posParams,(ge,Ye)=>{N[Ye]=ge.path});const G=A.consumed.length>0?Object.assign(Object.assign({},N),A.consumed[A.consumed.length-1].parameters):N;return{matched:!0,consumedSegments:A.consumed,lastChild:A.consumed.length,parameters:G,positionalParamSegments:null!==(y=A.posParams)&&void 0!==y?y:{}}}function H(h,c,u,y,D="corrected"){if(u.length>0&&function Ue(h,c,u){return u.some(y=>kt(h,c,y)&&m(y)!==ae)}(h,u,y)){const N=new L(c,function Me(h,c,u,y){const D={};D[ae]=y,y._sourceSegment=h,y._segmentIndexShift=c.length;for(const A of u)if(""===A.path&&m(A)!==ae){const N=new L([],{});N._sourceSegment=h,N._segmentIndexShift=c.length,D[m(A)]=N}return D}(h,c,y,new L(u,h.children)));return N._sourceSegment=h,N._segmentIndexShift=c.length,{segmentGroup:N,slicedSegments:[]}}if(0===u.length&&function Bt(h,c,u){return u.some(y=>kt(h,c,y))}(h,u,y)){const N=new L(h.segments,function fe(h,c,u,y,D,A){const N={};for(const G of y)if(kt(h,u,G)&&!D[m(G)]){const ge=new L([],{});ge._sourceSegment=h,ge._segmentIndexShift="legacy"===A?h.segments.length:c.length,N[m(G)]=ge}return Object.assign(Object.assign({},D),N)}(h,c,u,y,h.children,D));return N._sourceSegment=h,N._segmentIndexShift=c.length,{segmentGroup:N,slicedSegments:u}}const A=new L(h.segments,h.children);return A._sourceSegment=h,A._segmentIndexShift=c.length,{segmentGroup:A,slicedSegments:u}}function kt(h,c,u){return(!(h.hasChildren()||c.length>0)||"full"!==u.pathMatch)&&""===u.path}function xt(h,c,u,y){return!!(m(h)===y||y!==ae&&kt(c,u,h))&&("**"===h.path||S(c,h,u).matched)}function ut(h,c,u){return 0===c.length&&!h.children[u]}class Wt{constructor(c){this.segmentGroup=c||null}}class Ut{constructor(c){this.urlTree=c}}function ln(h){return new Q.y(c=>c.error(new Wt(h)))}function Pn(h){return new Q.y(c=>c.error(new Ut(h)))}function Cr(h){return new Q.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${h}'`)))}class ai{constructor(c,u,y,D,A){this.configLoader=u,this.urlSerializer=y,this.urlTree=D,this.config=A,this.allowRedirects=!0,this.ngModule=c.get(g.h0i)}apply(){const c=H(this.urlTree.root,[],[],this.config).segmentGroup,u=new L(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,u,ae).pipe((0,It.U)(A=>this.createUrlTree(ms(A),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,En.K)(A=>{if(A instanceof Ut)return this.allowRedirects=!1,this.match(A.urlTree);throw A instanceof Wt?this.noMatchError(A):A}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,ae).pipe((0,It.U)(D=>this.createUrlTree(ms(D),c.queryParams,c.fragment))).pipe((0,En.K)(D=>{throw D instanceof Wt?this.noMatchError(D):D}))}noMatchError(c){return new Error(`Cannot match any routes. URL Segment: '${c.segmentGroup}'`)}createUrlTree(c,u,y){const D=c.segments.length>0?new L([],{[ae]:c}):c;return new re(D,u,y)}expandSegmentGroup(c,u,y,D){return 0===y.segments.length&&y.hasChildren()?this.expandChildren(c,u,y).pipe((0,It.U)(A=>new L([],A))):this.expandSegment(c,y,u,y.segments,D,!0)}expandChildren(c,u,y){const D=[];for(const A of Object.keys(y.children))"primary"===A?D.unshift(A):D.push(A);return(0,se.D)(D).pipe((0,Cn.b)(A=>{const N=y.children[A],G=T(u,A);return this.expandSegmentGroup(c,G,N,A).pipe((0,It.U)(ge=>({segment:ge,outlet:A})))}),ee((A,N)=>(A[N.outlet]=N.segment,A),{}),function at(h,c){const u=arguments.length>=2;return y=>y.pipe(h?(0,Pe.h)((D,A)=>h(D,A,y)):ht.y,we(1),u?dt(c):Ze(()=>new Z))}())}expandSegment(c,u,y,D,A,N){return(0,se.D)(y).pipe((0,Cn.b)(G=>this.expandSegmentAgainstRoute(c,u,y,G,D,A,N).pipe((0,En.K)(Ye=>{if(Ye instanceof Wt)return(0,B.of)(null);throw Ye}))),Un(G=>!!G),(0,En.K)((G,ge)=>{if(G instanceof Z||"EmptyError"===G.name){if(ut(u,D,A))return(0,B.of)(new L([],{}));throw new Wt(u)}throw G}))}expandSegmentAgainstRoute(c,u,y,D,A,N,G){return xt(D,u,A,N)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(c,u,D,A,N):G&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,u,y,D,A,N):ln(u):ln(u)}expandSegmentAgainstRouteUsingRedirect(c,u,y,D,A,N){return"**"===D.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,y,D,N):this.expandRegularSegmentAgainstRouteUsingRedirect(c,u,y,D,A,N)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,u,y,D){const A=this.applyRedirectCommands([],y.redirectTo,{});return y.redirectTo.startsWith("/")?Pn(A):this.lineralizeSegments(y,A).pipe((0,Vt.zg)(N=>{const G=new L(N,{});return this.expandSegment(c,G,u,N,D,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,u,y,D,A,N){const{matched:G,consumedSegments:ge,lastChild:Ye,positionalParamSegments:Nt}=S(u,D,A);if(!G)return ln(u);const et=this.applyRedirectCommands(ge,D.redirectTo,Nt);return D.redirectTo.startsWith("/")?Pn(et):this.lineralizeSegments(D,et).pipe((0,Vt.zg)(Lt=>this.expandSegment(c,u,y,Lt.concat(A.slice(Ye)),N,!1)))}matchSegmentAgainstRoute(c,u,y,D,A){if("**"===y.path)return y.loadChildren?(y._loadedConfig?(0,B.of)(y._loadedConfig):this.configLoader.load(c.injector,y)).pipe((0,It.U)(Lt=>(y._loadedConfig=Lt,new L(D,{})))):(0,B.of)(new L(D,{}));const{matched:N,consumedSegments:G,lastChild:ge}=S(u,y,D);if(!N)return ln(u);const Ye=D.slice(ge);return this.getChildConfig(c,y,D).pipe((0,Vt.zg)(et=>{const Lt=et.module,Kt=et.routes,{segmentGroup:Xs,slicedSegments:$r}=H(u,G,Ye,Kt),sr=new L(Xs.segments,Xs.children);if(0===$r.length&&sr.hasChildren())return this.expandChildren(Lt,Kt,sr).pipe((0,It.U)(Pr=>new L(G,Pr)));if(0===Kt.length&&0===$r.length)return(0,B.of)(new L(G,{}));const ts=m(y)===A;return this.expandSegment(Lt,sr,Kt,$r,ts?ae:A,!0).pipe((0,It.U)(Ir=>new L(G.concat(Ir.segments),Ir.children)))}))}getChildConfig(c,u,y){return u.children?(0,B.of)(new hs(u.children,c)):u.loadChildren?void 0!==u._loadedConfig?(0,B.of)(u._loadedConfig):this.runCanLoadGuards(c.injector,u,y).pipe((0,Vt.zg)(D=>D?this.configLoader.load(c.injector,u).pipe((0,It.U)(A=>(u._loadedConfig=A,A))):function jr(h){return new Q.y(c=>c.error(lt(`Cannot load children because the guard of the route "path: '${h.path}'" returned false`)))}(u))):(0,B.of)(new hs([],c))}runCanLoadGuards(c,u,y){const D=u.canLoad;if(!D||0===D.length)return(0,B.of)(!0);const A=D.map(N=>{const G=c.get(N);let ge;if(function fs(h){return h&&mn(h.canLoad)}(G))ge=G.canLoad(u,y);else{if(!mn(G))throw new Error("Invalid CanLoad guard");ge=G(u,y)}return rt(ge)});return(0,B.of)(A).pipe(ps(),(0,ve.b)(N=>{if(!hr(N))return;const G=lt(`Redirecting to "${this.urlSerializer.serialize(N)}"`);throw G.url=N,G}),(0,It.U)(N=>!0===N))}lineralizeSegments(c,u){let y=[],D=u.root;for(;;){if(y=y.concat(D.segments),0===D.numberOfChildren)return(0,B.of)(y);if(D.numberOfChildren>1||!D.children[ae])return Cr(c.redirectTo);D=D.children[ae]}}applyRedirectCommands(c,u,y){return this.applyRedirectCreatreUrlTree(u,this.urlSerializer.parse(u),c,y)}applyRedirectCreatreUrlTree(c,u,y,D){const A=this.createSegmentGroup(c,u.root,y,D);return new re(A,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(c,u){const y={};return mt(c,(D,A)=>{if("string"==typeof D&&D.startsWith(":")){const G=D.substring(1);y[A]=u[G]}else y[A]=D}),y}createSegmentGroup(c,u,y,D){const A=this.createSegments(c,u.segments,y,D);let N={};return mt(u.children,(G,ge)=>{N[ge]=this.createSegmentGroup(c,G,y,D)}),new L(A,N)}createSegments(c,u,y,D){return u.map(A=>A.path.startsWith(":")?this.findPosParam(c,A,D):this.findOrReturn(A,y))}findPosParam(c,u,y){const D=y[u.path.substring(1)];if(!D)throw new Error(`Cannot redirect to '${c}'. Cannot find '${u.path}'.`);return D}findOrReturn(c,u){let y=0;for(const D of u){if(D.path===c.path)return u.splice(y),D;y++}return c}}function ms(h){const c={};for(const y of Object.keys(h.children)){const A=ms(h.children[y]);(A.segments.length>0||A.hasChildren())&&(c[y]=A)}return function Ps(h){if(1===h.numberOfChildren&&h.children[ae]){const c=h.children[ae];return new L(h.segments.concat(c.segments),c.children)}return h}(new L(h.segments,c))}class Os{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class Rs{constructor(c,u){this.component=c,this.route=u}}function Ci(h,c,u){const y=h._root;return C(y,c?c._root:null,u,[y.value])}function wt(h,c,u){const y=function uo(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(y?y.module.injector:u).get(h)}function C(h,c,u,y,D={canDeactivateChecks:[],canActivateChecks:[]}){const A=Fn(c);return h.children.forEach(N=>{(function o(h,c,u,y,D={canDeactivateChecks:[],canActivateChecks:[]}){const A=h.value,N=c?c.value:null,G=u?u.getContext(h.value.outlet):null;if(N&&A.routeConfig===N.routeConfig){const ge=function l(h,c,u){if("function"==typeof u)return u(h,c);switch(u){case"pathParamsChange":return!be(h.url,c.url);case"pathParamsOrQueryParamsChange":return!be(h.url,c.url)||!At(h.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Dr(h,c)||!At(h.queryParams,c.queryParams);default:return!Dr(h,c)}}(N,A,A.routeConfig.runGuardsAndResolvers);ge?D.canActivateChecks.push(new Os(y)):(A.data=N.data,A._resolvedData=N._resolvedData),C(h,c,A.component?G?G.children:null:u,y,D),ge&&G&&G.outlet&&G.outlet.isActivated&&D.canDeactivateChecks.push(new Rs(G.outlet.component,N))}else N&&f(c,G,D),D.canActivateChecks.push(new Os(y)),C(h,null,A.component?G?G.children:null:u,y,D)})(N,A[N.value.outlet],u,y.concat([N.value]),D),delete A[N.value.outlet]}),mt(A,(N,G)=>f(N,u.getContext(G),D)),D}function f(h,c,u){const y=Fn(h),D=h.value;mt(y,(A,N)=>{f(A,D.component?c?c.children.getContext(N):null:c,u)}),u.canDeactivateChecks.push(new Rs(D.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,D))}class pt{}function yt(h){return new Q.y(c=>c.error(h))}class gt{constructor(c,u,y,D,A,N){this.rootComponentType=c,this.config=u,this.urlTree=y,this.url=D,this.paramsInheritanceStrategy=A,this.relativeLinkResolution=N}recognize(){const c=H(this.urlTree.root,[],[],this.config.filter(N=>void 0===N.redirectTo),this.relativeLinkResolution).segmentGroup,u=this.processSegmentGroup(this.config,c,ae);if(null===u)return null;const y=new Ot([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ae,this.rootComponentType,null,this.urlTree.root,-1,{}),D=new Mn(y,u),A=new Mr(this.url,D);return this.inheritParamsAndData(A._root),A}inheritParamsAndData(c){const u=c.value,y=dr(u,this.paramsInheritanceStrategy);u.params=Object.freeze(y.params),u.data=Object.freeze(y.data),c.children.forEach(D=>this.inheritParamsAndData(D))}processSegmentGroup(c,u,y){return 0===u.segments.length&&u.hasChildren()?this.processChildren(c,u):this.processSegment(c,u,u.segments,y)}processChildren(c,u){const y=[];for(const A of Object.keys(u.children)){const N=u.children[A],G=T(c,A),ge=this.processSegmentGroup(G,N,A);if(null===ge)return null;y.push(...ge)}const D=yn(y);return function Mt(h){h.sort((c,u)=>c.value.outlet===ae?-1:u.value.outlet===ae?1:c.value.outlet.localeCompare(u.value.outlet))}(D),D}processSegment(c,u,y,D){for(const A of c){const N=this.processSegmentAgainstRoute(A,u,y,D);if(null!==N)return N}return ut(u,y,D)?[]:null}processSegmentAgainstRoute(c,u,y,D){if(c.redirectTo||!xt(c,u,y,D))return null;let A,N=[],G=[];if("**"===c.path){const Kt=y.length>0?xn(y).parameters:{};A=new Ot(y,Kt,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,On(c),m(c),c.component,c,Ur(u),qn(u)+y.length,fr(c))}else{const Kt=S(u,c,y);if(!Kt.matched)return null;N=Kt.consumedSegments,G=y.slice(Kt.lastChild),A=new Ot(N,Kt.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,On(c),m(c),c.component,c,Ur(u),qn(u)+N.length,fr(c))}const ge=function en(h){return h.children?h.children:h.loadChildren?h._loadedConfig.routes:[]}(c),{segmentGroup:Ye,slicedSegments:Nt}=H(u,N,G,ge.filter(Kt=>void 0===Kt.redirectTo),this.relativeLinkResolution);if(0===Nt.length&&Ye.hasChildren()){const Kt=this.processChildren(ge,Ye);return null===Kt?null:[new Mn(A,Kt)]}if(0===ge.length&&0===Nt.length)return[new Mn(A,[])];const et=m(c)===D,Lt=this.processSegment(ge,Ye,Nt,et?ae:D);return null===Lt?null:[new Mn(A,Lt)]}}function sn(h){const c=h.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function yn(h){const c=[],u=new Set;for(const y of h){if(!sn(y)){c.push(y);continue}const D=c.find(A=>y.value.routeConfig===A.value.routeConfig);void 0!==D?(D.children.push(...y.children),u.add(D)):c.push(y)}for(const y of u){const D=yn(y.children);c.push(new Mn(y.value,D))}return c.filter(y=>!u.has(y))}function Ur(h){let c=h;for(;c._sourceSegment;)c=c._sourceSegment;return c}function qn(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 On(h){return h.data||{}}function fr(h){return h.resolve||{}}function Jr(h){return(0,un.w)(c=>{const u=h(c);return u?(0,se.D)(u).pipe((0,It.U)(()=>c)):(0,B.of)(c)})}class Ge extends class Ke{shouldDetach(c){return!1}store(c,u){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,u){return c.routeConfig===u.routeConfig}}{}const Xe=new g.OlP("ROUTES");class Je{constructor(c,u,y,D){this.injector=c,this.compiler=u,this.onLoadStartListener=y,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,It.U)(A=>{this.onLoadEndListener&&this.onLoadEndListener(u);const N=A.create(c);return new hs(je(N.injector.get(Xe,void 0,g.XFs.Self|g.XFs.Optional)).map(Ys),N)}),(0,En.K)(A=>{throw u._loader$=void 0,A}));return u._loader$=new oe.c(D,()=>new he.xQ).pipe((0,Ce.x)()),u._loader$}loadModuleFactory(c){return rt(c()).pipe((0,Vt.zg)(u=>u instanceof g.YKP?(0,B.of)(u):(0,se.D)(this.compiler.compileModuleAsync(u))))}}class wr{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,u){return c}}function Kn(h){throw h}function Vr(h,c,u){return c.parse("/")}function Jt(h,c){return(0,B.of)(null)}const co={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let on=(()=>{class h{constructor(u,y,D,A,N,G,ge){this.rootComponentType=u,this.urlSerializer=y,this.rootContexts=D,this.location=A,this.config=ge,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=Kn,this.malformedUriErrorHandler=Vr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Jt,afterPreactivation:Jt},this.urlHandlingStrategy=new wr,this.routeReuseStrategy=new Ge,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=N.get(g.h0i),this.console=N.get(g.c2e);const et=N.get(g.R0b);this.isNgZoneEnabled=et instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(ge),this.currentUrlTree=function lr(){return new re(new L([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Je(N,G,Lt=>this.triggerEvent(new Ht(Lt)),Lt=>this.triggerEvent(new ar(Lt))),this.routerState=_r(this.currentUrlTree,this.rootComponentType),this.transitions=new U.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 y=this.events;return u.pipe((0,Pe.h)(D=>0!==D.id),(0,It.U)(D=>Object.assign(Object.assign({},D),{extractedUrl:this.urlHandlingStrategy.extract(D.rawUrl)})),(0,un.w)(D=>{let A=!1,N=!1;return(0,B.of)(D).pipe((0,ve.b)(G=>{this.currentNavigation={id:G.id,initialUrl:G.currentRawUrl,extractedUrl:G.extractedUrl,trigger:G.source,extras:G.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,un.w)(G=>{const ge=this.browserUrlTree.toString(),Ye=!this.navigated||G.extractedUrl.toString()!==ge||ge!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ye)&&this.urlHandlingStrategy.shouldProcessUrl(G.rawUrl))return rr(G.source)&&(this.browserUrlTree=G.extractedUrl),(0,B.of)(G).pipe((0,un.w)(et=>{const Lt=this.transitions.getValue();return y.next(new tn(et.id,this.serializeUrl(et.extractedUrl),et.source,et.restoredState)),Lt!==this.transitions.getValue()?F.E:Promise.resolve(et)}),function lo(h,c,u,y){return(0,un.w)(D=>function tt(h,c,u,y,D){return new ai(h,c,u,y,D).apply()}(h,c,u,D.extractedUrl,y).pipe((0,It.U)(A=>Object.assign(Object.assign({},D),{urlAfterRedirects:A}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,ve.b)(et=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:et.urlAfterRedirects})}),function nr(h,c,u,y,D){return(0,Vt.zg)(A=>function qe(h,c,u,y,D="emptyOnly",A="legacy"){try{const N=new gt(h,c,u,y,D,A).recognize();return null===N?yt(new pt):(0,B.of)(N)}catch(N){return yt(N)}}(h,c,A.urlAfterRedirects,u(A.urlAfterRedirects),y,D).pipe((0,It.U)(N=>Object.assign(Object.assign({},A),{targetSnapshot:N}))))}(this.rootComponentType,this.config,et=>this.serializeUrl(et),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,ve.b)(et=>{if("eager"===this.urlUpdateStrategy){if(!et.extras.skipLocationChange){const Kt=this.urlHandlingStrategy.merge(et.urlAfterRedirects,et.rawUrl);this.setBrowserUrl(Kt,et)}this.browserUrlTree=et.urlAfterRedirects}const Lt=new nn(et.id,this.serializeUrl(et.extractedUrl),this.serializeUrl(et.urlAfterRedirects),et.targetSnapshot);y.next(Lt)}));if(Ye&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Lt,extractedUrl:Kt,source:Xs,restoredState:$r,extras:sr}=G,ts=new tn(Lt,this.serializeUrl(Kt),Xs,$r);y.next(ts);const ei=_r(Kt,this.rootComponentType).snapshot;return(0,B.of)(Object.assign(Object.assign({},G),{targetSnapshot:ei,urlAfterRedirects:Kt,extras:Object.assign(Object.assign({},sr),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=G.rawUrl,G.resolve(null),F.E}),Jr(G=>{const{targetSnapshot:ge,id:Ye,extractedUrl:Nt,rawUrl:et,extras:{skipLocationChange:Lt,replaceUrl:Kt}}=G;return this.hooks.beforePreactivation(ge,{navigationId:Ye,appliedUrlTree:Nt,rawUrlTree:et,skipLocationChange:!!Lt,replaceUrl:!!Kt})}),(0,ve.b)(G=>{const ge=new Hn(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(G.urlAfterRedirects),G.targetSnapshot);this.triggerEvent(ge)}),(0,It.U)(G=>Object.assign(Object.assign({},G),{guards:Ci(G.targetSnapshot,G.currentSnapshot,this.rootContexts)})),function b(h,c){return(0,Vt.zg)(u=>{const{targetSnapshot:y,currentSnapshot:D,guards:{canActivateChecks:A,canDeactivateChecks:N}}=u;return 0===N.length&&0===A.length?(0,B.of)(Object.assign(Object.assign({},u),{guardsResult:!0})):function I(h,c,u,y){return(0,se.D)(h).pipe((0,Vt.zg)(D=>function Ve(h,c,u,y,D){const A=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!A||0===A.length)return(0,B.of)(!0);const N=A.map(G=>{const ge=wt(G,c,D);let Ye;if(function Zr(h){return h&&mn(h.canDeactivate)}(ge))Ye=rt(ge.canDeactivate(h,c,u,y));else{if(!mn(ge))throw new Error("Invalid CanDeactivate guard");Ye=rt(ge(h,c,u,y))}return Ye.pipe(Un())});return(0,B.of)(N).pipe(ps())}(D.component,D.route,u,c,y)),Un(D=>!0!==D,!0))}(N,y,D,h).pipe((0,Vt.zg)(G=>G&&function Ei(h){return"boolean"==typeof h}(G)?function k(h,c,u,y){return(0,se.D)(c).pipe((0,Cn.b)(D=>(0,$.z)(function ne(h,c){return null!==h&&c&&c(new nt(h)),(0,B.of)(!0)}(D.route.parent,y),function j(h,c){return null!==h&&c&&c(new K(h)),(0,B.of)(!0)}(D.route,y),function Re(h,c,u){const y=c[c.length-1],A=c.slice(0,c.length-1).reverse().map(N=>function Ae(h){const c=h.routeConfig?h.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:h,guards:c}:null}(N)).filter(N=>null!==N).map(N=>(0,V.P)(()=>{const G=N.guards.map(ge=>{const Ye=wt(ge,N.node,u);let Nt;if(function $s(h){return h&&mn(h.canActivateChild)}(Ye))Nt=rt(Ye.canActivateChild(y,h));else{if(!mn(Ye))throw new Error("Invalid CanActivateChild guard");Nt=rt(Ye(y,h))}return Nt.pipe(Un())});return(0,B.of)(G).pipe(ps())}));return(0,B.of)(A).pipe(ps())}(h,D.path,u),function me(h,c,u){const y=c.routeConfig?c.routeConfig.canActivate:null;if(!y||0===y.length)return(0,B.of)(!0);const D=y.map(A=>(0,V.P)(()=>{const N=wt(A,c,u);let G;if(function As(h){return h&&mn(h.canActivate)}(N))G=rt(N.canActivate(c,h));else{if(!mn(N))throw new Error("Invalid CanActivate guard");G=rt(N(c,h))}return G.pipe(Un())}));return(0,B.of)(D).pipe(ps())}(h,D.route,u))),Un(D=>!0!==D,!0))}(y,A,h,c):(0,B.of)(G)),(0,It.U)(G=>Object.assign(Object.assign({},u),{guardsResult:G})))})}(this.ngModule.injector,G=>this.triggerEvent(G)),(0,ve.b)(G=>{if(hr(G.guardsResult)){const Ye=lt(`Redirecting to "${this.serializeUrl(G.guardsResult)}"`);throw Ye.url=G.guardsResult,Ye}const ge=new Jn(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(G.urlAfterRedirects),G.targetSnapshot,!!G.guardsResult);this.triggerEvent(ge)}),(0,Pe.h)(G=>!!G.guardsResult||(this.restoreHistory(G),this.cancelNavigationTransition(G,""),!1)),Jr(G=>{if(G.guards.canActivateChecks.length)return(0,B.of)(G).pipe((0,ve.b)(ge=>{const Ye=new Vn(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(Ye)}),(0,un.w)(ge=>{let Ye=!1;return(0,B.of)(ge).pipe(function br(h,c){return(0,Vt.zg)(u=>{const{targetSnapshot:y,guards:{canActivateChecks:D}}=u;if(!D.length)return(0,B.of)(u);let A=0;return(0,se.D)(D).pipe((0,Cn.b)(N=>function li(h,c,u,y){return function ys(h,c,u,y){const D=Object.keys(h);if(0===D.length)return(0,B.of)({});const A={};return(0,se.D)(D).pipe((0,Vt.zg)(N=>function Hr(h,c,u,y){const D=wt(h,c,y);return rt(D.resolve?D.resolve(c,u):D(c,u))}(h[N],c,u,y).pipe((0,ve.b)(G=>{A[N]=G}))),we(1),(0,Vt.zg)(()=>Object.keys(A).length===D.length?(0,B.of)(A):F.E))}(h._resolve,h,c,y).pipe((0,It.U)(A=>(h._resolvedData=A,h.data=Object.assign(Object.assign({},h.data),dr(h,u).resolve),null)))}(N.route,y,h,c)),(0,ve.b)(()=>A++),we(1),(0,Vt.zg)(N=>A===D.length?(0,B.of)(u):F.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,ve.b)({next:()=>Ye=!0,complete:()=>{Ye||(this.restoreHistory(ge),this.cancelNavigationTransition(ge,"At least one route resolver didn't emit any value."))}}))}),(0,ve.b)(ge=>{const Ye=new Rn(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(Ye)}))}),Jr(G=>{const{targetSnapshot:ge,id:Ye,extractedUrl:Nt,rawUrl:et,extras:{skipLocationChange:Lt,replaceUrl:Kt}}=G;return this.hooks.afterPreactivation(ge,{navigationId:Ye,appliedUrlTree:Nt,rawUrlTree:et,skipLocationChange:!!Lt,replaceUrl:!!Kt})}),(0,It.U)(G=>{const ge=function Yr(h,c,u){const y=Ar(h,c._root,u?u._root:void 0);return new ls(y,c)}(this.routeReuseStrategy,G.targetSnapshot,G.currentRouterState);return Object.assign(Object.assign({},G),{targetRouterState:ge})}),(0,ve.b)(G=>{this.currentUrlTree=G.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl),this.routerState=G.targetRouterState,"deferred"===this.urlUpdateStrategy&&(G.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,G),this.browserUrlTree=G.urlAfterRedirects)}),((h,c,u)=>(0,It.U)(y=>(new oi(c,y.targetRouterState,y.currentRouterState,u).activate(h),y)))(this.rootContexts,this.routeReuseStrategy,G=>this.triggerEvent(G)),(0,ve.b)({next(){A=!0},complete(){A=!0}}),(0,J.x)(()=>{var G;A||N||this.cancelNavigationTransition(D,`Navigation ID ${D.id} is not equal to the current navigation id ${this.navigationId}`),(null===(G=this.currentNavigation)||void 0===G?void 0:G.id)===D.id&&(this.currentNavigation=null)}),(0,En.K)(G=>{if(N=!0,function Ct(h){return h&&h[$e]}(G)){const ge=hr(G.url);ge||(this.navigated=!0,this.restoreHistory(D,!0));const Ye=new zt(D.id,this.serializeUrl(D.extractedUrl),G.message);y.next(Ye),ge?setTimeout(()=>{const Nt=this.urlHandlingStrategy.merge(G.url,this.rawUrlTree),et={skipLocationChange:D.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||rr(D.source)};this.scheduleNavigation(Nt,"imperative",null,et,{resolve:D.resolve,reject:D.reject,promise:D.promise})},0):D.resolve(!1)}else{this.restoreHistory(D,!0);const ge=new dn(D.id,this.serializeUrl(D.extractedUrl),G);y.next(ge);try{D.resolve(this.errorHandler(G))}catch(Ye){D.reject(Ye)}}return F.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 y="popstate"===u.type?"popstate":"hashchange";"popstate"===y&&setTimeout(()=>{var D;const A={replaceUrl:!0},N=(null===(D=u.state)||void 0===D?void 0:D.navigationId)?u.state:null;if(N){const ge=Object.assign({},N);delete ge.navigationId,delete ge.\u0275routerPageId,0!==Object.keys(ge).length&&(A.state=ge)}const G=this.parseUrl(u.url);this.scheduleNavigation(G,y,N,A)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(u){this.events.next(u)}resetConfig(u){Br(u),this.config=u.map(Ys),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,y={}){const{relativeTo:D,queryParams:A,fragment:N,queryParamsHandling:G,preserveFragment:ge}=y,Ye=D||this.routerState.root,Nt=ge?this.currentUrlTree.fragment:N;let et=null;switch(G){case"merge":et=Object.assign(Object.assign({},this.currentUrlTree.queryParams),A);break;case"preserve":et=this.currentUrlTree.queryParams;break;default:et=A||null}return null!==et&&(et=this.removeEmptyProps(et)),function ii(h,c,u,y,D){if(0===u.length)return kr(c.root,c.root,c,y,D);const A=function qr(h){if("string"==typeof h[0]&&1===h.length&&"/"===h[0])return new Wn(!0,0,h);let c=0,u=!1;const y=h.reduce((D,A,N)=>{if("object"==typeof A&&null!=A){if(A.outlets){const G={};return mt(A.outlets,(ge,Ye)=>{G[Ye]="string"==typeof ge?ge.split("/"):ge}),[...D,{outlets:G}]}if(A.segmentPath)return[...D,A.segmentPath]}return"string"!=typeof A?[...D,A]:0===N?(A.split("/").forEach((G,ge)=>{0==ge&&"."===G||(0==ge&&""===G?u=!0:".."===G?c++:""!=G&&D.push(G))}),D):[...D,A]},[]);return new Wn(u,c,y)}(u);if(A.toRoot())return kr(c.root,new L([],{}),c,y,D);const N=function _i(h,c,u){if(h.isAbsolute)return new ks(c.root,!0,0);if(-1===u.snapshot._lastPathIndex){const A=u.snapshot._urlSegment;return new ks(A,A===c.root,0)}const y=Qr(h.commands[0])?0:1;return function Ls(h,c,u){let y=h,D=c,A=u;for(;A>D;){if(A-=D,y=y.parent,!y)throw new Error("Invalid number of '../'");D=y.segments.length}return new ks(y,!1,D-A)}(u.snapshot._urlSegment,u.snapshot._lastPathIndex+y,h.numberOfDoubleDots)}(A,c,h),G=N.processChildren?Lr(N.segmentGroup,N.index,A.commands):Bs(N.segmentGroup,N.index,A.commands);return kr(N.segmentGroup,G,c,y,D)}(Ye,this.currentUrlTree,u,et,null!=Nt?Nt:null)}navigateByUrl(u,y={skipLocationChange:!1}){const D=hr(u)?u:this.parseUrl(u),A=this.urlHandlingStrategy.merge(D,this.rawUrlTree);return this.scheduleNavigation(A,"imperative",null,y)}navigate(u,y={skipLocationChange:!1}){return function Xr(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,y),y)}serializeUrl(u){return this.urlSerializer.serialize(u)}parseUrl(u){let y;try{y=this.urlSerializer.parse(u)}catch(D){y=this.malformedUriErrorHandler(D,this.urlSerializer,u)}return y}isActive(u,y){let D;if(D=!0===y?Object.assign({},co):!1===y?Object.assign({},Zn):y,hr(u))return er(this.currentUrlTree,u,D);const A=this.parseUrl(u);return er(this.currentUrlTree,A,D)}removeEmptyProps(u){return Object.keys(u).reduce((y,D)=>{const A=u[D];return null!=A&&(y[D]=A),y},{})}processNavigations(){this.navigations.subscribe(u=>{this.navigated=!0,this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId,this.events.next(new jt(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,y,D,A,N){var G,ge,Ye;if(this.disposed)return Promise.resolve(!1);const Nt=this.transitions.value,et=rr(y)&&Nt&&!rr(Nt.source),Lt=Nt.rawUrl.toString()===u.toString(),Kt=Nt.id===(null===(G=this.currentNavigation)||void 0===G?void 0:G.id);if(et&&Lt&&Kt)return Promise.resolve(!0);let $r,sr,ts;N?($r=N.resolve,sr=N.reject,ts=N.promise):ts=new Promise((Pr,ti)=>{$r=Pr,sr=ti});const ei=++this.navigationId;let Ir;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(D=this.location.getState()),Ir=D&&D.\u0275routerPageId?D.\u0275routerPageId:A.replaceUrl||A.skipLocationChange?null!==(ge=this.browserPageId)&&void 0!==ge?ge:0:(null!==(Ye=this.browserPageId)&&void 0!==Ye?Ye:0)+1):Ir=0,this.setTransition({id:ei,targetPageId:Ir,source:y,restoredState:D,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:u,extras:A,resolve:$r,reject:sr,promise:ts,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ts.catch(Pr=>Promise.reject(Pr))}setBrowserUrl(u,y){const D=this.urlSerializer.serialize(u),A=Object.assign(Object.assign({},y.extras.state),this.generateNgRouterState(y.id,y.targetPageId));this.location.isCurrentPathEqualTo(D)||y.extras.replaceUrl?this.location.replaceState(D,"",A):this.location.go(D,"",A)}restoreHistory(u,y=!1){var D,A;if("computed"===this.canceledNavigationResolution){const N=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(D=this.currentNavigation)||void 0===D?void 0:D.finalUrl)||0===N?this.currentUrlTree===(null===(A=this.currentNavigation)||void 0===A?void 0:A.finalUrl)&&0===N&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(N)}else"replace"===this.canceledNavigationResolution&&(y&&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,y){const D=new zt(u.id,this.serializeUrl(u.extractedUrl),y);this.triggerEvent(D),u.resolve(!1)}generateNgRouterState(u,y){return"computed"===this.canceledNavigationResolution?{navigationId:u,\u0275routerPageId:y}:{navigationId:u}}}return h.\u0275fac=function(u){g.$Z()},h.\u0275prov=g.Yz7({token:h,factory:h.\u0275fac}),h})();function rr(h){return"imperative"!==h}let es=(()=>{class h{constructor(u,y,D,A,N){this.router=u,this.route=y,this.tabIndexAttribute=D,this.renderer=A,this.el=N,this.commands=null,this.onChanges=new he.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(u){if(null!=this.tabIndexAttribute)return;const y=this.renderer,D=this.el.nativeElement;null!==u?y.setAttribute(D,"tabindex",u):y.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:pr(this.skipLocationChange),replaceUrl:pr(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:pr(this.preserveFragment)})}}return h.\u0275fac=function(u){return new(u||h)(g.Y36(on),g.Y36(kn),g.$8M("tabindex"),g.Y36(g.Qsj),g.Y36(g.SBq))},h.\u0275dir=g.lG2({type:h,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(u,y){1&u&&g.NdJ("click",function(){return y.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[g.TTD]}),h})(),wi=(()=>{class h{constructor(u,y,D){this.router=u,this.route=y,this.locationStrategy=D,this.commands=null,this.href=null,this.onChanges=new he.xQ,this.subscription=u.events.subscribe(A=>{A instanceof jt&&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,y,D,A,N){if(0!==u||y||D||A||N||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const G={skipLocationChange:pr(this.skipLocationChange),replaceUrl:pr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,G),!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:pr(this.preserveFragment)})}}return h.\u0275fac=function(u){return new(u||h)(g.Y36(on),g.Y36(kn),g.Y36(Ne.S$))},h.\u0275dir=g.lG2({type:h,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(u,y){1&u&&g.NdJ("click",function(A){return y.onClick(A.button,A.ctrlKey,A.shiftKey,A.altKey,A.metaKey)}),2&u&&g.uIk("target",y.target)("href",y.href,g.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[g.TTD]}),h})();function pr(h){return""===h||!!h}let Qs=(()=>{class h{constructor(u,y,D,A,N,G){this.router=u,this.element=y,this.renderer=D,this.cdr=A,this.link=N,this.linkWithHref=G,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new g.vpe,this.routerEventsSubscription=u.events.subscribe(ge=>{ge instanceof jt&&this.update()})}ngAfterContentInit(){(0,B.of)(this.links.changes,this.linksWithHrefs.changes,(0,B.of)(null)).pipe((0,le.J)()).subscribe(u=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var u;null===(u=this.linkInputChangesSubscription)||void 0===u||u.unsubscribe();const y=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(D=>!!D).map(D=>D.onChanges);this.linkInputChangesSubscription=(0,se.D)(y).pipe((0,le.J)()).subscribe(D=>{this.isActive!==this.isLinkActive(this.router)(D)&&this.update()})}set routerLinkActive(u){const y=Array.isArray(u)?u:u.split(" ");this.classes=y.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(y=>{u?this.renderer.addClass(this.element.nativeElement,y):this.renderer.removeClass(this.element.nativeElement,y)}),this.isActiveChange.emit(u))})}isLinkActive(u){const y=function $a(h){return!!h.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return D=>!!D.urlTree&&u.isActive(D.urlTree,y)}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)(g.Y36(on),g.Y36(g.SBq),g.Y36(g.Qsj),g.Y36(g.sBO),g.Y36(es,8),g.Y36(wi,8))},h.\u0275dir=g.lG2({type:h,selectors:[["","routerLinkActive",""]],contentQueries:function(u,y,D){if(1&u&&(g.Suo(D,es,5),g.Suo(D,wi,5)),2&u){let A;g.iGM(A=g.CRH())&&(y.links=A),g.iGM(A=g.CRH())&&(y.linksWithHrefs=A)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[g.TTD]}),h})();class Qo{}class Ti{preload(c,u){return(0,B.of)(null)}}let qo=(()=>{class h{constructor(u,y,D,A){this.router=u,this.injector=D,this.preloadingStrategy=A,this.loader=new Je(D,y,ge=>u.triggerEvent(new Ht(ge)),ge=>u.triggerEvent(new ar(ge)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Pe.h)(u=>u instanceof jt),(0,Cn.b)(()=>this.preload())).subscribe(()=>{})}preload(){const u=this.injector.get(g.h0i);return this.processRoutes(u,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,y){const D=[];for(const A of y)if(A.loadChildren&&!A.canLoad&&A._loadedConfig){const N=A._loadedConfig;D.push(this.processRoutes(N.module,N.routes))}else A.loadChildren&&!A.canLoad?D.push(this.preloadConfig(u,A)):A.children&&D.push(this.processRoutes(u,A.children));return(0,se.D)(D).pipe((0,le.J)(),(0,It.U)(A=>{}))}preloadConfig(u,y){return this.preloadingStrategy.preload(y,()=>(y._loadedConfig?(0,B.of)(y._loadedConfig):this.loader.load(u.injector,y)).pipe((0,Vt.zg)(A=>(y._loadedConfig=A,this.processRoutes(A.module,A.routes)))))}}return h.\u0275fac=function(u){return new(u||h)(g.LFG(on),g.LFG(g.Sil),g.LFG(g.zs3),g.LFG(Qo))},h.\u0275prov=g.Yz7({token:h,factory:h.\u0275fac}),h})(),ho=(()=>{class h{constructor(u,y,D={}){this.router=u,this.viewportScroller=y,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 tn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof jt&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.router.parseUrl(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(u=>{u instanceof De&&(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,y){this.router.triggerEvent(new De(u,"popstate"===this.lastSource?this.store[this.restoredId]:null,y))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return h.\u0275fac=function(u){g.$Z()},h.\u0275prov=g.Yz7({token:h,factory:h.\u0275fac}),h})();const qs=new g.OlP("ROUTER_CONFIGURATION"),ci=new g.OlP("ROUTER_FORROOT_GUARD"),Zo=[Ne.Ye,{provide:q,useClass:R},{provide:on,useFactory:function Js(h,c,u,y,D,A,N={},G,ge){const Ye=new on(null,h,c,u,y,D,je(A));return G&&(Ye.urlHandlingStrategy=G),ge&&(Ye.routeReuseStrategy=ge),function po(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)}(N,Ye),N.enableTracing&&Ye.events.subscribe(Nt=>{var et,Lt;null===(et=console.group)||void 0===et||et.call(console,`Router Event: ${Nt.constructor.name}`),console.log(Nt.toString()),console.log(Nt),null===(Lt=console.groupEnd)||void 0===Lt||Lt.call(console)}),Ye},deps:[q,gs,Ne.Ye,g.zs3,g.Sil,Xe,qs,[class pn{},new g.FiY],[class bi{},new g.FiY]]},gs,{provide:kn,useFactory:function Mi(h){return h.routerState.root},deps:[on]},qo,Ti,class ui{preload(c,u){return u().pipe((0,En.K)(()=>(0,B.of)(null)))}},{provide:qs,useValue:{enableTracing:!1}}];function fo(){return new g.PXZ("Router",on)}let Si=(()=>{class h{constructor(u,y){}static forRoot(u,y){return{ngModule:h,providers:[Zo,ea(u),{provide:ci,useFactory:Zs,deps:[[on,new g.FiY,new g.tp0]]},{provide:qs,useValue:y||{}},{provide:Ne.S$,useFactory:Xo,deps:[Ne.lw,[new g.tBr(Ne.mr),new g.FiY],qs]},{provide:ho,useFactory:Jo,deps:[on,Ne.EM,qs]},{provide:Qo,useExisting:y&&y.preloadingStrategy?y.preloadingStrategy:Ti},{provide:g.PXZ,multi:!0,useFactory:fo},[ta,{provide:g.ip1,multi:!0,useFactory:na,deps:[ta]},{provide:sa,useFactory:ra,deps:[ta]},{provide:g.tb,multi:!0,useExisting:sa}]]}}static forChild(u){return{ngModule:h,providers:[ea(u)]}}}return h.\u0275fac=function(u){return new(u||h)(g.LFG(ci,8),g.LFG(on,8))},h.\u0275mod=g.oAB({type:h}),h.\u0275inj=g.cJS({}),h})();function Jo(h,c,u){return u.scrollOffset&&c.setOffset(u.scrollOffset),new ho(h,c,u)}function Xo(h,c,u={}){return u.useHash?new Ne.Do(h,c):new Ne.b0(h,c)}function Zs(h){return"guarded"}function ea(h){return[{provide:g.deG,multi:!0,useValue:h},{provide:Xe,multi:!0,useValue:h}]}let ta=(()=>{class h{constructor(u){this.injector=u,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new he.xQ}appInitializer(){return this.injector.get(Ne.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let y=null;const D=new Promise(G=>y=G),A=this.injector.get(on),N=this.injector.get(qs);return"disabled"===N.initialNavigation?(A.setUpLocationChangeListener(),y(!0)):"enabled"===N.initialNavigation||"enabledBlocking"===N.initialNavigation?(A.hooks.afterPreactivation=()=>this.initNavigation?(0,B.of)(null):(this.initNavigation=!0,y(!0),this.resultOfPreactivationDone),A.initialNavigation()):y(!0),D})}bootstrapListener(u){const y=this.injector.get(qs),D=this.injector.get(qo),A=this.injector.get(ho),N=this.injector.get(on),G=this.injector.get(g.z2F);u===G.components[0]&&(("enabledNonBlocking"===y.initialNavigation||void 0===y.initialNavigation)&&N.initialNavigation(),D.setUpPreloading(),A.init(),N.resetRootComponentType(G.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return h.\u0275fac=function(u){return new(u||h)(g.LFG(g.zs3))},h.\u0275prov=g.Yz7({token:h,factory:h.\u0275fac}),h})();function na(h){return h.appInitializer.bind(h)}function ra(h){return h.bootstrapListener.bind(h)}const sa=new g.OlP("Router Initializer")},2290:(ze,de,M)=>{M.d(de,{Rh:()=>un,_W:()=>He});var g=M(9863),_=M(1777),Z=M(8929),se=M(9808),B=M(2313);const U=["toast-component",""];function Y(ve,Ce){if(1&ve){const J=g.EpF();g.TgZ(0,"button",5),g.NdJ("click",function(){return g.CHM(J),g.oxw().remove()}),g.TgZ(1,"span",6),g._uU(2,"\xd7"),g.qZA(),g.qZA()}}function Q(ve,Ce){if(1&ve&&(g.ynx(0),g._uU(1),g.BQk()),2&ve){const J=g.oxw(2);g.xp6(1),g.hij("[",J.duplicatesCount+1,"]")}}function $(ve,Ce){if(1&ve&&(g.TgZ(0,"div"),g._uU(1),g.YNc(2,Q,2,1,"ng-container",4),g.qZA()),2&ve){const J=g.oxw();g.Tol(J.options.titleClass),g.uIk("aria-label",J.title),g.xp6(1),g.hij(" ",J.title," "),g.xp6(1),g.Q6J("ngIf",J.duplicatesCount)}}function V(ve,Ce){if(1&ve&&g._UZ(0,"div",7),2&ve){const J=g.oxw();g.Tol(J.options.messageClass),g.Q6J("innerHTML",J.message,g.oJD)}}function F(ve,Ce){if(1&ve&&(g.TgZ(0,"div",8),g._uU(1),g.qZA()),2&ve){const J=g.oxw();g.Tol(J.options.messageClass),g.uIk("aria-label",J.message),g.xp6(1),g.hij(" ",J.message," ")}}function oe(ve,Ce){if(1&ve&&(g.TgZ(0,"div"),g._UZ(1,"div",9),g.qZA()),2&ve){const J=g.oxw();g.xp6(1),g.Udp("width",J.width+"%")}}function he(ve,Ce){if(1&ve){const J=g.EpF();g.TgZ(0,"button",5),g.NdJ("click",function(){return g.CHM(J),g.oxw().remove()}),g.TgZ(1,"span",6),g._uU(2,"\xd7"),g.qZA(),g.qZA()}}function Ee(ve,Ce){if(1&ve&&(g.ynx(0),g._uU(1),g.BQk()),2&ve){const J=g.oxw(2);g.xp6(1),g.hij("[",J.duplicatesCount+1,"]")}}function ee(ve,Ce){if(1&ve&&(g.TgZ(0,"div"),g._uU(1),g.YNc(2,Ee,2,1,"ng-container",4),g.qZA()),2&ve){const J=g.oxw();g.Tol(J.options.titleClass),g.uIk("aria-label",J.title),g.xp6(1),g.hij(" ",J.title," "),g.xp6(1),g.Q6J("ngIf",J.duplicatesCount)}}function pe(ve,Ce){if(1&ve&&g._UZ(0,"div",7),2&ve){const J=g.oxw();g.Tol(J.options.messageClass),g.Q6J("innerHTML",J.message,g.oJD)}}function Te(ve,Ce){if(1&ve&&(g.TgZ(0,"div",8),g._uU(1),g.qZA()),2&ve){const J=g.oxw();g.Tol(J.options.messageClass),g.uIk("aria-label",J.message),g.xp6(1),g.hij(" ",J.message," ")}}function Pe(ve,Ce){if(1&ve&&(g.TgZ(0,"div"),g._UZ(1,"div",9),g.qZA()),2&ve){const J=g.oxw();g.xp6(1),g.Udp("width",J.width+"%")}}class ie{constructor(Ce,J){this.component=Ce,this.injector=J}attach(Ce,J){return this._attachedHost=Ce,Ce.attach(this,J)}detach(){const Ce=this._attachedHost;if(Ce)return this._attachedHost=void 0,Ce.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ce){this._attachedHost=Ce}}class Ze{constructor(Ce,J,le,Ne,Be,tn){this.toastId=Ce,this.config=J,this.message=le,this.title=Ne,this.toastType=Be,this.toastRef=tn,this._onTap=new Z.xQ,this._onAction=new Z.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(Ce){this._onAction.next(Ce)}onAction(){return this._onAction.asObservable()}}const ot={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",payload:null},Dt=new g.OlP("ToastConfig");class We{constructor(Ce){this._overlayRef=Ce,this.duplicatesCount=0,this._afterClosed=new Z.xQ,this._activate=new Z.xQ,this._manualClose=new Z.xQ,this._resetTimeout=new Z.xQ,this._countDuplicate=new Z.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(Ce,J){Ce&&this._resetTimeout.next(),J&&this._countDuplicate.next(++this.duplicatesCount)}}class dt{constructor(Ce,J){this._toastPackage=Ce,this._parentInjector=J}get(Ce,J,le){return Ce===Ze?this._toastPackage:this._parentInjector.get(Ce,J,le)}}class Tt extends class ue{attach(Ce,J){return this._attachedPortal=Ce,this.attachComponentPortal(Ce,J)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Ce){this._disposeFn=Ce}}{constructor(Ce,J,le){super(),this._hostDomElement=Ce,this._componentFactoryResolver=J,this._appRef=le}attachComponentPortal(Ce,J){const le=this._componentFactoryResolver.resolveComponentFactory(Ce.component);let Ne;return Ne=le.create(Ce.injector),this._appRef.attachView(Ne.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ne.hostView),Ne.destroy()}),J?this._hostDomElement.insertBefore(this._getComponentRootNode(Ne),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ne)),Ne}_getComponentRootNode(Ce){return Ce.hostView.rootNodes[0]}}class St{constructor(Ce){this._portalHost=Ce}attach(Ce,J=!0){return this._portalHost.attach(Ce,J)}detach(){return this._portalHost.detach()}}let ht=(()=>{class ve{constructor(J){this._document=J}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const J=this._document.createElement("div");J.classList.add("overlay-container"),J.setAttribute("aria-live","polite"),this._document.body.appendChild(J),this._containerElement=J}}return ve.\u0275fac=function(J){return new(J||ve)(g.LFG(se.K0))},ve.\u0275prov=g.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),at=(()=>{class ve{constructor(J,le,Ne,Be){this._overlayContainer=J,this._componentFactoryResolver=le,this._appRef=Ne,this._document=Be,this._paneElements=new Map}create(J,le){return this._createOverlayRef(this.getPaneElement(J,le))}getPaneElement(J="",le){return this._paneElements.get(le)||this._paneElements.set(le,{}),this._paneElements.get(le)[J]||(this._paneElements.get(le)[J]=this._createPaneElement(J,le)),this._paneElements.get(le)[J]}_createPaneElement(J,le){const Ne=this._document.createElement("div");return Ne.id="toast-container",Ne.classList.add(J),Ne.classList.add("toast-container"),le?le.getContainerElement().appendChild(Ne):this._overlayContainer.getContainerElement().appendChild(Ne),Ne}_createPortalHost(J){return new Tt(J,this._componentFactoryResolver,this._appRef)}_createOverlayRef(J){return new St(this._createPortalHost(J))}}return ve.\u0275fac=function(J){return new(J||ve)(g.LFG(ht),g.LFG(g._Vd),g.LFG(g.z2F),g.LFG(se.K0))},ve.\u0275prov=g.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),He=(()=>{class ve{constructor(J,le,Ne,Be,tn){this.overlay=le,this._injector=Ne,this.sanitizer=Be,this.ngZone=tn,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},J.default),J.config),J.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},J.default.iconClasses),J.config.iconClasses))}show(J,le,Ne={},Be=""){return this._preBuildNotification(Be,J,le,this.applyConfig(Ne))}success(J,le,Ne={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",J,le,this.applyConfig(Ne))}error(J,le,Ne={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",J,le,this.applyConfig(Ne))}info(J,le,Ne={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",J,le,this.applyConfig(Ne))}warning(J,le,Ne={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",J,le,this.applyConfig(Ne))}clear(J){for(const le of this.toasts)if(void 0!==J){if(le.toastId===J)return void le.toastRef.manualClose()}else le.toastRef.manualClose()}remove(J){const le=this._findToast(J);if(!le||(le.activeToast.toastRef.close(),this.toasts.splice(le.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 Ne=this.toasts[this.currentlyActive].toastRef;Ne.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ne.activate())}return!0}findDuplicate(J="",le="",Ne,Be){const{includeTitleDuplicates:tn}=this.toastrConfig;for(const jt of this.toasts){const zt=tn&&jt.title===J;if((!tn||zt)&&jt.message===le)return jt.toastRef.onDuplicate(Ne,Be),jt}return null}applyConfig(J={}){return Object.assign(Object.assign({},this.toastrConfig),J)}_findToast(J){for(let le=0;le<this.toasts.length;le++)if(this.toasts[le].toastId===J)return{index:le,activeToast:this.toasts[le]};return null}_preBuildNotification(J,le,Ne,Be){return Be.onActivateTick?this.ngZone.run(()=>this._buildNotification(J,le,Ne,Be)):this._buildNotification(J,le,Ne,Be)}_buildNotification(J,le,Ne,Be){if(!Be.toastComponent)throw new Error("toastComponent required");const tn=this.findDuplicate(Ne,le,this.toastrConfig.resetTimeoutOnDuplicate&&Be.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ne||le)&&this.toastrConfig.preventDuplicates&&null!==tn)return tn;this.previousToastMessage=le;let jt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(jt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const zt=this.overlay.create(Be.positionClass,this.overlayContainer);this.index=this.index+1;let dn=le;le&&Be.enableHtml&&(dn=this.sanitizer.sanitize(g.q3G.HTML,le));const nn=new We(zt),Hn=new Ze(this.index,Be,dn,Ne,J,nn),Jn=new dt(Hn,this._injector),Vn=new ie(Be.toastComponent,Jn),Rn=zt.attach(Vn,this.toastrConfig.newestOnTop);nn.componentInstance=Rn.instance;const Ht={toastId:this.index,title:Ne||"",message:le||"",toastRef:nn,onShown:nn.afterActivate(),onHidden:nn.afterClosed(),onTap:Hn.onTap(),onAction:Hn.onAction(),portal:Rn};return jt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ht.toastRef.activate()})),this.toasts.push(Ht),Ht}}return ve.\u0275fac=function(J){return new(J||ve)(g.LFG(Dt),g.LFG(at),g.LFG(g.zs3),g.LFG(B.H7),g.LFG(g.R0b))},ve.\u0275prov=g.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Un=(()=>{class ve{constructor(J,le,Ne){this.toastrService=J,this.toastPackage=le,this.ngZone=Ne,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=le.message,this.title=le.title,this.options=le.config,this.originalTimeout=le.config.timeOut,this.toastClasses=`${le.toastType} ${le.config.toastClass}`,this.sub=le.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=le.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=le.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=le.toastRef.countDuplicate().subscribe(Be=>{this.duplicatesCount=Be})}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 J=(new Date).getTime();this.width=(this.hideTime-J)/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(J,le){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(J),le)):this.timeout=setTimeout(()=>J(),le)}outsideInterval(J,le){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(J),le)):this.intervalId=setInterval(()=>J(),le)}runInsideAngular(J){this.ngZone?this.ngZone.run(()=>J()):J()}}return ve.\u0275fac=function(J){return new(J||ve)(g.Y36(He),g.Y36(Ze),g.Y36(g.R0b))},ve.\u0275cmp=g.Xpm({type:ve,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(J,le){1&J&&g.NdJ("click",function(){return le.tapToast()})("mouseenter",function(){return le.stickAround()})("mouseleave",function(){return le.delayedHideToast()}),2&J&&(g.d8E("@flyInOut",le.state),g.Tol(le.toastClasses),g.Udp("display",le.displayStyle))},attrs:U,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(J,le){1&J&&(g.YNc(0,Y,3,0,"button",0),g.YNc(1,$,3,5,"div",1),g.YNc(2,V,1,3,"div",2),g.YNc(3,F,2,4,"div",3),g.YNc(4,oe,2,2,"div",4)),2&J&&(g.Q6J("ngIf",le.options.closeButton),g.xp6(1),g.Q6J("ngIf",le.title),g.xp6(1),g.Q6J("ngIf",le.message&&le.options.enableHtml),g.xp6(1),g.Q6J("ngIf",le.message&&!le.options.enableHtml),g.xp6(1),g.Q6J("ngIf",le.options.progressBar))},directives:[se.O5],encapsulation:2,data:{animation:[(0,_.X$)("flyInOut",[(0,_.SB)("inactive",(0,_.oB)({opacity:0})),(0,_.SB)("active",(0,_.oB)({opacity:1})),(0,_.SB)("removed",(0,_.oB)({opacity:0})),(0,_.eR)("inactive => active",(0,_.jt)("{{ easeTime }}ms {{ easing }}")),(0,_.eR)("active => removed",(0,_.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),ve})();const It=Object.assign(Object.assign({},ot),{toastComponent:Un});let un=(()=>{class ve{static forRoot(J={}){return{ngModule:ve,providers:[{provide:Dt,useValue:{default:It,config:J}}]}}}return ve.\u0275fac=function(J){return new(J||ve)},ve.\u0275mod=g.oAB({type:ve}),ve.\u0275inj=g.cJS({imports:[[se.ez]]}),ve})(),En=(()=>{class ve{constructor(J,le,Ne){this.toastrService=J,this.toastPackage=le,this.appRef=Ne,this.width=-1,this.toastClasses="",this.state="inactive",this.message=le.message,this.title=le.title,this.options=le.config,this.originalTimeout=le.config.timeOut,this.toastClasses=`${le.toastType} ${le.config.toastClass}`,this.sub=le.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=le.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=le.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=le.toastRef.countDuplicate().subscribe(Be=>{this.duplicatesCount=Be})}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 J=(new Date).getTime();this.width=(this.hideTime-J)/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 ve.\u0275fac=function(J){return new(J||ve)(g.Y36(He),g.Y36(Ze),g.Y36(g.z2F))},ve.\u0275cmp=g.Xpm({type:ve,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(J,le){1&J&&g.NdJ("click",function(){return le.tapToast()})("mouseenter",function(){return le.stickAround()})("mouseleave",function(){return le.delayedHideToast()}),2&J&&(g.Tol(le.toastClasses),g.Udp("display",le.displayStyle))},attrs:U,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(J,le){1&J&&(g.YNc(0,he,3,0,"button",0),g.YNc(1,ee,3,5,"div",1),g.YNc(2,pe,1,3,"div",2),g.YNc(3,Te,2,4,"div",3),g.YNc(4,Pe,2,2,"div",4)),2&J&&(g.Q6J("ngIf",le.options.closeButton),g.xp6(1),g.Q6J("ngIf",le.title),g.xp6(1),g.Q6J("ngIf",le.message&&le.options.enableHtml),g.xp6(1),g.Q6J("ngIf",le.message&&!le.options.enableHtml),g.xp6(1),g.Q6J("ngIf",le.options.progressBar))},directives:[se.O5],encapsulation:2}),ve})();Object.assign(Object.assign({},ot),{toastComponent:En})}},ze=>{ze(ze.s=2908)}]);