marketplacepos 2.0.7 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/237.110eb3dc95cdefd3.js +1 -0
- package/Marketplace/78.7dbb828389fdc3ea.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.6726e46e78cd302f.js +1 -0
- package/Marketplace/runtime.b86b923c4e479f2b.js +1 -0
- package/package.json +1 -1
- package/Marketplace/237.557021d8f685e1d7.js +0 -1
- package/Marketplace/78.9fa7f30958cb5a94.js +0 -1
- package/Marketplace/main.b0cb3003254d28e1.js +0 -1
- package/Marketplace/runtime.b3ffcb3c842ef0b3.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[179],{632:(We,ce,M)=>{M.d(ce,{O:()=>Ee});var p=M(520),m=M(591),ne=M(2916),le=M(353);const k=(()=>{function Ue(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return Ue.prototype=Object.create(Error.prototype),Ue})();var X=M(2697),J=M(826),ie=M(9054);class z{constructor(xe,qe,ke,ye){this.waitFor=xe,this.absoluteTimeout=qe,this.withObservable=ke,this.scheduler=ye}call(xe,qe){return qe.subscribe(new Z(xe,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class Z extends J.L{constructor(xe,qe,ke,ye,He){super(xe),this.absoluteTimeout=qe,this.waitFor=ke,this.withObservable=ye,this.scheduler=He,this.action=null,this.scheduleTimeout()}static dispatchTimeout(xe){const{withObservable:qe}=xe;xe._unsubscribeAndRecycle(),xe.add((0,ie.D)(xe,qe))}scheduleTimeout(){const{action:xe}=this;xe?this.action=xe.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Z.dispatchTimeout,this.waitFor,this))}_next(xe){this.absoluteTimeout||this.scheduleTimeout(),super._next(xe)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var ue=M(1737);var fe=M(5e3),we=M(4383);let Ee=(()=>{class Ue{constructor(qe,ke){this.http=qe,this.toastr=ke,this._serverUrl="",this.currentRequest=new m.X(0)}get serverUrl(){return this._serverUrl}set serverUrl(qe){this._serverUrl=qe}addRequest(){this.currentRequest.next(this.currentRequest.value+1)}removeRequest(){this.currentRequest.next(this.currentRequest.value-1)}post(qe,ke,ye=1e5){return new ne.y(He=>{let jt=localStorage.getItem("Token"),Wt=new p.WM;jt&&(Wt=new p.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+jt}));let Mt={headers:Wt};this.addRequest(),this.http.post(qe,ke,Mt).pipe(function Me(Ue,xe=le.P){return function $(Ue,xe,qe=le.P){return ke=>{let ye=(0,X.J)(Ue),He=ye?+Ue-qe.now():Math.abs(Ue);return ke.lift(new z(He,ye,xe,qe))}}(Ue,(0,ue._)(new k),xe)}(ye)).subscribe(lt=>{this.removeRequest(),He.next(lt),He.complete()},lt=>{if(this.removeRequest(),200==lt.status)He.next(lt.error.text),He.complete();else{if(!this.unauthorizedErrorHandling(lt)){let nt=this.errorMessageHandling(lt);this.toastr.error(""!=nt.message?nt.message:"An unknown error has occured!",nt.header,{enableHtml:!0})}He.error(lt)}})})}unauthorizedErrorHandling(qe){let ke=!1;return 401==qe.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",ke=!0),ke}errorMessageHandling(qe){let ke="API Error",ye="Exception Message";return qe.error?(ke="API Error - "+qe.status,qe.error.Message&&(ye=-1!=qe.error.Message.indexOf("Message")?JSON.parse(qe.error.Message).Message:qe.error.Message)):qe.message&&(ke="API Error - "+qe.name,ye=qe.message),{header:ke,message:ye}}}return Ue.\u0275fac=function(qe){return new(qe||Ue)(fe.LFG(p.eN),fe.LFG(we._W))},Ue.\u0275prov=fe.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})()},8002:(We,ce,M)=>{M.d(ce,{e:()=>m});var p=M(5e3);let m=(()=>{class ne{constructor(){}GetNamePOS(){let H=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(H.access_token)}ParseToken(H){try{const X=H.split(".")[0].replace("-","+").replace("_","/"),J=JSON.parse(window.atob(X)),$=H.split(".")[1].replace("-","+").replace("_","/"),z=JSON.parse(window.atob($));return z.header=J,z}catch(k){return!1}}}return ne.\u0275fac=function(H){return new(H||ne)},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})()},6776:(We,ce,M)=>{var p=M(2313),m=M(5e3),ne=M(520),le=M(8929),H=M(6686),X=M(2268);const ie=new class J extends X.v{}(class k extends H.o{constructor(P,A){super(P,A),this.scheduler=P,this.work=A}schedule(P,A=0){return A>0?super.schedule(P,A):(this.delay=A,this.state=P,this.scheduler.flush(this),this)}execute(P,A){return A>0||this.closed?super.execute(P,A):this._execute(P,A)}requestAsyncId(P,A,ee=0){return null!==ee&&ee>0||null===ee&&this.delay>0?super.requestAsyncId(P,A,ee):P.flush(this)}});var $=M(2654),z=M(3489),Z=M(9312);class fe extends z.L{constructor(P,A,ee=0){super(P),this.scheduler=A,this.delay=ee}static dispatch(P){const{notification:A,destination:ee}=P;A.observe(ee),this.unsubscribe()}scheduleMessage(P){this.destination.add(this.scheduler.schedule(fe.dispatch,this.delay,new we(P,this.destination)))}_next(P){this.scheduleMessage(Z.P.createNext(P))}_error(P){this.scheduleMessage(Z.P.createError(P)),this.unsubscribe()}_complete(){this.scheduleMessage(Z.P.createComplete()),this.unsubscribe()}}class we{constructor(P,A){this.notification=P,this.destination=A}}var Ee=M(5279),Ue=M(5283);class xe extends le.xQ{constructor(P=Number.POSITIVE_INFINITY,A=Number.POSITIVE_INFINITY,ee){super(),this.scheduler=ee,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=P<1?1:P,this._windowTime=A<1?1:A,A===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(P){const A=this._events;A.push(P),A.length>this._bufferSize&&A.shift(),super.next(P)}nextTimeWindow(P){this._events.push(new qe(this._getNow(),P)),this._trimBufferThenGetEvents(),super.next(P)}_subscribe(P){const A=this._infiniteTimeWindow,ee=A?this._events:this._trimBufferThenGetEvents(),$e=this.scheduler,xt=ee.length;let Pt;if(this.closed)throw new Ee.N;if(this.isStopped||this.hasError?Pt=$.w.EMPTY:(this.observers.push(P),Pt=new Ue.W(this,P)),$e&&P.add(P=new fe(P,$e)),A)for(let mn=0;mn<xt&&!P.closed;mn++)P.next(ee[mn]);else for(let mn=0;mn<xt&&!P.closed;mn++)P.next(ee[mn].value);return this.hasError?P.error(this.thrownError):this.isStopped&&P.complete(),Pt}_getNow(){return(this.scheduler||ie).now()}_trimBufferThenGetEvents(){const P=this._getNow(),A=this._bufferSize,ee=this._windowTime,$e=this._events,xt=$e.length;let Pt=0;for(;Pt<xt&&!(P-$e[Pt].time<ee);)Pt++;return xt>A&&(Pt=Math.max(Pt,xt-A)),Pt>0&&$e.splice(0,Pt),$e}}class qe{constructor(P,A){this.time=P,this.value=A}}function ke(b,P){function A(){return!A.pred.apply(A.thisArg,arguments)}return A.pred=b,A.thisArg=P,A}var ye=M(9249),He=M(2198),jt=M(2916),Mt=M(6787),lt=M(7739),At=M(537),nt=M(7545),rt=M(826),Be=M(9054);function Fe(b){return P=>P.lift(new Un(b))}class Un{constructor(P){this.durationSelector=P}call(P,A){return A.subscribe(new zt(P,this.durationSelector))}}class zt extends rt.L{constructor(P,A){super(P),this.durationSelector=A,this.hasValue=!1,this.durationSubscription=null}_next(P){try{const A=this.durationSelector.call(this,P);A&&this._tryNext(P,A)}catch(A){this.destination.error(A)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(P,A){let ee=this.durationSubscription;this.value=P,this.hasValue=!0,ee&&(ee.unsubscribe(),this.remove(ee)),ee=(0,Be.D)(this,A),ee&&!ee.closed&&this.add(this.durationSubscription=ee)}notifyNext(P,A,ee,$e,xt){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const P=this.value,A=this.durationSubscription;A&&(this.durationSubscription=null,A.unsubscribe(),this.remove(A)),this.value=null,this.hasValue=!1,super._next(P)}}}var Ot=M(5778),bt=M(2994),ze=M(9808);function en(b,P){1&b&&m.GkF(0)}function Nn(b,P){if(1&b&&m._UZ(0,"sk-cube-grid",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function me(b,P){if(1&b&&m._UZ(0,"sk-chasing-dots",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function B(b,P){if(1&b&&m._UZ(0,"sk-double-bounce",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function N(b,P){if(1&b&&m._UZ(0,"sk-rotating-plane",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function R(b,P){if(1&b&&m._UZ(0,"sk-spinner-pulse",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function G(b,P){if(1&b&&m._UZ(0,"sk-three-bounce",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function se(b,P){if(1&b&&m._UZ(0,"sk-wandering-cubes",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function ae(b,P){if(1&b&&m._UZ(0,"sk-wave",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function be(b,P){if(1&b&&(m.TgZ(0,"div",1),m.YNc(1,en,1,0,"ng-container",2),m.YNc(2,Nn,1,1,"sk-cube-grid",3),m.YNc(3,me,1,1,"sk-chasing-dots",3),m.YNc(4,B,1,1,"sk-double-bounce",3),m.YNc(5,N,1,1,"sk-rotating-plane",3),m.YNc(6,R,1,1,"sk-spinner-pulse",3),m.YNc(7,G,1,1,"sk-three-bounce",3),m.YNc(8,se,1,1,"sk-wandering-cubes",3),m.YNc(9,ae,1,1,"sk-wave",3),m.qZA()),2&b){const A=m.oxw();m.Udp("opacity",A.opacity),m.ekj("backdrop",A.backdrop),m.xp6(1),m.Q6J("ngComponentOutlet",A.entryComponent),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skCubeGrid),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skChasingDots),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skDoubleBounce),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skRotatingPlane),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skSpinnerPulse),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skThreeBounce),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skWanderingCubes),m.xp6(1),m.Q6J("ngIf",A.spinner===A.spinkit.skWave)}}let Ae=(()=>{class b{}return b.\u0275fac=function(A){return new(A||b)},b.\u0275dir=m.lG2({type:b,inputs:{backgroundColor:"backgroundColor"}}),b})(),et=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-chasing-dots"]],features:[m.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(A,ee){1&A&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m._UZ(2,"div",2),m.qZA()),2&A&&(m.ekj("colored",!ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{animation:sk-chasingDotsRotate 2s linear infinite;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:40px}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-chasingDotsBounce 2s ease-in-out infinite;border-radius:100%;display:inline-block;height:60%;position:absolute;top:0;width:60%}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{animation-delay:-1s;bottom:0;top:auto}@keyframes sk-chasingDotsRotate{to{transform:rotate(1turn)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),b})(),Se=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-cube-grid"]],features:[m.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(A,ee){1&A&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m._UZ(2,"div",2),m._UZ(3,"div",3),m._UZ(4,"div",4),m._UZ(5,"div",5),m._UZ(6,"div",6),m._UZ(7,"div",7),m._UZ(8,"div",8),m._UZ(9,"div",9),m.qZA()),2&A&&(m.ekj("colored",!ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{animation:sk-cubeGridScaleDelay 1.3s ease-in-out infinite;float:left;height:33.33%;width:33.33%}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scaleX(1)}35%{transform:scale3D(0,0,1)}}"]}),b})(),st=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-double-bounce"]],features:[m.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(A,ee){1&A&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m._UZ(2,"div",2),m.qZA()),2&A&&(m.ekj("colored",!ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-doubleBounce 2s ease-in-out infinite;background-color:#333;border-radius:50%;height:100%;left:0;opacity:.6;position:absolute;top:0;width:100%}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),b})(),Kt=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-rotating-plane"]],features:[m.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(A,ee){1&A&&m._UZ(0,"div",0),2&A&&m.Udp("background-color",ee.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{animation:sk-rotatePlane 1.2s ease-in-out infinite;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0deg) rotateY(0deg)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),b})(),Ne=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-spinner-pulse"]],features:[m.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(A,ee){1&A&&m._UZ(0,"div",0),2&A&&m.Udp("background-color",ee.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{animation:sk-pulseScaleOut 1s ease-in-out infinite;border-radius:100%;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}"]}),b})(),tn=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-three-bounce"]],features:[m.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(A,ee){1&A&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m._UZ(2,"div",2),m._UZ(3,"div",3),m.qZA()),2&A&&(m.ekj("colored",!ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{margin:auto;position:relative;text-align:center;top:50%;width:80px}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-three-bounce 1.4s ease-in-out 0s infinite both;border-radius:100%;display:inline-block;height:20px;width:20px}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),b})(),Nt=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-wandering-cubes"]],features:[m.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(A,ee){1&A&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m._UZ(2,"div",2),m.qZA()),2&A&&(m.ekj("colored",!ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both;height:10px;left:0;position:absolute;top:0;width:10px}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0deg)}25%{transform:translateX(30px) rotate(-90deg) scale(.5)}50%{transform:translateX(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translateX(30px) translateY(30px) rotate(-180deg)}75%{transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-1turn)}}"]}),b})(),fn=(()=>{class b extends Ae{}return b.\u0275fac=function(){let P;return function(ee){return(P||(P=m.n5z(b)))(ee||b)}}(),b.\u0275cmp=m.Xpm({type:b,selectors:[["sk-wave"]],features:[m.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(A,ee){1&A&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m._UZ(2,"div",2),m._UZ(3,"div",3),m._UZ(4,"div",4),m._UZ(5,"div",5),m.qZA()),2&A&&(m.ekj("colored",!ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor),m.xp6(1),m.Udp("background-color",ee.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{font-size:10px;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:50px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{animation:sk-waveStretchDelay 1.2s ease-in-out infinite;display:inline-block;float:left;height:100%;margin-right:1px;width:6px}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),b})(),sn=(()=>{class b{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new xe(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(A){this._filteredMethods=A}set filteredHeaders(A){this._filteredHeaders=A}set forceByPass(A){this._forceByPass=A}shouldBypassUrl(A){return this._filteredUrlPatterns.some(ee=>ee.test(A))}shouldBypassMethod(A){return this._filteredMethods.some(ee=>ee.toUpperCase()===A.method.toUpperCase())}shouldBypassHeader(A){return this._filteredHeaders.some(ee=>A.headers.has(ee))}shouldBypass(A){return this._forceByPass||this.shouldBypassUrl(A.urlWithParams)||this.shouldBypassMethod(A)||this.shouldBypassHeader(A)}intercept(A,ee){const $e=this.shouldBypass(A);return $e||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),ee.handle(A).pipe((0,At.x)(()=>{$e||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275prov=(0,m.Yz7)({factory:function(){return new b},token:b,providedIn:"root"}),b})();const ve=[{provide:ne.TP,useExisting:sn,multi:!0}];let Y=(()=>{class b{constructor(A){this.pendingRequestsInterceptor=A,this._visibility$=new xe(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 b.\u0275fac=function(A){return new(A||b)(m.LFG(sn))},b.\u0275prov=(0,m.Yz7)({factory:function(){return new b((0,m.LFG)(sn))},token:b,providedIn:"root"}),b})();const j={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 De=(()=>{class b{constructor(A,ee){this.pendingRequestsInterceptor=A,this.spinnerVisibility=ee,this.spinkit=j,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.spinner=j.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[A,ee]=function Wt(b,P,A){return[(0,He.h)(P,A)(new jt.y((0,ye.s)(b))),(0,He.h)(ke(P,A))(new jt.y((0,ye.s)(b)))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,$e=>$e);this.isVisible$=(0,Mt.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,nt.w)(()=>A.pipe(Fe(()=>(0,lt.H)(this.debounceDelay))))),A.pipe((0,nt.w)(()=>ee.pipe(Fe(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Ot.x)(),(0,bt.b)($e=>this.updateExpirationDelay($e)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(A=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(A)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(A){A&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,lt.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return b.\u0275fac=function(A){return new(A||b)(m.Y36(sn),m.Y36(Y))},b.\u0275cmp=m.Xpm({type:b,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",spinner:"spinner",backgroundColor:"backgroundColor"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity",4,"ngIf"],["id","spinner"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(A,ee){1&A&&(m.YNc(0,be,10,13,"div",0),m.ALo(1,"async")),2&A&&m.Q6J("ngIf",m.lcZ(1,1,ee.isVisible$))},directives:[ze.O5,ze.$G,Se,et,st,Kt,Ne,tn,Nt,fn],pipes:[ze.Ov],styles:["#spinner[_ngcontent-%COMP%]{left:50%;position:fixed;top:50%;transform:translate(-50%,-50%);z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{align-items:center;background-color:#f1f1f1;display:flex;height:100%;justify-content:center;left:0;top:0;transform:none;width:100%} .colored-parent, .colored>div{background-color:#333}"]}),b})(),Re=(()=>{class b{static forRoot(){return{ngModule:b,providers:[ve]}}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275mod=m.oAB({type:b}),b.\u0275inj=m.cJS({imports:[[ze.ez]]}),b})();var Pe=M(632),Ge=M(8002),ht=M(2302);const on=[{path:"",loadChildren:()=>Promise.all([M.e(365),M.e(78)]).then(M.bind(M,6078)).then(b=>b.LoginModule)},{path:"menu",loadChildren:()=>Promise.all([M.e(365),M.e(237)]).then(M.bind(M,3237)).then(b=>b.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let ot=(()=>{class b{}return b.\u0275fac=function(A){return new(A||b)},b.\u0275mod=m.oAB({type:b}),b.\u0275inj=m.cJS({imports:[[ht.Bz.forRoot(on,{relativeLinkResolution:"legacy"})],ht.Bz]}),b})();var En=M(4850),nn=M(1709);let mt=(()=>{class b{constructor(A,ee,$e){this._router=A,this.titleService=ee,this.activatedRoute=$e}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe((0,He.h)(A=>A instanceof ht.m2)).pipe((0,En.U)(()=>this.activatedRoute),(0,En.U)(A=>{for(;A.firstChild;)A=A.firstChild;return A}),(0,He.h)(A=>"primary"===A.outlet),(0,nn.zg)(A=>A.data)).subscribe(A=>{let ee=" | Marketplace";"Dealpos x Marketplace"==A.title&&(ee=""),this.titleService.setTitle(A.title+ee)})}overrideDateToJsonFunction(){function A(ee){return ee<10?"0"+ee:ee}Date.prototype.toJSON=function(){return this.getFullYear()+"-"+A(this.getMonth()+1)+"-"+A(this.getDate())+"T"+A(this.getHours())+":"+A(this.getMinutes())+":"+A(this.getSeconds())+".000"}}}return b.\u0275fac=function(A){return new(A||b)(m.Y36(ht.F0),m.Y36(p.Dx),m.Y36(ht.gz))},b.\u0275cmp=m.Xpm({type:b,selectors:[["app-root"]],decls:2,vars:0,template:function(A,ee){1&A&&(m._UZ(0,"router-outlet"),m._UZ(1,"ng-http-loader"))},directives:[ht.lC,De],styles:[""]}),b})();var Ve=M(6360);let Lt=(()=>{class b{constructor(A){this._router=A}intercept(A,ee){let $e=JSON.parse(window.localStorage.getItem("user")),xt=new Date;if(null!=$e){let Pt=new Date($e.expiredAt);A=A.clone(xt<Pt?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${$e.access_token}`}}:{setHeaders:{"Content-Type":"application/json"}})}else A=A.clone({setHeaders:{"Content-Type":"application/json"}});return ee.handle(A)}}return b.\u0275fac=function(A){return new(A||b)(m.LFG(ht.F0))},b.\u0275prov=m.Yz7({token:b,factory:b.\u0275fac}),b})();var ft=M(4383),Ct=M(1777);const Fn=["custom-toast-component",""];function un(b,P){if(1&b){const A=m.EpF();m.TgZ(0,"a",10),m.NdJ("click",function(){return m.CHM(A),m.oxw(2).remove()}),m._uU(1," x "),m.qZA()}}function gn(b,P){if(1&b&&(m.TgZ(0,"div",6),m.TgZ(1,"div",7),m.TgZ(2,"div"),m.TgZ(3,"h4"),m._uU(4),m.qZA(),m.qZA(),m.qZA(),m.TgZ(5,"div",8),m.YNc(6,un,2,0,"a",9),m.qZA(),m.qZA()),2&b){const A=m.oxw();m.Udp("display","inactive"===A.state.value?"none":""),m.xp6(2),m.Tol(A.options.titleClass),m.uIk("aria-label",A.title),m.xp6(2),m.Oqu(A.title),m.xp6(2),m.Q6J("ngIf",A.options.closeButton)}}const Dr=function(b){return{notitle:b}};function Gn(b,P){if(1&b&&m._UZ(0,"div",11),2&b){const A=m.oxw();m.Tol(A.options.messageClass),m.Q6J("ngClass",m.VKq(4,Dr,null==A.title))("innerHTML",A.message,m.oJD)}}function Nr(b,P){if(1&b&&(m.TgZ(0,"div",12),m._uU(1),m.qZA()),2&b){const A=m.oxw();m.Tol(A.options.messageClass),m.Q6J("ngClass",m.VKq(5,Dr,null==A.title)),m.uIk("aria-label",A.message),m.xp6(1),m.hij(" ",A.message," ")}}function nr(b,P){if(1&b){const A=m.EpF();m.TgZ(0,"a",10),m.NdJ("click",function(){return m.CHM(A),m.oxw().remove()}),m._uU(1," x "),m.qZA()}}function Kn(b,P){if(1&b&&(m.TgZ(0,"div"),m._UZ(1,"div",13),m.qZA()),2&b){const A=m.oxw();m.xp6(1),m.Udp("width",A.width+"%")}}let rr=(()=>{class b extends ft.FN{constructor(A,ee){super(A,ee),this.toastrService=A,this.toastPackage=ee}ngOnInit(){}action(A){return A.stopPropagation(),this.toastPackage.triggerAction(),!1}}return b.\u0275fac=function(A){return new(A||b)(m.Y36(ft._W),m.Y36(ft.PR))},b.\u0275cmp=m.Xpm({type:b,selectors:[["","custom-toast-component",""]],features:[m.qOj],attrs:Fn,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0"],[1,"col-auto","mt-5","pr-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(A,ee){1&A&&(m.TgZ(0,"div",0),m.YNc(1,gn,7,7,"div",1),m.YNc(2,Gn,1,6,"div",2),m.YNc(3,Nr,2,7,"div",3),m.YNc(4,nr,2,0,"a",4),m.YNc(5,Kn,2,2,"div",5),m.qZA()),2&A&&(m.xp6(1),m.Q6J("ngIf",ee.title),m.xp6(1),m.Q6J("ngIf",ee.message&&ee.options.enableHtml),m.xp6(1),m.Q6J("ngIf",ee.message&&!ee.options.enableHtml),m.xp6(1),m.Q6J("ngIf",ee.options.closeButton&&null==ee.title),m.xp6(1),m.Q6J("ngIf",ee.options.progressBar))},directives:[ze.O5,ze.mk],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid #51a351}.toast-info[_nghost-%COMP%]{border:1.8px solid #2f96b4}.toast-error[_nghost-%COMP%]{border:1.8px solid #bd362f}.toast-warning[_nghost-%COMP%]{border:1.8px solid #f89406}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.6rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[(0,Ct.X$)("flyInOut",[(0,Ct.SB)("inactive",(0,Ct.oB)({opacity:0})),(0,Ct.eR)("inactive => active",(0,Ct.jt)("400ms ease-out",(0,Ct.F4)([(0,Ct.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,Ct.oB)({transform:"skewX(20deg)",opacity:1}),(0,Ct.oB)({transform:"skewX(-5deg)",opacity:1}),(0,Ct.oB)({transform:"none",opacity:1})]))),(0,Ct.eR)("active => removed",(0,Ct.jt)("400ms ease-out",(0,Ct.F4)([(0,Ct.oB)({opacity:1}),(0,Ct.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),b})();var bn=M(3175);const yt={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!0},storeSchema:[]}]};let oe=(()=>{class b{}return b.\u0275fac=function(A){return new(A||b)},b.\u0275mod=m.oAB({type:b,bootstrap:[mt]}),b.\u0275inj=m.cJS({providers:[{provide:ne.TP,useClass:Lt,multi:!0},Pe.O,Ge.e],imports:[[p.b2,ot,Ve.PW,ft.Rh.forRoot({toastComponent:rr,positionClass:"toast-bottom-right",closeButton:!0}),ne.JF,bn.Cz.forRoot(yt),Re.forRoot()]]}),b})();(0,m.G48)(),p.q6().bootstrapModule(oe).catch(b=>console.error(b))},3175:(We,ce,M)=>{M.d(ce,{Cz:()=>me,ys:()=>Nn});var p=M(5e3),m=M(9808);var nt=M(5254),rt=M(2986);function Be(B,N,R,G){return new Promise((se,ae)=>{B||ae("IndexedDB not available");const be=B.open(N,R);let Ae;be.onsuccess=et=>{Ae=be.result,se(Ae)},be.onerror=et=>{ae(`IndexedDB error: ${be.error}`)},"function"==typeof G&&(be.onupgradeneeded=et=>{G(et,Ae)})})}function Fe(B,N,R,G,se){if(!B)return;const ae=B.open(N,R);ae.onupgradeneeded=be=>{const Ae=be.target.result;G.forEach(Se=>{if(!Ae.objectStoreNames.contains(Se.store)){const st=Ae.createObjectStore(Se.store,Se.storeConfig);Se.storeSchema.forEach(Kt=>{st.createIndex(Kt.name,Kt.keypath,Kt.options)})}});const et=se&&se();et&&Object.keys(et).map(Se=>parseInt(Se,10)).filter(Se=>Se>be.oldVersion).sort((Se,st)=>Se-st).forEach(Se=>{et[Se](Ae,ae.transaction)}),Ae.close()},ae.onsuccess=be=>{be.target.result.close()}}function zt(B,N,R){B||R("You need to use the openDatabase function to create a database before you query it!"),function Un(B,N){return B.objectStoreNames.contains(N)}(B,N)||R(`objectStore does not exists: ${N}`)}function Ot(B,N){const R=B.transaction(N.storeName,N.dbMode);return R.onerror=N.error,R.oncomplete=N.complete,R.onabort=N.abort,R}function bt(B,N,R,G){return{storeName:N,dbMode:B,error:se=>{R(se)},complete:se=>{G()},abort:se=>{R(se)}}}var ze=(()=>{return(B=ze||(ze={})).readonly="readonly",B.readwrite="readwrite",ze;var B})();const en=new p.OlP(null);let Nn=(()=>{class B{constructor(R,G){if(this.dbConfig=R,this.platformId=G,!R.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!R.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=(0,m.NF)(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,Fe(this.indexedDB,R.name,R.version,R.objectStoresMeta,R.migrationFactory))}createObjectStore(R,G){const se=[R];Fe(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,se,G)}add(R,G,se){return(0,nt.D)(new Promise((ae,be)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Ae=>{const Se=Ot(Ae,bt(ze.readwrite,R,be,ae)).objectStore(R);(Boolean(se)?Se.add(G,se):Se.add(G)).onsuccess=Kt=>{ae(Kt.target.result)}}).catch(Ae=>be(Ae))}))}getByKey(R,G){return(0,nt.D)(new Promise((se,ae)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(be=>{const Se=Ot(be,bt(ze.readonly,R,ae,se)).objectStore(R).get(G);Se.onsuccess=st=>{se(st.target.result)},Se.onerror=st=>{ae(st)}}).catch(be=>ae(be))}))}getByID(R,G){return(0,nt.D)(new Promise((se,ae)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(be=>{zt(be,R,ae),Ot(be,bt(ze.readonly,R,ae,se)).objectStore(R).get(G).onsuccess=st=>{se(st.target.result)}}).catch(be=>ae(be))}))}getByIndex(R,G,se){return(0,nt.D)(new Promise((ae,be)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Ae=>{zt(Ae,R,be),Ot(Ae,bt(ze.readonly,R,be,ae)).objectStore(R).index(G).get(se).onsuccess=Ne=>{ae(Ne.target.result)}}).catch(Ae=>be(Ae))}))}getAll(R){return(0,nt.D)(new Promise((G,se)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ae=>{zt(ae,R,se);const et=Ot(ae,bt(ze.readonly,R,se,G)).objectStore(R).getAll();et.onerror=Se=>{se(Se)},et.onsuccess=({target:{result:Se}})=>{G(Se)}}).catch(ae=>se(ae))}))}update(R,G,se){return(0,nt.D)(new Promise((ae,be)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Ae=>{zt(Ae,R,be);const et=Ot(Ae,bt(ze.readwrite,R,be,ae)),Se=et.objectStore(R);et.oncomplete=()=>{this.getAll(R).pipe((0,rt.q)(1)).subscribe(st=>{ae(st)})},se?Se.put(G,se):Se.put(G)}).catch(Ae=>be(Ae))}))}delete(R,G){return(0,nt.D)(new Promise((se,ae)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(be=>{zt(be,R,ae);const Ae=Ot(be,bt(ze.readwrite,R,ae,se));Ae.objectStore(R).delete(G),Ae.oncomplete=()=>{this.getAll(R).pipe((0,rt.q)(1)).subscribe(Se=>{se(Se)})}}).catch(be=>ae(be))}))}clear(R){return(0,nt.D)(new Promise((G,se)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ae=>{zt(ae,R,se);const be=Ot(ae,bt(ze.readwrite,R,se,G));be.objectStore(R).clear(),be.oncomplete=()=>{G(!0)}}).catch(ae=>se(ae))}))}deleteDatabase(){return(0,nt.D)(new Promise((R,G)=>function $(B,N,R,G){return new(R||(R=Promise))(function(ae,be){function Ae(st){try{Se(G.next(st))}catch(Kt){be(Kt)}}function et(st){try{Se(G.throw(st))}catch(Kt){be(Kt)}}function Se(st){st.done?ae(st.value):function se(ae){return ae instanceof R?ae:new R(function(be){be(ae)})}(st.value).then(Ae,et)}Se((G=G.apply(B,N||[])).next())})}(this,void 0,void 0,function*(){try{yield(yield Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version)).close();const ae=this.indexedDB.deleteDatabase(this.dbConfig.name);ae.onsuccess=()=>{R(!0)},ae.onerror=G,ae.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}}catch(se){G(se)}})))}openCursor(R,G){return(0,nt.D)(new Promise((se,ae)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(be=>{zt(be,R,ae);const et=Ot(be,bt(ze.readonly,R,ae,se)).objectStore(R);(void 0===G?et.openCursor():et.openCursor(G)).onsuccess=st=>{se(st)}}).catch(be=>ae(be))}))}openCursorByIndex(R,G,se,ae=ze.readonly){return(0,nt.D)(new Promise((be,Ae)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(et=>{zt(et,R,Ae),Ot(et,bt(ae,R,Ae,be)).objectStore(R).index(G).openCursor(se).onsuccess=tn=>{be(tn)}}).catch(et=>Ae(et))}))}getAllByIndex(R,G,se){const ae=[];return(0,nt.D)(new Promise((be,Ae)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(et=>{zt(et,R,Ae),Ot(et,bt(ze.readonly,R,Ae,be)).objectStore(R).index(G).openCursor(se).onsuccess=tn=>{const Nt=tn.target.result;Nt?(ae.push(Nt.value),Nt.continue()):be(ae)}}).catch(et=>Ae(et))}))}count(R,G){return(0,nt.D)(new Promise((se,ae)=>{Be(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(be=>{zt(be,R,ae);const Se=Ot(be,bt(ze.readonly,R,ae,se)).objectStore(R).count(G);Se.onerror=st=>ae(st),Se.onsuccess=st=>se(st.target.result)}).catch(be=>ae(be))}))}}return B.\u0275fac=function(R){return new(R||B)(p.LFG(en),p.LFG(p.Lbi))},B.\u0275prov=p.Yz7({token:B,factory:B.\u0275fac}),B})(),me=(()=>{class B{static forRoot(R){return{ngModule:B,providers:[Nn,{provide:en,useValue:R}]}}}return B.\u0275fac=function(R){return new(R||B)},B.\u0275mod=p.oAB({type:B}),B.\u0275inj=p.cJS({imports:[[m.ez]]}),B})()},4383:(We,ce,M)=>{M.d(ce,{FN:()=>Un,PR:()=>ke,Rh:()=>Ot,_W:()=>Fe});var p=M(5e3),m=M(1777),ne=M(8929),le=M(2313),H=M(9808);const k=["toast-component",""];function X(me,B){if(1&me){const N=p.EpF();p.TgZ(0,"button",5),p.NdJ("click",function(){return p.CHM(N),p.oxw().remove()}),p.TgZ(1,"span",6),p._uU(2,"\xd7"),p.qZA(),p.qZA()}}function J(me,B){if(1&me&&(p.ynx(0),p._uU(1),p.BQk()),2&me){const N=p.oxw(2);p.xp6(1),p.hij("[",N.duplicatesCount+1,"]")}}function ie(me,B){if(1&me&&(p.TgZ(0,"div"),p._uU(1),p.YNc(2,J,2,1,"ng-container",4),p.qZA()),2&me){const N=p.oxw();p.Tol(N.options.titleClass),p.uIk("aria-label",N.title),p.xp6(1),p.hij(" ",N.title," "),p.xp6(1),p.Q6J("ngIf",N.duplicatesCount)}}function $(me,B){if(1&me&&p._UZ(0,"div",7),2&me){const N=p.oxw();p.Tol(N.options.messageClass),p.Q6J("innerHTML",N.message,p.oJD)}}function z(me,B){if(1&me&&(p.TgZ(0,"div",8),p._uU(1),p.qZA()),2&me){const N=p.oxw();p.Tol(N.options.messageClass),p.uIk("aria-label",N.message),p.xp6(1),p.hij(" ",N.message," ")}}function Z(me,B){if(1&me&&(p.TgZ(0,"div"),p._UZ(1,"div",9),p.qZA()),2&me){const N=p.oxw();p.xp6(1),p.Udp("width",N.width+"%")}}function ue(me,B){if(1&me){const N=p.EpF();p.TgZ(0,"button",5),p.NdJ("click",function(){return p.CHM(N),p.oxw().remove()}),p.TgZ(1,"span",6),p._uU(2,"\xd7"),p.qZA(),p.qZA()}}function Me(me,B){if(1&me&&(p.ynx(0),p._uU(1),p.BQk()),2&me){const N=p.oxw(2);p.xp6(1),p.hij("[",N.duplicatesCount+1,"]")}}function fe(me,B){if(1&me&&(p.TgZ(0,"div"),p._uU(1),p.YNc(2,Me,2,1,"ng-container",4),p.qZA()),2&me){const N=p.oxw();p.Tol(N.options.titleClass),p.uIk("aria-label",N.title),p.xp6(1),p.hij(" ",N.title," "),p.xp6(1),p.Q6J("ngIf",N.duplicatesCount)}}function we(me,B){if(1&me&&p._UZ(0,"div",7),2&me){const N=p.oxw();p.Tol(N.options.messageClass),p.Q6J("innerHTML",N.message,p.oJD)}}function Ee(me,B){if(1&me&&(p.TgZ(0,"div",8),p._uU(1),p.qZA()),2&me){const N=p.oxw();p.Tol(N.options.messageClass),p.uIk("aria-label",N.message),p.xp6(1),p.hij(" ",N.message," ")}}function Ue(me,B){if(1&me&&(p.TgZ(0,"div"),p._UZ(1,"div",9),p.qZA()),2&me){const N=p.oxw();p.xp6(1),p.Udp("width",N.width+"%")}}class ke{constructor(B,N,R,G,se,ae){this.toastId=B,this.config=N,this.message=R,this.title=G,this.toastType=se,this.toastRef=ae,this._onTap=new ne.xQ,this._onAction=new ne.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(B){this._onAction.next(B)}onAction(){return this._onAction.asObservable()}}const ye={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"},He=new p.OlP("ToastConfig");class jt{constructor(B,N){this.component=B,this.injector=N}attach(B,N){return this._attachedHost=B,B.attach(this,N)}detach(){const B=this._attachedHost;if(B)return this._attachedHost=void 0,B.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(B){this._attachedHost=B}}class Mt extends class Wt{attach(B,N){return this._attachedPortal=B,this.attachComponentPortal(B,N)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(B){this._disposeFn=B}}{constructor(B,N,R){super(),this._hostDomElement=B,this._componentFactoryResolver=N,this._appRef=R}attachComponentPortal(B,N){const R=this._componentFactoryResolver.resolveComponentFactory(B.component);let G;return G=R.create(B.injector),this._appRef.attachView(G.hostView),this.setDisposeFn(()=>{this._appRef.detachView(G.hostView),G.destroy()}),N?this._hostDomElement.insertBefore(this._getComponentRootNode(G),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(G)),G}_getComponentRootNode(B){return B.hostView.rootNodes[0]}}let lt=(()=>{class me{constructor(N){this._document=N}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const N=this._document.createElement("div");N.classList.add("overlay-container"),this._document.body.appendChild(N),this._containerElement=N}}return me.\u0275fac=function(N){return new(N||me)(p.LFG(H.K0))},me.\u0275prov=(0,p.Yz7)({factory:function(){return new me((0,p.LFG)(H.K0))},token:me,providedIn:"root"}),me})();class At{constructor(B){this._portalHost=B}attach(B,N=!0){return this._portalHost.attach(B,N)}detach(){return this._portalHost.detach()}}let nt=(()=>{class me{constructor(N,R,G,se){this._overlayContainer=N,this._componentFactoryResolver=R,this._appRef=G,this._document=se,this._paneElements=new Map}create(N,R){return this._createOverlayRef(this.getPaneElement(N,R))}getPaneElement(N="",R){return this._paneElements.get(R)||this._paneElements.set(R,{}),this._paneElements.get(R)[N]||(this._paneElements.get(R)[N]=this._createPaneElement(N,R)),this._paneElements.get(R)[N]}_createPaneElement(N,R){const G=this._document.createElement("div");return G.id="toast-container",G.classList.add(N),G.classList.add("toast-container"),R?R.getContainerElement().appendChild(G):this._overlayContainer.getContainerElement().appendChild(G),G}_createPortalHost(N){return new Mt(N,this._componentFactoryResolver,this._appRef)}_createOverlayRef(N){return new At(this._createPortalHost(N))}}return me.\u0275fac=function(N){return new(N||me)(p.LFG(lt),p.LFG(p._Vd),p.LFG(p.z2F),p.LFG(H.K0))},me.\u0275prov=(0,p.Yz7)({factory:function(){return new me((0,p.LFG)(lt),(0,p.LFG)(p._Vd),(0,p.LFG)(p.z2F),(0,p.LFG)(H.K0))},token:me,providedIn:"root"}),me})();class rt{constructor(B){this._overlayRef=B,this.duplicatesCount=0,this._afterClosed=new ne.xQ,this._activate=new ne.xQ,this._manualClose=new ne.xQ,this._resetTimeout=new ne.xQ,this._countDuplicate=new ne.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(B,N){B&&this._resetTimeout.next(),N&&this._countDuplicate.next(++this.duplicatesCount)}}class Be{constructor(B,N){this._toastPackage=B,this._parentInjector=N}get(B,N,R){return B===ke?this._toastPackage:this._parentInjector.get(B,N,R)}}let Fe=(()=>{class me{constructor(N,R,G,se,ae){this.overlay=R,this._injector=G,this.sanitizer=se,this.ngZone=ae,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},N.default),N.config),N.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},N.default.iconClasses),N.config.iconClasses))}show(N,R,G={},se=""){return this._preBuildNotification(se,N,R,this.applyConfig(G))}success(N,R,G={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",N,R,this.applyConfig(G))}error(N,R,G={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",N,R,this.applyConfig(G))}info(N,R,G={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",N,R,this.applyConfig(G))}warning(N,R,G={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",N,R,this.applyConfig(G))}clear(N){for(const R of this.toasts)if(void 0!==N){if(R.toastId===N)return void R.toastRef.manualClose()}else R.toastRef.manualClose()}remove(N){const R=this._findToast(N);if(!R||(R.activeToast.toastRef.close(),this.toasts.splice(R.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 G=this.toasts[this.currentlyActive].toastRef;G.isInactive()||(this.currentlyActive=this.currentlyActive+1,G.activate())}return!0}findDuplicate(N="",R="",G,se){const{includeTitleDuplicates:ae}=this.toastrConfig;for(const be of this.toasts){const Ae=ae&&be.title===N;if((!ae||Ae)&&be.message===R)return be.toastRef.onDuplicate(G,se),be}return null}applyConfig(N={}){return Object.assign(Object.assign({},this.toastrConfig),N)}_findToast(N){for(let R=0;R<this.toasts.length;R++)if(this.toasts[R].toastId===N)return{index:R,activeToast:this.toasts[R]};return null}_preBuildNotification(N,R,G,se){return se.onActivateTick?this.ngZone.run(()=>this._buildNotification(N,R,G,se)):this._buildNotification(N,R,G,se)}_buildNotification(N,R,G,se){if(!se.toastComponent)throw new Error("toastComponent required");const ae=this.findDuplicate(G,R,this.toastrConfig.resetTimeoutOnDuplicate&&se.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&G||R)&&this.toastrConfig.preventDuplicates&&null!==ae)return ae;this.previousToastMessage=R;let be=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(be=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Ae=this.overlay.create(se.positionClass,this.overlayContainer);this.index=this.index+1;let et=R;R&&se.enableHtml&&(et=this.sanitizer.sanitize(p.q3G.HTML,R));const Se=new rt(Ae),st=new ke(this.index,se,et,G,N,Se),Kt=new Be(st,this._injector),Ne=new jt(se.toastComponent,Kt),tn=Ae.attach(Ne,this.toastrConfig.newestOnTop);Se.componentInstance=tn.instance;const Nt={toastId:this.index,title:G||"",message:R||"",toastRef:Se,onShown:Se.afterActivate(),onHidden:Se.afterClosed(),onTap:st.onTap(),onAction:st.onAction(),portal:tn};return be||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Nt.toastRef.activate()})),this.toasts.push(Nt),Nt}}return me.\u0275fac=function(N){return new(N||me)(p.LFG(He),p.LFG(nt),p.LFG(p.zs3),p.LFG(le.H7),p.LFG(p.R0b))},me.\u0275prov=(0,p.Yz7)({factory:function(){return new me((0,p.LFG)(He),(0,p.LFG)(nt),(0,p.LFG)(p.gxx),(0,p.LFG)(le.H7),(0,p.LFG)(p.R0b))},token:me,providedIn:"root"}),me})(),Un=(()=>{class me{constructor(N,R,G){this.toastrService=N,this.toastPackage=R,this.ngZone=G,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=R.message,this.title=R.title,this.options=R.config,this.originalTimeout=R.config.timeOut,this.toastClasses=`${R.toastType} ${R.config.toastClass}`,this.sub=R.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=R.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=R.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=R.toastRef.countDuplicate().subscribe(se=>{this.duplicatesCount=se})}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 N=(new Date).getTime();this.width=(this.hideTime-N)/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(N,R){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(N),R)):this.timeout=setTimeout(()=>N(),R)}outsideInterval(N,R){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(N),R)):this.intervalId=setInterval(()=>N(),R)}runInsideAngular(N){this.ngZone?this.ngZone.run(()=>N()):N()}}return me.\u0275fac=function(N){return new(N||me)(p.Y36(Fe),p.Y36(ke),p.Y36(p.R0b))},me.\u0275cmp=p.Xpm({type:me,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(N,R){1&N&&p.NdJ("click",function(){return R.tapToast()})("mouseenter",function(){return R.stickAround()})("mouseleave",function(){return R.delayedHideToast()}),2&N&&(p.d8E("@flyInOut",R.state),p.Tol(R.toastClasses),p.Udp("display",R.displayStyle))},attrs:k,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(N,R){1&N&&(p.YNc(0,X,3,0,"button",0),p.YNc(1,ie,3,5,"div",1),p.YNc(2,$,1,3,"div",2),p.YNc(3,z,2,4,"div",3),p.YNc(4,Z,2,2,"div",4)),2&N&&(p.Q6J("ngIf",R.options.closeButton),p.xp6(1),p.Q6J("ngIf",R.title),p.xp6(1),p.Q6J("ngIf",R.message&&R.options.enableHtml),p.xp6(1),p.Q6J("ngIf",R.message&&!R.options.enableHtml),p.xp6(1),p.Q6J("ngIf",R.options.progressBar))},directives:[H.O5],encapsulation:2,data:{animation:[(0,m.X$)("flyInOut",[(0,m.SB)("inactive",(0,m.oB)({opacity:0})),(0,m.SB)("active",(0,m.oB)({opacity:1})),(0,m.SB)("removed",(0,m.oB)({opacity:0})),(0,m.eR)("inactive => active",(0,m.jt)("{{ easeTime }}ms {{ easing }}")),(0,m.eR)("active => removed",(0,m.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),me})();const zt=Object.assign(Object.assign({},ye),{toastComponent:Un});let Ot=(()=>{class me{static forRoot(N={}){return{ngModule:me,providers:[{provide:He,useValue:{default:zt,config:N}}]}}}return me.\u0275fac=function(N){return new(N||me)},me.\u0275mod=p.oAB({type:me}),me.\u0275inj=p.cJS({imports:[[H.ez]]}),me})(),ze=(()=>{class me{constructor(N,R,G){this.toastrService=N,this.toastPackage=R,this.appRef=G,this.width=-1,this.toastClasses="",this.state="inactive",this.message=R.message,this.title=R.title,this.options=R.config,this.originalTimeout=R.config.timeOut,this.toastClasses=`${R.toastType} ${R.config.toastClass}`,this.sub=R.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=R.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=R.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=R.toastRef.countDuplicate().subscribe(se=>{this.duplicatesCount=se})}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 N=(new Date).getTime();this.width=(this.hideTime-N)/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 me.\u0275fac=function(N){return new(N||me)(p.Y36(Fe),p.Y36(ke),p.Y36(p.z2F))},me.\u0275cmp=p.Xpm({type:me,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(N,R){1&N&&p.NdJ("click",function(){return R.tapToast()})("mouseenter",function(){return R.stickAround()})("mouseleave",function(){return R.delayedHideToast()}),2&N&&(p.Tol(R.toastClasses),p.Udp("display",R.displayStyle))},attrs:k,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(N,R){1&N&&(p.YNc(0,ue,3,0,"button",0),p.YNc(1,fe,3,5,"div",1),p.YNc(2,we,1,3,"div",2),p.YNc(3,Ee,2,4,"div",3),p.YNc(4,Ue,2,2,"div",4)),2&N&&(p.Q6J("ngIf",R.options.closeButton),p.xp6(1),p.Q6J("ngIf",R.title),p.xp6(1),p.Q6J("ngIf",R.message&&R.options.enableHtml),p.xp6(1),p.Q6J("ngIf",R.message&&!R.options.enableHtml),p.xp6(1),p.Q6J("ngIf",R.options.progressBar))},directives:[H.O5],encapsulation:2}),me})();Object.assign(Object.assign({},ye),{toastComponent:ze})},591:(We,ce,M)=>{M.d(ce,{X:()=>ne});var p=M(8929),m=M(5279);class ne extends p.xQ{constructor(H){super(),this._value=H}get value(){return this.getValue()}_subscribe(H){const k=super._subscribe(H);return k&&!k.closed&&H.next(this._value),k}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new m.N;return this._value}next(H){super.next(this._value=H)}}},1869:(We,ce,M)=>{M.d(ce,{d:()=>m});var p=M(3489);class m extends p.L{constructor(le,H,k){super(),this.parent=le,this.outerValue=H,this.outerIndex=k,this.index=0}_next(le){this.parent.notifyNext(this.outerValue,le,this.outerIndex,this.index++,this)}_error(le){this.parent.notifyError(le,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(We,ce,M)=>{M.d(ce,{P:()=>H});var p=M(8896),m=M(1086),ne=M(1737);class H{constructor(X,J,ie){this.kind=X,this.value=J,this.error=ie,this.hasValue="N"===X}observe(X){switch(this.kind){case"N":return X.next&&X.next(this.value);case"E":return X.error&&X.error(this.error);case"C":return X.complete&&X.complete()}}do(X,J,ie){switch(this.kind){case"N":return X&&X(this.value);case"E":return J&&J(this.error);case"C":return ie&&ie()}}accept(X,J,ie){return X&&"function"==typeof X.next?this.observe(X):this.do(X,J,ie)}toObservable(){switch(this.kind){case"N":return(0,m.of)(this.value);case"E":return(0,ne._)(this.error);case"C":return(0,p.c)()}throw new Error("unexpected notification kind value")}static createNext(X){return void 0!==X?new H("N",X):H.undefinedValueNotification}static createError(X){return new H("E",void 0,X)}static createComplete(){return H.completeNotification}}H.completeNotification=new H("C"),H.undefinedValueNotification=new H("N",void 0)},2916:(We,ce,M)=>{M.d(ce,{y:()=>z});var p=M(3489),ne=M(7668),le=M(3292),k=M(3821),X=M(7876);var $=M(2830);let z=(()=>{class ue{constructor(fe){this._isScalar=!1,fe&&(this._subscribe=fe)}lift(fe){const we=new ue;return we.source=this,we.operator=fe,we}subscribe(fe,we,Ee){const{operator:Ue}=this,xe=function H(ue,Me,fe){if(ue){if(ue instanceof p.L)return ue;if(ue[ne.b])return ue[ne.b]()}return ue||Me||fe?new p.L(ue,Me,fe):new p.L(le.c)}(fe,we,Ee);if(xe.add(Ue?Ue.call(xe,this.source):this.source||$.v.useDeprecatedSynchronousErrorHandling&&!xe.syncErrorThrowable?this._subscribe(xe):this._trySubscribe(xe)),$.v.useDeprecatedSynchronousErrorHandling&&xe.syncErrorThrowable&&(xe.syncErrorThrowable=!1,xe.syncErrorThrown))throw xe.syncErrorValue;return xe}_trySubscribe(fe){try{return this._subscribe(fe)}catch(we){$.v.useDeprecatedSynchronousErrorHandling&&(fe.syncErrorThrown=!0,fe.syncErrorValue=we),function m(ue){for(;ue;){const{closed:Me,destination:fe,isStopped:we}=ue;if(Me||we)return!1;ue=fe&&fe instanceof p.L?fe:null}return!0}(fe)?fe.error(we):console.warn(we)}}forEach(fe,we){return new(we=Z(we))((Ee,Ue)=>{let xe;xe=this.subscribe(qe=>{try{fe(qe)}catch(ke){Ue(ke),xe&&xe.unsubscribe()}},Ue,Ee)})}_subscribe(fe){const{source:we}=this;return we&&we.subscribe(fe)}[k.L](){return this}pipe(...fe){return 0===fe.length?this:function ie(ue){return ue?1===ue.length?ue[0]:function(fe){return ue.reduce((we,Ee)=>Ee(we),fe)}:X.Z}(fe)(this)}toPromise(fe){return new(fe=Z(fe))((we,Ee)=>{let Ue;this.subscribe(xe=>Ue=xe,xe=>Ee(xe),()=>we(Ue))})}}return ue.create=Me=>new ue(Me),ue})();function Z(ue){if(ue||(ue=$.v.Promise||Promise),!ue)throw new Error("no Promise impl found");return ue}},3292:(We,ce,M)=>{M.d(ce,{c:()=>ne});var p=M(2830),m=M(2782);const ne={closed:!0,next(le){},error(le){if(p.v.useDeprecatedSynchronousErrorHandling)throw le;(0,m.z)(le)},complete(){}}},826:(We,ce,M)=>{M.d(ce,{L:()=>m});var p=M(3489);class m extends p.L{notifyNext(le,H,k,X,J){this.destination.next(H)}notifyError(le,H){this.destination.error(le)}notifyComplete(le){this.destination.complete()}}},8929:(We,ce,M)=>{M.d(ce,{Yc:()=>X,xQ:()=>J});var p=M(2916),m=M(3489),ne=M(2654),le=M(5279),H=M(5283),k=M(7668);class X extends m.L{constructor(z){super(z),this.destination=z}}let J=(()=>{class $ extends p.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[k.b](){return new X(this)}lift(Z){const ue=new ie(this,this);return ue.operator=Z,ue}next(Z){if(this.closed)throw new le.N;if(!this.isStopped){const{observers:ue}=this,Me=ue.length,fe=ue.slice();for(let we=0;we<Me;we++)fe[we].next(Z)}}error(Z){if(this.closed)throw new le.N;this.hasError=!0,this.thrownError=Z,this.isStopped=!0;const{observers:ue}=this,Me=ue.length,fe=ue.slice();for(let we=0;we<Me;we++)fe[we].error(Z);this.observers.length=0}complete(){if(this.closed)throw new le.N;this.isStopped=!0;const{observers:Z}=this,ue=Z.length,Me=Z.slice();for(let fe=0;fe<ue;fe++)Me[fe].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(Z){if(this.closed)throw new le.N;return super._trySubscribe(Z)}_subscribe(Z){if(this.closed)throw new le.N;return this.hasError?(Z.error(this.thrownError),ne.w.EMPTY):this.isStopped?(Z.complete(),ne.w.EMPTY):(this.observers.push(Z),new H.W(this,Z))}asObservable(){const Z=new p.y;return Z.source=this,Z}}return $.create=(z,Z)=>new ie(z,Z),$})();class ie extends J{constructor(z,Z){super(),this.destination=z,this.source=Z}next(z){const{destination:Z}=this;Z&&Z.next&&Z.next(z)}error(z){const{destination:Z}=this;Z&&Z.error&&this.destination.error(z)}complete(){const{destination:z}=this;z&&z.complete&&this.destination.complete()}_subscribe(z){const{source:Z}=this;return Z?this.source.subscribe(z):ne.w.EMPTY}}},5283:(We,ce,M)=>{M.d(ce,{W:()=>m});var p=M(2654);class m extends p.w{constructor(le,H){super(),this.subject=le,this.subscriber=H,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const le=this.subject,H=le.observers;if(this.subject=null,!H||0===H.length||le.isStopped||le.closed)return;const k=H.indexOf(this.subscriber);-1!==k&&H.splice(k,1)}}},3489:(We,ce,M)=>{M.d(ce,{L:()=>X});var p=M(7043),m=M(3292),ne=M(2654),le=M(7668),H=M(2830),k=M(2782);class X extends ne.w{constructor($,z,Z){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=m.c;break;case 1:if(!$){this.destination=m.c;break}if("object"==typeof $){$ instanceof X?(this.syncErrorThrowable=$.syncErrorThrowable,this.destination=$,$.add(this)):(this.syncErrorThrowable=!0,this.destination=new J(this,$));break}default:this.syncErrorThrowable=!0,this.destination=new J(this,$,z,Z)}}[le.b](){return this}static create($,z,Z){const ue=new X($,z,Z);return ue.syncErrorThrowable=!1,ue}next($){this.isStopped||this._next($)}error($){this.isStopped||(this.isStopped=!0,this._error($))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next($){this.destination.next($)}_error($){this.destination.error($),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:$}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=$,this}}class J extends X{constructor($,z,Z,ue){super(),this._parentSubscriber=$;let Me,fe=this;(0,p.m)(z)?Me=z:z&&(Me=z.next,Z=z.error,ue=z.complete,z!==m.c&&(fe=Object.create(z),(0,p.m)(fe.unsubscribe)&&this.add(fe.unsubscribe.bind(fe)),fe.unsubscribe=this.unsubscribe.bind(this))),this._context=fe,this._next=Me,this._error=Z,this._complete=ue}next($){if(!this.isStopped&&this._next){const{_parentSubscriber:z}=this;H.v.useDeprecatedSynchronousErrorHandling&&z.syncErrorThrowable?this.__tryOrSetError(z,this._next,$)&&this.unsubscribe():this.__tryOrUnsub(this._next,$)}}error($){if(!this.isStopped){const{_parentSubscriber:z}=this,{useDeprecatedSynchronousErrorHandling:Z}=H.v;if(this._error)Z&&z.syncErrorThrowable?(this.__tryOrSetError(z,this._error,$),this.unsubscribe()):(this.__tryOrUnsub(this._error,$),this.unsubscribe());else if(z.syncErrorThrowable)Z?(z.syncErrorValue=$,z.syncErrorThrown=!0):(0,k.z)($),this.unsubscribe();else{if(this.unsubscribe(),Z)throw $;(0,k.z)($)}}}complete(){if(!this.isStopped){const{_parentSubscriber:$}=this;if(this._complete){const z=()=>this._complete.call(this._context);H.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?(this.__tryOrSetError($,z),this.unsubscribe()):(this.__tryOrUnsub(z),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub($,z){try{$.call(this._context,z)}catch(Z){if(this.unsubscribe(),H.v.useDeprecatedSynchronousErrorHandling)throw Z;(0,k.z)(Z)}}__tryOrSetError($,z,Z){if(!H.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{z.call(this._context,Z)}catch(ue){return H.v.useDeprecatedSynchronousErrorHandling?($.syncErrorValue=ue,$.syncErrorThrown=!0,!0):((0,k.z)(ue),!0)}return!1}_unsubscribe(){const{_parentSubscriber:$}=this;this._context=null,this._parentSubscriber=null,$.unsubscribe()}}},2654:(We,ce,M)=>{M.d(ce,{w:()=>k});var p=M(6688),m=M(7830),ne=M(7043);const H=(()=>{function J(ie){return Error.call(this),this.message=ie?`${ie.length} errors occurred during unsubscription:\n${ie.map(($,z)=>`${z+1}) ${$.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ie,this}return J.prototype=Object.create(Error.prototype),J})();class k{constructor(ie){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,ie&&(this._unsubscribe=ie)}unsubscribe(){let ie;if(this.closed)return;let{_parentOrParents:$,_unsubscribe:z,_subscriptions:Z}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,$ instanceof k)$.remove(this);else if(null!==$)for(let ue=0;ue<$.length;++ue)$[ue].remove(this);if((0,ne.m)(z))try{z.call(this)}catch(ue){ie=ue instanceof H?X(ue.errors):[ue]}if((0,p.k)(Z)){let ue=-1,Me=Z.length;for(;++ue<Me;){const fe=Z[ue];if((0,m.K)(fe))try{fe.unsubscribe()}catch(we){ie=ie||[],we instanceof H?ie=ie.concat(X(we.errors)):ie.push(we)}}}if(ie)throw new H(ie)}add(ie){let $=ie;if(!ie)return k.EMPTY;switch(typeof ie){case"function":$=new k(ie);case"object":if($===this||$.closed||"function"!=typeof $.unsubscribe)return $;if(this.closed)return $.unsubscribe(),$;if(!($ instanceof k)){const ue=$;$=new k,$._subscriptions=[ue]}break;default:throw new Error("unrecognized teardown "+ie+" added to Subscription.")}let{_parentOrParents:z}=$;if(null===z)$._parentOrParents=this;else if(z instanceof k){if(z===this)return $;$._parentOrParents=[z,this]}else{if(-1!==z.indexOf(this))return $;z.push(this)}const Z=this._subscriptions;return null===Z?this._subscriptions=[$]:Z.push($),$}remove(ie){const $=this._subscriptions;if($){const z=$.indexOf(ie);-1!==z&&$.splice(z,1)}}}var J;function X(J){return J.reduce((ie,$)=>ie.concat($ instanceof H?$.errors:$),[])}k.EMPTY=((J=new k).closed=!0,J)},2830:(We,ce,M)=>{M.d(ce,{v:()=>m});let p=!1;const m={Promise:void 0,set useDeprecatedSynchronousErrorHandling(ne){if(ne){const le=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+le.stack)}else p&&console.log("RxJS: Back to a better error behavior. Thank you. <3");p=ne},get useDeprecatedSynchronousErrorHandling(){return p}}},1762:(We,ce,M)=>{M.d(ce,{c:()=>H,N:()=>k});var p=M(8929),m=M(2916),ne=M(2654),le=M(4327);class H extends m.y{constructor(z,Z){super(),this.source=z,this.subjectFactory=Z,this._refCount=0,this._isComplete=!1}_subscribe(z){return this.getSubject().subscribe(z)}getSubject(){const z=this._subject;return(!z||z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let z=this._connection;return z||(this._isComplete=!1,z=this._connection=new ne.w,z.add(this.source.subscribe(new X(this.getSubject(),this))),z.closed&&(this._connection=null,z=ne.w.EMPTY)),z}refCount(){return(0,le.x)()(this)}}const k=(()=>{const $=H.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:$._subscribe},_isComplete:{value:$._isComplete,writable:!0},getSubject:{value:$.getSubject},connect:{value:$.connect},refCount:{value:$.refCount}}})();class X extends p.Yc{constructor(z,Z){super(z),this.connectable=Z}_error(z){this._unsubscribe(),super._error(z)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const z=this.connectable;if(z){this.connectable=null;const Z=z._connection;z._refCount=0,z._subject=null,z._connection=null,Z&&Z.unsubscribe()}}}},6053:(We,ce,M)=>{M.d(ce,{aj:()=>X});var p=M(2866),m=M(6688),ne=M(826),le=M(9054),H=M(3009);const k={};function X(...$){let z=null,Z=null;return(0,p.K)($[$.length-1])&&(Z=$.pop()),"function"==typeof $[$.length-1]&&(z=$.pop()),1===$.length&&(0,m.k)($[0])&&($=$[0]),(0,H.n)($,Z).lift(new J(z))}class J{constructor(z){this.resultSelector=z}call(z,Z){return Z.subscribe(new ie(z,this.resultSelector))}}class ie extends ne.L{constructor(z,Z){super(z),this.resultSelector=Z,this.active=0,this.values=[],this.observables=[]}_next(z){this.values.push(k),this.observables.push(z)}_complete(){const z=this.observables,Z=z.length;if(0===Z)this.destination.complete();else{this.active=Z,this.toRespond=Z;for(let ue=0;ue<Z;ue++){const Me=z[ue];this.add((0,le.D)(this,Me,Me,ue))}}}notifyComplete(z){0==(this.active-=1)&&this.destination.complete()}notifyNext(z,Z,ue,Me,fe){const we=this.values,Ue=this.toRespond?we[ue]===k?--this.toRespond:this.toRespond:0;we[ue]=Z,0===Ue&&(this.resultSelector?this._tryResultSelector(we):this.destination.next(we.slice()))}_tryResultSelector(z){let Z;try{Z=this.resultSelector.apply(this,z)}catch(ue){return void this.destination.error(ue)}this.destination.next(Z)}}},1221:(We,ce,M)=>{M.d(ce,{z:()=>le});var p=M(1086),m=M(9146);function le(...H){return function ne(){return(0,m.J)(1)}()((0,p.of)(...H))}},8514:(We,ce,M)=>{M.d(ce,{P:()=>le});var p=M(2916),m=M(5254),ne=M(8896);function le(H){return new p.y(k=>{let X;try{X=H()}catch(ie){return void k.error(ie)}return(X?(0,m.D)(X):(0,ne.c)()).subscribe(k)})}},8896:(We,ce,M)=>{M.d(ce,{E:()=>m,c:()=>ne});var p=M(2916);const m=new p.y(H=>H.complete());function ne(H){return H?function le(H){return new p.y(k=>H.schedule(()=>k.complete()))}(H):m}},5254:(We,ce,M)=>{M.d(ce,{D:()=>fe});var p=M(2916),m=M(9249),ne=M(2654),le=M(3821),X=M(6454),J=M(5430),z=M(8955),Z=M(8515);function fe(we,Ee){return Ee?function Me(we,Ee){if(null!=we){if(function $(we){return we&&"function"==typeof we[le.L]}(we))return function H(we,Ee){return new p.y(Ue=>{const xe=new ne.w;return xe.add(Ee.schedule(()=>{const qe=we[le.L]();xe.add(qe.subscribe({next(ke){xe.add(Ee.schedule(()=>Ue.next(ke)))},error(ke){xe.add(Ee.schedule(()=>Ue.error(ke)))},complete(){xe.add(Ee.schedule(()=>Ue.complete()))}}))})),xe})}(we,Ee);if((0,z.t)(we))return function k(we,Ee){return new p.y(Ue=>{const xe=new ne.w;return xe.add(Ee.schedule(()=>we.then(qe=>{xe.add(Ee.schedule(()=>{Ue.next(qe),xe.add(Ee.schedule(()=>Ue.complete()))}))},qe=>{xe.add(Ee.schedule(()=>Ue.error(qe)))}))),xe})}(we,Ee);if((0,Z.z)(we))return(0,X.r)(we,Ee);if(function ue(we){return we&&"function"==typeof we[J.hZ]}(we)||"string"==typeof we)return function ie(we,Ee){if(!we)throw new Error("Iterable cannot be null");return new p.y(Ue=>{const xe=new ne.w;let qe;return xe.add(()=>{qe&&"function"==typeof qe.return&&qe.return()}),xe.add(Ee.schedule(()=>{qe=we[J.hZ](),xe.add(Ee.schedule(function(){if(Ue.closed)return;let ke,ye;try{const He=qe.next();ke=He.value,ye=He.done}catch(He){return void Ue.error(He)}ye?Ue.complete():(Ue.next(ke),this.schedule())}))})),xe})}(we,Ee)}throw new TypeError((null!==we&&typeof we||we)+" is not observable")}(we,Ee):we instanceof p.y?we:new p.y((0,m.s)(we))}},3009:(We,ce,M)=>{M.d(ce,{n:()=>le});var p=M(2916),m=M(3650),ne=M(6454);function le(H,k){return k?(0,ne.r)(H,k):new p.y((0,m.V)(H))}},6787:(We,ce,M)=>{M.d(ce,{T:()=>H});var p=M(2916),m=M(2866),ne=M(9146),le=M(3009);function H(...k){let X=Number.POSITIVE_INFINITY,J=null,ie=k[k.length-1];return(0,m.K)(ie)?(J=k.pop(),k.length>1&&"number"==typeof k[k.length-1]&&(X=k.pop())):"number"==typeof ie&&(X=k.pop()),null===J&&1===k.length&&k[0]instanceof p.y?k[0]:(0,ne.J)(X)((0,le.n)(k,J))}},1086:(We,ce,M)=>{M.d(ce,{of:()=>le});var p=M(2866),m=M(3009),ne=M(6454);function le(...H){let k=H[H.length-1];return(0,p.K)(k)?(H.pop(),(0,ne.r)(H,k)):(0,m.n)(H)}},1737:(We,ce,M)=>{M.d(ce,{_:()=>m});var p=M(2916);function m(le,H){return new p.y(H?k=>H.schedule(ne,0,{error:le,subscriber:k}):k=>k.error(le))}function ne({error:le,subscriber:H}){H.error(le)}},7739:(We,ce,M)=>{M.d(ce,{H:()=>k});var p=M(2916),m=M(353),ne=M(6688);function le(J){return!(0,ne.k)(J)&&J-parseFloat(J)+1>=0}var H=M(2866);function k(J=0,ie,$){let z=-1;return le(ie)?z=Number(ie)<1?1:Number(ie):(0,H.K)(ie)&&($=ie),(0,H.K)($)||($=m.P),new p.y(Z=>{const ue=le(J)?J:+J-$.now();return $.schedule(X,ue,{index:0,period:z,subscriber:Z})})}function X(J){const{index:ie,period:$,subscriber:z}=J;if(z.next(ie),!z.closed){if(-1===$)return z.complete();J.index=ie+1,this.schedule(J,$)}}},7221:(We,ce,M)=>{M.d(ce,{K:()=>le});var p=M(826),m=M(1869),ne=M(9054);function le(X){return function(ie){const $=new H(X),z=ie.lift($);return $.caught=z}}class H{constructor(J){this.selector=J}call(J,ie){return ie.subscribe(new k(J,this.selector,this.caught))}}class k extends p.L{constructor(J,ie,$){super(J),this.selector=ie,this.caught=$}error(J){if(!this.isStopped){let ie;try{ie=this.selector(J,this.caught)}catch(Z){return void super.error(Z)}this._unsubscribeAndRecycle();const $=new m.d(this,void 0,void 0);this.add($);const z=(0,ne.D)(this,ie,void 0,void 0,$);z!==$&&this.add(z)}}}},1406:(We,ce,M)=>{M.d(ce,{b:()=>m});var p=M(1709);function m(ne,le){return(0,p.zg)(ne,le,1)}},5778:(We,ce,M)=>{M.d(ce,{x:()=>m});var p=M(3489);function m(H,k){return X=>X.lift(new ne(H,k))}class ne{constructor(k,X){this.compare=k,this.keySelector=X}call(k,X){return X.subscribe(new le(k,this.compare,this.keySelector))}}class le extends p.L{constructor(k,X,J){super(k),this.keySelector=J,this.hasKey=!1,"function"==typeof X&&(this.compare=X)}compare(k,X){return k===X}_next(k){let X;try{const{keySelector:ie}=this;X=ie?ie(k):k}catch(ie){return this.destination.error(ie)}let J=!1;if(this.hasKey)try{const{compare:ie}=this;J=ie(this.key,X)}catch(ie){return this.destination.error(ie)}else this.hasKey=!0;J||(this.key=X,this.destination.next(k))}}},2198:(We,ce,M)=>{M.d(ce,{h:()=>m});var p=M(3489);function m(H,k){return function(J){return J.lift(new ne(H,k))}}class ne{constructor(k,X){this.predicate=k,this.thisArg=X}call(k,X){return X.subscribe(new le(k,this.predicate,this.thisArg))}}class le extends p.L{constructor(k,X,J){super(k),this.predicate=X,this.thisArg=J,this.count=0}_next(k){let X;try{X=this.predicate.call(this.thisArg,k,this.count++)}catch(J){return void this.destination.error(J)}X&&this.destination.next(k)}}},537:(We,ce,M)=>{M.d(ce,{x:()=>ne});var p=M(3489),m=M(2654);function ne(k){return X=>X.lift(new le(k))}class le{constructor(X){this.callback=X}call(X,J){return J.subscribe(new H(X,this.callback))}}class H extends p.L{constructor(X,J){super(X),this.add(new m.w(J))}}},4850:(We,ce,M)=>{M.d(ce,{U:()=>m});var p=M(3489);function m(H,k){return function(J){if("function"!=typeof H)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return J.lift(new ne(H,k))}}class ne{constructor(k,X){this.project=k,this.thisArg=X}call(k,X){return X.subscribe(new le(k,this.project,this.thisArg))}}class le extends p.L{constructor(k,X,J){super(k),this.project=X,this.count=0,this.thisArg=J||this}_next(k){let X;try{X=this.project.call(this.thisArg,k,this.count++)}catch(J){return void this.destination.error(J)}this.destination.next(X)}}},9146:(We,ce,M)=>{M.d(ce,{J:()=>ne});var p=M(1709),m=M(5379);function ne(le=Number.POSITIVE_INFINITY){return(0,p.zg)(m.y,le)}},1709:(We,ce,M)=>{M.d(ce,{zg:()=>k});var p=M(9054),m=M(826),ne=M(1869),le=M(4850),H=M(5254);function k(ie,$,z=Number.POSITIVE_INFINITY){return"function"==typeof $?Z=>Z.pipe(k((ue,Me)=>(0,H.D)(ie(ue,Me)).pipe((0,le.U)((fe,we)=>$(ue,fe,Me,we))),z)):("number"==typeof $&&(z=$),Z=>Z.lift(new X(ie,z)))}class X{constructor($,z=Number.POSITIVE_INFINITY){this.project=$,this.concurrent=z}call($,z){return z.subscribe(new J($,this.project,this.concurrent))}}class J extends m.L{constructor($,z,Z=Number.POSITIVE_INFINITY){super($),this.project=z,this.concurrent=Z,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next($){this.active<this.concurrent?this._tryNext($):this.buffer.push($)}_tryNext($){let z;const Z=this.index++;try{z=this.project($,Z)}catch(ue){return void this.destination.error(ue)}this.active++,this._innerSub(z,$,Z)}_innerSub($,z,Z){const ue=new ne.d(this,z,Z),Me=this.destination;Me.add(ue);const fe=(0,p.D)(this,$,void 0,void 0,ue);fe!==ue&&Me.add(fe)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext($,z,Z,ue,Me){this.destination.next(z)}notifyComplete($){const z=this.buffer;this.remove($),this.active--,z.length>0?this._next(z.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(We,ce,M)=>{M.d(ce,{x:()=>m});var p=M(3489);function m(){return function(k){return k.lift(new ne(k))}}class ne{constructor(k){this.connectable=k}call(k,X){const{connectable:J}=this;J._refCount++;const ie=new le(k,J),$=X.subscribe(ie);return ie.closed||(ie.connection=J.connect()),$}}class le extends p.L{constructor(k,X){super(k),this.connectable=X}_unsubscribe(){const{connectable:k}=this;if(!k)return void(this.connection=null);this.connectable=null;const X=k._refCount;if(X<=0)return void(this.connection=null);if(k._refCount=X-1,X>1)return void(this.connection=null);const{connection:J}=this,ie=k._connection;this.connection=null,ie&&(!J||ie===J)&&ie.unsubscribe()}}},2014:(We,ce,M)=>{M.d(ce,{R:()=>m});var p=M(3489);function m(H,k){let X=!1;return arguments.length>=2&&(X=!0),function(ie){return ie.lift(new ne(H,k,X))}}class ne{constructor(k,X,J=!1){this.accumulator=k,this.seed=X,this.hasSeed=J}call(k,X){return X.subscribe(new le(k,this.accumulator,this.seed,this.hasSeed))}}class le extends p.L{constructor(k,X,J,ie){super(k),this.accumulator=X,this._seed=J,this.hasSeed=ie,this.index=0}get seed(){return this._seed}set seed(k){this.hasSeed=!0,this._seed=k}_next(k){if(this.hasSeed)return this._tryNext(k);this.seed=k,this.destination.next(k)}_tryNext(k){const X=this.index++;let J;try{J=this.accumulator(this.seed,k,X)}catch(ie){this.destination.error(ie)}this.seed=J,this.destination.next(J)}}},2474:(We,ce,M)=>{M.d(ce,{B:()=>X});var p=M(1762);class ne{constructor(ie,$){this.subjectFactory=ie,this.selector=$}call(ie,$){const{selector:z}=this,Z=this.subjectFactory(),ue=z(Z).subscribe(ie);return ue.add($.subscribe(Z)),ue}}var le=M(4327),H=M(8929);function k(){return new H.xQ}function X(){return J=>(0,le.x)()(function m(J,ie){return function(z){let Z;if(Z="function"==typeof J?J:function(){return J},"function"==typeof ie)return z.lift(new ne(Z,ie));const ue=Object.create(z,p.N);return ue.source=z,ue.subjectFactory=Z,ue}}(k)(J))}},1059:(We,ce,M)=>{M.d(ce,{O:()=>ne});var p=M(1221),m=M(2866);function ne(...le){const H=le[le.length-1];return(0,m.K)(H)?(le.pop(),k=>(0,p.z)(le,k,H)):k=>(0,p.z)(le,k)}},7545:(We,ce,M)=>{M.d(ce,{w:()=>k});var p=M(826),m=M(1869),ne=M(9054),le=M(4850),H=M(5254);function k(ie,$){return"function"==typeof $?z=>z.pipe(k((Z,ue)=>(0,H.D)(ie(Z,ue)).pipe((0,le.U)((Me,fe)=>$(Z,Me,ue,fe))))):z=>z.lift(new X(ie))}class X{constructor($){this.project=$}call($,z){return z.subscribe(new J($,this.project))}}class J extends p.L{constructor($,z){super($),this.project=z,this.index=0}_next($){let z;const Z=this.index++;try{z=this.project($,Z)}catch(ue){return void this.destination.error(ue)}this._innerSub(z,$,Z)}_innerSub($,z,Z){const ue=this.innerSubscription;ue&&ue.unsubscribe();const Me=new m.d(this,z,Z),fe=this.destination;fe.add(Me),this.innerSubscription=(0,ne.D)(this,$,void 0,void 0,Me),this.innerSubscription!==Me&&fe.add(this.innerSubscription)}_complete(){const{innerSubscription:$}=this;(!$||$.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete($){this.destination.remove($),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext($,z,Z,ue,Me){this.destination.next(z)}}},2986:(We,ce,M)=>{M.d(ce,{q:()=>le});var p=M(3489),m=M(4231),ne=M(8896);function le(X){return J=>0===X?(0,ne.c)():J.lift(new H(X))}class H{constructor(J){if(this.total=J,this.total<0)throw new m.W}call(J,ie){return ie.subscribe(new k(J,this.total))}}class k extends p.L{constructor(J,ie){super(J),this.total=ie,this.count=0}_next(J){const ie=this.total,$=++this.count;$<=ie&&(this.destination.next(J),$===ie&&(this.destination.complete(),this.unsubscribe()))}}},2994:(We,ce,M)=>{M.d(ce,{b:()=>le});var p=M(3489),m=M(7876),ne=M(7043);function le(X,J,ie){return function(z){return z.lift(new H(X,J,ie))}}class H{constructor(J,ie,$){this.nextOrObserver=J,this.error=ie,this.complete=$}call(J,ie){return ie.subscribe(new k(J,this.nextOrObserver,this.error,this.complete))}}class k extends p.L{constructor(J,ie,$,z){super(J),this._tapNext=m.Z,this._tapError=m.Z,this._tapComplete=m.Z,this._tapError=$||m.Z,this._tapComplete=z||m.Z,(0,ne.m)(ie)?(this._context=this,this._tapNext=ie):ie&&(this._context=ie,this._tapNext=ie.next||m.Z,this._tapError=ie.error||m.Z,this._tapComplete=ie.complete||m.Z)}_next(J){try{this._tapNext.call(this._context,J)}catch(ie){return void this.destination.error(ie)}this.destination.next(J)}_error(J){try{this._tapError.call(this._context,J)}catch(ie){return void this.destination.error(ie)}this.destination.error(J)}_complete(){try{this._tapComplete.call(this._context)}catch(J){return void this.destination.error(J)}return this.destination.complete()}}},6454:(We,ce,M)=>{M.d(ce,{r:()=>ne});var p=M(2916),m=M(2654);function ne(le,H){return new p.y(k=>{const X=new m.w;let J=0;return X.add(H.schedule(function(){J!==le.length?(k.next(le[J++]),k.closed||X.add(this.schedule())):k.complete()})),X})}},6686:(We,ce,M)=>{M.d(ce,{o:()=>ne});var p=M(2654);class m extends p.w{constructor(H,k){super()}schedule(H,k=0){return this}}class ne extends m{constructor(H,k){super(H,k),this.scheduler=H,this.work=k,this.pending=!1}schedule(H,k=0){if(this.closed)return this;this.state=H;const X=this.id,J=this.scheduler;return null!=X&&(this.id=this.recycleAsyncId(J,X,k)),this.pending=!0,this.delay=k,this.id=this.id||this.requestAsyncId(J,this.id,k),this}requestAsyncId(H,k,X=0){return setInterval(H.flush.bind(H,this),X)}recycleAsyncId(H,k,X=0){if(null!==X&&this.delay===X&&!1===this.pending)return k;clearInterval(k)}execute(H,k){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const X=this._execute(H,k);if(X)return X;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(H,k){let J,X=!1;try{this.work(H)}catch(ie){X=!0,J=!!ie&&ie||new Error(ie)}if(X)return this.unsubscribe(),J}_unsubscribe(){const H=this.id,k=this.scheduler,X=k.actions,J=X.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==J&&X.splice(J,1),null!=H&&(this.id=this.recycleAsyncId(k,H,null)),this.delay=null}}},2268:(We,ce,M)=>{M.d(ce,{v:()=>m});let p=(()=>{class ne{constructor(H,k=ne.now){this.SchedulerAction=H,this.now=k}schedule(H,k=0,X){return new this.SchedulerAction(this,H).schedule(X,k)}}return ne.now=()=>Date.now(),ne})();class m extends p{constructor(le,H=p.now){super(le,()=>m.delegate&&m.delegate!==this?m.delegate.now():H()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(le,H=0,k){return m.delegate&&m.delegate!==this?m.delegate.schedule(le,H,k):super.schedule(le,H,k)}flush(le){const{actions:H}=this;if(this.active)return void H.push(le);let k;this.active=!0;do{if(k=le.execute(le.state,le.delay))break}while(le=H.shift());if(this.active=!1,k){for(;le=H.shift();)le.unsubscribe();throw k}}}},353:(We,ce,M)=>{M.d(ce,{P:()=>ne});var p=M(6686);const ne=new(M(2268).v)(p.o)},5430:(We,ce,M)=>{M.d(ce,{hZ:()=>m});const m=function p(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(We,ce,M)=>{M.d(ce,{L:()=>p});const p="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(We,ce,M)=>{M.d(ce,{b:()=>p});const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(We,ce,M)=>{M.d(ce,{W:()=>m});const m=(()=>{function ne(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ne.prototype=Object.create(Error.prototype),ne})()},5279:(We,ce,M)=>{M.d(ce,{N:()=>m});const m=(()=>{function ne(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ne.prototype=Object.create(Error.prototype),ne})()},2782:(We,ce,M)=>{function p(m){setTimeout(()=>{throw m},0)}M.d(ce,{z:()=>p})},5379:(We,ce,M)=>{function p(m){return m}M.d(ce,{y:()=>p})},6688:(We,ce,M)=>{M.d(ce,{k:()=>p});const p=Array.isArray||(m=>m&&"number"==typeof m.length)},8515:(We,ce,M)=>{M.d(ce,{z:()=>p});const p=m=>m&&"number"==typeof m.length&&"function"!=typeof m},2697:(We,ce,M)=>{function p(m){return m instanceof Date&&!isNaN(+m)}M.d(ce,{J:()=>p})},7043:(We,ce,M)=>{function p(m){return"function"==typeof m}M.d(ce,{m:()=>p})},7830:(We,ce,M)=>{function p(m){return null!==m&&"object"==typeof m}M.d(ce,{K:()=>p})},8955:(We,ce,M)=>{function p(m){return!!m&&"function"!=typeof m.subscribe&&"function"==typeof m.then}M.d(ce,{t:()=>p})},2866:(We,ce,M)=>{function p(m){return m&&"function"==typeof m.schedule}M.d(ce,{K:()=>p})},7876:(We,ce,M)=>{function p(){}M.d(ce,{Z:()=>p})},9249:(We,ce,M)=>{M.d(ce,{s:()=>z});var p=M(3650),m=M(2782),le=M(5430),k=M(3821),J=M(8515),ie=M(8955),$=M(7830);const z=Z=>{if(Z&&"function"==typeof Z[k.L])return(Z=>ue=>{const Me=Z[k.L]();if("function"!=typeof Me.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Me.subscribe(ue)})(Z);if((0,J.z)(Z))return(0,p.V)(Z);if((0,ie.t)(Z))return(Z=>ue=>(Z.then(Me=>{ue.closed||(ue.next(Me),ue.complete())},Me=>ue.error(Me)).then(null,m.z),ue))(Z);if(Z&&"function"==typeof Z[le.hZ])return(Z=>ue=>{const Me=Z[le.hZ]();for(;;){const fe=Me.next();if(fe.done){ue.complete();break}if(ue.next(fe.value),ue.closed)break}return"function"==typeof Me.return&&ue.add(()=>{Me.return&&Me.return()}),ue})(Z);{const Me=`You provided ${(0,$.K)(Z)?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Me)}}},3650:(We,ce,M)=>{M.d(ce,{V:()=>p});const p=m=>ne=>{for(let le=0,H=m.length;le<H&&!ne.closed;le++)ne.next(m[le]);ne.complete()}},9054:(We,ce,M)=>{M.d(ce,{D:()=>le});var p=M(1869),m=M(9249),ne=M(2916);function le(H,k,X,J,ie=new p.d(H,X,J)){if(!ie.closed)return k instanceof ne.y?k.subscribe(ie):(0,m.s)(k)(ie)}},1777:(We,ce,M)=>{M.d(ce,{l3:()=>ne,_j:()=>p,LC:()=>m,ZN:()=>Ue,jt:()=>H,pV:()=>ue,F4:()=>$,IO:()=>fe,vP:()=>X,SB:()=>ie,oB:()=>J,eR:()=>z,X$:()=>le,ZE:()=>xe,k1:()=>qe});class p{}class m{}const ne="*";function le(ke,ye){return{type:7,name:ke,definitions:ye,options:{}}}function H(ke,ye=null){return{type:4,styles:ye,timings:ke}}function X(ke,ye=null){return{type:2,steps:ke,options:ye}}function J(ke){return{type:6,styles:ke,offset:null}}function ie(ke,ye,He){return{type:0,name:ke,styles:ye,options:He}}function $(ke){return{type:5,steps:ke}}function z(ke,ye,He=null){return{type:1,expr:ke,animation:ye,options:He}}function ue(ke=null){return{type:9,options:ke}}function fe(ke,ye,He=null){return{type:11,selector:ke,animation:ye,options:He}}function Ee(ke){Promise.resolve(null).then(ke)}class Ue{constructor(ye=0,He=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ye+He}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ye=>ye()),this._onDoneFns=[])}onStart(ye){this._onStartFns.push(ye)}onDone(ye){this._onDoneFns.push(ye)}onDestroy(ye){this._onDestroyFns.push(ye)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ee(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ye=>ye()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ye=>ye()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ye){this._position=this.totalTime?ye*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ye){const He="start"==ye?this._onStartFns:this._onDoneFns;He.forEach(jt=>jt()),He.length=0}}class xe{constructor(ye){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ye;let He=0,jt=0,Wt=0;const Mt=this.players.length;0==Mt?Ee(()=>this._onFinish()):this.players.forEach(lt=>{lt.onDone(()=>{++He==Mt&&this._onFinish()}),lt.onDestroy(()=>{++jt==Mt&&this._onDestroy()}),lt.onStart(()=>{++Wt==Mt&&this._onStart()})}),this.totalTime=this.players.reduce((lt,At)=>Math.max(lt,At.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ye=>ye()),this._onDoneFns=[])}init(){this.players.forEach(ye=>ye.init())}onStart(ye){this._onStartFns.push(ye)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ye=>ye()),this._onStartFns=[])}onDone(ye){this._onDoneFns.push(ye)}onDestroy(ye){this._onDestroyFns.push(ye)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ye=>ye.play())}pause(){this.players.forEach(ye=>ye.pause())}restart(){this.players.forEach(ye=>ye.restart())}finish(){this._onFinish(),this.players.forEach(ye=>ye.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ye=>ye.destroy()),this._onDestroyFns.forEach(ye=>ye()),this._onDestroyFns=[])}reset(){this.players.forEach(ye=>ye.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ye){const He=ye*this.totalTime;this.players.forEach(jt=>{const Wt=jt.totalTime?Math.min(1,He/jt.totalTime):1;jt.setPosition(Wt)})}getPosition(){const ye=this.players.reduce((He,jt)=>null===He||jt.totalTime>He.totalTime?jt:He,null);return null!=ye?ye.getPosition():0}beforeDestroy(){this.players.forEach(ye=>{ye.beforeDestroy&&ye.beforeDestroy()})}triggerCallback(ye){const He="start"==ye?this._onStartFns:this._onDoneFns;He.forEach(jt=>jt()),He.length=0}}const qe="!"},9808:(We,ce,M)=>{M.d(ce,{mr:()=>xe,Ov:()=>Cs,ez:()=>Hs,K0:()=>X,uU:()=>as,JJ:()=>ii,Do:()=>ke,Ts:()=>ls,V_:()=>$,Ye:()=>ye,S$:()=>Ee,mk:()=>ir,$G:()=>Hn,sg:()=>yn,O5:()=>Ut,RF:()=>Mn,n9:()=>An,ED:()=>Cr,tP:()=>Ls,b0:()=>qe,lw:()=>J,EM:()=>$s,JF:()=>rn,NF:()=>$n,w_:()=>k,bD:()=>As,q:()=>ne,Mx:()=>hr,HT:()=>H});var p=M(5e3);let m=null;function ne(){return m}function H(_){m||(m=_)}class k{}const X=new p.OlP("DocumentToken");let J=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=p.Yz7({token:_,factory:function(){return function ie(){return(0,p.LFG)(z)}()},providedIn:"platform"}),_})();const $=new p.OlP("Location Initialized");let z=(()=>{class _ extends J{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ne().getBaseHref(this._doc)}onPopState(v){const O=ne().getGlobalEventTarget(this._doc,"window");return O.addEventListener("popstate",v,!1),()=>O.removeEventListener("popstate",v)}onHashChange(v){const O=ne().getGlobalEventTarget(this._doc,"window");return O.addEventListener("hashchange",v,!1),()=>O.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,O,Q){Z()?this._history.pushState(v,O,Q):this.location.hash=Q}replaceState(v,O,Q){Z()?this._history.replaceState(v,O,Q):this.location.hash=Q}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return _.\u0275fac=function(v){return new(v||_)(p.LFG(X))},_.\u0275prov=p.Yz7({token:_,factory:function(){return function ue(){return new z((0,p.LFG)(X))}()},providedIn:"platform"}),_})();function Z(){return!!window.history.pushState}function Me(_,S){if(0==_.length)return S;if(0==S.length)return _;let v=0;return _.endsWith("/")&&v++,S.startsWith("/")&&v++,2==v?_+S.substring(1):1==v?_+S:_+"/"+S}function fe(_){const S=_.match(/#|\?|$/),v=S&&S.index||_.length;return _.slice(0,v-("/"===_[v-1]?1:0))+_.slice(v)}function we(_){return _&&"?"!==_[0]?"?"+_:_}let Ee=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=p.Yz7({token:_,factory:function(){return function Ue(_){const S=(0,p.LFG)(X).location;return new qe((0,p.LFG)(J),S&&S.origin||"")}()},providedIn:"root"}),_})();const xe=new p.OlP("appBaseHref");let qe=(()=>{class _ extends Ee{constructor(v,O){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==O&&(O=this._platformLocation.getBaseHrefFromDOM()),null==O)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=O}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 Me(this._baseHref,v)}path(v=!1){const O=this._platformLocation.pathname+we(this._platformLocation.search),Q=this._platformLocation.hash;return Q&&v?`${O}${Q}`:O}pushState(v,O,Q,de){const _e=this.prepareExternalUrl(Q+we(de));this._platformLocation.pushState(v,O,_e)}replaceState(v,O,Q,de){const _e=this.prepareExternalUrl(Q+we(de));this._platformLocation.replaceState(v,O,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var O,Q;null===(Q=(O=this._platformLocation).historyGo)||void 0===Q||Q.call(O,v)}}return _.\u0275fac=function(v){return new(v||_)(p.LFG(J),p.LFG(xe,8))},_.\u0275prov=p.Yz7({token:_,factory:_.\u0275fac}),_})(),ke=(()=>{class _ extends Ee{constructor(v,O){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=O&&(this._baseHref=O)}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 O=this._platformLocation.hash;return null==O&&(O="#"),O.length>0?O.substring(1):O}prepareExternalUrl(v){const O=Me(this._baseHref,v);return O.length>0?"#"+O:O}pushState(v,O,Q,de){let _e=this.prepareExternalUrl(Q+we(de));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.pushState(v,O,_e)}replaceState(v,O,Q,de){let _e=this.prepareExternalUrl(Q+we(de));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.replaceState(v,O,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var O,Q;null===(Q=(O=this._platformLocation).historyGo)||void 0===Q||Q.call(O,v)}}return _.\u0275fac=function(v){return new(v||_)(p.LFG(J),p.LFG(xe,8))},_.\u0275prov=p.Yz7({token:_,factory:_.\u0275fac}),_})(),ye=(()=>{class _{constructor(v,O){this._subject=new p.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const Q=this._platformStrategy.getBaseHref();this._platformLocation=O,this._baseHref=fe(Wt(Q)),this._platformStrategy.onPopState(de=>{this._subject.emit({url:this.path(!0),pop:!0,state:de.state,type:de.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,O=""){return this.path()==this.normalize(v+we(O))}normalize(v){return _.stripTrailingSlash(function jt(_,S){return _&&S.startsWith(_)?S.substring(_.length):S}(this._baseHref,Wt(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,O="",Q=null){this._platformStrategy.pushState(Q,"",v,O),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+we(O)),Q)}replaceState(v,O="",Q=null){this._platformStrategy.replaceState(Q,"",v,O),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+we(O)),Q)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var O,Q;null===(Q=(O=this._platformStrategy).historyGo)||void 0===Q||Q.call(O,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(O=>{this._notifyUrlChangeListeners(O.url,O.state)}))}_notifyUrlChangeListeners(v="",O){this._urlChangeListeners.forEach(Q=>Q(v,O))}subscribe(v,O,Q){return this._subject.subscribe({next:v,error:O,complete:Q})}}return _.normalizeQueryParams=we,_.joinWithSlash=Me,_.stripTrailingSlash=fe,_.\u0275fac=function(v){return new(v||_)(p.LFG(Ee),p.LFG(J))},_.\u0275prov=p.Yz7({token:_,factory:function(){return function He(){return new ye((0,p.LFG)(Ee),(0,p.LFG)(J))}()},providedIn:"root"}),_})();function Wt(_){return _.replace(/\/index.html$/,"")}var lt=(()=>((lt=lt||{})[lt.Decimal=0]="Decimal",lt[lt.Percent=1]="Percent",lt[lt.Currency=2]="Currency",lt[lt.Scientific=3]="Scientific",lt))(),At=(()=>((At=At||{})[At.Zero=0]="Zero",At[At.One=1]="One",At[At.Two=2]="Two",At[At.Few=3]="Few",At[At.Many=4]="Many",At[At.Other=5]="Other",At))(),nt=(()=>((nt=nt||{})[nt.Format=0]="Format",nt[nt.Standalone=1]="Standalone",nt))(),rt=(()=>((rt=rt||{})[rt.Narrow=0]="Narrow",rt[rt.Abbreviated=1]="Abbreviated",rt[rt.Wide=2]="Wide",rt[rt.Short=3]="Short",rt))(),Be=(()=>((Be=Be||{})[Be.Short=0]="Short",Be[Be.Medium=1]="Medium",Be[Be.Long=2]="Long",Be[Be.Full=3]="Full",Be))(),Fe=(()=>((Fe=Fe||{})[Fe.Decimal=0]="Decimal",Fe[Fe.Group=1]="Group",Fe[Fe.List=2]="List",Fe[Fe.PercentSign=3]="PercentSign",Fe[Fe.PlusSign=4]="PlusSign",Fe[Fe.MinusSign=5]="MinusSign",Fe[Fe.Exponential=6]="Exponential",Fe[Fe.SuperscriptingExponent=7]="SuperscriptingExponent",Fe[Fe.PerMille=8]="PerMille",Fe[Fe.Infinity=9]="Infinity",Fe[Fe.NaN=10]="NaN",Fe[Fe.TimeSeparator=11]="TimeSeparator",Fe[Fe.CurrencyDecimal=12]="CurrencyDecimal",Fe[Fe.CurrencyGroup=13]="CurrencyGroup",Fe))();function B(_,S){return Nt((0,p.cg1)(_)[p.wAp.DateFormat],S)}function N(_,S){return Nt((0,p.cg1)(_)[p.wAp.TimeFormat],S)}function R(_,S){return Nt((0,p.cg1)(_)[p.wAp.DateTimeFormat],S)}function G(_,S){const v=(0,p.cg1)(_),O=v[p.wAp.NumberSymbols][S];if(void 0===O){if(S===Fe.CurrencyDecimal)return v[p.wAp.NumberSymbols][Fe.Decimal];if(S===Fe.CurrencyGroup)return v[p.wAp.NumberSymbols][Fe.Group]}return O}const Se=p.kL8;function st(_){if(!_[p.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${_[p.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Nt(_,S){for(let v=S;v>-1;v--)if(void 0!==_[v])return _[v];throw new Error("Locale data API: locale data undefined")}function fn(_){const[S,v]=_.split(":");return{hours:+S,minutes:+v}}const j=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Te={},De=/((?:[^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 Re=(()=>((Re=Re||{})[Re.Short=0]="Short",Re[Re.ShortGMT=1]="ShortGMT",Re[Re.Long=2]="Long",Re[Re.Extended=3]="Extended",Re))(),Pe=(()=>((Pe=Pe||{})[Pe.FullYear=0]="FullYear",Pe[Pe.Month=1]="Month",Pe[Pe.Date=2]="Date",Pe[Pe.Hours=3]="Hours",Pe[Pe.Minutes=4]="Minutes",Pe[Pe.Seconds=5]="Seconds",Pe[Pe.FractionalSeconds=6]="FractionalSeconds",Pe[Pe.Day=7]="Day",Pe))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function ht(_,S,v,O){let Q=function q(_){if(P(_))return _;if("number"==typeof _&&!isNaN(_))return new Date(_);if("string"==typeof _){if(_=_.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(_)){const[Q,de=1,_e=1]=_.split("-").map(Ke=>+Ke);return on(Q,de-1,_e)}const v=parseFloat(_);if(!isNaN(_-v))return new Date(v);let O;if(O=_.match(j))return function b(_){const S=new Date(0);let v=0,O=0;const Q=_[8]?S.setUTCFullYear:S.setFullYear,de=_[8]?S.setUTCHours:S.setHours;_[9]&&(v=Number(_[9]+_[10]),O=Number(_[9]+_[11])),Q.call(S,Number(_[1]),Number(_[2])-1,Number(_[3]));const _e=Number(_[4]||0)-v,Ke=Number(_[5]||0)-O,$t=Number(_[6]||0),Ft=Math.floor(1e3*parseFloat("0."+(_[7]||0)));return de.call(S,_e,Ke,$t,Ft),S}(O)}const S=new Date(_);if(!P(S))throw new Error(`Unable to convert "${_}" into a date`);return S}(_);S=ot(v,S)||S;let Ke,_e=[];for(;S;){if(Ke=De.exec(S),!Ke){_e.push(S);break}{_e=_e.concat(Ke.slice(1));const Et=_e.pop();if(!Et)break;S=Et}}let $t=Q.getTimezoneOffset();O&&($t=bn(O,$t),Q=function oe(_,S,v){const O=v?-1:1,Q=_.getTimezoneOffset();return function yt(_,S){return(_=new Date(_.getTime())).setMinutes(_.getMinutes()+S),_}(_,O*(bn(S,Q)-Q))}(Q,O,!0));let Ft="";return _e.forEach(Et=>{const Rt=function rr(_){if(Kn[_])return Kn[_];let S;switch(_){case"G":case"GG":case"GGG":S=ft(Ge.Eras,rt.Abbreviated);break;case"GGGG":S=ft(Ge.Eras,rt.Wide);break;case"GGGGG":S=ft(Ge.Eras,rt.Narrow);break;case"y":S=Ve(Pe.FullYear,1,0,!1,!0);break;case"yy":S=Ve(Pe.FullYear,2,0,!0,!0);break;case"yyy":S=Ve(Pe.FullYear,3,0,!1,!0);break;case"yyyy":S=Ve(Pe.FullYear,4,0,!1,!0);break;case"Y":S=nr(1);break;case"YY":S=nr(2,!0);break;case"YYY":S=nr(3);break;case"YYYY":S=nr(4);break;case"M":case"L":S=Ve(Pe.Month,1,1);break;case"MM":case"LL":S=Ve(Pe.Month,2,1);break;case"MMM":S=ft(Ge.Months,rt.Abbreviated);break;case"MMMM":S=ft(Ge.Months,rt.Wide);break;case"MMMMM":S=ft(Ge.Months,rt.Narrow);break;case"LLL":S=ft(Ge.Months,rt.Abbreviated,nt.Standalone);break;case"LLLL":S=ft(Ge.Months,rt.Wide,nt.Standalone);break;case"LLLLL":S=ft(Ge.Months,rt.Narrow,nt.Standalone);break;case"w":S=Nr(1);break;case"ww":S=Nr(2);break;case"W":S=Nr(1,!0);break;case"d":S=Ve(Pe.Date,1);break;case"dd":S=Ve(Pe.Date,2);break;case"c":case"cc":S=Ve(Pe.Day,1);break;case"ccc":S=ft(Ge.Days,rt.Abbreviated,nt.Standalone);break;case"cccc":S=ft(Ge.Days,rt.Wide,nt.Standalone);break;case"ccccc":S=ft(Ge.Days,rt.Narrow,nt.Standalone);break;case"cccccc":S=ft(Ge.Days,rt.Short,nt.Standalone);break;case"E":case"EE":case"EEE":S=ft(Ge.Days,rt.Abbreviated);break;case"EEEE":S=ft(Ge.Days,rt.Wide);break;case"EEEEE":S=ft(Ge.Days,rt.Narrow);break;case"EEEEEE":S=ft(Ge.Days,rt.Short);break;case"a":case"aa":case"aaa":S=ft(Ge.DayPeriods,rt.Abbreviated);break;case"aaaa":S=ft(Ge.DayPeriods,rt.Wide);break;case"aaaaa":S=ft(Ge.DayPeriods,rt.Narrow);break;case"b":case"bb":case"bbb":S=ft(Ge.DayPeriods,rt.Abbreviated,nt.Standalone,!0);break;case"bbbb":S=ft(Ge.DayPeriods,rt.Wide,nt.Standalone,!0);break;case"bbbbb":S=ft(Ge.DayPeriods,rt.Narrow,nt.Standalone,!0);break;case"B":case"BB":case"BBB":S=ft(Ge.DayPeriods,rt.Abbreviated,nt.Format,!0);break;case"BBBB":S=ft(Ge.DayPeriods,rt.Wide,nt.Format,!0);break;case"BBBBB":S=ft(Ge.DayPeriods,rt.Narrow,nt.Format,!0);break;case"h":S=Ve(Pe.Hours,1,-12);break;case"hh":S=Ve(Pe.Hours,2,-12);break;case"H":S=Ve(Pe.Hours,1);break;case"HH":S=Ve(Pe.Hours,2);break;case"m":S=Ve(Pe.Minutes,1);break;case"mm":S=Ve(Pe.Minutes,2);break;case"s":S=Ve(Pe.Seconds,1);break;case"ss":S=Ve(Pe.Seconds,2);break;case"S":S=Ve(Pe.FractionalSeconds,1);break;case"SS":S=Ve(Pe.FractionalSeconds,2);break;case"SSS":S=Ve(Pe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":S=Fn(Re.Short);break;case"ZZZZZ":S=Fn(Re.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":S=Fn(Re.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":S=Fn(Re.Long);break;default:return null}return Kn[_]=S,S}(Et);Ft+=Rt?Rt(Q,v,$t):"''"===Et?"'":Et.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Ft}function on(_,S,v){const O=new Date(0);return O.setFullYear(_,S,v),O.setHours(0,0,0),O}function ot(_,S){const v=function zt(_){return(0,p.cg1)(_)[p.wAp.LocaleId]}(_);if(Te[v]=Te[v]||{},Te[v][S])return Te[v][S];let O="";switch(S){case"shortDate":O=B(_,Be.Short);break;case"mediumDate":O=B(_,Be.Medium);break;case"longDate":O=B(_,Be.Long);break;case"fullDate":O=B(_,Be.Full);break;case"shortTime":O=N(_,Be.Short);break;case"mediumTime":O=N(_,Be.Medium);break;case"longTime":O=N(_,Be.Long);break;case"fullTime":O=N(_,Be.Full);break;case"short":const Q=ot(_,"shortTime"),de=ot(_,"shortDate");O=En(R(_,Be.Short),[Q,de]);break;case"medium":const _e=ot(_,"mediumTime"),Ke=ot(_,"mediumDate");O=En(R(_,Be.Medium),[_e,Ke]);break;case"long":const $t=ot(_,"longTime"),Ft=ot(_,"longDate");O=En(R(_,Be.Long),[$t,Ft]);break;case"full":const Et=ot(_,"fullTime"),Rt=ot(_,"fullDate");O=En(R(_,Be.Full),[Et,Rt])}return O&&(Te[v][S]=O),O}function En(_,S){return S&&(_=_.replace(/\{([^}]+)}/g,function(v,O){return null!=S&&O in S?S[O]:v})),_}function nn(_,S,v="-",O,Q){let de="";(_<0||Q&&_<=0)&&(Q?_=1-_:(_=-_,de=v));let _e=String(_);for(;_e.length<S;)_e="0"+_e;return O&&(_e=_e.substr(_e.length-S)),de+_e}function Ve(_,S,v=0,O=!1,Q=!1){return function(de,_e){let Ke=function Lt(_,S){switch(_){case Pe.FullYear:return S.getFullYear();case Pe.Month:return S.getMonth();case Pe.Date:return S.getDate();case Pe.Hours:return S.getHours();case Pe.Minutes:return S.getMinutes();case Pe.Seconds:return S.getSeconds();case Pe.FractionalSeconds:return S.getMilliseconds();case Pe.Day:return S.getDay();default:throw new Error(`Unknown DateType value "${_}".`)}}(_,de);if((v>0||Ke>-v)&&(Ke+=v),_===Pe.Hours)0===Ke&&-12===v&&(Ke=12);else if(_===Pe.FractionalSeconds)return function mt(_,S){return nn(_,3).substr(0,S)}(Ke,S);const $t=G(_e,Fe.MinusSign);return nn(Ke,S,$t,O,Q)}}function ft(_,S,v=nt.Format,O=!1){return function(Q,de){return function Ct(_,S,v,O,Q,de){switch(v){case Ge.Months:return function ze(_,S,v){const O=(0,p.cg1)(_),de=Nt([O[p.wAp.MonthsFormat],O[p.wAp.MonthsStandalone]],S);return Nt(de,v)}(S,Q,O)[_.getMonth()];case Ge.Days:return function bt(_,S,v){const O=(0,p.cg1)(_),de=Nt([O[p.wAp.DaysFormat],O[p.wAp.DaysStandalone]],S);return Nt(de,v)}(S,Q,O)[_.getDay()];case Ge.DayPeriods:const _e=_.getHours(),Ke=_.getMinutes();if(de){const Ft=function Kt(_){const S=(0,p.cg1)(_);return st(S),(S[p.wAp.ExtraData][2]||[]).map(O=>"string"==typeof O?fn(O):[fn(O[0]),fn(O[1])])}(S),Et=function Ne(_,S,v){const O=(0,p.cg1)(_);st(O);const de=Nt([O[p.wAp.ExtraData][0],O[p.wAp.ExtraData][1]],S)||[];return Nt(de,v)||[]}(S,Q,O),Rt=Ft.findIndex(cn=>{if(Array.isArray(cn)){const[Zt,an]=cn,Br=_e>=Zt.hours&&Ke>=Zt.minutes,ar=_e<an.hours||_e===an.hours&&Ke<an.minutes;if(Zt.hours<an.hours){if(Br&&ar)return!0}else if(Br||ar)return!0}else if(cn.hours===_e&&cn.minutes===Ke)return!0;return!1});if(-1!==Rt)return Et[Rt]}return function Ot(_,S,v){const O=(0,p.cg1)(_),de=Nt([O[p.wAp.DayPeriodsFormat],O[p.wAp.DayPeriodsStandalone]],S);return Nt(de,v)}(S,Q,O)[_e<12?0:1];case Ge.Eras:return function en(_,S){return Nt((0,p.cg1)(_)[p.wAp.Eras],S)}(S,O)[_.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${v}`)}}(Q,de,_,S,v,O)}}function Fn(_){return function(S,v,O){const Q=-1*O,de=G(v,Fe.MinusSign),_e=Q>0?Math.floor(Q/60):Math.ceil(Q/60);switch(_){case Re.Short:return(Q>=0?"+":"")+nn(_e,2,de)+nn(Math.abs(Q%60),2,de);case Re.ShortGMT:return"GMT"+(Q>=0?"+":"")+nn(_e,1,de);case Re.Long:return"GMT"+(Q>=0?"+":"")+nn(_e,2,de)+":"+nn(Math.abs(Q%60),2,de);case Re.Extended:return 0===O?"Z":(Q>=0?"+":"")+nn(_e,2,de)+":"+nn(Math.abs(Q%60),2,de);default:throw new Error(`Unknown zone width "${_}"`)}}}function Gn(_){return on(_.getFullYear(),_.getMonth(),_.getDate()+(4-_.getDay()))}function Nr(_,S=!1){return function(v,O){let Q;if(S){const de=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,_e=v.getDate();Q=1+Math.floor((_e+de)/7)}else{const de=Gn(v),_e=function Dr(_){const S=on(_,0,1).getDay();return on(_,0,1+(S<=4?4:11)-S)}(de.getFullYear()),Ke=de.getTime()-_e.getTime();Q=1+Math.round(Ke/6048e5)}return nn(Q,_,G(O,Fe.MinusSign))}}function nr(_,S=!1){return function(v,O){return nn(Gn(v).getFullYear(),_,G(O,Fe.MinusSign),S)}}const Kn={};function bn(_,S){_=_.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+_)/6e4;return isNaN(v)?S:v}function P(_){return _ instanceof Date&&!isNaN(_.valueOf())}const A=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Qn(_){const S=parseInt(_);if(isNaN(S))throw new Error("Invalid integer literal when parsing "+_);return S}class Qt{}let br=(()=>{class _ extends Qt{constructor(v){super(),this.locale=v}getPluralCategory(v,O){switch(Se(O||this.locale)(v)){case At.Zero:return"zero";case At.One:return"one";case At.Two:return"two";case At.Few:return"few";case At.Many:return"many";default:return"other"}}}return _.\u0275fac=function(v){return new(v||_)(p.LFG(p.soG))},_.\u0275prov=p.Yz7({token:_,factory:_.\u0275fac}),_})();function hr(_,S){S=encodeURIComponent(S);for(const v of _.split(";")){const O=v.indexOf("="),[Q,de]=-1==O?[v,""]:[v.slice(0,O),v.slice(O+1)];if(Q.trim()===S)return decodeURIComponent(de)}return null}let ir=(()=>{class _{constructor(v,O,Q,de){this._iterableDiffers=v,this._keyValueDiffers=O,this._ngEl=Q,this._renderer=de,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,p.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(O=>this._toggleClass(O.key,O.currentValue)),v.forEachChangedItem(O=>this._toggleClass(O.key,O.currentValue)),v.forEachRemovedItem(O=>{O.previousValue&&this._toggleClass(O.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(O=>{if("string"!=typeof O.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,p.AaK)(O.item)}`);this._toggleClass(O.item,!0)}),v.forEachRemovedItem(O=>this._toggleClass(O.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(O=>this._toggleClass(O,!0)):Object.keys(v).forEach(O=>this._toggleClass(O,!!v[O])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(O=>this._toggleClass(O,!1)):Object.keys(v).forEach(O=>this._toggleClass(O,!1)))}_toggleClass(v,O){(v=v.trim())&&v.split(/\s+/g).forEach(Q=>{O?this._renderer.addClass(this._ngEl.nativeElement,Q):this._renderer.removeClass(this._ngEl.nativeElement,Q)})}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.ZZ4),p.Y36(p.aQg),p.Y36(p.SBq),p.Y36(p.Qsj))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),_})(),Hn=(()=>{class _{constructor(v){this._viewContainerRef=v,this._componentRef=null,this._moduleRef=null}ngOnChanges(v){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const O=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(v.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const _e=O.get(p.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(_e.injector)}else this._moduleRef=null;const de=(this._moduleRef?this._moduleRef.componentFactoryResolver:O.get(p._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(de,this._viewContainerRef.length,O,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.s_b))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[p.TTD]}),_})();class Wn{constructor(S,v,O,Q){this.$implicit=S,this.ngForOf=v,this.index=O,this.count=Q}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 yn=(()=>{class _{constructor(v,O,Q){this._viewContainer=v,this._template=O,this._differs=Q,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;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const O=this._viewContainer;v.forEachOperation((Q,de,_e)=>{if(null==Q.previousIndex)O.createEmbeddedView(this._template,new Wn(Q.item,this._ngForOf,-1,-1),null===_e?void 0:_e);else if(null==_e)O.remove(null===de?void 0:de);else if(null!==de){const Ke=O.get(de);O.move(Ke,_e),pr(Ke,Q)}});for(let Q=0,de=O.length;Q<de;Q++){const Ke=O.get(Q).context;Ke.index=Q,Ke.count=de,Ke.ngForOf=this._ngForOf}v.forEachIdentityChange(Q=>{pr(O.get(Q.currentIndex),Q)})}static ngTemplateContextGuard(v,O){return!0}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.s_b),p.Y36(p.Rgc),p.Y36(p.ZZ4))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),_})();function pr(_,S){_.context.$implicit=S.item}let Ut=(()=>{class _{constructor(v,O){this._viewContainer=v,this._context=new Ht,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=O}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){kr("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){kr("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,O){return!0}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.s_b),p.Y36(p.Rgc))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_})();class Ht{constructor(){this.$implicit=null,this.ngIf=null}}function kr(_,S){if(S&&!S.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,p.AaK)(S)}'.`)}class gr{constructor(S,v){this._viewContainerRef=S,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(S){S&&!this._created?this.create():!S&&this._created&&this.destroy()}}let Mn=(()=>{class _{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 O=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||O,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),O}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let O=0;O<this._defaultViews.length;O++)this._defaultViews[O].enforceState(v)}}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275dir=p.lG2({type:_,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),_})(),An=(()=>{class _{constructor(v,O,Q){this.ngSwitch=Q,Q._addCase(),this._view=new gr(v,O)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.s_b),p.Y36(p.Rgc),p.Y36(Mn,9))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_})(),Cr=(()=>{class _{constructor(v,O,Q){Q._addDefault(new gr(v,O))}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.s_b),p.Y36(p.Rgc),p.Y36(Mn,9))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngSwitchDefault",""]]}),_})(),Ls=(()=>{class _{constructor(v){this._viewContainerRef=v,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(v){if(v.ngTemplateOutlet){const O=this._viewContainerRef;this._viewRef&&O.remove(O.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?O.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&v.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.s_b))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[p.TTD]}),_})();function Vn(_,S){return new p.vHH(2100,"")}class Pn{createSubscription(S,v){return S.subscribe({next:v,error:O=>{throw O}})}dispose(S){S.unsubscribe()}onDestroy(S){S.unsubscribe()}}class or{createSubscription(S,v){return S.then(v,O=>{throw O})}dispose(S){}onDestroy(S){}}const Bs=new or,ni=new Pn;let Cs=(()=>{class _{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,O=>this._updateLatestValue(v,O))}_selectStrategy(v){if((0,p.QGY)(v))return Bs;if((0,p.F4k)(v))return ni;throw Vn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(v,O){v===this._obj&&(this._latestValue=O,this._ref.markForCheck())}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.sBO,16))},_.\u0275pipe=p.Yjl({name:"async",type:_,pure:!1}),_})();const Ei=new p.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let as=(()=>{class _{constructor(v,O){this.locale=v,this.defaultTimezone=O}transform(v,O="mediumDate",Q,de){var _e;if(null==v||""===v||v!=v)return null;try{return ht(v,O,de||this.locale,null!==(_e=null!=Q?Q:this.defaultTimezone)&&void 0!==_e?_e:void 0)}catch(Ke){throw Vn()}}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.soG,16),p.Y36(Ei,24))},_.\u0275pipe=p.Yjl({name:"date",type:_,pure:!0}),_})(),ls=(()=>{class _{transform(v){return JSON.stringify(v,null,2)}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275pipe=p.Yjl({name:"json",type:_,pure:!1}),_})(),ii=(()=>{class _{constructor(v){this._locale=v}transform(v,O,Q){if(!function On(_){return!(null==_||""===_||_!=_)}(v))return null;Q=Q||this._locale;try{return function wt(_,S,v){return function Er(_,S,v,O,Q,de,_e=!1){let Ke="",$t=!1;if(isFinite(_)){let Ft=function Yn(_){let O,Q,de,_e,Ke,S=Math.abs(_)+"",v=0;for((Q=S.indexOf("."))>-1&&(S=S.replace(".","")),(de=S.search(/e/i))>0?(Q<0&&(Q=de),Q+=+S.slice(de+1),S=S.substring(0,de)):Q<0&&(Q=S.length),de=0;"0"===S.charAt(de);de++);if(de===(Ke=S.length))O=[0],Q=1;else{for(Ke--;"0"===S.charAt(Ke);)Ke--;for(Q-=de,O=[],_e=0;de<=Ke;de++,_e++)O[_e]=Number(S.charAt(de))}return Q>22&&(O=O.splice(0,21),v=Q-1,Q=1),{digits:O,exponent:v,integerLen:Q}}(_);_e&&(Ft=function kn(_){if(0===_.digits[0])return _;const S=_.digits.length-_.integerLen;return _.exponent?_.exponent+=2:(0===S?_.digits.push(0,0):1===S&&_.digits.push(0),_.integerLen+=2),_}(Ft));let Et=S.minInt,Rt=S.minFrac,cn=S.maxFrac;if(de){const jr=de.match(A);if(null===jr)throw new Error(`${de} is not a valid digit info`);const Zr=jr[1],Ps=jr[3],Os=jr[5];null!=Zr&&(Et=Qn(Zr)),null!=Ps&&(Rt=Qn(Ps)),null!=Os?cn=Qn(Os):null!=Ps&&Rt>cn&&(cn=Rt)}!function pn(_,S,v){if(S>v)throw new Error(`The minimum number of digits after fraction (${S}) is higher than the maximum (${v}).`);let O=_.digits,Q=O.length-_.integerLen;const de=Math.min(Math.max(S,Q),v);let _e=de+_.integerLen,Ke=O[_e];if(_e>0){O.splice(Math.max(_.integerLen,_e));for(let Rt=_e;Rt<O.length;Rt++)O[Rt]=0}else{Q=Math.max(0,Q),_.integerLen=1,O.length=Math.max(1,_e=de+1),O[0]=0;for(let Rt=1;Rt<_e;Rt++)O[Rt]=0}if(Ke>=5)if(_e-1<0){for(let Rt=0;Rt>_e;Rt--)O.unshift(0),_.integerLen++;O.unshift(1),_.integerLen++}else O[_e-1]++;for(;Q<Math.max(0,de);Q++)O.push(0);let $t=0!==de;const Ft=S+_.integerLen,Et=O.reduceRight(function(Rt,cn,Zt,an){return an[Zt]=(cn+=Rt)<10?cn:cn-10,$t&&(0===an[Zt]&&Zt>=Ft?an.pop():$t=!1),cn>=10?1:0},0);Et&&(O.unshift(Et),_.integerLen++)}(Ft,Rt,cn);let Zt=Ft.digits,an=Ft.integerLen;const Br=Ft.exponent;let ar=[];for($t=Zt.every(jr=>!jr);an<Et;an++)Zt.unshift(0);for(;an<0;an++)Zt.unshift(0);an>0?ar=Zt.splice(an,Zt.length):(ar=Zt,Zt=[0]);const ut=[];for(Zt.length>=S.lgSize&&ut.unshift(Zt.splice(-S.lgSize,Zt.length).join(""));Zt.length>S.gSize;)ut.unshift(Zt.splice(-S.gSize,Zt.length).join(""));Zt.length&&ut.unshift(Zt.join("")),Ke=ut.join(G(v,O)),ar.length&&(Ke+=G(v,Q)+ar.join("")),Br&&(Ke+=G(v,Fe.Exponential)+"+"+Br)}else Ke=G(v,Fe.Infinity);return Ke=_<0&&!$t?S.negPre+Ke+S.negSuf:S.posPre+Ke+S.posSuf,Ke}(_,function Gt(_,S="-"){const v={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},O=_.split(";"),Q=O[0],de=O[1],_e=-1!==Q.indexOf(".")?Q.split("."):[Q.substring(0,Q.lastIndexOf("0")+1),Q.substring(Q.lastIndexOf("0")+1)],Ke=_e[0],$t=_e[1]||"";v.posPre=Ke.substr(0,Ke.indexOf("#"));for(let Et=0;Et<$t.length;Et++){const Rt=$t.charAt(Et);"0"===Rt?v.minFrac=v.maxFrac=Et+1:"#"===Rt?v.maxFrac=Et+1:v.posSuf+=Rt}const Ft=Ke.split(",");if(v.gSize=Ft[1]?Ft[1].length:0,v.lgSize=Ft[2]||Ft[1]?(Ft[2]||Ft[1]).length:0,de){const Et=Q.length-v.posPre.length-v.posSuf.length,Rt=de.indexOf("#");v.negPre=de.substr(0,Rt).replace(/'/g,""),v.negSuf=de.substr(Rt+Et).replace(/'/g,"")}else v.negPre=S+v.posPre,v.negSuf=v.posSuf;return v}(function se(_,S){return(0,p.cg1)(_)[p.wAp.NumberFormats][S]}(S,lt.Decimal),G(S,Fe.MinusSign)),S,Fe.Group,Fe.Decimal,v)}(function Yr(_){if("string"==typeof _&&!isNaN(Number(_)-parseFloat(_)))return Number(_);if("number"!=typeof _)throw new Error(`${_} is not a number`);return _}(v),Q,O)}catch(de){throw Vn()}}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.soG,16))},_.\u0275pipe=p.Yjl({name:"number",type:_,pure:!0}),_})();let Hs=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=p.oAB({type:_}),_.\u0275inj=p.cJS({providers:[{provide:Qt,useClass:br}]}),_})();const As="browser";function $n(_){return _===As}let $s=(()=>{class _{}return _.\u0275prov=(0,p.Yz7)({token:_,providedIn:"root",factory:()=>new ds((0,p.LFG)(X),window)}),_})();class ds{constructor(S,v){this.document=S,this.window=v,this.offset=()=>[0,0]}setOffset(S){this.offset=Array.isArray(S)?()=>S:S}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(S){this.supportsScrolling()&&this.window.scrollTo(S[0],S[1])}scrollToAnchor(S){if(!this.supportsScrolling())return;const v=function Lr(_,S){const v=_.getElementById(S)||_.getElementsByName(S)[0];if(v)return v;if("function"==typeof _.createTreeWalker&&_.body&&(_.body.createShadowRoot||_.body.attachShadow)){const O=_.createTreeWalker(_.body,NodeFilter.SHOW_ELEMENT);let Q=O.currentNode;for(;Q;){const de=Q.shadowRoot;if(de){const _e=de.getElementById(S)||de.querySelector(`[name="${S}"]`);if(_e)return _e}Q=O.nextNode()}}return null}(this.document,S);v&&(this.scrollToElement(v),v.focus())}setHistoryScrollRestoration(S){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=S)}}scrollToElement(S){const v=S.getBoundingClientRect(),O=v.left+this.window.pageXOffset,Q=v.top+this.window.pageYOffset,de=this.offset();this.window.scrollTo(O-de[0],Q-de[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const S=li(this.window.history)||li(Object.getPrototypeOf(this.window.history));return!(!S||!S.writable&&!S.set)}catch(S){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(S){return!1}}}function li(_){return Object.getOwnPropertyDescriptor(_,"scrollRestoration")}class rn{}},520:(We,ce,M)=>{M.d(ce,{TP:()=>zt,eN:()=>Fe,JF:()=>Nt,WM:()=>$});var p=M(9808),m=M(5e3),ne=M(1086),le=M(2916),H=M(1406),k=M(2198),X=M(4850);class J{}class ie{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(j=>{const Te=j.indexOf(":");if(Te>0){const De=j.slice(0,Te),Re=De.toLowerCase(),Pe=j.slice(Te+1).trim();this.maybeSetNormalizedName(De,Re),this.headers.has(Re)?this.headers.get(Re).push(Pe):this.headers.set(Re,[Pe])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(j=>{let Te=Y[j];const De=j.toLowerCase();"string"==typeof Te&&(Te=[Te]),Te.length>0&&(this.headers.set(De,Te),this.maybeSetNormalizedName(j,De))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const j=this.headers.get(Y.toLowerCase());return j&&j.length>0?j[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,j){return this.clone({name:Y,value:j,op:"a"})}set(Y,j){return this.clone({name:Y,value:j,op:"s"})}delete(Y,j){return this.clone({name:Y,value:j,op:"d"})}maybeSetNormalizedName(Y,j){this.normalizedNames.has(j)||this.normalizedNames.set(j,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(j=>{this.headers.set(j,Y.headers.get(j)),this.normalizedNames.set(j,Y.normalizedNames.get(j))})}clone(Y){const j=new $;return j.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,j.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),j}applyUpdate(Y){const j=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let Te=Y.value;if("string"==typeof Te&&(Te=[Te]),0===Te.length)return;this.maybeSetNormalizedName(Y.name,j);const De=("a"===Y.op?this.headers.get(j):void 0)||[];De.push(...Te),this.headers.set(j,De);break;case"d":const Re=Y.value;if(Re){let Pe=this.headers.get(j);if(!Pe)return;Pe=Pe.filter(Ge=>-1===Re.indexOf(Ge)),0===Pe.length?(this.headers.delete(j),this.normalizedNames.delete(j)):this.headers.set(j,Pe)}else this.headers.delete(j),this.normalizedNames.delete(j)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(j=>Y(this.normalizedNames.get(j),this.headers.get(j)))}}class z{encodeKey(Y){return fe(Y)}encodeValue(Y){return fe(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const ue=/%(\d[a-f0-9])/gi,Me={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function fe(ve){return encodeURIComponent(ve).replace(ue,(Y,j)=>{var Te;return null!==(Te=Me[j])&&void 0!==Te?Te:Y})}function we(ve){return`${ve}`}class Ee{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new z,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Z(ve,Y){const j=new Map;return ve.length>0&&ve.replace(/^\?/,"").split("&").forEach(De=>{const Re=De.indexOf("="),[Pe,Ge]=-1==Re?[Y.decodeKey(De),""]:[Y.decodeKey(De.slice(0,Re)),Y.decodeValue(De.slice(Re+1))],ht=j.get(Pe)||[];ht.push(Ge),j.set(Pe,ht)}),j}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(j=>{const Te=Y.fromObject[j];this.map.set(j,Array.isArray(Te)?Te:[Te])})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const j=this.map.get(Y);return j?j[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,j){return this.clone({param:Y,value:j,op:"a"})}appendAll(Y){const j=[];return Object.keys(Y).forEach(Te=>{const De=Y[Te];Array.isArray(De)?De.forEach(Re=>{j.push({param:Te,value:Re,op:"a"})}):j.push({param:Te,value:De,op:"a"})}),this.clone(j)}set(Y,j){return this.clone({param:Y,value:j,op:"s"})}delete(Y,j){return this.clone({param:Y,value:j,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const j=this.encoder.encodeKey(Y);return this.map.get(Y).map(Te=>j+"="+this.encoder.encodeValue(Te)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const j=new Ee({encoder:this.encoder});return j.cloneFrom=this.cloneFrom||this,j.updates=(this.updates||[]).concat(Y),j}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const j=("a"===Y.op?this.map.get(Y.param):void 0)||[];j.push(we(Y.value)),this.map.set(Y.param,j);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let Te=this.map.get(Y.param)||[];const De=Te.indexOf(we(Y.value));-1!==De&&Te.splice(De,1),Te.length>0?this.map.set(Y.param,Te):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class xe{constructor(){this.map=new Map}set(Y,j){return this.map.set(Y,j),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function ke(ve){return"undefined"!=typeof ArrayBuffer&&ve instanceof ArrayBuffer}function ye(ve){return"undefined"!=typeof Blob&&ve instanceof Blob}function He(ve){return"undefined"!=typeof FormData&&ve instanceof FormData}class Wt{constructor(Y,j,Te,De){let Re;if(this.url=j,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function qe(ve){switch(ve){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==Te?Te:null,Re=De):Re=Te,Re&&(this.reportProgress=!!Re.reportProgress,this.withCredentials=!!Re.withCredentials,Re.responseType&&(this.responseType=Re.responseType),Re.headers&&(this.headers=Re.headers),Re.context&&(this.context=Re.context),Re.params&&(this.params=Re.params)),this.headers||(this.headers=new $),this.context||(this.context=new xe),this.params){const Pe=this.params.toString();if(0===Pe.length)this.urlWithParams=j;else{const Ge=j.indexOf("?");this.urlWithParams=j+(-1===Ge?"?":Ge<j.length-1?"&":"")+Pe}}else this.params=new Ee,this.urlWithParams=j}serializeBody(){return null===this.body?null:ke(this.body)||ye(this.body)||He(this.body)||function jt(ve){return"undefined"!=typeof URLSearchParams&&ve instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ee?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||He(this.body)?null:ye(this.body)?this.body.type||null:ke(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ee?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Y={}){var j;const Te=Y.method||this.method,De=Y.url||this.url,Re=Y.responseType||this.responseType,Pe=void 0!==Y.body?Y.body:this.body,Ge=void 0!==Y.withCredentials?Y.withCredentials:this.withCredentials,ht=void 0!==Y.reportProgress?Y.reportProgress:this.reportProgress;let on=Y.headers||this.headers,ot=Y.params||this.params;const En=null!==(j=Y.context)&&void 0!==j?j:this.context;return void 0!==Y.setHeaders&&(on=Object.keys(Y.setHeaders).reduce((nn,mt)=>nn.set(mt,Y.setHeaders[mt]),on)),Y.setParams&&(ot=Object.keys(Y.setParams).reduce((nn,mt)=>nn.set(mt,Y.setParams[mt]),ot)),new Wt(Te,De,Pe,{params:ot,headers:on,context:En,reportProgress:ht,responseType:Re,withCredentials:Ge})}}var Mt=(()=>((Mt=Mt||{})[Mt.Sent=0]="Sent",Mt[Mt.UploadProgress=1]="UploadProgress",Mt[Mt.ResponseHeader=2]="ResponseHeader",Mt[Mt.DownloadProgress=3]="DownloadProgress",Mt[Mt.Response=4]="Response",Mt[Mt.User=5]="User",Mt))();class lt{constructor(Y,j=200,Te="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:j,this.statusText=Y.statusText||Te,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class At extends lt{constructor(Y={}){super(Y),this.type=Mt.ResponseHeader}clone(Y={}){return new At({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class nt extends lt{constructor(Y={}){super(Y),this.type=Mt.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new nt({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class rt extends lt{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Be(ve,Y){return{body:Y,headers:ve.headers,context:ve.context,observe:ve.observe,params:ve.params,reportProgress:ve.reportProgress,responseType:ve.responseType,withCredentials:ve.withCredentials}}let Fe=(()=>{class ve{constructor(j){this.handler=j}request(j,Te,De={}){let Re;if(j instanceof Wt)Re=j;else{let ht,on;ht=De.headers instanceof $?De.headers:new $(De.headers),De.params&&(on=De.params instanceof Ee?De.params:new Ee({fromObject:De.params})),Re=new Wt(j,Te,void 0!==De.body?De.body:null,{headers:ht,context:De.context,params:on,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const Pe=(0,ne.of)(Re).pipe((0,H.b)(ht=>this.handler.handle(ht)));if(j instanceof Wt||"events"===De.observe)return Pe;const Ge=Pe.pipe((0,k.h)(ht=>ht instanceof nt));switch(De.observe||"body"){case"body":switch(Re.responseType){case"arraybuffer":return Ge.pipe((0,X.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ht.body}));case"blob":return Ge.pipe((0,X.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof Blob))throw new Error("Response is not a Blob.");return ht.body}));case"text":return Ge.pipe((0,X.U)(ht=>{if(null!==ht.body&&"string"!=typeof ht.body)throw new Error("Response is not a string.");return ht.body}));default:return Ge.pipe((0,X.U)(ht=>ht.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(j,Te={}){return this.request("DELETE",j,Te)}get(j,Te={}){return this.request("GET",j,Te)}head(j,Te={}){return this.request("HEAD",j,Te)}jsonp(j,Te){return this.request("JSONP",j,{params:(new Ee).append(Te,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(j,Te={}){return this.request("OPTIONS",j,Te)}patch(j,Te,De={}){return this.request("PATCH",j,Be(De,Te))}post(j,Te,De={}){return this.request("POST",j,Be(De,Te))}put(j,Te,De={}){return this.request("PUT",j,Be(De,Te))}}return ve.\u0275fac=function(j){return new(j||ve)(m.LFG(J))},ve.\u0275prov=m.Yz7({token:ve,factory:ve.\u0275fac}),ve})();class Un{constructor(Y,j){this.next=Y,this.interceptor=j}handle(Y){return this.interceptor.intercept(Y,this.next)}}const zt=new m.OlP("HTTP_INTERCEPTORS");let Ot=(()=>{class ve{intercept(j,Te){return Te.handle(j)}}return ve.\u0275fac=function(j){return new(j||ve)},ve.\u0275prov=m.Yz7({token:ve,factory:ve.\u0275fac}),ve})();const R=/^\)\]\}',?\n/;let se=(()=>{class ve{constructor(j){this.xhrFactory=j}handle(j){if("JSONP"===j.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new le.y(Te=>{const De=this.xhrFactory.build();if(De.open(j.method,j.urlWithParams),j.withCredentials&&(De.withCredentials=!0),j.headers.forEach((mt,Ve)=>De.setRequestHeader(mt,Ve.join(","))),j.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!j.headers.has("Content-Type")){const mt=j.detectContentTypeHeader();null!==mt&&De.setRequestHeader("Content-Type",mt)}if(j.responseType){const mt=j.responseType.toLowerCase();De.responseType="json"!==mt?mt:"text"}const Re=j.serializeBody();let Pe=null;const Ge=()=>{if(null!==Pe)return Pe;const mt=1223===De.status?204:De.status,Ve=De.statusText||"OK",Lt=new $(De.getAllResponseHeaders()),ft=function G(ve){return"responseURL"in ve&&ve.responseURL?ve.responseURL:/^X-Request-URL:/m.test(ve.getAllResponseHeaders())?ve.getResponseHeader("X-Request-URL"):null}(De)||j.url;return Pe=new At({headers:Lt,status:mt,statusText:Ve,url:ft}),Pe},ht=()=>{let{headers:mt,status:Ve,statusText:Lt,url:ft}=Ge(),Ct=null;204!==Ve&&(Ct=void 0===De.response?De.responseText:De.response),0===Ve&&(Ve=Ct?200:0);let Fn=Ve>=200&&Ve<300;if("json"===j.responseType&&"string"==typeof Ct){const un=Ct;Ct=Ct.replace(R,"");try{Ct=""!==Ct?JSON.parse(Ct):null}catch(gn){Ct=un,Fn&&(Fn=!1,Ct={error:gn,text:Ct})}}Fn?(Te.next(new nt({body:Ct,headers:mt,status:Ve,statusText:Lt,url:ft||void 0})),Te.complete()):Te.error(new rt({error:Ct,headers:mt,status:Ve,statusText:Lt,url:ft||void 0}))},on=mt=>{const{url:Ve}=Ge(),Lt=new rt({error:mt,status:De.status||0,statusText:De.statusText||"Unknown Error",url:Ve||void 0});Te.error(Lt)};let ot=!1;const En=mt=>{ot||(Te.next(Ge()),ot=!0);let Ve={type:Mt.DownloadProgress,loaded:mt.loaded};mt.lengthComputable&&(Ve.total=mt.total),"text"===j.responseType&&!!De.responseText&&(Ve.partialText=De.responseText),Te.next(Ve)},nn=mt=>{let Ve={type:Mt.UploadProgress,loaded:mt.loaded};mt.lengthComputable&&(Ve.total=mt.total),Te.next(Ve)};return De.addEventListener("load",ht),De.addEventListener("error",on),De.addEventListener("timeout",on),De.addEventListener("abort",on),j.reportProgress&&(De.addEventListener("progress",En),null!==Re&&De.upload&&De.upload.addEventListener("progress",nn)),De.send(Re),Te.next({type:Mt.Sent}),()=>{De.removeEventListener("error",on),De.removeEventListener("abort",on),De.removeEventListener("load",ht),De.removeEventListener("timeout",on),j.reportProgress&&(De.removeEventListener("progress",En),null!==Re&&De.upload&&De.upload.removeEventListener("progress",nn)),De.readyState!==De.DONE&&De.abort()}})}}return ve.\u0275fac=function(j){return new(j||ve)(m.LFG(p.JF))},ve.\u0275prov=m.Yz7({token:ve,factory:ve.\u0275fac}),ve})();const ae=new m.OlP("XSRF_COOKIE_NAME"),be=new m.OlP("XSRF_HEADER_NAME");class Ae{}let et=(()=>{class ve{constructor(j,Te,De){this.doc=j,this.platform=Te,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const j=this.doc.cookie||"";return j!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,p.Mx)(j,this.cookieName),this.lastCookieString=j),this.lastToken}}return ve.\u0275fac=function(j){return new(j||ve)(m.LFG(p.K0),m.LFG(m.Lbi),m.LFG(ae))},ve.\u0275prov=m.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),Se=(()=>{class ve{constructor(j,Te){this.tokenService=j,this.headerName=Te}intercept(j,Te){const De=j.url.toLowerCase();if("GET"===j.method||"HEAD"===j.method||De.startsWith("http://")||De.startsWith("https://"))return Te.handle(j);const Re=this.tokenService.getToken();return null!==Re&&!j.headers.has(this.headerName)&&(j=j.clone({headers:j.headers.set(this.headerName,Re)})),Te.handle(j)}}return ve.\u0275fac=function(j){return new(j||ve)(m.LFG(Ae),m.LFG(be))},ve.\u0275prov=m.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),st=(()=>{class ve{constructor(j,Te){this.backend=j,this.injector=Te,this.chain=null}handle(j){if(null===this.chain){const Te=this.injector.get(zt,[]);this.chain=Te.reduceRight((De,Re)=>new Un(De,Re),this.backend)}return this.chain.handle(j)}}return ve.\u0275fac=function(j){return new(j||ve)(m.LFG(ie),m.LFG(m.zs3))},ve.\u0275prov=m.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),tn=(()=>{class ve{static disable(){return{ngModule:ve,providers:[{provide:Se,useClass:Ot}]}}static withOptions(j={}){return{ngModule:ve,providers:[j.cookieName?{provide:ae,useValue:j.cookieName}:[],j.headerName?{provide:be,useValue:j.headerName}:[]]}}}return ve.\u0275fac=function(j){return new(j||ve)},ve.\u0275mod=m.oAB({type:ve}),ve.\u0275inj=m.cJS({providers:[Se,{provide:zt,useExisting:Se,multi:!0},{provide:Ae,useClass:et},{provide:ae,useValue:"XSRF-TOKEN"},{provide:be,useValue:"X-XSRF-TOKEN"}]}),ve})(),Nt=(()=>{class ve{}return ve.\u0275fac=function(j){return new(j||ve)},ve.\u0275mod=m.oAB({type:ve}),ve.\u0275inj=m.cJS({providers:[Fe,{provide:J,useClass:st},se,{provide:ie,useExisting:se}],imports:[[tn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ve})()},5e3:(We,ce,M)=>{M.d(ce,{deG:()=>Fg,tb:()=>ag,AFp:()=>sg,ip1:()=>zu,CZH:()=>lo,hGG:()=>Qb,z2F:()=>Yo,sBO:()=>Tb,Sil:()=>Wu,_Vd:()=>Ho,aQ5:()=>kg,EJc:()=>ug,SBq:()=>Vo,qLn:()=>Mo,vpe:()=>bs,pfw:()=>rb,gxx:()=>Ea,tBr:()=>Eo,XFs:()=>Ne,OlP:()=>_n,zs3:()=>$r,IIB:()=>tb,ZZ4:()=>Ha,aQg:()=>Va,soG:()=>ja,YKP:()=>dp,h0i:()=>io,PXZ:()=>vb,R0b:()=>xr,FiY:()=>hi,r_U:()=>nb,Lbi:()=>og,g9A:()=>ig,n_E:()=>Ra,Qsj:()=>rE,FYo:()=>ap,JOm:()=>ys,q3G:()=>Sn,tp0:()=>Ri,Rgc:()=>Wo,dDg:()=>fg,GfV:()=>lp,i9L:()=>Lg,s_b:()=>Fa,ifc:()=>Re,eFA:()=>gg,G48:()=>wb,Gpc:()=>z,f3M:()=>qg,_c5:()=>Vb,VLi:()=>gb,c2e:()=>lg,zSh:()=>Vl,wAp:()=>pt,vHH:()=>fe,EiD:()=>kc,mCW:()=>Co,qzn:()=>ki,JVY:()=>mm,pB0:()=>Dm,eBb:()=>vm,L6k:()=>ym,LAX:()=>_m,cg1:()=>bu,kL8:()=>Oh,yhl:()=>Ac,dqk:()=>ot,sIi:()=>Ro,CqO:()=>Hf,QGY:()=>au,F4k:()=>Uf,RDi:()=>li,AaK:()=>J,z3N:()=>Ns,qOj:()=>Kl,TTD:()=>On,_Bn:()=>sp,xp6:()=>yd,uIk:()=>Zl,Tol:()=>ah,Gre:()=>Eh,ekj:()=>gu,Suo:()=>kp,Xpm:()=>Gn,lG2:()=>q,Yz7:()=>B,cJS:()=>R,oAB:()=>bn,Yjl:()=>b,Y36:()=>Fo,_UZ:()=>Lf,GkF:()=>Bf,BQk:()=>ou,ynx:()=>iu,qZA:()=>su,TgZ:()=>ru,EpF:()=>jf,n5z:()=>es,Ikx:()=>Du,LFG:()=>zn,$8M:()=>Ar,$Z:()=>kf,NdJ:()=>lu,CRH:()=>Lp,kcU:()=>Rn,O4$:()=>ci,oxw:()=>zf,ALo:()=>Sp,lcZ:()=>Mp,xi3:()=>Ap,Hsn:()=>Wf,F$t:()=>Gf,Q6J:()=>tu,s9C:()=>du,hYB:()=>hu,DdM:()=>gp,VKq:()=>mp,WLB:()=>yp,kEZ:()=>vp,l5B:()=>_p,qbA:()=>Dp,iGM:()=>Np,MAs:()=>Tf,CHM:()=>C,oJD:()=>Lc,LSH:()=>sl,kYT:()=>yt,Udp:()=>pu,WFA:()=>uu,d8E:()=>Eu,YNc:()=>wf,W1O:()=>Hp,_uU:()=>ph,Oqu:()=>yu,hij:()=>Sa,AsE:()=>vu,HOy:()=>_u,Gf:()=>Fp});var p=M(8929),m=M(2654),ne=M(2916),le=M(6787),H=M(2474);function k(e){for(let t in e)if(e[t]===k)return t;throw Error("Could not find renamed property on target object.")}function X(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(J).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 ie(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const $=k({__forward_ref__:k});function z(e){return e.__forward_ref__=z,e.toString=function(){return J(this())},e}function Z(e){return ue(e)?e():e}function ue(e){return"function"==typeof e&&e.hasOwnProperty($)&&e.__forward_ref__===z}class fe extends Error{constructor(t,n){super(function we(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Ee(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():Ee(e)}function ye(e,t){const n=t?` in ${t}`:"";throw new fe(-201,`No provider for ${Ue(e)} found${n}`)}function bt(e,t){null==e&&function ze(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function R(e){return{providers:e.providers||[],imports:e.imports||[]}}function G(e){return se(e,et)||se(e,st)}function se(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ae(e){return e&&(e.hasOwnProperty(Se)||e.hasOwnProperty(Kt))?e[Se]:null}const et=k({\u0275prov:k}),Se=k({\u0275inj:k}),st=k({ngInjectableDef:k}),Kt=k({ngInjectorDef:k});var Ne=(()=>((Ne=Ne||{})[Ne.Default=0]="Default",Ne[Ne.Host=1]="Host",Ne[Ne.Self=2]="Self",Ne[Ne.SkipSelf=4]="SkipSelf",Ne[Ne.Optional=8]="Optional",Ne))();let tn;function fn(e){const t=tn;return tn=e,t}function sn(e,t,n){const r=G(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ne.Optional?null:void 0!==t?t:void ye(J(e),"Injector")}function Y(e){return{toString:e}.toString()}var j=(()=>((j=j||{})[j.OnPush=0]="OnPush",j[j.Default=1]="Default",j))(),Re=(()=>{return(e=Re||(Re={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Re;var e})();const Pe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,ht="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ot=Pe||"undefined"!=typeof global&&global||Ge||ht,mt={},Ve=[],Lt=k({\u0275cmp:k}),ft=k({\u0275dir:k}),Ct=k({\u0275pipe:k}),Fn=k({\u0275mod:k}),un=k({\u0275fac:k}),gn=k({__NG_ELEMENT_ID__:k});let Dr=0;function Gn(e){return Y(()=>{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===j.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ve,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Re.Emulated,id:"c",styles:e.styles||Ve,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,l=e.pipes;return r.id+=Dr++,r.inputs=oe(e.inputs,n),r.outputs=oe(e.outputs),i&&i.forEach(d=>d(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(nr):null,r.pipeDefs=l?()=>("function"==typeof l?l():l).map(Kn):null,r})}function nr(e){return P(e)||function A(e){return e[ft]||null}(e)}function Kn(e){return function ee(e){return e[Ct]||null}(e)}const rr={};function bn(e){return Y(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ve,declarations:e.declarations||Ve,imports:e.imports||Ve,exports:e.exports||Ve,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(rr[e.id]=e.type),t})}function yt(e,t){return Y(()=>{const n=$e(e,!0);n.declarations=t.declarations||Ve,n.imports=t.imports||Ve,n.exports=t.exports||Ve})}function oe(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 q=Gn;function b(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function P(e){return e[Lt]||null}function $e(e,t){const n=e[Fn]||null;if(!n&&!0===t)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function Mn(e){return Array.isArray(e)&&"object"==typeof e[1]}function An(e){return Array.isArray(e)&&!0===e[1]}function Cr(e){return 0!=(8&e.flags)}function Wr(e){return 2==(2&e.flags)}function wr(e){return 1==(1&e.flags)}function In(e){return null!==e.template}function Kr(e){return 0!=(512&e[2])}function Tr(e,t){return e.hasOwnProperty(un)?e[un]:null}class cs{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function On(){return Yr}function Yr(e){return e.type.prototype.ngOnChanges&&(e.setInput=Us),Zn}function Zn(){const e=As(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 Us(e,t,n,r){const s=As(e)||function oi(e,t){return e[Hs]=t}(e,{previous:mt,current:null}),i=s.current||(s.current={}),l=s.previous,d=this.declaredInputs[n],g=l[d];i[d]=new cs(g&&g.currentValue,t,l===mt),e[r]=t}On.ngInherit=!0;const Hs="__ngSimpleChanges__";function As(e){return e[Hs]||null}let ds;function li(e){ds=e}function Lr(){return void 0!==ds?ds:"undefined"!=typeof document?document:void 0}function rn(e){return!!e.listen}const _={createRenderer:(e,t)=>Lr()};function v(e){for(;Array.isArray(e);)e=e[0];return e}function de(e,t){return v(t[e])}function _e(e,t){return v(t[e.index])}function $t(e,t){return e.data[t]}function Ft(e,t){return e[t]}function Et(e,t){const n=t[e];return Mn(n)?n:n[0]}function Rt(e){return 4==(4&e[2])}function cn(e){return 128==(128&e[2])}function an(e,t){return null==t?null:e[t]}function Br(e){e[18]=0}function ar(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 ut={lFrame:Ye(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function zs(){return ut.bindingsEnabled}function o(){return ut.lFrame.lView}function f(){return ut.lFrame.tView}function C(e){return ut.lFrame.contextLView=e,e[8]}function x(){let e=U();for(;null!==e&&64===e.type;)e=e.parent;return e}function U(){return ut.lFrame.currentTNode}function te(e,t){const n=ut.lFrame;n.currentTNode=e,n.isParent=t}function he(){return ut.lFrame.isParent}function Oe(){ut.lFrame.isParent=!1}function Tt(){return ut.isInCheckNoChangesMode}function tt(e){ut.isInCheckNoChangesMode=e}function Xe(){const e=ut.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Dt(){return ut.lFrame.bindingIndex}function qt(){return ut.lFrame.bindingIndex++}function dn(e){const t=ut.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function yr(e,t){const n=ut.lFrame;n.bindingIndex=n.bindingRootIndex=e,vr(t)}function vr(e){ut.lFrame.currentDirectiveIndex=e}function Jn(e){const t=ut.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function lr(){return ut.lFrame.currentQueryIndex}function xs(e){ut.lFrame.currentQueryIndex=e}function fs(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ur(e,t,n){if(n&Ne.SkipSelf){let s=t,i=e;for(;!(s=s.parent,null!==s||n&Ne.Host||(s=fs(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;t=s,e=i}const r=ut.lFrame=ui();return r.currentTNode=t,r.lView=e,!0}function Rs(e){const t=ui(),n=e[1];ut.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ui(){const e=ut.lFrame,t=null===e?null:e.child;return null===t?Ye(e):t}function Ye(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 it(){const e=ut.lFrame;return ut.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ct=it;function It(){const e=it();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 Yt(){return ut.lFrame.selectedIndex}function Tn(e){ut.lFrame.selectedIndex=e}function gt(){const e=ut.lFrame;return $t(e.tView,e.selectedIndex)}function ci(){ut.lFrame.currentNamespace="svg"}function Rn(){!function Jr(){ut.lFrame.currentNamespace=null}()}function hs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:l,ngAfterContentChecked:d,ngAfterViewInit:g,ngAfterViewChecked:E,ngOnDestroy:T}=i;l&&(e.contentHooks||(e.contentHooks=[])).push(-n,l),d&&((e.contentHooks||(e.contentHooks=[])).push(n,d),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,d)),g&&(e.viewHooks||(e.viewHooks=[])).push(-n,g),E&&((e.viewHooks||(e.viewHooks=[])).push(n,E),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,E)),null!=T&&(e.destroyHooks||(e.destroyHooks=[])).push(n,T)}}function Ln(e,t,n){wi(e,t,3,n)}function Ci(e,t,n,r){(3&e[2])===n&&wi(e,t,n,r)}function Gs(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function wi(e,t,n,r){const i=null!=r?r:-1,l=t.length-1;let d=0;for(let g=void 0!==r?65535&e[18]:0;g<l;g++)if("number"==typeof t[g+1]){if(d=t[g],null!=r&&d>=r)break}else t[g]<0&&(e[18]+=65536),(d<i||-1==i)&&(Ti(e,n,t,g),e[18]=(4294901760&e[18])+g+2),g++}function Ti(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 Ws{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function fi(e,t,n){const r=rn(e);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const l=n[s++],d=n[s++],g=n[s++];r?e.setAttribute(t,d,g,l):t.setAttributeNS(l,d,g)}else{const l=i,d=n[++s];fo(l)?r&&e.setProperty(t,l,d):r?e.setAttribute(t,l,d):t.setAttribute(l,d),s++}}return s}function qo(e){return 3===e||4===e||6===e}function fo(e){return 64===e.charCodeAt(0)}function Mi(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,l=e.length;if(-1===t)l=-1;else for(;i<e.length;){const d=e[i++];if("number"==typeof d){if(d===t){l=-1;break}if(d>t){l=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!==l&&(e.splice(l,0,t),i=l+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 Ys(e){return 32767&e}function Qs(e,t){let n=function ea(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ho=!0;function Ai(e){const t=ho;return ho=e,t}let sa=0;function Ii(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 l=Ys(s),d=Qs(s,t),g=d[1].data;for(let E=0;E<8;E++)t[i+E]=d[l+E]|g[l+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],l=i.type;if(r=2===l?i.declTNode:1===l?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(gn)&&(r=n[gn]),null==r&&(r=n[gn]=sa++);const s=255&r;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function I(e,t,n){if(n&Ne.Optional)return e;ye(t,"NodeInjector")}function L(e,t,n,r){if(n&Ne.Optional&&void 0===r&&(r=null),0==(n&(Ne.Self|Ne.Host))){const s=e[9],i=fn(void 0);try{return s?s.get(t,r,n&Ne.Optional):sn(t,r,n&Ne.Optional)}finally{fn(i)}}return I(r,t,n)}function K(e,t,n,r=Ne.Default,s){if(null!==e){const i=function Jt(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(gn)?e[gn]:void 0;return"number"==typeof t?t>=0?255&t:Qe:t}(n);if("function"==typeof i){if(!Ur(t,e,r))return r&Ne.Host?I(s,n,r):L(t,n,r,s);try{const l=i(r);if(null!=l||r&Ne.Optional)return l;ye(n)}finally{ct()}}else if("number"==typeof i){let l=null,d=c(e,t),g=-1,E=r&Ne.Host?t[16][6]:null;for((-1===d||r&Ne.SkipSelf)&&(g=-1===d?u(e,t):t[d+8],-1!==g&&Hr(r,!1)?(l=t[1],d=Ys(g),t=Qs(g,t)):d=-1);-1!==d;){const T=t[1];if(Zs(i,d,T.data)){const F=Bt(d,t,n,l,r,E);if(F!==pe)return F}g=t[d+8],-1!==g&&Hr(r,t[1].data[d+8]===E)&&Zs(i,d,t)?(l=T,d=Ys(g),t=Qs(g,t)):d=-1}}}return L(t,n,r,s)}const pe={};function Qe(){return new Xn(x(),o())}function Bt(e,t,n,r,s,i){const l=t[1],d=l.data[e+8],T=at(d,l,n,null==r?Wr(d)&&ho:r!=l&&0!=(3&d.type),s&Ne.Host&&i===d);return null!==T?Vt(t,l,T,d):pe}function at(e,t,n,r,s){const i=e.providerIndexes,l=t.data,d=1048575&i,g=e.directiveStart,T=i>>20,W=s?d+T:e.directiveEnd;for(let re=r?d:d+T;re<W;re++){const ge=l[re];if(re<g&&n===ge||re>=g&&ge.type===n)return re}if(s){const re=l[g];if(re&&In(re)&&re.type===n)return g}return null}function Vt(e,t,n,r){let s=e[n];const i=t.data;if(function $a(e){return e instanceof Ws}(s)){const l=s;l.resolving&&function xe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new fe(-200,`Circular dependency in DI detected for ${e}${n}`)}(Ue(i[n]));const d=Ai(l.canSeeViewProviders);l.resolving=!0;const g=l.injectImpl?fn(l.injectImpl):null;Ur(e,r,Ne.Default);try{s=e[n]=l.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Xr(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const l=Yr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l)}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!==g&&fn(g),Ai(d),l.resolving=!1,ct()}}return s}function Zs(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Hr(e,t){return!(e&Ne.Self||e&Ne.Host&&t)}class Xn{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return K(this._tNode,this._lView,t,r,n)}}function es(e){return Y(()=>{const t=e.prototype.constructor,n=t[un]||qs(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const i=s[un]||qs(s);if(i&&i!==n)return i;s=Object.getPrototypeOf(s)}return i=>new i})}function qs(e){return ue(e)?()=>{const t=qs(Z(e));return t&&t()}:Tr(e)}function Ar(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(qo(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}(x(),e)}const Js="__parameters__",Pi="__prop__metadata__";function Ga(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}function Oi(e,t,n){return Y(()=>{const r=Ga(t);function s(...i){if(this instanceof s)return r.apply(this,i),this;const l=new s(...i);return d.annotation=l,d;function d(g,E,T){const F=g.hasOwnProperty(Js)?g[Js]:Object.defineProperty(g,Js,{value:[]})[Js];for(;F.length<=T;)F.push(null);return(F[T]=F[T]||[]).push(l),g}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function po(e,t,n,r){return Y(()=>{const s=Ga(t);function i(...l){if(this instanceof i)return s.apply(this,l),this;const d=new i(...l);return function g(E,T){const F=E.constructor,W=F.hasOwnProperty(Pi)?F[Pi]:Object.defineProperty(F,Pi,{value:{}})[Pi];W[T]=W.hasOwnProperty(T)&&W[T]||[],W[T].unshift(d),r&&r(E,T,...l)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}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=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Fg=new _n("AnalyzeForEntryComponents");class fc{}const kg=po("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),fc),Lg=po("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),fc);function Vr(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)),Vr(r,t)):t!==e&&t.push(r)}return t}function ps(e,t){e.forEach(n=>Array.isArray(n)?ps(n,t):t(n))}function hc(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 Pr(e,t,n){let r=xi(e,t);return r>=0?e[1|r]=n:(r=~r,function Ug(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=xi(e,t);if(n>=0)return e[1|n]}function xi(e,t){return function mc(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const i=r+(s-r>>1),l=e[i<<n];if(t===l)return i<<n;l>t?s=i:r=i+1}return~(s<<n)}(e,t,1)}const vo={},Qa="__NG_DI_FLAG__",aa="ngTempTokenPath",Kg=/\n/gm,vc="__source",Qg=k({provide:String,useValue:k});let _o;function _c(e){const t=_o;return _o=e,t}function Zg(e,t=Ne.Default){if(void 0===_o)throw new fe(203,"");return null===_o?sn(e,void 0,t):_o.get(e,t&Ne.Optional?null:void 0,t)}function zn(e,t=Ne.Default){return(function Nt(){return tn}()||Zg)(Z(e),t)}const qg=zn;function Za(e){const t=[];for(let n=0;n<e.length;n++){const r=Z(e[n]);if(Array.isArray(r)){if(0===r.length)throw new fe(900,"");let s,i=Ne.Default;for(let l=0;l<r.length;l++){const d=r[l],g=Jg(d);"number"==typeof g?-1===g?s=d.token:i|=g:s=d}t.push(zn(s,i))}else t.push(zn(r))}return t}function Do(e,t){return e[Qa]=t,e.prototype[Qa]=t,e}function Jg(e){return e[Qa]}const Eo=Do(Oi("Inject",e=>({token:e})),-1),hi=Do(Oi("Optional"),8),Ri=Do(Oi("SkipSelf"),4);let ua,ca;function Fi(e){var t;return(null===(t=function Ja(){if(void 0===ua&&(ua=null,ot.trustedTypes))try{ua=ot.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 Tc(e){var t;return(null===(t=function Xa(){if(void 0===ca&&(ca=null,ot.trustedTypes))try{ca=ot.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 pi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class dm extends pi{getTypeName(){return"HTML"}}class fm extends pi{getTypeName(){return"Style"}}class hm extends pi{getTypeName(){return"Script"}}class pm extends pi{getTypeName(){return"URL"}}class gm extends pi{getTypeName(){return"ResourceURL"}}function Ns(e){return e instanceof pi?e.changingThisBreaksApplicationSecurity:e}function ki(e,t){const n=Ac(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 Ac(e){return e instanceof pi&&e.getTypeName()||null}function mm(e){return new dm(e)}function ym(e){return new fm(e)}function vm(e){return new hm(e)}function _m(e){return new pm(e)}function Dm(e){return new gm(e)}class Em{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Fi(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class bm{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=Fi(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Fi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0<s;s--){const l=n.item(s).name;("xmlns:ns1"===l||0===l.indexOf("ns1:"))&&t.removeAttribute(l)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const wm=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Tm=/^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 Co(e){return(e=String(e)).match(wm)||e.match(Tm)?e:"unsafe:"+e}function gs(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 Oc=gs("area,br,col,hr,img,wbr"),xc=gs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rc=gs("rp,rt"),el=wo(Oc,wo(xc,gs("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(Rc,gs("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(Rc,xc)),tl=gs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nl=gs("srcset"),Nc=wo(tl,nl,gs("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"),gs("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")),Sm=gs("script,style,template");class Mm{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,!Sm.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),l=i.name,d=l.toLowerCase();if(!Nc.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let g=i.value;tl[d]&&(g=Co(g)),nl[d]&&(e=g,g=(e=String(e)).split(",").map(t=>Co(t.trim())).join(", ")),this.buf.push(" ",l,'="',Fc(g),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();el.hasOwnProperty(n)&&!Oc.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Fc(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 Am=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Im=/([^\#-~ |!])/g;function Fc(e){return e.replace(/&/g,"&").replace(Am,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Im,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let da;function kc(e,t){let n=null;try{da=da||function Ic(e){const t=new bm(e);return function Cm(){try{return!!(new window.DOMParser).parseFromString(Fi(""),"text/html")}catch(e){return!1}}()?new Em(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 Fi((new Mm).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 Pm(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Sn=(()=>((Sn=Sn||{})[Sn.NONE=0]="NONE",Sn[Sn.HTML=1]="HTML",Sn[Sn.STYLE=2]="STYLE",Sn[Sn.SCRIPT=3]="SCRIPT",Sn[Sn.URL=4]="URL",Sn[Sn.RESOURCE_URL=5]="RESOURCE_URL",Sn))();function Lc(e){const t=To();return t?Tc(t.sanitize(Sn.HTML,e)||""):ki(e,"HTML")?Tc(Ns(e)):kc(Lr(),Ee(e))}function sl(e){const t=To();return t?t.sanitize(Sn.URL,e)||"":ki(e,"URL")?Ns(e):Co(Ee(e))}function To(){const e=o();return e&&e[12]}const Uc="__ngContext__";function er(e,t){e[Uc]=t}function ol(e){const t=function So(e){return e[Uc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ll(e){return e.ngOriginalError}function Wm(e,...t){e.error(...t)}class Mo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function Gm(e){return e&&e.ngErrorLogger||Wm}(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 Gc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ot))();function ms(e){return e instanceof Function?e():e}var ys=(()=>((ys=ys||{})[ys.Important=1]="Important",ys[ys.DashCase=2]="DashCase",ys))();function cl(e,t){return undefined(e,t)}function Ao(e){const t=e[3];return An(t)?t[3]:t}function dl(e){return Zc(e[13])}function fl(e){return Zc(e[4])}function Zc(e){for(;null!==e&&!An(e);)e=e[4];return e}function Bi(e,t,n,r,s){if(null!=r){let i,l=!1;An(r)?i=r:Mn(r)&&(l=!0,r=r[0]);const d=v(r);0===e&&null!==n?null==s?nd(t,n,d):gi(t,n,d,s||null,!0):1===e&&null!==n?gi(t,n,d,s||null,!0):2===e?function ud(e,t,n){const r=fa(e,t);r&&function gy(e,t,n,r){rn(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,d,l):3===e&&t.destroyNode(d),null!=i&&function vy(e,t,n,r,s){const i=n[7];i!==v(n)&&Bi(t,e,r,i,s);for(let d=10;d<n.length;d++){const g=n[d];Io(g[1],g,e,t,r,i)}}(t,e,i,n,s)}}function pl(e,t,n){if(rn(e))return e.createElement(t,n);{const r=null!==n?function $s(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function Jc(e,t){const n=e[9],r=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,ar(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&&Jc(s,r),t>0&&(e[n-1][4]=r[4]);const i=ia(e,10+t);!function ay(e,t){Io(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const l=i[19];null!==l&&l.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Xc(e,t){if(!(256&t[2])){const n=t[11];rn(n)&&n.destroyNode&&Io(e,t,n,3,null,null),function cy(e){let t=e[13];if(!t)return ml(e[1],e);for(;t;){let n=null;if(Mn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Mn(t)&&ml(t[1],t),t=t[3];null===t&&(t=e),Mn(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 py(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 Ws)){const i=n[r+1];if(Array.isArray(i))for(let l=0;l<i.length;l+=2){const d=s[i[l]],g=i[l+1];try{g.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 l=n[i+1],d="function"==typeof l?l(t):v(t[l]),g=r[s=n[i+2]],E=n[i+3];"boolean"==typeof E?d.removeEventListener(n[i],g,E):E>=0?r[s=E]():r[s=-E].unsubscribe(),i+=2}else{const l=r[s=n[i+1]];n[i].call(l)}if(null!==r){for(let i=s+1;i<r.length;i++)r[i]();t[7]=null}}(e,t),1===t[1].type&&rn(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&An(t[3])){n!==t[3]&&Jc(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function ed(e,t,n){return function td(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===Re.None||s===Re.Emulated)return null}return _e(r,n)}(e,t.parent,n)}function gi(e,t,n,r,s){rn(e)?e.insertBefore(t,n,r,s):t.insertBefore(n,r,s)}function nd(e,t,n){rn(e)?e.appendChild(t,n):t.appendChild(n)}function rd(e,t,n,r,s){null!==r?gi(e,t,n,r,s):nd(e,t,n)}function fa(e,t){return rn(e)?e.parentNode(t):t.parentNode}function sd(e,t,n){return od(e,t,n)}let od=function id(e,t,n){return 40&e.type?_e(e,n):null};function ha(e,t,n,r){const s=ed(e,r,t),i=t[11],d=sd(r.parent||t[6],r,t);if(null!=s)if(Array.isArray(n))for(let g=0;g<n.length;g++)rd(i,s,n[g],d,!1);else rd(i,s,n,d,!1)}function pa(e,t){if(null!==t){const n=t.type;if(3&n)return _e(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 An(s)?vl(-1,s):v(s)}}if(32&n)return cl(t,e)()||v(e[t.index]);{const r=ld(e,t);return null!==r?Array.isArray(r)?r[0]:pa(Ao(e[16]),r):pa(e,t.next)}}return null}function ld(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,l){for(;null!=n;){const d=r[n.index],g=n.type;if(l&&0===t&&(d&&er(v(d),r),n.flags|=4),64!=(64&n.flags))if(8&g)_l(e,t,n.child,r,s,i,!1),Bi(t,e,s,d,i);else if(32&g){const E=cl(n,r);let T;for(;T=E();)Bi(t,e,s,T,i);Bi(t,e,s,d,i)}else 16&g?cd(e,t,r,n,s,i):Bi(t,e,s,d,i);n=l?n.projectionNext:n.next}}function Io(e,t,n,r,s,i){_l(n,r,e.firstChild,t,s,i,!1)}function cd(e,t,n,r,s,i){const l=n[16],g=l[6].projection[r.projection];if(Array.isArray(g))for(let E=0;E<g.length;E++)Bi(t,e,s,g[E],i);else _l(e,t,g,l[3],s,i,!0)}function dd(e,t,n){rn(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Dl(e,t,n){rn(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function fd(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 hd="ng-template";function Dy(e,t,n){let r=0;for(;r<e.length;){let s=e[r++];if(n&&"class"===s){if(s=e[r],-1!==fd(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 pd(e){return 4===e.type&&e.value!==hd}function Ey(e,t,n){return t===(4!==e.type||n?e.value:hd)}function by(e,t,n){let r=4;const s=e.attrs||[],i=function Ty(e){for(let t=0;t<e.length;t++)if(qo(e[t]))return t;return e.length}(s);let l=!1;for(let d=0;d<t.length;d++){const g=t[d];if("number"!=typeof g){if(!l)if(4&r){if(r=2|1&r,""!==g&&!Ey(e,g,n)||""===g&&1===t.length){if(ts(r))return!1;l=!0}}else{const E=8&r?g:t[++d];if(8&r&&null!==e.attrs){if(!Dy(e.attrs,E,n)){if(ts(r))return!1;l=!0}continue}const F=Cy(8&r?"class":g,s,pd(e),n);if(-1===F){if(ts(r))return!1;l=!0;continue}if(""!==E){let W;W=F>i?"":s[F+1].toLowerCase();const re=8&r?W:null;if(re&&-1!==fd(re,E,0)||2&r&&E!==W){if(ts(r))return!1;l=!0}}}}else{if(!l&&!ts(r)&&!ts(g))return!1;if(l&&ts(g))continue;l=!1,r=g|1&r}}return ts(r)||l}function ts(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 l=t[s];if(l===e)return s;if(3===l||6===l)i=!0;else{if(1===l||2===l){let d=t[++s];for(;"string"==typeof d;)d=t[++s];continue}if(4===l)break;if(0===l){s+=4;continue}}s+=i?1:2}return-1}return function Sy(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 gd(e,t,n=!1){for(let r=0;r<t.length;r++)if(by(e,t[r],n))return!0;return!1}function My(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 md(e,t){return e?":not("+t.trim()+")":t}function Ay(e){let t=e[0],n=1,r=2,s="",i=!1;for(;n<e.length;){let l=e[n];if("string"==typeof l)if(2&r){const d=e[++n];s+="["+l+(d.length>0?'="'+d+'"':"")+"]"}else 8&r?s+="."+l:4&r&&(s+=" "+l);else""!==s&&!ts(l)&&(t+=md(i,s),s=""),r=l,i=i||!ts(r);n++}return""!==s&&(t+=md(i,s)),t}const St={};function yd(e){vd(f(),o(),Yt()+e,Tt())}function vd(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Ln(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ci(t,i,0,n)}Tn(n)}function ga(e,t){return e<<17|t<<2}function ns(e){return e>>17&32767}function El(e){return 2|e}function Fs(e){return(131068&e)>>2}function bl(e,t){return-131069&e|t<<2}function Cl(e){return 1|e}function Id(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 l=e.data[i];xs(s),l.contentQueries(2,t[i],i)}}}function Po(e,t,n,r,s,i,l,d,g,E){const T=t.blueprint.slice();return T[0]=s,T[2]=140|r,Br(T),T[3]=T[15]=e,T[8]=n,T[10]=l||e&&e[10],T[11]=d||e&&e[11],T[12]=g||e&&e[12]||null,T[9]=E||e&&e[9]||null,T[6]=i,T[16]=2==t.type?e[16]:T,T}function ji(e,t,n,r,s){let i=e.data[t];if(null===i)i=function xl(e,t,n,r,s){const i=U(),l=he(),g=e.data[t]=function Wy(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,l?i:i&&i.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=g),null!==i&&(l?null==i.child&&null!==g.parent&&(i.child=g):null===i.next&&(i.next=g)),g}(e,t,n,r,s),function wn(){return ut.lFrame.inI18n}()&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=s;const l=function V(){const e=ut.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===l?-1:l.injectorIndex}return te(i,!0),i}function Ui(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){Rs(t);try{const r=e.viewQuery;null!==r&&Hl(1,r,n);const s=e.template;null!==s&&Pd(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Id(e,t),e.staticViewQueries&&Hl(2,e.viewQuery,n);const i=e.components;null!==i&&function $y(e,t){for(let n=0;n<t.length;n++)cv(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,It()}}function Hi(e,t,n,r){const s=t[2];if(256==(256&s))return;Rs(t);const i=Tt();try{Br(t),function ln(e){return ut.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Pd(e,t,n,2,r);const l=3==(3&s);if(!i)if(l){const E=e.preOrderCheckHooks;null!==E&&Ln(t,E,null)}else{const E=e.preOrderHooks;null!==E&&Ci(t,E,0,null),Gs(t,0)}if(function lv(e){for(let t=dl(e);null!==t;t=fl(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const s=n[r],i=s[3];0==(1024&s[2])&&ar(i,1),s[2]|=1024}}}(t),function av(e){for(let t=dl(e);null!==t;t=fl(t))for(let n=10;n<t.length;n++){const r=t[n],s=r[1];cn(r)&&Hi(s,r,s.template,r[8])}}(t),null!==e.contentQueries&&Id(e,t),!i)if(l){const E=e.contentCheckHooks;null!==E&&Ln(t,E)}else{const E=e.contentHooks;null!==E&&Ci(t,E,1),Gs(t,1)}!function Hy(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)Tn(~s);else{const i=s,l=n[++r],d=n[++r];yr(l,i),d(2,t[i])}}}finally{Tn(-1)}}(e,t);const d=e.components;null!==d&&function Vy(e,t){for(let n=0;n<t.length;n++)uv(e,t[n])}(t,d);const g=e.viewQuery;if(null!==g&&Hl(2,g,r),!i)if(l){const E=e.viewCheckHooks;null!==E&&Ln(t,E)}else{const E=e.viewHooks;null!==E&&Ci(t,E,2),Gs(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ar(t[3],-1))}finally{It()}}function zy(e,t,n,r){const s=t[10],i=!Tt(),l=Rt(t);try{i&&!l&&s.begin&&s.begin(),l&&Oo(e,t,r),Hi(e,t,n,r)}finally{i&&!l&&s.end&&s.end()}}function Pd(e,t,n,r,s){const i=Yt(),l=2&r;try{Tn(-1),l&&t.length>20&&vd(e,t,20,Tt()),n(r,s)}finally{Tn(i)}}function Od(e,t,n){if(Cr(t)){const s=t.directiveEnd;for(let i=t.directiveStart;i<s;i++){const l=e.data[i];l.contentQueries&&l.contentQueries(1,n[i],i)}}}function Rl(e,t,n){!zs()||(function Xy(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||Ii(n,t),er(r,t);const l=n.initialInputs;for(let d=s;d<i;d++){const g=e.data[d],E=In(g);E&&sv(t,n,g);const T=Vt(t,e,d,n);er(T,t),null!==l&&iv(0,d-s,T,g,0,l),E&&(Et(n.index,t)[8]=T)}}(e,t,n,_e(n,t)),128==(128&n.flags)&&function ev(e,t,n){const r=n.directiveStart,s=n.directiveEnd,l=n.index,d=function xn(){return ut.lFrame.currentDirectiveIndex}();try{Tn(l);for(let g=r;g<s;g++){const E=e.data[g],T=t[g];vr(g),(null!==E.hostBindings||0!==E.hostVars||null!==E.hostAttrs)&&jd(E,T)}}finally{Tn(-1),vr(d)}}(e,t,n))}function Nl(e,t,n=_e){const r=t.localNames;if(null!==r){let s=t.index+1;for(let i=0;i<r.length;i+=2){const l=r[i+1],d=-1===l?n(t,e):e[l];e[s++]=d}}}function xd(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,l,d,g,E){const T=20+r,F=T+s,W=function Gy(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:St);return n}(T,F),re="function"==typeof E?E():E;return W[1]={type:e,blueprint:W,template:n,queries:null,viewQuery:d,declTNode:t,data:W.slice().fill(null,T),bindingStartIndex:T,expandoStartIndex:F,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 l?l():l,firstChild:null,schemas:g,consts:re,incompleteFirstPass:!1}}function Fd(e,t,n,r){const s=Gd(t);null===n?s.push(r):(s.push(n),e.firstCreatePass&&Wd(e).push(r,s.length-1))}function kd(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 Or(e,t,n,r,s,i,l,d){const g=_e(t,n);let T,E=t.inputs;!d&&null!=E&&(T=E[r])?(Qd(e,n,T,r,s),Wr(t)&&function Qy(e,t){const n=Et(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function Yy(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=l?l(s,t.value||"",r):s,rn(i)?i.setProperty(g,r,s):fo(r)||(g.setProperty?g.setProperty(r,s):g[r]=s))}function Fl(e,t,n,r){let s=!1;if(zs()){const i=function tv(e,t,n){const r=e.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const l=r[i];gd(n,l.selectors,!1)&&(s||(s=[]),y(Ii(n,t),e,l.type),In(l)?(Ud(e,n),s.unshift(l)):s.push(l))}return s}(e,t,n),l=null===r?null:{"":-1};if(null!==i){s=!0,Hd(n,e.data.length,i.length);for(let T=0;T<i.length;T++){const F=i[T];F.providersResolver&&F.providersResolver(F)}let d=!1,g=!1,E=Ui(e,t,i.length,null);for(let T=0;T<i.length;T++){const F=i[T];n.mergedAttrs=Mi(n.mergedAttrs,F.hostAttrs),Vd(e,n,t,E,F),rv(E,F,l),null!==F.contentQueries&&(n.flags|=8),(null!==F.hostBindings||null!==F.hostAttrs||0!==F.hostVars)&&(n.flags|=128);const W=F.type.prototype;!d&&(W.ngOnChanges||W.ngOnInit||W.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),d=!0),!g&&(W.ngOnChanges||W.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),g=!0),E++}!function Ky(e,t){const r=t.directiveEnd,s=e.data,i=t.attrs,l=[];let d=null,g=null;for(let E=t.directiveStart;E<r;E++){const T=s[E],F=T.inputs,W=null===i||pd(t)?null:ov(F,i);l.push(W),d=kd(F,E,d),g=kd(T.outputs,E,g)}null!==d&&(d.hasOwnProperty("class")&&(t.flags|=16),d.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=l,t.inputs=d,t.outputs=g}(e,n)}l&&function nv(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 fe(-301,`Export of name '${t[s+1]}' not found!`);r.push(t[s],i)}}}(n,r,l)}return n.mergedAttrs=Mi(n.mergedAttrs,n.attrs),s}function Bd(e,t,n,r,s,i){const l=i.hostBindings;if(l){let d=e.hostBindingOpCodes;null===d&&(d=e.hostBindingOpCodes=[]);const g=~t.index;(function Jy(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(d)!=g&&d.push(g),d.push(r,s,l)}}function jd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ud(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function rv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;In(t)&&(n[""]=e)}}function Hd(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Vd(e,t,n,r,s){e.data[r]=s;const i=s.factory||(s.factory=Tr(s.type)),l=new Ws(i,In(s),null);e.blueprint[r]=l,n[r]=l,Bd(e,t,0,r,Ui(e,n,s.hostVars,St),s)}function sv(e,t,n){const r=_e(t,e),s=xd(n),i=e[10],l=_a(e,Po(e,s,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=l}function vs(e,t,n,r,s,i){const l=_e(e,t);!function kl(e,t,n,r,s,i,l){if(null==i)rn(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const d=null==l?Ee(i):l(i,r||"",s);rn(e)?e.setAttribute(t,s,d,n):n?t.setAttributeNS(n,s,d):t.setAttribute(s,d)}}(t[11],l,i,e.value,n,r,s)}function iv(e,t,n,r,s,i){const l=i[t];if(null!==l){const d=r.setInput;for(let g=0;g<l.length;){const E=l[g++],T=l[g++],F=l[g++];null!==d?r.setInput(n,F,E,T):n[T]=F}}}function ov(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 $d(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function uv(e,t){const n=Et(t,e);if(cn(n)){const r=n[1];80&n[2]?Hi(r,n,r.template,n[8]):n[5]>0&&Ll(n)}}function Ll(e){for(let r=dl(e);null!==r;r=fl(r))for(let s=10;s<r.length;s++){const i=r[s];if(1024&i[2]){const l=i[1];Hi(l,i,l.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=Et(n[r],e);cn(s)&&s[5]>0&&Ll(s)}}function cv(e,t){const n=Et(t,e),r=n[1];(function dv(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(Kr(e)&&!t)return e;e=t}return null}function Ul(e,t,n){const r=t[10];r.begin&&r.begin();try{Hi(e,t,e.template,n)}catch(s){throw Yd(t,s),s}finally{r.end&&r.end()}}function zd(e){!function jl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=ol(n),s=r[1];zy(s,r,s.template,n)}}(e[8])}function Hl(e,t,n){xs(0),t(e,n)}const gv=(()=>Promise.resolve(null))();function Gd(e){return e[7]||(e[7]=[])}function Wd(e){return e.cleanup||(e.cleanup=[])}function Kd(e,t,n){return(null===e||In(e))&&(n=function O(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Yd(e,t){const n=e[9],r=n?n.get(Mo,null):null;r&&r.handleError(t)}function Qd(e,t,n,r,s){for(let i=0;i<n.length;){const l=n[i++],d=n[i++],g=t[l],E=e.data[l];null!==E.setInput?E.setInput(g,s,r,d):g[d]=s}}function ks(e,t,n){const r=de(t,e);!function qc(e,t,n){rn(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 l=0;l<t.length;l++){const d=t[l];"number"==typeof d?i=d:1==i?s=ie(s,d):2==i&&(r=ie(r,d+": "+t[++l]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}const Ea=new _n("INJECTOR",-1);class Zd{get(t,n=vo){if(n===vo){const r=new Error(`NullInjectorError: No provider for ${J(t)}!`);throw r.name="NullInjectorError",r}return n}}const Vl=new _n("Set Injector scope."),xo={},vv={};let $l;function qd(){return void 0===$l&&($l=new Zd),$l}function Jd(e,t=null,n=null,r){const s=Xd(e,t,n,r);return s._resolveInjectorDefTypes(),s}function Xd(e,t=null,n=null,r){return new _v(e,n,t||qd(),r)}class _v{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&&ps(n,d=>this.processProvider(d,t,n)),ps([t],d=>this.processInjectorType(d,[],i)),this.records.set(Ea,Vi(void 0,this));const l=this.records.get(Vl);this.scope=null!=l?l.value:null,this.source=s||("object"==typeof t?null:J(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=Ne.Default){this.assertNotDestroyed();const s=_c(this),i=fn(void 0);try{if(!(r&Ne.SkipSelf)){let d=this.records.get(t);if(void 0===d){const g=function Mv(e){return"function"==typeof e||"object"==typeof e&&e instanceof _n}(t)&&G(t);d=g&&this.injectableDefInScope(g)?Vi(zl(t),xo):null,this.records.set(t,d)}if(null!=d)return this.hydrate(t,d)}return(r&Ne.Self?qd():this.parent).get(t,n=r&Ne.Optional&&n===vo?null:n)}catch(l){if("NullInjectorError"===l.name){if((l[aa]=l[aa]||[]).unshift(J(t)),s)throw l;return function Xg(e,t,n,r){const s=e[aa];throw t[vc]&&s.unshift(t[vc]),e.message=function em(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=J(t);if(Array.isArray(t))s=t.map(J).join(" -> ");else if("object"==typeof t){let i=[];for(let l in t)if(t.hasOwnProperty(l)){let d=t[l];i.push(l+":"+("string"==typeof d?JSON.stringify(d):J(d)))}s=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Kg,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[aa]=null,e}(l,t,"R3InjectorError",this.source)}throw l}finally{fn(i),_c(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,s)=>t.push(J(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new fe(205,"")}processInjectorType(t,n,r){if(!(t=Z(t)))return!1;let s=Ae(t);const i=null==s&&t.ngModule||void 0,l=void 0===i?t:i,d=-1!==r.indexOf(l);if(void 0!==i&&(s=Ae(i)),null==s)return!1;if(null!=s.imports&&!d){let T;r.push(l);try{ps(s.imports,F=>{this.processInjectorType(F,n,r)&&(void 0===T&&(T=[]),T.push(F))})}finally{}if(void 0!==T)for(let F=0;F<T.length;F++){const{ngModule:W,providers:re}=T[F];ps(re,ge=>this.processProvider(ge,W,re||Ve))}}this.injectorDefTypes.add(l);const g=Tr(l)||(()=>new l);this.records.set(l,Vi(g,xo));const E=s.providers;if(null!=E&&!d){const T=t;ps(E,F=>this.processProvider(F,T,E))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let s=$i(t=Z(t))?t:Z(t&&t.provide);const i=function Ev(e,t,n){return tf(e)?Vi(void 0,e.useValue):Vi(ef(e),xo)}(t);if($i(t)||!0!==t.multi)this.records.get(s);else{let l=this.records.get(s);l||(l=Vi(void 0,xo,!0),l.factory=()=>Za(l.multi),this.records.set(s,l)),s=t,l.multi.push(t)}this.records.set(s,i)}hydrate(t,n){return n.value===xo&&(n.value=vv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Sv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Z(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function zl(e){const t=G(e),n=null!==t?t.factory:Tr(e);if(null!==n)return n;if(e instanceof _n)throw new fe(204,"");if(e instanceof Function)return function Dv(e){const t=e.length;if(t>0)throw yo(t,"?"),new fe(204,"");const n=function ae(e){const t=e&&(e[et]||e[st]);if(t){const n=function be(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 fe(204,"")}function ef(e,t,n){let r;if($i(e)){const s=Z(e);return Tr(s)||zl(s)}if(tf(e))r=()=>Z(e.useValue);else if(function Cv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Za(e.deps||[]));else if(function bv(e){return!(!e||!e.useExisting)}(e))r=()=>zn(Z(e.useExisting));else{const s=Z(e&&(e.useClass||e.provide));if(!function Tv(e){return!!e.deps}(e))return Tr(s)||zl(s);r=()=>new s(...Za(e.deps))}return r}function Vi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function tf(e){return null!==e&&"object"==typeof e&&Qg in e}function $i(e){return"function"==typeof e}let $r=(()=>{class e{static create(n,r){var s;if(Array.isArray(n))return Jd({name:""},r,n,"");{const i=null!==(s=n.name)&&void 0!==s?s:"";return Jd({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=vo,e.NULL=new Zd,e.\u0275prov=B({token:e,providedIn:"any",factory:()=>zn(Ea)}),e.__NG_ELEMENT_ID__=-1,e})();function Fv(e,t){hs(ol(e)[1],x())}function Kl(e){let t=function pf(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(In(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new fe(903,"");s=t.\u0275dir}if(s){if(n){r.push(s);const l=e;l.inputs=Yl(e.inputs),l.declaredInputs=Yl(e.declaredInputs),l.outputs=Yl(e.outputs);const d=s.hostBindings;d&&jv(e,d);const g=s.viewQuery,E=s.contentQueries;if(g&&Lv(e,g),E&&Bv(e,E),X(e.inputs,s.inputs),X(e.declaredInputs,s.declaredInputs),X(e.outputs,s.outputs),In(s)&&s.data.animation){const T=e.data;T.animation=(T.animation||[]).concat(s.data.animation)}}const i=s.features;if(i)for(let l=0;l<i.length;l++){const d=i[l];d&&d.ngInherit&&d(e),d===Kl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function kv(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=Mi(s.hostAttrs,n=Mi(n,s.hostAttrs))}}(r)}function Yl(e){return e===mt?{}:e===Ve?[]:e}function Lv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Bv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,i)=>{t(r,s,i),n(r,s,i)}:t}function jv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}let ba=null;function zi(){if(!ba){const e=ot.Symbol;if(e&&e.iterator)ba=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&&(ba=r)}}}return ba}function Ro(e){return!!Ql(e)&&(Array.isArray(e)||!(e instanceof Map)&&zi()in e)}function Ql(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function _s(e,t,n){return e[t]=n}function No(e,t){return e[t]}function tr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function mi(e,t,n,r){const s=tr(e,t,n);return tr(e,t+1,r)||s}function zr(e,t,n,r,s,i){const l=mi(e,t,n,r);return mi(e,t+2,s,i)||l}function Zl(e,t,n,r){const s=o();return tr(s,qt(),t)&&(f(),vs(gt(),s,e,t,n,r)),Zl}function Wi(e,t,n,r){return tr(e,qt(),n)?t+Ee(n)+r:St}function Ki(e,t,n,r,s,i){const d=mi(e,Dt(),n,s);return dn(2),d?t+Ee(n)+r+Ee(s)+i:St}function wf(e,t,n,r,s,i,l,d){const g=o(),E=f(),T=e+20,F=E.firstCreatePass?function Wv(e,t,n,r,s,i,l,d,g){const E=t.consts,T=ji(t,e,4,l||null,an(E,d));Fl(t,n,T,an(E,g)),hs(t,T);const F=T.tViews=va(2,T,r,s,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,E);return null!==t.queries&&(t.queries.template(t,T),F.queries=t.queries.embeddedTView(T)),T}(T,E,g,t,n,r,s,i,l):E.data[T];te(F,!1);const W=g[11].createComment("");ha(E,g,W,F),er(W,g),_a(g,g[T]=$d(W,g,W,F)),wr(F)&&Rl(E,g,F),null!=l&&Nl(g,F,d)}function Tf(e){return Ft(function _t(){return ut.lFrame.contextLView}(),20+e)}function Fo(e,t=Ne.Default){const n=o();return null===n?zn(e,t):K(x(),n,Z(e),t)}function kf(){throw new Error("invalid")}function tu(e,t,n){const r=o();return tr(r,qt(),t)&&Or(f(),gt(),r,e,t,r[11],n,!1),tu}function nu(e,t,n,r,s){const l=s?"class":"style";Qd(e,n,t.inputs[l],l,r)}function ru(e,t,n,r){const s=o(),i=f(),l=20+e,d=s[11],g=s[l]=pl(d,t,function Mr(){return ut.lFrame.currentNamespace}()),E=i.firstCreatePass?function h_(e,t,n,r,s,i,l){const d=t.consts,E=ji(t,e,2,s,an(d,i));return Fl(t,n,E,an(d,l)),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}(l,i,s,0,t,n,r):i.data[l];te(E,!0);const T=E.mergedAttrs;null!==T&&fi(d,g,T);const F=E.classes;null!==F&&Dl(d,g,F);const W=E.styles;null!==W&&dd(d,g,W),64!=(64&E.flags)&&ha(i,s,g,E),0===function Zr(){return ut.lFrame.elementDepthCount}()&&er(g,s),function Ps(){ut.lFrame.elementDepthCount++}(),wr(E)&&(Rl(i,s,E),Od(i,E,s)),null!==r&&Nl(s,E)}function su(){let e=x();he()?Oe():(e=e.parent,te(e,!1));const t=e;!function Os(){ut.lFrame.elementDepthCount--}();const n=f();n.firstCreatePass&&(hs(n,e),Cr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Zo(e){return 0!=(16&e.flags)}(t)&&nu(n,t,o(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function co(e){return 0!=(32&e.flags)}(t)&&nu(n,t,o(),t.stylesWithoutHost,!1)}function Lf(e,t,n,r){ru(e,t,n,r),su()}function iu(e,t,n){const r=o(),s=f(),i=e+20,l=s.firstCreatePass?function p_(e,t,n,r,s){const i=t.consts,l=an(i,r),d=ji(t,e,8,"ng-container",l);return null!==l&&Da(d,l,!0),Fl(t,n,d,an(i,s)),null!==t.queries&&t.queries.elementStart(t,d),d}(i,s,r,t,n):s.data[i];te(l,!0);const d=r[i]=r[11].createComment("");ha(s,r,d,l),er(d,r),wr(l)&&(Rl(s,r,l),Od(s,l,r)),null!=n&&Nl(r,l)}function ou(){let e=x();const t=f();he()?Oe():(e=e.parent,te(e,!1)),t.firstCreatePass&&(hs(t,e),Cr(e)&&t.queries.elementEnd(e))}function Bf(e,t,n){iu(e,t,n),ou()}function jf(){return o()}function au(e){return!!e&&"function"==typeof e.then}function Uf(e){return!!e&&"function"==typeof e.subscribe}const Hf=Uf;function lu(e,t,n,r){const s=o(),i=f(),l=x();return Vf(i,s,s[11],l,e,t,!!n,r),lu}function uu(e,t){const n=x(),r=o(),s=f();return Vf(s,r,Kd(Jn(s.data),n,r),n,e,t,!1),uu}function Vf(e,t,n,r,s,i,l,d){const g=wr(r),T=e.firstCreatePass&&Wd(e),F=t[8],W=Gd(t);let re=!0;if(3&r.type||d){const je=_e(r,t),Ze=d?d(je):je,Ce=W.length,dt=d?kt=>d(v(kt[r.index])):r.index;if(rn(n)){let kt=null;if(!d&&g&&(kt=function g_(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const l=s[i];if(l===n&&s[i+1]===r){const d=t[7],g=s[i+2];return d.length>g?d[g]:null}"string"==typeof l&&(i+=2)}return null}(e,t,s,r.index)),null!==kt)(kt.__ngLastListenerFn__||kt).__ngNextListenerFn__=i,kt.__ngLastListenerFn__=i,re=!1;else{i=cu(r,t,F,i,!1);const Xt=n.listen(Ze,s,i);W.push(i,Xt),T&&T.push(s,dt,Ce,Ce+1)}}else i=cu(r,t,F,i,!0),Ze.addEventListener(s,i,l),W.push(i),T&&T.push(s,dt,Ce,l)}else i=cu(r,t,F,i,!1);const ge=r.outputs;let Ie;if(re&&null!==ge&&(Ie=ge[s])){const je=Ie.length;if(je)for(let Ze=0;Ze<je;Ze+=2){const Rr=t[Ie[Ze]][Ie[Ze+1]].subscribe(i),_i=W.length;W.push(i,Rr),T&&T.push(s,r.index,_i,-(_i+1))}}}function $f(e,t,n,r){try{return!1!==n(r)}catch(s){return Yd(e,s),!1}}function cu(e,t,n,r,s){return function i(l){if(l===Function)return r;const d=2&e.flags?Et(e.index,t):t;0==(32&t[2])&&Bl(d);let g=$f(t,0,r,l),E=i.__ngNextListenerFn__;for(;E;)g=$f(t,0,E,l)&&g,E=E.__ngNextListenerFn__;return s&&!1===g&&(l.preventDefault(),l.returnValue=!1),g}}function zf(e=1){return function vn(e){return(ut.lFrame.contextLView=function _r(e,t){for(;e>0;)t=t[15],e--;return t}(e,ut.lFrame.contextLView))[8]}(e)}function m_(e,t){let n=null;const r=function wy(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?gd(e,i,!0):My(r,i))return s}else n=s}return n}function Gf(e){const t=o()[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 l=e?m_(i,e):0;null!==l&&(s[l]?s[l].projectionNext=i:r[l]=i,s[l]=i),i=i.next}}}function Wf(e,t=0,n){const r=o(),s=f(),i=ji(s,20+e,16,null,n||null);null===i.projection&&(i.projection=t),Oe(),64!=(64&i.flags)&&function yy(e,t,n){cd(t[11],0,t,n,ed(e,n,t),sd(n.parent||t[6],n,t))}(s,r,i)}function du(e,t,n){return fu(e,"",t,"",n),du}function fu(e,t,n,r,s){const i=o(),l=Wi(i,t,n,r);return l!==St&&Or(f(),gt(),i,e,l,i[11],s,!1),fu}function hu(e,t,n,r,s,i,l){const d=o(),g=Ki(d,t,n,r,s,i);return g!==St&&Or(f(),gt(),d,e,g,d[11],l,!1),hu}function eh(e,t,n,r,s){const i=e[n+1],l=null===t;let d=r?ns(i):Fs(i),g=!1;for(;0!==d&&(!1===g||l);){const T=e[d+1];__(e[d],t)&&(g=!0,e[d+1]=r?Cl(T):El(T)),d=r?ns(T):Fs(T)}g&&(e[n+1]=r?El(i):Cl(i))}function __(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&xi(e,t)>=0}const jn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function th(e){return e.substring(jn.key,jn.keyEnd)}function nh(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),to(e,t,n))}function to(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function pu(e,t,n){return ss(e,t,n,!1),pu}function gu(e,t){return ss(e,t,null,!0),gu}function ah(e){is(Pr,Es,e,!0)}function Es(e,t){for(let n=function E_(e){return function sh(e){jn.key=0,jn.keyEnd=0,jn.value=0,jn.valueEnd=0,jn.textEnd=e.length}(e),nh(e,to(e,0,jn.textEnd))}(t);n>=0;n=nh(t,n))Pr(e,th(t),!0)}function ss(e,t,n,r){const s=o(),i=f(),l=dn(2);i.firstUpdatePass&&uh(i,e,l,r),t!==St&&tr(s,l,t)&&dh(i,i.data[Yt()],s,s[11],e,s[l+1]=function R_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=J(Ns(e)))),e}(t,n),r,l)}function is(e,t,n,r){const s=f(),i=dn(2);s.firstUpdatePass&&uh(s,null,i,r);const l=o();if(n!==St&&tr(l,i,n)){const d=s.data[Yt()];if(hh(d,r)&&!lh(s,i)){let g=r?d.classesWithoutHost:d.stylesWithoutHost;null!==g&&(n=ie(g,n||"")),nu(s,d,l,n,r)}else!function x_(e,t,n,r,s,i,l,d){s===St&&(s=Ve);let g=0,E=0,T=0<s.length?s[0]:null,F=0<i.length?i[0]:null;for(;null!==T||null!==F;){const W=g<s.length?s[g+1]:void 0,re=E<i.length?i[E+1]:void 0;let Ie,ge=null;T===F?(g+=2,E+=2,W!==re&&(ge=F,Ie=re)):null===F||null!==T&&T<F?(g+=2,ge=T):(E+=2,ge=F,Ie=re),null!==ge&&dh(e,t,n,r,ge,Ie,l,d),T=g<s.length?s[g]:null,F=E<i.length?i[E]:null}}(s,d,l,l[11],l[i+1],l[i+1]=function O_(e,t,n){if(null==n||""===n)return Ve;const r=[],s=Ns(n);if(Array.isArray(s))for(let i=0;i<s.length;i++)e(r,s[i],!0);else if("object"==typeof s)for(const i in s)s.hasOwnProperty(i)&&e(r,i,s[i]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,i)}}function lh(e,t){return t>=e.expandoStartIndex}function uh(e,t,n,r){const s=e.data;if(null===s[n+1]){const i=s[Yt()],l=lh(e,n);hh(i,r)&&null===t&&!l&&(t=!1),t=function M_(e,t,n,r){const s=Jn(e);let i=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=ko(n=mu(null,e,t,n,r),t.attrs,r),i=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==s)if(n=mu(s,e,t,n,r),null===i){let g=function A_(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Fs(r))return e[ns(r)]}(e,t,r);void 0!==g&&Array.isArray(g)&&(g=mu(null,e,t,g[1],r),g=ko(g,t.attrs,r),function I_(e,t,n,r){e[ns(n?t.classBindings:t.styleBindings)]=r}(e,t,r,g))}else i=function P_(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 y_(e,t,n,r,s,i){let l=i?t.classBindings:t.styleBindings,d=ns(l),g=Fs(l);e[r]=n;let T,E=!1;if(Array.isArray(n)){const F=n;T=F[1],(null===T||xi(F,T)>0)&&(E=!0)}else T=n;if(s)if(0!==g){const W=ns(e[d+1]);e[r+1]=ga(W,d),0!==W&&(e[W+1]=bl(e[W+1],r)),e[d+1]=function Oy(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=ga(d,0),0!==d&&(e[d+1]=bl(e[d+1],r)),d=r;else e[r+1]=ga(g,0),0===d?d=r:e[g+1]=bl(e[g+1],r),g=r;E&&(e[r+1]=El(e[r+1])),eh(e,T,r,!0),eh(e,T,r,!1),function v_(e,t,n,r,s){const i=s?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&xi(i,t)>=0&&(n[r+1]=Cl(n[r+1]))}(t,T,e,r,i),l=ga(d,g),i?t.classBindings=l:t.styleBindings=l}(s,i,t,n,l,r)}}function mu(e,t,n,r,s){let i=null;const l=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<l&&(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 l=t[i];"number"==typeof l?s=l:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Pr(e,l,!!n||t[++i]))}return void 0===e?null:e}function dh(e,t,n,r,s,i,l,d){if(!(3&t.type))return;const g=e.data,E=g[d+1];Ta(function Ed(e){return 1==(1&e)}(E)?fh(g,t,n,s,Fs(E),l):void 0)||(Ta(i)||function Dd(e){return 2==(2&e)}(E)&&(i=fh(g,null,n,s,d,l)),function _y(e,t,n,r,s){const i=rn(e);if(t)s?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let l=-1===r.indexOf("-")?void 0:ys.DashCase;if(null==s)i?e.removeStyle(n,r,l):n.style.removeProperty(r);else{const d="string"==typeof s&&s.endsWith("!important");d&&(s=s.slice(0,-10),l|=ys.Important),i?e.setStyle(n,r,s,l):n.style.setProperty(r,s,d?"important":"")}}}(r,l,de(Yt(),n),s,i))}function fh(e,t,n,r,s,i){const l=null===t;let d;for(;s>0;){const g=e[s],E=Array.isArray(g),T=E?g[1]:g,F=null===T;let W=n[s+1];W===St&&(W=F?Ve:void 0);let re=F?Ka(W,r):T===r?W:void 0;if(E&&!Ta(re)&&(re=Ka(g,r)),Ta(re)&&(d=re,l))return d;const ge=e[s+1];s=l?ns(ge):Fs(ge)}if(null!==t){let g=i?t.residualClasses:t.residualStyles;null!=g&&(d=Ka(g,r))}return d}function Ta(e){return void 0!==e}function hh(e,t){return 0!=(e.flags&(t?16:32))}function ph(e,t=""){const n=o(),r=f(),s=e+20,i=r.firstCreatePass?ji(r,s,1,t,null):r.data[s],l=n[s]=function hl(e,t){return rn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);ha(r,n,l,i),te(i,!1)}function yu(e){return Sa("",e,""),yu}function Sa(e,t,n){const r=o(),s=Wi(r,e,t,n);return s!==St&&ks(r,Yt(),s),Sa}function vu(e,t,n,r,s){const i=o(),l=Ki(i,e,t,n,r,s);return l!==St&&ks(i,Yt(),l),vu}function _u(e,t,n,r,s,i,l,d,g){const E=o(),T=function Qi(e,t,n,r,s,i,l,d,g,E){const F=zr(e,Dt(),n,s,l,g);return dn(4),F?t+Ee(n)+r+Ee(s)+i+Ee(l)+d+Ee(g)+E:St}(E,e,t,n,r,s,i,l,d,g);return T!==St&&ks(E,Yt(),T),_u}function Eh(e,t,n){is(Pr,Es,Wi(o(),e,t,n),!0)}function Du(e,t,n){const r=o();return tr(r,qt(),t)&&Or(f(),gt(),r,e,t,r[11],n,!0),Du}function Eu(e,t,n){const r=o();if(tr(r,qt(),t)){const i=f(),l=gt();Or(i,l,r,e,t,Kd(Jn(i.data),l,r),n,!0)}return Eu}const yi=void 0;var J_=["en",[["a","p"],["AM","PM"],yi],[["AM","PM"],yi,yi],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],yi,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],yi,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",yi,"{1} 'at' {0}",yi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function q_(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let no={};function bu(e){const t=function X_(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=xh(t);if(n)return n;const r=t.split("-")[0];if(n=xh(r),n)return n;if("en"===r)return J_;throw new Error(`Missing locale data for the locale "${e}".`)}function Oh(e){return bu(e)[pt.PluralCase]}function xh(e){return e in no||(no[e]=ot.ng&&ot.ng.common&&ot.ng.common.locales&&ot.ng.common.locales[e]),no[e]}var pt=(()=>((pt=pt||{})[pt.LocaleId=0]="LocaleId",pt[pt.DayPeriodsFormat=1]="DayPeriodsFormat",pt[pt.DayPeriodsStandalone=2]="DayPeriodsStandalone",pt[pt.DaysFormat=3]="DaysFormat",pt[pt.DaysStandalone=4]="DaysStandalone",pt[pt.MonthsFormat=5]="MonthsFormat",pt[pt.MonthsStandalone=6]="MonthsStandalone",pt[pt.Eras=7]="Eras",pt[pt.FirstDayOfWeek=8]="FirstDayOfWeek",pt[pt.WeekendRange=9]="WeekendRange",pt[pt.DateFormat=10]="DateFormat",pt[pt.TimeFormat=11]="TimeFormat",pt[pt.DateTimeFormat=12]="DateTimeFormat",pt[pt.NumberSymbols=13]="NumberSymbols",pt[pt.NumberFormats=14]="NumberFormats",pt[pt.CurrencyCode=15]="CurrencyCode",pt[pt.CurrencySymbol=16]="CurrencySymbol",pt[pt.CurrencyName=17]="CurrencyName",pt[pt.Currencies=18]="Currencies",pt[pt.Directionality=19]="Directionality",pt[pt.PluralCase=20]="PluralCase",pt[pt.ExtraData=21]="ExtraData",pt))();const Ma="en-US";let Rh=Ma;function Tu(e,t,n,r,s){if(e=Z(e),Array.isArray(e))for(let i=0;i<e.length;i++)Tu(e[i],t,n,r,s);else{const i=f(),l=o();let d=$i(e)?e:Z(e.provide),g=ef(e);const E=x(),T=1048575&E.providerIndexes,F=E.directiveStart,W=E.providerIndexes>>20;if($i(e)||!e.multi){const re=new Ws(g,s,Fo),ge=Mu(d,t,s?T:T+W,F);-1===ge?(y(Ii(E,l),i,d),Su(i,e,t.length),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(re),l.push(re)):(n[ge]=re,l[ge]=re)}else{const re=Mu(d,t,T+W,F),ge=Mu(d,t,T,T+W),Ie=re>=0&&n[re],je=ge>=0&&n[ge];if(s&&!je||!s&&!Ie){y(Ii(E,l),i,d);const Ze=function qD(e,t,n,r,s){const i=new Ws(e,n,Fo);return i.multi=[],i.index=t,i.componentProviders=0,rp(i,s,r&&!n),i}(s?ZD:QD,n.length,s,r,g);!s&&je&&(n[ge].providerFactory=Ze),Su(i,e,t.length,0),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(Ze),l.push(Ze)}else Su(i,e,re>-1?re:ge,rp(n[s?ge:re],g,!s&&r));!s&&r&&je&&n[ge].componentProviders++}}}function Su(e,t,n,r){const s=$i(t),i=function wv(e){return!!e.useClass}(t);if(s||i){const g=(i?Z(t.useClass):t).prototype.ngOnDestroy;if(g){const E=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const T=E.indexOf(n);-1===T?E.push(n,[r,g]):E[T+1].push(r,g)}else E.push(n,g)}}}function rp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Mu(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function QD(e,t,n,r){return Au(this.multi,[])}function ZD(e,t,n,r){const s=this.multi;let i;if(this.providerFactory){const l=this.providerFactory.componentProviders,d=Vt(n,n[1],this.providerFactory.index,r);i=d.slice(0,l),Au(s,i);for(let g=l;g<d.length;g++)i.push(d[g])}else i=[],Au(s,i);return i}function Au(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function sp(e,t=[]){return n=>{n.providersResolver=(r,s)=>function YD(e,t,n){const r=f();if(r.firstCreatePass){const s=In(e);Tu(n,r.data,r.blueprint,s,!0),Tu(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class ip{}class eE{resolveComponentFactory(t){throw function XD(e){const t=Error(`No component factory found for ${J(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ho=(()=>{class e{}return e.NULL=new eE,e})();function tE(){return so(x(),o())}function so(e,t){return new Vo(_e(e,t))}let Vo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=tE,e})();function nE(e){return e instanceof Vo?e.nativeElement:e}class ap{}let rE=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function iE(){const e=o(),n=Et(x().index,e);return function sE(e){return e[11]}(Mn(n)?n:e)}(),e})(),oE=(()=>{class e{}return e.\u0275prov=B({token:e,providedIn:"root",factory:()=>null}),e})();class lp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const aE=new lp("13.2.0"),Iu={};function xa(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(v(i)),An(i))for(let d=10;d<i.length;d++){const g=i[d],E=g[1].firstChild;null!==E&&xa(g[1],g,E,r)}const l=n.type;if(8&l)xa(e,t,n.child,r);else if(32&l){const d=cl(n,t);let g;for(;g=d();)r.push(g)}else if(16&l){const d=ld(t,n);if(Array.isArray(d))r.push(...d);else{const g=Ao(t[16]);xa(g[1],g,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 xa(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(An(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(gl(t,r),ia(n,r))}this._attachedToViewContainer=!1}Xc(this._lView[1],this._lView)}onDestroy(t){Fd(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){tt(!0);try{Ul(e,t,n)}finally{tt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function uy(e,t){Io(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new fe(902,"");this._appRef=t}}class lE extends $o{constructor(t){super(t),this._view=t}detectChanges(){zd(this._view)}checkNoChanges(){!function pv(e){tt(!0);try{zd(e)}finally{tt(!1)}}(this._view)}get context(){return null}}class up extends Ho{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=P(t);return new Pu(n,this.ngModule)}}function cp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const cE=new _n("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Gc});class Pu extends ip{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Iy(e){return e.map(Ay).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return cp(this.componentDef.inputs)}get outputs(){return cp(this.componentDef.outputs)}create(t,n,r,s){const i=(s=s||this.ngModule)?function dE(e,t){return{get:(n,r,s)=>{const i=e.get(n,Iu,s);return i!==Iu||r===Iu?i:t.get(n,r,s)}}}(t,s.injector):t,l=i.get(ap,_),d=i.get(oE,null),g=l.createRenderer(null,this.componentDef),E=this.componentDef.selectors[0][0]||"div",T=r?function Nd(e,t,n){if(rn(e))return e.selectRootElement(t,n===Re.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(g,r,this.componentDef.encapsulation):pl(l.createRenderer(null,this.componentDef),E,function uE(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(E)),F=this.componentDef.onPush?576:528,W=function hf(e,t){return{components:[],scheduler:e||Gc,clean:gv,playerHandler:t||null,flags:0}}(),re=va(0,null,null,1,0,null,null,null,null,null),ge=Po(null,re,W,F,null,null,l,g,d,i);let Ie,je;Rs(ge);try{const Ze=function df(e,t,n,r,s,i){const l=n[1];n[20]=e;const g=ji(l,20,2,"#host",null),E=g.mergedAttrs=t.hostAttrs;null!==E&&(Da(g,E,!0),null!==e&&(fi(s,e,E),null!==g.classes&&Dl(s,e,g.classes),null!==g.styles&&dd(s,e,g.styles)));const T=r.createRenderer(e,t),F=Po(n,xd(t),null,t.onPush?64:16,n[20],g,r,T,i||null,null);return l.firstCreatePass&&(y(Ii(g,n),l,t.type),Ud(l,g),Hd(g,n.length,1)),_a(n,F),n[20]=F}(T,this.componentDef,ge,l,g);if(T)if(r)fi(g,T,["ng-version",aE.full]);else{const{attrs:Ce,classes:dt}=function Py(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===s?""!==i&&t.push(i,e[++r]):8===s&&n.push(i);else{if(!ts(s))break;s=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Ce&&fi(g,T,Ce),dt&&dt.length>0&&Dl(g,T,dt.join(" "))}if(je=$t(re,20),void 0!==n){const Ce=je.projection=[];for(let dt=0;dt<this.ngContentSelectors.length;dt++){const kt=n[dt];Ce.push(null!=kt?Array.from(kt):null)}}Ie=function ff(e,t,n,r,s){const i=n[1],l=function qy(e,t,n){const r=x();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Vd(e,r,t,Ui(e,t,1,null),n));const s=Vt(t,e,r.directiveStart,r);er(s,t);const i=_e(r,t);return i&&er(i,t),s}(i,n,t);if(r.components.push(l),e[8]=l,s&&s.forEach(g=>g(l,t)),t.contentQueries){const g=x();t.contentQueries(1,l,g.directiveStart)}const d=x();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Tn(d.index),Bd(n[1],d,0,d.directiveStart,d.directiveEnd,t),jd(t,l)),l}(Ze,this.componentDef,ge,W,[Fv]),Oo(re,ge,null)}finally{It()}return new hE(this.componentType,Ie,so(je,ge),ge,je)}}class hE extends class JD{}{constructor(t,n,r,s,i){super(),this.location=r,this._rootLView=s,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new lE(s),this.componentType=t}get injector(){return new Xn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class io{}class dp{}const oo=new Map;class pp extends io{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new up(this);const r=$e(t);this._bootstrapComponents=ms(r.bootstrap),this._r3Injector=Xd(t,n,[{provide:io,useValue:this},{provide:Ho,useValue:this.componentFactoryResolver}],J(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=$r.THROW_IF_NOT_FOUND,r=Ne.Default){return t===$r||t===io||t===Ea?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 Ou extends dp{constructor(t){super(),this.moduleType=t,null!==$e(t)&&function gE(e){const t=new Set;!function n(r){const s=$e(r,!0),i=s.id;null!==i&&(function fp(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${J(t)} vs ${J(t.name)}`)}(i,oo.get(i),r),oo.set(i,r));const l=ms(s.imports);for(const d of l)t.has(d)||(t.add(d),n(d))}(e)}(t)}create(t){return new pp(this.moduleType,t)}}function gp(e,t,n){const r=Xe()+e,s=o();return s[r]===St?_s(s,r,n?t.call(n):t()):No(s,r)}function mp(e,t,n,r){return Ep(o(),Xe(),e,t,n,r)}function yp(e,t,n,r,s){return bp(o(),Xe(),e,t,n,r,s)}function vp(e,t,n,r,s,i){return function Cp(e,t,n,r,s,i,l,d){const g=t+n;return function Ca(e,t,n,r,s){const i=mi(e,t,n,r);return tr(e,t+2,s)||i}(e,g,s,i,l)?_s(e,g+3,d?r.call(d,s,i,l):r(s,i,l)):zo(e,g+3)}(o(),Xe(),e,t,n,r,s,i)}function _p(e,t,n,r,s,i,l){return function wp(e,t,n,r,s,i,l,d,g){const E=t+n;return zr(e,E,s,i,l,d)?_s(e,E+4,g?r.call(g,s,i,l,d):r(s,i,l,d)):zo(e,E+4)}(o(),Xe(),e,t,n,r,s,i,l)}function Dp(e,t,n,r,s,i,l,d){const g=Xe()+e,E=o(),T=zr(E,g,n,r,s,i);return tr(E,g+4,l)||T?_s(E,g+5,d?t.call(d,n,r,s,i,l):t(n,r,s,i,l)):No(E,g+5)}function zo(e,t){const n=e[t];return n===St?void 0:n}function Ep(e,t,n,r,s,i){const l=t+n;return tr(e,l,s)?_s(e,l+1,i?r.call(i,s):r(s)):zo(e,l+1)}function bp(e,t,n,r,s,i,l){const d=t+n;return mi(e,d,s,i)?_s(e,d+2,l?r.call(l,s,i):r(s,i)):zo(e,d+2)}function Sp(e,t){const n=f();let r;const s=e+20;n.firstCreatePass?(r=function DE(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=Tr(r.type)),l=fn(Fo);try{const d=Ai(!1),g=i();return Ai(d),function Kv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,o(),s,g),g}finally{fn(l)}}function Mp(e,t,n){const r=e+20,s=o(),i=Ft(s,r);return Go(s,r)?Ep(s,Xe(),t,i.transform,n,i):i.transform(n)}function Ap(e,t,n,r){const s=e+20,i=o(),l=Ft(i,s);return Go(i,s)?bp(i,Xe(),t,l.transform,n,r,l):l.transform(n,r)}function Go(e,t){return e[1].data[t].pure}function xu(e){return t=>{setTimeout(e,void 0,t)}}const bs=class wE extends p.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var s,i,l;let d=t,g=n||(()=>null),E=r;if(t&&"object"==typeof t){const F=t;d=null===(s=F.next)||void 0===s?void 0:s.bind(F),g=null===(i=F.error)||void 0===i?void 0:i.bind(F),E=null===(l=F.complete)||void 0===l?void 0:l.bind(F)}this.__isAsync&&(g=xu(g),d&&(d=xu(d)),E&&(E=xu(E)));const T=super.subscribe({next:d,error:g,complete:E});return t instanceof m.w&&t.add(T),T}};function TE(){return this._results[zi()]()}class Ra{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=zi(),r=Ra.prototype;r[n]||(r[n]=TE)}get changes(){return this._changes||(this._changes=new bs)}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=Vr(t);(this._changesDetected=!function Bg(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__=AE,e})();const SE=Wo,ME=class extends SE{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 AE(){return Na(x(),o())}function Na(e,t){return 4&e.type?new ME(t,e,so(e,t)):null}let Fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=IE,e})();function IE(){return Op(x(),o())}const PE=Fa,Ip=class extends PE{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return so(this._hostTNode,this._hostLView)}get injector(){return new Xn(this._hostTNode,this._hostLView)}get parentInjector(){const t=u(this._hostTNode,this._hostLView);if(Xo(t)){const n=Qs(t,this._hostLView),r=Ys(t);return new Xn(n[1].data[r+8],n)}return new Xn(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 l=t&&!function mo(e){return"function"==typeof e}(t);let d;if(l)d=n;else{const F=n||{};d=F.index,r=F.injector,s=F.projectableNodes,i=F.ngModuleRef}const g=l?t:new Pu(P(t)),E=r||this.parentInjector;if(!i&&null==g.ngModule&&E){const F=E.get(io,null);F&&(i=F)}const T=g.create(E,s,void 0,i);return this.insert(T.hostView,d),T}insert(t,n){const r=t._lView,s=r[1];if(function Zt(e){return An(e[3])}(r)){const T=this.indexOf(t);if(-1!==T)this.detach(T);else{const F=r[3],W=new Ip(F,F[6],F[3]);W.detach(W.indexOf(t))}}const i=this._adjustIndex(n),l=this._lContainer;!function dy(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],hc(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const l=t[17];null!==l&&n!==l&&function fy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(l,t);const d=t[19];null!==d&&d.insertView(e),t[2]|=128}(s,r,l,i);const d=vl(i,l),g=r[11],E=fa(g,l[7]);return null!==E&&function ly(e,t,n,r,s,i){r[0]=s,r[6]=t,Io(e,r,n,1,s,i)}(s,l[6],g,r,E,d),t.attachToViewContainerRef(),hc(Ru(l),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(Ru(this._lContainer),n),Xc(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=gl(this._lContainer,n);return r&&null!=ia(Ru(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 Ru(e){return e[8]||(e[8]=[])}function Op(e,t){let n;const r=t[e.index];if(An(r))n=r;else{let s;if(8&e.type)s=v(r);else{const i=t[11];s=i.createComment("");const l=_e(e,t);gi(i,fa(i,l),s,function my(e,t){return rn(e)?e.nextSibling(t):t.nextSibling}(i,l),!1)}t[e.index]=n=$d(r,t,s,e),_a(t,n)}return new Ip(n,e,t)}class Nu{constructor(t){this.queryList=t,this.matches=null}clone(){return new Nu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Fu{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 l=n.getByIndex(i);s.push(this.queries[l.indexInDeclarationView].clone())}return new Fu(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Up(t,n).matches&&this.queries[n].setDirty()}}class xp{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class ku{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 ku(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 Lu{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 Lu(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,RE(n,i)),this.matchTNodeWithReadOption(t,n,at(n,t,i,!1,!1))}else r===Wo?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,at(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=at(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 RE(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 FE(e,t,n,r){return-1===n?function NE(e,t){return 11&e.type?so(e,t):4&e.type?Na(e,t):null}(t,e):-2===n?function kE(e,t,n){return n===Vo?so(t,e):n===Wo?Na(t,e):n===Fa?Op(t,e):void 0}(e,t,r):Vt(e,e[1],n,t)}function Rp(e,t,n,r){const s=t[19].queries[r];if(null===s.matches){const i=e.data,l=n.matches,d=[];for(let g=0;g<l.length;g+=2){const E=l[g];d.push(E<0?null:FE(t,i[E],l[g+1],n.metadata.read))}s.matches=d}return s.matches}function Bu(e,t,n,r){const s=e.queries.getByIndex(n),i=s.matches;if(null!==i){const l=Rp(e,t,s,n);for(let d=0;d<i.length;d+=2){const g=i[d];if(g>0)r.push(l[d/2]);else{const E=i[d+1],T=t[-g];for(let F=10;F<T.length;F++){const W=T[F];W[17]===W[3]&&Bu(W[1],W,E,r)}if(null!==T[9]){const F=T[9];for(let W=0;W<F.length;W++){const re=F[W];Bu(re[1],re,E,r)}}}}}return r}function Np(e){const t=o(),n=f(),r=lr();xs(r+1);const s=Up(n,r);if(e.dirty&&Rt(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const i=s.crossesNgTemplate?Bu(n,t,r,[]):Rp(n,t,s,r);e.reset(i,nE),e.notifyOnChanges()}return!0}return!1}function Fp(e,t,n){const r=f();r.firstCreatePass&&(jp(r,new xp(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Bp(r,o(),t)}function kp(e,t,n,r){const s=f();if(s.firstCreatePass){const i=x();jp(s,new xp(t,n,r),i.index),function BE(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,o(),n)}function Lp(){return function LE(e,t){return e[19].queries[t].queryList}(o(),lr())}function Bp(e,t,n){const r=new Ra(4==(4&n));Fd(e,t,r,r.destroy),null===t[19]&&(t[19]=new Fu),t[19].queries.push(new Nu(r))}function jp(e,t,n){null===e.queries&&(e.queries=new ku),e.queries.track(new Lu(t,n))}function Up(e,t){return e.queries.getByIndex(t)}function Hp(e,t){return Na(e,t)}const tb=po("Input",e=>({bindingPropertyName:e})),nb=po("Output",e=>({bindingPropertyName:e})),rb=po("HostBinding",e=>({hostPropertyName:e}));function Ba(...e){}const zu=new _n("Application Initializer");let lo=(()=>{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(au(i))n.push(i);else if(Hf(i)){const l=new Promise((d,g)=>{i.subscribe({complete:d,error:g})});n.push(l)}}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)(zn(zu,8))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();const sg=new _n("AppId"),ib={provide:sg,useFactory:function sb(){return`${Gu()}${Gu()}${Gu()}`},deps:[]};function Gu(){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=B({token:e,factory:e.\u0275fac}),e})();const ja=new _n("LocaleId"),ug=new _n("DefaultCurrencyCode");class ob{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Wu=(()=>{class e{compileModuleSync(n){return new Ou(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=ms($e(n).declarations).reduce((l,d)=>{const g=P(d);return g&&l.push(new Pu(g)),l},[]);return new ob(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=B({token:e,factory:e.\u0275fac}),e})();const lb=(()=>Promise.resolve(0))();function Ku(e){"undefined"==typeof Zone?lb.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 bs(!1),this.onMicrotaskEmpty=new bs(!1),this.onStable=new bs(!1),this.onError=new bs(!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 ub(){let e=ot.requestAnimationFrame,t=ot.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 fb(e){const t=()=>{!function db(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ot,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Qu(e),e.isCheckStableRunning=!0,Yu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Qu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,l,d)=>{try{return cg(e),n.invokeTask(s,i,l,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),dg(e)}},onInvoke:(n,r,s,i,l,d,g)=>{try{return cg(e),n.invoke(s,i,l,d,g)}finally{e.shouldCoalesceRunChangeDetection&&t(),dg(e)}},onHasTask:(n,r,s,i)=>{n.hasTask(s,i),r===s&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Qu(e),Yu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,s,i)=>(n.handleError(s,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!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,l=i.scheduleEventTask("NgZoneEvent: "+s,t,cb,Ba,Ba);try{return i.runTask(l,n,r)}finally{i.cancelTask(l)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const cb={};function Yu(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 Qu(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--,Yu(e)}class hb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new bs,this.onMicrotaskEmpty=new bs,this.onStable=new bs,this.onError=new bs}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 fg=(()=>{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(),Ku(()=>{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())Ku(()=>{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(l=>l.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)(zn(xr))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})(),hg=(()=>{class e{constructor(){this._applications=new Map,Zu.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 Zu.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();class pb{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function gb(e){Zu=e}let os,Zu=new pb;const pg=new _n("AllowMultipleToken");class vb{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 l=mg();if(!l||l.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:Vl,useValue:"platform"});!function _b(e){if(os&&!os.destroyed&&!os.injector.get(pg,!1))throw new fe(400,"");os=e.get(yg);const t=e.get(ig,null);t&&t.forEach(n=>n())}($r.create({providers:d,name:r}))}return function Db(e){const t=mg();if(!t)throw new fe(401,"");return t}()}}function mg(){return os&&!os.destroyed?os:null}let yg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const d=function Eb(e,t){let n;return n="noop"===e?new hb:("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}),g=[{provide:xr,useValue:d}];return d.run(()=>{const E=$r.create({providers:g,parent:this.injector,name:n.moduleType.name}),T=n.create(E),F=T.injector.get(Mo,null);if(!F)throw new fe(402,"");return d.runOutsideAngular(()=>{const W=d.onError.subscribe({next:re=>{F.handleError(re)}});T.onDestroy(()=>{qu(this._modules,T),W.unsubscribe()})}),function bb(e,t,n){try{const r=n();return au(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(F,d,()=>{const W=T.injector.get(lo);return W.runInitializers(),W.donePromise.then(()=>(function rD(e){bt(e,"Expected localeId to be defined"),"string"==typeof e&&(Rh=e.toLowerCase().replace(/_/g,"-"))}(T.injector.get(ja,Ma)||Ma),this._moduleDoBootstrap(T),T))})})}bootstrapModule(n,r=[]){const s=vg({},r);return function mb(e,t,n){const r=new Ou(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 fe(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 fe(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)(zn($r))},e.\u0275prov=B({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,l){this._zone=n,this._injector=r,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=l,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 ne.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),g=new ne.y(E=>{let T;this._zone.runOutsideAngular(()=>{T=this._zone.onStable.subscribe(()=>{xr.assertNotInAngularZone(),Ku(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{xr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{T.unsubscribe(),F.unsubscribe()}});this.isStable=(0,le.T)(d,g.pipe((0,H.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new fe(405,"");let s;s=n instanceof ip?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);const i=function yb(e){return e.isBoundToModule}(s)?void 0:this._injector.get(io),d=s.create($r.NULL,[],r||s.selector,i),g=d.location.nativeElement,E=d.injector.get(fg,null),T=E&&d.injector.get(hg);return E&&T&&T.registerApplication(g,E),d.onDestroy(()=>{this.detachView(d.hostView),qu(this.components,d),T&&T.unregisterApplication(g)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new fe(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)(zn(xr),zn($r),zn(Mo),zn(Ho),zn(lo))},e.\u0275prov=B({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 wb(){Dg=!1}let Tb=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sb,e})();function Sb(e){return function Mb(e,t,n){if(Wr(e)&&!n){const r=Et(e.index,t);return new $o(r,r)}return 47&e.type?new $o(t[16],t):null}(x(),o(),16==(16&e))}class Mg{constructor(){}supports(t){return Ro(t)}create(t){return new Rb(t)}}const xb=(e,t)=>t;class Rb{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||xb}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 l=!r||n&&n.currentIndex<Ig(r,s,i)?n:r,d=Ig(l,s,i),g=l.currentIndex;if(l===r)s--,r=r._nextRemoved;else if(n=n._next,null==l.previousIndex)s++;else{i||(i=[]);const E=d-s,T=g-s;if(E!=T){for(let W=0;W<E;W++){const re=W<i.length?i[W]:i[W]=0,ge=re+W;T<=ge&&ge<E&&(i[W]=re+1)}i[l.previousIndex]=T-E}}d!==g&&t(l,d,g)}}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=[]),!Ro(t))throw new fe(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,i,l,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)i=t[d],l=this._trackByFn(d,i),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,i,l,d)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,l,d),r=!0),n=n._next}else s=0,function Gv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[zi()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,d=>{l=this._trackByFn(s,d),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,d,l,s)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,l,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 Nb(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 Nb{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 Fb{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 Fb,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 kb}}class kb{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 fe(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const i=s._prev,l=s._next;return i&&(i._next=l),l&&(l._prev=i),s._next=null,s._prev=null,s}const r=new Lb(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 Lb{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 hi]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new fe(901,"")}}return e.\u0275prov=B({token:e,providedIn:"root",factory:Og}),e})();function xg(){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||xg()),deps:[[e,new Ri,new hi]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new fe(901,"")}}return e.\u0275prov=B({token:e,providedIn:"root",factory:xg}),e})();const Bb=[new Pg],Ub=new Ha([new Mg]),Hb=new Va(Bb),Vb=gg(null,"core",[{provide:og,useValue:"unknown"},{provide:yg,deps:[$r]},{provide:hg,deps:[]},{provide:lg,deps:[]}]),Kb=[{provide:Yo,useClass:Yo,deps:[xr,$r,Mo,Ho,lo]},{provide:cE,deps:[xr],useFactory:function Yb(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:lo,useClass:lo,deps:[[new hi,zu]]},{provide:Wu,useClass:Wu,deps:[]},ib,{provide:Ha,useFactory:function $b(){return Ub},deps:[]},{provide:Va,useFactory:function zb(){return Hb},deps:[]},{provide:ja,useFactory:function Gb(e){return e||function Wb(){return"undefined"!=typeof $localize&&$localize.locale||Ma}()},deps:[[new Eo(ja),new hi,new Ri]]},{provide:ug,useValue:"USD"}];let Qb=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(zn(Yo))},e.\u0275mod=bn({type:e}),e.\u0275inj=R({providers:Kb}),e})()},6360:(We,ce,M)=>{M.d(ce,{Qb:()=>ut,PW:()=>Os});var p=M(5e3),m=M(2313),ne=M(1777);function le(){return"undefined"!=typeof window&&void 0!==window.document}function H(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function k(w){switch(w.length){case 0:return new ne.ZN;case 1:return w[0];default:return new ne.ZE(w)}}function X(w,a,o,f,C={},x={}){const U=[],V=[];let te=-1,he=null;if(f.forEach(Oe=>{const Je=Oe.offset,_t=Je==te,Tt=_t&&he||{};Object.keys(Oe).forEach(tt=>{let Xe=tt,Dt=Oe[tt];if("offset"!==tt)switch(Xe=a.normalizePropertyName(Xe,U),Dt){case ne.k1:Dt=C[tt];break;case ne.l3:Dt=x[tt];break;default:Dt=a.normalizeStyleValue(tt,Xe,Dt,U)}Tt[Xe]=Dt}),_t||V.push(Tt),he=Tt,te=Je}),U.length){const Oe="\n - ";throw new Error(`Unable to animate due to the following errors:${Oe}${U.join(Oe)}`)}return V}function J(w,a,o,f){switch(a){case"start":w.onStart(()=>f(o&&ie(o,"start",w)));break;case"done":w.onDone(()=>f(o&&ie(o,"done",w)));break;case"destroy":w.onDestroy(()=>f(o&&ie(o,"destroy",w)))}}function ie(w,a,o){const f=o.totalTime,x=$(w.element,w.triggerName,w.fromState,w.toState,a||w.phaseName,null==f?w.totalTime:f,!!o.disabled),U=w._data;return null!=U&&(x._data=U),x}function $(w,a,o,f,C="",x=0,U){return{element:w,triggerName:a,fromState:o,toState:f,phaseName:C,totalTime:x,disabled:!!U}}function z(w,a,o){let f;return w instanceof Map?(f=w.get(a),f||w.set(a,f=o)):(f=w[a],f||(f=w[a]=o)),f}function Z(w){const a=w.indexOf(":");return[w.substring(1,a),w.substr(a+1)]}let ue=(w,a)=>!1,Me=(w,a,o)=>[];(H()||"undefined"!=typeof Element)&&(ue=le()?(w,a)=>{for(;a&&a!==document.documentElement;){if(a===w)return!0;a=a.parentNode||a.host}return!1}:(w,a)=>w.contains(a),Me=(w,a,o)=>{if(o)return Array.from(w.querySelectorAll(a));const f=w.querySelector(a);return f?[f]:[]});let Ee=null,Ue=!1;function xe(w){Ee||(Ee=function qe(){return"undefined"!=typeof document?document.body:null}()||{},Ue=!!Ee.style&&"WebkitAppearance"in Ee.style);let a=!0;return Ee.style&&!function we(w){return"ebkit"==w.substring(1,6)}(w)&&(a=w in Ee.style,!a&&Ue&&(a="Webkit"+w.charAt(0).toUpperCase()+w.substr(1)in Ee.style)),a}const ke=ue,ye=Me;function He(w){const a={};return Object.keys(w).forEach(o=>{const f=o.replace(/([a-z])([A-Z])/g,"$1-$2");a[f]=w[o]}),a}let jt=(()=>{class w{validateStyleProperty(o){return xe(o)}matchesElement(o,f){return!1}containsElement(o,f){return ke(o,f)}query(o,f,C){return ye(o,f,C)}computeStyle(o,f,C){return C||""}animate(o,f,C,x,U,V=[],te){return new ne.ZN(C,x)}}return w.\u0275fac=function(o){return new(o||w)},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac}),w})(),Wt=(()=>{class w{}return w.NOOP=new jt,w})();const nt="ng-enter",rt="ng-leave",Be="ng-trigger",Fe=".ng-trigger",Un="ng-animating",zt=".ng-animating";function Ot(w){if("number"==typeof w)return w;const a=w.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:bt(parseFloat(a[1]),a[2])}function bt(w,a){return"s"===a?1e3*w:w}function ze(w,a,o){return w.hasOwnProperty("duration")?w:function en(w,a,o){let C,x=0,U="";if("string"==typeof w){const V=w.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===V)return a.push(`The provided timing value "${w}" is invalid.`),{duration:0,delay:0,easing:""};C=bt(parseFloat(V[1]),V[2]);const te=V[3];null!=te&&(x=bt(parseFloat(te),V[4]));const he=V[5];he&&(U=he)}else C=w;if(!o){let V=!1,te=a.length;C<0&&(a.push("Duration values below 0 are not allowed for this animation step."),V=!0),x<0&&(a.push("Delay values below 0 are not allowed for this animation step."),V=!0),V&&a.splice(te,0,`The provided timing value "${w}" is invalid.`)}return{duration:C,delay:x,easing:U}}(w,a,o)}function Nn(w,a={}){return Object.keys(w).forEach(o=>{a[o]=w[o]}),a}function B(w,a,o={}){if(a)for(let f in w)o[f]=w[f];else Nn(w,o);return o}function N(w,a,o){return o?a+":"+o+";":""}function R(w){let a="";for(let o=0;o<w.style.length;o++){const f=w.style.item(o);a+=N(0,f,w.style.getPropertyValue(f))}for(const o in w.style)w.style.hasOwnProperty(o)&&!o.startsWith("_")&&(a+=N(0,tn(o),w.style[o]));w.setAttribute("style",a)}function G(w,a,o){w.style&&(Object.keys(a).forEach(f=>{const C=Ne(f);o&&!o.hasOwnProperty(f)&&(o[f]=w.style[C]),w.style[C]=a[f]}),H()&&R(w))}function se(w,a){w.style&&(Object.keys(a).forEach(o=>{const f=Ne(o);w.style[f]=""}),H()&&R(w))}function ae(w){return Array.isArray(w)?1==w.length?w[0]:(0,ne.vP)(w):w}const Ae=new RegExp("{{\\s*(.+?)\\s*}}","g");function et(w){let a=[];if("string"==typeof w){let o;for(;o=Ae.exec(w);)a.push(o[1]);Ae.lastIndex=0}return a}function Se(w,a,o){const f=w.toString(),C=f.replace(Ae,(x,U)=>{let V=a[U];return a.hasOwnProperty(U)||(o.push(`Please provide a value for the animation param ${U}`),V=""),V.toString()});return C==f?w:C}function st(w){const a=[];let o=w.next();for(;!o.done;)a.push(o.value),o=w.next();return a}const Kt=/-+([a-z0-9])/g;function Ne(w){return w.replace(Kt,(...a)=>a[1].toUpperCase())}function tn(w){return w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Nt(w,a){return 0===w||0===a}function fn(w,a,o){const f=Object.keys(o);if(f.length&&a.length){let x=a[0],U=[];if(f.forEach(V=>{x.hasOwnProperty(V)||U.push(V),x[V]=o[V]}),U.length)for(var C=1;C<a.length;C++){let V=a[C];U.forEach(function(te){V[te]=ve(w,te)})}}return a}function sn(w,a,o){switch(a.type){case 7:return w.visitTrigger(a,o);case 0:return w.visitState(a,o);case 1:return w.visitTransition(a,o);case 2:return w.visitSequence(a,o);case 3:return w.visitGroup(a,o);case 4:return w.visitAnimate(a,o);case 5:return w.visitKeyframes(a,o);case 6:return w.visitStyle(a,o);case 8:return w.visitReference(a,o);case 9:return w.visitAnimateChild(a,o);case 10:return w.visitAnimateRef(a,o);case 11:return w.visitQuery(a,o);case 12:return w.visitStagger(a,o);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function ve(w,a){return window.getComputedStyle(w)[a]}const Y="*";function j(w,a){const o=[];return"string"==typeof w?w.split(/\s*,\s*/).forEach(f=>function Te(w,a,o){if(":"==w[0]){const te=function De(w,a){switch(w){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,f)=>parseFloat(f)>parseFloat(o);case":decrement":return(o,f)=>parseFloat(f)<parseFloat(o);default:return a.push(`The transition alias value "${w}" is not supported`),"* => *"}}(w,o);if("function"==typeof te)return void a.push(te);w=te}const f=w.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==f||f.length<4)return o.push(`The provided transition expression "${w}" is not supported`),a;const C=f[1],x=f[2],U=f[3];a.push(Ge(C,U));"<"==x[0]&&!(C==Y&&U==Y)&&a.push(Ge(U,C))}(f,o,a)):o.push(w),o}const Re=new Set(["true","1"]),Pe=new Set(["false","0"]);function Ge(w,a){const o=Re.has(w)||Pe.has(w),f=Re.has(a)||Pe.has(a);return(C,x)=>{let U=w==Y||w==C,V=a==Y||a==x;return!U&&o&&"boolean"==typeof C&&(U=C?Re.has(w):Pe.has(w)),!V&&f&&"boolean"==typeof x&&(V=x?Re.has(a):Pe.has(a)),U&&V}}const on=new RegExp("s*:selfs*,?","g");function ot(w,a,o){return new nn(w).build(a,o)}class nn{constructor(a){this._driver=a}build(a,o){const f=new Lt(o);return this._resetContextStyleTimingState(f),sn(this,ae(a),f)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,o){let f=o.queryCount=0,C=o.depCount=0;const x=[],U=[];return"@"==a.name.charAt(0)&&o.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(V=>{if(this._resetContextStyleTimingState(o),0==V.type){const te=V,he=te.name;he.toString().split(/\s*,\s*/).forEach(Oe=>{te.name=Oe,x.push(this.visitState(te,o))}),te.name=he}else if(1==V.type){const te=this.visitTransition(V,o);f+=te.queryCount,C+=te.depCount,U.push(te)}else o.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:x,transitions:U,queryCount:f,depCount:C,options:null}}visitState(a,o){const f=this.visitStyle(a.styles,o),C=a.options&&a.options.params||null;if(f.containsDynamicStyles){const x=new Set,U=C||{};if(f.styles.forEach(V=>{if(Ct(V)){const te=V;Object.keys(te).forEach(he=>{et(te[he]).forEach(Oe=>{U.hasOwnProperty(Oe)||x.add(Oe)})})}}),x.size){const V=st(x.values());o.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${V.join(", ")}`)}}return{type:0,name:a.name,style:f,options:C?{params:C}:null}}visitTransition(a,o){o.queryCount=0,o.depCount=0;const f=sn(this,ae(a.animation),o);return{type:1,matchers:j(a.expr,o.errors),animation:f,queryCount:o.queryCount,depCount:o.depCount,options:un(a.options)}}visitSequence(a,o){return{type:2,steps:a.steps.map(f=>sn(this,f,o)),options:un(a.options)}}visitGroup(a,o){const f=o.currentTime;let C=0;const x=a.steps.map(U=>{o.currentTime=f;const V=sn(this,U,o);return C=Math.max(C,o.currentTime),V});return o.currentTime=C,{type:3,steps:x,options:un(a.options)}}visitAnimate(a,o){const f=function Fn(w,a){let o=null;if(w.hasOwnProperty("duration"))o=w;else if("number"==typeof w)return gn(ze(w,a).duration,0,"");const f=w;if(f.split(/\s+/).some(x=>"{"==x.charAt(0)&&"{"==x.charAt(1))){const x=gn(0,0,"");return x.dynamic=!0,x.strValue=f,x}return o=o||ze(f,a),gn(o.duration,o.delay,o.easing)}(a.timings,o.errors);o.currentAnimateTimings=f;let C,x=a.styles?a.styles:(0,ne.oB)({});if(5==x.type)C=this.visitKeyframes(x,o);else{let U=a.styles,V=!1;if(!U){V=!0;const he={};f.easing&&(he.easing=f.easing),U=(0,ne.oB)(he)}o.currentTime+=f.duration+f.delay;const te=this.visitStyle(U,o);te.isEmptyStep=V,C=te}return o.currentAnimateTimings=null,{type:4,timings:f,style:C,options:null}}visitStyle(a,o){const f=this._makeStyleAst(a,o);return this._validateStyleAst(f,o),f}_makeStyleAst(a,o){const f=[];Array.isArray(a.styles)?a.styles.forEach(U=>{"string"==typeof U?U==ne.l3?f.push(U):o.errors.push(`The provided style string value ${U} is not allowed.`):f.push(U)}):f.push(a.styles);let C=!1,x=null;return f.forEach(U=>{if(Ct(U)){const V=U,te=V.easing;if(te&&(x=te,delete V.easing),!C)for(let he in V)if(V[he].toString().indexOf("{{")>=0){C=!0;break}}}),{type:6,styles:f,easing:x,offset:a.offset,containsDynamicStyles:C,options:null}}_validateStyleAst(a,o){const f=o.currentAnimateTimings;let C=o.currentTime,x=o.currentTime;f&&x>0&&(x-=f.duration+f.delay),a.styles.forEach(U=>{"string"!=typeof U&&Object.keys(U).forEach(V=>{if(!this._driver.validateStyleProperty(V))return void o.errors.push(`The provided animation property "${V}" is not a supported CSS property for animations`);const te=o.collectedStyles[o.currentQuerySelector],he=te[V];let Oe=!0;he&&(x!=C&&x>=he.startTime&&C<=he.endTime&&(o.errors.push(`The CSS property "${V}" that exists between the times of "${he.startTime}ms" and "${he.endTime}ms" is also being animated in a parallel animation between the times of "${x}ms" and "${C}ms"`),Oe=!1),x=he.startTime),Oe&&(te[V]={startTime:x,endTime:C}),o.options&&function be(w,a,o){const f=a.params||{},C=et(w);C.length&&C.forEach(x=>{f.hasOwnProperty(x)||o.push(`Unable to resolve the local animation param ${x} in the given list of values`)})}(U[V],o.options,o.errors)})})}visitKeyframes(a,o){const f={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push("keyframes() must be placed inside of a call to animate()"),f;let x=0;const U=[];let V=!1,te=!1,he=0;const Oe=a.steps.map(ln=>{const qt=this._makeStyleAst(ln,o);let dn=null!=qt.offset?qt.offset:function ft(w){if("string"==typeof w)return null;let a=null;if(Array.isArray(w))w.forEach(o=>{if(Ct(o)&&o.hasOwnProperty("offset")){const f=o;a=parseFloat(f.offset),delete f.offset}});else if(Ct(w)&&w.hasOwnProperty("offset")){const o=w;a=parseFloat(o.offset),delete o.offset}return a}(qt.styles),wn=0;return null!=dn&&(x++,wn=qt.offset=dn),te=te||wn<0||wn>1,V=V||wn<he,he=wn,U.push(wn),qt});te&&o.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),V&&o.errors.push("Please ensure that all keyframe offsets are in order");const Je=a.steps.length;let _t=0;x>0&&x<Je?o.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==x&&(_t=1/(Je-1));const Tt=Je-1,tt=o.currentTime,Xe=o.currentAnimateTimings,Dt=Xe.duration;return Oe.forEach((ln,qt)=>{const dn=_t>0?qt==Tt?1:_t*qt:U[qt],wn=dn*Dt;o.currentTime=tt+Xe.delay+wn,Xe.duration=wn,this._validateStyleAst(ln,o),ln.offset=dn,f.styles.push(ln)}),f}visitReference(a,o){return{type:8,animation:sn(this,ae(a.animation),o),options:un(a.options)}}visitAnimateChild(a,o){return o.depCount++,{type:9,options:un(a.options)}}visitAnimateRef(a,o){return{type:10,animation:this.visitReference(a.animation,o),options:un(a.options)}}visitQuery(a,o){const f=o.currentQuerySelector,C=a.options||{};o.queryCount++,o.currentQuery=a;const[x,U]=function mt(w){const a=!!w.split(/\s*,\s*/).find(o=>":self"==o);return a&&(w=w.replace(on,"")),w=w.replace(/@\*/g,Fe).replace(/@\w+/g,o=>Fe+"-"+o.substr(1)).replace(/:animating/g,zt),[w,a]}(a.selector);o.currentQuerySelector=f.length?f+" "+x:x,z(o.collectedStyles,o.currentQuerySelector,{});const V=sn(this,ae(a.animation),o);return o.currentQuery=null,o.currentQuerySelector=f,{type:11,selector:x,limit:C.limit||0,optional:!!C.optional,includeSelf:U,animation:V,originalSelector:a.selector,options:un(a.options)}}visitStagger(a,o){o.currentQuery||o.errors.push("stagger() can only be used inside of query()");const f="full"===a.timings?{duration:0,delay:0,easing:"full"}:ze(a.timings,o.errors,!0);return{type:12,animation:sn(this,ae(a.animation),o),timings:f,options:null}}}class Lt{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ct(w){return!Array.isArray(w)&&"object"==typeof w}function un(w){return w?(w=Nn(w)).params&&(w.params=function Ve(w){return w?Nn(w):null}(w.params)):w={},w}function gn(w,a,o){return{duration:w,delay:a,easing:o}}function Dr(w,a,o,f,C,x,U=null,V=!1){return{type:1,element:w,keyframes:a,preStyleProps:o,postStyleProps:f,duration:C,delay:x,totalTime:C+x,easing:U,subTimeline:V}}class Gn{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,o){let f=this._map.get(a);f||this._map.set(a,f=[]),f.push(...o)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Kn=new RegExp(":enter","g"),bn=new RegExp(":leave","g");function yt(w,a,o,f,C,x={},U={},V,te,he=[]){return(new oe).buildKeyframes(w,a,o,f,C,x,U,V,te,he)}class oe{buildKeyframes(a,o,f,C,x,U,V,te,he,Oe=[]){he=he||new Gn;const Je=new b(a,o,he,C,x,Oe,[]);Je.options=te,Je.currentTimeline.setStyles([U],null,Je.errors,te),sn(this,f,Je);const _t=Je.timelines.filter(Tt=>Tt.containsAnimation());if(Object.keys(V).length){let Tt;for(let tt=_t.length-1;tt>=0;tt--){const Xe=_t[tt];if(Xe.element===o){Tt=Xe;break}}Tt&&!Tt.allowOnlyTimelineStyles()&&Tt.setStyles([V],null,Je.errors,te)}return _t.length?_t.map(Tt=>Tt.buildKeyframes()):[Dr(o,[],[],[],0,0,"",!1)]}visitTrigger(a,o){}visitState(a,o){}visitTransition(a,o){}visitAnimateChild(a,o){const f=o.subInstructions.get(o.element);if(f){const C=o.createSubContext(a.options),x=o.currentTimeline.currentTime,U=this._visitSubInstructions(f,C,C.options);x!=U&&o.transformIntoNewTimeline(U)}o.previousNode=a}visitAnimateRef(a,o){const f=o.createSubContext(a.options);f.transformIntoNewTimeline(),this.visitReference(a.animation,f),o.transformIntoNewTimeline(f.currentTimeline.currentTime),o.previousNode=a}_visitSubInstructions(a,o,f){let x=o.currentTimeline.currentTime;const U=null!=f.duration?Ot(f.duration):null,V=null!=f.delay?Ot(f.delay):null;return 0!==U&&a.forEach(te=>{const he=o.appendInstructionToTimeline(te,U,V);x=Math.max(x,he.duration+he.delay)}),x}visitReference(a,o){o.updateOptions(a.options,!0),sn(this,a.animation,o),o.previousNode=a}visitSequence(a,o){const f=o.subContextCount;let C=o;const x=a.options;if(x&&(x.params||x.delay)&&(C=o.createSubContext(x),C.transformIntoNewTimeline(),null!=x.delay)){6==C.previousNode.type&&(C.currentTimeline.snapshotCurrentStyles(),C.previousNode=q);const U=Ot(x.delay);C.delayNextStep(U)}a.steps.length&&(a.steps.forEach(U=>sn(this,U,C)),C.currentTimeline.applyStylesToKeyframe(),C.subContextCount>f&&C.transformIntoNewTimeline()),o.previousNode=a}visitGroup(a,o){const f=[];let C=o.currentTimeline.currentTime;const x=a.options&&a.options.delay?Ot(a.options.delay):0;a.steps.forEach(U=>{const V=o.createSubContext(a.options);x&&V.delayNextStep(x),sn(this,U,V),C=Math.max(C,V.currentTimeline.currentTime),f.push(V.currentTimeline)}),f.forEach(U=>o.currentTimeline.mergeTimelineCollectedStyles(U)),o.transformIntoNewTimeline(C),o.previousNode=a}_visitTiming(a,o){if(a.dynamic){const f=a.strValue;return ze(o.params?Se(f,o.params,o.errors):f,o.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,o){const f=o.currentAnimateTimings=this._visitTiming(a.timings,o),C=o.currentTimeline;f.delay&&(o.incrementTime(f.delay),C.snapshotCurrentStyles());const x=a.style;5==x.type?this.visitKeyframes(x,o):(o.incrementTime(f.duration),this.visitStyle(x,o),C.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=a}visitStyle(a,o){const f=o.currentTimeline,C=o.currentAnimateTimings;!C&&f.getCurrentStyleProperties().length&&f.forwardFrame();const x=C&&C.easing||a.easing;a.isEmptyStep?f.applyEmptyStep(x):f.setStyles(a.styles,x,o.errors,o.options),o.previousNode=a}visitKeyframes(a,o){const f=o.currentAnimateTimings,C=o.currentTimeline.duration,x=f.duration,V=o.createSubContext().currentTimeline;V.easing=f.easing,a.styles.forEach(te=>{V.forwardTime((te.offset||0)*x),V.setStyles(te.styles,te.easing,o.errors,o.options),V.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(V),o.transformIntoNewTimeline(C+x),o.previousNode=a}visitQuery(a,o){const f=o.currentTimeline.currentTime,C=a.options||{},x=C.delay?Ot(C.delay):0;x&&(6===o.previousNode.type||0==f&&o.currentTimeline.getCurrentStyleProperties().length)&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=q);let U=f;const V=o.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!C.optional,o.errors);o.currentQueryTotal=V.length;let te=null;V.forEach((he,Oe)=>{o.currentQueryIndex=Oe;const Je=o.createSubContext(a.options,he);x&&Je.delayNextStep(x),he===o.element&&(te=Je.currentTimeline),sn(this,a.animation,Je),Je.currentTimeline.applyStylesToKeyframe(),U=Math.max(U,Je.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(U),te&&(o.currentTimeline.mergeTimelineCollectedStyles(te),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=a}visitStagger(a,o){const f=o.parentContext,C=o.currentTimeline,x=a.timings,U=Math.abs(x.duration),V=U*(o.currentQueryTotal-1);let te=U*o.currentQueryIndex;switch(x.duration<0?"reverse":x.easing){case"reverse":te=V-te;break;case"full":te=f.currentStaggerTime}const Oe=o.currentTimeline;te&&Oe.delayNextStep(te);const Je=Oe.currentTime;sn(this,a.animation,o),o.previousNode=a,f.currentStaggerTime=C.currentTime-Je+(C.startTime-f.currentTimeline.startTime)}}const q={};class b{constructor(a,o,f,C,x,U,V,te){this._driver=a,this.element=o,this.subInstructions=f,this._enterClassName=C,this._leaveClassName=x,this.errors=U,this.timelines=V,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=q,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=te||new P(this._driver,o,0),V.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,o){if(!a)return;const f=a;let C=this.options;null!=f.duration&&(C.duration=Ot(f.duration)),null!=f.delay&&(C.delay=Ot(f.delay));const x=f.params;if(x){let U=C.params;U||(U=this.options.params={}),Object.keys(x).forEach(V=>{(!o||!U.hasOwnProperty(V))&&(U[V]=Se(x[V],U,this.errors))})}}_copyOptions(){const a={};if(this.options){const o=this.options.params;if(o){const f=a.params={};Object.keys(o).forEach(C=>{f[C]=o[C]})}}return a}createSubContext(a=null,o,f){const C=o||this.element,x=new b(this._driver,C,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(C,f||0));return x.previousNode=this.previousNode,x.currentAnimateTimings=this.currentAnimateTimings,x.options=this._copyOptions(),x.updateOptions(a),x.currentQueryIndex=this.currentQueryIndex,x.currentQueryTotal=this.currentQueryTotal,x.parentContext=this,this.subContextCount++,x}transformIntoNewTimeline(a){return this.previousNode=q,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,o,f){const C={duration:null!=o?o:a.duration,delay:this.currentTimeline.currentTime+(null!=f?f:0)+a.delay,easing:""},x=new A(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,C,a.stretchStartingKeyframe);return this.timelines.push(x),C}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,o,f,C,x,U){let V=[];if(C&&V.push(this.element),a.length>0){a=(a=a.replace(Kn,"."+this._enterClassName)).replace(bn,"."+this._leaveClassName);let he=this._driver.query(this.element,a,1!=f);0!==f&&(he=f<0?he.slice(he.length+f,he.length):he.slice(0,f)),V.push(...he)}return!x&&0==V.length&&U.push(`\`query("${o}")\` returned zero elements. (Use \`query("${o}", { optional: true })\` if you wish to allow this.)`),V}}class P{constructor(a,o,f,C){this._driver=a,this.element=o,this.startTime=f,this._elementTimelineStylesLookup=C,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(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const o=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||o?(this.forwardTime(this.currentTime+a),o&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,o){return this.applyStylesToKeyframe(),new P(this._driver,a,o||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,o){this._localTimelineStyles[a]=o,this._globalTimelineStyles[a]=o,this._styleSummary[a]={time:this.currentTime,value:o}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(o=>{this._backFill[o]=this._globalTimelineStyles[o]||ne.l3,this._currentKeyframe[o]=ne.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,o,f,C){o&&(this._previousKeyframe.easing=o);const x=C&&C.params||{},U=function $e(w,a){const o={};let f;return w.forEach(C=>{"*"===C?(f=f||Object.keys(a),f.forEach(x=>{o[x]=ne.l3})):B(C,!1,o)}),o}(a,this._globalTimelineStyles);Object.keys(U).forEach(V=>{const te=Se(U[V],x,f);this._pendingStyles[V]=te,this._localTimelineStyles.hasOwnProperty(V)||(this._backFill[V]=this._globalTimelineStyles.hasOwnProperty(V)?this._globalTimelineStyles[V]:ne.l3),this._updateStyle(V,te)})}applyStylesToKeyframe(){const a=this._pendingStyles,o=Object.keys(a);0!=o.length&&(this._pendingStyles={},o.forEach(f=>{this._currentKeyframe[f]=a[f]}),Object.keys(this._localTimelineStyles).forEach(f=>{this._currentKeyframe.hasOwnProperty(f)||(this._currentKeyframe[f]=this._localTimelineStyles[f])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const o=this._localTimelineStyles[a];this._pendingStyles[a]=o,this._updateStyle(a,o)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let o in this._currentKeyframe)a.push(o);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(o=>{const f=this._styleSummary[o],C=a._styleSummary[o];(!f||C.time>f.time)&&this._updateStyle(o,C.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,o=new Set,f=1===this._keyframes.size&&0===this.duration;let C=[];this._keyframes.forEach((V,te)=>{const he=B(V,!0);Object.keys(he).forEach(Oe=>{const Je=he[Oe];Je==ne.k1?a.add(Oe):Je==ne.l3&&o.add(Oe)}),f||(he.offset=te/this.duration),C.push(he)});const x=a.size?st(a.values()):[],U=o.size?st(o.values()):[];if(f){const V=C[0],te=Nn(V);V.offset=0,te.offset=1,C=[V,te]}return Dr(this.element,C,x,U,this.duration,this.startTime,this.easing,!1)}}class A extends P{constructor(a,o,f,C,x,U,V=!1){super(a,o,U.delay),this.keyframes=f,this.preStyleProps=C,this.postStyleProps=x,this._stretchStartingKeyframe=V,this.timings={duration:U.duration,delay:U.delay,easing:U.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:o,duration:f,easing:C}=this.timings;if(this._stretchStartingKeyframe&&o){const x=[],U=f+o,V=o/U,te=B(a[0],!1);te.offset=0,x.push(te);const he=B(a[0],!1);he.offset=ee(V),x.push(he);const Oe=a.length-1;for(let Je=1;Je<=Oe;Je++){let _t=B(a[Je],!1);_t.offset=ee((o+_t.offset*f)/U),x.push(_t)}f=U,o=0,C="",a=x}return Dr(this.element,a,this.preStyleProps,this.postStyleProps,f,o,C,!0)}}function ee(w,a=3){const o=Math.pow(10,a-1);return Math.round(w*o)/o}class Pt{}class sr extends Pt{normalizePropertyName(a,o){return Ne(a)}normalizeStyleValue(a,o,f,C){let x="";const U=f.toString().trim();if(fr[o]&&0!==f&&"0"!==f)if("number"==typeof f)x="px";else{const V=f.match(/^[+-]?[\d\.]+([a-z]*)$/);V&&0==V[1].length&&C.push(`Please provide a CSS unit value for ${a}:${f}`)}return U+x}}const fr=(()=>function hn(w){const a={};return w.forEach(o=>a[o]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Er(w,a,o,f,C,x,U,V,te,he,Oe,Je,_t){return{type:0,element:w,triggerName:a,isRemovalTransition:C,fromState:o,fromStyles:x,toState:f,toStyles:U,timelines:V,queriedElements:te,preStyleProps:he,postStyleProps:Oe,totalTime:Je,errors:_t}}const Cn={};class Le{constructor(a,o,f){this._triggerName=a,this.ast=o,this._stateStyles=f}match(a,o,f,C){return function wt(w,a,o,f,C){return w.some(x=>x(a,o,f,C))}(this.ast.matchers,a,o,f,C)}buildStyles(a,o,f){const C=this._stateStyles["*"],x=this._stateStyles[a],U=C?C.buildStyles(o,f):{};return x?x.buildStyles(o,f):U}build(a,o,f,C,x,U,V,te,he,Oe){const Je=[],_t=this.ast.options&&this.ast.options.params||Cn,tt=this.buildStyles(f,V&&V.params||Cn,Je),Xe=te&&te.params||Cn,Dt=this.buildStyles(C,Xe,Je),ln=new Set,qt=new Map,dn=new Map,wn="void"===C,qr={params:Object.assign(Object.assign({},_t),Xe)},yr=Oe?[]:yt(a,o,this.ast.animation,x,U,tt,Dt,qr,he,Je);let xn=0;if(yr.forEach(Jn=>{xn=Math.max(Jn.duration+Jn.delay,xn)}),Je.length)return Er(o,this._triggerName,f,C,wn,tt,Dt,[],[],qt,dn,xn,Je);yr.forEach(Jn=>{const lr=Jn.element,xs=z(qt,lr,{});Jn.preStyleProps.forEach(Ur=>xs[Ur]=!0);const fs=z(dn,lr,{});Jn.postStyleProps.forEach(Ur=>fs[Ur]=!0),lr!==o&&ln.add(lr)});const vr=st(ln.values());return Er(o,this._triggerName,f,C,wn,tt,Dt,yr,vr,qt,dn,xn)}}class Gt{constructor(a,o,f){this.styles=a,this.defaultParams=o,this.normalizer=f}buildStyles(a,o){const f={},C=Nn(this.defaultParams);return Object.keys(a).forEach(x=>{const U=a[x];null!=U&&(C[x]=U)}),this.styles.styles.forEach(x=>{if("string"!=typeof x){const U=x;Object.keys(U).forEach(V=>{let te=U[V];te.length>1&&(te=Se(te,C,o));const he=this.normalizer.normalizePropertyName(V,o);te=this.normalizer.normalizeStyleValue(V,he,te,o),f[he]=te})}}),f}}class Yn{constructor(a,o,f){this.name=a,this.ast=o,this._normalizer=f,this.transitionFactories=[],this.states={},o.states.forEach(C=>{this.states[C.name]=new Gt(C.style,C.options&&C.options.params||{},f)}),Qn(this.states,"true","1"),Qn(this.states,"false","0"),o.transitions.forEach(C=>{this.transitionFactories.push(new Le(a,C,this.states))}),this.fallbackTransition=function pn(w,a,o){return new Le(w,{type:1,animation:{type:2,steps:[],options:null},matchers:[(U,V)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,o,f,C){return this.transitionFactories.find(U=>U.match(a,o,f,C))||null}matchStyles(a,o,f){return this.fallbackTransition.buildStyles(a,o,f)}}function Qn(w,a,o){w.hasOwnProperty(a)?w.hasOwnProperty(o)||(w[o]=w[a]):w.hasOwnProperty(o)&&(w[a]=w[o])}const Qt=new Gn;class Fr{constructor(a,o,f){this.bodyNode=a,this._driver=o,this._normalizer=f,this._animations={},this._playersById={},this.players=[]}register(a,o){const f=[],C=ot(this._driver,o,f);if(f.length)throw new Error(`Unable to build the animation due to the following errors: ${f.join("\n")}`);this._animations[a]=C}_buildPlayer(a,o,f){const C=a.element,x=X(0,this._normalizer,0,a.keyframes,o,f);return this._driver.animate(C,x,a.duration,a.delay,a.easing,[],!0)}create(a,o,f={}){const C=[],x=this._animations[a];let U;const V=new Map;if(x?(U=yt(this._driver,o,x,nt,rt,{},{},f,Qt,C),U.forEach(Oe=>{const Je=z(V,Oe.element,{});Oe.postStyleProps.forEach(_t=>Je[_t]=null)})):(C.push("The requested animation doesn't exist or has already been destroyed"),U=[]),C.length)throw new Error(`Unable to create the animation due to the following errors: ${C.join("\n")}`);V.forEach((Oe,Je)=>{Object.keys(Oe).forEach(_t=>{Oe[_t]=this._driver.computeStyle(Je,_t,ne.l3)})});const he=k(U.map(Oe=>{const Je=V.get(Oe.element);return this._buildPlayer(Oe,{},Je)}));return this._playersById[a]=he,he.onDestroy(()=>this.destroy(a)),this.players.push(he),he}destroy(a){const o=this._getPlayer(a);o.destroy(),delete this._playersById[a];const f=this.players.indexOf(o);f>=0&&this.players.splice(f,1)}_getPlayer(a){const o=this._playersById[a];if(!o)throw new Error(`Unable to find the timeline player referenced by ${a}`);return o}listen(a,o,f,C){const x=$(o,"","","");return J(this._getPlayer(a),f,x,C),()=>{}}command(a,o,f,C){if("register"==f)return void this.register(a,C[0]);if("create"==f)return void this.create(a,o,C[0]||{});const x=this._getPlayer(a);switch(f){case"play":x.play();break;case"pause":x.pause();break;case"reset":x.reset();break;case"restart":x.restart();break;case"finish":x.finish();break;case"init":x.init();break;case"setPosition":x.setPosition(parseFloat(C[0]));break;case"destroy":this.destroy(a)}}}const br="ng-animate-queued",hr="ng-animate-disabled",yn=[],pr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut="__ng_removed";class Ht{constructor(a,o=""){this.namespaceId=o;const f=a&&a.hasOwnProperty("value");if(this.value=function wr(w){return null!=w?w:null}(f?a.value:a),f){const x=Nn(a);delete x.value,this.options=x}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const o=a.params;if(o){const f=this.options.params;Object.keys(o).forEach(C=>{null==f[C]&&(f[C]=o[C])})}}}const kr="void",gr=new Ht(kr);class Mn{constructor(a,o,f){this.id=a,this.hostElement=o,this._engine=f,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Pn(o,this._hostClassName)}listen(a,o,f,C){if(!this._triggers.hasOwnProperty(o))throw new Error(`Unable to listen on the animation trigger event "${f}" because the animation trigger "${o}" doesn't exist!`);if(null==f||0==f.length)throw new Error(`Unable to listen on the animation trigger "${o}" because the provided event is undefined!`);if(!function Kr(w){return"start"==w||"done"==w}(f))throw new Error(`The provided animation trigger event "${f}" for the animation trigger "${o}" is not supported!`);const x=z(this._elementListeners,a,[]),U={name:o,phase:f,callback:C};x.push(U);const V=z(this._engine.statesByElement,a,{});return V.hasOwnProperty(o)||(Pn(a,Be),Pn(a,Be+"-"+o),V[o]=gr),()=>{this._engine.afterFlush(()=>{const te=x.indexOf(U);te>=0&&x.splice(te,1),this._triggers[o]||delete V[o]})}}register(a,o){return!this._triggers[a]&&(this._triggers[a]=o,!0)}_getTrigger(a){const o=this._triggers[a];if(!o)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return o}trigger(a,o,f,C=!0){const x=this._getTrigger(o),U=new Cr(this.id,o,a);let V=this._engine.statesByElement.get(a);V||(Pn(a,Be),Pn(a,Be+"-"+o),this._engine.statesByElement.set(a,V={}));let te=V[o];const he=new Ht(f,this.id);if(!(f&&f.hasOwnProperty("value"))&&te&&he.absorbOptions(te.options),V[o]=he,te||(te=gr),he.value!==kr&&te.value===he.value){if(!function Di(w,a){const o=Object.keys(w),f=Object.keys(a);if(o.length!=f.length)return!1;for(let C=0;C<o.length;C++){const x=o[C];if(!a.hasOwnProperty(x)||w[x]!==a[x])return!1}return!0}(te.params,he.params)){const Xe=[],Dt=x.matchStyles(te.value,te.params,Xe),ln=x.matchStyles(he.value,he.params,Xe);Xe.length?this._engine.reportError(Xe):this._engine.afterFlush(()=>{se(a,Dt),G(a,ln)})}return}const _t=z(this._engine.playersByElement,a,[]);_t.forEach(Xe=>{Xe.namespaceId==this.id&&Xe.triggerName==o&&Xe.queued&&Xe.destroy()});let Tt=x.matchTransition(te.value,he.value,a,he.params),tt=!1;if(!Tt){if(!C)return;Tt=x.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:o,transition:Tt,fromState:te,toState:he,player:U,isFallbackTransition:tt}),tt||(Pn(a,br),U.onStart(()=>{or(a,br)})),U.onDone(()=>{let Xe=this.players.indexOf(U);Xe>=0&&this.players.splice(Xe,1);const Dt=this._engine.playersByElement.get(a);if(Dt){let ln=Dt.indexOf(U);ln>=0&&Dt.splice(ln,1)}}),this.players.push(U),_t.push(U),U}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((o,f)=>{delete o[a]}),this._elementListeners.forEach((o,f)=>{this._elementListeners.set(f,o.filter(C=>C.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const o=this._engine.playersByElement.get(a);o&&(o.forEach(f=>f.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,o){const f=this._engine.driver.query(a,Fe,!0);f.forEach(C=>{if(C[Ut])return;const x=this._engine.fetchNamespacesByElement(C);x.size?x.forEach(U=>U.triggerLeaveAnimation(C,o,!1,!0)):this.clearElementCache(C)}),this._engine.afterFlushAnimationsDone(()=>f.forEach(C=>this.clearElementCache(C)))}triggerLeaveAnimation(a,o,f,C){const x=this._engine.statesByElement.get(a),U=new Map;if(x){const V=[];if(Object.keys(x).forEach(te=>{if(U.set(te,x[te].value),this._triggers[te]){const he=this.trigger(a,te,kr,C);he&&V.push(he)}}),V.length)return this._engine.markElementAsRemoved(this.id,a,!0,o,U),f&&k(V).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const o=this._elementListeners.get(a),f=this._engine.statesByElement.get(a);if(o&&f){const C=new Set;o.forEach(x=>{const U=x.name;if(C.has(U))return;C.add(U);const te=this._triggers[U].fallbackTransition,he=f[U]||gr,Oe=new Ht(kr),Je=new Cr(this.id,U,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:U,transition:te,fromState:he,toState:Oe,player:Je,isFallbackTransition:!0})})}}removeNode(a,o){const f=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,o),this.triggerLeaveAnimation(a,o,!0))return;let C=!1;if(f.totalAnimations){const x=f.players.length?f.playersByQueriedElement.get(a):[];if(x&&x.length)C=!0;else{let U=a;for(;U=U.parentNode;)if(f.statesByElement.get(U)){C=!0;break}}}if(this.prepareLeaveAnimationListeners(a),C)f.markElementAsRemoved(this.id,a,!1,o);else{const x=a[Ut];(!x||x===pr)&&(f.afterFlush(()=>this.clearElementCache(a)),f.destroyInnerAnimations(a),f._onRemovalComplete(a,o))}}insertNode(a,o){Pn(a,this._hostClassName)}drainQueuedTransitions(a){const o=[];return this._queue.forEach(f=>{const C=f.player;if(C.destroyed)return;const x=f.element,U=this._elementListeners.get(x);U&&U.forEach(V=>{if(V.name==f.triggerName){const te=$(x,f.triggerName,f.fromState.value,f.toState.value);te._data=a,J(f.player,V.phase,te,V.callback)}}),C.markedForDestroy?this._engine.afterFlush(()=>{C.destroy()}):o.push(f)}),this._queue=[],o.sort((f,C)=>{const x=f.transition.ast.depCount,U=C.transition.ast.depCount;return 0==x||0==U?x-U:this._engine.driver.containsElement(f.element,C.element)?1:-1})}destroy(a){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let o=!1;return this._elementListeners.has(a)&&(o=!0),o=!!this._queue.find(f=>f.element===a)||o,o}}class An{constructor(a,o,f){this.bodyNode=a,this.driver=o,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=(C,x)=>{}}_onRemovalComplete(a,o){this.onRemovalComplete(a,o)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(o=>{o.players.forEach(f=>{f.queued&&a.push(f)})}),a}createNamespace(a,o){const f=new Mn(a,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(f,o):(this.newHostElements.set(o,f),this.collectEnterElement(o)),this._namespaceLookup[a]=f}_balanceNamespaceList(a,o){const f=this._namespaceList.length-1;if(f>=0){let C=!1;for(let x=f;x>=0;x--)if(this.driver.containsElement(this._namespaceList[x].hostElement,o)){this._namespaceList.splice(x+1,0,a),C=!0;break}C||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.set(o,a),a}register(a,o){let f=this._namespaceLookup[a];return f||(f=this.createNamespace(a,o)),f}registerTrigger(a,o,f){let C=this._namespaceLookup[a];C&&C.register(o,f)&&this.totalAnimations++}destroy(a,o){if(!a)return;const f=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(f.hostElement),delete this._namespaceLookup[a];const C=this._namespaceList.indexOf(f);C>=0&&this._namespaceList.splice(C,1)}),this.afterFlushAnimationsDone(()=>f.destroy(o))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const o=new Set,f=this.statesByElement.get(a);if(f){const C=Object.keys(f);for(let x=0;x<C.length;x++){const U=f[C[x]].namespaceId;if(U){const V=this._fetchNamespace(U);V&&o.add(V)}}}return o}trigger(a,o,f,C){if(In(o)){const x=this._fetchNamespace(a);if(x)return x.trigger(o,f,C),!0}return!1}insertNode(a,o,f,C){if(!In(o))return;const x=o[Ut];if(x&&x.setForRemoval){x.setForRemoval=!1,x.setForMove=!0;const U=this.collectedLeaveElements.indexOf(o);U>=0&&this.collectedLeaveElements.splice(U,1)}if(a){const U=this._fetchNamespace(a);U&&U.insertNode(o,f)}C&&this.collectEnterElement(o)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,o){o?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Pn(a,hr)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),or(a,hr))}removeNode(a,o,f,C){if(In(o)){const x=a?this._fetchNamespace(a):null;if(x?x.removeNode(o,C):this.markElementAsRemoved(a,o,!1,C),f){const U=this.namespacesByHostElement.get(o);U&&U.id!==a&&U.removeNode(o,C)}}else this._onRemovalComplete(o,C)}markElementAsRemoved(a,o,f,C,x){this.collectedLeaveElements.push(o),o[Ut]={namespaceId:a,setForRemoval:C,hasAnimation:f,removedBeforeQueried:!1,previousTriggersValues:x}}listen(a,o,f,C,x){return In(o)?this._fetchNamespace(a).listen(o,f,C,x):()=>{}}_buildInstruction(a,o,f,C,x){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,f,C,a.fromState.options,a.toState.options,o,x)}destroyInnerAnimations(a){let o=this.driver.query(a,Fe,!0);o.forEach(f=>this.destroyActiveAnimationsForElement(f)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(a,zt,!0),o.forEach(f=>this.finishActiveQueriedAnimationOnElement(f)))}destroyActiveAnimationsForElement(a){const o=this.playersByElement.get(a);o&&o.forEach(f=>{f.queued?f.markedForDestroy=!0:f.destroy()})}finishActiveQueriedAnimationOnElement(a){const o=this.playersByQueriedElement.get(a);o&&o.forEach(f=>f.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return k(this.players).onDone(()=>a());a()})}processLeaveNode(a){var o;const f=a[Ut];if(f&&f.setForRemoval){if(a[Ut]=pr,f.namespaceId){this.destroyInnerAnimations(a);const C=this._fetchNamespace(f.namespaceId);C&&C.clearElementCache(a)}this._onRemovalComplete(a,f.setForRemoval)}(null===(o=a.classList)||void 0===o?void 0:o.contains(hr))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(C=>{this.markElementAsDisabled(C,!1)})}flush(a=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((f,C)=>this._balanceNamespaceList(f,C)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let f=0;f<this.collectedEnterElements.length;f++)Pn(this.collectedEnterElements[f],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const f=[];try{o=this._flushAnimations(f,a)}finally{for(let C=0;C<f.length;C++)f[C]()}}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=[],o.length?k(o).onDone(()=>{f.forEach(C=>C())}):f.forEach(C=>C())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,o){const f=new Gn,C=[],x=new Map,U=[],V=new Map,te=new Map,he=new Map,Oe=new Set;this.disabledNodes.forEach(Ye=>{Oe.add(Ye);const it=this.driver.query(Ye,".ng-animate-queued",!0);for(let ct=0;ct<it.length;ct++)Oe.add(it[ct])});const Je=this.bodyNode,_t=Array.from(this.statesByElement.keys()),Tt=Vn(_t,this.collectedEnterElements),tt=new Map;let Xe=0;Tt.forEach((Ye,it)=>{const ct=nt+Xe++;tt.set(it,ct),Ye.forEach(It=>Pn(It,ct))});const Dt=[],ln=new Set,qt=new Set;for(let Ye=0;Ye<this.collectedLeaveElements.length;Ye++){const it=this.collectedLeaveElements[Ye],ct=it[Ut];ct&&ct.setForRemoval&&(Dt.push(it),ln.add(it),ct.hasAnimation?this.driver.query(it,".ng-star-inserted",!0).forEach(It=>ln.add(It)):qt.add(it))}const dn=new Map,wn=Vn(_t,Array.from(ln));wn.forEach((Ye,it)=>{const ct=rt+Xe++;dn.set(it,ct),Ye.forEach(It=>Pn(It,ct))}),a.push(()=>{Tt.forEach((Ye,it)=>{const ct=tt.get(it);Ye.forEach(It=>or(It,ct))}),wn.forEach((Ye,it)=>{const ct=dn.get(it);Ye.forEach(It=>or(It,ct))}),Dt.forEach(Ye=>{this.processLeaveNode(Ye)})});const qr=[],yr=[];for(let Ye=this._namespaceList.length-1;Ye>=0;Ye--)this._namespaceList[Ye].drainQueuedTransitions(o).forEach(ct=>{const It=ct.player,vn=ct.element;if(qr.push(It),this.collectedEnterElements.length){const Rn=vn[Ut];if(Rn&&Rn.setForMove){if(Rn.previousTriggersValues&&Rn.previousTriggersValues.has(ct.triggerName)){const Jr=Rn.previousTriggersValues.get(ct.triggerName),Mr=this.statesByElement.get(ct.element);Mr&&Mr[ct.triggerName]&&(Mr[ct.triggerName].value=Jr)}return void It.destroy()}}const _r=!Je||!this.driver.containsElement(Je,vn),Yt=dn.get(vn),Tn=tt.get(vn),gt=this._buildInstruction(ct,f,Tn,Yt,_r);if(gt.errors&>.errors.length)return void yr.push(gt);if(_r)return It.onStart(()=>se(vn,gt.fromStyles)),It.onDestroy(()=>G(vn,gt.toStyles)),void C.push(It);if(ct.isFallbackTransition)return It.onStart(()=>se(vn,gt.fromStyles)),It.onDestroy(()=>G(vn,gt.toStyles)),void C.push(It);const ci=[];gt.timelines.forEach(Rn=>{Rn.stretchStartingKeyframe=!0,this.disabledNodes.has(Rn.element)||ci.push(Rn)}),gt.timelines=ci,f.append(vn,gt.timelines),U.push({instruction:gt,player:It,element:vn}),gt.queriedElements.forEach(Rn=>z(V,Rn,[]).push(It)),gt.preStyleProps.forEach((Rn,Jr)=>{const Mr=Object.keys(Rn);if(Mr.length){let Xr=te.get(Jr);Xr||te.set(Jr,Xr=new Set),Mr.forEach(hs=>Xr.add(hs))}}),gt.postStyleProps.forEach((Rn,Jr)=>{const Mr=Object.keys(Rn);let Xr=he.get(Jr);Xr||he.set(Jr,Xr=new Set),Mr.forEach(hs=>Xr.add(hs))})});if(yr.length){const Ye=[];yr.forEach(it=>{Ye.push(`@${it.triggerName} has failed due to:\n`),it.errors.forEach(ct=>Ye.push(`- ${ct}\n`))}),qr.forEach(it=>it.destroy()),this.reportError(Ye)}const xn=new Map,vr=new Map;U.forEach(Ye=>{const it=Ye.element;f.has(it)&&(vr.set(it,it),this._beforeAnimationBuild(Ye.player.namespaceId,Ye.instruction,xn))}),C.forEach(Ye=>{const it=Ye.element;this._getPreviousPlayers(it,!1,Ye.namespaceId,Ye.triggerName,null).forEach(It=>{z(xn,it,[]).push(It),It.destroy()})});const Jn=Dt.filter(Ye=>ws(Ye,te,he)),lr=new Map;ti(lr,this.driver,qt,he,ne.l3).forEach(Ye=>{ws(Ye,te,he)&&Jn.push(Ye)});const fs=new Map;Tt.forEach((Ye,it)=>{ti(fs,this.driver,new Set(Ye),te,ne.k1)}),Jn.forEach(Ye=>{const it=lr.get(Ye),ct=fs.get(Ye);lr.set(Ye,Object.assign(Object.assign({},it),ct))});const Ur=[],Rs=[],ui={};U.forEach(Ye=>{const{element:it,player:ct,instruction:It}=Ye;if(f.has(it)){if(Oe.has(it))return ct.onDestroy(()=>G(it,It.toStyles)),ct.disabled=!0,ct.overrideTotalTime(It.totalTime),void C.push(ct);let vn=ui;if(vr.size>1){let Yt=it;const Tn=[];for(;Yt=Yt.parentNode;){const gt=vr.get(Yt);if(gt){vn=gt;break}Tn.push(Yt)}Tn.forEach(gt=>vr.set(gt,vn))}const _r=this._buildAnimation(ct.namespaceId,It,xn,x,fs,lr);if(ct.setRealPlayer(_r),vn===ui)Ur.push(ct);else{const Yt=this.playersByElement.get(vn);Yt&&Yt.length&&(ct.parentPlayer=k(Yt)),C.push(ct)}}else se(it,It.fromStyles),ct.onDestroy(()=>G(it,It.toStyles)),Rs.push(ct),Oe.has(it)&&C.push(ct)}),Rs.forEach(Ye=>{const it=x.get(Ye.element);if(it&&it.length){const ct=k(it);Ye.setRealPlayer(ct)}}),C.forEach(Ye=>{Ye.parentPlayer?Ye.syncPlayerEvents(Ye.parentPlayer):Ye.destroy()});for(let Ye=0;Ye<Dt.length;Ye++){const it=Dt[Ye],ct=it[Ut];if(or(it,rt),ct&&ct.hasAnimation)continue;let It=[];if(V.size){let _r=V.get(it);_r&&_r.length&&It.push(..._r);let Yt=this.driver.query(it,zt,!0);for(let Tn=0;Tn<Yt.length;Tn++){let gt=V.get(Yt[Tn]);gt&>.length&&It.push(...gt)}}const vn=It.filter(_r=>!_r.destroyed);vn.length?Bs(this,it,vn):this.processLeaveNode(it)}return Dt.length=0,Ur.forEach(Ye=>{this.players.push(Ye),Ye.onDone(()=>{Ye.destroy();const it=this.players.indexOf(Ye);this.players.splice(it,1)}),Ye.play()}),Ur}elementContainsData(a,o){let f=!1;const C=o[Ut];return C&&C.setForRemoval&&(f=!0),this.playersByElement.has(o)&&(f=!0),this.playersByQueriedElement.has(o)&&(f=!0),this.statesByElement.has(o)&&(f=!0),this._fetchNamespace(a).elementContainsData(o)||f}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,o,f,C,x){let U=[];if(o){const V=this.playersByQueriedElement.get(a);V&&(U=V)}else{const V=this.playersByElement.get(a);if(V){const te=!x||x==kr;V.forEach(he=>{he.queued||!te&&he.triggerName!=C||U.push(he)})}}return(f||C)&&(U=U.filter(V=>!(f&&f!=V.namespaceId||C&&C!=V.triggerName))),U}_beforeAnimationBuild(a,o,f){const x=o.element,U=o.isRemovalTransition?void 0:a,V=o.isRemovalTransition?void 0:o.triggerName;for(const te of o.timelines){const he=te.element,Oe=he!==x,Je=z(f,he,[]);this._getPreviousPlayers(he,Oe,U,V,o.toState).forEach(Tt=>{const tt=Tt.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),Tt.destroy(),Je.push(Tt)})}se(x,o.fromStyles)}_buildAnimation(a,o,f,C,x,U){const V=o.triggerName,te=o.element,he=[],Oe=new Set,Je=new Set,_t=o.timelines.map(tt=>{const Xe=tt.element;Oe.add(Xe);const Dt=Xe[Ut];if(Dt&&Dt.removedBeforeQueried)return new ne.ZN(tt.duration,tt.delay);const ln=Xe!==te,qt=function ni(w){const a=[];return Cs(w,a),a}((f.get(Xe)||yn).map(xn=>xn.getRealPlayer())).filter(xn=>!!xn.element&&xn.element===Xe),dn=x.get(Xe),wn=U.get(Xe),qr=X(0,this._normalizer,0,tt.keyframes,dn,wn),yr=this._buildPlayer(tt,qr,qt);if(tt.subTimeline&&C&&Je.add(Xe),ln){const xn=new Cr(a,V,Xe);xn.setRealPlayer(yr),he.push(xn)}return yr});he.forEach(tt=>{z(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function Wr(w,a,o){let f;if(w instanceof Map){if(f=w.get(a),f){if(f.length){const C=f.indexOf(o);f.splice(C,1)}0==f.length&&w.delete(a)}}else if(f=w[a],f){if(f.length){const C=f.indexOf(o);f.splice(C,1)}0==f.length&&delete w[a]}return f}(this.playersByQueriedElement,tt.element,tt))}),Oe.forEach(tt=>Pn(tt,Un));const Tt=k(_t);return Tt.onDestroy(()=>{Oe.forEach(tt=>or(tt,Un)),G(te,o.toStyles)}),Je.forEach(tt=>{z(C,tt,[]).push(Tt)}),Tt}_buildPlayer(a,o,f){return o.length>0?this.driver.animate(a.element,o,a.duration,a.delay,a.easing,f):new ne.ZN(a.duration,a.delay)}}class Cr{constructor(a,o,f){this.namespaceId=a,this.triggerName=o,this.element=f,this._player=new ne.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(o=>{this._queuedCallbacks[o].forEach(f=>J(a,o,void 0,f))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const o=this._player;o.triggerCallback&&a.onStart(()=>o.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,o){z(this._queuedCallbacks,a,[]).push(o)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const o=this._player;o.triggerCallback&&o.triggerCallback(a)}}function In(w){return w&&1===w.nodeType}function Ls(w,a){const o=w.style.display;return w.style.display=null!=a?a:"none",o}function ti(w,a,o,f,C){const x=[];o.forEach(te=>x.push(Ls(te)));const U=[];f.forEach((te,he)=>{const Oe={};te.forEach(Je=>{const _t=Oe[Je]=a.computeStyle(he,Je,C);(!_t||0==_t.length)&&(he[Ut]=Gr,U.push(he))}),w.set(he,Oe)});let V=0;return o.forEach(te=>Ls(te,x[V++])),U}function Vn(w,a){const o=new Map;if(w.forEach(V=>o.set(V,[])),0==a.length)return o;const C=new Set(a),x=new Map;function U(V){if(!V)return 1;let te=x.get(V);if(te)return te;const he=V.parentNode;return te=o.has(he)?he:C.has(he)?1:U(he),x.set(V,te),te}return a.forEach(V=>{const te=U(V);1!==te&&o.get(te).push(V)}),o}function Pn(w,a){var o;null===(o=w.classList)||void 0===o||o.add(a)}function or(w,a){var o;null===(o=w.classList)||void 0===o||o.remove(a)}function Bs(w,a,o){k(o).onDone(()=>w.processLeaveNode(a))}function Cs(w,a){for(let o=0;o<w.length;o++){const f=w[o];f instanceof ne.ZE?Cs(f.players,a):a.push(f)}}function ws(w,a,o){const f=o.get(w);if(!f)return!1;let C=a.get(w);return C?f.forEach(x=>C.add(x)):a.set(w,f),o.delete(w),!0}class Ts{constructor(a,o,f){this.bodyNode=a,this._driver=o,this._normalizer=f,this._triggerCache={},this.onRemovalComplete=(C,x)=>{},this._transitionEngine=new An(a,o,f),this._timelineEngine=new Fr(a,o,f),this._transitionEngine.onRemovalComplete=(C,x)=>this.onRemovalComplete(C,x)}registerTrigger(a,o,f,C,x){const U=a+"-"+C;let V=this._triggerCache[U];if(!V){const te=[],he=ot(this._driver,x,te);if(te.length)throw new Error(`The animation trigger "${C}" has failed to build due to the following errors:\n - ${te.join("\n - ")}`);V=function kn(w,a,o){return new Yn(w,a,o)}(C,he,this._normalizer),this._triggerCache[U]=V}this._transitionEngine.registerTrigger(o,C,V)}register(a,o){this._transitionEngine.register(a,o)}destroy(a,o){this._transitionEngine.destroy(a,o)}onInsert(a,o,f,C){this._transitionEngine.insertNode(a,o,f,C)}onRemove(a,o,f,C){this._transitionEngine.removeNode(a,o,C||!1,f)}disableAnimations(a,o){this._transitionEngine.markElementAsDisabled(a,o)}process(a,o,f,C){if("@"==f.charAt(0)){const[x,U]=Z(f);this._timelineEngine.command(x,o,U,C)}else this._transitionEngine.trigger(a,o,f,C)}listen(a,o,f,C,x){if("@"==f.charAt(0)){const[U,V]=Z(f);return this._timelineEngine.listen(U,o,V,x)}return this._transitionEngine.listen(a,o,f,C,x)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ri(w,a){let o=null,f=null;return Array.isArray(a)&&a.length?(o=as(a[0]),a.length>1&&(f=as(a[a.length-1]))):a&&(o=as(a)),o||f?new Ei(w,o,f):null}let Ei=(()=>{class w{constructor(o,f,C){this._element=o,this._startStyles=f,this._endStyles=C,this._state=0;let x=w.initialStylesByElement.get(o);x||w.initialStylesByElement.set(o,x={}),this._initialStyles=x}start(){this._state<1&&(this._startStyles&&G(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(G(this._element,this._initialStyles),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(w.initialStylesByElement.delete(this._element),this._startStyles&&(se(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(se(this._element,this._endStyles),this._endStyles=null),G(this._element,this._initialStyles),this._state=3)}}return w.initialStylesByElement=new WeakMap,w})();function as(w){let a=null;const o=Object.keys(w);for(let f=0;f<o.length;f++){const C=o[f];Ss(C)&&(a=a||{},a[C]=w[C])}return a}function Ss(w){return"display"===w||"position"===w}const Ms="animation",ls="animationend";class si{constructor(a,o,f,C,x,U,V){this._element=a,this._name=o,this._duration=f,this._delay=C,this._easing=x,this._fillMode=U,this._onDoneFn=V,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=te=>this._handleCallback(te)}apply(){(function ii(w,a){const o=Us(w,"").trim();let f=0;o.length&&(f=function Hs(w,a){let o=0;for(let f=0;f<w.length;f++)w.charAt(f)===a&&o++;return o}(o,",")+1,a=`${o}, ${a}`),Zn(w,"",a)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Yr(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){js(this._element,this._name,"paused")}resume(){js(this._element,this._name,"running")}setPosition(a){const o=cs(this._element,this._name);this._position=a*this._duration,Zn(this._element,"Delay",`-${this._position}ms`,o)}getPosition(){return this._position}_handleCallback(a){const o=a._ngTestManualTimestamp||Date.now(),f=1e3*parseFloat(a.elapsedTime.toFixed(3));a.animationName==this._name&&Math.max(o-this._startTime,0)>=this._delay&&f>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Yr(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function Tr(w,a){const f=Us(w,"").split(","),C=On(f,a);C>=0&&(f.splice(C,1),Zn(w,"",f.join(",")))}(this._element,this._name))}}function js(w,a,o){Zn(w,"PlayState",o,cs(w,a))}function cs(w,a){const o=Us(w,"");return o.indexOf(",")>0?On(o.split(","),a):On([o],a)}function On(w,a){for(let o=0;o<w.length;o++)if(w[o].indexOf(a)>=0)return o;return-1}function Yr(w,a,o){o?w.removeEventListener(ls,a):w.addEventListener(ls,a)}function Zn(w,a,o,f){const C=Ms+a;if(null!=f){const x=w.style[C];if(x.length){const U=x.split(",");U[f]=o,o=U.join(",")}}w.style[C]=o}function Us(w,a){return w.style[Ms+a]||""}class mr{constructor(a,o,f,C,x,U,V,te){this.element=a,this.keyframes=o,this.animationName=f,this._duration=C,this._delay=x,this._finalStyles=V,this._specialStyles=te,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=U||"linear",this.totalTime=C+x,this._buildStyler()}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(a=>a()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(a){this._styler.setPosition(a)}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 si(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(a){const o="start"==a?this._onStartFns:this._onDoneFns;o.forEach(f=>f()),o.length=0}beforeDestroy(){this.init();const a={};if(this.hasStarted()){const o=this._state>=3;Object.keys(this._finalStyles).forEach(f=>{"offset"!=f&&(a[f]=o?this._finalStyles[f]:ve(this.element,f))})}this.currentSnapshot=a}}class Qr extends ne.ZN{constructor(a,o){super(),this.element=a,this._startingStyles={},this.__initialized=!1,this._styles=He(o)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(a=>{this._startingStyles[a]=this.element.style[a]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(a=>this.element.style.setProperty(a,this._styles[a])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(a=>{const o=this._startingStyles[a];o?this.element.style.setProperty(a,o):this.element.style.removeProperty(a)}),this._startingStyles=null,super.destroy())}}class Is{constructor(){this._count=0}validateStyleProperty(a){return xe(a)}matchesElement(a,o){return!1}containsElement(a,o){return ke(a,o)}query(a,o,f){return ye(a,o,f)}computeStyle(a,o,f){return window.getComputedStyle(a)[o]}buildKeyframeElement(a,o,f){f=f.map(V=>He(V));let C=`@keyframes ${o} {\n`,x="";f.forEach(V=>{x=" ";const te=parseFloat(V.offset);C+=`${x}${100*te}% {\n`,x+=" ",Object.keys(V).forEach(he=>{const Oe=V[he];switch(he){case"offset":return;case"easing":return void(Oe&&(C+=`${x}animation-timing-function: ${Oe};\n`));default:return void(C+=`${x}${he}: ${Oe};\n`)}}),C+=`${x}}\n`}),C+="}\n";const U=document.createElement("style");return U.textContent=C,U}animate(a,o,f,C,x,U=[],V){const te=U.filter(Dt=>Dt instanceof mr),he={};Nt(f,C)&&te.forEach(Dt=>{let ln=Dt.currentSnapshot;Object.keys(ln).forEach(qt=>he[qt]=ln[qt])});const Oe=function ai(w){let a={};return w&&(Array.isArray(w)?w:[w]).forEach(f=>{Object.keys(f).forEach(C=>{"offset"==C||"easing"==C||(a[C]=f[C])})}),a}(o=fn(a,o,he));if(0==f)return new Qr(a,Oe);const Je="gen_css_kf_"+this._count++,_t=this.buildKeyframeElement(a,Je,o);(function Vs(w){var a;const o=null===(a=w.getRootNode)||void 0===a?void 0:a.call(w);return"undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot?o:document.head})(a).appendChild(_t);const tt=ri(a,o),Xe=new mr(a,o,Je,f,C,x,Oe,tt);return Xe.onDestroy(()=>function $s(w){w.parentNode.removeChild(w)}(_t)),Xe}}class Lr{constructor(a,o,f,C){this.element=a,this.keyframes=o,this.options=f,this._specialStyles=C,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(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,o,f){return a.animate(o,f)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const o=this._finalKeyframe;Object.keys(o).forEach(f=>{"offset"!=f&&(a[f]=this._finished?o[f]:ve(this.element,f))})}this.currentSnapshot=a}triggerCallback(a){const o="start"==a?this._onStartFns:this._onDoneFns;o.forEach(f=>f()),o.length=0}}class qn{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_().toString()),this._cssKeyframesDriver=new Is}validateStyleProperty(a){return xe(a)}matchesElement(a,o){return!1}containsElement(a,o){return ke(a,o)}query(a,o,f){return ye(a,o,f)}computeStyle(a,o,f){return window.getComputedStyle(a)[o]}overrideWebAnimationsSupport(a){this._isNativeImpl=a}animate(a,o,f,C,x,U=[],V){if(!V&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(a,o,f,C,x,U);const Oe={duration:f,delay:C,fill:0==C?"both":"forwards"};x&&(Oe.easing=x);const Je={},_t=U.filter(tt=>tt instanceof Lr);Nt(f,C)&&_t.forEach(tt=>{let Xe=tt.currentSnapshot;Object.keys(Xe).forEach(Dt=>Je[Dt]=Xe[Dt])});const Tt=ri(a,o=fn(a,o=o.map(tt=>B(tt,!1)),Je));return new Lr(a,o,Oe,Tt)}}function _(){return le()&&Element.prototype.animate||{}}var S=M(9808);let v=(()=>{class w extends ne._j{constructor(o,f){super(),this._nextAnimationId=0,this._renderer=o.createRenderer(f.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(o){const f=this._nextAnimationId.toString();this._nextAnimationId++;const C=Array.isArray(o)?(0,ne.vP)(o):o;return de(this._renderer,null,f,"register",[C]),new O(f,this._renderer)}}return w.\u0275fac=function(o){return new(o||w)(p.LFG(p.FYo),p.LFG(S.K0))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac}),w})();class O extends ne.LC{constructor(a,o){super(),this._id=a,this._renderer=o}create(a,o){return new Q(this._id,a,o||{},this._renderer)}}class Q{constructor(a,o,f,C){this.id=a,this.element=o,this._renderer=C,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",f)}_listen(a,o){return this._renderer.listen(this.element,`@@${this.id}:${a}`,o)}_command(a,...o){return de(this._renderer,this.element,this.id,a,o)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,o;return null!==(o=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==o?o:0}}function de(w,a,o,f,C){return w.setProperty(a,`@@${o}:${f}`,C)}const Ke="@.disabled";let $t=(()=>{class w{constructor(o,f,C){this.delegate=o,this.engine=f,this._zone=C,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),f.onRemovalComplete=(x,U)=>{const V=null==U?void 0:U.parentNode(x);V&&U.removeChild(V,x)}}createRenderer(o,f){const x=this.delegate.createRenderer(o,f);if(!(o&&f&&f.data&&f.data.animation)){let Oe=this._rendererCache.get(x);return Oe||(Oe=new Ft("",x,this.engine),this._rendererCache.set(x,Oe)),Oe}const U=f.id,V=f.id+"-"+this._currentId;this._currentId++,this.engine.register(V,o);const te=Oe=>{Array.isArray(Oe)?Oe.forEach(te):this.engine.registerTrigger(U,V,o,Oe.name,Oe)};return f.data.animation.forEach(te),new Et(this,V,x,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(o,f,C){o>=0&&o<this._microtaskId?this._zone.run(()=>f(C)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(x=>{const[U,V]=x;U(V)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([f,C]))}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 w.\u0275fac=function(o){return new(o||w)(p.LFG(p.FYo),p.LFG(Ts),p.LFG(p.R0b))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac}),w})();class Ft{constructor(a,o,f){this.namespaceId=a,this.delegate=o,this.engine=f,this.destroyNode=this.delegate.destroyNode?C=>o.destroyNode(C):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,o){return this.delegate.createElement(a,o)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,o){this.delegate.appendChild(a,o),this.engine.onInsert(this.namespaceId,o,a,!1)}insertBefore(a,o,f,C=!0){this.delegate.insertBefore(a,o,f),this.engine.onInsert(this.namespaceId,o,a,C)}removeChild(a,o,f){this.engine.onRemove(this.namespaceId,o,this.delegate,f)}selectRootElement(a,o){return this.delegate.selectRootElement(a,o)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,o,f,C){this.delegate.setAttribute(a,o,f,C)}removeAttribute(a,o,f){this.delegate.removeAttribute(a,o,f)}addClass(a,o){this.delegate.addClass(a,o)}removeClass(a,o){this.delegate.removeClass(a,o)}setStyle(a,o,f,C){this.delegate.setStyle(a,o,f,C)}removeStyle(a,o,f){this.delegate.removeStyle(a,o,f)}setProperty(a,o,f){"@"==o.charAt(0)&&o==Ke?this.disableAnimations(a,!!f):this.delegate.setProperty(a,o,f)}setValue(a,o){this.delegate.setValue(a,o)}listen(a,o,f){return this.delegate.listen(a,o,f)}disableAnimations(a,o){this.engine.disableAnimations(a,o)}}class Et extends Ft{constructor(a,o,f,C){super(o,f,C),this.factory=a,this.namespaceId=o}setProperty(a,o,f){"@"==o.charAt(0)?"."==o.charAt(1)&&o==Ke?this.disableAnimations(a,f=void 0===f||!!f):this.engine.process(this.namespaceId,a,o.substr(1),f):this.delegate.setProperty(a,o,f)}listen(a,o,f){if("@"==o.charAt(0)){const C=function Rt(w){switch(w){case"body":return document.body;case"document":return document;case"window":return window;default:return w}}(a);let x=o.substr(1),U="";return"@"!=x.charAt(0)&&([x,U]=function cn(w){const a=w.indexOf(".");return[w.substring(0,a),w.substr(a+1)]}(x)),this.engine.listen(this.namespaceId,C,x,U,V=>{this.factory.scheduleListenerCallback(V._data||-1,f,V)})}return this.delegate.listen(a,o,f)}}let Zt=(()=>{class w extends Ts{constructor(o,f,C){super(o.body,f,C)}ngOnDestroy(){this.flush()}}return w.\u0275fac=function(o){return new(o||w)(p.LFG(S.K0),p.LFG(Wt),p.LFG(Pt))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac}),w})();const ut=new p.OlP("AnimationModuleType"),jr=[{provide:ne._j,useClass:v},{provide:Pt,useFactory:function Br(){return new sr}},{provide:Ts,useClass:Zt},{provide:p.FYo,useFactory:function ar(w,a,o){return new $t(w,a,o)},deps:[m.se,Ts,p.R0b]}],Zr=[{provide:Wt,useFactory:function an(){return function rn(){return"function"==typeof _()}()?new qn:new Is}},{provide:ut,useValue:"BrowserAnimations"},...jr],Ps=[{provide:Wt,useClass:jt},{provide:ut,useValue:"NoopAnimations"},...jr];let Os=(()=>{class w{static withConfig(o){return{ngModule:w,providers:o.disableAnimations?Ps:Zr}}}return w.\u0275fac=function(o){return new(o||w)},w.\u0275mod=p.oAB({type:w}),w.\u0275inj=p.cJS({providers:Zr,imports:[m.b2]}),w})()},2313:(We,ce,M)=>{M.d(ce,{b2:()=>st,H7:()=>Kn,Dx:()=>fn,q6:()=>et,se:()=>Be});var p=M(9808),m=M(5e3);class ne extends p.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class le extends ne{static makeCurrent(){(0,p.HT)(new le)}onAndCancel(q,b,P){return q.addEventListener(b,P,!1),()=>{q.removeEventListener(b,P,!1)}}dispatchEvent(q,b){q.dispatchEvent(b)}remove(q){q.parentNode&&q.parentNode.removeChild(q)}createElement(q,b){return(b=b||this.getDefaultDocument()).createElement(q)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(q){return q.nodeType===Node.ELEMENT_NODE}isShadowRoot(q){return q instanceof DocumentFragment}getGlobalEventTarget(q,b){return"window"===b?window:"document"===b?q:"body"===b?q.body:null}getBaseHref(q){const b=function k(){return H=H||document.querySelector("base"),H?H.getAttribute("href"):null}();return null==b?null:function J(oe){X=X||document.createElement("a"),X.setAttribute("href",oe);const q=X.pathname;return"/"===q.charAt(0)?q:`/${q}`}(b)}resetBaseElement(){H=null}getUserAgent(){return window.navigator.userAgent}getCookie(q){return(0,p.Mx)(document.cookie,q)}}let X,H=null;const ie=new m.OlP("TRANSITION_ID"),z=[{provide:m.ip1,useFactory:function $(oe,q,b){return()=>{b.get(m.CZH).donePromise.then(()=>{const P=(0,p.q)(),A=q.querySelectorAll(`style[ng-transition="${oe}"]`);for(let ee=0;ee<A.length;ee++)P.remove(A[ee])})}},deps:[ie,p.K0,m.zs3],multi:!0}];class Z{static init(){(0,m.VLi)(new Z)}addToWindow(q){m.dqk.getAngularTestability=(P,A=!0)=>{const ee=q.findTestabilityInTree(P,A);if(null==ee)throw new Error("Could not find testability for element.");return ee},m.dqk.getAllAngularTestabilities=()=>q.getAllTestabilities(),m.dqk.getAllAngularRootElements=()=>q.getAllRootElements(),m.dqk.frameworkStabilizers||(m.dqk.frameworkStabilizers=[]),m.dqk.frameworkStabilizers.push(P=>{const A=m.dqk.getAllAngularTestabilities();let ee=A.length,$e=!1;const xt=function(Pt){$e=$e||Pt,ee--,0==ee&&P($e)};A.forEach(function(Pt){Pt.whenStable(xt)})})}findTestabilityInTree(q,b,P){if(null==b)return null;const A=q.getTestability(b);return null!=A?A:P?(0,p.q)().isShadowRoot(b)?this.findTestabilityInTree(q,b.host,!0):this.findTestabilityInTree(q,b.parentElement,!0):null}}let ue=(()=>{class oe{build(){return new XMLHttpRequest}}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275prov=m.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const Me=new m.OlP("EventManagerPlugins");let fe=(()=>{class oe{constructor(b,P){this._zone=P,this._eventNameToPlugin=new Map,b.forEach(A=>A.manager=this),this._plugins=b.slice().reverse()}addEventListener(b,P,A){return this._findPluginFor(P).addEventListener(b,P,A)}addGlobalEventListener(b,P,A){return this._findPluginFor(P).addGlobalEventListener(b,P,A)}getZone(){return this._zone}_findPluginFor(b){const P=this._eventNameToPlugin.get(b);if(P)return P;const A=this._plugins;for(let ee=0;ee<A.length;ee++){const $e=A[ee];if($e.supports(b))return this._eventNameToPlugin.set(b,$e),$e}throw new Error(`No event manager plugin found for event ${b}`)}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(Me),m.LFG(m.R0b))},oe.\u0275prov=m.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class we{constructor(q){this._doc=q}addGlobalEventListener(q,b,P){const A=(0,p.q)().getGlobalEventTarget(this._doc,q);if(!A)throw new Error(`Unsupported event target ${A} for event ${b}`);return this.addEventListener(A,b,P)}}let Ee=(()=>{class oe{constructor(){this._stylesSet=new Set}addStyles(b){const P=new Set;b.forEach(A=>{this._stylesSet.has(A)||(this._stylesSet.add(A),P.add(A))}),this.onStylesAdded(P)}onStylesAdded(b){}getAllStyles(){return Array.from(this._stylesSet)}}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275prov=m.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),Ue=(()=>{class oe extends Ee{constructor(b){super(),this._doc=b,this._hostNodes=new Map,this._hostNodes.set(b.head,[])}_addStylesToHost(b,P,A){b.forEach(ee=>{const $e=this._doc.createElement("style");$e.textContent=ee,A.push(P.appendChild($e))})}addHost(b){const P=[];this._addStylesToHost(this._stylesSet,b,P),this._hostNodes.set(b,P)}removeHost(b){const P=this._hostNodes.get(b);P&&P.forEach(xe),this._hostNodes.delete(b)}onStylesAdded(b){this._hostNodes.forEach((P,A)=>{this._addStylesToHost(b,A,P)})}ngOnDestroy(){this._hostNodes.forEach(b=>b.forEach(xe))}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(p.K0))},oe.\u0275prov=m.Yz7({token:oe,factory:oe.\u0275fac}),oe})();function xe(oe){(0,p.q)().remove(oe)}const qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ke=/%COMP%/g;function At(oe,q,b){for(let P=0;P<q.length;P++){let A=q[P];Array.isArray(A)?At(oe,A,b):(A=A.replace(ke,oe),b.push(A))}return b}function nt(oe){return q=>{if("__ngUnwrap__"===q)return oe;!1===oe(q)&&(q.preventDefault(),q.returnValue=!1)}}let Be=(()=>{class oe{constructor(b,P,A){this.eventManager=b,this.sharedStylesHost=P,this.appId=A,this.rendererByCompId=new Map,this.defaultRenderer=new Fe(b)}createRenderer(b,P){if(!b||!P)return this.defaultRenderer;switch(P.encapsulation){case m.ifc.Emulated:{let A=this.rendererByCompId.get(P.id);return A||(A=new Ot(this.eventManager,this.sharedStylesHost,P,this.appId),this.rendererByCompId.set(P.id,A)),A.applyToHost(b),A}case 1:case m.ifc.ShadowDom:return new bt(this.eventManager,this.sharedStylesHost,b,P);default:if(!this.rendererByCompId.has(P.id)){const A=At(P.id,P.styles,[]);this.sharedStylesHost.addStyles(A),this.rendererByCompId.set(P.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(fe),m.LFG(Ue),m.LFG(m.AFp))},oe.\u0275prov=m.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class Fe{constructor(q){this.eventManager=q,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(q,b){return b?document.createElementNS(qe[b],q):document.createElement(q)}createComment(q){return document.createComment(q)}createText(q){return document.createTextNode(q)}appendChild(q,b){q.appendChild(b)}insertBefore(q,b,P){q&&q.insertBefore(b,P)}removeChild(q,b){q&&q.removeChild(b)}selectRootElement(q,b){let P="string"==typeof q?document.querySelector(q):q;if(!P)throw new Error(`The selector "${q}" did not match any elements`);return b||(P.textContent=""),P}parentNode(q){return q.parentNode}nextSibling(q){return q.nextSibling}setAttribute(q,b,P,A){if(A){b=A+":"+b;const ee=qe[A];ee?q.setAttributeNS(ee,b,P):q.setAttribute(b,P)}else q.setAttribute(b,P)}removeAttribute(q,b,P){if(P){const A=qe[P];A?q.removeAttributeNS(A,b):q.removeAttribute(`${P}:${b}`)}else q.removeAttribute(b)}addClass(q,b){q.classList.add(b)}removeClass(q,b){q.classList.remove(b)}setStyle(q,b,P,A){A&(m.JOm.DashCase|m.JOm.Important)?q.style.setProperty(b,P,A&m.JOm.Important?"important":""):q.style[b]=P}removeStyle(q,b,P){P&m.JOm.DashCase?q.style.removeProperty(b):q.style[b]=""}setProperty(q,b,P){q[b]=P}setValue(q,b){q.nodeValue=b}listen(q,b,P){return"string"==typeof q?this.eventManager.addGlobalEventListener(q,b,nt(P)):this.eventManager.addEventListener(q,b,nt(P))}}class Ot extends Fe{constructor(q,b,P,A){super(q),this.component=P;const ee=At(A+"-"+P.id,P.styles,[]);b.addStyles(ee),this.contentAttr=function Mt(oe){return"_ngcontent-%COMP%".replace(ke,oe)}(A+"-"+P.id),this.hostAttr=function lt(oe){return"_nghost-%COMP%".replace(ke,oe)}(A+"-"+P.id)}applyToHost(q){super.setAttribute(q,this.hostAttr,"")}createElement(q,b){const P=super.createElement(q,b);return super.setAttribute(P,this.contentAttr,""),P}}class bt extends Fe{constructor(q,b,P,A){super(q),this.sharedStylesHost=b,this.hostEl=P,this.shadowRoot=P.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ee=At(A.id,A.styles,[]);for(let $e=0;$e<ee.length;$e++){const xt=document.createElement("style");xt.textContent=ee[$e],this.shadowRoot.appendChild(xt)}}nodeOrShadowRoot(q){return q===this.hostEl?this.shadowRoot:q}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(q,b){return super.appendChild(this.nodeOrShadowRoot(q),b)}insertBefore(q,b,P){return super.insertBefore(this.nodeOrShadowRoot(q),b,P)}removeChild(q,b){return super.removeChild(this.nodeOrShadowRoot(q),b)}parentNode(q){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(q)))}}let ze=(()=>{class oe extends we{constructor(b){super(b)}supports(b){return!0}addEventListener(b,P,A){return b.addEventListener(P,A,!1),()=>this.removeEventListener(b,P,A)}removeEventListener(b,P,A){return b.removeEventListener(P,A)}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(p.K0))},oe.\u0275prov=m.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const en=["alt","control","meta","shift"],me={"\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"},B={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"},N={alt:oe=>oe.altKey,control:oe=>oe.ctrlKey,meta:oe=>oe.metaKey,shift:oe=>oe.shiftKey};let R=(()=>{class oe extends we{constructor(b){super(b)}supports(b){return null!=oe.parseEventName(b)}addEventListener(b,P,A){const ee=oe.parseEventName(P),$e=oe.eventCallback(ee.fullKey,A,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,p.q)().onAndCancel(b,ee.domEventName,$e))}static parseEventName(b){const P=b.toLowerCase().split("."),A=P.shift();if(0===P.length||"keydown"!==A&&"keyup"!==A)return null;const ee=oe._normalizeKey(P.pop());let $e="";if(en.forEach(Pt=>{const mn=P.indexOf(Pt);mn>-1&&(P.splice(mn,1),$e+=Pt+".")}),$e+=ee,0!=P.length||0===ee.length)return null;const xt={};return xt.domEventName=A,xt.fullKey=$e,xt}static getEventFullKey(b){let P="",A=function G(oe){let q=oe.key;if(null==q){if(q=oe.keyIdentifier,null==q)return"Unidentified";q.startsWith("U+")&&(q=String.fromCharCode(parseInt(q.substring(2),16)),3===oe.location&&B.hasOwnProperty(q)&&(q=B[q]))}return me[q]||q}(b);return A=A.toLowerCase()," "===A?A="space":"."===A&&(A="dot"),en.forEach(ee=>{ee!=A&&N[ee](b)&&(P+=ee+".")}),P+=A,P}static eventCallback(b,P,A){return ee=>{oe.getEventFullKey(ee)===b&&A.runGuarded(()=>P(ee))}}static _normalizeKey(b){return"esc"===b?"escape":b}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(p.K0))},oe.\u0275prov=m.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const et=(0,m.eFA)(m._c5,"browser",[{provide:m.Lbi,useValue:p.bD},{provide:m.g9A,useValue:function se(){le.makeCurrent(),Z.init()},multi:!0},{provide:p.K0,useFactory:function be(){return(0,m.RDi)(document),document},deps:[]}]),Se=[{provide:m.zSh,useValue:"root"},{provide:m.qLn,useFactory:function ae(){return new m.qLn},deps:[]},{provide:Me,useClass:ze,multi:!0,deps:[p.K0,m.R0b,m.Lbi]},{provide:Me,useClass:R,multi:!0,deps:[p.K0]},{provide:Be,useClass:Be,deps:[fe,Ue,m.AFp]},{provide:m.FYo,useExisting:Be},{provide:Ee,useExisting:Ue},{provide:Ue,useClass:Ue,deps:[p.K0]},{provide:m.dDg,useClass:m.dDg,deps:[m.R0b]},{provide:fe,useClass:fe,deps:[Me,m.R0b]},{provide:p.JF,useClass:ue,deps:[]}];let st=(()=>{class oe{constructor(b){if(b)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(b){return{ngModule:oe,providers:[{provide:m.AFp,useValue:b.appId},{provide:ie,useExisting:m.AFp},z]}}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(oe,12))},oe.\u0275mod=m.oAB({type:oe}),oe.\u0275inj=m.cJS({providers:Se,imports:[p.ez,m.hGG]}),oe})(),fn=(()=>{class oe{constructor(b){this._doc=b}getTitle(){return this._doc.title}setTitle(b){this._doc.title=b||""}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(p.K0))},oe.\u0275prov=m.Yz7({token:oe,factory:function(b){let P=null;return P=b?new b:function Nt(){return new fn((0,m.LFG)(p.K0))}(),P},providedIn:"root"}),oe})();"undefined"!=typeof window&&window;let Kn=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275prov=m.Yz7({token:oe,factory:function(b){let P=null;return P=b?new(b||oe):m.LFG(bn),P},providedIn:"root"}),oe})(),bn=(()=>{class oe extends Kn{constructor(b){super(),this._doc=b}sanitize(b,P){if(null==P)return null;switch(b){case m.q3G.NONE:return P;case m.q3G.HTML:return(0,m.qzn)(P,"HTML")?(0,m.z3N)(P):(0,m.EiD)(this._doc,String(P)).toString();case m.q3G.STYLE:return(0,m.qzn)(P,"Style")?(0,m.z3N)(P):P;case m.q3G.SCRIPT:if((0,m.qzn)(P,"Script"))return(0,m.z3N)(P);throw new Error("unsafe value used in a script context");case m.q3G.URL:return(0,m.yhl)(P),(0,m.qzn)(P,"URL")?(0,m.z3N)(P):(0,m.mCW)(String(P));case m.q3G.RESOURCE_URL:if((0,m.qzn)(P,"ResourceURL"))return(0,m.z3N)(P);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${b} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(b){return(0,m.JVY)(b)}bypassSecurityTrustStyle(b){return(0,m.L6k)(b)}bypassSecurityTrustScript(b){return(0,m.eBb)(b)}bypassSecurityTrustUrl(b){return(0,m.LAX)(b)}bypassSecurityTrustResourceUrl(b){return(0,m.pB0)(b)}}return oe.\u0275fac=function(b){return new(b||oe)(m.LFG(p.K0))},oe.\u0275prov=m.Yz7({token:oe,factory:function(b){let P=null;return P=b?new b:function rr(oe){return new bn(oe.get(p.K0))}(m.LFG(m.zs3)),P},providedIn:"root"}),oe})()},2302:(We,ce,M)=>{M.d(ce,{gz:()=>Ut,m2:()=>se,F0:()=>Ln,Od:()=>Ws,yS:()=>Ti,Bz:()=>Mi,lC:()=>Is});var p=M(5e3);const ne=(()=>{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 le=M(5254),H=M(1086),k=M(591),X=M(6053),J=M(2916),ie=M(1221),$=M(8514),z=M(8896),Z=M(1762),ue=M(8929),Me=M(2198),fe=M(3489),we=M(4231);function Ee(h){return function(u){return 0===h?(0,z.c)():u.lift(new Ue(h))}}class Ue{constructor(c){if(this.total=c,this.total<0)throw new we.W}call(c,u){return u.subscribe(new xe(c,this.total))}}class xe extends fe.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 I=0;I<y;I++){const L=u++%y;c.next(D[L])}}c.complete()}}function qe(h=He){return c=>c.lift(new ke(h))}class ke{constructor(c){this.errorFactory=c}call(c,u){return u.subscribe(new ye(c,this.errorFactory))}}class ye extends fe.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 He(){return new ne}function jt(h=null){return c=>c.lift(new Wt(h))}class Wt{constructor(c){this.defaultValue=c}call(c,u){return u.subscribe(new Mt(c,this.defaultValue))}}class Mt extends fe.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 lt=M(5379),nt=M(2986);function rt(h,c){const u=arguments.length>=2;return y=>y.pipe(h?(0,Me.h)((D,I)=>h(D,I,y)):lt.y,(0,nt.q)(1),u?jt(c):qe(()=>new ne))}var Be=M(4850),Fe=M(7545),Un=M(1059),zt=M(2014),Ot=M(7221),bt=M(1406),ze=M(1709),en=M(2994),Nn=M(4327),me=M(537),B=M(9146),N=M(9808);class R{constructor(c,u){this.id=c,this.url=u}}class G extends R{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 se extends R{constructor(c,u,y){super(c,u),this.urlAfterRedirects=y}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ae extends R{constructor(c,u,y){super(c,u),this.reason=y}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class be extends R{constructor(c,u,y){super(c,u),this.error=y}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ae extends R{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 et extends R{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 Se extends R{constructor(c,u,y,D,I){super(c,u),this.urlAfterRedirects=y,this.state=D,this.shouldActivate=I}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends R{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 Kt extends R{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 Ne{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tn{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 fn{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sn{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ve{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Y{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 j="primary";class Te{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 De(h){return new Te(h)}const Re="ngNavigationCancelingError";function Pe(h){const c=Error("NavigationCancelingError: "+h);return c[Re]=!0,c}function ht(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 I=0;I<y.length;I++){const L=y[I],K=h[I];if(L.startsWith(":"))D[L.substring(1)]=K;else if(L!==K.path)return null}return{consumed:h.slice(0,y.length),posParams:D}}function ot(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 I=0;I<u.length;I++)if(D=u[I],!En(h[D],c[D]))return!1;return!0}function En(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,I)=>y[I]===D)}return h===c}function nn(h){return Array.prototype.concat.apply([],h)}function mt(h){return h.length>0?h[h.length-1]:null}function Lt(h,c){for(const u in h)h.hasOwnProperty(u)&&c(h[u],u)}function ft(h){return(0,p.CqO)(h)?h:(0,p.QGY)(h)?(0,le.D)(Promise.resolve(h)):(0,H.of)(h)}const Fn={exact:function Gn(h,c,u){if(!b(h.segments,c.segments)||!rr(h.segments,c.segments,u)||h.numberOfChildren!==c.numberOfChildren)return!1;for(const y in c.children)if(!h.children[y]||!Gn(h.children[y],c.children[y],u))return!1;return!0},subset:nr},un={exact:function Dr(h,c){return ot(h,c)},subset:function Nr(h,c){return Object.keys(c).length<=Object.keys(h).length&&Object.keys(c).every(u=>En(h[u],c[u]))},ignored:()=>!0};function gn(h,c,u){return Fn[u.paths](h.root,c.root,u.matrixParams)&&un[u.queryParams](h.queryParams,c.queryParams)&&!("exact"===u.fragment&&h.fragment!==c.fragment)}function nr(h,c,u){return Kn(h,c,c.segments,u)}function Kn(h,c,u,y){if(h.segments.length>u.length){const D=h.segments.slice(0,u.length);return!(!b(D,u)||c.hasChildren()||!rr(D,u,y))}if(h.segments.length===u.length){if(!b(h.segments,u)||!rr(h.segments,u,y))return!1;for(const D in c.children)if(!h.children[D]||!nr(h.children[D],c.children[D],y))return!1;return!0}{const D=u.slice(0,h.segments.length),I=u.slice(h.segments.length);return!!(b(h.segments,D)&&rr(h.segments,D,y)&&h.children[j])&&Kn(h.children[j],c,I,y)}}function rr(h,c,u){return c.every((y,D)=>un[u](h[D].parameters,y.parameters))}class bn{constructor(c,u,y){this.root=c,this.queryParams=u,this.fragment=y}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=De(this.queryParams)),this._queryParamMap}toString(){return $e.serialize(this)}}class yt{constructor(c,u){this.segments=c,this.children=u,this.parent=null,Lt(u,(y,D)=>y.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xt(this)}}class oe{constructor(c,u){this.path=c,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=De(this.parameters)),this._parameterMap}toString(){return Le(this)}}function b(h,c){return h.length===c.length&&h.every((u,y)=>u.path===c[y].path)}class A{}class ee{parse(c){const u=new br(c);return new bn(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(c){const u=`/${Pt(c.root,!0)}`,y=function Gt(h){const c=Object.keys(h).map(u=>{const y=h[u];return Array.isArray(y)?y.map(D=>`${sr(u)}=${sr(D)}`).join("&"):`${sr(u)}=${sr(y)}`}).filter(u=>!!u);return c.length?`?${c.join("&")}`:""}(c.queryParams);return`${u}${y}${"string"==typeof c.fragment?`#${function fr(h){return encodeURI(h)}(c.fragment)}`:""}`}}const $e=new ee;function xt(h){return h.segments.map(c=>Le(c)).join("/")}function Pt(h,c){if(!h.hasChildren())return xt(h);if(c){const u=h.children[j]?Pt(h.children[j],!1):"",y=[];return Lt(h.children,(D,I)=>{I!==j&&y.push(`${I}:${Pt(D,!1)}`)}),y.length>0?`${u}(${y.join("//")})`:u}{const u=function P(h,c){let u=[];return Lt(h.children,(y,D)=>{D===j&&(u=u.concat(c(y,D)))}),Lt(h.children,(y,D)=>{D!==j&&(u=u.concat(c(y,D)))}),u}(h,(y,D)=>D===j?[Pt(h.children[j],!1)]:[`${D}:${Pt(y,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[j]?`${xt(h)}/${u[0]}`:`${xt(h)}/(${u.join("//")})`}}function mn(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sr(h){return mn(h).replace(/%3B/gi,";")}function hn(h){return mn(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Er(h){return decodeURIComponent(h)}function Cn(h){return Er(h.replace(/\+/g,"%20"))}function Le(h){return`${hn(h.path)}${function wt(h){return Object.keys(h).map(c=>`;${hn(c)}=${hn(h[c])}`).join("")}(h.parameters)}`}const kn=/^[^\/()?;=#]+/;function Yn(h){const c=h.match(kn);return c?c[0]:""}const pn=/^[^=?&#]+/,Qt=/^[^&#]+/;class br{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],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[j]=new yt(c,u)),y}parseSegment(){const c=Yn(this.remaining);if(""===c&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(c),new oe(Er(c),this.parseMatrixParams())}parseMatrixParams(){const c={};for(;this.consumeOptional(";");)this.parseParam(c);return c}parseParam(c){const u=Yn(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const D=Yn(this.remaining);D&&(y=D,this.capture(y))}c[Er(u)]=Er(y)}parseQueryParam(c){const u=function Qn(h){const c=h.match(pn);return c?c[0]:""}(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const L=function Fr(h){const c=h.match(Qt);return c?c[0]:""}(this.remaining);L&&(y=L,this.capture(y))}const D=Cn(u),I=Cn(y);if(c.hasOwnProperty(D)){let L=c[D];Array.isArray(L)||(L=[L],c[D]=L),L.push(I)}else c[D]=I}parseParens(c){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const y=Yn(this.remaining),D=this.remaining[y.length];if("/"!==D&&")"!==D&&";"!==D)throw new Error(`Cannot parse url '${this.url}'`);let I;y.indexOf(":")>-1?(I=y.substr(0,y.indexOf(":")),this.capture(I),this.capture(":")):c&&(I=j);const L=this.parseChildren();u[I]=1===Object.keys(L).length?L[j]:new yt([],L),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 vt{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=hr(c,this._root);return u?u.children.map(y=>y.value):[]}firstChild(c){const u=hr(c,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(c){const u=ir(c,this._root);return u.length<2?[]:u[u.length-2].children.map(D=>D.value).filter(D=>D!==c)}pathFromRoot(c){return ir(c,this._root).map(u=>u.value)}}function hr(h,c){if(h===c.value)return c;for(const u of c.children){const y=hr(h,u);if(y)return y}return null}function ir(h,c){if(h===c.value)return[c];for(const u of c.children){const y=ir(h,u);if(y.length)return y.unshift(c),y}return[]}class Hn{constructor(c,u){this.value=c,this.children=u}toString(){return`TreeNode(${this.value})`}}function Wn(h){const c={};return h&&h.children.forEach(u=>c[u.value.outlet]=u),c}class yn extends vt{constructor(c,u){super(c),this.snapshot=u,An(this,c)}toString(){return this.snapshot.toString()}}function pr(h,c){const u=function Gr(h,c){const L=new gr([],{},{},"",{},j,c,null,h.root,-1,{});return new Mn("",new Hn(L,[]))}(h,c),y=new k.X([new oe("",{})]),D=new k.X({}),I=new k.X({}),L=new k.X({}),K=new k.X(""),pe=new Ut(y,D,L,K,I,j,c,u.root);return pe.snapshot=u.root,new yn(new Hn(pe,[]),u)}class Ut{constructor(c,u,y,D,I,L,K,pe){this.url=c,this.params=u,this.queryParams=y,this.fragment=D,this.data=I,this.outlet=L,this.component=K,this._futureSnapshot=pe}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,Be.U)(c=>De(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Be.U)(c=>De(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ht(h,c="emptyOnly"){const u=h.pathFromRoot;let y=0;if("always"!==c)for(y=u.length-1;y>=1;){const D=u[y],I=u[y-1];if(D.routeConfig&&""===D.routeConfig.path)y--;else{if(I.component)break;y--}}return function kr(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 gr{constructor(c,u,y,D,I,L,K,pe,Qe,Bt,at){this.url=c,this.params=u,this.queryParams=y,this.fragment=D,this.data=I,this.outlet=L,this.component=K,this.routeConfig=pe,this._urlSegment=Qe,this._lastPathIndex=Bt,this._resolve=at}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=De(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=De(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(y=>y.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Mn extends vt{constructor(c,u){super(u),this.url=c,An(this,u)}toString(){return Cr(this._root)}}function An(h,c){c.value._routerState=h,c.children.forEach(u=>An(h,u))}function Cr(h){const c=h.children.length>0?` { ${h.children.map(Cr).join(", ")} } `:"";return`${h.value}${c}`}function Wr(h){if(h.snapshot){const c=h.snapshot,u=h._futureSnapshot;h.snapshot=u,ot(c.queryParams,u.queryParams)||h.queryParams.next(u.queryParams),c.fragment!==u.fragment&&h.fragment.next(u.fragment),ot(c.params,u.params)||h.params.next(u.params),function on(h,c){if(h.length!==c.length)return!1;for(let u=0;u<h.length;++u)if(!ot(h[u],c[u]))return!1;return!0}(c.url,u.url)||h.url.next(u.url),ot(c.data,u.data)||h.data.next(u.data)}else h.snapshot=h._futureSnapshot,h.data.next(h._futureSnapshot.data)}function wr(h,c){const u=ot(h.params,c.params)&&function q(h,c){return b(h,c)&&h.every((u,y)=>ot(u.parameters,c[y].parameters))}(h.url,c.url);return u&&!(!h.parent!=!c.parent)&&(!h.parent||wr(h.parent,c.parent))}function Kr(h,c,u){if(u&&h.shouldReuseRoute(c.value,u.value.snapshot)){const y=u.value;y._futureSnapshot=c.value;const D=function Ls(h,c,u){return c.children.map(y=>{for(const D of u.children)if(h.shouldReuseRoute(y.value,D.value.snapshot))return Kr(h,y,D);return Kr(h,y)})}(h,c,u);return new Hn(y,D)}{if(h.shouldAttach(c.value)){const I=h.retrieve(c.value);if(null!==I){const L=I.route;return L.value._futureSnapshot=c.value,L.children=c.children.map(K=>Kr(h,K)),L}}const y=function ti(h){return new Ut(new k.X(h.url),new k.X(h.params),new k.X(h.queryParams),new k.X(h.fragment),new k.X(h.data),h.outlet,h.component,h)}(c.value),D=c.children.map(I=>Kr(h,I));return new Hn(y,D)}}function Pn(h){return"object"==typeof h&&null!=h&&!h.outlets&&!h.segmentPath}function or(h){return"object"==typeof h&&null!=h&&h.outlets}function Bs(h,c,u,y,D){let I={};return y&&Lt(y,(L,K)=>{I[K]=Array.isArray(L)?L.map(pe=>`${pe}`):`${L}`}),new bn(u.root===h?c:ni(u.root,h,c),I,D)}function ni(h,c,u){const y={};return Lt(h.children,(D,I)=>{y[I]=D===c?u:ni(D,c,u)}),new yt(h.segments,y)}class Cs{constructor(c,u,y){if(this.isAbsolute=c,this.numberOfDoubleDots=u,this.commands=y,c&&y.length>0&&Pn(y[0]))throw new Error("Root segment cannot have matrix parameters");const D=y.find(or);if(D&&D!==mt(y))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ws{constructor(c,u,y){this.segmentGroup=c,this.processChildren=u,this.index=y}}function as(h,c,u){if(h||(h=new yt([],{})),0===h.segments.length&&h.hasChildren())return Ss(h,c,u);const y=function bi(h,c,u){let y=0,D=c;const I={match:!1,pathIndex:0,commandIndex:0};for(;D<h.segments.length;){if(y>=u.length)return I;const L=h.segments[D],K=u[y];if(or(K))break;const pe=`${K}`,Qe=y<u.length-1?u[y+1]:null;if(D>0&&void 0===pe)break;if(pe&&Qe&&"object"==typeof Qe&&void 0===Qe.outlets){if(!si(pe,Qe,L))return I;y+=2}else{if(!si(pe,{},L))return I;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 I=new yt(h.segments.slice(0,y.pathIndex),{});return I.children[j]=new yt(h.segments.slice(y.pathIndex),h.children),Ss(I,0,D)}return y.match&&0===D.length?new yt(h.segments,{}):y.match&&!h.hasChildren()?Ms(h,c,u):y.match?Ss(h,0,D):Ms(h,c,u)}function Ss(h,c,u){if(0===u.length)return new yt(h.segments,{});{const y=function Ei(h){return or(h[0])?h[0].outlets:{[j]:h}}(u),D={};return Lt(y,(I,L)=>{"string"==typeof I&&(I=[I]),null!==I&&(D[L]=as(h.children[L],c,I))}),Lt(h.children,(I,L)=>{void 0===y[L]&&(D[L]=I)}),new yt(h.segments,D)}}function Ms(h,c,u){const y=h.segments.slice(0,c);let D=0;for(;D<u.length;){const I=u[D];if(or(I)){const pe=ls(I.outlets);return new yt(y,pe)}if(0===D&&Pn(u[0])){y.push(new oe(h.segments[c].path,us(u[0]))),D++;continue}const L=or(I)?I.outlets[j]:`${I}`,K=D<u.length-1?u[D+1]:null;L&&K&&Pn(K)?(y.push(new oe(L,us(K))),D+=2):(y.push(new oe(L,{})),D++)}return new yt(y,{})}function ls(h){const c={};return Lt(h,(u,y)=>{"string"==typeof u&&(u=[u]),null!==u&&(c[y]=Ms(new yt([],{}),0,u))}),c}function us(h){const c={};return Lt(h,(u,y)=>c[y]=`${u}`),c}function si(h,c,u){return h==u.path&&ot(c,u.parameters)}class ii{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),Wr(this.futureState.root),this.activateChildRoutes(u,y,c)}deactivateChildRoutes(c,u,y){const D=Wn(u);c.children.forEach(I=>{const L=I.value.outlet;this.deactivateRoutes(I,D[L],y),delete D[L]}),Lt(D,(I,L)=>{this.deactivateRouteAndItsChildren(I,y)})}deactivateRoutes(c,u,y){const D=c.value,I=u?u.value:null;if(D===I)if(D.component){const L=y.getContext(D.outlet);L&&this.deactivateChildRoutes(c,u,L.children)}else this.deactivateChildRoutes(c,u,y);else I&&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,I=Wn(c);for(const L of Object.keys(I))this.deactivateRouteAndItsChildren(I[L],D);if(y&&y.outlet){const L=y.outlet.detach(),K=y.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:L,route:c,contexts:K})}}deactivateRouteAndOutlet(c,u){const y=u.getContext(c.value.outlet),D=y&&c.value.component?y.children:u,I=Wn(c);for(const L of Object.keys(I))this.deactivateRouteAndItsChildren(I[L],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=Wn(u);c.children.forEach(I=>{this.activateRoutes(I,D[I.value.outlet],y),this.forwardEvent(new ve(I.value.snapshot))}),c.children.length&&this.forwardEvent(new fn(c.value.snapshot))}activateRoutes(c,u,y){const D=c.value,I=u?u.value:null;if(Wr(D),D===I)if(D.component){const L=y.getOrCreateContext(D.outlet);this.activateChildRoutes(c,u,L.children)}else this.activateChildRoutes(c,u,y);else if(D.component){const L=y.getOrCreateContext(D.outlet);if(this.routeReuseStrategy.shouldAttach(D.snapshot)){const K=this.routeReuseStrategy.retrieve(D.snapshot);this.routeReuseStrategy.store(D.snapshot,null),L.children.onOutletReAttached(K.contexts),L.attachRef=K.componentRef,L.route=K.route.value,L.outlet&&L.outlet.attach(K.componentRef,K.route.value),Wr(K.route.value),this.activateChildRoutes(c,null,L.children)}else{const K=function Tr(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),pe=K?K.module.componentFactoryResolver:null;L.attachRef=null,L.route=D,L.resolver=pe,L.outlet&&L.outlet.activateWith(D,pe),this.activateChildRoutes(c,null,L.children)}}else this.activateChildRoutes(c,null,y)}}class cs{constructor(c,u){this.routes=c,this.module=u}}function On(h){return"function"==typeof h}function Zn(h){return h instanceof bn}const mr=Symbol("INITIAL_VALUE");function Qr(){return(0,Fe.w)(h=>(0,X.aj)(h.map(c=>c.pipe((0,nt.q)(1),(0,Un.O)(mr)))).pipe((0,zt.R)((c,u)=>{let y=!1;return u.reduce((D,I,L)=>D!==mr?D:(I===mr&&(y=!0),y||!1!==I&&L!==u.length-1&&!Zn(I)?D:I),c)},mr),(0,Me.h)(c=>c!==mr),(0,Be.U)(c=>Zn(c)?c:!0===c),(0,nt.q)(1)))}class $n{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Sr,this.attachRef=null}}class Sr{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 $n,this.contexts.set(c,u)),u}getContext(c){return this.contexts.get(c)||null}}let Is=(()=>{class h{constructor(u,y,D,I,L){this.parentContexts=u,this.location=y,this.resolver=D,this.changeDetector=L,this.activated=null,this._activatedRoute=null,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.name=I||j,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 L=(y=y||this.resolver).resolveComponentFactory(u._futureSnapshot.routeConfig.component),K=this.parentContexts.getOrCreateContext(this.name).children,pe=new Vs(u,K,this.location.injector);this.activated=this.location.createComponent(L,this.location.length,pe),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return h.\u0275fac=function(u){return new(u||h)(p.Y36(Sr),p.Y36(p.s_b),p.Y36(p._Vd),p.$8M("name"),p.Y36(p.sBO))},h.\u0275dir=p.lG2({type:h,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),h})();class Vs{constructor(c,u,y){this.route=c,this.childContexts=u,this.parent=y}get(c,u){return c===Ut?this.route:c===Sr?this.childContexts:this.parent.get(c,u)}}let ai=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275cmp=p.Xpm({type:h,selectors:[["ng-component"]],decls:1,vars:0,template:function(u,y){1&u&&p._UZ(0,"router-outlet")},directives:[Is],encapsulation:2}),h})();function $s(h,c=""){for(let u=0;u<h.length;u++){const y=h[u];ds(y,li(c,y))}}function ds(h,c){h.children&&$s(h.children,c)}function li(h,c){return c?h||c.path?h&&!c.path?`${h}/`:!h&&c.path?c.path:`${h}/${c.path}`:"":h}function Lr(h){const c=h.children&&h.children.map(Lr),u=c?Object.assign(Object.assign({},h),{children:c}):Object.assign({},h);return!u.component&&(c||u.loadChildren)&&u.outlet&&u.outlet!==j&&(u.component=ai),u}function qn(h){return h.outlet||j}function rn(h,c){const u=h.filter(y=>qn(y)===c);return u.push(...h.filter(y=>qn(y)!==c)),u}const _={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({},_):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const I=(c.matcher||ht)(u,h,c);if(!I)return Object.assign({},_);const L={};Lt(I.posParams,(pe,Qe)=>{L[Qe]=pe.path});const K=I.consumed.length>0?Object.assign(Object.assign({},L),I.consumed[I.consumed.length-1].parameters):L;return{matched:!0,consumedSegments:I.consumed,lastChild:I.consumed.length,parameters:K,positionalParamSegments:null!==(y=I.posParams)&&void 0!==y?y:{}}}function v(h,c,u,y,D="corrected"){if(u.length>0&&function de(h,c,u){return u.some(y=>Ke(h,c,y)&&qn(y)!==j)}(h,u,y)){const L=new yt(c,function Q(h,c,u,y){const D={};D[j]=y,y._sourceSegment=h,y._segmentIndexShift=c.length;for(const I of u)if(""===I.path&&qn(I)!==j){const L=new yt([],{});L._sourceSegment=h,L._segmentIndexShift=c.length,D[qn(I)]=L}return D}(h,c,y,new yt(u,h.children)));return L._sourceSegment=h,L._segmentIndexShift=c.length,{segmentGroup:L,slicedSegments:[]}}if(0===u.length&&function _e(h,c,u){return u.some(y=>Ke(h,c,y))}(h,u,y)){const L=new yt(h.segments,function O(h,c,u,y,D,I){const L={};for(const K of y)if(Ke(h,u,K)&&!D[qn(K)]){const pe=new yt([],{});pe._sourceSegment=h,pe._segmentIndexShift="legacy"===I?h.segments.length:c.length,L[qn(K)]=pe}return Object.assign(Object.assign({},D),L)}(h,c,u,y,h.children,D));return L._sourceSegment=h,L._segmentIndexShift=c.length,{segmentGroup:L,slicedSegments:u}}const I=new yt(h.segments,h.children);return I._sourceSegment=h,I._segmentIndexShift=c.length,{segmentGroup:I,slicedSegments:u}}function Ke(h,c,u){return(!(h.hasChildren()||c.length>0)||"full"!==u.pathMatch)&&""===u.path}function $t(h,c,u,y){return!!(qn(h)===y||y!==j&&Ke(c,u,h))&&("**"===h.path||S(c,h,u).matched)}function Ft(h,c,u){return 0===c.length&&!h.children[u]}class Et{constructor(c){this.segmentGroup=c||null}}class Rt{constructor(c){this.urlTree=c}}function cn(h){return new J.y(c=>c.error(new Et(h)))}function Zt(h){return new J.y(c=>c.error(new Rt(h)))}function an(h){return new J.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${h}'`)))}class ut{constructor(c,u,y,D,I){this.configLoader=u,this.urlSerializer=y,this.urlTree=D,this.config=I,this.allowRedirects=!0,this.ngModule=c.get(p.h0i)}apply(){const c=v(this.urlTree.root,[],[],this.config).segmentGroup,u=new yt(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,u,j).pipe((0,Be.U)(I=>this.createUrlTree(Zr(I),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ot.K)(I=>{if(I instanceof Rt)return this.allowRedirects=!1,this.match(I.urlTree);throw I instanceof Et?this.noMatchError(I):I}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,j).pipe((0,Be.U)(D=>this.createUrlTree(Zr(D),c.queryParams,c.fragment))).pipe((0,Ot.K)(D=>{throw D instanceof Et?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 yt([],{[j]:c}):c;return new bn(D,u,y)}expandSegmentGroup(c,u,y,D){return 0===y.segments.length&&y.hasChildren()?this.expandChildren(c,u,y).pipe((0,Be.U)(I=>new yt([],I))):this.expandSegment(c,y,u,y.segments,D,!0)}expandChildren(c,u,y){const D=[];for(const I of Object.keys(y.children))"primary"===I?D.unshift(I):D.push(I);return(0,le.D)(D).pipe((0,bt.b)(I=>{const L=y.children[I],K=rn(u,I);return this.expandSegmentGroup(c,K,L,I).pipe((0,Be.U)(pe=>({segment:pe,outlet:I})))}),(0,zt.R)((I,L)=>(I[L.outlet]=L.segment,I),{}),function At(h,c){const u=arguments.length>=2;return y=>y.pipe(h?(0,Me.h)((D,I)=>h(D,I,y)):lt.y,Ee(1),u?jt(c):qe(()=>new ne))}())}expandSegment(c,u,y,D,I,L){return(0,le.D)(y).pipe((0,bt.b)(K=>this.expandSegmentAgainstRoute(c,u,y,K,D,I,L).pipe((0,Ot.K)(Qe=>{if(Qe instanceof Et)return(0,H.of)(null);throw Qe}))),rt(K=>!!K),(0,Ot.K)((K,pe)=>{if(K instanceof ne||"EmptyError"===K.name){if(Ft(u,D,I))return(0,H.of)(new yt([],{}));throw new Et(u)}throw K}))}expandSegmentAgainstRoute(c,u,y,D,I,L,K){return $t(D,u,I,L)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(c,u,D,I,L):K&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,u,y,D,I,L):cn(u):cn(u)}expandSegmentAgainstRouteUsingRedirect(c,u,y,D,I,L){return"**"===D.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,y,D,L):this.expandRegularSegmentAgainstRouteUsingRedirect(c,u,y,D,I,L)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,u,y,D){const I=this.applyRedirectCommands([],y.redirectTo,{});return y.redirectTo.startsWith("/")?Zt(I):this.lineralizeSegments(y,I).pipe((0,ze.zg)(L=>{const K=new yt(L,{});return this.expandSegment(c,K,u,L,D,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,u,y,D,I,L){const{matched:K,consumedSegments:pe,lastChild:Qe,positionalParamSegments:Bt}=S(u,D,I);if(!K)return cn(u);const at=this.applyRedirectCommands(pe,D.redirectTo,Bt);return D.redirectTo.startsWith("/")?Zt(at):this.lineralizeSegments(D,at).pipe((0,ze.zg)(Vt=>this.expandSegment(c,u,y,Vt.concat(I.slice(Qe)),L,!1)))}matchSegmentAgainstRoute(c,u,y,D,I){if("**"===y.path)return y.loadChildren?(y._loadedConfig?(0,H.of)(y._loadedConfig):this.configLoader.load(c.injector,y)).pipe((0,Be.U)(Vt=>(y._loadedConfig=Vt,new yt(D,{})))):(0,H.of)(new yt(D,{}));const{matched:L,consumedSegments:K,lastChild:pe}=S(u,y,D);if(!L)return cn(u);const Qe=D.slice(pe);return this.getChildConfig(c,y,D).pipe((0,ze.zg)(at=>{const Vt=at.module,Jt=at.routes,{segmentGroup:Zs,slicedSegments:Hr}=v(u,K,Qe,Jt),Xn=new yt(Zs.segments,Zs.children);if(0===Hr.length&&Xn.hasChildren())return this.expandChildren(Vt,Jt,Xn).pipe((0,Be.U)(Ir=>new yt(K,Ir)));if(0===Jt.length&&0===Hr.length)return(0,H.of)(new yt(K,{}));const es=qn(y)===I;return this.expandSegment(Vt,Xn,Jt,Hr,es?j:I,!0).pipe((0,Be.U)(Ar=>new yt(K.concat(Ar.segments),Ar.children)))}))}getChildConfig(c,u,y){return u.children?(0,H.of)(new cs(u.children,c)):u.loadChildren?void 0!==u._loadedConfig?(0,H.of)(u._loadedConfig):this.runCanLoadGuards(c.injector,u,y).pipe((0,ze.zg)(D=>D?this.configLoader.load(c.injector,u).pipe((0,Be.U)(I=>(u._loadedConfig=I,I))):function Br(h){return new J.y(c=>c.error(Pe(`Cannot load children because the guard of the route "path: '${h.path}'" returned false`)))}(u))):(0,H.of)(new cs([],c))}runCanLoadGuards(c,u,y){const D=u.canLoad;if(!D||0===D.length)return(0,H.of)(!0);const I=D.map(L=>{const K=c.get(L);let pe;if(function Us(h){return h&&On(h.canLoad)}(K))pe=K.canLoad(u,y);else{if(!On(K))throw new Error("Invalid CanLoad guard");pe=K(u,y)}return ft(pe)});return(0,H.of)(I).pipe(Qr(),(0,en.b)(L=>{if(!Zn(L))return;const K=Pe(`Redirecting to "${this.urlSerializer.serialize(L)}"`);throw K.url=L,K}),(0,Be.U)(L=>!0===L))}lineralizeSegments(c,u){let y=[],D=u.root;for(;;){if(y=y.concat(D.segments),0===D.numberOfChildren)return(0,H.of)(y);if(D.numberOfChildren>1||!D.children[j])return an(c.redirectTo);D=D.children[j]}}applyRedirectCommands(c,u,y){return this.applyRedirectCreatreUrlTree(u,this.urlSerializer.parse(u),c,y)}applyRedirectCreatreUrlTree(c,u,y,D){const I=this.createSegmentGroup(c,u.root,y,D);return new bn(I,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(c,u){const y={};return Lt(c,(D,I)=>{if("string"==typeof D&&D.startsWith(":")){const K=D.substring(1);y[I]=u[K]}else y[I]=D}),y}createSegmentGroup(c,u,y,D){const I=this.createSegments(c,u.segments,y,D);let L={};return Lt(u.children,(K,pe)=>{L[pe]=this.createSegmentGroup(c,K,y,D)}),new yt(I,L)}createSegments(c,u,y,D){return u.map(I=>I.path.startsWith(":")?this.findPosParam(c,I,D):this.findOrReturn(I,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 Zr(h){const c={};for(const y of Object.keys(h.children)){const I=Zr(h.children[y]);(I.segments.length>0||I.hasChildren())&&(c[y]=I)}return function jr(h){if(1===h.numberOfChildren&&h.children[j]){const c=h.children[j];return new yt(h.segments.concat(c.segments),c.children)}return h}(new yt(h.segments,c))}class Os{constructor(c){this.path=c,this.route=this.path[this.path.length-1]}}class zs{constructor(c,u){this.component=c,this.route=u}}function w(h,c,u){const y=h._root;return C(y,c?c._root:null,u,[y.value])}function o(h,c,u){const y=function f(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 I=Wn(c);return h.children.forEach(L=>{(function x(h,c,u,y,D={canDeactivateChecks:[],canActivateChecks:[]}){const I=h.value,L=c?c.value:null,K=u?u.getContext(h.value.outlet):null;if(L&&I.routeConfig===L.routeConfig){const pe=function U(h,c,u){if("function"==typeof u)return u(h,c);switch(u){case"pathParamsChange":return!b(h.url,c.url);case"pathParamsOrQueryParamsChange":return!b(h.url,c.url)||!ot(h.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wr(h,c)||!ot(h.queryParams,c.queryParams);default:return!wr(h,c)}}(L,I,I.routeConfig.runGuardsAndResolvers);pe?D.canActivateChecks.push(new Os(y)):(I.data=L.data,I._resolvedData=L._resolvedData),C(h,c,I.component?K?K.children:null:u,y,D),pe&&K&&K.outlet&&K.outlet.isActivated&&D.canDeactivateChecks.push(new zs(K.outlet.component,L))}else L&&V(c,K,D),D.canActivateChecks.push(new Os(y)),C(h,null,I.component?K?K.children:null:u,y,D)})(L,I[L.value.outlet],u,y.concat([L.value]),D),delete I[L.value.outlet]}),Lt(I,(L,K)=>V(L,u.getContext(K),D)),D}function V(h,c,u){const y=Wn(h),D=h.value;Lt(y,(I,L)=>{V(I,D.component?c?c.children.getContext(L):null:c,u)}),u.canDeactivateChecks.push(new zs(D.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,D))}class Dt{}function ln(h){return new J.y(c=>c.error(h))}class dn{constructor(c,u,y,D,I,L){this.rootComponentType=c,this.config=u,this.urlTree=y,this.url=D,this.paramsInheritanceStrategy=I,this.relativeLinkResolution=L}recognize(){const c=v(this.urlTree.root,[],[],this.config.filter(L=>void 0===L.redirectTo),this.relativeLinkResolution).segmentGroup,u=this.processSegmentGroup(this.config,c,j);if(null===u)return null;const y=new gr([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},j,this.rootComponentType,null,this.urlTree.root,-1,{}),D=new Hn(y,u),I=new Mn(this.url,D);return this.inheritParamsAndData(I._root),I}inheritParamsAndData(c){const u=c.value,y=Ht(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 I of Object.keys(u.children)){const L=u.children[I],K=rn(c,I),pe=this.processSegmentGroup(K,L,I);if(null===pe)return null;y.push(...pe)}const D=xn(y);return function wn(h){h.sort((c,u)=>c.value.outlet===j?-1:u.value.outlet===j?1:c.value.outlet.localeCompare(u.value.outlet))}(D),D}processSegment(c,u,y,D){for(const I of c){const L=this.processSegmentAgainstRoute(I,u,y,D);if(null!==L)return L}return Ft(u,y,D)?[]:null}processSegmentAgainstRoute(c,u,y,D){if(c.redirectTo||!$t(c,u,y,D))return null;let I,L=[],K=[];if("**"===c.path){const Jt=y.length>0?mt(y).parameters:{};I=new gr(y,Jt,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xs(c),qn(c),c.component,c,Jn(u),lr(u)+y.length,fs(c))}else{const Jt=S(u,c,y);if(!Jt.matched)return null;L=Jt.consumedSegments,K=y.slice(Jt.lastChild),I=new gr(L,Jt.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xs(c),qn(c),c.component,c,Jn(u),lr(u)+L.length,fs(c))}const pe=function qr(h){return h.children?h.children:h.loadChildren?h._loadedConfig.routes:[]}(c),{segmentGroup:Qe,slicedSegments:Bt}=v(u,L,K,pe.filter(Jt=>void 0===Jt.redirectTo),this.relativeLinkResolution);if(0===Bt.length&&Qe.hasChildren()){const Jt=this.processChildren(pe,Qe);return null===Jt?null:[new Hn(I,Jt)]}if(0===pe.length&&0===Bt.length)return[new Hn(I,[])];const at=qn(c)===D,Vt=this.processSegment(pe,Qe,Bt,at?j:D);return null===Vt?null:[new Hn(I,Vt)]}}function yr(h){const c=h.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function xn(h){const c=[],u=new Set;for(const y of h){if(!yr(y)){c.push(y);continue}const D=c.find(I=>y.value.routeConfig===I.value.routeConfig);void 0!==D?(D.children.push(...y.children),u.add(D)):c.push(y)}for(const y of u){const D=xn(y.children);c.push(new Hn(y.value,D))}return c.filter(y=>!u.has(y))}function Jn(h){let c=h;for(;c._sourceSegment;)c=c._sourceSegment;return c}function lr(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 xs(h){return h.data||{}}function fs(h){return h.resolve||{}}function it(h){return[...Object.keys(h),...Object.getOwnPropertySymbols(h)]}function It(h){return(0,Fe.w)(c=>{const u=h(c);return u?(0,le.D)(u).pipe((0,Be.U)(()=>c)):(0,H.of)(c)})}class Yt extends class _r{shouldDetach(c){return!1}store(c,u){}shouldAttach(c){return!1}retrieve(c){return null}shouldReuseRoute(c,u){return c.routeConfig===u.routeConfig}}{}const Tn=new p.OlP("ROUTES");class gt{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,Be.U)(I=>{this.onLoadEndListener&&this.onLoadEndListener(u);const L=I.create(c);return new cs(nn(L.injector.get(Tn,void 0,p.XFs.Self|p.XFs.Optional)).map(Lr),L)}),(0,Ot.K)(I=>{throw u._loader$=void 0,I}));return u._loader$=new Z.c(D,()=>new ue.xQ).pipe((0,Nn.x)()),u._loader$}loadModuleFactory(c){return ft(c()).pipe((0,ze.zg)(u=>u instanceof p.YKP?(0,H.of)(u):(0,le.D)(this.compiler.compileModuleAsync(u))))}}class uo{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,u){return c}}function Rn(h){throw h}function Jr(h,c,u){return c.parse("/")}function Mr(h,c){return(0,H.of)(null)}const Xr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ln=(()=>{class h{constructor(u,y,D,I,L,K,pe){this.rootComponentType=u,this.urlSerializer=y,this.rootContexts=D,this.location=I,this.config=pe,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ue.xQ,this.errorHandler=Rn,this.malformedUriErrorHandler=Jr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mr,afterPreactivation:Mr},this.urlHandlingStrategy=new uo,this.routeReuseStrategy=new Yt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=L.get(p.h0i),this.console=L.get(p.c2e);const at=L.get(p.R0b);this.isNgZoneEnabled=at instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(pe),this.currentUrlTree=function Ct(){return new bn(new yt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gt(L,K,Vt=>this.triggerEvent(new Ne(Vt)),Vt=>this.triggerEvent(new tn(Vt))),this.routerState=pr(this.currentUrlTree,this.rootComponentType),this.transitions=new k.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,Me.h)(D=>0!==D.id),(0,Be.U)(D=>Object.assign(Object.assign({},D),{extractedUrl:this.urlHandlingStrategy.extract(D.rawUrl)})),(0,Fe.w)(D=>{let I=!1,L=!1;return(0,H.of)(D).pipe((0,en.b)(K=>{this.currentNavigation={id:K.id,initialUrl:K.currentRawUrl,extractedUrl:K.extractedUrl,trigger:K.source,extras:K.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Fe.w)(K=>{const pe=this.browserUrlTree.toString(),Qe=!this.navigated||K.extractedUrl.toString()!==pe||pe!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Qe)&&this.urlHandlingStrategy.shouldProcessUrl(K.rawUrl))return Gs(K.source)&&(this.browserUrlTree=K.extractedUrl),(0,H.of)(K).pipe((0,Fe.w)(at=>{const Vt=this.transitions.getValue();return y.next(new G(at.id,this.serializeUrl(at.extractedUrl),at.source,at.restoredState)),Vt!==this.transitions.getValue()?z.E:Promise.resolve(at)}),function Ps(h,c,u,y){return(0,Fe.w)(D=>function ar(h,c,u,y,D){return new ut(h,c,u,y,D).apply()}(h,c,u,D.extractedUrl,y).pipe((0,Be.U)(I=>Object.assign(Object.assign({},D),{urlAfterRedirects:I}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,en.b)(at=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:at.urlAfterRedirects})}),function Ur(h,c,u,y,D){return(0,ze.zg)(I=>function qt(h,c,u,y,D="emptyOnly",I="legacy"){try{const L=new dn(h,c,u,y,D,I).recognize();return null===L?ln(new Dt):(0,H.of)(L)}catch(L){return ln(L)}}(h,c,I.urlAfterRedirects,u(I.urlAfterRedirects),y,D).pipe((0,Be.U)(L=>Object.assign(Object.assign({},I),{targetSnapshot:L}))))}(this.rootComponentType,this.config,at=>this.serializeUrl(at),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,en.b)(at=>{if("eager"===this.urlUpdateStrategy){if(!at.extras.skipLocationChange){const Jt=this.urlHandlingStrategy.merge(at.urlAfterRedirects,at.rawUrl);this.setBrowserUrl(Jt,at)}this.browserUrlTree=at.urlAfterRedirects}const Vt=new Ae(at.id,this.serializeUrl(at.extractedUrl),this.serializeUrl(at.urlAfterRedirects),at.targetSnapshot);y.next(Vt)}));if(Qe&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Vt,extractedUrl:Jt,source:Zs,restoredState:Hr,extras:Xn}=K,es=new G(Vt,this.serializeUrl(Jt),Zs,Hr);y.next(es);const qs=pr(Jt,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},K),{targetSnapshot:qs,urlAfterRedirects:Jt,extras:Object.assign(Object.assign({},Xn),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=K.rawUrl,K.resolve(null),z.E}),It(K=>{const{targetSnapshot:pe,id:Qe,extractedUrl:Bt,rawUrl:at,extras:{skipLocationChange:Vt,replaceUrl:Jt}}=K;return this.hooks.beforePreactivation(pe,{navigationId:Qe,appliedUrlTree:Bt,rawUrlTree:at,skipLocationChange:!!Vt,replaceUrl:!!Jt})}),(0,en.b)(K=>{const pe=new et(K.id,this.serializeUrl(K.extractedUrl),this.serializeUrl(K.urlAfterRedirects),K.targetSnapshot);this.triggerEvent(pe)}),(0,Be.U)(K=>Object.assign(Object.assign({},K),{guards:w(K.targetSnapshot,K.currentSnapshot,this.rootContexts)})),function te(h,c){return(0,ze.zg)(u=>{const{targetSnapshot:y,currentSnapshot:D,guards:{canActivateChecks:I,canDeactivateChecks:L}}=u;return 0===L.length&&0===I.length?(0,H.of)(Object.assign(Object.assign({},u),{guardsResult:!0})):function he(h,c,u,y){return(0,le.D)(h).pipe((0,ze.zg)(D=>function Xe(h,c,u,y,D){const I=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!I||0===I.length)return(0,H.of)(!0);const L=I.map(K=>{const pe=o(K,c,D);let Qe;if(function oi(h){return h&&On(h.canDeactivate)}(pe))Qe=ft(pe.canDeactivate(h,c,u,y));else{if(!On(pe))throw new Error("Invalid CanDeactivate guard");Qe=ft(pe(h,c,u,y))}return Qe.pipe(rt())});return(0,H.of)(L).pipe(Qr())}(D.component,D.route,u,c,y)),rt(D=>!0!==D,!0))}(L,y,D,h).pipe((0,ze.zg)(K=>K&&function Yr(h){return"boolean"==typeof h}(K)?function Oe(h,c,u,y){return(0,le.D)(c).pipe((0,bt.b)(D=>(0,ie.z)(function _t(h,c){return null!==h&&c&&c(new Nt(h)),(0,H.of)(!0)}(D.route.parent,y),function Je(h,c){return null!==h&&c&&c(new sn(h)),(0,H.of)(!0)}(D.route,y),function tt(h,c,u){const y=c[c.length-1],I=c.slice(0,c.length-1).reverse().map(L=>function a(h){const c=h.routeConfig?h.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:h,guards:c}:null}(L)).filter(L=>null!==L).map(L=>(0,$.P)(()=>{const K=L.guards.map(pe=>{const Qe=o(pe,L.node,u);let Bt;if(function As(h){return h&&On(h.canActivateChild)}(Qe))Bt=ft(Qe.canActivateChild(y,h));else{if(!On(Qe))throw new Error("Invalid CanActivateChild guard");Bt=ft(Qe(y,h))}return Bt.pipe(rt())});return(0,H.of)(K).pipe(Qr())}));return(0,H.of)(I).pipe(Qr())}(h,D.path,u),function Tt(h,c,u){const y=c.routeConfig?c.routeConfig.canActivate:null;if(!y||0===y.length)return(0,H.of)(!0);const D=y.map(I=>(0,$.P)(()=>{const L=o(I,c,u);let K;if(function Hs(h){return h&&On(h.canActivate)}(L))K=ft(L.canActivate(c,h));else{if(!On(L))throw new Error("Invalid CanActivate guard");K=ft(L(c,h))}return K.pipe(rt())}));return(0,H.of)(D).pipe(Qr())}(h,D.route,u))),rt(D=>!0!==D,!0))}(y,I,h,c):(0,H.of)(K)),(0,Be.U)(K=>Object.assign(Object.assign({},u),{guardsResult:K})))})}(this.ngModule.injector,K=>this.triggerEvent(K)),(0,en.b)(K=>{if(Zn(K.guardsResult)){const Qe=Pe(`Redirecting to "${this.serializeUrl(K.guardsResult)}"`);throw Qe.url=K.guardsResult,Qe}const pe=new Se(K.id,this.serializeUrl(K.extractedUrl),this.serializeUrl(K.urlAfterRedirects),K.targetSnapshot,!!K.guardsResult);this.triggerEvent(pe)}),(0,Me.h)(K=>!!K.guardsResult||(this.restoreHistory(K),this.cancelNavigationTransition(K,""),!1)),It(K=>{if(K.guards.canActivateChecks.length)return(0,H.of)(K).pipe((0,en.b)(pe=>{const Qe=new st(pe.id,this.serializeUrl(pe.extractedUrl),this.serializeUrl(pe.urlAfterRedirects),pe.targetSnapshot);this.triggerEvent(Qe)}),(0,Fe.w)(pe=>{let Qe=!1;return(0,H.of)(pe).pipe(function Rs(h,c){return(0,ze.zg)(u=>{const{targetSnapshot:y,guards:{canActivateChecks:D}}=u;if(!D.length)return(0,H.of)(u);let I=0;return(0,le.D)(D).pipe((0,bt.b)(L=>function ui(h,c,u,y){return function Ye(h,c,u,y){const D=it(h);if(0===D.length)return(0,H.of)({});const I={};return(0,le.D)(D).pipe((0,ze.zg)(L=>function ct(h,c,u,y){const D=o(h,c,y);return ft(D.resolve?D.resolve(c,u):D(c,u))}(h[L],c,u,y).pipe((0,en.b)(K=>{I[L]=K}))),Ee(1),(0,ze.zg)(()=>it(I).length===D.length?(0,H.of)(I):z.E))}(h._resolve,h,c,y).pipe((0,Be.U)(I=>(h._resolvedData=I,h.data=Object.assign(Object.assign({},h.data),Ht(h,u).resolve),null)))}(L.route,y,h,c)),(0,en.b)(()=>I++),Ee(1),(0,ze.zg)(L=>I===D.length?(0,H.of)(u):z.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,en.b)({next:()=>Qe=!0,complete:()=>{Qe||(this.restoreHistory(pe),this.cancelNavigationTransition(pe,"At least one route resolver didn't emit any value."))}}))}),(0,en.b)(pe=>{const Qe=new Kt(pe.id,this.serializeUrl(pe.extractedUrl),this.serializeUrl(pe.urlAfterRedirects),pe.targetSnapshot);this.triggerEvent(Qe)}))}),It(K=>{const{targetSnapshot:pe,id:Qe,extractedUrl:Bt,rawUrl:at,extras:{skipLocationChange:Vt,replaceUrl:Jt}}=K;return this.hooks.afterPreactivation(pe,{navigationId:Qe,appliedUrlTree:Bt,rawUrlTree:at,skipLocationChange:!!Vt,replaceUrl:!!Jt})}),(0,Be.U)(K=>{const pe=function In(h,c,u){const y=Kr(h,c._root,u?u._root:void 0);return new yn(y,c)}(this.routeReuseStrategy,K.targetSnapshot,K.currentRouterState);return Object.assign(Object.assign({},K),{targetRouterState:pe})}),(0,en.b)(K=>{this.currentUrlTree=K.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(K.urlAfterRedirects,K.rawUrl),this.routerState=K.targetRouterState,"deferred"===this.urlUpdateStrategy&&(K.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,K),this.browserUrlTree=K.urlAfterRedirects)}),((h,c,u)=>(0,Be.U)(y=>(new ii(c,y.targetRouterState,y.currentRouterState,u).activate(h),y)))(this.rootContexts,this.routeReuseStrategy,K=>this.triggerEvent(K)),(0,en.b)({next(){I=!0},complete(){I=!0}}),(0,me.x)(()=>{var K;I||L||this.cancelNavigationTransition(D,`Navigation ID ${D.id} is not equal to the current navigation id ${this.navigationId}`),(null===(K=this.currentNavigation)||void 0===K?void 0:K.id)===D.id&&(this.currentNavigation=null)}),(0,Ot.K)(K=>{if(L=!0,function Ge(h){return h&&h[Re]}(K)){const pe=Zn(K.url);pe||(this.navigated=!0,this.restoreHistory(D,!0));const Qe=new ae(D.id,this.serializeUrl(D.extractedUrl),K.message);y.next(Qe),pe?setTimeout(()=>{const Bt=this.urlHandlingStrategy.merge(K.url,this.rawUrlTree),at={skipLocationChange:D.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Gs(D.source)};this.scheduleNavigation(Bt,"imperative",null,at,{resolve:D.resolve,reject:D.reject,promise:D.promise})},0):D.resolve(!1)}else{this.restoreHistory(D,!0);const pe=new be(D.id,this.serializeUrl(D.extractedUrl),K);y.next(pe);try{D.resolve(this.errorHandler(K))}catch(Qe){D.reject(Qe)}}return z.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 I={replaceUrl:!0},L=(null===(D=u.state)||void 0===D?void 0:D.navigationId)?u.state:null;if(L){const pe=Object.assign({},L);delete pe.navigationId,delete pe.\u0275routerPageId,0!==Object.keys(pe).length&&(I.state=pe)}const K=this.parseUrl(u.url);this.scheduleNavigation(K,y,L,I)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(u){this.events.next(u)}resetConfig(u){$s(u),this.config=u.map(Lr),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:I,fragment:L,queryParamsHandling:K,preserveFragment:pe}=y,Qe=D||this.routerState.root,Bt=pe?this.currentUrlTree.fragment:L;let at=null;switch(K){case"merge":at=Object.assign(Object.assign({},this.currentUrlTree.queryParams),I);break;case"preserve":at=this.currentUrlTree.queryParams;break;default:at=I||null}return null!==at&&(at=this.removeEmptyProps(at)),function Vn(h,c,u,y,D){if(0===u.length)return Bs(c.root,c.root,c,y,D);const I=function Di(h){if("string"==typeof h[0]&&1===h.length&&"/"===h[0])return new Cs(!0,0,h);let c=0,u=!1;const y=h.reduce((D,I,L)=>{if("object"==typeof I&&null!=I){if(I.outlets){const K={};return Lt(I.outlets,(pe,Qe)=>{K[Qe]="string"==typeof pe?pe.split("/"):pe}),[...D,{outlets:K}]}if(I.segmentPath)return[...D,I.segmentPath]}return"string"!=typeof I?[...D,I]:0===L?(I.split("/").forEach((K,pe)=>{0==pe&&"."===K||(0==pe&&""===K?u=!0:".."===K?c++:""!=K&&D.push(K))}),D):[...D,I]},[]);return new Cs(u,c,y)}(u);if(I.toRoot())return Bs(c.root,new yt([],{}),c,y,D);const L=function Ts(h,c,u){if(h.isAbsolute)return new ws(c.root,!0,0);if(-1===u.snapshot._lastPathIndex){const I=u.snapshot._urlSegment;return new ws(I,I===c.root,0)}const y=Pn(h.commands[0])?0:1;return function ri(h,c,u){let y=h,D=c,I=u;for(;I>D;){if(I-=D,y=y.parent,!y)throw new Error("Invalid number of '../'");D=y.segments.length}return new ws(y,!1,D-I)}(u.snapshot._urlSegment,u.snapshot._lastPathIndex+y,h.numberOfDoubleDots)}(I,c,h),K=L.processChildren?Ss(L.segmentGroup,L.index,I.commands):as(L.segmentGroup,L.index,I.commands);return Bs(L.segmentGroup,K,c,y,D)}(Qe,this.currentUrlTree,u,at,null!=Bt?Bt:null)}navigateByUrl(u,y={skipLocationChange:!1}){const D=Zn(u)?u:this.parseUrl(u),I=this.urlHandlingStrategy.merge(D,this.rawUrlTree);return this.scheduleNavigation(I,"imperative",null,y)}navigate(u,y={skipLocationChange:!1}){return function Ci(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({},Xr):!1===y?Object.assign({},hs):y,Zn(u))return gn(this.currentUrlTree,u,D);const I=this.parseUrl(u);return gn(this.currentUrlTree,I,D)}removeEmptyProps(u){return Object.keys(u).reduce((y,D)=>{const I=u[D];return null!=I&&(y[D]=I),y},{})}processNavigations(){this.navigations.subscribe(u=>{this.navigated=!0,this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId,this.events.next(new se(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,I,L){var K,pe,Qe;if(this.disposed)return Promise.resolve(!1);const Bt=this.transitions.value,at=Gs(y)&&Bt&&!Gs(Bt.source),Vt=Bt.rawUrl.toString()===u.toString(),Jt=Bt.id===(null===(K=this.currentNavigation)||void 0===K?void 0:K.id);if(at&&Vt&&Jt)return Promise.resolve(!0);let Hr,Xn,es;L?(Hr=L.resolve,Xn=L.reject,es=L.promise):es=new Promise((Ir,Js)=>{Hr=Ir,Xn=Js});const qs=++this.navigationId;let Ar;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(D=this.location.getState()),Ar=D&&D.\u0275routerPageId?D.\u0275routerPageId:I.replaceUrl||I.skipLocationChange?null!==(pe=this.browserPageId)&&void 0!==pe?pe:0:(null!==(Qe=this.browserPageId)&&void 0!==Qe?Qe:0)+1):Ar=0,this.setTransition({id:qs,targetPageId:Ar,source:y,restoredState:D,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:u,extras:I,resolve:Hr,reject:Xn,promise:es,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),es.catch(Ir=>Promise.reject(Ir))}setBrowserUrl(u,y){const D=this.urlSerializer.serialize(u),I=Object.assign(Object.assign({},y.extras.state),this.generateNgRouterState(y.id,y.targetPageId));this.location.isCurrentPathEqualTo(D)||y.extras.replaceUrl?this.location.replaceState(D,"",I):this.location.go(D,"",I)}restoreHistory(u,y=!1){var D,I;if("computed"===this.canceledNavigationResolution){const L=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(D=this.currentNavigation)||void 0===D?void 0:D.finalUrl)||0===L?this.currentUrlTree===(null===(I=this.currentNavigation)||void 0===I?void 0:I.finalUrl)&&0===L&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(L)}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 ae(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){p.$Z()},h.\u0275prov=p.Yz7({token:h,factory:h.\u0275fac}),h})();function Gs(h){return"imperative"!==h}let wi=(()=>{class h{constructor(u,y,D,I,L){this.router=u,this.route=y,this.tabIndexAttribute=D,this.renderer=I,this.el=L,this.commands=null,this.onChanges=new ue.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:ur(this.skipLocationChange),replaceUrl:ur(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:ur(this.preserveFragment)})}}return h.\u0275fac=function(u){return new(u||h)(p.Y36(Ln),p.Y36(Ut),p.$8M("tabindex"),p.Y36(p.Qsj),p.Y36(p.SBq))},h.\u0275dir=p.lG2({type:h,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(u,y){1&u&&p.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:[p.TTD]}),h})(),Ti=(()=>{class h{constructor(u,y,D){this.router=u,this.route=y,this.locationStrategy=D,this.commands=null,this.href=null,this.onChanges=new ue.xQ,this.subscription=u.events.subscribe(I=>{I instanceof se&&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,I,L){if(0!==u||y||D||I||L||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const K={skipLocationChange:ur(this.skipLocationChange),replaceUrl:ur(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,K),!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:ur(this.preserveFragment)})}}return h.\u0275fac=function(u){return new(u||h)(p.Y36(Ln),p.Y36(Ut),p.Y36(N.S$))},h.\u0275dir=p.lG2({type:h,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(u,y){1&u&&p.NdJ("click",function(I){return y.onClick(I.button,I.ctrlKey,I.shiftKey,I.altKey,I.metaKey)}),2&u&&p.uIk("target",y.target)("href",y.href,p.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[p.TTD]}),h})();function ur(h){return""===h||!!h}let Ws=(()=>{class h{constructor(u,y,D,I,L,K){this.router=u,this.element=y,this.renderer=D,this.cdr=I,this.link=L,this.linkWithHref=K,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new p.vpe,this.routerEventsSubscription=u.events.subscribe(pe=>{pe instanceof se&&this.update()})}ngAfterContentInit(){(0,H.of)(this.links.changes,this.linksWithHrefs.changes,(0,H.of)(null)).pipe((0,B.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,le.D)(y).pipe((0,B.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)(p.Y36(Ln),p.Y36(p.SBq),p.Y36(p.Qsj),p.Y36(p.sBO),p.Y36(wi,8),p.Y36(Ti,8))},h.\u0275dir=p.lG2({type:h,selectors:[["","routerLinkActive",""]],contentQueries:function(u,y,D){if(1&u&&(p.Suo(D,wi,5),p.Suo(D,Ti,5)),2&u){let I;p.iGM(I=p.CRH())&&(y.links=I),p.iGM(I=p.CRH())&&(y.linksWithHrefs=I)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[p.TTD]}),h})();class Qo{}class Si{preload(c,u){return(0,H.of)(null)}}let Zo=(()=>{class h{constructor(u,y,D,I){this.router=u,this.injector=D,this.preloadingStrategy=I,this.loader=new gt(D,y,pe=>u.triggerEvent(new Ne(pe)),pe=>u.triggerEvent(new tn(pe)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Me.h)(u=>u instanceof se),(0,bt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const u=this.injector.get(p.h0i);return this.processRoutes(u,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,y){const D=[];for(const I of y)if(I.loadChildren&&!I.canLoad&&I._loadedConfig){const L=I._loadedConfig;D.push(this.processRoutes(L.module,L.routes))}else I.loadChildren&&!I.canLoad?D.push(this.preloadConfig(u,I)):I.children&&D.push(this.processRoutes(u,I.children));return(0,le.D)(D).pipe((0,B.J)(),(0,Be.U)(I=>{}))}preloadConfig(u,y){return this.preloadingStrategy.preload(y,()=>(y._loadedConfig?(0,H.of)(y._loadedConfig):this.loader.load(u.injector,y)).pipe((0,ze.zg)(I=>(y._loadedConfig=I,this.processRoutes(I.module,I.routes)))))}}return h.\u0275fac=function(u){return new(u||h)(p.LFG(Ln),p.LFG(p.Sil),p.LFG(p.zs3),p.LFG(Qo))},h.\u0275prov=p.Yz7({token:h,factory:h.\u0275fac}),h})(),co=(()=>{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 G?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof se&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.router.parseUrl(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(u=>{u instanceof Y&&(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 Y(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){p.$Z()},h.\u0275prov=p.Yz7({token:h,factory:h.\u0275fac}),h})();const Ks=new p.OlP("ROUTER_CONFIGURATION"),fi=new p.OlP("ROUTER_FORROOT_GUARD"),qo=[N.Ye,{provide:A,useClass:ee},{provide:Ln,useFactory:function Qs(h,c,u,y,D,I,L={},K,pe){const Qe=new Ln(null,h,c,u,y,D,nn(I));return K&&(Qe.urlHandlingStrategy=K),pe&&(Qe.routeReuseStrategy=pe),function ho(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)}(L,Qe),L.enableTracing&&Qe.events.subscribe(Bt=>{var at,Vt;null===(at=console.group)||void 0===at||at.call(console,`Router Event: ${Bt.constructor.name}`),console.log(Bt.toString()),console.log(Bt),null===(Vt=console.groupEnd)||void 0===Vt||Vt.call(console)}),Qe},deps:[A,Sr,N.Ye,p.zs3,p.Sil,Tn,Ks,[class ci{},new p.FiY],[class vn{},new p.FiY]]},Sr,{provide:Ut,useFactory:function Ai(h){return h.routerState.root},deps:[Ln]},Zo,Si,class di{preload(c,u){return u().pipe((0,Ot.K)(()=>(0,H.of)(null)))}},{provide:Ks,useValue:{enableTracing:!1}}];function fo(){return new p.PXZ("Router",Ln)}let Mi=(()=>{class h{constructor(u,y){}static forRoot(u,y){return{ngModule:h,providers:[qo,ea(u),{provide:fi,useFactory:Ys,deps:[[Ln,new p.FiY,new p.tp0]]},{provide:Ks,useValue:y||{}},{provide:N.S$,useFactory:Xo,deps:[N.lw,[new p.tBr(N.mr),new p.FiY],Ks]},{provide:co,useFactory:Jo,deps:[Ln,N.EM,Ks]},{provide:Qo,useExisting:y&&y.preloadingStrategy?y.preloadingStrategy:Si},{provide:p.PXZ,multi:!0,useFactory:fo},[ta,{provide:p.ip1,multi:!0,useFactory:na,deps:[ta]},{provide:sa,useFactory:ra,deps:[ta]},{provide:p.tb,multi:!0,useExisting:sa}]]}}static forChild(u){return{ngModule:h,providers:[ea(u)]}}}return h.\u0275fac=function(u){return new(u||h)(p.LFG(fi,8),p.LFG(Ln,8))},h.\u0275mod=p.oAB({type:h}),h.\u0275inj=p.cJS({}),h})();function Jo(h,c,u){return u.scrollOffset&&c.setOffset(u.scrollOffset),new co(h,c,u)}function Xo(h,c,u={}){return u.useHash?new N.Do(h,c):new N.b0(h,c)}function Ys(h){return"guarded"}function ea(h){return[{provide:p.deG,multi:!0,useValue:h},{provide:Tn,multi:!0,useValue:h}]}let ta=(()=>{class h{constructor(u){this.injector=u,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ue.xQ}appInitializer(){return this.injector.get(N.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let y=null;const D=new Promise(K=>y=K),I=this.injector.get(Ln),L=this.injector.get(Ks);return"disabled"===L.initialNavigation?(I.setUpLocationChangeListener(),y(!0)):"enabled"===L.initialNavigation||"enabledBlocking"===L.initialNavigation?(I.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,y(!0),this.resultOfPreactivationDone),I.initialNavigation()):y(!0),D})}bootstrapListener(u){const y=this.injector.get(Ks),D=this.injector.get(Zo),I=this.injector.get(co),L=this.injector.get(Ln),K=this.injector.get(p.z2F);u===K.components[0]&&(("enabledNonBlocking"===y.initialNavigation||void 0===y.initialNavigation)&&L.initialNavigation(),D.setUpPreloading(),I.init(),L.resetRootComponentType(K.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return h.\u0275fac=function(u){return new(u||h)(p.LFG(p.zs3))},h.\u0275prov=p.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 p.OlP("Router Initializer")}},We=>{We(We.s=6776)}]);
|