marketplacepos 2.1.1 → 2.1.4
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/170.bcc75a9714d5f314.js +1 -0
- package/Marketplace/22.9e862483f428927b.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.f504519b0a3bac1b.js +1 -0
- package/Marketplace/runtime.2256b386eab74724.js +1 -0
- package/package.json +1 -1
- package/Marketplace/237.110eb3dc95cdefd3.js +0 -1
- package/Marketplace/78.c1718d01e22d929a.js +0 -1
- package/Marketplace/main.6726e46e78cd302f.js +0 -1
- package/Marketplace/runtime.8d1298521b43242b.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[179],{632:(Ye,fe,M)=>{M.d(fe,{O:()=>Te});var p=M(520),m=M(591),se=M(2916),le=M(353);const N=(()=>{function $e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return $e.prototype=Object.create(Error.prototype),$e})();var Z=M(2697),Q=M(826),oe=M(9054);class V{constructor(Le,tt,je,be){this.waitFor=Le,this.absoluteTimeout=tt,this.withObservable=je,this.scheduler=be}call(Le,tt){return tt.subscribe(new K(Le,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class K extends Q.L{constructor(Le,tt,je,be,ze){super(Le),this.absoluteTimeout=tt,this.waitFor=je,this.withObservable=be,this.scheduler=ze,this.action=null,this.scheduleTimeout()}static dispatchTimeout(Le){const{withObservable:tt}=Le;Le._unsubscribeAndRecycle(),Le.add((0,oe.D)(Le,tt))}scheduleTimeout(){const{action:Le}=this;Le?this.action=Le.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(K.dispatchTimeout,this.waitFor,this))}_next(Le){this.absoluteTimeout||this.scheduleTimeout(),super._next(Le)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var ce=M(1737);var ye=M(5e3),Ae=M(4383);let Te=(()=>{class $e{constructor(tt,je){this.http=tt,this.toastr=je,this._serverUrl="",this.currentRequest=new m.X(0)}get serverUrl(){return this._serverUrl}set serverUrl(tt){this._serverUrl=tt}addRequest(){this.currentRequest.next(this.currentRequest.value+1)}removeRequest(){this.currentRequest.next(this.currentRequest.value-1)}post(tt,je,be=1e5){return new se.y(ze=>{let $t=localStorage.getItem("Token"),Zt=new p.WM;$t&&(Zt=new p.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+$t}));let Pt={headers:Zt};this.addRequest(),this.http.post(tt,je,Pt).pipe(function Oe($e,Le=le.P){return function U($e,Le,tt=le.P){return je=>{let be=(0,Z.J)($e),ze=be?+$e-tt.now():Math.abs($e);return je.lift(new V(ze,be,Le,tt))}}($e,(0,ce._)(new N),Le)}(be)).subscribe(ht=>{this.removeRequest(),ze.next(ht),ze.complete()},ht=>{if(this.removeRequest(),200==ht.status)ze.next(ht.error.text),ze.complete();else{if(!this.unauthorizedErrorHandling(ht)){let Xe=this.errorMessageHandling(ht);this.toastr.error(""!=Xe.message?Xe.message:"An unknown error has occured!",Xe.header,{enableHtml:!0})}ze.error(ht)}})})}unauthorizedErrorHandling(tt){let je=!1;return 401==tt.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",je=!0),je}errorMessageHandling(tt){let je="API Error",be="Exception Message";return tt.error?(je="API Error - "+tt.status,tt.error.Message&&(be=-1!=tt.error.Message.indexOf("Message")?JSON.parse(tt.error.Message).Message:tt.error.Message)):tt.message&&(je="API Error - "+tt.name,be=tt.message),{header:je,message:be}}}return $e.\u0275fac=function(tt){return new(tt||$e)(ye.LFG(p.eN),ye.LFG(Ae._W))},$e.\u0275prov=ye.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})()},8002:(Ye,fe,M)=>{M.d(fe,{e:()=>m});var p=M(5e3);let m=(()=>{class se{constructor(){}GetNamePOS(){let B=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(B.access_token)}ParseToken(B){try{const Z=B.split(".")[0].replace("-","+").replace("_","/"),Q=JSON.parse(window.atob(Z)),U=B.split(".")[1].replace("-","+").replace("_","/"),V=JSON.parse(window.atob(U));return V.header=Q,V}catch(N){return!1}}}return se.\u0275fac=function(B){return new(B||se)},se.\u0275prov=p.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})()},6776:(Ye,fe,M)=>{var p=M(2313),m=M(5e3),se=M(520),le=M(8929),B=M(6686),Z=M(2268);const oe=new class Q extends Z.v{}(class N extends B.o{constructor(O,A){super(O,A),this.scheduler=O,this.work=A}schedule(O,A=0){return A>0?super.schedule(O,A):(this.delay=A,this.state=O,this.scheduler.flush(this),this)}execute(O,A){return A>0||this.closed?super.execute(O,A):this._execute(O,A)}requestAsyncId(O,A,ee=0){return null!==ee&&ee>0||null===ee&&this.delay>0?super.requestAsyncId(O,A,ee):O.flush(this)}});var U=M(2654),V=M(3489),K=M(9312);class ye extends V.L{constructor(O,A,ee=0){super(O),this.scheduler=A,this.delay=ee}static dispatch(O){const{notification:A,destination:ee}=O;A.observe(ee),this.unsubscribe()}scheduleMessage(O){this.destination.add(this.scheduler.schedule(ye.dispatch,this.delay,new Ae(O,this.destination)))}_next(O){this.scheduleMessage(K.P.createNext(O))}_error(O){this.scheduleMessage(K.P.createError(O)),this.unsubscribe()}_complete(){this.scheduleMessage(K.P.createComplete()),this.unsubscribe()}}class Ae{constructor(O,A){this.notification=O,this.destination=A}}var Te=M(5279),$e=M(5283);class Le extends le.xQ{constructor(O=Number.POSITIVE_INFINITY,A=Number.POSITIVE_INFINITY,ee){super(),this.scheduler=ee,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=O<1?1:O,this._windowTime=A<1?1:A,A===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(O){const A=this._events;A.push(O),A.length>this._bufferSize&&A.shift(),super.next(O)}nextTimeWindow(O){this._events.push(new tt(this._getNow(),O)),this._trimBufferThenGetEvents(),super.next(O)}_subscribe(O){const A=this._infiniteTimeWindow,ee=A?this._events:this._trimBufferThenGetEvents(),We=this.scheduler,Lt=ee.length;let Ft;if(this.closed)throw new Te.N;if(this.isStopped||this.hasError?Ft=U.w.EMPTY:(this.observers.push(O),Ft=new $e.W(this,O)),We&&O.add(O=new ye(O,We)),A)for(let yn=0;yn<Lt&&!O.closed;yn++)O.next(ee[yn]);else for(let yn=0;yn<Lt&&!O.closed;yn++)O.next(ee[yn].value);return this.hasError?O.error(this.thrownError):this.isStopped&&O.complete(),Ft}_getNow(){return(this.scheduler||oe).now()}_trimBufferThenGetEvents(){const O=this._getNow(),A=this._bufferSize,ee=this._windowTime,We=this._events,Lt=We.length;let Ft=0;for(;Ft<Lt&&!(O-We[Ft].time<ee);)Ft++;return Lt>A&&(Ft=Math.max(Ft,Lt-A)),Ft>0&&We.splice(0,Ft),We}}class tt{constructor(O,A){this.time=O,this.value=A}}function je(b,O){function A(){return!A.pred.apply(A.thisArg,arguments)}return A.pred=b,A.thisArg=O,A}var be=M(9249),ze=M(2198),$t=M(2916),Pt=M(6787),ht=M(7739),xt=M(537),Xe=M(7545),ot=M(826),qe=M(9054);function Ue(b){return O=>O.lift(new Fn(b))}class Fn{constructor(O){this.durationSelector=O}call(O,A){return A.subscribe(new Nt(O,this.durationSelector))}}class Nt extends ot.L{constructor(O,A){super(O),this.durationSelector=A,this.hasValue=!1,this.durationSubscription=null}_next(O){try{const A=this.durationSelector.call(this,O);A&&this._tryNext(O,A)}catch(A){this.destination.error(A)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(O,A){let ee=this.durationSubscription;this.value=O,this.hasValue=!0,ee&&(ee.unsubscribe(),this.remove(ee)),ee=(0,qe.D)(this,A),ee&&!ee.closed&&this.add(this.durationSubscription=ee)}notifyNext(O,A,ee,We,Lt){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const O=this.value,A=this.durationSubscription;A&&(this.durationSubscription=null,A.unsubscribe(),this.remove(A)),this.value=null,this.hasValue=!1,super._next(O)}}}var Xt=M(5778),Yt=M(2994),at=M(9808);function kt(b,O){1&b&&m.GkF(0)}function Kt(b,O){if(1&b&&m._UZ(0,"sk-cube-grid",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function he(b,O){if(1&b&&m._UZ(0,"sk-chasing-dots",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function me(b,O){if(1&b&&m._UZ(0,"sk-double-bounce",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function J(b,O){if(1&b&&m._UZ(0,"sk-rotating-plane",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function ue(b,O){if(1&b&&m._UZ(0,"sk-spinner-pulse",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function Pe(b,O){if(1&b&&m._UZ(0,"sk-three-bounce",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function q(b,O){if(1&b&&m._UZ(0,"sk-wandering-cubes",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function de(b,O){if(1&b&&m._UZ(0,"sk-wave",4),2&b){const A=m.oxw(2);m.Q6J("backgroundColor",A.backgroundColor)}}function H(b,O){if(1&b&&(m.TgZ(0,"div",1),m.YNc(1,kt,1,0,"ng-container",2),m.YNc(2,Kt,1,1,"sk-cube-grid",3),m.YNc(3,he,1,1,"sk-chasing-dots",3),m.YNc(4,me,1,1,"sk-double-bounce",3),m.YNc(5,J,1,1,"sk-rotating-plane",3),m.YNc(6,ue,1,1,"sk-spinner-pulse",3),m.YNc(7,Pe,1,1,"sk-three-bounce",3),m.YNc(8,q,1,1,"sk-wandering-cubes",3),m.YNc(9,de,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 ne=(()=>{class b{}return b.\u0275fac=function(A){return new(A||b)},b.\u0275dir=m.lG2({type:b,inputs:{backgroundColor:"backgroundColor"}}),b})(),re=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),X=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),_e=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),Fe=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),Me=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),xe=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),st=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),ct=(()=>{class b extends ne{}return b.\u0275fac=function(){let O;return function(ee){return(O||(O=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})(),lt=(()=>{class b{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Le(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 We=this.shouldBypass(A);return We||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),ee.handle(A).pipe((0,xt.x)(()=>{We||(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 ge=[{provide:se.TP,useExisting:lt,multi:!0}];let $=(()=>{class b{constructor(A){this.pendingRequestsInterceptor=A,this._visibility$=new Le(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(lt))},b.\u0275prov=(0,m.Yz7)({factory:function(){return new b((0,m.LFG)(lt))},token:b,providedIn:"root"}),b})();const k={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 Ce=(()=>{class b{constructor(A,ee){this.pendingRequestsInterceptor=A,this.spinnerVisibility=ee,this.spinkit=k,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=k.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[A,ee]=function Zt(b,O,A){return[(0,ze.h)(O,A)(new $t.y((0,be.s)(b))),(0,ze.h)(je(O,A))(new $t.y((0,be.s)(b)))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,We=>We);this.isVisible$=(0,Pt.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,Xe.w)(()=>A.pipe(Ue(()=>(0,ht.H)(this.debounceDelay))))),A.pipe((0,Xe.w)(()=>ee.pipe(Ue(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Xt.x)(),(0,Yt.b)(We=>this.updateExpirationDelay(We)))}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,ht.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return b.\u0275fac=function(A){return new(A||b)(m.Y36(lt),m.Y36($))},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,H,10,13,"div",0),m.ALo(1,"async")),2&A&&m.Q6J("ngIf",m.lcZ(1,1,ee.isVisible$))},directives:[at.O5,at.$G,X,re,_e,Fe,Me,xe,st,ct],pipes:[at.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})(),Be=(()=>{class b{static forRoot(){return{ngModule:b,providers:[ge]}}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275mod=m.oAB({type:b}),b.\u0275inj=m.cJS({imports:[[at.ez]]}),b})();var Ne=M(632),Ke=M(8002),vt=M(2302);const ln=[{path:"",loadChildren:()=>Promise.all([M.e(365),M.e(22)]).then(M.bind(M,22)).then(b=>b.LoginModule)},{path:"menu",loadChildren:()=>Promise.all([M.e(365),M.e(170)]).then(M.bind(M,7170)).then(b=>b.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let dt=(()=>{class b{}return b.\u0275fac=function(A){return new(A||b)},b.\u0275mod=m.oAB({type:b}),b.\u0275inj=m.cJS({imports:[[vt.Bz.forRoot(ln,{relativeLinkResolution:"legacy"})],vt.Bz]}),b})();var bn=M(4850),on=M(1709);let Et=(()=>{class b{constructor(A,ee,We){this._router=A,this.titleService=ee,this.activatedRoute=We}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe((0,ze.h)(A=>A instanceof vt.m2)).pipe((0,bn.U)(()=>this.activatedRoute),(0,bn.U)(A=>{for(;A.firstChild;)A=A.firstChild;return A}),(0,ze.h)(A=>"primary"===A.outlet),(0,on.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(vt.F0),m.Y36(p.Dx),m.Y36(vt.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:[vt.lC,Ce],styles:[""]}),b})();var Ge=M(6360);let Ht=(()=>{class b{constructor(A){this._router=A}intercept(A,ee){let We=JSON.parse(window.localStorage.getItem("user")),Lt=new Date;if(null!=We){let Ft=new Date(We.expiredAt);A=A.clone(Lt<Ft?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${We.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(vt.F0))},b.\u0275prov=m.Yz7({token:b,factory:b.\u0275fac}),b})();var yt=M(4383),Mt=M(1777);const kn=["custom-toast-component",""];function dn(b,O){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 mn(b,O){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,dn,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,O){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,O){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,O){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,O){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 yt.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(yt._W),m.Y36(yt.PR))},b.\u0275cmp=m.Xpm({type:b,selectors:[["","custom-toast-component",""]],features:[m.qOj],attrs:kn,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,mn,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:[at.O5,at.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,Mt.X$)("flyInOut",[(0,Mt.SB)("inactive",(0,Mt.oB)({opacity:0})),(0,Mt.eR)("inactive => active",(0,Mt.jt)("400ms ease-out",(0,Mt.F4)([(0,Mt.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,Mt.oB)({transform:"skewX(20deg)",opacity:1}),(0,Mt.oB)({transform:"skewX(-5deg)",opacity:1}),(0,Mt.oB)({transform:"none",opacity:1})]))),(0,Mt.eR)("active => removed",(0,Mt.jt)("400ms ease-out",(0,Mt.F4)([(0,Mt.oB)({opacity:1}),(0,Mt.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),b})();var Cn=M(6565);const bt={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!0},storeSchema:[]}]};let ae=(()=>{class b{}return b.\u0275fac=function(A){return new(A||b)},b.\u0275mod=m.oAB({type:b,bootstrap:[Et]}),b.\u0275inj=m.cJS({providers:[{provide:se.TP,useClass:Ht,multi:!0},Ne.O,Ke.e],imports:[[p.b2,dt,Ge.PW,yt.Rh.forRoot({toastComponent:rr,positionClass:"toast-bottom-right",closeButton:!0}),se.JF,Cn.Cz.forRoot(bt),Be.forRoot()]]}),b})();(0,m.G48)(),p.q6().bootstrapModule(ae).catch(b=>console.error(b))},4383:(Ye,fe,M)=>{M.d(fe,{FN:()=>Fn,PR:()=>je,Rh:()=>Xt,_W:()=>Ue});var p=M(5e3),m=M(1777),se=M(8929),le=M(2313),B=M(9808);const N=["toast-component",""];function Z(he,me){if(1&he){const J=p.EpF();p.TgZ(0,"button",5),p.NdJ("click",function(){return p.CHM(J),p.oxw().remove()}),p.TgZ(1,"span",6),p._uU(2,"\xd7"),p.qZA(),p.qZA()}}function Q(he,me){if(1&he&&(p.ynx(0),p._uU(1),p.BQk()),2&he){const J=p.oxw(2);p.xp6(1),p.hij("[",J.duplicatesCount+1,"]")}}function oe(he,me){if(1&he&&(p.TgZ(0,"div"),p._uU(1),p.YNc(2,Q,2,1,"ng-container",4),p.qZA()),2&he){const J=p.oxw();p.Tol(J.options.titleClass),p.uIk("aria-label",J.title),p.xp6(1),p.hij(" ",J.title," "),p.xp6(1),p.Q6J("ngIf",J.duplicatesCount)}}function U(he,me){if(1&he&&p._UZ(0,"div",7),2&he){const J=p.oxw();p.Tol(J.options.messageClass),p.Q6J("innerHTML",J.message,p.oJD)}}function V(he,me){if(1&he&&(p.TgZ(0,"div",8),p._uU(1),p.qZA()),2&he){const J=p.oxw();p.Tol(J.options.messageClass),p.uIk("aria-label",J.message),p.xp6(1),p.hij(" ",J.message," ")}}function K(he,me){if(1&he&&(p.TgZ(0,"div"),p._UZ(1,"div",9),p.qZA()),2&he){const J=p.oxw();p.xp6(1),p.Udp("width",J.width+"%")}}function ce(he,me){if(1&he){const J=p.EpF();p.TgZ(0,"button",5),p.NdJ("click",function(){return p.CHM(J),p.oxw().remove()}),p.TgZ(1,"span",6),p._uU(2,"\xd7"),p.qZA(),p.qZA()}}function Oe(he,me){if(1&he&&(p.ynx(0),p._uU(1),p.BQk()),2&he){const J=p.oxw(2);p.xp6(1),p.hij("[",J.duplicatesCount+1,"]")}}function ye(he,me){if(1&he&&(p.TgZ(0,"div"),p._uU(1),p.YNc(2,Oe,2,1,"ng-container",4),p.qZA()),2&he){const J=p.oxw();p.Tol(J.options.titleClass),p.uIk("aria-label",J.title),p.xp6(1),p.hij(" ",J.title," "),p.xp6(1),p.Q6J("ngIf",J.duplicatesCount)}}function Ae(he,me){if(1&he&&p._UZ(0,"div",7),2&he){const J=p.oxw();p.Tol(J.options.messageClass),p.Q6J("innerHTML",J.message,p.oJD)}}function Te(he,me){if(1&he&&(p.TgZ(0,"div",8),p._uU(1),p.qZA()),2&he){const J=p.oxw();p.Tol(J.options.messageClass),p.uIk("aria-label",J.message),p.xp6(1),p.hij(" ",J.message," ")}}function $e(he,me){if(1&he&&(p.TgZ(0,"div"),p._UZ(1,"div",9),p.qZA()),2&he){const J=p.oxw();p.xp6(1),p.Udp("width",J.width+"%")}}class je{constructor(me,J,ue,Pe,q,de){this.toastId=me,this.config=J,this.message=ue,this.title=Pe,this.toastType=q,this.toastRef=de,this._onTap=new se.xQ,this._onAction=new se.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(me){this._onAction.next(me)}onAction(){return this._onAction.asObservable()}}const be={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"},ze=new p.OlP("ToastConfig");class $t{constructor(me,J){this.component=me,this.injector=J}attach(me,J){return this._attachedHost=me,me.attach(this,J)}detach(){const me=this._attachedHost;if(me)return this._attachedHost=void 0,me.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(me){this._attachedHost=me}}class Pt extends class Zt{attach(me,J){return this._attachedPortal=me,this.attachComponentPortal(me,J)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(me){this._disposeFn=me}}{constructor(me,J,ue){super(),this._hostDomElement=me,this._componentFactoryResolver=J,this._appRef=ue}attachComponentPortal(me,J){const ue=this._componentFactoryResolver.resolveComponentFactory(me.component);let Pe;return Pe=ue.create(me.injector),this._appRef.attachView(Pe.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Pe.hostView),Pe.destroy()}),J?this._hostDomElement.insertBefore(this._getComponentRootNode(Pe),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Pe)),Pe}_getComponentRootNode(me){return me.hostView.rootNodes[0]}}let ht=(()=>{class he{constructor(J){this._document=J}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const J=this._document.createElement("div");J.classList.add("overlay-container"),this._document.body.appendChild(J),this._containerElement=J}}return he.\u0275fac=function(J){return new(J||he)(p.LFG(B.K0))},he.\u0275prov=(0,p.Yz7)({factory:function(){return new he((0,p.LFG)(B.K0))},token:he,providedIn:"root"}),he})();class xt{constructor(me){this._portalHost=me}attach(me,J=!0){return this._portalHost.attach(me,J)}detach(){return this._portalHost.detach()}}let Xe=(()=>{class he{constructor(J,ue,Pe,q){this._overlayContainer=J,this._componentFactoryResolver=ue,this._appRef=Pe,this._document=q,this._paneElements=new Map}create(J,ue){return this._createOverlayRef(this.getPaneElement(J,ue))}getPaneElement(J="",ue){return this._paneElements.get(ue)||this._paneElements.set(ue,{}),this._paneElements.get(ue)[J]||(this._paneElements.get(ue)[J]=this._createPaneElement(J,ue)),this._paneElements.get(ue)[J]}_createPaneElement(J,ue){const Pe=this._document.createElement("div");return Pe.id="toast-container",Pe.classList.add(J),Pe.classList.add("toast-container"),ue?ue.getContainerElement().appendChild(Pe):this._overlayContainer.getContainerElement().appendChild(Pe),Pe}_createPortalHost(J){return new Pt(J,this._componentFactoryResolver,this._appRef)}_createOverlayRef(J){return new xt(this._createPortalHost(J))}}return he.\u0275fac=function(J){return new(J||he)(p.LFG(ht),p.LFG(p._Vd),p.LFG(p.z2F),p.LFG(B.K0))},he.\u0275prov=(0,p.Yz7)({factory:function(){return new he((0,p.LFG)(ht),(0,p.LFG)(p._Vd),(0,p.LFG)(p.z2F),(0,p.LFG)(B.K0))},token:he,providedIn:"root"}),he})();class ot{constructor(me){this._overlayRef=me,this.duplicatesCount=0,this._afterClosed=new se.xQ,this._activate=new se.xQ,this._manualClose=new se.xQ,this._resetTimeout=new se.xQ,this._countDuplicate=new se.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(me,J){me&&this._resetTimeout.next(),J&&this._countDuplicate.next(++this.duplicatesCount)}}class qe{constructor(me,J){this._toastPackage=me,this._parentInjector=J}get(me,J,ue){return me===je?this._toastPackage:this._parentInjector.get(me,J,ue)}}let Ue=(()=>{class he{constructor(J,ue,Pe,q,de){this.overlay=ue,this._injector=Pe,this.sanitizer=q,this.ngZone=de,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},J.default),J.config),J.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},J.default.iconClasses),J.config.iconClasses))}show(J,ue,Pe={},q=""){return this._preBuildNotification(q,J,ue,this.applyConfig(Pe))}success(J,ue,Pe={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",J,ue,this.applyConfig(Pe))}error(J,ue,Pe={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",J,ue,this.applyConfig(Pe))}info(J,ue,Pe={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",J,ue,this.applyConfig(Pe))}warning(J,ue,Pe={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",J,ue,this.applyConfig(Pe))}clear(J){for(const ue of this.toasts)if(void 0!==J){if(ue.toastId===J)return void ue.toastRef.manualClose()}else ue.toastRef.manualClose()}remove(J){const ue=this._findToast(J);if(!ue||(ue.activeToast.toastRef.close(),this.toasts.splice(ue.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 Pe=this.toasts[this.currentlyActive].toastRef;Pe.isInactive()||(this.currentlyActive=this.currentlyActive+1,Pe.activate())}return!0}findDuplicate(J="",ue="",Pe,q){const{includeTitleDuplicates:de}=this.toastrConfig;for(const H of this.toasts){const ne=de&&H.title===J;if((!de||ne)&&H.message===ue)return H.toastRef.onDuplicate(Pe,q),H}return null}applyConfig(J={}){return Object.assign(Object.assign({},this.toastrConfig),J)}_findToast(J){for(let ue=0;ue<this.toasts.length;ue++)if(this.toasts[ue].toastId===J)return{index:ue,activeToast:this.toasts[ue]};return null}_preBuildNotification(J,ue,Pe,q){return q.onActivateTick?this.ngZone.run(()=>this._buildNotification(J,ue,Pe,q)):this._buildNotification(J,ue,Pe,q)}_buildNotification(J,ue,Pe,q){if(!q.toastComponent)throw new Error("toastComponent required");const de=this.findDuplicate(Pe,ue,this.toastrConfig.resetTimeoutOnDuplicate&&q.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Pe||ue)&&this.toastrConfig.preventDuplicates&&null!==de)return de;this.previousToastMessage=ue;let H=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(H=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const ne=this.overlay.create(q.positionClass,this.overlayContainer);this.index=this.index+1;let re=ue;ue&&q.enableHtml&&(re=this.sanitizer.sanitize(p.q3G.HTML,ue));const X=new ot(ne),_e=new je(this.index,q,re,Pe,J,X),Fe=new qe(_e,this._injector),Me=new $t(q.toastComponent,Fe),xe=ne.attach(Me,this.toastrConfig.newestOnTop);X.componentInstance=xe.instance;const st={toastId:this.index,title:Pe||"",message:ue||"",toastRef:X,onShown:X.afterActivate(),onHidden:X.afterClosed(),onTap:_e.onTap(),onAction:_e.onAction(),portal:xe};return H||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{st.toastRef.activate()})),this.toasts.push(st),st}}return he.\u0275fac=function(J){return new(J||he)(p.LFG(ze),p.LFG(Xe),p.LFG(p.zs3),p.LFG(le.H7),p.LFG(p.R0b))},he.\u0275prov=(0,p.Yz7)({factory:function(){return new he((0,p.LFG)(ze),(0,p.LFG)(Xe),(0,p.LFG)(p.gxx),(0,p.LFG)(le.H7),(0,p.LFG)(p.R0b))},token:he,providedIn:"root"}),he})(),Fn=(()=>{class he{constructor(J,ue,Pe){this.toastrService=J,this.toastPackage=ue,this.ngZone=Pe,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=ue.message,this.title=ue.title,this.options=ue.config,this.originalTimeout=ue.config.timeOut,this.toastClasses=`${ue.toastType} ${ue.config.toastClass}`,this.sub=ue.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ue.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ue.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ue.toastRef.countDuplicate().subscribe(q=>{this.duplicatesCount=q})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const J=(new Date).getTime();this.width=(this.hideTime-J)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(J,ue){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(J),ue)):this.timeout=setTimeout(()=>J(),ue)}outsideInterval(J,ue){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(J),ue)):this.intervalId=setInterval(()=>J(),ue)}runInsideAngular(J){this.ngZone?this.ngZone.run(()=>J()):J()}}return he.\u0275fac=function(J){return new(J||he)(p.Y36(Ue),p.Y36(je),p.Y36(p.R0b))},he.\u0275cmp=p.Xpm({type:he,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(J,ue){1&J&&p.NdJ("click",function(){return ue.tapToast()})("mouseenter",function(){return ue.stickAround()})("mouseleave",function(){return ue.delayedHideToast()}),2&J&&(p.d8E("@flyInOut",ue.state),p.Tol(ue.toastClasses),p.Udp("display",ue.displayStyle))},attrs:N,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(J,ue){1&J&&(p.YNc(0,Z,3,0,"button",0),p.YNc(1,oe,3,5,"div",1),p.YNc(2,U,1,3,"div",2),p.YNc(3,V,2,4,"div",3),p.YNc(4,K,2,2,"div",4)),2&J&&(p.Q6J("ngIf",ue.options.closeButton),p.xp6(1),p.Q6J("ngIf",ue.title),p.xp6(1),p.Q6J("ngIf",ue.message&&ue.options.enableHtml),p.xp6(1),p.Q6J("ngIf",ue.message&&!ue.options.enableHtml),p.xp6(1),p.Q6J("ngIf",ue.options.progressBar))},directives:[B.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 }}"))])]}}),he})();const Nt=Object.assign(Object.assign({},be),{toastComponent:Fn});let Xt=(()=>{class he{static forRoot(J={}){return{ngModule:he,providers:[{provide:ze,useValue:{default:Nt,config:J}}]}}}return he.\u0275fac=function(J){return new(J||he)},he.\u0275mod=p.oAB({type:he}),he.\u0275inj=p.cJS({imports:[[B.ez]]}),he})(),at=(()=>{class he{constructor(J,ue,Pe){this.toastrService=J,this.toastPackage=ue,this.appRef=Pe,this.width=-1,this.toastClasses="",this.state="inactive",this.message=ue.message,this.title=ue.title,this.options=ue.config,this.originalTimeout=ue.config.timeOut,this.toastClasses=`${ue.toastType} ${ue.config.toastClass}`,this.sub=ue.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ue.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ue.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ue.toastRef.countDuplicate().subscribe(q=>{this.duplicatesCount=q})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const J=(new Date).getTime();this.width=(this.hideTime-J)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return he.\u0275fac=function(J){return new(J||he)(p.Y36(Ue),p.Y36(je),p.Y36(p.z2F))},he.\u0275cmp=p.Xpm({type:he,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(J,ue){1&J&&p.NdJ("click",function(){return ue.tapToast()})("mouseenter",function(){return ue.stickAround()})("mouseleave",function(){return ue.delayedHideToast()}),2&J&&(p.Tol(ue.toastClasses),p.Udp("display",ue.displayStyle))},attrs:N,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(J,ue){1&J&&(p.YNc(0,ce,3,0,"button",0),p.YNc(1,ye,3,5,"div",1),p.YNc(2,Ae,1,3,"div",2),p.YNc(3,Te,2,4,"div",3),p.YNc(4,$e,2,2,"div",4)),2&J&&(p.Q6J("ngIf",ue.options.closeButton),p.xp6(1),p.Q6J("ngIf",ue.title),p.xp6(1),p.Q6J("ngIf",ue.message&&ue.options.enableHtml),p.xp6(1),p.Q6J("ngIf",ue.message&&!ue.options.enableHtml),p.xp6(1),p.Q6J("ngIf",ue.options.progressBar))},directives:[B.O5],encapsulation:2}),he})();Object.assign(Object.assign({},be),{toastComponent:at})},591:(Ye,fe,M)=>{M.d(fe,{X:()=>se});var p=M(8929),m=M(5279);class se extends p.xQ{constructor(B){super(),this._value=B}get value(){return this.getValue()}_subscribe(B){const N=super._subscribe(B);return N&&!N.closed&&B.next(this._value),N}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new m.N;return this._value}next(B){super.next(this._value=B)}}},1869:(Ye,fe,M)=>{M.d(fe,{d:()=>m});var p=M(3489);class m extends p.L{constructor(le,B,N){super(),this.parent=le,this.outerValue=B,this.outerIndex=N,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:(Ye,fe,M)=>{M.d(fe,{P:()=>B});var p=M(8896),m=M(1086),se=M(1737);class B{constructor(Z,Q,oe){this.kind=Z,this.value=Q,this.error=oe,this.hasValue="N"===Z}observe(Z){switch(this.kind){case"N":return Z.next&&Z.next(this.value);case"E":return Z.error&&Z.error(this.error);case"C":return Z.complete&&Z.complete()}}do(Z,Q,oe){switch(this.kind){case"N":return Z&&Z(this.value);case"E":return Q&&Q(this.error);case"C":return oe&&oe()}}accept(Z,Q,oe){return Z&&"function"==typeof Z.next?this.observe(Z):this.do(Z,Q,oe)}toObservable(){switch(this.kind){case"N":return(0,m.of)(this.value);case"E":return(0,se._)(this.error);case"C":return(0,p.c)()}throw new Error("unexpected notification kind value")}static createNext(Z){return void 0!==Z?new B("N",Z):B.undefinedValueNotification}static createError(Z){return new B("E",void 0,Z)}static createComplete(){return B.completeNotification}}B.completeNotification=new B("C"),B.undefinedValueNotification=new B("N",void 0)},2916:(Ye,fe,M)=>{M.d(fe,{y:()=>V});var p=M(3489),se=M(7668),le=M(3292),N=M(3821),Z=M(7876);var U=M(2830);let V=(()=>{class ce{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const Ae=new ce;return Ae.source=this,Ae.operator=ye,Ae}subscribe(ye,Ae,Te){const{operator:$e}=this,Le=function B(ce,Oe,ye){if(ce){if(ce instanceof p.L)return ce;if(ce[se.b])return ce[se.b]()}return ce||Oe||ye?new p.L(ce,Oe,ye):new p.L(le.c)}(ye,Ae,Te);if(Le.add($e?$e.call(Le,this.source):this.source||U.v.useDeprecatedSynchronousErrorHandling&&!Le.syncErrorThrowable?this._subscribe(Le):this._trySubscribe(Le)),U.v.useDeprecatedSynchronousErrorHandling&&Le.syncErrorThrowable&&(Le.syncErrorThrowable=!1,Le.syncErrorThrown))throw Le.syncErrorValue;return Le}_trySubscribe(ye){try{return this._subscribe(ye)}catch(Ae){U.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=Ae),function m(ce){for(;ce;){const{closed:Oe,destination:ye,isStopped:Ae}=ce;if(Oe||Ae)return!1;ce=ye&&ye instanceof p.L?ye:null}return!0}(ye)?ye.error(Ae):console.warn(Ae)}}forEach(ye,Ae){return new(Ae=K(Ae))((Te,$e)=>{let Le;Le=this.subscribe(tt=>{try{ye(tt)}catch(je){$e(je),Le&&Le.unsubscribe()}},$e,Te)})}_subscribe(ye){const{source:Ae}=this;return Ae&&Ae.subscribe(ye)}[N.L](){return this}pipe(...ye){return 0===ye.length?this:function oe(ce){return ce?1===ce.length?ce[0]:function(ye){return ce.reduce((Ae,Te)=>Te(Ae),ye)}:Z.Z}(ye)(this)}toPromise(ye){return new(ye=K(ye))((Ae,Te)=>{let $e;this.subscribe(Le=>$e=Le,Le=>Te(Le),()=>Ae($e))})}}return ce.create=Oe=>new ce(Oe),ce})();function K(ce){if(ce||(ce=U.v.Promise||Promise),!ce)throw new Error("no Promise impl found");return ce}},3292:(Ye,fe,M)=>{M.d(fe,{c:()=>se});var p=M(2830),m=M(2782);const se={closed:!0,next(le){},error(le){if(p.v.useDeprecatedSynchronousErrorHandling)throw le;(0,m.z)(le)},complete(){}}},826:(Ye,fe,M)=>{M.d(fe,{L:()=>m});var p=M(3489);class m extends p.L{notifyNext(le,B,N,Z,Q){this.destination.next(B)}notifyError(le,B){this.destination.error(le)}notifyComplete(le){this.destination.complete()}}},8929:(Ye,fe,M)=>{M.d(fe,{Yc:()=>Z,xQ:()=>Q});var p=M(2916),m=M(3489),se=M(2654),le=M(5279),B=M(5283),N=M(7668);class Z extends m.L{constructor(V){super(V),this.destination=V}}let Q=(()=>{class U extends p.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[N.b](){return new Z(this)}lift(K){const ce=new oe(this,this);return ce.operator=K,ce}next(K){if(this.closed)throw new le.N;if(!this.isStopped){const{observers:ce}=this,Oe=ce.length,ye=ce.slice();for(let Ae=0;Ae<Oe;Ae++)ye[Ae].next(K)}}error(K){if(this.closed)throw new le.N;this.hasError=!0,this.thrownError=K,this.isStopped=!0;const{observers:ce}=this,Oe=ce.length,ye=ce.slice();for(let Ae=0;Ae<Oe;Ae++)ye[Ae].error(K);this.observers.length=0}complete(){if(this.closed)throw new le.N;this.isStopped=!0;const{observers:K}=this,ce=K.length,Oe=K.slice();for(let ye=0;ye<ce;ye++)Oe[ye].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(K){if(this.closed)throw new le.N;return super._trySubscribe(K)}_subscribe(K){if(this.closed)throw new le.N;return this.hasError?(K.error(this.thrownError),se.w.EMPTY):this.isStopped?(K.complete(),se.w.EMPTY):(this.observers.push(K),new B.W(this,K))}asObservable(){const K=new p.y;return K.source=this,K}}return U.create=(V,K)=>new oe(V,K),U})();class oe extends Q{constructor(V,K){super(),this.destination=V,this.source=K}next(V){const{destination:K}=this;K&&K.next&&K.next(V)}error(V){const{destination:K}=this;K&&K.error&&this.destination.error(V)}complete(){const{destination:V}=this;V&&V.complete&&this.destination.complete()}_subscribe(V){const{source:K}=this;return K?this.source.subscribe(V):se.w.EMPTY}}},5283:(Ye,fe,M)=>{M.d(fe,{W:()=>m});var p=M(2654);class m extends p.w{constructor(le,B){super(),this.subject=le,this.subscriber=B,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const le=this.subject,B=le.observers;if(this.subject=null,!B||0===B.length||le.isStopped||le.closed)return;const N=B.indexOf(this.subscriber);-1!==N&&B.splice(N,1)}}},3489:(Ye,fe,M)=>{M.d(fe,{L:()=>Z});var p=M(7043),m=M(3292),se=M(2654),le=M(7668),B=M(2830),N=M(2782);class Z extends se.w{constructor(U,V,K){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(!U){this.destination=m.c;break}if("object"==typeof U){U instanceof Z?(this.syncErrorThrowable=U.syncErrorThrowable,this.destination=U,U.add(this)):(this.syncErrorThrowable=!0,this.destination=new Q(this,U));break}default:this.syncErrorThrowable=!0,this.destination=new Q(this,U,V,K)}}[le.b](){return this}static create(U,V,K){const ce=new Z(U,V,K);return ce.syncErrorThrowable=!1,ce}next(U){this.isStopped||this._next(U)}error(U){this.isStopped||(this.isStopped=!0,this._error(U))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(U){this.destination.next(U)}_error(U){this.destination.error(U),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:U}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=U,this}}class Q extends Z{constructor(U,V,K,ce){super(),this._parentSubscriber=U;let Oe,ye=this;(0,p.m)(V)?Oe=V:V&&(Oe=V.next,K=V.error,ce=V.complete,V!==m.c&&(ye=Object.create(V),(0,p.m)(ye.unsubscribe)&&this.add(ye.unsubscribe.bind(ye)),ye.unsubscribe=this.unsubscribe.bind(this))),this._context=ye,this._next=Oe,this._error=K,this._complete=ce}next(U){if(!this.isStopped&&this._next){const{_parentSubscriber:V}=this;B.v.useDeprecatedSynchronousErrorHandling&&V.syncErrorThrowable?this.__tryOrSetError(V,this._next,U)&&this.unsubscribe():this.__tryOrUnsub(this._next,U)}}error(U){if(!this.isStopped){const{_parentSubscriber:V}=this,{useDeprecatedSynchronousErrorHandling:K}=B.v;if(this._error)K&&V.syncErrorThrowable?(this.__tryOrSetError(V,this._error,U),this.unsubscribe()):(this.__tryOrUnsub(this._error,U),this.unsubscribe());else if(V.syncErrorThrowable)K?(V.syncErrorValue=U,V.syncErrorThrown=!0):(0,N.z)(U),this.unsubscribe();else{if(this.unsubscribe(),K)throw U;(0,N.z)(U)}}}complete(){if(!this.isStopped){const{_parentSubscriber:U}=this;if(this._complete){const V=()=>this._complete.call(this._context);B.v.useDeprecatedSynchronousErrorHandling&&U.syncErrorThrowable?(this.__tryOrSetError(U,V),this.unsubscribe()):(this.__tryOrUnsub(V),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(U,V){try{U.call(this._context,V)}catch(K){if(this.unsubscribe(),B.v.useDeprecatedSynchronousErrorHandling)throw K;(0,N.z)(K)}}__tryOrSetError(U,V,K){if(!B.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{V.call(this._context,K)}catch(ce){return B.v.useDeprecatedSynchronousErrorHandling?(U.syncErrorValue=ce,U.syncErrorThrown=!0,!0):((0,N.z)(ce),!0)}return!1}_unsubscribe(){const{_parentSubscriber:U}=this;this._context=null,this._parentSubscriber=null,U.unsubscribe()}}},2654:(Ye,fe,M)=>{M.d(fe,{w:()=>N});var p=M(6688),m=M(7830),se=M(7043);const B=(()=>{function Q(oe){return Error.call(this),this.message=oe?`${oe.length} errors occurred during unsubscription:\n${oe.map((U,V)=>`${V+1}) ${U.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=oe,this}return Q.prototype=Object.create(Error.prototype),Q})();class N{constructor(oe){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,oe&&(this._unsubscribe=oe)}unsubscribe(){let oe;if(this.closed)return;let{_parentOrParents:U,_unsubscribe:V,_subscriptions:K}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,U instanceof N)U.remove(this);else if(null!==U)for(let ce=0;ce<U.length;++ce)U[ce].remove(this);if((0,se.m)(V))try{V.call(this)}catch(ce){oe=ce instanceof B?Z(ce.errors):[ce]}if((0,p.k)(K)){let ce=-1,Oe=K.length;for(;++ce<Oe;){const ye=K[ce];if((0,m.K)(ye))try{ye.unsubscribe()}catch(Ae){oe=oe||[],Ae instanceof B?oe=oe.concat(Z(Ae.errors)):oe.push(Ae)}}}if(oe)throw new B(oe)}add(oe){let U=oe;if(!oe)return N.EMPTY;switch(typeof oe){case"function":U=new N(oe);case"object":if(U===this||U.closed||"function"!=typeof U.unsubscribe)return U;if(this.closed)return U.unsubscribe(),U;if(!(U instanceof N)){const ce=U;U=new N,U._subscriptions=[ce]}break;default:throw new Error("unrecognized teardown "+oe+" added to Subscription.")}let{_parentOrParents:V}=U;if(null===V)U._parentOrParents=this;else if(V instanceof N){if(V===this)return U;U._parentOrParents=[V,this]}else{if(-1!==V.indexOf(this))return U;V.push(this)}const K=this._subscriptions;return null===K?this._subscriptions=[U]:K.push(U),U}remove(oe){const U=this._subscriptions;if(U){const V=U.indexOf(oe);-1!==V&&U.splice(V,1)}}}var Q;function Z(Q){return Q.reduce((oe,U)=>oe.concat(U instanceof B?U.errors:U),[])}N.EMPTY=((Q=new N).closed=!0,Q)},2830:(Ye,fe,M)=>{M.d(fe,{v:()=>m});let p=!1;const m={Promise:void 0,set useDeprecatedSynchronousErrorHandling(se){if(se){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=se},get useDeprecatedSynchronousErrorHandling(){return p}}},1762:(Ye,fe,M)=>{M.d(fe,{c:()=>B,N:()=>N});var p=M(8929),m=M(2916),se=M(2654),le=M(4327);class B extends m.y{constructor(V,K){super(),this.source=V,this.subjectFactory=K,this._refCount=0,this._isComplete=!1}_subscribe(V){return this.getSubject().subscribe(V)}getSubject(){const V=this._subject;return(!V||V.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let V=this._connection;return V||(this._isComplete=!1,V=this._connection=new se.w,V.add(this.source.subscribe(new Z(this.getSubject(),this))),V.closed&&(this._connection=null,V=se.w.EMPTY)),V}refCount(){return(0,le.x)()(this)}}const N=(()=>{const U=B.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:U._subscribe},_isComplete:{value:U._isComplete,writable:!0},getSubject:{value:U.getSubject},connect:{value:U.connect},refCount:{value:U.refCount}}})();class Z extends p.Yc{constructor(V,K){super(V),this.connectable=K}_error(V){this._unsubscribe(),super._error(V)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const V=this.connectable;if(V){this.connectable=null;const K=V._connection;V._refCount=0,V._subject=null,V._connection=null,K&&K.unsubscribe()}}}},6053:(Ye,fe,M)=>{M.d(fe,{aj:()=>Z});var p=M(2866),m=M(6688),se=M(826),le=M(9054),B=M(3009);const N={};function Z(...U){let V=null,K=null;return(0,p.K)(U[U.length-1])&&(K=U.pop()),"function"==typeof U[U.length-1]&&(V=U.pop()),1===U.length&&(0,m.k)(U[0])&&(U=U[0]),(0,B.n)(U,K).lift(new Q(V))}class Q{constructor(V){this.resultSelector=V}call(V,K){return K.subscribe(new oe(V,this.resultSelector))}}class oe extends se.L{constructor(V,K){super(V),this.resultSelector=K,this.active=0,this.values=[],this.observables=[]}_next(V){this.values.push(N),this.observables.push(V)}_complete(){const V=this.observables,K=V.length;if(0===K)this.destination.complete();else{this.active=K,this.toRespond=K;for(let ce=0;ce<K;ce++){const Oe=V[ce];this.add((0,le.D)(this,Oe,Oe,ce))}}}notifyComplete(V){0==(this.active-=1)&&this.destination.complete()}notifyNext(V,K,ce,Oe,ye){const Ae=this.values,$e=this.toRespond?Ae[ce]===N?--this.toRespond:this.toRespond:0;Ae[ce]=K,0===$e&&(this.resultSelector?this._tryResultSelector(Ae):this.destination.next(Ae.slice()))}_tryResultSelector(V){let K;try{K=this.resultSelector.apply(this,V)}catch(ce){return void this.destination.error(ce)}this.destination.next(K)}}},1221:(Ye,fe,M)=>{M.d(fe,{z:()=>le});var p=M(1086),m=M(9146);function le(...B){return function se(){return(0,m.J)(1)}()((0,p.of)(...B))}},8514:(Ye,fe,M)=>{M.d(fe,{P:()=>le});var p=M(2916),m=M(5254),se=M(8896);function le(B){return new p.y(N=>{let Z;try{Z=B()}catch(oe){return void N.error(oe)}return(Z?(0,m.D)(Z):(0,se.c)()).subscribe(N)})}},8896:(Ye,fe,M)=>{M.d(fe,{E:()=>m,c:()=>se});var p=M(2916);const m=new p.y(B=>B.complete());function se(B){return B?function le(B){return new p.y(N=>B.schedule(()=>N.complete()))}(B):m}},5254:(Ye,fe,M)=>{M.d(fe,{D:()=>ye});var p=M(2916),m=M(9249),se=M(2654),le=M(3821),Z=M(6454),Q=M(5430),V=M(8955),K=M(8515);function ye(Ae,Te){return Te?function Oe(Ae,Te){if(null!=Ae){if(function U(Ae){return Ae&&"function"==typeof Ae[le.L]}(Ae))return function B(Ae,Te){return new p.y($e=>{const Le=new se.w;return Le.add(Te.schedule(()=>{const tt=Ae[le.L]();Le.add(tt.subscribe({next(je){Le.add(Te.schedule(()=>$e.next(je)))},error(je){Le.add(Te.schedule(()=>$e.error(je)))},complete(){Le.add(Te.schedule(()=>$e.complete()))}}))})),Le})}(Ae,Te);if((0,V.t)(Ae))return function N(Ae,Te){return new p.y($e=>{const Le=new se.w;return Le.add(Te.schedule(()=>Ae.then(tt=>{Le.add(Te.schedule(()=>{$e.next(tt),Le.add(Te.schedule(()=>$e.complete()))}))},tt=>{Le.add(Te.schedule(()=>$e.error(tt)))}))),Le})}(Ae,Te);if((0,K.z)(Ae))return(0,Z.r)(Ae,Te);if(function ce(Ae){return Ae&&"function"==typeof Ae[Q.hZ]}(Ae)||"string"==typeof Ae)return function oe(Ae,Te){if(!Ae)throw new Error("Iterable cannot be null");return new p.y($e=>{const Le=new se.w;let tt;return Le.add(()=>{tt&&"function"==typeof tt.return&&tt.return()}),Le.add(Te.schedule(()=>{tt=Ae[Q.hZ](),Le.add(Te.schedule(function(){if($e.closed)return;let je,be;try{const ze=tt.next();je=ze.value,be=ze.done}catch(ze){return void $e.error(ze)}be?$e.complete():($e.next(je),this.schedule())}))})),Le})}(Ae,Te)}throw new TypeError((null!==Ae&&typeof Ae||Ae)+" is not observable")}(Ae,Te):Ae instanceof p.y?Ae:new p.y((0,m.s)(Ae))}},3009:(Ye,fe,M)=>{M.d(fe,{n:()=>le});var p=M(2916),m=M(3650),se=M(6454);function le(B,N){return N?(0,se.r)(B,N):new p.y((0,m.V)(B))}},6787:(Ye,fe,M)=>{M.d(fe,{T:()=>B});var p=M(2916),m=M(2866),se=M(9146),le=M(3009);function B(...N){let Z=Number.POSITIVE_INFINITY,Q=null,oe=N[N.length-1];return(0,m.K)(oe)?(Q=N.pop(),N.length>1&&"number"==typeof N[N.length-1]&&(Z=N.pop())):"number"==typeof oe&&(Z=N.pop()),null===Q&&1===N.length&&N[0]instanceof p.y?N[0]:(0,se.J)(Z)((0,le.n)(N,Q))}},1086:(Ye,fe,M)=>{M.d(fe,{of:()=>le});var p=M(2866),m=M(3009),se=M(6454);function le(...B){let N=B[B.length-1];return(0,p.K)(N)?(B.pop(),(0,se.r)(B,N)):(0,m.n)(B)}},1737:(Ye,fe,M)=>{M.d(fe,{_:()=>m});var p=M(2916);function m(le,B){return new p.y(B?N=>B.schedule(se,0,{error:le,subscriber:N}):N=>N.error(le))}function se({error:le,subscriber:B}){B.error(le)}},7739:(Ye,fe,M)=>{M.d(fe,{H:()=>N});var p=M(2916),m=M(353),se=M(6688);function le(Q){return!(0,se.k)(Q)&&Q-parseFloat(Q)+1>=0}var B=M(2866);function N(Q=0,oe,U){let V=-1;return le(oe)?V=Number(oe)<1?1:Number(oe):(0,B.K)(oe)&&(U=oe),(0,B.K)(U)||(U=m.P),new p.y(K=>{const ce=le(Q)?Q:+Q-U.now();return U.schedule(Z,ce,{index:0,period:V,subscriber:K})})}function Z(Q){const{index:oe,period:U,subscriber:V}=Q;if(V.next(oe),!V.closed){if(-1===U)return V.complete();Q.index=oe+1,this.schedule(Q,U)}}},7221:(Ye,fe,M)=>{M.d(fe,{K:()=>le});var p=M(826),m=M(1869),se=M(9054);function le(Z){return function(oe){const U=new B(Z),V=oe.lift(U);return U.caught=V}}class B{constructor(Q){this.selector=Q}call(Q,oe){return oe.subscribe(new N(Q,this.selector,this.caught))}}class N extends p.L{constructor(Q,oe,U){super(Q),this.selector=oe,this.caught=U}error(Q){if(!this.isStopped){let oe;try{oe=this.selector(Q,this.caught)}catch(K){return void super.error(K)}this._unsubscribeAndRecycle();const U=new m.d(this,void 0,void 0);this.add(U);const V=(0,se.D)(this,oe,void 0,void 0,U);V!==U&&this.add(V)}}}},1406:(Ye,fe,M)=>{M.d(fe,{b:()=>m});var p=M(1709);function m(se,le){return(0,p.zg)(se,le,1)}},5778:(Ye,fe,M)=>{M.d(fe,{x:()=>m});var p=M(3489);function m(B,N){return Z=>Z.lift(new se(B,N))}class se{constructor(N,Z){this.compare=N,this.keySelector=Z}call(N,Z){return Z.subscribe(new le(N,this.compare,this.keySelector))}}class le extends p.L{constructor(N,Z,Q){super(N),this.keySelector=Q,this.hasKey=!1,"function"==typeof Z&&(this.compare=Z)}compare(N,Z){return N===Z}_next(N){let Z;try{const{keySelector:oe}=this;Z=oe?oe(N):N}catch(oe){return this.destination.error(oe)}let Q=!1;if(this.hasKey)try{const{compare:oe}=this;Q=oe(this.key,Z)}catch(oe){return this.destination.error(oe)}else this.hasKey=!0;Q||(this.key=Z,this.destination.next(N))}}},2198:(Ye,fe,M)=>{M.d(fe,{h:()=>m});var p=M(3489);function m(B,N){return function(Q){return Q.lift(new se(B,N))}}class se{constructor(N,Z){this.predicate=N,this.thisArg=Z}call(N,Z){return Z.subscribe(new le(N,this.predicate,this.thisArg))}}class le extends p.L{constructor(N,Z,Q){super(N),this.predicate=Z,this.thisArg=Q,this.count=0}_next(N){let Z;try{Z=this.predicate.call(this.thisArg,N,this.count++)}catch(Q){return void this.destination.error(Q)}Z&&this.destination.next(N)}}},537:(Ye,fe,M)=>{M.d(fe,{x:()=>se});var p=M(3489),m=M(2654);function se(N){return Z=>Z.lift(new le(N))}class le{constructor(Z){this.callback=Z}call(Z,Q){return Q.subscribe(new B(Z,this.callback))}}class B extends p.L{constructor(Z,Q){super(Z),this.add(new m.w(Q))}}},4850:(Ye,fe,M)=>{M.d(fe,{U:()=>m});var p=M(3489);function m(B,N){return function(Q){if("function"!=typeof B)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return Q.lift(new se(B,N))}}class se{constructor(N,Z){this.project=N,this.thisArg=Z}call(N,Z){return Z.subscribe(new le(N,this.project,this.thisArg))}}class le extends p.L{constructor(N,Z,Q){super(N),this.project=Z,this.count=0,this.thisArg=Q||this}_next(N){let Z;try{Z=this.project.call(this.thisArg,N,this.count++)}catch(Q){return void this.destination.error(Q)}this.destination.next(Z)}}},9146:(Ye,fe,M)=>{M.d(fe,{J:()=>se});var p=M(1709),m=M(5379);function se(le=Number.POSITIVE_INFINITY){return(0,p.zg)(m.y,le)}},1709:(Ye,fe,M)=>{M.d(fe,{zg:()=>N});var p=M(9054),m=M(826),se=M(1869),le=M(4850),B=M(5254);function N(oe,U,V=Number.POSITIVE_INFINITY){return"function"==typeof U?K=>K.pipe(N((ce,Oe)=>(0,B.D)(oe(ce,Oe)).pipe((0,le.U)((ye,Ae)=>U(ce,ye,Oe,Ae))),V)):("number"==typeof U&&(V=U),K=>K.lift(new Z(oe,V)))}class Z{constructor(U,V=Number.POSITIVE_INFINITY){this.project=U,this.concurrent=V}call(U,V){return V.subscribe(new Q(U,this.project,this.concurrent))}}class Q extends m.L{constructor(U,V,K=Number.POSITIVE_INFINITY){super(U),this.project=V,this.concurrent=K,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(U){this.active<this.concurrent?this._tryNext(U):this.buffer.push(U)}_tryNext(U){let V;const K=this.index++;try{V=this.project(U,K)}catch(ce){return void this.destination.error(ce)}this.active++,this._innerSub(V,U,K)}_innerSub(U,V,K){const ce=new se.d(this,V,K),Oe=this.destination;Oe.add(ce);const ye=(0,p.D)(this,U,void 0,void 0,ce);ye!==ce&&Oe.add(ye)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(U,V,K,ce,Oe){this.destination.next(V)}notifyComplete(U){const V=this.buffer;this.remove(U),this.active--,V.length>0?this._next(V.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Ye,fe,M)=>{M.d(fe,{x:()=>m});var p=M(3489);function m(){return function(N){return N.lift(new se(N))}}class se{constructor(N){this.connectable=N}call(N,Z){const{connectable:Q}=this;Q._refCount++;const oe=new le(N,Q),U=Z.subscribe(oe);return oe.closed||(oe.connection=Q.connect()),U}}class le extends p.L{constructor(N,Z){super(N),this.connectable=Z}_unsubscribe(){const{connectable:N}=this;if(!N)return void(this.connection=null);this.connectable=null;const Z=N._refCount;if(Z<=0)return void(this.connection=null);if(N._refCount=Z-1,Z>1)return void(this.connection=null);const{connection:Q}=this,oe=N._connection;this.connection=null,oe&&(!Q||oe===Q)&&oe.unsubscribe()}}},2014:(Ye,fe,M)=>{M.d(fe,{R:()=>m});var p=M(3489);function m(B,N){let Z=!1;return arguments.length>=2&&(Z=!0),function(oe){return oe.lift(new se(B,N,Z))}}class se{constructor(N,Z,Q=!1){this.accumulator=N,this.seed=Z,this.hasSeed=Q}call(N,Z){return Z.subscribe(new le(N,this.accumulator,this.seed,this.hasSeed))}}class le extends p.L{constructor(N,Z,Q,oe){super(N),this.accumulator=Z,this._seed=Q,this.hasSeed=oe,this.index=0}get seed(){return this._seed}set seed(N){this.hasSeed=!0,this._seed=N}_next(N){if(this.hasSeed)return this._tryNext(N);this.seed=N,this.destination.next(N)}_tryNext(N){const Z=this.index++;let Q;try{Q=this.accumulator(this.seed,N,Z)}catch(oe){this.destination.error(oe)}this.seed=Q,this.destination.next(Q)}}},2474:(Ye,fe,M)=>{M.d(fe,{B:()=>Z});var p=M(1762);class se{constructor(oe,U){this.subjectFactory=oe,this.selector=U}call(oe,U){const{selector:V}=this,K=this.subjectFactory(),ce=V(K).subscribe(oe);return ce.add(U.subscribe(K)),ce}}var le=M(4327),B=M(8929);function N(){return new B.xQ}function Z(){return Q=>(0,le.x)()(function m(Q,oe){return function(V){let K;if(K="function"==typeof Q?Q:function(){return Q},"function"==typeof oe)return V.lift(new se(K,oe));const ce=Object.create(V,p.N);return ce.source=V,ce.subjectFactory=K,ce}}(N)(Q))}},1059:(Ye,fe,M)=>{M.d(fe,{O:()=>se});var p=M(1221),m=M(2866);function se(...le){const B=le[le.length-1];return(0,m.K)(B)?(le.pop(),N=>(0,p.z)(le,N,B)):N=>(0,p.z)(le,N)}},7545:(Ye,fe,M)=>{M.d(fe,{w:()=>N});var p=M(826),m=M(1869),se=M(9054),le=M(4850),B=M(5254);function N(oe,U){return"function"==typeof U?V=>V.pipe(N((K,ce)=>(0,B.D)(oe(K,ce)).pipe((0,le.U)((Oe,ye)=>U(K,Oe,ce,ye))))):V=>V.lift(new Z(oe))}class Z{constructor(U){this.project=U}call(U,V){return V.subscribe(new Q(U,this.project))}}class Q extends p.L{constructor(U,V){super(U),this.project=V,this.index=0}_next(U){let V;const K=this.index++;try{V=this.project(U,K)}catch(ce){return void this.destination.error(ce)}this._innerSub(V,U,K)}_innerSub(U,V,K){const ce=this.innerSubscription;ce&&ce.unsubscribe();const Oe=new m.d(this,V,K),ye=this.destination;ye.add(Oe),this.innerSubscription=(0,se.D)(this,U,void 0,void 0,Oe),this.innerSubscription!==Oe&&ye.add(this.innerSubscription)}_complete(){const{innerSubscription:U}=this;(!U||U.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(U){this.destination.remove(U),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(U,V,K,ce,Oe){this.destination.next(V)}}},2986:(Ye,fe,M)=>{M.d(fe,{q:()=>le});var p=M(3489),m=M(4231),se=M(8896);function le(Z){return Q=>0===Z?(0,se.c)():Q.lift(new B(Z))}class B{constructor(Q){if(this.total=Q,this.total<0)throw new m.W}call(Q,oe){return oe.subscribe(new N(Q,this.total))}}class N extends p.L{constructor(Q,oe){super(Q),this.total=oe,this.count=0}_next(Q){const oe=this.total,U=++this.count;U<=oe&&(this.destination.next(Q),U===oe&&(this.destination.complete(),this.unsubscribe()))}}},2994:(Ye,fe,M)=>{M.d(fe,{b:()=>le});var p=M(3489),m=M(7876),se=M(7043);function le(Z,Q,oe){return function(V){return V.lift(new B(Z,Q,oe))}}class B{constructor(Q,oe,U){this.nextOrObserver=Q,this.error=oe,this.complete=U}call(Q,oe){return oe.subscribe(new N(Q,this.nextOrObserver,this.error,this.complete))}}class N extends p.L{constructor(Q,oe,U,V){super(Q),this._tapNext=m.Z,this._tapError=m.Z,this._tapComplete=m.Z,this._tapError=U||m.Z,this._tapComplete=V||m.Z,(0,se.m)(oe)?(this._context=this,this._tapNext=oe):oe&&(this._context=oe,this._tapNext=oe.next||m.Z,this._tapError=oe.error||m.Z,this._tapComplete=oe.complete||m.Z)}_next(Q){try{this._tapNext.call(this._context,Q)}catch(oe){return void this.destination.error(oe)}this.destination.next(Q)}_error(Q){try{this._tapError.call(this._context,Q)}catch(oe){return void this.destination.error(oe)}this.destination.error(Q)}_complete(){try{this._tapComplete.call(this._context)}catch(Q){return void this.destination.error(Q)}return this.destination.complete()}}},6454:(Ye,fe,M)=>{M.d(fe,{r:()=>se});var p=M(2916),m=M(2654);function se(le,B){return new p.y(N=>{const Z=new m.w;let Q=0;return Z.add(B.schedule(function(){Q!==le.length?(N.next(le[Q++]),N.closed||Z.add(this.schedule())):N.complete()})),Z})}},6686:(Ye,fe,M)=>{M.d(fe,{o:()=>se});var p=M(2654);class m extends p.w{constructor(B,N){super()}schedule(B,N=0){return this}}class se extends m{constructor(B,N){super(B,N),this.scheduler=B,this.work=N,this.pending=!1}schedule(B,N=0){if(this.closed)return this;this.state=B;const Z=this.id,Q=this.scheduler;return null!=Z&&(this.id=this.recycleAsyncId(Q,Z,N)),this.pending=!0,this.delay=N,this.id=this.id||this.requestAsyncId(Q,this.id,N),this}requestAsyncId(B,N,Z=0){return setInterval(B.flush.bind(B,this),Z)}recycleAsyncId(B,N,Z=0){if(null!==Z&&this.delay===Z&&!1===this.pending)return N;clearInterval(N)}execute(B,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Z=this._execute(B,N);if(Z)return Z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,N){let Q,Z=!1;try{this.work(B)}catch(oe){Z=!0,Q=!!oe&&oe||new Error(oe)}if(Z)return this.unsubscribe(),Q}_unsubscribe(){const B=this.id,N=this.scheduler,Z=N.actions,Q=Z.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==Q&&Z.splice(Q,1),null!=B&&(this.id=this.recycleAsyncId(N,B,null)),this.delay=null}}},2268:(Ye,fe,M)=>{M.d(fe,{v:()=>m});let p=(()=>{class se{constructor(B,N=se.now){this.SchedulerAction=B,this.now=N}schedule(B,N=0,Z){return new this.SchedulerAction(this,B).schedule(Z,N)}}return se.now=()=>Date.now(),se})();class m extends p{constructor(le,B=p.now){super(le,()=>m.delegate&&m.delegate!==this?m.delegate.now():B()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(le,B=0,N){return m.delegate&&m.delegate!==this?m.delegate.schedule(le,B,N):super.schedule(le,B,N)}flush(le){const{actions:B}=this;if(this.active)return void B.push(le);let N;this.active=!0;do{if(N=le.execute(le.state,le.delay))break}while(le=B.shift());if(this.active=!1,N){for(;le=B.shift();)le.unsubscribe();throw N}}}},353:(Ye,fe,M)=>{M.d(fe,{P:()=>se});var p=M(6686);const se=new(M(2268).v)(p.o)},5430:(Ye,fe,M)=>{M.d(fe,{hZ:()=>m});const m=function p(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ye,fe,M)=>{M.d(fe,{L:()=>p});const p="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ye,fe,M)=>{M.d(fe,{b:()=>p});const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ye,fe,M)=>{M.d(fe,{W:()=>m});const m=(()=>{function se(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return se.prototype=Object.create(Error.prototype),se})()},5279:(Ye,fe,M)=>{M.d(fe,{N:()=>m});const m=(()=>{function se(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return se.prototype=Object.create(Error.prototype),se})()},2782:(Ye,fe,M)=>{function p(m){setTimeout(()=>{throw m},0)}M.d(fe,{z:()=>p})},5379:(Ye,fe,M)=>{function p(m){return m}M.d(fe,{y:()=>p})},6688:(Ye,fe,M)=>{M.d(fe,{k:()=>p});const p=Array.isArray||(m=>m&&"number"==typeof m.length)},8515:(Ye,fe,M)=>{M.d(fe,{z:()=>p});const p=m=>m&&"number"==typeof m.length&&"function"!=typeof m},2697:(Ye,fe,M)=>{function p(m){return m instanceof Date&&!isNaN(+m)}M.d(fe,{J:()=>p})},7043:(Ye,fe,M)=>{function p(m){return"function"==typeof m}M.d(fe,{m:()=>p})},7830:(Ye,fe,M)=>{function p(m){return null!==m&&"object"==typeof m}M.d(fe,{K:()=>p})},8955:(Ye,fe,M)=>{function p(m){return!!m&&"function"!=typeof m.subscribe&&"function"==typeof m.then}M.d(fe,{t:()=>p})},2866:(Ye,fe,M)=>{function p(m){return m&&"function"==typeof m.schedule}M.d(fe,{K:()=>p})},7876:(Ye,fe,M)=>{function p(){}M.d(fe,{Z:()=>p})},9249:(Ye,fe,M)=>{M.d(fe,{s:()=>V});var p=M(3650),m=M(2782),le=M(5430),N=M(3821),Q=M(8515),oe=M(8955),U=M(7830);const V=K=>{if(K&&"function"==typeof K[N.L])return(K=>ce=>{const Oe=K[N.L]();if("function"!=typeof Oe.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Oe.subscribe(ce)})(K);if((0,Q.z)(K))return(0,p.V)(K);if((0,oe.t)(K))return(K=>ce=>(K.then(Oe=>{ce.closed||(ce.next(Oe),ce.complete())},Oe=>ce.error(Oe)).then(null,m.z),ce))(K);if(K&&"function"==typeof K[le.hZ])return(K=>ce=>{const Oe=K[le.hZ]();for(;;){const ye=Oe.next();if(ye.done){ce.complete();break}if(ce.next(ye.value),ce.closed)break}return"function"==typeof Oe.return&&ce.add(()=>{Oe.return&&Oe.return()}),ce})(K);{const Oe=`You provided ${(0,U.K)(K)?"an invalid object":`'${K}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Oe)}}},3650:(Ye,fe,M)=>{M.d(fe,{V:()=>p});const p=m=>se=>{for(let le=0,B=m.length;le<B&&!se.closed;le++)se.next(m[le]);se.complete()}},9054:(Ye,fe,M)=>{M.d(fe,{D:()=>le});var p=M(1869),m=M(9249),se=M(2916);function le(B,N,Z,Q,oe=new p.d(B,Z,Q)){if(!oe.closed)return N instanceof se.y?N.subscribe(oe):(0,m.s)(N)(oe)}},1777:(Ye,fe,M)=>{M.d(fe,{l3:()=>se,_j:()=>p,LC:()=>m,ZN:()=>$e,jt:()=>B,pV:()=>ce,F4:()=>U,IO:()=>ye,vP:()=>Z,SB:()=>oe,oB:()=>Q,eR:()=>V,X$:()=>le,ZE:()=>Le,k1:()=>tt});class p{}class m{}const se="*";function le(je,be){return{type:7,name:je,definitions:be,options:{}}}function B(je,be=null){return{type:4,styles:be,timings:je}}function Z(je,be=null){return{type:2,steps:je,options:be}}function Q(je){return{type:6,styles:je,offset:null}}function oe(je,be,ze){return{type:0,name:je,styles:be,options:ze}}function U(je){return{type:5,steps:je}}function V(je,be,ze=null){return{type:1,expr:je,animation:be,options:ze}}function ce(je=null){return{type:9,options:je}}function ye(je,be,ze=null){return{type:11,selector:je,animation:be,options:ze}}function Te(je){Promise.resolve(null).then(je)}class $e{constructor(be=0,ze=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=be+ze}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(be=>be()),this._onDoneFns=[])}onStart(be){this._onStartFns.push(be)}onDone(be){this._onDoneFns.push(be)}onDestroy(be){this._onDestroyFns.push(be)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Te(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(be=>be()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(be=>be()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(be){this._position=this.totalTime?be*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(be){const ze="start"==be?this._onStartFns:this._onDoneFns;ze.forEach($t=>$t()),ze.length=0}}class Le{constructor(be){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=be;let ze=0,$t=0,Zt=0;const Pt=this.players.length;0==Pt?Te(()=>this._onFinish()):this.players.forEach(ht=>{ht.onDone(()=>{++ze==Pt&&this._onFinish()}),ht.onDestroy(()=>{++$t==Pt&&this._onDestroy()}),ht.onStart(()=>{++Zt==Pt&&this._onStart()})}),this.totalTime=this.players.reduce((ht,xt)=>Math.max(ht,xt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(be=>be()),this._onDoneFns=[])}init(){this.players.forEach(be=>be.init())}onStart(be){this._onStartFns.push(be)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(be=>be()),this._onStartFns=[])}onDone(be){this._onDoneFns.push(be)}onDestroy(be){this._onDestroyFns.push(be)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(be=>be.play())}pause(){this.players.forEach(be=>be.pause())}restart(){this.players.forEach(be=>be.restart())}finish(){this._onFinish(),this.players.forEach(be=>be.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(be=>be.destroy()),this._onDestroyFns.forEach(be=>be()),this._onDestroyFns=[])}reset(){this.players.forEach(be=>be.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(be){const ze=be*this.totalTime;this.players.forEach($t=>{const Zt=$t.totalTime?Math.min(1,ze/$t.totalTime):1;$t.setPosition(Zt)})}getPosition(){const be=this.players.reduce((ze,$t)=>null===ze||$t.totalTime>ze.totalTime?$t:ze,null);return null!=be?be.getPosition():0}beforeDestroy(){this.players.forEach(be=>{be.beforeDestroy&&be.beforeDestroy()})}triggerCallback(be){const ze="start"==be?this._onStartFns:this._onDoneFns;ze.forEach($t=>$t()),ze.length=0}}const tt="!"},9808:(Ye,fe,M)=>{M.d(fe,{mr:()=>Le,Ov:()=>Cs,ez:()=>Hs,K0:()=>Z,uU:()=>as,JJ:()=>ii,Do:()=>je,Ts:()=>ls,V_:()=>U,Ye:()=>be,S$:()=>Te,mk:()=>ir,$G:()=>Hn,sg:()=>vn,O5:()=>zt,RF:()=>An,n9:()=>In,ED:()=>Cr,tP:()=>Ls,b0:()=>tt,lw:()=>Q,EM:()=>$s,JF:()=>an,NF:()=>$n,w_:()=>N,bD:()=>As,q:()=>se,Mx:()=>hr,HT:()=>B});var p=M(5e3);let m=null;function se(){return m}function B(_){m||(m=_)}class N{}const Z=new p.OlP("DocumentToken");let Q=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=p.Yz7({token:_,factory:function(){return function oe(){return(0,p.LFG)(V)}()},providedIn:"platform"}),_})();const U=new p.OlP("Location Initialized");let V=(()=>{class _ extends Q{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return se().getBaseHref(this._doc)}onPopState(v){const P=se().getGlobalEventTarget(this._doc,"window");return P.addEventListener("popstate",v,!1),()=>P.removeEventListener("popstate",v)}onHashChange(v){const P=se().getGlobalEventTarget(this._doc,"window");return P.addEventListener("hashchange",v,!1),()=>P.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,P,W){K()?this._history.pushState(v,P,W):this.location.hash=W}replaceState(v,P,W){K()?this._history.replaceState(v,P,W):this.location.hash=W}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(Z))},_.\u0275prov=p.Yz7({token:_,factory:function(){return function ce(){return new V((0,p.LFG)(Z))}()},providedIn:"platform"}),_})();function K(){return!!window.history.pushState}function Oe(_,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 ye(_){const S=_.match(/#|\?|$/),v=S&&S.index||_.length;return _.slice(0,v-("/"===_[v-1]?1:0))+_.slice(v)}function Ae(_){return _&&"?"!==_[0]?"?"+_:_}let Te=(()=>{class _{historyGo(v){throw new Error("Not implemented")}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275prov=p.Yz7({token:_,factory:function(){return function $e(_){const S=(0,p.LFG)(Z).location;return new tt((0,p.LFG)(Q),S&&S.origin||"")}()},providedIn:"root"}),_})();const Le=new p.OlP("appBaseHref");let tt=(()=>{class _ extends Te{constructor(v,P){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==P&&(P=this._platformLocation.getBaseHrefFromDOM()),null==P)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=P}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 Oe(this._baseHref,v)}path(v=!1){const P=this._platformLocation.pathname+Ae(this._platformLocation.search),W=this._platformLocation.hash;return W&&v?`${P}${W}`:P}pushState(v,P,W,pe){const we=this.prepareExternalUrl(W+Ae(pe));this._platformLocation.pushState(v,P,we)}replaceState(v,P,W,pe){const we=this.prepareExternalUrl(W+Ae(pe));this._platformLocation.replaceState(v,P,we)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var P,W;null===(W=(P=this._platformLocation).historyGo)||void 0===W||W.call(P,v)}}return _.\u0275fac=function(v){return new(v||_)(p.LFG(Q),p.LFG(Le,8))},_.\u0275prov=p.Yz7({token:_,factory:_.\u0275fac}),_})(),je=(()=>{class _ extends Te{constructor(v,P){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=P&&(this._baseHref=P)}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 P=this._platformLocation.hash;return null==P&&(P="#"),P.length>0?P.substring(1):P}prepareExternalUrl(v){const P=Oe(this._baseHref,v);return P.length>0?"#"+P:P}pushState(v,P,W,pe){let we=this.prepareExternalUrl(W+Ae(pe));0==we.length&&(we=this._platformLocation.pathname),this._platformLocation.pushState(v,P,we)}replaceState(v,P,W,pe){let we=this.prepareExternalUrl(W+Ae(pe));0==we.length&&(we=this._platformLocation.pathname),this._platformLocation.replaceState(v,P,we)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var P,W;null===(W=(P=this._platformLocation).historyGo)||void 0===W||W.call(P,v)}}return _.\u0275fac=function(v){return new(v||_)(p.LFG(Q),p.LFG(Le,8))},_.\u0275prov=p.Yz7({token:_,factory:_.\u0275fac}),_})(),be=(()=>{class _{constructor(v,P){this._subject=new p.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const W=this._platformStrategy.getBaseHref();this._platformLocation=P,this._baseHref=ye(Zt(W)),this._platformStrategy.onPopState(pe=>{this._subject.emit({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,P=""){return this.path()==this.normalize(v+Ae(P))}normalize(v){return _.stripTrailingSlash(function $t(_,S){return _&&S.startsWith(_)?S.substring(_.length):S}(this._baseHref,Zt(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,P="",W=null){this._platformStrategy.pushState(W,"",v,P),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+Ae(P)),W)}replaceState(v,P="",W=null){this._platformStrategy.replaceState(W,"",v,P),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+Ae(P)),W)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var P,W;null===(W=(P=this._platformStrategy).historyGo)||void 0===W||W.call(P,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(P=>{this._notifyUrlChangeListeners(P.url,P.state)}))}_notifyUrlChangeListeners(v="",P){this._urlChangeListeners.forEach(W=>W(v,P))}subscribe(v,P,W){return this._subject.subscribe({next:v,error:P,complete:W})}}return _.normalizeQueryParams=Ae,_.joinWithSlash=Oe,_.stripTrailingSlash=ye,_.\u0275fac=function(v){return new(v||_)(p.LFG(Te),p.LFG(Q))},_.\u0275prov=p.Yz7({token:_,factory:function(){return function ze(){return new be((0,p.LFG)(Te),(0,p.LFG)(Q))}()},providedIn:"root"}),_})();function Zt(_){return _.replace(/\/index.html$/,"")}var ht=(()=>((ht=ht||{})[ht.Decimal=0]="Decimal",ht[ht.Percent=1]="Percent",ht[ht.Currency=2]="Currency",ht[ht.Scientific=3]="Scientific",ht))(),xt=(()=>((xt=xt||{})[xt.Zero=0]="Zero",xt[xt.One=1]="One",xt[xt.Two=2]="Two",xt[xt.Few=3]="Few",xt[xt.Many=4]="Many",xt[xt.Other=5]="Other",xt))(),Xe=(()=>((Xe=Xe||{})[Xe.Format=0]="Format",Xe[Xe.Standalone=1]="Standalone",Xe))(),ot=(()=>((ot=ot||{})[ot.Narrow=0]="Narrow",ot[ot.Abbreviated=1]="Abbreviated",ot[ot.Wide=2]="Wide",ot[ot.Short=3]="Short",ot))(),qe=(()=>((qe=qe||{})[qe.Short=0]="Short",qe[qe.Medium=1]="Medium",qe[qe.Long=2]="Long",qe[qe.Full=3]="Full",qe))(),Ue=(()=>((Ue=Ue||{})[Ue.Decimal=0]="Decimal",Ue[Ue.Group=1]="Group",Ue[Ue.List=2]="List",Ue[Ue.PercentSign=3]="PercentSign",Ue[Ue.PlusSign=4]="PlusSign",Ue[Ue.MinusSign=5]="MinusSign",Ue[Ue.Exponential=6]="Exponential",Ue[Ue.SuperscriptingExponent=7]="SuperscriptingExponent",Ue[Ue.PerMille=8]="PerMille",Ue[Ue.Infinity=9]="Infinity",Ue[Ue.NaN=10]="NaN",Ue[Ue.TimeSeparator=11]="TimeSeparator",Ue[Ue.CurrencyDecimal=12]="CurrencyDecimal",Ue[Ue.CurrencyGroup=13]="CurrencyGroup",Ue))();function me(_,S){return st((0,p.cg1)(_)[p.wAp.DateFormat],S)}function J(_,S){return st((0,p.cg1)(_)[p.wAp.TimeFormat],S)}function ue(_,S){return st((0,p.cg1)(_)[p.wAp.DateTimeFormat],S)}function Pe(_,S){const v=(0,p.cg1)(_),P=v[p.wAp.NumberSymbols][S];if(void 0===P){if(S===Ue.CurrencyDecimal)return v[p.wAp.NumberSymbols][Ue.Decimal];if(S===Ue.CurrencyGroup)return v[p.wAp.NumberSymbols][Ue.Group]}return P}const X=p.kL8;function _e(_){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 st(_,S){for(let v=S;v>-1;v--)if(void 0!==_[v])return _[v];throw new Error("Locale data API: locale data undefined")}function ct(_){const[S,v]=_.split(":");return{hours:+S,minutes:+v}}const k=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ie={},Ce=/((?:[^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 Be=(()=>((Be=Be||{})[Be.Short=0]="Short",Be[Be.ShortGMT=1]="ShortGMT",Be[Be.Long=2]="Long",Be[Be.Extended=3]="Extended",Be))(),Ne=(()=>((Ne=Ne||{})[Ne.FullYear=0]="FullYear",Ne[Ne.Month=1]="Month",Ne[Ne.Date=2]="Date",Ne[Ne.Hours=3]="Hours",Ne[Ne.Minutes=4]="Minutes",Ne[Ne.Seconds=5]="Seconds",Ne[Ne.FractionalSeconds=6]="FractionalSeconds",Ne[Ne.Day=7]="Day",Ne))(),Ke=(()=>((Ke=Ke||{})[Ke.DayPeriods=0]="DayPeriods",Ke[Ke.Days=1]="Days",Ke[Ke.Months=2]="Months",Ke[Ke.Eras=3]="Eras",Ke))();function vt(_,S,v,P){let W=function Y(_){if(O(_))return _;if("number"==typeof _&&!isNaN(_))return new Date(_);if("string"==typeof _){if(_=_.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(_)){const[W,pe=1,we=1]=_.split("-").map(Qe=>+Qe);return ln(W,pe-1,we)}const v=parseFloat(_);if(!isNaN(_-v))return new Date(v);let P;if(P=_.match(k))return function b(_){const S=new Date(0);let v=0,P=0;const W=_[8]?S.setUTCFullYear:S.setFullYear,pe=_[8]?S.setUTCHours:S.setHours;_[9]&&(v=Number(_[9]+_[10]),P=Number(_[9]+_[11])),W.call(S,Number(_[1]),Number(_[2])-1,Number(_[3]));const we=Number(_[4]||0)-v,Qe=Number(_[5]||0)-P,Qt=Number(_[6]||0),jt=Math.floor(1e3*parseFloat("0."+(_[7]||0)));return pe.call(S,we,Qe,Qt,jt),S}(P)}const S=new Date(_);if(!O(S))throw new Error(`Unable to convert "${_}" into a date`);return S}(_);S=dt(v,S)||S;let Qe,we=[];for(;S;){if(Qe=Ce.exec(S),!Qe){we.push(S);break}{we=we.concat(Qe.slice(1));const St=we.pop();if(!St)break;S=St}}let Qt=W.getTimezoneOffset();P&&(Qt=Cn(P,Qt),W=function ae(_,S,v){const P=v?-1:1,W=_.getTimezoneOffset();return function bt(_,S){return(_=new Date(_.getTime())).setMinutes(_.getMinutes()+S),_}(_,P*(Cn(S,W)-W))}(W,P,!0));let jt="";return we.forEach(St=>{const Bt=function rr(_){if(Kn[_])return Kn[_];let S;switch(_){case"G":case"GG":case"GGG":S=yt(Ke.Eras,ot.Abbreviated);break;case"GGGG":S=yt(Ke.Eras,ot.Wide);break;case"GGGGG":S=yt(Ke.Eras,ot.Narrow);break;case"y":S=Ge(Ne.FullYear,1,0,!1,!0);break;case"yy":S=Ge(Ne.FullYear,2,0,!0,!0);break;case"yyy":S=Ge(Ne.FullYear,3,0,!1,!0);break;case"yyyy":S=Ge(Ne.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=Ge(Ne.Month,1,1);break;case"MM":case"LL":S=Ge(Ne.Month,2,1);break;case"MMM":S=yt(Ke.Months,ot.Abbreviated);break;case"MMMM":S=yt(Ke.Months,ot.Wide);break;case"MMMMM":S=yt(Ke.Months,ot.Narrow);break;case"LLL":S=yt(Ke.Months,ot.Abbreviated,Xe.Standalone);break;case"LLLL":S=yt(Ke.Months,ot.Wide,Xe.Standalone);break;case"LLLLL":S=yt(Ke.Months,ot.Narrow,Xe.Standalone);break;case"w":S=Nr(1);break;case"ww":S=Nr(2);break;case"W":S=Nr(1,!0);break;case"d":S=Ge(Ne.Date,1);break;case"dd":S=Ge(Ne.Date,2);break;case"c":case"cc":S=Ge(Ne.Day,1);break;case"ccc":S=yt(Ke.Days,ot.Abbreviated,Xe.Standalone);break;case"cccc":S=yt(Ke.Days,ot.Wide,Xe.Standalone);break;case"ccccc":S=yt(Ke.Days,ot.Narrow,Xe.Standalone);break;case"cccccc":S=yt(Ke.Days,ot.Short,Xe.Standalone);break;case"E":case"EE":case"EEE":S=yt(Ke.Days,ot.Abbreviated);break;case"EEEE":S=yt(Ke.Days,ot.Wide);break;case"EEEEE":S=yt(Ke.Days,ot.Narrow);break;case"EEEEEE":S=yt(Ke.Days,ot.Short);break;case"a":case"aa":case"aaa":S=yt(Ke.DayPeriods,ot.Abbreviated);break;case"aaaa":S=yt(Ke.DayPeriods,ot.Wide);break;case"aaaaa":S=yt(Ke.DayPeriods,ot.Narrow);break;case"b":case"bb":case"bbb":S=yt(Ke.DayPeriods,ot.Abbreviated,Xe.Standalone,!0);break;case"bbbb":S=yt(Ke.DayPeriods,ot.Wide,Xe.Standalone,!0);break;case"bbbbb":S=yt(Ke.DayPeriods,ot.Narrow,Xe.Standalone,!0);break;case"B":case"BB":case"BBB":S=yt(Ke.DayPeriods,ot.Abbreviated,Xe.Format,!0);break;case"BBBB":S=yt(Ke.DayPeriods,ot.Wide,Xe.Format,!0);break;case"BBBBB":S=yt(Ke.DayPeriods,ot.Narrow,Xe.Format,!0);break;case"h":S=Ge(Ne.Hours,1,-12);break;case"hh":S=Ge(Ne.Hours,2,-12);break;case"H":S=Ge(Ne.Hours,1);break;case"HH":S=Ge(Ne.Hours,2);break;case"m":S=Ge(Ne.Minutes,1);break;case"mm":S=Ge(Ne.Minutes,2);break;case"s":S=Ge(Ne.Seconds,1);break;case"ss":S=Ge(Ne.Seconds,2);break;case"S":S=Ge(Ne.FractionalSeconds,1);break;case"SS":S=Ge(Ne.FractionalSeconds,2);break;case"SSS":S=Ge(Ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":S=kn(Be.Short);break;case"ZZZZZ":S=kn(Be.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":S=kn(Be.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":S=kn(Be.Long);break;default:return null}return Kn[_]=S,S}(St);jt+=Bt?Bt(W,v,Qt):"''"===St?"'":St.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),jt}function ln(_,S,v){const P=new Date(0);return P.setFullYear(_,S,v),P.setHours(0,0,0),P}function dt(_,S){const v=function Nt(_){return(0,p.cg1)(_)[p.wAp.LocaleId]}(_);if(Ie[v]=Ie[v]||{},Ie[v][S])return Ie[v][S];let P="";switch(S){case"shortDate":P=me(_,qe.Short);break;case"mediumDate":P=me(_,qe.Medium);break;case"longDate":P=me(_,qe.Long);break;case"fullDate":P=me(_,qe.Full);break;case"shortTime":P=J(_,qe.Short);break;case"mediumTime":P=J(_,qe.Medium);break;case"longTime":P=J(_,qe.Long);break;case"fullTime":P=J(_,qe.Full);break;case"short":const W=dt(_,"shortTime"),pe=dt(_,"shortDate");P=bn(ue(_,qe.Short),[W,pe]);break;case"medium":const we=dt(_,"mediumTime"),Qe=dt(_,"mediumDate");P=bn(ue(_,qe.Medium),[we,Qe]);break;case"long":const Qt=dt(_,"longTime"),jt=dt(_,"longDate");P=bn(ue(_,qe.Long),[Qt,jt]);break;case"full":const St=dt(_,"fullTime"),Bt=dt(_,"fullDate");P=bn(ue(_,qe.Full),[St,Bt])}return P&&(Ie[v][S]=P),P}function bn(_,S){return S&&(_=_.replace(/\{([^}]+)}/g,function(v,P){return null!=S&&P in S?S[P]:v})),_}function on(_,S,v="-",P,W){let pe="";(_<0||W&&_<=0)&&(W?_=1-_:(_=-_,pe=v));let we=String(_);for(;we.length<S;)we="0"+we;return P&&(we=we.substr(we.length-S)),pe+we}function Ge(_,S,v=0,P=!1,W=!1){return function(pe,we){let Qe=function Ht(_,S){switch(_){case Ne.FullYear:return S.getFullYear();case Ne.Month:return S.getMonth();case Ne.Date:return S.getDate();case Ne.Hours:return S.getHours();case Ne.Minutes:return S.getMinutes();case Ne.Seconds:return S.getSeconds();case Ne.FractionalSeconds:return S.getMilliseconds();case Ne.Day:return S.getDay();default:throw new Error(`Unknown DateType value "${_}".`)}}(_,pe);if((v>0||Qe>-v)&&(Qe+=v),_===Ne.Hours)0===Qe&&-12===v&&(Qe=12);else if(_===Ne.FractionalSeconds)return function Et(_,S){return on(_,3).substr(0,S)}(Qe,S);const Qt=Pe(we,Ue.MinusSign);return on(Qe,S,Qt,P,W)}}function yt(_,S,v=Xe.Format,P=!1){return function(W,pe){return function Mt(_,S,v,P,W,pe){switch(v){case Ke.Months:return function at(_,S,v){const P=(0,p.cg1)(_),pe=st([P[p.wAp.MonthsFormat],P[p.wAp.MonthsStandalone]],S);return st(pe,v)}(S,W,P)[_.getMonth()];case Ke.Days:return function Yt(_,S,v){const P=(0,p.cg1)(_),pe=st([P[p.wAp.DaysFormat],P[p.wAp.DaysStandalone]],S);return st(pe,v)}(S,W,P)[_.getDay()];case Ke.DayPeriods:const we=_.getHours(),Qe=_.getMinutes();if(pe){const jt=function Fe(_){const S=(0,p.cg1)(_);return _e(S),(S[p.wAp.ExtraData][2]||[]).map(P=>"string"==typeof P?ct(P):[ct(P[0]),ct(P[1])])}(S),St=function Me(_,S,v){const P=(0,p.cg1)(_);_e(P);const pe=st([P[p.wAp.ExtraData][0],P[p.wAp.ExtraData][1]],S)||[];return st(pe,v)||[]}(S,W,P),Bt=jt.findIndex(fn=>{if(Array.isArray(fn)){const[tn,un]=fn,Br=we>=tn.hours&&Qe>=tn.minutes,ar=we<un.hours||we===un.hours&&Qe<un.minutes;if(tn.hours<un.hours){if(Br&&ar)return!0}else if(Br||ar)return!0}else if(fn.hours===we&&fn.minutes===Qe)return!0;return!1});if(-1!==Bt)return St[Bt]}return function Xt(_,S,v){const P=(0,p.cg1)(_),pe=st([P[p.wAp.DayPeriodsFormat],P[p.wAp.DayPeriodsStandalone]],S);return st(pe,v)}(S,W,P)[we<12?0:1];case Ke.Eras:return function kt(_,S){return st((0,p.cg1)(_)[p.wAp.Eras],S)}(S,P)[_.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${v}`)}}(W,pe,_,S,v,P)}}function kn(_){return function(S,v,P){const W=-1*P,pe=Pe(v,Ue.MinusSign),we=W>0?Math.floor(W/60):Math.ceil(W/60);switch(_){case Be.Short:return(W>=0?"+":"")+on(we,2,pe)+on(Math.abs(W%60),2,pe);case Be.ShortGMT:return"GMT"+(W>=0?"+":"")+on(we,1,pe);case Be.Long:return"GMT"+(W>=0?"+":"")+on(we,2,pe)+":"+on(Math.abs(W%60),2,pe);case Be.Extended:return 0===P?"Z":(W>=0?"+":"")+on(we,2,pe)+":"+on(Math.abs(W%60),2,pe);default:throw new Error(`Unknown zone width "${_}"`)}}}function Gn(_){return ln(_.getFullYear(),_.getMonth(),_.getDate()+(4-_.getDay()))}function Nr(_,S=!1){return function(v,P){let W;if(S){const pe=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,we=v.getDate();W=1+Math.floor((we+pe)/7)}else{const pe=Gn(v),we=function Dr(_){const S=ln(_,0,1).getDay();return ln(_,0,1+(S<=4?4:11)-S)}(pe.getFullYear()),Qe=pe.getTime()-we.getTime();W=1+Math.round(Qe/6048e5)}return on(W,_,Pe(P,Ue.MinusSign))}}function nr(_,S=!1){return function(v,P){return on(Gn(v).getFullYear(),_,Pe(P,Ue.MinusSign),S)}}const Kn={};function Cn(_,S){_=_.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+_)/6e4;return isNaN(v)?S:v}function O(_){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 en{}let br=(()=>{class _ extends en{constructor(v){super(),this.locale=v}getPluralCategory(v,P){switch(X(P||this.locale)(v)){case xt.Zero:return"zero";case xt.One:return"one";case xt.Two:return"two";case xt.Few:return"few";case xt.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 P=v.indexOf("="),[W,pe]=-1==P?[v,""]:[v.slice(0,P),v.slice(P+1)];if(W.trim()===S)return decodeURIComponent(pe)}return null}let ir=(()=>{class _{constructor(v,P,W,pe){this._iterableDiffers=v,this._keyValueDiffers=P,this._ngEl=W,this._renderer=pe,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(P=>this._toggleClass(P.key,P.currentValue)),v.forEachChangedItem(P=>this._toggleClass(P.key,P.currentValue)),v.forEachRemovedItem(P=>{P.previousValue&&this._toggleClass(P.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(P=>{if("string"!=typeof P.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,p.AaK)(P.item)}`);this._toggleClass(P.item,!0)}),v.forEachRemovedItem(P=>this._toggleClass(P.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(P=>this._toggleClass(P,!0)):Object.keys(v).forEach(P=>this._toggleClass(P,!!v[P])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(P=>this._toggleClass(P,!1)):Object.keys(v).forEach(P=>this._toggleClass(P,!1)))}_toggleClass(v,P){(v=v.trim())&&v.split(/\s+/g).forEach(W=>{P?this._renderer.addClass(this._ngEl.nativeElement,W):this._renderer.removeClass(this._ngEl.nativeElement,W)})}}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 P=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(v.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const we=P.get(p.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(we.injector)}else this._moduleRef=null;const pe=(this._moduleRef?this._moduleRef.componentFactoryResolver:P.get(p._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(pe,this._viewContainerRef.length,P,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,P,W){this.$implicit=S,this.ngForOf=v,this.index=P,this.count=W}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 vn=(()=>{class _{constructor(v,P,W){this._viewContainer=v,this._template=P,this._differs=W,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 P=this._viewContainer;v.forEachOperation((W,pe,we)=>{if(null==W.previousIndex)P.createEmbeddedView(this._template,new Wn(W.item,this._ngForOf,-1,-1),null===we?void 0:we);else if(null==we)P.remove(null===pe?void 0:pe);else if(null!==pe){const Qe=P.get(pe);P.move(Qe,we),pr(Qe,W)}});for(let W=0,pe=P.length;W<pe;W++){const Qe=P.get(W).context;Qe.index=W,Qe.count=pe,Qe.ngForOf=this._ngForOf}v.forEachIdentityChange(W=>{pr(P.get(W.currentIndex),W)})}static ngTemplateContextGuard(v,P){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 zt=(()=>{class _{constructor(v,P){this._viewContainer=v,this._context=new Gt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=P}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,P){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 Gt{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 An=(()=>{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 P=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||P,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),P}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let P=0;P<this._defaultViews.length;P++)this._defaultViews[P].enforceState(v)}}}return _.\u0275fac=function(v){return new(v||_)},_.\u0275dir=p.lG2({type:_,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),_})(),In=(()=>{class _{constructor(v,P,W){this.ngSwitch=W,W._addCase(),this._view=new gr(v,P)}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(An,9))},_.\u0275dir=p.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),_})(),Cr=(()=>{class _{constructor(v,P,W){W._addDefault(new gr(v,P))}}return _.\u0275fac=function(v){return new(v||_)(p.Y36(p.s_b),p.Y36(p.Rgc),p.Y36(An,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 P=this._viewContainerRef;this._viewRef&&P.remove(P.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?P.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:P=>{throw P}})}dispose(S){S.unsubscribe()}onDestroy(S){S.unsubscribe()}}class or{createSubscription(S,v){return S.then(v,P=>{throw P})}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,P=>this._updateLatestValue(v,P))}_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,P){v===this._obj&&(this._latestValue=P,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,P){this.locale=v,this.defaultTimezone=P}transform(v,P="mediumDate",W,pe){var we;if(null==v||""===v||v!=v)return null;try{return vt(v,P,pe||this.locale,null!==(we=null!=W?W:this.defaultTimezone)&&void 0!==we?we:void 0)}catch(Qe){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,P,W){if(!function xn(_){return!(null==_||""===_||_!=_)}(v))return null;W=W||this._locale;try{return function At(_,S,v){return function Er(_,S,v,P,W,pe,we=!1){let Qe="",Qt=!1;if(isFinite(_)){let jt=function Yn(_){let P,W,pe,we,Qe,S=Math.abs(_)+"",v=0;for((W=S.indexOf("."))>-1&&(S=S.replace(".","")),(pe=S.search(/e/i))>0?(W<0&&(W=pe),W+=+S.slice(pe+1),S=S.substring(0,pe)):W<0&&(W=S.length),pe=0;"0"===S.charAt(pe);pe++);if(pe===(Qe=S.length))P=[0],W=1;else{for(Qe--;"0"===S.charAt(Qe);)Qe--;for(W-=pe,P=[],we=0;pe<=Qe;pe++,we++)P[we]=Number(S.charAt(pe))}return W>22&&(P=P.splice(0,21),v=W-1,W=1),{digits:P,exponent:v,integerLen:W}}(_);we&&(jt=function Ln(_){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),_}(jt));let St=S.minInt,Bt=S.minFrac,fn=S.maxFrac;if(pe){const jr=pe.match(A);if(null===jr)throw new Error(`${pe} is not a valid digit info`);const qr=jr[1],Os=jr[3],Ps=jr[5];null!=qr&&(St=Qn(qr)),null!=Os&&(Bt=Qn(Os)),null!=Ps?fn=Qn(Ps):null!=Os&&Bt>fn&&(fn=Bt)}!function gn(_,S,v){if(S>v)throw new Error(`The minimum number of digits after fraction (${S}) is higher than the maximum (${v}).`);let P=_.digits,W=P.length-_.integerLen;const pe=Math.min(Math.max(S,W),v);let we=pe+_.integerLen,Qe=P[we];if(we>0){P.splice(Math.max(_.integerLen,we));for(let Bt=we;Bt<P.length;Bt++)P[Bt]=0}else{W=Math.max(0,W),_.integerLen=1,P.length=Math.max(1,we=pe+1),P[0]=0;for(let Bt=1;Bt<we;Bt++)P[Bt]=0}if(Qe>=5)if(we-1<0){for(let Bt=0;Bt>we;Bt--)P.unshift(0),_.integerLen++;P.unshift(1),_.integerLen++}else P[we-1]++;for(;W<Math.max(0,pe);W++)P.push(0);let Qt=0!==pe;const jt=S+_.integerLen,St=P.reduceRight(function(Bt,fn,tn,un){return un[tn]=(fn+=Bt)<10?fn:fn-10,Qt&&(0===un[tn]&&tn>=jt?un.pop():Qt=!1),fn>=10?1:0},0);St&&(P.unshift(St),_.integerLen++)}(jt,Bt,fn);let tn=jt.digits,un=jt.integerLen;const Br=jt.exponent;let ar=[];for(Qt=tn.every(jr=>!jr);un<St;un++)tn.unshift(0);for(;un<0;un++)tn.unshift(0);un>0?ar=tn.splice(un,tn.length):(ar=tn,tn=[0]);const pt=[];for(tn.length>=S.lgSize&&pt.unshift(tn.splice(-S.lgSize,tn.length).join(""));tn.length>S.gSize;)pt.unshift(tn.splice(-S.gSize,tn.length).join(""));tn.length&&pt.unshift(tn.join("")),Qe=pt.join(Pe(v,P)),ar.length&&(Qe+=Pe(v,W)+ar.join("")),Br&&(Qe+=Pe(v,Ue.Exponential)+"+"+Br)}else Qe=Pe(v,Ue.Infinity);return Qe=_<0&&!Qt?S.negPre+Qe+S.negSuf:S.posPre+Qe+S.posSuf,Qe}(_,function qt(_,S="-"){const v={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},P=_.split(";"),W=P[0],pe=P[1],we=-1!==W.indexOf(".")?W.split("."):[W.substring(0,W.lastIndexOf("0")+1),W.substring(W.lastIndexOf("0")+1)],Qe=we[0],Qt=we[1]||"";v.posPre=Qe.substr(0,Qe.indexOf("#"));for(let St=0;St<Qt.length;St++){const Bt=Qt.charAt(St);"0"===Bt?v.minFrac=v.maxFrac=St+1:"#"===Bt?v.maxFrac=St+1:v.posSuf+=Bt}const jt=Qe.split(",");if(v.gSize=jt[1]?jt[1].length:0,v.lgSize=jt[2]||jt[1]?(jt[2]||jt[1]).length:0,pe){const St=W.length-v.posPre.length-v.posSuf.length,Bt=pe.indexOf("#");v.negPre=pe.substr(0,Bt).replace(/'/g,""),v.negSuf=pe.substr(Bt+St).replace(/'/g,"")}else v.negPre=S+v.posPre,v.negSuf=v.posSuf;return v}(function q(_,S){return(0,p.cg1)(_)[p.wAp.NumberFormats][S]}(S,ht.Decimal),Pe(S,Ue.MinusSign)),S,Ue.Group,Ue.Decimal,v)}(function Yr(_){if("string"==typeof _&&!isNaN(Number(_)-parseFloat(_)))return Number(_);if("number"!=typeof _)throw new Error(`${_} is not a number`);return _}(v),W,P)}catch(pe){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:en,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)(Z),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 P=_.createTreeWalker(_.body,NodeFilter.SHOW_ELEMENT);let W=P.currentNode;for(;W;){const pe=W.shadowRoot;if(pe){const we=pe.getElementById(S)||pe.querySelector(`[name="${S}"]`);if(we)return we}W=P.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(),P=v.left+this.window.pageXOffset,W=v.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(P-pe[0],W-pe[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 an{}},520:(Ye,fe,M)=>{M.d(fe,{TP:()=>Nt,eN:()=>Ue,JF:()=>st,WM:()=>U});var p=M(9808),m=M(5e3),se=M(1086),le=M(2916),B=M(1406),N=M(2198),Z=M(4850);class Q{}class oe{}class U{constructor($){this.normalizedNames=new Map,this.lazyUpdate=null,$?this.lazyInit="string"==typeof $?()=>{this.headers=new Map,$.split("\n").forEach(k=>{const Ie=k.indexOf(":");if(Ie>0){const Ce=k.slice(0,Ie),Be=Ce.toLowerCase(),Ne=k.slice(Ie+1).trim();this.maybeSetNormalizedName(Ce,Be),this.headers.has(Be)?this.headers.get(Be).push(Ne):this.headers.set(Be,[Ne])}})}:()=>{this.headers=new Map,Object.keys($).forEach(k=>{let Ie=$[k];const Ce=k.toLowerCase();"string"==typeof Ie&&(Ie=[Ie]),Ie.length>0&&(this.headers.set(Ce,Ie),this.maybeSetNormalizedName(k,Ce))})}:this.headers=new Map}has($){return this.init(),this.headers.has($.toLowerCase())}get($){this.init();const k=this.headers.get($.toLowerCase());return k&&k.length>0?k[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll($){return this.init(),this.headers.get($.toLowerCase())||null}append($,k){return this.clone({name:$,value:k,op:"a"})}set($,k){return this.clone({name:$,value:k,op:"s"})}delete($,k){return this.clone({name:$,value:k,op:"d"})}maybeSetNormalizedName($,k){this.normalizedNames.has(k)||this.normalizedNames.set(k,$)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach($=>this.applyUpdate($)),this.lazyUpdate=null))}copyFrom($){$.init(),Array.from($.headers.keys()).forEach(k=>{this.headers.set(k,$.headers.get(k)),this.normalizedNames.set(k,$.normalizedNames.get(k))})}clone($){const k=new U;return k.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,k.lazyUpdate=(this.lazyUpdate||[]).concat([$]),k}applyUpdate($){const k=$.name.toLowerCase();switch($.op){case"a":case"s":let Ie=$.value;if("string"==typeof Ie&&(Ie=[Ie]),0===Ie.length)return;this.maybeSetNormalizedName($.name,k);const Ce=("a"===$.op?this.headers.get(k):void 0)||[];Ce.push(...Ie),this.headers.set(k,Ce);break;case"d":const Be=$.value;if(Be){let Ne=this.headers.get(k);if(!Ne)return;Ne=Ne.filter(Ke=>-1===Be.indexOf(Ke)),0===Ne.length?(this.headers.delete(k),this.normalizedNames.delete(k)):this.headers.set(k,Ne)}else this.headers.delete(k),this.normalizedNames.delete(k)}}forEach($){this.init(),Array.from(this.normalizedNames.keys()).forEach(k=>$(this.normalizedNames.get(k),this.headers.get(k)))}}class V{encodeKey($){return ye($)}encodeValue($){return ye($)}decodeKey($){return decodeURIComponent($)}decodeValue($){return decodeURIComponent($)}}const ce=/%(\d[a-f0-9])/gi,Oe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ye(ge){return encodeURIComponent(ge).replace(ce,($,k)=>{var Ie;return null!==(Ie=Oe[k])&&void 0!==Ie?Ie:$})}function Ae(ge){return`${ge}`}class Te{constructor($={}){if(this.updates=null,this.cloneFrom=null,this.encoder=$.encoder||new V,$.fromString){if($.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function K(ge,$){const k=new Map;return ge.length>0&&ge.replace(/^\?/,"").split("&").forEach(Ce=>{const Be=Ce.indexOf("="),[Ne,Ke]=-1==Be?[$.decodeKey(Ce),""]:[$.decodeKey(Ce.slice(0,Be)),$.decodeValue(Ce.slice(Be+1))],vt=k.get(Ne)||[];vt.push(Ke),k.set(Ne,vt)}),k}($.fromString,this.encoder)}else $.fromObject?(this.map=new Map,Object.keys($.fromObject).forEach(k=>{const Ie=$.fromObject[k];this.map.set(k,Array.isArray(Ie)?Ie:[Ie])})):this.map=null}has($){return this.init(),this.map.has($)}get($){this.init();const k=this.map.get($);return k?k[0]:null}getAll($){return this.init(),this.map.get($)||null}keys(){return this.init(),Array.from(this.map.keys())}append($,k){return this.clone({param:$,value:k,op:"a"})}appendAll($){const k=[];return Object.keys($).forEach(Ie=>{const Ce=$[Ie];Array.isArray(Ce)?Ce.forEach(Be=>{k.push({param:Ie,value:Be,op:"a"})}):k.push({param:Ie,value:Ce,op:"a"})}),this.clone(k)}set($,k){return this.clone({param:$,value:k,op:"s"})}delete($,k){return this.clone({param:$,value:k,op:"d"})}toString(){return this.init(),this.keys().map($=>{const k=this.encoder.encodeKey($);return this.map.get($).map(Ie=>k+"="+this.encoder.encodeValue(Ie)).join("&")}).filter($=>""!==$).join("&")}clone($){const k=new Te({encoder:this.encoder});return k.cloneFrom=this.cloneFrom||this,k.updates=(this.updates||[]).concat($),k}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach($=>this.map.set($,this.cloneFrom.map.get($))),this.updates.forEach($=>{switch($.op){case"a":case"s":const k=("a"===$.op?this.map.get($.param):void 0)||[];k.push(Ae($.value)),this.map.set($.param,k);break;case"d":if(void 0===$.value){this.map.delete($.param);break}{let Ie=this.map.get($.param)||[];const Ce=Ie.indexOf(Ae($.value));-1!==Ce&&Ie.splice(Ce,1),Ie.length>0?this.map.set($.param,Ie):this.map.delete($.param)}}}),this.cloneFrom=this.updates=null)}}class Le{constructor(){this.map=new Map}set($,k){return this.map.set($,k),this}get($){return this.map.has($)||this.map.set($,$.defaultValue()),this.map.get($)}delete($){return this.map.delete($),this}has($){return this.map.has($)}keys(){return this.map.keys()}}function je(ge){return"undefined"!=typeof ArrayBuffer&&ge instanceof ArrayBuffer}function be(ge){return"undefined"!=typeof Blob&&ge instanceof Blob}function ze(ge){return"undefined"!=typeof FormData&&ge instanceof FormData}class Zt{constructor($,k,Ie,Ce){let Be;if(this.url=k,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=$.toUpperCase(),function tt(ge){switch(ge){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ce?(this.body=void 0!==Ie?Ie:null,Be=Ce):Be=Ie,Be&&(this.reportProgress=!!Be.reportProgress,this.withCredentials=!!Be.withCredentials,Be.responseType&&(this.responseType=Be.responseType),Be.headers&&(this.headers=Be.headers),Be.context&&(this.context=Be.context),Be.params&&(this.params=Be.params)),this.headers||(this.headers=new U),this.context||(this.context=new Le),this.params){const Ne=this.params.toString();if(0===Ne.length)this.urlWithParams=k;else{const Ke=k.indexOf("?");this.urlWithParams=k+(-1===Ke?"?":Ke<k.length-1?"&":"")+Ne}}else this.params=new Te,this.urlWithParams=k}serializeBody(){return null===this.body?null:je(this.body)||be(this.body)||ze(this.body)||function $t(ge){return"undefined"!=typeof URLSearchParams&&ge instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Te?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ze(this.body)?null:be(this.body)?this.body.type||null:je(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Te?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone($={}){var k;const Ie=$.method||this.method,Ce=$.url||this.url,Be=$.responseType||this.responseType,Ne=void 0!==$.body?$.body:this.body,Ke=void 0!==$.withCredentials?$.withCredentials:this.withCredentials,vt=void 0!==$.reportProgress?$.reportProgress:this.reportProgress;let ln=$.headers||this.headers,dt=$.params||this.params;const bn=null!==(k=$.context)&&void 0!==k?k:this.context;return void 0!==$.setHeaders&&(ln=Object.keys($.setHeaders).reduce((on,Et)=>on.set(Et,$.setHeaders[Et]),ln)),$.setParams&&(dt=Object.keys($.setParams).reduce((on,Et)=>on.set(Et,$.setParams[Et]),dt)),new Zt(Ie,Ce,Ne,{params:dt,headers:ln,context:bn,reportProgress:vt,responseType:Be,withCredentials:Ke})}}var Pt=(()=>((Pt=Pt||{})[Pt.Sent=0]="Sent",Pt[Pt.UploadProgress=1]="UploadProgress",Pt[Pt.ResponseHeader=2]="ResponseHeader",Pt[Pt.DownloadProgress=3]="DownloadProgress",Pt[Pt.Response=4]="Response",Pt[Pt.User=5]="User",Pt))();class ht{constructor($,k=200,Ie="OK"){this.headers=$.headers||new U,this.status=void 0!==$.status?$.status:k,this.statusText=$.statusText||Ie,this.url=$.url||null,this.ok=this.status>=200&&this.status<300}}class xt extends ht{constructor($={}){super($),this.type=Pt.ResponseHeader}clone($={}){return new xt({headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class Xe extends ht{constructor($={}){super($),this.type=Pt.Response,this.body=void 0!==$.body?$.body:null}clone($={}){return new Xe({body:void 0!==$.body?$.body:this.body,headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class ot extends ht{constructor($){super($,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${$.url||"(unknown url)"}`:`Http failure response for ${$.url||"(unknown url)"}: ${$.status} ${$.statusText}`,this.error=$.error||null}}function qe(ge,$){return{body:$,headers:ge.headers,context:ge.context,observe:ge.observe,params:ge.params,reportProgress:ge.reportProgress,responseType:ge.responseType,withCredentials:ge.withCredentials}}let Ue=(()=>{class ge{constructor(k){this.handler=k}request(k,Ie,Ce={}){let Be;if(k instanceof Zt)Be=k;else{let vt,ln;vt=Ce.headers instanceof U?Ce.headers:new U(Ce.headers),Ce.params&&(ln=Ce.params instanceof Te?Ce.params:new Te({fromObject:Ce.params})),Be=new Zt(k,Ie,void 0!==Ce.body?Ce.body:null,{headers:vt,context:Ce.context,params:ln,reportProgress:Ce.reportProgress,responseType:Ce.responseType||"json",withCredentials:Ce.withCredentials})}const Ne=(0,se.of)(Be).pipe((0,B.b)(vt=>this.handler.handle(vt)));if(k instanceof Zt||"events"===Ce.observe)return Ne;const Ke=Ne.pipe((0,N.h)(vt=>vt instanceof Xe));switch(Ce.observe||"body"){case"body":switch(Be.responseType){case"arraybuffer":return Ke.pipe((0,Z.U)(vt=>{if(null!==vt.body&&!(vt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return vt.body}));case"blob":return Ke.pipe((0,Z.U)(vt=>{if(null!==vt.body&&!(vt.body instanceof Blob))throw new Error("Response is not a Blob.");return vt.body}));case"text":return Ke.pipe((0,Z.U)(vt=>{if(null!==vt.body&&"string"!=typeof vt.body)throw new Error("Response is not a string.");return vt.body}));default:return Ke.pipe((0,Z.U)(vt=>vt.body))}case"response":return Ke;default:throw new Error(`Unreachable: unhandled observe type ${Ce.observe}}`)}}delete(k,Ie={}){return this.request("DELETE",k,Ie)}get(k,Ie={}){return this.request("GET",k,Ie)}head(k,Ie={}){return this.request("HEAD",k,Ie)}jsonp(k,Ie){return this.request("JSONP",k,{params:(new Te).append(Ie,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(k,Ie={}){return this.request("OPTIONS",k,Ie)}patch(k,Ie,Ce={}){return this.request("PATCH",k,qe(Ce,Ie))}post(k,Ie,Ce={}){return this.request("POST",k,qe(Ce,Ie))}put(k,Ie,Ce={}){return this.request("PUT",k,qe(Ce,Ie))}}return ge.\u0275fac=function(k){return new(k||ge)(m.LFG(Q))},ge.\u0275prov=m.Yz7({token:ge,factory:ge.\u0275fac}),ge})();class Fn{constructor($,k){this.next=$,this.interceptor=k}handle($){return this.interceptor.intercept($,this.next)}}const Nt=new m.OlP("HTTP_INTERCEPTORS");let Xt=(()=>{class ge{intercept(k,Ie){return Ie.handle(k)}}return ge.\u0275fac=function(k){return new(k||ge)},ge.\u0275prov=m.Yz7({token:ge,factory:ge.\u0275fac}),ge})();const ue=/^\)\]\}',?\n/;let q=(()=>{class ge{constructor(k){this.xhrFactory=k}handle(k){if("JSONP"===k.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new le.y(Ie=>{const Ce=this.xhrFactory.build();if(Ce.open(k.method,k.urlWithParams),k.withCredentials&&(Ce.withCredentials=!0),k.headers.forEach((Et,Ge)=>Ce.setRequestHeader(Et,Ge.join(","))),k.headers.has("Accept")||Ce.setRequestHeader("Accept","application/json, text/plain, */*"),!k.headers.has("Content-Type")){const Et=k.detectContentTypeHeader();null!==Et&&Ce.setRequestHeader("Content-Type",Et)}if(k.responseType){const Et=k.responseType.toLowerCase();Ce.responseType="json"!==Et?Et:"text"}const Be=k.serializeBody();let Ne=null;const Ke=()=>{if(null!==Ne)return Ne;const Et=1223===Ce.status?204:Ce.status,Ge=Ce.statusText||"OK",Ht=new U(Ce.getAllResponseHeaders()),yt=function Pe(ge){return"responseURL"in ge&&ge.responseURL?ge.responseURL:/^X-Request-URL:/m.test(ge.getAllResponseHeaders())?ge.getResponseHeader("X-Request-URL"):null}(Ce)||k.url;return Ne=new xt({headers:Ht,status:Et,statusText:Ge,url:yt}),Ne},vt=()=>{let{headers:Et,status:Ge,statusText:Ht,url:yt}=Ke(),Mt=null;204!==Ge&&(Mt=void 0===Ce.response?Ce.responseText:Ce.response),0===Ge&&(Ge=Mt?200:0);let kn=Ge>=200&&Ge<300;if("json"===k.responseType&&"string"==typeof Mt){const dn=Mt;Mt=Mt.replace(ue,"");try{Mt=""!==Mt?JSON.parse(Mt):null}catch(mn){Mt=dn,kn&&(kn=!1,Mt={error:mn,text:Mt})}}kn?(Ie.next(new Xe({body:Mt,headers:Et,status:Ge,statusText:Ht,url:yt||void 0})),Ie.complete()):Ie.error(new ot({error:Mt,headers:Et,status:Ge,statusText:Ht,url:yt||void 0}))},ln=Et=>{const{url:Ge}=Ke(),Ht=new ot({error:Et,status:Ce.status||0,statusText:Ce.statusText||"Unknown Error",url:Ge||void 0});Ie.error(Ht)};let dt=!1;const bn=Et=>{dt||(Ie.next(Ke()),dt=!0);let Ge={type:Pt.DownloadProgress,loaded:Et.loaded};Et.lengthComputable&&(Ge.total=Et.total),"text"===k.responseType&&!!Ce.responseText&&(Ge.partialText=Ce.responseText),Ie.next(Ge)},on=Et=>{let Ge={type:Pt.UploadProgress,loaded:Et.loaded};Et.lengthComputable&&(Ge.total=Et.total),Ie.next(Ge)};return Ce.addEventListener("load",vt),Ce.addEventListener("error",ln),Ce.addEventListener("timeout",ln),Ce.addEventListener("abort",ln),k.reportProgress&&(Ce.addEventListener("progress",bn),null!==Be&&Ce.upload&&Ce.upload.addEventListener("progress",on)),Ce.send(Be),Ie.next({type:Pt.Sent}),()=>{Ce.removeEventListener("error",ln),Ce.removeEventListener("abort",ln),Ce.removeEventListener("load",vt),Ce.removeEventListener("timeout",ln),k.reportProgress&&(Ce.removeEventListener("progress",bn),null!==Be&&Ce.upload&&Ce.upload.removeEventListener("progress",on)),Ce.readyState!==Ce.DONE&&Ce.abort()}})}}return ge.\u0275fac=function(k){return new(k||ge)(m.LFG(p.JF))},ge.\u0275prov=m.Yz7({token:ge,factory:ge.\u0275fac}),ge})();const de=new m.OlP("XSRF_COOKIE_NAME"),H=new m.OlP("XSRF_HEADER_NAME");class ne{}let re=(()=>{class ge{constructor(k,Ie,Ce){this.doc=k,this.platform=Ie,this.cookieName=Ce,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const k=this.doc.cookie||"";return k!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,p.Mx)(k,this.cookieName),this.lastCookieString=k),this.lastToken}}return ge.\u0275fac=function(k){return new(k||ge)(m.LFG(p.K0),m.LFG(m.Lbi),m.LFG(de))},ge.\u0275prov=m.Yz7({token:ge,factory:ge.\u0275fac}),ge})(),X=(()=>{class ge{constructor(k,Ie){this.tokenService=k,this.headerName=Ie}intercept(k,Ie){const Ce=k.url.toLowerCase();if("GET"===k.method||"HEAD"===k.method||Ce.startsWith("http://")||Ce.startsWith("https://"))return Ie.handle(k);const Be=this.tokenService.getToken();return null!==Be&&!k.headers.has(this.headerName)&&(k=k.clone({headers:k.headers.set(this.headerName,Be)})),Ie.handle(k)}}return ge.\u0275fac=function(k){return new(k||ge)(m.LFG(ne),m.LFG(H))},ge.\u0275prov=m.Yz7({token:ge,factory:ge.\u0275fac}),ge})(),_e=(()=>{class ge{constructor(k,Ie){this.backend=k,this.injector=Ie,this.chain=null}handle(k){if(null===this.chain){const Ie=this.injector.get(Nt,[]);this.chain=Ie.reduceRight((Ce,Be)=>new Fn(Ce,Be),this.backend)}return this.chain.handle(k)}}return ge.\u0275fac=function(k){return new(k||ge)(m.LFG(oe),m.LFG(m.zs3))},ge.\u0275prov=m.Yz7({token:ge,factory:ge.\u0275fac}),ge})(),xe=(()=>{class ge{static disable(){return{ngModule:ge,providers:[{provide:X,useClass:Xt}]}}static withOptions(k={}){return{ngModule:ge,providers:[k.cookieName?{provide:de,useValue:k.cookieName}:[],k.headerName?{provide:H,useValue:k.headerName}:[]]}}}return ge.\u0275fac=function(k){return new(k||ge)},ge.\u0275mod=m.oAB({type:ge}),ge.\u0275inj=m.cJS({providers:[X,{provide:Nt,useExisting:X,multi:!0},{provide:ne,useClass:re},{provide:de,useValue:"XSRF-TOKEN"},{provide:H,useValue:"X-XSRF-TOKEN"}]}),ge})(),st=(()=>{class ge{}return ge.\u0275fac=function(k){return new(k||ge)},ge.\u0275mod=m.oAB({type:ge}),ge.\u0275inj=m.cJS({providers:[Ue,{provide:Q,useClass:_e},q,{provide:oe,useExisting:q}],imports:[[xe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ge})()},5e3:(Ye,fe,M)=>{M.d(fe,{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:()=>Me,OlP:()=>Dn,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:()=>Mn,tp0:()=>Ri,Rgc:()=>Wo,dDg:()=>fg,GfV:()=>lp,i9L:()=>Lg,s_b:()=>Fa,ifc:()=>Be,eFA:()=>gg,G48:()=>wb,Gpc:()=>V,f3M:()=>Zg,_c5:()=>Vb,VLi:()=>gb,c2e:()=>lg,zSh:()=>Vl,wAp:()=>_t,vHH:()=>ye,EiD:()=>kc,mCW:()=>Co,qzn:()=>ki,JVY:()=>mm,pB0:()=>Dm,eBb:()=>vm,L6k:()=>ym,LAX:()=>_m,cg1:()=>bu,kL8:()=>Ph,yhl:()=>Ac,dqk:()=>dt,sIi:()=>Ro,CqO:()=>Hf,QGY:()=>au,F4k:()=>Uf,RDi:()=>li,AaK:()=>Q,z3N:()=>Ns,qOj:()=>Kl,TTD:()=>xn,_Bn:()=>sp,xp6:()=>yd,uIk:()=>ql,Tol:()=>ah,Gre:()=>Eh,ekj:()=>gu,Suo:()=>kp,Xpm:()=>Gn,lG2:()=>Y,Yz7:()=>me,cJS:()=>ue,oAB:()=>Cn,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:()=>Nn,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:()=>bt,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),se=M(2916),le=M(6787),B=M(2474);function N(e){for(let t in e)if(e[t]===N)return t;throw Error("Could not find renamed property on target object.")}function Z(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Q(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Q).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function oe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const U=N({__forward_ref__:N});function V(e){return e.__forward_ref__=V,e.toString=function(){return Q(this())},e}function K(e){return ce(e)?e():e}function ce(e){return"function"==typeof e&&e.hasOwnProperty(U)&&e.__forward_ref__===V}class ye extends Error{constructor(t,n){super(function Ae(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Te(e){return"string"==typeof e?e:null==e?"":String(e)}function $e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Te(e)}function be(e,t){const n=t?` in ${t}`:"";throw new ye(-201,`No provider for ${$e(e)} found${n}`)}function Yt(e,t){null==e&&function at(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function me(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function Pe(e){return q(e,re)||q(e,_e)}function q(e,t){return e.hasOwnProperty(t)?e[t]:null}function ne(e){return e&&(e.hasOwnProperty(X)||e.hasOwnProperty(Fe))?e[X]:null}const re=N({\u0275prov:N}),X=N({\u0275inj:N}),_e=N({ngInjectableDef:N}),Fe=N({ngInjectorDef:N});var Me=(()=>((Me=Me||{})[Me.Default=0]="Default",Me[Me.Host=1]="Host",Me[Me.Self=2]="Self",Me[Me.SkipSelf=4]="SkipSelf",Me[Me.Optional=8]="Optional",Me))();let xe;function ct(e){const t=xe;return xe=e,t}function lt(e,t,n){const r=Pe(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Me.Optional?null:void 0!==t?t:void be(Q(e),"Injector")}function $(e){return{toString:e}.toString()}var k=(()=>((k=k||{})[k.OnPush=0]="OnPush",k[k.Default=1]="Default",k))(),Be=(()=>{return(e=Be||(Be={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Be;var e})();const Ne="undefined"!=typeof globalThis&&globalThis,Ke="undefined"!=typeof window&&window,vt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,dt=Ne||"undefined"!=typeof global&&global||Ke||vt,Et={},Ge=[],Ht=N({\u0275cmp:N}),yt=N({\u0275dir:N}),Mt=N({\u0275pipe:N}),kn=N({\u0275mod:N}),dn=N({\u0275fac:N}),mn=N({__NG_ELEMENT_ID__:N});let Dr=0;function Gn(e){return $(()=>{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===k.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ge,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Be.Emulated,id:"c",styles:e.styles||Ge,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,l=e.pipes;return r.id+=Dr++,r.inputs=ae(e.inputs,n),r.outputs=ae(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 O(e)||function A(e){return e[yt]||null}(e)}function Kn(e){return function ee(e){return e[Mt]||null}(e)}const rr={};function Cn(e){return $(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ge,declarations:e.declarations||Ge,imports:e.imports||Ge,exports:e.exports||Ge,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(rr[e.id]=e.type),t})}function bt(e,t){return $(()=>{const n=We(e,!0);n.declarations=t.declarations||Ge,n.imports=t.imports||Ge,n.exports=t.exports||Ge})}function ae(e,t){if(null==e)return Et;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 Y=Gn;function b(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function O(e){return e[Ht]||null}function We(e,t){const n=e[kn]||null;if(!n&&!0===t)throw new Error(`Type ${Q(e)} does not have '\u0275mod' property.`);return n}function An(e){return Array.isArray(e)&&"object"==typeof e[1]}function In(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 On(e){return null!==e.template}function Kr(e){return 0!=(512&e[2])}function Tr(e,t){return e.hasOwnProperty(dn)?e[dn]:null}class cs{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function xn(){return Yr}function Yr(e){return e.type.prototype.ngOnChanges&&(e.setInput=Us),qn}function qn(){const e=As(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Et)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:Et,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===Et),e[r]=t}xn.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 an(e){return!!e.listen}const _={createRenderer:(e,t)=>Lr()};function v(e){for(;Array.isArray(e);)e=e[0];return e}function pe(e,t){return v(t[e])}function we(e,t){return v(t[e.index])}function Qt(e,t){return e.data[t]}function jt(e,t){return e[t]}function St(e,t){const n=t[e];return An(n)?n:n[0]}function Bt(e){return 4==(4&e[2])}function fn(e){return 128==(128&e[2])}function un(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 pt={lFrame:Ze(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function zs(){return pt.bindingsEnabled}function o(){return pt.lFrame.lView}function f(){return pt.lFrame.tView}function C(e){return pt.lFrame.contextLView=e,e[8]}function x(){let e=L();for(;null!==e&&64===e.type;)e=e.parent;return e}function L(){return pt.lFrame.currentTNode}function te(e,t){const n=pt.lFrame;n.currentTNode=e,n.isParent=t}function ve(){return pt.lFrame.isParent}function ke(){pt.lFrame.isParent=!1}function It(){return pt.isInCheckNoChangesMode}function it(e){pt.isInCheckNoChangesMode=e}function rt(){const e=pt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Tt(){return pt.lFrame.bindingIndex}function nn(){return pt.lFrame.bindingIndex++}function hn(e){const t=pt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function yr(e,t){const n=pt.lFrame;n.bindingIndex=n.bindingRootIndex=e,vr(t)}function vr(e){pt.lFrame.currentDirectiveIndex=e}function Jn(e){const t=pt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function lr(){return pt.lFrame.currentQueryIndex}function xs(e){pt.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&Me.SkipSelf){let s=t,i=e;for(;!(s=s.parent,null!==s||n&Me.Host||(s=fs(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;t=s,e=i}const r=pt.lFrame=ui();return r.currentTNode=t,r.lView=e,!0}function Rs(e){const t=ui(),n=e[1];pt.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=pt.lFrame,t=null===e?null:e.child;return null===t?Ze(e):t}function Ze(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 ut(){const e=pt.lFrame;return pt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gt=ut;function Rt(){const e=ut();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 Jt(){return pt.lFrame.selectedIndex}function Sn(e){pt.lFrame.selectedIndex=e}function Dt(){const e=pt.lFrame;return Qt(e.tView,e.selectedIndex)}function ci(){pt.lFrame.currentNamespace="svg"}function Nn(){!function Jr(){pt.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 Bn(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=an(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 Zo(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(mn)&&(r=n[mn]),null==r&&(r=n[mn]=sa++);const s=255&r;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function I(e,t,n){if(n&Me.Optional)return e;be(t,"NodeInjector")}function F(e,t,n,r){if(n&Me.Optional&&void 0===r&&(r=null),0==(n&(Me.Self|Me.Host))){const s=e[9],i=ct(void 0);try{return s?s.get(t,r,n&Me.Optional):lt(t,r,n&Me.Optional)}finally{ct(i)}}return I(r,t,n)}function G(e,t,n,r=Me.Default,s){if(null!==e){const i=function rn(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(mn)?e[mn]:void 0;return"number"==typeof t?t>=0?255&t:Je:t}(n);if("function"==typeof i){if(!Ur(t,e,r))return r&Me.Host?I(s,n,r):F(t,n,r,s);try{const l=i(r);if(null!=l||r&Me.Optional)return l;be(n)}finally{gt()}}else if("number"==typeof i){let l=null,d=c(e,t),g=-1,E=r&Me.Host?t[16][6]:null;for((-1===d||r&Me.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(qs(i,d,T.data)){const R=Vt(d,t,n,l,r,E);if(R!==De)return R}g=t[d+8],-1!==g&&Hr(r,t[1].data[d+8]===E)&&qs(i,d,t)?(l=T,d=Ys(g),t=Qs(g,t)):d=-1}}}return F(t,n,r,s)}const De={};function Je(){return new Xn(x(),o())}function Vt(e,t,n,r,s,i){const l=t[1],d=l.data[e+8],T=ft(d,l,n,null==r?Wr(d)&&ho:r!=l&&0!=(3&d.type),s&Me.Host&&i===d);return null!==T?Wt(t,l,T,d):De}function ft(e,t,n,r,s){const i=e.providerIndexes,l=t.data,d=1048575&i,g=e.directiveStart,T=i>>20,z=s?d+T:e.directiveEnd;for(let ie=r?d:d+T;ie<z;ie++){const Ee=l[ie];if(ie<g&&n===Ee||ie>=g&&Ee.type===n)return ie}if(s){const ie=l[g];if(ie&&On(ie)&&ie.type===n)return g}return null}function Wt(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 Le(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ye(-200,`Circular dependency in DI detected for ${e}${n}`)}($e(i[n]));const d=Ai(l.canSeeViewProviders);l.resolving=!0;const g=l.injectImpl?ct(l.injectImpl):null;Ur(e,r,Me.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&&ct(g),Ai(d),l.resolving=!1,gt()}}return s}function qs(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Hr(e,t){return!(e&Me.Self||e&Me.Host&&t)}class Xn{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return G(this._tNode,this._lView,t,r,n)}}function es(e){return $(()=>{const t=e.prototype.constructor,n=t[dn]||Zs(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const i=s[dn]||Zs(s);if(i&&i!==n)return i;s=Object.getPrototypeOf(s)}return i=>new i})}function Zs(e){return ce(e)?()=>{const t=Zs(K(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(Zo(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(i===t)return n[s+1];s+=2}}}return null}(x(),e)}const Js="__parameters__",Oi="__prop__metadata__";function Ga(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}function Pi(e,t,n){return $(()=>{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 R=g.hasOwnProperty(Js)?g[Js]:Object.defineProperty(g,Js,{value:[]})[Js];for(;R.length<=T;)R.push(null);return(R[T]=R[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 $(()=>{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 R=E.constructor,z=R.hasOwnProperty(Oi)?R[Oi]:Object.defineProperty(R,Oi,{value:{}})[Oi];z[T]=z.hasOwnProperty(T)&&z[T]||[],z[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 Dn{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=me({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Fg=new Dn("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 Or(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=N({provide:String,useValue:N});let _o;function _c(e){const t=_o;return _o=e,t}function qg(e,t=Me.Default){if(void 0===_o)throw new ye(203,"");return null===_o?lt(e,void 0,t):_o.get(e,t&Me.Optional?null:void 0,t)}function zn(e,t=Me.Default){return(function st(){return xe}()||qg)(K(e),t)}const Zg=zn;function qa(e){const t=[];for(let n=0;n<e.length;n++){const r=K(e[n]);if(Array.isArray(r)){if(0===r.length)throw new ye(900,"");let s,i=Me.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(Pi("Inject",e=>({token:e})),-1),hi=Do(Pi("Optional"),8),Ri=Do(Pi("SkipSelf"),4);let ua,ca;function Fi(e){var t;return(null===(t=function Ja(){if(void 0===ua&&(ua=null,dt.trustedTypes))try{ua=dt.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,dt.trustedTypes))try{ca=dt.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 Pc=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(Pc,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)&&!Pc.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 Om(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Mn=(()=>((Mn=Mn||{})[Mn.NONE=0]="NONE",Mn[Mn.HTML=1]="HTML",Mn[Mn.STYLE=2]="STYLE",Mn[Mn.SCRIPT=3]="SCRIPT",Mn[Mn.URL=4]="URL",Mn[Mn.RESOURCE_URL=5]="RESOURCE_URL",Mn))();function Lc(e){const t=To();return t?Tc(t.sanitize(Mn.HTML,e)||""):ki(e,"HTML")?Tc(Ns(e)):kc(Lr(),Te(e))}function sl(e){const t=To();return t?t.sanitize(Mn.URL,e)||"":ki(e,"URL")?Ns(e):Co(Te(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(dt))();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 In(t)?t[3]:t}function dl(e){return qc(e[13])}function fl(e){return qc(e[4])}function qc(e){for(;null!==e&&!In(e);)e=e[4];return e}function Bi(e,t,n,r,s){if(null!=r){let i,l=!1;In(r)?i=r:An(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){an(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(an(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];an(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(An(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)An(t)&&ml(t[1],t),t=t[3];null===t&&(t=e),An(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&&an(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&In(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===Be.None||s===Be.Emulated)return null}return we(r,n)}(e,t.parent,n)}function gi(e,t,n,r,s){an(e)?e.insertBefore(t,n,r,s):t.insertBefore(n,r,s)}function nd(e,t,n){an(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 an(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?we(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 we(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 In(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){an(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Dl(e,t,n){an(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(Zo(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 R=Cy(8&r?"class":g,s,pd(e),n);if(-1===R){if(ts(r))return!1;l=!0;continue}if(""!==E){let z;z=R>i?"":s[R+1].toLowerCase();const ie=8&r?z:null;if(ie&&-1!==fd(ie,E,0)||2&r&&E!==z){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 Ot={};function yd(e){vd(f(),o(),Jt()+e,It())}function vd(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Bn(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ci(t,i,0,n)}Sn(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 Oo(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=L(),l=ve(),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 Tn(){return pt.lFrame.inI18n}()&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=s;const l=function j(){const e=pt.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 Po(e,t,n){Rs(t);try{const r=e.viewQuery;null!==r&&Hl(1,r,n);const s=e.template;null!==s&&Od(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,Rt()}}function Hi(e,t,n,r){const s=t[2];if(256==(256&s))return;Rs(t);const i=It();try{Br(t),function cn(e){return pt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Od(e,t,n,2,r);const l=3==(3&s);if(!i)if(l){const E=e.preOrderCheckHooks;null!==E&&Bn(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];fn(r)&&Hi(s,r,s.template,r[8])}}(t),null!==e.contentQueries&&Id(e,t),!i)if(l){const E=e.contentCheckHooks;null!==E&&Bn(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)Sn(~s);else{const i=s,l=n[++r],d=n[++r];yr(l,i),d(2,t[i])}}}finally{Sn(-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&&Bn(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{Rt()}}function zy(e,t,n,r){const s=t[10],i=!It(),l=Bt(t);try{i&&!l&&s.begin&&s.begin(),l&&Po(e,t,r),Hi(e,t,n,r)}finally{i&&!l&&s.end&&s.end()}}function Od(e,t,n,r,s){const i=Jt(),l=2&r;try{Sn(-1),l&&t.length>20&&vd(e,t,20,It()),n(r,s)}finally{Sn(i)}}function Pd(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=On(g);E&&sv(t,n,g);const T=Wt(t,e,d,n);er(T,t),null!==l&&iv(0,d-s,T,g,0,l),E&&(St(n.index,t)[8]=T)}}(e,t,n,we(n,t)),128==(128&n.flags)&&function ev(e,t,n){const r=n.directiveStart,s=n.directiveEnd,l=n.index,d=function Rn(){return pt.lFrame.currentDirectiveIndex}();try{Sn(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{Sn(-1),vr(d)}}(e,t,n))}function Nl(e,t,n=we){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,R=T+s,z=function Gy(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ot);return n}(T,R),ie="function"==typeof E?E():E;return z[1]={type:e,blueprint:z,template:n,queries:null,viewQuery:d,declTNode:t,data:z.slice().fill(null,T),bindingStartIndex:T,expandoStartIndex:R,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:ie,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 Pr(e,t,n,r,s,i,l,d){const g=we(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=St(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,an(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),On(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 R=i[T];R.providersResolver&&R.providersResolver(R)}let d=!1,g=!1,E=Ui(e,t,i.length,null);for(let T=0;T<i.length;T++){const R=i[T];n.mergedAttrs=Mi(n.mergedAttrs,R.hostAttrs),Vd(e,n,t,E,R),rv(E,R,l),null!==R.contentQueries&&(n.flags|=8),(null!==R.hostBindings||null!==R.hostAttrs||0!==R.hostVars)&&(n.flags|=128);const z=R.type.prototype;!d&&(z.ngOnChanges||z.ngOnInit||z.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),d=!0),!g&&(z.ngOnChanges||z.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],R=T.inputs,z=null===i||pd(t)?null:ov(R,i);l.push(z),d=kd(R,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 ye(-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;On(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,On(s),null);e.blueprint[r]=l,n[r]=l,Bd(e,t,0,r,Ui(e,n,s.hostVars,Ot),s)}function sv(e,t,n){const r=we(t,e),s=xd(n),i=e[10],l=_a(e,Oo(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=we(e,t);!function kl(e,t,n,r,s,i,l){if(null==i)an(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const d=null==l?Te(i):l(i,r||"",s);an(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++],R=l[g++];null!==d?r.setInput(n,R,E,T):n[T]=R}}}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=St(t,e);if(fn(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=St(n[r],e);fn(s)&&s[5]>0&&Ll(s)}}function cv(e,t){const n=St(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),Po(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||On(e))&&(n=function P(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=pe(t,e);!function Zc(e,t,n){an(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=oe(s,d):2==i&&(r=oe(r,d+": "+t[++l]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}const Ea=new Dn("INJECTOR",-1);class qd{get(t,n=vo){if(n===vo){const r=new Error(`NullInjectorError: No provider for ${Q(t)}!`);throw r.name="NullInjectorError",r}return n}}const Vl=new Dn("Set Injector scope."),xo={},vv={};let $l;function Zd(){return void 0===$l&&($l=new qd),$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||Zd(),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:Q(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=vo,r=Me.Default){this.assertNotDestroyed();const s=_c(this),i=ct(void 0);try{if(!(r&Me.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 Dn}(t)&&Pe(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&Me.Self?Zd():this.parent).get(t,n=r&Me.Optional&&n===vo?null:n)}catch(l){if("NullInjectorError"===l.name){if((l[aa]=l[aa]||[]).unshift(Q(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=Q(t);if(Array.isArray(t))s=t.map(Q).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):Q(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{ct(i),_c(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,s)=>t.push(Q(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ye(205,"")}processInjectorType(t,n,r){if(!(t=K(t)))return!1;let s=ne(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=ne(i)),null==s)return!1;if(null!=s.imports&&!d){let T;r.push(l);try{ps(s.imports,R=>{this.processInjectorType(R,n,r)&&(void 0===T&&(T=[]),T.push(R))})}finally{}if(void 0!==T)for(let R=0;R<T.length;R++){const{ngModule:z,providers:ie}=T[R];ps(ie,Ee=>this.processProvider(Ee,z,ie||Ge))}}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,R=>this.processProvider(R,T,E))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let s=$i(t=K(t))?t:K(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=()=>qa(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=K(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function zl(e){const t=Pe(e),n=null!==t?t.factory:Tr(e);if(null!==n)return n;if(e instanceof Dn)throw new ye(204,"");if(e instanceof Function)return function Dv(e){const t=e.length;if(t>0)throw yo(t,"?"),new ye(204,"");const n=function de(e){const t=e&&(e[re]||e[_e]);if(t){const n=function H(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 ye(204,"")}function ef(e,t,n){let r;if($i(e)){const s=K(e);return Tr(s)||zl(s)}if(tf(e))r=()=>K(e.useValue);else if(function Cv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...qa(e.deps||[]));else if(function bv(e){return!(!e||!e.useExisting)}(e))r=()=>zn(K(e.useExisting));else{const s=K(e&&(e.useClass||e.provide));if(!function Tv(e){return!!e.deps}(e))return Tr(s)||zl(s);r=()=>new s(...qa(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 qd,e.\u0275prov=me({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(On(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ye(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),Z(e.inputs,s.inputs),Z(e.declaredInputs,s.declaredInputs),Z(e.outputs,s.outputs),On(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===Et?{}:e===Ge?[]: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=dt.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 ql(e,t,n,r){const s=o();return tr(s,nn(),t)&&(f(),vs(Dt(),s,e,t,n,r)),ql}function Wi(e,t,n,r){return tr(e,nn(),n)?t+Te(n)+r:Ot}function Ki(e,t,n,r,s,i){const d=mi(e,Tt(),n,s);return hn(2),d?t+Te(n)+r+Te(s)+i:Ot}function wf(e,t,n,r,s,i,l,d){const g=o(),E=f(),T=e+20,R=E.firstCreatePass?function Wv(e,t,n,r,s,i,l,d,g){const E=t.consts,T=ji(t,e,4,l||null,un(E,d));Fl(t,n,T,un(E,g)),hs(t,T);const R=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),R.queries=t.queries.embeddedTView(T)),T}(T,E,g,t,n,r,s,i,l):E.data[T];te(R,!1);const z=g[11].createComment("");ha(E,g,z,R),er(z,g),_a(g,g[T]=$d(z,g,z,R)),wr(R)&&Rl(E,g,R),null!=l&&Nl(g,R,d)}function Tf(e){return jt(function wt(){return pt.lFrame.contextLView}(),20+e)}function Fo(e,t=Me.Default){const n=o();return null===n?zn(e,t):G(x(),n,K(e),t)}function kf(){throw new Error("invalid")}function tu(e,t,n){const r=o();return tr(r,nn(),t)&&Pr(f(),Dt(),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 pt.lFrame.currentNamespace}()),E=i.firstCreatePass?function h_(e,t,n,r,s,i,l){const d=t.consts,E=ji(t,e,2,s,un(d,i));return Fl(t,n,E,un(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 R=E.classes;null!==R&&Dl(d,g,R);const z=E.styles;null!==z&&dd(d,g,z),64!=(64&E.flags)&&ha(i,s,g,E),0===function qr(){return pt.lFrame.elementDepthCount}()&&er(g,s),function Os(){pt.lFrame.elementDepthCount++}(),wr(E)&&(Rl(i,s,E),Pd(i,E,s)),null!==r&&Nl(s,E)}function su(){let e=x();ve()?ke():(e=e.parent,te(e,!1));const t=e;!function Ps(){pt.lFrame.elementDepthCount--}();const n=f();n.firstCreatePass&&(hs(n,e),Cr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qo(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=un(i,r),d=ji(t,e,8,"ng-container",l);return null!==l&&Da(d,l,!0),Fl(t,n,d,un(i,s)),null!==t.queries&&t.queries.elementStart(t,d),d}(i,s,r,t,n):s.data[i];te(l,!0);const d=r[i]=r[11].createComment("");ha(s,r,d,l),er(d,r),wr(l)&&(Rl(s,r,l),Pd(s,l,r)),null!=n&&Nl(r,l)}function ou(){let e=x();const t=f();ve()?ke():(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),R=t[8],z=Gd(t);let ie=!0;if(3&r.type||d){const Ve=we(r,t),et=d?d(Ve):Ve,Se=z.length,mt=d?Ut=>d(v(Ut[r.index])):r.index;if(an(n)){let Ut=null;if(!d&&g&&(Ut=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!==Ut)(Ut.__ngLastListenerFn__||Ut).__ngNextListenerFn__=i,Ut.__ngLastListenerFn__=i,ie=!1;else{i=cu(r,t,R,i,!1);const sn=n.listen(et,s,i);z.push(i,sn),T&&T.push(s,mt,Se,Se+1)}}else i=cu(r,t,R,i,!0),et.addEventListener(s,i,l),z.push(i),T&&T.push(s,mt,Se,l)}else i=cu(r,t,R,i,!1);const Ee=r.outputs;let Re;if(ie&&null!==Ee&&(Re=Ee[s])){const Ve=Re.length;if(Ve)for(let et=0;et<Ve;et+=2){const Rr=t[Re[et]][Re[et+1]].subscribe(i),_i=z.length;z.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?St(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 _n(e){return(pt.lFrame.contextLView=function _r(e,t){for(;e>0;)t=t[15],e--;return t}(e,pt.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),ke(),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!==Ot&&Pr(f(),Dt(),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!==Ot&&Pr(f(),Dt(),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 Un={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function th(e){return e.substring(Un.key,Un.keyEnd)}function nh(e,t){const n=Un.textEnd;return n===t?-1:(t=Un.keyEnd=function C_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Un.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(Or,Es,e,!0)}function Es(e,t){for(let n=function E_(e){return function sh(e){Un.key=0,Un.keyEnd=0,Un.value=0,Un.valueEnd=0,Un.textEnd=e.length}(e),nh(e,to(e,0,Un.textEnd))}(t);n>=0;n=nh(t,n))Or(e,th(t),!0)}function ss(e,t,n,r){const s=o(),i=f(),l=hn(2);i.firstUpdatePass&&uh(i,e,l,r),t!==Ot&&tr(s,l,t)&&dh(i,i.data[Jt()],s,s[11],e,s[l+1]=function R_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Q(Ns(e)))),e}(t,n),r,l)}function is(e,t,n,r){const s=f(),i=hn(2);s.firstUpdatePass&&uh(s,null,i,r);const l=o();if(n!==Ot&&tr(l,i,n)){const d=s.data[Jt()];if(hh(d,r)&&!lh(s,i)){let g=r?d.classesWithoutHost:d.stylesWithoutHost;null!==g&&(n=oe(g,n||"")),nu(s,d,l,n,r)}else!function x_(e,t,n,r,s,i,l,d){s===Ot&&(s=Ge);let g=0,E=0,T=0<s.length?s[0]:null,R=0<i.length?i[0]:null;for(;null!==T||null!==R;){const z=g<s.length?s[g+1]:void 0,ie=E<i.length?i[E+1]:void 0;let Re,Ee=null;T===R?(g+=2,E+=2,z!==ie&&(Ee=R,Re=ie)):null===R||null!==T&&T<R?(g+=2,Ee=T):(E+=2,Ee=R,Re=ie),null!==Ee&&dh(e,t,n,r,Ee,Re,l,d),T=g<s.length?s[g]:null,R=E<i.length?i[E]:null}}(s,d,l,l[11],l[i+1],l[i+1]=function P_(e,t,n){if(null==n||""===n)return Ge;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[Jt()],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 O_(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 R=n;T=R[1],(null===T||xi(R,T)>0)&&(E=!0)}else T=n;if(s)if(0!==g){const z=ns(e[d+1]);e[r+1]=ga(z,d),0!==z&&(e[z+1]=bl(e[z+1],r)),e[d+1]=function Py(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=ga(d,0),0!==d&&(e[d+1]=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]),Or(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=an(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,pe(Jt(),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,R=null===T;let z=n[s+1];z===Ot&&(z=R?Ge:void 0);let ie=R?Ka(z,r):T===r?z:void 0;if(E&&!Ta(ie)&&(ie=Ka(g,r)),Ta(ie)&&(d=ie,l))return d;const Ee=e[s+1];s=l?ns(Ee):Fs(Ee)}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 an(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!==Ot&&ks(r,Jt(),s),Sa}function vu(e,t,n,r,s){const i=o(),l=Ki(i,e,t,n,r,s);return l!==Ot&&ks(i,Jt(),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 R=zr(e,Tt(),n,s,l,g);return hn(4),R?t+Te(n)+r+Te(s)+i+Te(l)+d+Te(g)+E:Ot}(E,e,t,n,r,s,i,l,d,g);return T!==Ot&&ks(E,Jt(),T),_u}function Eh(e,t,n){is(Or,Es,Wi(o(),e,t,n),!0)}function Du(e,t,n){const r=o();return tr(r,nn(),t)&&Pr(f(),Dt(),r,e,t,r[11],n,!0),Du}function Eu(e,t,n){const r=o();if(tr(r,nn(),t)){const i=f(),l=Dt();Pr(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 Z_(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 Ph(e){return bu(e)[_t.PluralCase]}function xh(e){return e in no||(no[e]=dt.ng&&dt.ng.common&&dt.ng.common.locales&&dt.ng.common.locales[e]),no[e]}var _t=(()=>((_t=_t||{})[_t.LocaleId=0]="LocaleId",_t[_t.DayPeriodsFormat=1]="DayPeriodsFormat",_t[_t.DayPeriodsStandalone=2]="DayPeriodsStandalone",_t[_t.DaysFormat=3]="DaysFormat",_t[_t.DaysStandalone=4]="DaysStandalone",_t[_t.MonthsFormat=5]="MonthsFormat",_t[_t.MonthsStandalone=6]="MonthsStandalone",_t[_t.Eras=7]="Eras",_t[_t.FirstDayOfWeek=8]="FirstDayOfWeek",_t[_t.WeekendRange=9]="WeekendRange",_t[_t.DateFormat=10]="DateFormat",_t[_t.TimeFormat=11]="TimeFormat",_t[_t.DateTimeFormat=12]="DateTimeFormat",_t[_t.NumberSymbols=13]="NumberSymbols",_t[_t.NumberFormats=14]="NumberFormats",_t[_t.CurrencyCode=15]="CurrencyCode",_t[_t.CurrencySymbol=16]="CurrencySymbol",_t[_t.CurrencyName=17]="CurrencyName",_t[_t.Currencies=18]="Currencies",_t[_t.Directionality=19]="Directionality",_t[_t.PluralCase=20]="PluralCase",_t[_t.ExtraData=21]="ExtraData",_t))();const Ma="en-US";let Rh=Ma;function Tu(e,t,n,r,s){if(e=K(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:K(e.provide),g=ef(e);const E=x(),T=1048575&E.providerIndexes,R=E.directiveStart,z=E.providerIndexes>>20;if($i(e)||!e.multi){const ie=new Ws(g,s,Fo),Ee=Mu(d,t,s?T:T+z,R);-1===Ee?(y(Ii(E,l),i,d),Su(i,e,t.length),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(ie),l.push(ie)):(n[Ee]=ie,l[Ee]=ie)}else{const ie=Mu(d,t,T+z,R),Ee=Mu(d,t,T,T+z),Re=ie>=0&&n[ie],Ve=Ee>=0&&n[Ee];if(s&&!Ve||!s&&!Re){y(Ii(E,l),i,d);const et=function ZD(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?qD:QD,n.length,s,r,g);!s&&Ve&&(n[Ee].providerFactory=et),Su(i,e,t.length,0),t.push(d),E.directiveStart++,E.directiveEnd++,s&&(E.providerIndexes+=1048576),n.push(et),l.push(et)}else Su(i,e,ie>-1?ie:Ee,rp(n[s?Ee:ie],g,!s&&r));!s&&r&&Ve&&n[Ee].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?K(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 qD(e,t,n,r){const s=this.multi;let i;if(this.providerFactory){const l=this.providerFactory.componentProviders,d=Wt(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=On(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 ${Q(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(we(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=St(x().index,e);return function sE(e){return e[11]}(An(n)?n:e)}(),e})(),oE=(()=>{class e{}return e.\u0275prov=me({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)),In(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(In(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){it(!0);try{Ul(e,t,n)}finally{it(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ye(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 ye(902,"");this._appRef=t}}class lE extends $o{constructor(t){super(t),this._view=t}detectChanges(){zd(this._view)}checkNoChanges(){!function pv(e){it(!0);try{zd(e)}finally{it(!1)}}(this._view)}get context(){return null}}class up extends Ho{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=O(t);return new Ou(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 Dn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Gc});class Ou 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(an(e))return e.selectRootElement(t,n===Be.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)),R=this.componentDef.onPush?576:528,z=function hf(e,t){return{components:[],scheduler:e||Gc,clean:gv,playerHandler:t||null,flags:0}}(),ie=va(0,null,null,1,0,null,null,null,null,null),Ee=Oo(null,ie,z,R,null,null,l,g,d,i);let Re,Ve;Rs(Ee);try{const et=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),R=Oo(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,R),n[20]=R}(T,this.componentDef,Ee,l,g);if(T)if(r)fi(g,T,["ng-version",aE.full]);else{const{attrs:Se,classes:mt}=function Oy(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]);Se&&fi(g,T,Se),mt&&mt.length>0&&Dl(g,T,mt.join(" "))}if(Ve=Qt(ie,20),void 0!==n){const Se=Ve.projection=[];for(let mt=0;mt<this.ngContentSelectors.length;mt++){const Ut=n[mt];Se.push(null!=Ut?Array.from(Ut):null)}}Re=function ff(e,t,n,r,s){const i=n[1],l=function Zy(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=Wt(t,e,r.directiveStart,r);er(s,t);const i=we(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||(Sn(d.index),Bd(n[1],d,0,d.directiveStart,d.directiveEnd,t),jd(t,l)),l}(et,this.componentDef,Ee,z,[Fv]),Po(ie,Ee,null)}finally{Rt()}return new hE(this.componentType,Re,so(Ve,Ee),Ee,Ve)}}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=We(t);this._bootstrapComponents=ms(r.bootstrap),this._r3Injector=Xd(t,n,[{provide:io,useValue:this},{provide:Ho,useValue:this.componentFactoryResolver}],Q(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=$r.THROW_IF_NOT_FOUND,r=Me.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 Pu extends dp{constructor(t){super(),this.moduleType=t,null!==We(t)&&function gE(e){const t=new Set;!function n(r){const s=We(r,!0),i=s.id;null!==i&&(function fp(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Q(t)} vs ${Q(t.name)}`)}(i,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=rt()+e,s=o();return s[r]===Ot?_s(s,r,n?t.call(n):t()):No(s,r)}function mp(e,t,n,r){return Ep(o(),rt(),e,t,n,r)}function yp(e,t,n,r,s){return bp(o(),rt(),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(),rt(),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(),rt(),e,t,n,r,s,i,l)}function Dp(e,t,n,r,s,i,l,d){const g=rt()+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===Ot?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=ct(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{ct(l)}}function Mp(e,t,n){const r=e+20,s=o(),i=jt(s,r);return Go(s,r)?Ep(s,rt(),t,i.transform,n,i):i.transform(n)}function Ap(e,t,n,r){const s=e+20,i=o(),l=jt(i,s);return Go(i,s)?bp(i,rt(),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 R=t;d=null===(s=R.next)||void 0===s?void 0:s.bind(R),g=null===(i=R.error)||void 0===i?void 0:i.bind(R),E=null===(l=R.complete)||void 0===l?void 0:l.bind(R)}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=Oo(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)),Po(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 Pp(x(),o())}const OE=Fa,Ip=class extends OE{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=Op(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const s=t.createEmbeddedView(n||{});return this.insert(s,r),s}createComponent(t,n,r,s,i){const l=t&&!function mo(e){return"function"==typeof e}(t);let d;if(l)d=n;else{const R=n||{};d=R.index,r=R.injector,s=R.projectableNodes,i=R.ngModuleRef}const g=l?t:new Ou(O(t)),E=r||this.parentInjector;if(!i&&null==g.ngModule&&E){const R=E.get(io,null);R&&(i=R)}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 tn(e){return In(e[3])}(r)){const T=this.indexOf(t);if(-1!==T)this.detach(T);else{const R=r[3],z=new Ip(R,R[6],R[3]);z.detach(z.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=Op(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 Op(e){return e[8]}function Ru(e){return e[8]||(e[8]=[])}function Pp(e,t){let n;const r=t[e.index];if(In(r))n=r;else{let s;if(8&e.type)s=v(r);else{const i=t[11];s=i.createComment("");const l=we(e,t);gi(i,fa(i,l),s,function my(e,t){return an(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,ft(n,t,i,!1,!1))}else r===Wo?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ft(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=ft(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?Pp(t,e):void 0}(e,t,r):Wt(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 R=10;R<T.length;R++){const z=T[R];z[17]===z[3]&&Bu(z[1],z,E,r)}if(null!==T[9]){const R=T[9];for(let z=0;z<R.length;z++){const ie=R[z];Bu(ie[1],ie,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&&Bt(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 Dn("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=me({token:e,factory:e.\u0275fac}),e})();const sg=new Dn("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 Dn("Platform Initializer"),og=new Dn("Platform ID"),ag=new Dn("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=me({token:e,factory:e.\u0275fac}),e})();const ja=new Dn("LocaleId"),ug=new Dn("DefaultCurrencyCode");class ob{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Wu=(()=>{class e{compileModuleSync(n){return new Pu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=ms(We(n).declarations).reduce((l,d)=>{const g=O(d);return g&&l.push(new Ou(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=me({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=dt.requestAnimationFrame,t=dt.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(dt,()=>{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=me({token:e,factory:e.\u0275fac}),e})(),hg=(()=>{class e{constructor(){this._applications=new Map,qu.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 qu.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=me({token:e,factory:e.\u0275fac}),e})();class pb{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function gb(e){qu=e}let os,qu=new pb;const pg=new Dn("AllowMultipleToken");class vb{constructor(t,n){this.name=t,this.token=n}}function gg(e,t,n=[]){const r=`Platform: ${t}`,s=new Dn(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 ye(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 ye(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),R=T.injector.get(Mo,null);if(!R)throw new ye(402,"");return d.runOutsideAngular(()=>{const z=d.onError.subscribe({next:ie=>{R.handleError(ie)}});T.onDestroy(()=>{Zu(this._modules,T),z.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}}(R,d,()=>{const z=T.injector.get(lo);return z.runInitializers(),z.donePromise.then(()=>(function rD(e){Yt(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 Pu(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 ye(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 ye(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=me({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 se.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),g=new se.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 R=this._zone.onUnstable.subscribe(()=>{xr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{T.unsubscribe(),R.unsubscribe()}});this.isStable=(0,le.T)(d,g.pipe((0,B.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new ye(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),Zu(this.components,d),T&&T.unregisterApplication(g)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new ye(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;Zu(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=me({token:e,factory:e.\u0275fac}),e})();function Zu(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=St(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 z=0;z<E;z++){const ie=z<i.length?i[z]:i[z]=0,Ee=ie+z;T<=Ee&&Ee<E&&(i[z]=ie+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 ye(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 Og{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 ye(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 Pg(){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||Pg()),deps:[[e,new Ri,new hi]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new ye(901,"")}}return e.\u0275prov=me({token:e,providedIn:"root",factory:Pg}),e})();function xg(){return new Va([new Og])}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 ye(901,"")}}return e.\u0275prov=me({token:e,providedIn:"root",factory:xg}),e})();const Bb=[new Og],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=Cn({type:e}),e.\u0275inj=ue({providers:Kb}),e})()},6360:(Ye,fe,M)=>{M.d(fe,{Qb:()=>pt,PW:()=>Ps});var p=M(5e3),m=M(2313),se=M(1777);function le(){return"undefined"!=typeof window&&void 0!==window.document}function B(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function N(w){switch(w.length){case 0:return new se.ZN;case 1:return w[0];default:return new se.ZE(w)}}function Z(w,a,o,f,C={},x={}){const L=[],j=[];let te=-1,ve=null;if(f.forEach(ke=>{const nt=ke.offset,wt=nt==te,It=wt&&ve||{};Object.keys(ke).forEach(it=>{let rt=it,Tt=ke[it];if("offset"!==it)switch(rt=a.normalizePropertyName(rt,L),Tt){case se.k1:Tt=C[it];break;case se.l3:Tt=x[it];break;default:Tt=a.normalizeStyleValue(it,rt,Tt,L)}It[rt]=Tt}),wt||j.push(It),ve=It,te=nt}),L.length){const ke="\n - ";throw new Error(`Unable to animate due to the following errors:${ke}${L.join(ke)}`)}return j}function Q(w,a,o,f){switch(a){case"start":w.onStart(()=>f(o&&oe(o,"start",w)));break;case"done":w.onDone(()=>f(o&&oe(o,"done",w)));break;case"destroy":w.onDestroy(()=>f(o&&oe(o,"destroy",w)))}}function oe(w,a,o){const f=o.totalTime,x=U(w.element,w.triggerName,w.fromState,w.toState,a||w.phaseName,null==f?w.totalTime:f,!!o.disabled),L=w._data;return null!=L&&(x._data=L),x}function U(w,a,o,f,C="",x=0,L){return{element:w,triggerName:a,fromState:o,toState:f,phaseName:C,totalTime:x,disabled:!!L}}function V(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 K(w){const a=w.indexOf(":");return[w.substring(1,a),w.substr(a+1)]}let ce=(w,a)=>!1,Oe=(w,a,o)=>[];(B()||"undefined"!=typeof Element)&&(ce=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),Oe=(w,a,o)=>{if(o)return Array.from(w.querySelectorAll(a));const f=w.querySelector(a);return f?[f]:[]});let Te=null,$e=!1;function Le(w){Te||(Te=function tt(){return"undefined"!=typeof document?document.body:null}()||{},$e=!!Te.style&&"WebkitAppearance"in Te.style);let a=!0;return Te.style&&!function Ae(w){return"ebkit"==w.substring(1,6)}(w)&&(a=w in Te.style,!a&&$e&&(a="Webkit"+w.charAt(0).toUpperCase()+w.substr(1)in Te.style)),a}const je=ce,be=Oe;function ze(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 $t=(()=>{class w{validateStyleProperty(o){return Le(o)}matchesElement(o,f){return!1}containsElement(o,f){return je(o,f)}query(o,f,C){return be(o,f,C)}computeStyle(o,f,C){return C||""}animate(o,f,C,x,L,j=[],te){return new se.ZN(C,x)}}return w.\u0275fac=function(o){return new(o||w)},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac}),w})(),Zt=(()=>{class w{}return w.NOOP=new $t,w})();const Xe="ng-enter",ot="ng-leave",qe="ng-trigger",Ue=".ng-trigger",Fn="ng-animating",Nt=".ng-animating";function Xt(w){if("number"==typeof w)return w;const a=w.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Yt(parseFloat(a[1]),a[2])}function Yt(w,a){return"s"===a?1e3*w:w}function at(w,a,o){return w.hasOwnProperty("duration")?w:function kt(w,a,o){let C,x=0,L="";if("string"==typeof w){const j=w.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===j)return a.push(`The provided timing value "${w}" is invalid.`),{duration:0,delay:0,easing:""};C=Yt(parseFloat(j[1]),j[2]);const te=j[3];null!=te&&(x=Yt(parseFloat(te),j[4]));const ve=j[5];ve&&(L=ve)}else C=w;if(!o){let j=!1,te=a.length;C<0&&(a.push("Duration values below 0 are not allowed for this animation step."),j=!0),x<0&&(a.push("Delay values below 0 are not allowed for this animation step."),j=!0),j&&a.splice(te,0,`The provided timing value "${w}" is invalid.`)}return{duration:C,delay:x,easing:L}}(w,a,o)}function Kt(w,a={}){return Object.keys(w).forEach(o=>{a[o]=w[o]}),a}function me(w,a,o={}){if(a)for(let f in w)o[f]=w[f];else Kt(w,o);return o}function J(w,a,o){return o?a+":"+o+";":""}function ue(w){let a="";for(let o=0;o<w.style.length;o++){const f=w.style.item(o);a+=J(0,f,w.style.getPropertyValue(f))}for(const o in w.style)w.style.hasOwnProperty(o)&&!o.startsWith("_")&&(a+=J(0,xe(o),w.style[o]));w.setAttribute("style",a)}function Pe(w,a,o){w.style&&(Object.keys(a).forEach(f=>{const C=Me(f);o&&!o.hasOwnProperty(f)&&(o[f]=w.style[C]),w.style[C]=a[f]}),B()&&ue(w))}function q(w,a){w.style&&(Object.keys(a).forEach(o=>{const f=Me(o);w.style[f]=""}),B()&&ue(w))}function de(w){return Array.isArray(w)?1==w.length?w[0]:(0,se.vP)(w):w}const ne=new RegExp("{{\\s*(.+?)\\s*}}","g");function re(w){let a=[];if("string"==typeof w){let o;for(;o=ne.exec(w);)a.push(o[1]);ne.lastIndex=0}return a}function X(w,a,o){const f=w.toString(),C=f.replace(ne,(x,L)=>{let j=a[L];return a.hasOwnProperty(L)||(o.push(`Please provide a value for the animation param ${L}`),j=""),j.toString()});return C==f?w:C}function _e(w){const a=[];let o=w.next();for(;!o.done;)a.push(o.value),o=w.next();return a}const Fe=/-+([a-z0-9])/g;function Me(w){return w.replace(Fe,(...a)=>a[1].toUpperCase())}function xe(w){return w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function st(w,a){return 0===w||0===a}function ct(w,a,o){const f=Object.keys(o);if(f.length&&a.length){let x=a[0],L=[];if(f.forEach(j=>{x.hasOwnProperty(j)||L.push(j),x[j]=o[j]}),L.length)for(var C=1;C<a.length;C++){let j=a[C];L.forEach(function(te){j[te]=ge(w,te)})}}return a}function lt(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 ge(w,a){return window.getComputedStyle(w)[a]}const $="*";function k(w,a){const o=[];return"string"==typeof w?w.split(/\s*,\s*/).forEach(f=>function Ie(w,a,o){if(":"==w[0]){const te=function Ce(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],L=f[3];a.push(Ke(C,L));"<"==x[0]&&!(C==$&&L==$)&&a.push(Ke(L,C))}(f,o,a)):o.push(w),o}const Be=new Set(["true","1"]),Ne=new Set(["false","0"]);function Ke(w,a){const o=Be.has(w)||Ne.has(w),f=Be.has(a)||Ne.has(a);return(C,x)=>{let L=w==$||w==C,j=a==$||a==x;return!L&&o&&"boolean"==typeof C&&(L=C?Be.has(w):Ne.has(w)),!j&&f&&"boolean"==typeof x&&(j=x?Be.has(a):Ne.has(a)),L&&j}}const ln=new RegExp("s*:selfs*,?","g");function dt(w,a,o){return new on(w).build(a,o)}class on{constructor(a){this._driver=a}build(a,o){const f=new Ht(o);return this._resetContextStyleTimingState(f),lt(this,de(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=[],L=[];return"@"==a.name.charAt(0)&&o.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(j=>{if(this._resetContextStyleTimingState(o),0==j.type){const te=j,ve=te.name;ve.toString().split(/\s*,\s*/).forEach(ke=>{te.name=ke,x.push(this.visitState(te,o))}),te.name=ve}else if(1==j.type){const te=this.visitTransition(j,o);f+=te.queryCount,C+=te.depCount,L.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:L,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,L=C||{};if(f.styles.forEach(j=>{if(Mt(j)){const te=j;Object.keys(te).forEach(ve=>{re(te[ve]).forEach(ke=>{L.hasOwnProperty(ke)||x.add(ke)})})}}),x.size){const j=_e(x.values());o.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${j.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=lt(this,de(a.animation),o);return{type:1,matchers:k(a.expr,o.errors),animation:f,queryCount:o.queryCount,depCount:o.depCount,options:dn(a.options)}}visitSequence(a,o){return{type:2,steps:a.steps.map(f=>lt(this,f,o)),options:dn(a.options)}}visitGroup(a,o){const f=o.currentTime;let C=0;const x=a.steps.map(L=>{o.currentTime=f;const j=lt(this,L,o);return C=Math.max(C,o.currentTime),j});return o.currentTime=C,{type:3,steps:x,options:dn(a.options)}}visitAnimate(a,o){const f=function kn(w,a){let o=null;if(w.hasOwnProperty("duration"))o=w;else if("number"==typeof w)return mn(at(w,a).duration,0,"");const f=w;if(f.split(/\s+/).some(x=>"{"==x.charAt(0)&&"{"==x.charAt(1))){const x=mn(0,0,"");return x.dynamic=!0,x.strValue=f,x}return o=o||at(f,a),mn(o.duration,o.delay,o.easing)}(a.timings,o.errors);o.currentAnimateTimings=f;let C,x=a.styles?a.styles:(0,se.oB)({});if(5==x.type)C=this.visitKeyframes(x,o);else{let L=a.styles,j=!1;if(!L){j=!0;const ve={};f.easing&&(ve.easing=f.easing),L=(0,se.oB)(ve)}o.currentTime+=f.duration+f.delay;const te=this.visitStyle(L,o);te.isEmptyStep=j,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(L=>{"string"==typeof L?L==se.l3?f.push(L):o.errors.push(`The provided style string value ${L} is not allowed.`):f.push(L)}):f.push(a.styles);let C=!1,x=null;return f.forEach(L=>{if(Mt(L)){const j=L,te=j.easing;if(te&&(x=te,delete j.easing),!C)for(let ve in j)if(j[ve].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(L=>{"string"!=typeof L&&Object.keys(L).forEach(j=>{if(!this._driver.validateStyleProperty(j))return void o.errors.push(`The provided animation property "${j}" is not a supported CSS property for animations`);const te=o.collectedStyles[o.currentQuerySelector],ve=te[j];let ke=!0;ve&&(x!=C&&x>=ve.startTime&&C<=ve.endTime&&(o.errors.push(`The CSS property "${j}" that exists between the times of "${ve.startTime}ms" and "${ve.endTime}ms" is also being animated in a parallel animation between the times of "${x}ms" and "${C}ms"`),ke=!1),x=ve.startTime),ke&&(te[j]={startTime:x,endTime:C}),o.options&&function H(w,a,o){const f=a.params||{},C=re(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`)})}(L[j],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 L=[];let j=!1,te=!1,ve=0;const ke=a.steps.map(cn=>{const nn=this._makeStyleAst(cn,o);let hn=null!=nn.offset?nn.offset:function yt(w){if("string"==typeof w)return null;let a=null;if(Array.isArray(w))w.forEach(o=>{if(Mt(o)&&o.hasOwnProperty("offset")){const f=o;a=parseFloat(f.offset),delete f.offset}});else if(Mt(w)&&w.hasOwnProperty("offset")){const o=w;a=parseFloat(o.offset),delete o.offset}return a}(nn.styles),Tn=0;return null!=hn&&(x++,Tn=nn.offset=hn),te=te||Tn<0||Tn>1,j=j||Tn<ve,ve=Tn,L.push(Tn),nn});te&&o.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),j&&o.errors.push("Please ensure that all keyframe offsets are in order");const nt=a.steps.length;let wt=0;x>0&&x<nt?o.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==x&&(wt=1/(nt-1));const It=nt-1,it=o.currentTime,rt=o.currentAnimateTimings,Tt=rt.duration;return ke.forEach((cn,nn)=>{const hn=wt>0?nn==It?1:wt*nn:L[nn],Tn=hn*Tt;o.currentTime=it+rt.delay+Tn,rt.duration=Tn,this._validateStyleAst(cn,o),cn.offset=hn,f.styles.push(cn)}),f}visitReference(a,o){return{type:8,animation:lt(this,de(a.animation),o),options:dn(a.options)}}visitAnimateChild(a,o){return o.depCount++,{type:9,options:dn(a.options)}}visitAnimateRef(a,o){return{type:10,animation:this.visitReference(a.animation,o),options:dn(a.options)}}visitQuery(a,o){const f=o.currentQuerySelector,C=a.options||{};o.queryCount++,o.currentQuery=a;const[x,L]=function Et(w){const a=!!w.split(/\s*,\s*/).find(o=>":self"==o);return a&&(w=w.replace(ln,"")),w=w.replace(/@\*/g,Ue).replace(/@\w+/g,o=>Ue+"-"+o.substr(1)).replace(/:animating/g,Nt),[w,a]}(a.selector);o.currentQuerySelector=f.length?f+" "+x:x,V(o.collectedStyles,o.currentQuerySelector,{});const j=lt(this,de(a.animation),o);return o.currentQuery=null,o.currentQuerySelector=f,{type:11,selector:x,limit:C.limit||0,optional:!!C.optional,includeSelf:L,animation:j,originalSelector:a.selector,options:dn(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"}:at(a.timings,o.errors,!0);return{type:12,animation:lt(this,de(a.animation),o),timings:f,options:null}}}class Ht{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 Mt(w){return!Array.isArray(w)&&"object"==typeof w}function dn(w){return w?(w=Kt(w)).params&&(w.params=function Ge(w){return w?Kt(w):null}(w.params)):w={},w}function mn(w,a,o){return{duration:w,delay:a,easing:o}}function Dr(w,a,o,f,C,x,L=null,j=!1){return{type:1,element:w,keyframes:a,preStyleProps:o,postStyleProps:f,duration:C,delay:x,totalTime:C+x,easing:L,subTimeline:j}}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"),Cn=new RegExp(":leave","g");function bt(w,a,o,f,C,x={},L={},j,te,ve=[]){return(new ae).buildKeyframes(w,a,o,f,C,x,L,j,te,ve)}class ae{buildKeyframes(a,o,f,C,x,L,j,te,ve,ke=[]){ve=ve||new Gn;const nt=new b(a,o,ve,C,x,ke,[]);nt.options=te,nt.currentTimeline.setStyles([L],null,nt.errors,te),lt(this,f,nt);const wt=nt.timelines.filter(It=>It.containsAnimation());if(Object.keys(j).length){let It;for(let it=wt.length-1;it>=0;it--){const rt=wt[it];if(rt.element===o){It=rt;break}}It&&!It.allowOnlyTimelineStyles()&&It.setStyles([j],null,nt.errors,te)}return wt.length?wt.map(It=>It.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,L=this._visitSubInstructions(f,C,C.options);x!=L&&o.transformIntoNewTimeline(L)}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 L=null!=f.duration?Xt(f.duration):null,j=null!=f.delay?Xt(f.delay):null;return 0!==L&&a.forEach(te=>{const ve=o.appendInstructionToTimeline(te,L,j);x=Math.max(x,ve.duration+ve.delay)}),x}visitReference(a,o){o.updateOptions(a.options,!0),lt(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=Y);const L=Xt(x.delay);C.delayNextStep(L)}a.steps.length&&(a.steps.forEach(L=>lt(this,L,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?Xt(a.options.delay):0;a.steps.forEach(L=>{const j=o.createSubContext(a.options);x&&j.delayNextStep(x),lt(this,L,j),C=Math.max(C,j.currentTimeline.currentTime),f.push(j.currentTimeline)}),f.forEach(L=>o.currentTimeline.mergeTimelineCollectedStyles(L)),o.transformIntoNewTimeline(C),o.previousNode=a}_visitTiming(a,o){if(a.dynamic){const f=a.strValue;return at(o.params?X(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,j=o.createSubContext().currentTimeline;j.easing=f.easing,a.styles.forEach(te=>{j.forwardTime((te.offset||0)*x),j.setStyles(te.styles,te.easing,o.errors,o.options),j.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(j),o.transformIntoNewTimeline(C+x),o.previousNode=a}visitQuery(a,o){const f=o.currentTimeline.currentTime,C=a.options||{},x=C.delay?Xt(C.delay):0;x&&(6===o.previousNode.type||0==f&&o.currentTimeline.getCurrentStyleProperties().length)&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Y);let L=f;const j=o.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!C.optional,o.errors);o.currentQueryTotal=j.length;let te=null;j.forEach((ve,ke)=>{o.currentQueryIndex=ke;const nt=o.createSubContext(a.options,ve);x&&nt.delayNextStep(x),ve===o.element&&(te=nt.currentTimeline),lt(this,a.animation,nt),nt.currentTimeline.applyStylesToKeyframe(),L=Math.max(L,nt.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(L),te&&(o.currentTimeline.mergeTimelineCollectedStyles(te),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=a}visitStagger(a,o){const f=o.parentContext,C=o.currentTimeline,x=a.timings,L=Math.abs(x.duration),j=L*(o.currentQueryTotal-1);let te=L*o.currentQueryIndex;switch(x.duration<0?"reverse":x.easing){case"reverse":te=j-te;break;case"full":te=f.currentStaggerTime}const ke=o.currentTimeline;te&&ke.delayNextStep(te);const nt=ke.currentTime;lt(this,a.animation,o),o.previousNode=a,f.currentStaggerTime=C.currentTime-nt+(C.startTime-f.currentTimeline.startTime)}}const Y={};class b{constructor(a,o,f,C,x,L,j,te){this._driver=a,this.element=o,this.subInstructions=f,this._enterClassName=C,this._leaveClassName=x,this.errors=L,this.timelines=j,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Y,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=te||new O(this._driver,o,0),j.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=Xt(f.duration)),null!=f.delay&&(C.delay=Xt(f.delay));const x=f.params;if(x){let L=C.params;L||(L=this.options.params={}),Object.keys(x).forEach(j=>{(!o||!L.hasOwnProperty(j))&&(L[j]=X(x[j],L,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=Y,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,L){let j=[];if(C&&j.push(this.element),a.length>0){a=(a=a.replace(Kn,"."+this._enterClassName)).replace(Cn,"."+this._leaveClassName);let ve=this._driver.query(this.element,a,1!=f);0!==f&&(ve=f<0?ve.slice(ve.length+f,ve.length):ve.slice(0,f)),j.push(...ve)}return!x&&0==j.length&&L.push(`\`query("${o}")\` returned zero elements. (Use \`query("${o}", { optional: true })\` if you wish to allow this.)`),j}}class O{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 O(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]||se.l3,this._currentKeyframe[o]=se.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,o,f,C){o&&(this._previousKeyframe.easing=o);const x=C&&C.params||{},L=function We(w,a){const o={};let f;return w.forEach(C=>{"*"===C?(f=f||Object.keys(a),f.forEach(x=>{o[x]=se.l3})):me(C,!1,o)}),o}(a,this._globalTimelineStyles);Object.keys(L).forEach(j=>{const te=X(L[j],x,f);this._pendingStyles[j]=te,this._localTimelineStyles.hasOwnProperty(j)||(this._backFill[j]=this._globalTimelineStyles.hasOwnProperty(j)?this._globalTimelineStyles[j]:se.l3),this._updateStyle(j,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((j,te)=>{const ve=me(j,!0);Object.keys(ve).forEach(ke=>{const nt=ve[ke];nt==se.k1?a.add(ke):nt==se.l3&&o.add(ke)}),f||(ve.offset=te/this.duration),C.push(ve)});const x=a.size?_e(a.values()):[],L=o.size?_e(o.values()):[];if(f){const j=C[0],te=Kt(j);j.offset=0,te.offset=1,C=[j,te]}return Dr(this.element,C,x,L,this.duration,this.startTime,this.easing,!1)}}class A extends O{constructor(a,o,f,C,x,L,j=!1){super(a,o,L.delay),this.keyframes=f,this.preStyleProps=C,this.postStyleProps=x,this._stretchStartingKeyframe=j,this.timings={duration:L.duration,delay:L.delay,easing:L.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=[],L=f+o,j=o/L,te=me(a[0],!1);te.offset=0,x.push(te);const ve=me(a[0],!1);ve.offset=ee(j),x.push(ve);const ke=a.length-1;for(let nt=1;nt<=ke;nt++){let wt=me(a[nt],!1);wt.offset=ee((o+wt.offset*f)/L),x.push(wt)}f=L,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 Ft{}class sr extends Ft{normalizePropertyName(a,o){return Me(a)}normalizeStyleValue(a,o,f,C){let x="";const L=f.toString().trim();if(fr[o]&&0!==f&&"0"!==f)if("number"==typeof f)x="px";else{const j=f.match(/^[+-]?[\d\.]+([a-z]*)$/);j&&0==j[1].length&&C.push(`Please provide a CSS unit value for ${a}:${f}`)}return L+x}}const fr=(()=>function pn(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,L,j,te,ve,ke,nt,wt){return{type:0,element:w,triggerName:a,isRemovalTransition:C,fromState:o,fromStyles:x,toState:f,toStyles:L,timelines:j,queriedElements:te,preStyleProps:ve,postStyleProps:ke,totalTime:nt,errors:wt}}const wn={};class He{constructor(a,o,f){this._triggerName=a,this.ast=o,this._stateStyles=f}match(a,o,f,C){return function At(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],L=C?C.buildStyles(o,f):{};return x?x.buildStyles(o,f):L}build(a,o,f,C,x,L,j,te,ve,ke){const nt=[],wt=this.ast.options&&this.ast.options.params||wn,it=this.buildStyles(f,j&&j.params||wn,nt),rt=te&&te.params||wn,Tt=this.buildStyles(C,rt,nt),cn=new Set,nn=new Map,hn=new Map,Tn="void"===C,Zr={params:Object.assign(Object.assign({},wt),rt)},yr=ke?[]:bt(a,o,this.ast.animation,x,L,it,Tt,Zr,ve,nt);let Rn=0;if(yr.forEach(Jn=>{Rn=Math.max(Jn.duration+Jn.delay,Rn)}),nt.length)return Er(o,this._triggerName,f,C,Tn,it,Tt,[],[],nn,hn,Rn,nt);yr.forEach(Jn=>{const lr=Jn.element,xs=V(nn,lr,{});Jn.preStyleProps.forEach(Ur=>xs[Ur]=!0);const fs=V(hn,lr,{});Jn.postStyleProps.forEach(Ur=>fs[Ur]=!0),lr!==o&&cn.add(lr)});const vr=_e(cn.values());return Er(o,this._triggerName,f,C,Tn,it,Tt,yr,vr,nn,hn,Rn)}}class qt{constructor(a,o,f){this.styles=a,this.defaultParams=o,this.normalizer=f}buildStyles(a,o){const f={},C=Kt(this.defaultParams);return Object.keys(a).forEach(x=>{const L=a[x];null!=L&&(C[x]=L)}),this.styles.styles.forEach(x=>{if("string"!=typeof x){const L=x;Object.keys(L).forEach(j=>{let te=L[j];te.length>1&&(te=X(te,C,o));const ve=this.normalizer.normalizePropertyName(j,o);te=this.normalizer.normalizeStyleValue(j,ve,te,o),f[ve]=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 qt(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 He(a,C,this.states))}),this.fallbackTransition=function gn(w,a,o){return new He(w,{type:1,animation:{type:2,steps:[],options:null},matchers:[(L,j)=>!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(L=>L.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 en=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=dt(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=Z(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 L;const j=new Map;if(x?(L=bt(this._driver,o,x,Xe,ot,{},{},f,en,C),L.forEach(ke=>{const nt=V(j,ke.element,{});ke.postStyleProps.forEach(wt=>nt[wt]=null)})):(C.push("The requested animation doesn't exist or has already been destroyed"),L=[]),C.length)throw new Error(`Unable to create the animation due to the following errors: ${C.join("\n")}`);j.forEach((ke,nt)=>{Object.keys(ke).forEach(wt=>{ke[wt]=this._driver.computeStyle(nt,wt,se.l3)})});const ve=N(L.map(ke=>{const nt=j.get(ke.element);return this._buildPlayer(ke,{},nt)}));return this._playersById[a]=ve,ve.onDestroy(()=>this.destroy(a)),this.players.push(ve),ve}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=U(o,"","","");return Q(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",vn=[],pr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},zt="__ng_removed";class Gt{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=Kt(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 Gt(kr);class An{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=V(this._elementListeners,a,[]),L={name:o,phase:f,callback:C};x.push(L);const j=V(this._engine.statesByElement,a,{});return j.hasOwnProperty(o)||(Pn(a,qe),Pn(a,qe+"-"+o),j[o]=gr),()=>{this._engine.afterFlush(()=>{const te=x.indexOf(L);te>=0&&x.splice(te,1),this._triggers[o]||delete j[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),L=new Cr(this.id,o,a);let j=this._engine.statesByElement.get(a);j||(Pn(a,qe),Pn(a,qe+"-"+o),this._engine.statesByElement.set(a,j={}));let te=j[o];const ve=new Gt(f,this.id);if(!(f&&f.hasOwnProperty("value"))&&te&&ve.absorbOptions(te.options),j[o]=ve,te||(te=gr),ve.value!==kr&&te.value===ve.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,ve.params)){const rt=[],Tt=x.matchStyles(te.value,te.params,rt),cn=x.matchStyles(ve.value,ve.params,rt);rt.length?this._engine.reportError(rt):this._engine.afterFlush(()=>{q(a,Tt),Pe(a,cn)})}return}const wt=V(this._engine.playersByElement,a,[]);wt.forEach(rt=>{rt.namespaceId==this.id&&rt.triggerName==o&&rt.queued&&rt.destroy()});let It=x.matchTransition(te.value,ve.value,a,ve.params),it=!1;if(!It){if(!C)return;It=x.fallbackTransition,it=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:o,transition:It,fromState:te,toState:ve,player:L,isFallbackTransition:it}),it||(Pn(a,br),L.onStart(()=>{or(a,br)})),L.onDone(()=>{let rt=this.players.indexOf(L);rt>=0&&this.players.splice(rt,1);const Tt=this._engine.playersByElement.get(a);if(Tt){let cn=Tt.indexOf(L);cn>=0&&Tt.splice(cn,1)}}),this.players.push(L),wt.push(L),L}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,Ue,!0);f.forEach(C=>{if(C[zt])return;const x=this._engine.fetchNamespacesByElement(C);x.size?x.forEach(L=>L.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),L=new Map;if(x){const j=[];if(Object.keys(x).forEach(te=>{if(L.set(te,x[te].value),this._triggers[te]){const ve=this.trigger(a,te,kr,C);ve&&j.push(ve)}}),j.length)return this._engine.markElementAsRemoved(this.id,a,!0,o,L),f&&N(j).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 L=x.name;if(C.has(L))return;C.add(L);const te=this._triggers[L].fallbackTransition,ve=f[L]||gr,ke=new Gt(kr),nt=new Cr(this.id,L,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:L,transition:te,fromState:ve,toState:ke,player:nt,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 L=a;for(;L=L.parentNode;)if(f.statesByElement.get(L)){C=!0;break}}}if(this.prepareLeaveAnimationListeners(a),C)f.markElementAsRemoved(this.id,a,!1,o);else{const x=a[zt];(!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,L=this._elementListeners.get(x);L&&L.forEach(j=>{if(j.name==f.triggerName){const te=U(x,f.triggerName,f.fromState.value,f.toState.value);te._data=a,Q(f.player,j.phase,te,j.callback)}}),C.markedForDestroy?this._engine.afterFlush(()=>{C.destroy()}):o.push(f)}),this._queue=[],o.sort((f,C)=>{const x=f.transition.ast.depCount,L=C.transition.ast.depCount;return 0==x||0==L?x-L: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 In{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 An(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 L=f[C[x]].namespaceId;if(L){const j=this._fetchNamespace(L);j&&o.add(j)}}}return o}trigger(a,o,f,C){if(On(o)){const x=this._fetchNamespace(a);if(x)return x.trigger(o,f,C),!0}return!1}insertNode(a,o,f,C){if(!On(o))return;const x=o[zt];if(x&&x.setForRemoval){x.setForRemoval=!1,x.setForMove=!0;const L=this.collectedLeaveElements.indexOf(o);L>=0&&this.collectedLeaveElements.splice(L,1)}if(a){const L=this._fetchNamespace(a);L&&L.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(On(o)){const x=a?this._fetchNamespace(a):null;if(x?x.removeNode(o,C):this.markElementAsRemoved(a,o,!1,C),f){const L=this.namespacesByHostElement.get(o);L&&L.id!==a&&L.removeNode(o,C)}}else this._onRemovalComplete(o,C)}markElementAsRemoved(a,o,f,C,x){this.collectedLeaveElements.push(o),o[zt]={namespaceId:a,setForRemoval:C,hasAnimation:f,removedBeforeQueried:!1,previousTriggersValues:x}}listen(a,o,f,C,x){return On(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,Ue,!0);o.forEach(f=>this.destroyActiveAnimationsForElement(f)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(a,Nt,!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 N(this.players).onDone(()=>a());a()})}processLeaveNode(a){var o;const f=a[zt];if(f&&f.setForRemoval){if(a[zt]=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?N(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,L=[],j=new Map,te=new Map,ve=new Map,ke=new Set;this.disabledNodes.forEach(Ze=>{ke.add(Ze);const ut=this.driver.query(Ze,".ng-animate-queued",!0);for(let gt=0;gt<ut.length;gt++)ke.add(ut[gt])});const nt=this.bodyNode,wt=Array.from(this.statesByElement.keys()),It=Vn(wt,this.collectedEnterElements),it=new Map;let rt=0;It.forEach((Ze,ut)=>{const gt=Xe+rt++;it.set(ut,gt),Ze.forEach(Rt=>Pn(Rt,gt))});const Tt=[],cn=new Set,nn=new Set;for(let Ze=0;Ze<this.collectedLeaveElements.length;Ze++){const ut=this.collectedLeaveElements[Ze],gt=ut[zt];gt&>.setForRemoval&&(Tt.push(ut),cn.add(ut),gt.hasAnimation?this.driver.query(ut,".ng-star-inserted",!0).forEach(Rt=>cn.add(Rt)):nn.add(ut))}const hn=new Map,Tn=Vn(wt,Array.from(cn));Tn.forEach((Ze,ut)=>{const gt=ot+rt++;hn.set(ut,gt),Ze.forEach(Rt=>Pn(Rt,gt))}),a.push(()=>{It.forEach((Ze,ut)=>{const gt=it.get(ut);Ze.forEach(Rt=>or(Rt,gt))}),Tn.forEach((Ze,ut)=>{const gt=hn.get(ut);Ze.forEach(Rt=>or(Rt,gt))}),Tt.forEach(Ze=>{this.processLeaveNode(Ze)})});const Zr=[],yr=[];for(let Ze=this._namespaceList.length-1;Ze>=0;Ze--)this._namespaceList[Ze].drainQueuedTransitions(o).forEach(gt=>{const Rt=gt.player,_n=gt.element;if(Zr.push(Rt),this.collectedEnterElements.length){const Nn=_n[zt];if(Nn&&Nn.setForMove){if(Nn.previousTriggersValues&&Nn.previousTriggersValues.has(gt.triggerName)){const Jr=Nn.previousTriggersValues.get(gt.triggerName),Mr=this.statesByElement.get(gt.element);Mr&&Mr[gt.triggerName]&&(Mr[gt.triggerName].value=Jr)}return void Rt.destroy()}}const _r=!nt||!this.driver.containsElement(nt,_n),Jt=hn.get(_n),Sn=it.get(_n),Dt=this._buildInstruction(gt,f,Sn,Jt,_r);if(Dt.errors&&Dt.errors.length)return void yr.push(Dt);if(_r)return Rt.onStart(()=>q(_n,Dt.fromStyles)),Rt.onDestroy(()=>Pe(_n,Dt.toStyles)),void C.push(Rt);if(gt.isFallbackTransition)return Rt.onStart(()=>q(_n,Dt.fromStyles)),Rt.onDestroy(()=>Pe(_n,Dt.toStyles)),void C.push(Rt);const ci=[];Dt.timelines.forEach(Nn=>{Nn.stretchStartingKeyframe=!0,this.disabledNodes.has(Nn.element)||ci.push(Nn)}),Dt.timelines=ci,f.append(_n,Dt.timelines),L.push({instruction:Dt,player:Rt,element:_n}),Dt.queriedElements.forEach(Nn=>V(j,Nn,[]).push(Rt)),Dt.preStyleProps.forEach((Nn,Jr)=>{const Mr=Object.keys(Nn);if(Mr.length){let Xr=te.get(Jr);Xr||te.set(Jr,Xr=new Set),Mr.forEach(hs=>Xr.add(hs))}}),Dt.postStyleProps.forEach((Nn,Jr)=>{const Mr=Object.keys(Nn);let Xr=ve.get(Jr);Xr||ve.set(Jr,Xr=new Set),Mr.forEach(hs=>Xr.add(hs))})});if(yr.length){const Ze=[];yr.forEach(ut=>{Ze.push(`@${ut.triggerName} has failed due to:\n`),ut.errors.forEach(gt=>Ze.push(`- ${gt}\n`))}),Zr.forEach(ut=>ut.destroy()),this.reportError(Ze)}const Rn=new Map,vr=new Map;L.forEach(Ze=>{const ut=Ze.element;f.has(ut)&&(vr.set(ut,ut),this._beforeAnimationBuild(Ze.player.namespaceId,Ze.instruction,Rn))}),C.forEach(Ze=>{const ut=Ze.element;this._getPreviousPlayers(ut,!1,Ze.namespaceId,Ze.triggerName,null).forEach(Rt=>{V(Rn,ut,[]).push(Rt),Rt.destroy()})});const Jn=Tt.filter(Ze=>ws(Ze,te,ve)),lr=new Map;ti(lr,this.driver,nn,ve,se.l3).forEach(Ze=>{ws(Ze,te,ve)&&Jn.push(Ze)});const fs=new Map;It.forEach((Ze,ut)=>{ti(fs,this.driver,new Set(Ze),te,se.k1)}),Jn.forEach(Ze=>{const ut=lr.get(Ze),gt=fs.get(Ze);lr.set(Ze,Object.assign(Object.assign({},ut),gt))});const Ur=[],Rs=[],ui={};L.forEach(Ze=>{const{element:ut,player:gt,instruction:Rt}=Ze;if(f.has(ut)){if(ke.has(ut))return gt.onDestroy(()=>Pe(ut,Rt.toStyles)),gt.disabled=!0,gt.overrideTotalTime(Rt.totalTime),void C.push(gt);let _n=ui;if(vr.size>1){let Jt=ut;const Sn=[];for(;Jt=Jt.parentNode;){const Dt=vr.get(Jt);if(Dt){_n=Dt;break}Sn.push(Jt)}Sn.forEach(Dt=>vr.set(Dt,_n))}const _r=this._buildAnimation(gt.namespaceId,Rt,Rn,x,fs,lr);if(gt.setRealPlayer(_r),_n===ui)Ur.push(gt);else{const Jt=this.playersByElement.get(_n);Jt&&Jt.length&&(gt.parentPlayer=N(Jt)),C.push(gt)}}else q(ut,Rt.fromStyles),gt.onDestroy(()=>Pe(ut,Rt.toStyles)),Rs.push(gt),ke.has(ut)&&C.push(gt)}),Rs.forEach(Ze=>{const ut=x.get(Ze.element);if(ut&&ut.length){const gt=N(ut);Ze.setRealPlayer(gt)}}),C.forEach(Ze=>{Ze.parentPlayer?Ze.syncPlayerEvents(Ze.parentPlayer):Ze.destroy()});for(let Ze=0;Ze<Tt.length;Ze++){const ut=Tt[Ze],gt=ut[zt];if(or(ut,ot),gt&>.hasAnimation)continue;let Rt=[];if(j.size){let _r=j.get(ut);_r&&_r.length&&Rt.push(..._r);let Jt=this.driver.query(ut,Nt,!0);for(let Sn=0;Sn<Jt.length;Sn++){let Dt=j.get(Jt[Sn]);Dt&&Dt.length&&Rt.push(...Dt)}}const _n=Rt.filter(_r=>!_r.destroyed);_n.length?Bs(this,ut,_n):this.processLeaveNode(ut)}return Tt.length=0,Ur.forEach(Ze=>{this.players.push(Ze),Ze.onDone(()=>{Ze.destroy();const ut=this.players.indexOf(Ze);this.players.splice(ut,1)}),Ze.play()}),Ur}elementContainsData(a,o){let f=!1;const C=o[zt];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 L=[];if(o){const j=this.playersByQueriedElement.get(a);j&&(L=j)}else{const j=this.playersByElement.get(a);if(j){const te=!x||x==kr;j.forEach(ve=>{ve.queued||!te&&ve.triggerName!=C||L.push(ve)})}}return(f||C)&&(L=L.filter(j=>!(f&&f!=j.namespaceId||C&&C!=j.triggerName))),L}_beforeAnimationBuild(a,o,f){const x=o.element,L=o.isRemovalTransition?void 0:a,j=o.isRemovalTransition?void 0:o.triggerName;for(const te of o.timelines){const ve=te.element,ke=ve!==x,nt=V(f,ve,[]);this._getPreviousPlayers(ve,ke,L,j,o.toState).forEach(It=>{const it=It.getRealPlayer();it.beforeDestroy&&it.beforeDestroy(),It.destroy(),nt.push(It)})}q(x,o.fromStyles)}_buildAnimation(a,o,f,C,x,L){const j=o.triggerName,te=o.element,ve=[],ke=new Set,nt=new Set,wt=o.timelines.map(it=>{const rt=it.element;ke.add(rt);const Tt=rt[zt];if(Tt&&Tt.removedBeforeQueried)return new se.ZN(it.duration,it.delay);const cn=rt!==te,nn=function ni(w){const a=[];return Cs(w,a),a}((f.get(rt)||vn).map(Rn=>Rn.getRealPlayer())).filter(Rn=>!!Rn.element&&Rn.element===rt),hn=x.get(rt),Tn=L.get(rt),Zr=Z(0,this._normalizer,0,it.keyframes,hn,Tn),yr=this._buildPlayer(it,Zr,nn);if(it.subTimeline&&C&&nt.add(rt),cn){const Rn=new Cr(a,j,rt);Rn.setRealPlayer(yr),ve.push(Rn)}return yr});ve.forEach(it=>{V(this.playersByQueriedElement,it.element,[]).push(it),it.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,it.element,it))}),ke.forEach(it=>Pn(it,Fn));const It=N(wt);return It.onDestroy(()=>{ke.forEach(it=>or(it,Fn)),Pe(te,o.toStyles)}),nt.forEach(it=>{V(C,it,[]).push(It)}),It}_buildPlayer(a,o,f){return o.length>0?this.driver.animate(a.element,o,a.duration,a.delay,a.easing,f):new se.ZN(a.duration,a.delay)}}class Cr{constructor(a,o,f){this.namespaceId=a,this.triggerName=o,this.element=f,this._player=new se.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(o=>{this._queuedCallbacks[o].forEach(f=>Q(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){V(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 On(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 L=[];f.forEach((te,ve)=>{const ke={};te.forEach(nt=>{const wt=ke[nt]=a.computeStyle(ve,nt,C);(!wt||0==wt.length)&&(ve[zt]=Gr,L.push(ve))}),w.set(ve,ke)});let j=0;return o.forEach(te=>Ls(te,x[j++])),L}function Vn(w,a){const o=new Map;if(w.forEach(j=>o.set(j,[])),0==a.length)return o;const C=new Set(a),x=new Map;function L(j){if(!j)return 1;let te=x.get(j);if(te)return te;const ve=j.parentNode;return te=o.has(ve)?ve:C.has(ve)?1:L(ve),x.set(j,te),te}return a.forEach(j=>{const te=L(j);1!==te&&o.get(te).push(j)}),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){N(o).onDone(()=>w.processLeaveNode(a))}function Cs(w,a){for(let o=0;o<w.length;o++){const f=w[o];f instanceof se.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 In(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 L=a+"-"+C;let j=this._triggerCache[L];if(!j){const te=[],ve=dt(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 - ")}`);j=function Ln(w,a,o){return new Yn(w,a,o)}(C,ve,this._normalizer),this._triggerCache[L]=j}this._transitionEngine.registerTrigger(o,C,j)}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,L]=K(f);this._timelineEngine.command(x,o,L,C)}else this._transitionEngine.trigger(a,o,f,C)}listen(a,o,f,C,x){if("@"==f.charAt(0)){const[L,j]=K(f);return this._timelineEngine.listen(L,o,j,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&&Pe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pe(this._element,this._initialStyles),this._endStyles&&(Pe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(w.initialStylesByElement.delete(this._element),this._startStyles&&(q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),Pe(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,L,j){this._element=a,this._name=o,this._duration=f,this._delay=C,this._easing=x,this._fillMode=L,this._onDoneFn=j,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}`),qn(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,qn(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=xn(f,a);C>=0&&(f.splice(C,1),qn(w,"",f.join(",")))}(this._element,this._name))}}function js(w,a,o){qn(w,"PlayState",o,cs(w,a))}function cs(w,a){const o=Us(w,"");return o.indexOf(",")>0?xn(o.split(","),a):xn([o],a)}function xn(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 qn(w,a,o,f){const C=Ms+a;if(null!=f){const x=w.style[C];if(x.length){const L=x.split(",");L[f]=o,o=L.join(",")}}w.style[C]=o}function Us(w,a){return w.style[Ms+a]||""}class mr{constructor(a,o,f,C,x,L,j,te){this.element=a,this.keyframes=o,this.animationName=f,this._duration=C,this._delay=x,this._finalStyles=j,this._specialStyles=te,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=L||"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]:ge(this.element,f))})}this.currentSnapshot=a}}class Qr extends se.ZN{constructor(a,o){super(),this.element=a,this._startingStyles={},this.__initialized=!1,this._styles=ze(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 Le(a)}matchesElement(a,o){return!1}containsElement(a,o){return je(a,o)}query(a,o,f){return be(a,o,f)}computeStyle(a,o,f){return window.getComputedStyle(a)[o]}buildKeyframeElement(a,o,f){f=f.map(j=>ze(j));let C=`@keyframes ${o} {\n`,x="";f.forEach(j=>{x=" ";const te=parseFloat(j.offset);C+=`${x}${100*te}% {\n`,x+=" ",Object.keys(j).forEach(ve=>{const ke=j[ve];switch(ve){case"offset":return;case"easing":return void(ke&&(C+=`${x}animation-timing-function: ${ke};\n`));default:return void(C+=`${x}${ve}: ${ke};\n`)}}),C+=`${x}}\n`}),C+="}\n";const L=document.createElement("style");return L.textContent=C,L}animate(a,o,f,C,x,L=[],j){const te=L.filter(Tt=>Tt instanceof mr),ve={};st(f,C)&&te.forEach(Tt=>{let cn=Tt.currentSnapshot;Object.keys(cn).forEach(nn=>ve[nn]=cn[nn])});const ke=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=ct(a,o,ve));if(0==f)return new Qr(a,ke);const nt="gen_css_kf_"+this._count++,wt=this.buildKeyframeElement(a,nt,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(wt);const it=ri(a,o),rt=new mr(a,o,nt,f,C,x,ke,it);return rt.onDestroy(()=>function $s(w){w.parentNode.removeChild(w)}(wt)),rt}}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]:ge(this.element,f))})}this.currentSnapshot=a}triggerCallback(a){const o="start"==a?this._onStartFns:this._onDoneFns;o.forEach(f=>f()),o.length=0}}class Zn{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_().toString()),this._cssKeyframesDriver=new Is}validateStyleProperty(a){return Le(a)}matchesElement(a,o){return!1}containsElement(a,o){return je(a,o)}query(a,o,f){return be(a,o,f)}computeStyle(a,o,f){return window.getComputedStyle(a)[o]}overrideWebAnimationsSupport(a){this._isNativeImpl=a}animate(a,o,f,C,x,L=[],j){if(!j&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(a,o,f,C,x,L);const ke={duration:f,delay:C,fill:0==C?"both":"forwards"};x&&(ke.easing=x);const nt={},wt=L.filter(it=>it instanceof Lr);st(f,C)&&wt.forEach(it=>{let rt=it.currentSnapshot;Object.keys(rt).forEach(Tt=>nt[Tt]=rt[Tt])});const It=ri(a,o=ct(a,o=o.map(it=>me(it,!1)),nt));return new Lr(a,o,ke,It)}}function _(){return le()&&Element.prototype.animate||{}}var S=M(9808);let v=(()=>{class w extends se._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,se.vP)(o):o;return pe(this._renderer,null,f,"register",[C]),new P(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 P extends se.LC{constructor(a,o){super(),this._id=a,this._renderer=o}create(a,o){return new W(this._id,a,o||{},this._renderer)}}class W{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 pe(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 pe(w,a,o,f,C){return w.setProperty(a,`@@${o}:${f}`,C)}const Qe="@.disabled";let Qt=(()=>{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,L)=>{const j=null==L?void 0:L.parentNode(x);j&&L.removeChild(j,x)}}createRenderer(o,f){const x=this.delegate.createRenderer(o,f);if(!(o&&f&&f.data&&f.data.animation)){let ke=this._rendererCache.get(x);return ke||(ke=new jt("",x,this.engine),this._rendererCache.set(x,ke)),ke}const L=f.id,j=f.id+"-"+this._currentId;this._currentId++,this.engine.register(j,o);const te=ke=>{Array.isArray(ke)?ke.forEach(te):this.engine.registerTrigger(L,j,o,ke.name,ke)};return f.data.animation.forEach(te),new St(this,j,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[L,j]=x;L(j)}),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 jt{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==Qe?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 St extends jt{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==Qe?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 Bt(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),L="";return"@"!=x.charAt(0)&&([x,L]=function fn(w){const a=w.indexOf(".");return[w.substring(0,a),w.substr(a+1)]}(x)),this.engine.listen(this.namespaceId,C,x,L,j=>{this.factory.scheduleListenerCallback(j._data||-1,f,j)})}return this.delegate.listen(a,o,f)}}let tn=(()=>{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(Zt),p.LFG(Ft))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac}),w})();const pt=new p.OlP("AnimationModuleType"),jr=[{provide:se._j,useClass:v},{provide:Ft,useFactory:function Br(){return new sr}},{provide:Ts,useClass:tn},{provide:p.FYo,useFactory:function ar(w,a,o){return new Qt(w,a,o)},deps:[m.se,Ts,p.R0b]}],qr=[{provide:Zt,useFactory:function un(){return function an(){return"function"==typeof _()}()?new Zn:new Is}},{provide:pt,useValue:"BrowserAnimations"},...jr],Os=[{provide:Zt,useClass:$t},{provide:pt,useValue:"NoopAnimations"},...jr];let Ps=(()=>{class w{static withConfig(o){return{ngModule:w,providers:o.disableAnimations?Os:qr}}}return w.\u0275fac=function(o){return new(o||w)},w.\u0275mod=p.oAB({type:w}),w.\u0275inj=p.cJS({providers:qr,imports:[m.b2]}),w})()},2313:(Ye,fe,M)=>{M.d(fe,{b2:()=>_e,H7:()=>Kn,Dx:()=>ct,q6:()=>re,se:()=>qe});var p=M(9808),m=M(5e3);class se extends p.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class le extends se{static makeCurrent(){(0,p.HT)(new le)}onAndCancel(Y,b,O){return Y.addEventListener(b,O,!1),()=>{Y.removeEventListener(b,O,!1)}}dispatchEvent(Y,b){Y.dispatchEvent(b)}remove(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}createElement(Y,b){return(b=b||this.getDefaultDocument()).createElement(Y)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Y){return Y.nodeType===Node.ELEMENT_NODE}isShadowRoot(Y){return Y instanceof DocumentFragment}getGlobalEventTarget(Y,b){return"window"===b?window:"document"===b?Y:"body"===b?Y.body:null}getBaseHref(Y){const b=function N(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==b?null:function Q(ae){Z=Z||document.createElement("a"),Z.setAttribute("href",ae);const Y=Z.pathname;return"/"===Y.charAt(0)?Y:`/${Y}`}(b)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(Y){return(0,p.Mx)(document.cookie,Y)}}let Z,B=null;const oe=new m.OlP("TRANSITION_ID"),V=[{provide:m.ip1,useFactory:function U(ae,Y,b){return()=>{b.get(m.CZH).donePromise.then(()=>{const O=(0,p.q)(),A=Y.querySelectorAll(`style[ng-transition="${ae}"]`);for(let ee=0;ee<A.length;ee++)O.remove(A[ee])})}},deps:[oe,p.K0,m.zs3],multi:!0}];class K{static init(){(0,m.VLi)(new K)}addToWindow(Y){m.dqk.getAngularTestability=(O,A=!0)=>{const ee=Y.findTestabilityInTree(O,A);if(null==ee)throw new Error("Could not find testability for element.");return ee},m.dqk.getAllAngularTestabilities=()=>Y.getAllTestabilities(),m.dqk.getAllAngularRootElements=()=>Y.getAllRootElements(),m.dqk.frameworkStabilizers||(m.dqk.frameworkStabilizers=[]),m.dqk.frameworkStabilizers.push(O=>{const A=m.dqk.getAllAngularTestabilities();let ee=A.length,We=!1;const Lt=function(Ft){We=We||Ft,ee--,0==ee&&O(We)};A.forEach(function(Ft){Ft.whenStable(Lt)})})}findTestabilityInTree(Y,b,O){if(null==b)return null;const A=Y.getTestability(b);return null!=A?A:O?(0,p.q)().isShadowRoot(b)?this.findTestabilityInTree(Y,b.host,!0):this.findTestabilityInTree(Y,b.parentElement,!0):null}}let ce=(()=>{class ae{build(){return new XMLHttpRequest}}return ae.\u0275fac=function(b){return new(b||ae)},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const Oe=new m.OlP("EventManagerPlugins");let ye=(()=>{class ae{constructor(b,O){this._zone=O,this._eventNameToPlugin=new Map,b.forEach(A=>A.manager=this),this._plugins=b.slice().reverse()}addEventListener(b,O,A){return this._findPluginFor(O).addEventListener(b,O,A)}addGlobalEventListener(b,O,A){return this._findPluginFor(O).addGlobalEventListener(b,O,A)}getZone(){return this._zone}_findPluginFor(b){const O=this._eventNameToPlugin.get(b);if(O)return O;const A=this._plugins;for(let ee=0;ee<A.length;ee++){const We=A[ee];if(We.supports(b))return this._eventNameToPlugin.set(b,We),We}throw new Error(`No event manager plugin found for event ${b}`)}}return ae.\u0275fac=function(b){return new(b||ae)(m.LFG(Oe),m.LFG(m.R0b))},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac}),ae})();class Ae{constructor(Y){this._doc=Y}addGlobalEventListener(Y,b,O){const A=(0,p.q)().getGlobalEventTarget(this._doc,Y);if(!A)throw new Error(`Unsupported event target ${A} for event ${b}`);return this.addEventListener(A,b,O)}}let Te=(()=>{class ae{constructor(){this._stylesSet=new Set}addStyles(b){const O=new Set;b.forEach(A=>{this._stylesSet.has(A)||(this._stylesSet.add(A),O.add(A))}),this.onStylesAdded(O)}onStylesAdded(b){}getAllStyles(){return Array.from(this._stylesSet)}}return ae.\u0275fac=function(b){return new(b||ae)},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),$e=(()=>{class ae extends Te{constructor(b){super(),this._doc=b,this._hostNodes=new Map,this._hostNodes.set(b.head,[])}_addStylesToHost(b,O,A){b.forEach(ee=>{const We=this._doc.createElement("style");We.textContent=ee,A.push(O.appendChild(We))})}addHost(b){const O=[];this._addStylesToHost(this._stylesSet,b,O),this._hostNodes.set(b,O)}removeHost(b){const O=this._hostNodes.get(b);O&&O.forEach(Le),this._hostNodes.delete(b)}onStylesAdded(b){this._hostNodes.forEach((O,A)=>{this._addStylesToHost(b,A,O)})}ngOnDestroy(){this._hostNodes.forEach(b=>b.forEach(Le))}}return ae.\u0275fac=function(b){return new(b||ae)(m.LFG(p.K0))},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac}),ae})();function Le(ae){(0,p.q)().remove(ae)}const tt={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/"},je=/%COMP%/g;function xt(ae,Y,b){for(let O=0;O<Y.length;O++){let A=Y[O];Array.isArray(A)?xt(ae,A,b):(A=A.replace(je,ae),b.push(A))}return b}function Xe(ae){return Y=>{if("__ngUnwrap__"===Y)return ae;!1===ae(Y)&&(Y.preventDefault(),Y.returnValue=!1)}}let qe=(()=>{class ae{constructor(b,O,A){this.eventManager=b,this.sharedStylesHost=O,this.appId=A,this.rendererByCompId=new Map,this.defaultRenderer=new Ue(b)}createRenderer(b,O){if(!b||!O)return this.defaultRenderer;switch(O.encapsulation){case m.ifc.Emulated:{let A=this.rendererByCompId.get(O.id);return A||(A=new Xt(this.eventManager,this.sharedStylesHost,O,this.appId),this.rendererByCompId.set(O.id,A)),A.applyToHost(b),A}case 1:case m.ifc.ShadowDom:return new Yt(this.eventManager,this.sharedStylesHost,b,O);default:if(!this.rendererByCompId.has(O.id)){const A=xt(O.id,O.styles,[]);this.sharedStylesHost.addStyles(A),this.rendererByCompId.set(O.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ae.\u0275fac=function(b){return new(b||ae)(m.LFG(ye),m.LFG($e),m.LFG(m.AFp))},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac}),ae})();class Ue{constructor(Y){this.eventManager=Y,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Y,b){return b?document.createElementNS(tt[b],Y):document.createElement(Y)}createComment(Y){return document.createComment(Y)}createText(Y){return document.createTextNode(Y)}appendChild(Y,b){Y.appendChild(b)}insertBefore(Y,b,O){Y&&Y.insertBefore(b,O)}removeChild(Y,b){Y&&Y.removeChild(b)}selectRootElement(Y,b){let O="string"==typeof Y?document.querySelector(Y):Y;if(!O)throw new Error(`The selector "${Y}" did not match any elements`);return b||(O.textContent=""),O}parentNode(Y){return Y.parentNode}nextSibling(Y){return Y.nextSibling}setAttribute(Y,b,O,A){if(A){b=A+":"+b;const ee=tt[A];ee?Y.setAttributeNS(ee,b,O):Y.setAttribute(b,O)}else Y.setAttribute(b,O)}removeAttribute(Y,b,O){if(O){const A=tt[O];A?Y.removeAttributeNS(A,b):Y.removeAttribute(`${O}:${b}`)}else Y.removeAttribute(b)}addClass(Y,b){Y.classList.add(b)}removeClass(Y,b){Y.classList.remove(b)}setStyle(Y,b,O,A){A&(m.JOm.DashCase|m.JOm.Important)?Y.style.setProperty(b,O,A&m.JOm.Important?"important":""):Y.style[b]=O}removeStyle(Y,b,O){O&m.JOm.DashCase?Y.style.removeProperty(b):Y.style[b]=""}setProperty(Y,b,O){Y[b]=O}setValue(Y,b){Y.nodeValue=b}listen(Y,b,O){return"string"==typeof Y?this.eventManager.addGlobalEventListener(Y,b,Xe(O)):this.eventManager.addEventListener(Y,b,Xe(O))}}class Xt extends Ue{constructor(Y,b,O,A){super(Y),this.component=O;const ee=xt(A+"-"+O.id,O.styles,[]);b.addStyles(ee),this.contentAttr=function Pt(ae){return"_ngcontent-%COMP%".replace(je,ae)}(A+"-"+O.id),this.hostAttr=function ht(ae){return"_nghost-%COMP%".replace(je,ae)}(A+"-"+O.id)}applyToHost(Y){super.setAttribute(Y,this.hostAttr,"")}createElement(Y,b){const O=super.createElement(Y,b);return super.setAttribute(O,this.contentAttr,""),O}}class Yt extends Ue{constructor(Y,b,O,A){super(Y),this.sharedStylesHost=b,this.hostEl=O,this.shadowRoot=O.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ee=xt(A.id,A.styles,[]);for(let We=0;We<ee.length;We++){const Lt=document.createElement("style");Lt.textContent=ee[We],this.shadowRoot.appendChild(Lt)}}nodeOrShadowRoot(Y){return Y===this.hostEl?this.shadowRoot:Y}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Y,b){return super.appendChild(this.nodeOrShadowRoot(Y),b)}insertBefore(Y,b,O){return super.insertBefore(this.nodeOrShadowRoot(Y),b,O)}removeChild(Y,b){return super.removeChild(this.nodeOrShadowRoot(Y),b)}parentNode(Y){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Y)))}}let at=(()=>{class ae extends Ae{constructor(b){super(b)}supports(b){return!0}addEventListener(b,O,A){return b.addEventListener(O,A,!1),()=>this.removeEventListener(b,O,A)}removeEventListener(b,O,A){return b.removeEventListener(O,A)}}return ae.\u0275fac=function(b){return new(b||ae)(m.LFG(p.K0))},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const kt=["alt","control","meta","shift"],he={"\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"},me={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},J={alt:ae=>ae.altKey,control:ae=>ae.ctrlKey,meta:ae=>ae.metaKey,shift:ae=>ae.shiftKey};let ue=(()=>{class ae extends Ae{constructor(b){super(b)}supports(b){return null!=ae.parseEventName(b)}addEventListener(b,O,A){const ee=ae.parseEventName(O),We=ae.eventCallback(ee.fullKey,A,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,p.q)().onAndCancel(b,ee.domEventName,We))}static parseEventName(b){const O=b.toLowerCase().split("."),A=O.shift();if(0===O.length||"keydown"!==A&&"keyup"!==A)return null;const ee=ae._normalizeKey(O.pop());let We="";if(kt.forEach(Ft=>{const yn=O.indexOf(Ft);yn>-1&&(O.splice(yn,1),We+=Ft+".")}),We+=ee,0!=O.length||0===ee.length)return null;const Lt={};return Lt.domEventName=A,Lt.fullKey=We,Lt}static getEventFullKey(b){let O="",A=function Pe(ae){let Y=ae.key;if(null==Y){if(Y=ae.keyIdentifier,null==Y)return"Unidentified";Y.startsWith("U+")&&(Y=String.fromCharCode(parseInt(Y.substring(2),16)),3===ae.location&&me.hasOwnProperty(Y)&&(Y=me[Y]))}return he[Y]||Y}(b);return A=A.toLowerCase()," "===A?A="space":"."===A&&(A="dot"),kt.forEach(ee=>{ee!=A&&J[ee](b)&&(O+=ee+".")}),O+=A,O}static eventCallback(b,O,A){return ee=>{ae.getEventFullKey(ee)===b&&A.runGuarded(()=>O(ee))}}static _normalizeKey(b){return"esc"===b?"escape":b}}return ae.\u0275fac=function(b){return new(b||ae)(m.LFG(p.K0))},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const re=(0,m.eFA)(m._c5,"browser",[{provide:m.Lbi,useValue:p.bD},{provide:m.g9A,useValue:function q(){le.makeCurrent(),K.init()},multi:!0},{provide:p.K0,useFactory:function H(){return(0,m.RDi)(document),document},deps:[]}]),X=[{provide:m.zSh,useValue:"root"},{provide:m.qLn,useFactory:function de(){return new m.qLn},deps:[]},{provide:Oe,useClass:at,multi:!0,deps:[p.K0,m.R0b,m.Lbi]},{provide:Oe,useClass:ue,multi:!0,deps:[p.K0]},{provide:qe,useClass:qe,deps:[ye,$e,m.AFp]},{provide:m.FYo,useExisting:qe},{provide:Te,useExisting:$e},{provide:$e,useClass:$e,deps:[p.K0]},{provide:m.dDg,useClass:m.dDg,deps:[m.R0b]},{provide:ye,useClass:ye,deps:[Oe,m.R0b]},{provide:p.JF,useClass:ce,deps:[]}];let _e=(()=>{class ae{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:ae,providers:[{provide:m.AFp,useValue:b.appId},{provide:oe,useExisting:m.AFp},V]}}}return ae.\u0275fac=function(b){return new(b||ae)(m.LFG(ae,12))},ae.\u0275mod=m.oAB({type:ae}),ae.\u0275inj=m.cJS({providers:X,imports:[p.ez,m.hGG]}),ae})(),ct=(()=>{class ae{constructor(b){this._doc=b}getTitle(){return this._doc.title}setTitle(b){this._doc.title=b||""}}return ae.\u0275fac=function(b){return new(b||ae)(m.LFG(p.K0))},ae.\u0275prov=m.Yz7({token:ae,factory:function(b){let O=null;return O=b?new b:function st(){return new ct((0,m.LFG)(p.K0))}(),O},providedIn:"root"}),ae})();"undefined"!=typeof window&&window;let Kn=(()=>{class ae{}return ae.\u0275fac=function(b){return new(b||ae)},ae.\u0275prov=m.Yz7({token:ae,factory:function(b){let O=null;return O=b?new(b||ae):m.LFG(Cn),O},providedIn:"root"}),ae})(),Cn=(()=>{class ae extends Kn{constructor(b){super(),this._doc=b}sanitize(b,O){if(null==O)return null;switch(b){case m.q3G.NONE:return O;case m.q3G.HTML:return(0,m.qzn)(O,"HTML")?(0,m.z3N)(O):(0,m.EiD)(this._doc,String(O)).toString();case m.q3G.STYLE:return(0,m.qzn)(O,"Style")?(0,m.z3N)(O):O;case m.q3G.SCRIPT:if((0,m.qzn)(O,"Script"))return(0,m.z3N)(O);throw new Error("unsafe value used in a script context");case m.q3G.URL:return(0,m.yhl)(O),(0,m.qzn)(O,"URL")?(0,m.z3N)(O):(0,m.mCW)(String(O));case m.q3G.RESOURCE_URL:if((0,m.qzn)(O,"ResourceURL"))return(0,m.z3N)(O);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 ae.\u0275fac=function(b){return new(b||ae)(m.LFG(p.K0))},ae.\u0275prov=m.Yz7({token:ae,factory:function(b){let O=null;return O=b?new b:function rr(ae){return new Cn(ae.get(p.K0))}(m.LFG(m.zs3)),O},providedIn:"root"}),ae})()},2302:(Ye,fe,M)=>{M.d(fe,{gz:()=>zt,m2:()=>q,F0:()=>Bn,Od:()=>Ws,yS:()=>Ti,Bz:()=>Mi,lC:()=>Is});var p=M(5e3);const se=(()=>{function h(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return h.prototype=Object.create(Error.prototype),h})();var le=M(5254),B=M(1086),N=M(591),Z=M(6053),Q=M(2916),oe=M(1221),U=M(8514),V=M(8896),K=M(1762),ce=M(8929),Oe=M(2198),ye=M(3489),Ae=M(4231);function Te(h){return function(u){return 0===h?(0,V.c)():u.lift(new $e(h))}}class $e{constructor(c){if(this.total=c,this.total<0)throw new Ae.W}call(c,u){return u.subscribe(new Le(c,this.total))}}class Le extends ye.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 F=u++%y;c.next(D[F])}}c.complete()}}function tt(h=ze){return c=>c.lift(new je(h))}class je{constructor(c){this.errorFactory=c}call(c,u){return u.subscribe(new be(c,this.errorFactory))}}class be extends ye.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 ze(){return new se}function $t(h=null){return c=>c.lift(new Zt(h))}class Zt{constructor(c){this.defaultValue=c}call(c,u){return u.subscribe(new Pt(c,this.defaultValue))}}class Pt extends ye.L{constructor(c,u){super(c),this.defaultValue=u,this.isEmpty=!0}_next(c){this.isEmpty=!1,this.destination.next(c)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var ht=M(5379),Xe=M(2986);function ot(h,c){const u=arguments.length>=2;return y=>y.pipe(h?(0,Oe.h)((D,I)=>h(D,I,y)):ht.y,(0,Xe.q)(1),u?$t(c):tt(()=>new se))}var qe=M(4850),Ue=M(7545),Fn=M(1059),Nt=M(2014),Xt=M(7221),Yt=M(1406),at=M(1709),kt=M(2994),Kt=M(4327),he=M(537),me=M(9146),J=M(9808);class ue{constructor(c,u){this.id=c,this.url=u}}class Pe extends ue{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 q extends ue{constructor(c,u,y){super(c,u),this.urlAfterRedirects=y}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class de extends ue{constructor(c,u,y){super(c,u),this.reason=y}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class H extends ue{constructor(c,u,y){super(c,u),this.error=y}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ne extends ue{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 re extends ue{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 X extends ue{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 _e extends ue{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 Fe extends ue{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 Me{constructor(c){this.route=c}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xe{constructor(c){this.route=c}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class st{constructor(c){this.snapshot=c}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(c){this.snapshot=c}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lt{constructor(c){this.snapshot=c}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ge{constructor(c){this.snapshot=c}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ${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 k="primary";class Ie{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 Ce(h){return new Ie(h)}const Be="ngNavigationCancelingError";function Ne(h){const c=Error("NavigationCancelingError: "+h);return c[Be]=!0,c}function vt(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 F=y[I],G=h[I];if(F.startsWith(":"))D[F.substring(1)]=G;else if(F!==G.path)return null}return{consumed:h.slice(0,y.length),posParams:D}}function dt(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],!bn(h[D],c[D]))return!1;return!0}function bn(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 on(h){return Array.prototype.concat.apply([],h)}function Et(h){return h.length>0?h[h.length-1]:null}function Ht(h,c){for(const u in h)h.hasOwnProperty(u)&&c(h[u],u)}function yt(h){return(0,p.CqO)(h)?h:(0,p.QGY)(h)?(0,le.D)(Promise.resolve(h)):(0,B.of)(h)}const kn={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},dn={exact:function Dr(h,c){return dt(h,c)},subset:function Nr(h,c){return Object.keys(c).length<=Object.keys(h).length&&Object.keys(c).every(u=>bn(h[u],c[u]))},ignored:()=>!0};function mn(h,c,u){return kn[u.paths](h.root,c.root,u.matrixParams)&&dn[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[k])&&Kn(h.children[k],c,I,y)}}function rr(h,c,u){return c.every((y,D)=>dn[u](h[D].parameters,y.parameters))}class Cn{constructor(c,u,y){this.root=c,this.queryParams=u,this.fragment=y}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ce(this.queryParams)),this._queryParamMap}toString(){return We.serialize(this)}}class bt{constructor(c,u){this.segments=c,this.children=u,this.parent=null,Ht(u,(y,D)=>y.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}}class ae{constructor(c,u){this.path=c,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=Ce(this.parameters)),this._parameterMap}toString(){return He(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 Cn(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(c){const u=`/${Ft(c.root,!0)}`,y=function qt(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 We=new ee;function Lt(h){return h.segments.map(c=>He(c)).join("/")}function Ft(h,c){if(!h.hasChildren())return Lt(h);if(c){const u=h.children[k]?Ft(h.children[k],!1):"",y=[];return Ht(h.children,(D,I)=>{I!==k&&y.push(`${I}:${Ft(D,!1)}`)}),y.length>0?`${u}(${y.join("//")})`:u}{const u=function O(h,c){let u=[];return Ht(h.children,(y,D)=>{D===k&&(u=u.concat(c(y,D)))}),Ht(h.children,(y,D)=>{D!==k&&(u=u.concat(c(y,D)))}),u}(h,(y,D)=>D===k?[Ft(h.children[k],!1)]:[`${D}:${Ft(y,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[k]?`${Lt(h)}/${u[0]}`:`${Lt(h)}/(${u.join("//")})`}}function yn(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sr(h){return yn(h).replace(/%3B/gi,";")}function pn(h){return yn(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Er(h){return decodeURIComponent(h)}function wn(h){return Er(h.replace(/\+/g,"%20"))}function He(h){return`${pn(h.path)}${function At(h){return Object.keys(h).map(c=>`;${pn(c)}=${pn(h[c])}`).join("")}(h.parameters)}`}const Ln=/^[^\/()?;=#]+/;function Yn(h){const c=h.match(Ln);return c?c[0]:""}const gn=/^[^=?&#]+/,en=/^[^&#]+/;class br{constructor(c){this.url=c,this.remaining=c}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],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[k]=new bt(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 ae(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(gn);return c?c[0]:""}(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const F=function Fr(h){const c=h.match(en);return c?c[0]:""}(this.remaining);F&&(y=F,this.capture(y))}const D=wn(u),I=wn(y);if(c.hasOwnProperty(D)){let F=c[D];Array.isArray(F)||(F=[F],c[D]=F),F.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=k);const F=this.parseChildren();u[I]=1===Object.keys(F).length?F[k]:new bt([],F),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 Ct{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 vn extends Ct{constructor(c,u){super(c),this.snapshot=u,In(this,c)}toString(){return this.snapshot.toString()}}function pr(h,c){const u=function Gr(h,c){const F=new gr([],{},{},"",{},k,c,null,h.root,-1,{});return new An("",new Hn(F,[]))}(h,c),y=new N.X([new ae("",{})]),D=new N.X({}),I=new N.X({}),F=new N.X({}),G=new N.X(""),De=new zt(y,D,F,G,I,k,c,u.root);return De.snapshot=u.root,new vn(new Hn(De,[]),u)}class zt{constructor(c,u,y,D,I,F,G,De){this.url=c,this.params=u,this.queryParams=y,this.fragment=D,this.data=I,this.outlet=F,this.component=G,this._futureSnapshot=De}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,qe.U)(c=>Ce(c)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,qe.U)(c=>Ce(c)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gt(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,F,G,De,Je,Vt,ft){this.url=c,this.params=u,this.queryParams=y,this.fragment=D,this.data=I,this.outlet=F,this.component=G,this.routeConfig=De,this._urlSegment=Je,this._lastPathIndex=Vt,this._resolve=ft}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=Ce(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ce(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(y=>y.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class An extends Ct{constructor(c,u){super(u),this.url=c,In(this,u)}toString(){return Cr(this._root)}}function In(h,c){c.value._routerState=h,c.children.forEach(u=>In(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,dt(c.queryParams,u.queryParams)||h.queryParams.next(u.queryParams),c.fragment!==u.fragment&&h.fragment.next(u.fragment),dt(c.params,u.params)||h.params.next(u.params),function ln(h,c){if(h.length!==c.length)return!1;for(let u=0;u<h.length;++u)if(!dt(h[u],c[u]))return!1;return!0}(c.url,u.url)||h.url.next(u.url),dt(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=dt(h.params,c.params)&&function Y(h,c){return b(h,c)&&h.every((u,y)=>dt(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 F=I.route;return F.value._futureSnapshot=c.value,F.children=c.children.map(G=>Kr(h,G)),F}}const y=function ti(h){return new zt(new N.X(h.url),new N.X(h.params),new N.X(h.queryParams),new N.X(h.fragment),new N.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&&Ht(y,(F,G)=>{I[G]=Array.isArray(F)?F.map(De=>`${De}`):`${F}`}),new Cn(u.root===h?c:ni(u.root,h,c),I,D)}function ni(h,c,u){const y={};return Ht(h.children,(D,I)=>{y[I]=D===c?u:ni(D,c,u)}),new bt(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!==Et(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 bt([],{})),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 F=h.segments[D],G=u[y];if(or(G))break;const De=`${G}`,Je=y<u.length-1?u[y+1]:null;if(D>0&&void 0===De)break;if(De&&Je&&"object"==typeof Je&&void 0===Je.outlets){if(!si(De,Je,F))return I;y+=2}else{if(!si(De,{},F))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 bt(h.segments.slice(0,y.pathIndex),{});return I.children[k]=new bt(h.segments.slice(y.pathIndex),h.children),Ss(I,0,D)}return y.match&&0===D.length?new bt(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 bt(h.segments,{});{const y=function Ei(h){return or(h[0])?h[0].outlets:{[k]:h}}(u),D={};return Ht(y,(I,F)=>{"string"==typeof I&&(I=[I]),null!==I&&(D[F]=as(h.children[F],c,I))}),Ht(h.children,(I,F)=>{void 0===y[F]&&(D[F]=I)}),new bt(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 De=ls(I.outlets);return new bt(y,De)}if(0===D&&Pn(u[0])){y.push(new ae(h.segments[c].path,us(u[0]))),D++;continue}const F=or(I)?I.outlets[k]:`${I}`,G=D<u.length-1?u[D+1]:null;F&&G&&Pn(G)?(y.push(new ae(F,us(G))),D+=2):(y.push(new ae(F,{})),D++)}return new bt(y,{})}function ls(h){const c={};return Ht(h,(u,y)=>{"string"==typeof u&&(u=[u]),null!==u&&(c[y]=Ms(new bt([],{}),0,u))}),c}function us(h){const c={};return Ht(h,(u,y)=>c[y]=`${u}`),c}function si(h,c,u){return h==u.path&&dt(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 F=I.value.outlet;this.deactivateRoutes(I,D[F],y),delete D[F]}),Ht(D,(I,F)=>{this.deactivateRouteAndItsChildren(I,y)})}deactivateRoutes(c,u,y){const D=c.value,I=u?u.value:null;if(D===I)if(D.component){const F=y.getContext(D.outlet);F&&this.deactivateChildRoutes(c,u,F.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 F of Object.keys(I))this.deactivateRouteAndItsChildren(I[F],D);if(y&&y.outlet){const F=y.outlet.detach(),G=y.children.onOutletDeactivated();this.routeReuseStrategy.store(c.value.snapshot,{componentRef:F,route:c,contexts:G})}}deactivateRouteAndOutlet(c,u){const y=u.getContext(c.value.outlet),D=y&&c.value.component?y.children:u,I=Wn(c);for(const F of Object.keys(I))this.deactivateRouteAndItsChildren(I[F],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 ge(I.value.snapshot))}),c.children.length&&this.forwardEvent(new ct(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 F=y.getOrCreateContext(D.outlet);this.activateChildRoutes(c,u,F.children)}else this.activateChildRoutes(c,u,y);else if(D.component){const F=y.getOrCreateContext(D.outlet);if(this.routeReuseStrategy.shouldAttach(D.snapshot)){const G=this.routeReuseStrategy.retrieve(D.snapshot);this.routeReuseStrategy.store(D.snapshot,null),F.children.onOutletReAttached(G.contexts),F.attachRef=G.componentRef,F.route=G.route.value,F.outlet&&F.outlet.attach(G.componentRef,G.route.value),Wr(G.route.value),this.activateChildRoutes(c,null,F.children)}else{const G=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),De=G?G.module.componentFactoryResolver:null;F.attachRef=null,F.route=D,F.resolver=De,F.outlet&&F.outlet.activateWith(D,De),this.activateChildRoutes(c,null,F.children)}}else this.activateChildRoutes(c,null,y)}}class cs{constructor(c,u){this.routes=c,this.module=u}}function xn(h){return"function"==typeof h}function qn(h){return h instanceof Cn}const mr=Symbol("INITIAL_VALUE");function Qr(){return(0,Ue.w)(h=>(0,Z.aj)(h.map(c=>c.pipe((0,Xe.q)(1),(0,Fn.O)(mr)))).pipe((0,Nt.R)((c,u)=>{let y=!1;return u.reduce((D,I,F)=>D!==mr?D:(I===mr&&(y=!0),y||!1!==I&&F!==u.length-1&&!qn(I)?D:I),c)},mr),(0,Oe.h)(c=>c!==mr),(0,qe.U)(c=>qn(c)?c:!0===c),(0,Xe.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,F){this.parentContexts=u,this.location=y,this.resolver=D,this.changeDetector=F,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||k,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 F=(y=y||this.resolver).resolveComponentFactory(u._futureSnapshot.routeConfig.component),G=this.parentContexts.getOrCreateContext(this.name).children,De=new Vs(u,G,this.location.injector);this.activated=this.location.createComponent(F,this.location.length,De),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===zt?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!==k&&(u.component=ai),u}function Zn(h){return h.outlet||k}function an(h,c){const u=h.filter(y=>Zn(y)===c);return u.push(...h.filter(y=>Zn(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||vt)(u,h,c);if(!I)return Object.assign({},_);const F={};Ht(I.posParams,(De,Je)=>{F[Je]=De.path});const G=I.consumed.length>0?Object.assign(Object.assign({},F),I.consumed[I.consumed.length-1].parameters):F;return{matched:!0,consumedSegments:I.consumed,lastChild:I.consumed.length,parameters:G,positionalParamSegments:null!==(y=I.posParams)&&void 0!==y?y:{}}}function v(h,c,u,y,D="corrected"){if(u.length>0&&function pe(h,c,u){return u.some(y=>Qe(h,c,y)&&Zn(y)!==k)}(h,u,y)){const F=new bt(c,function W(h,c,u,y){const D={};D[k]=y,y._sourceSegment=h,y._segmentIndexShift=c.length;for(const I of u)if(""===I.path&&Zn(I)!==k){const F=new bt([],{});F._sourceSegment=h,F._segmentIndexShift=c.length,D[Zn(I)]=F}return D}(h,c,y,new bt(u,h.children)));return F._sourceSegment=h,F._segmentIndexShift=c.length,{segmentGroup:F,slicedSegments:[]}}if(0===u.length&&function we(h,c,u){return u.some(y=>Qe(h,c,y))}(h,u,y)){const F=new bt(h.segments,function P(h,c,u,y,D,I){const F={};for(const G of y)if(Qe(h,u,G)&&!D[Zn(G)]){const De=new bt([],{});De._sourceSegment=h,De._segmentIndexShift="legacy"===I?h.segments.length:c.length,F[Zn(G)]=De}return Object.assign(Object.assign({},D),F)}(h,c,u,y,h.children,D));return F._sourceSegment=h,F._segmentIndexShift=c.length,{segmentGroup:F,slicedSegments:u}}const I=new bt(h.segments,h.children);return I._sourceSegment=h,I._segmentIndexShift=c.length,{segmentGroup:I,slicedSegments:u}}function Qe(h,c,u){return(!(h.hasChildren()||c.length>0)||"full"!==u.pathMatch)&&""===u.path}function Qt(h,c,u,y){return!!(Zn(h)===y||y!==k&&Qe(c,u,h))&&("**"===h.path||S(c,h,u).matched)}function jt(h,c,u){return 0===c.length&&!h.children[u]}class St{constructor(c){this.segmentGroup=c||null}}class Bt{constructor(c){this.urlTree=c}}function fn(h){return new Q.y(c=>c.error(new St(h)))}function tn(h){return new Q.y(c=>c.error(new Bt(h)))}function un(h){return new Q.y(c=>c.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${h}'`)))}class pt{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 bt(c.segments,c.children);return this.expandSegmentGroup(this.ngModule,this.config,u,k).pipe((0,qe.U)(I=>this.createUrlTree(qr(I),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Xt.K)(I=>{if(I instanceof Bt)return this.allowRedirects=!1,this.match(I.urlTree);throw I instanceof St?this.noMatchError(I):I}))}match(c){return this.expandSegmentGroup(this.ngModule,this.config,c.root,k).pipe((0,qe.U)(D=>this.createUrlTree(qr(D),c.queryParams,c.fragment))).pipe((0,Xt.K)(D=>{throw D instanceof St?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 bt([],{[k]:c}):c;return new Cn(D,u,y)}expandSegmentGroup(c,u,y,D){return 0===y.segments.length&&y.hasChildren()?this.expandChildren(c,u,y).pipe((0,qe.U)(I=>new bt([],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,Yt.b)(I=>{const F=y.children[I],G=an(u,I);return this.expandSegmentGroup(c,G,F,I).pipe((0,qe.U)(De=>({segment:De,outlet:I})))}),(0,Nt.R)((I,F)=>(I[F.outlet]=F.segment,I),{}),function xt(h,c){const u=arguments.length>=2;return y=>y.pipe(h?(0,Oe.h)((D,I)=>h(D,I,y)):ht.y,Te(1),u?$t(c):tt(()=>new se))}())}expandSegment(c,u,y,D,I,F){return(0,le.D)(y).pipe((0,Yt.b)(G=>this.expandSegmentAgainstRoute(c,u,y,G,D,I,F).pipe((0,Xt.K)(Je=>{if(Je instanceof St)return(0,B.of)(null);throw Je}))),ot(G=>!!G),(0,Xt.K)((G,De)=>{if(G instanceof se||"EmptyError"===G.name){if(jt(u,D,I))return(0,B.of)(new bt([],{}));throw new St(u)}throw G}))}expandSegmentAgainstRoute(c,u,y,D,I,F,G){return Qt(D,u,I,F)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(c,u,D,I,F):G&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(c,u,y,D,I,F):fn(u):fn(u)}expandSegmentAgainstRouteUsingRedirect(c,u,y,D,I,F){return"**"===D.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(c,y,D,F):this.expandRegularSegmentAgainstRouteUsingRedirect(c,u,y,D,I,F)}expandWildCardWithParamsAgainstRouteUsingRedirect(c,u,y,D){const I=this.applyRedirectCommands([],y.redirectTo,{});return y.redirectTo.startsWith("/")?tn(I):this.lineralizeSegments(y,I).pipe((0,at.zg)(F=>{const G=new bt(F,{});return this.expandSegment(c,G,u,F,D,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(c,u,y,D,I,F){const{matched:G,consumedSegments:De,lastChild:Je,positionalParamSegments:Vt}=S(u,D,I);if(!G)return fn(u);const ft=this.applyRedirectCommands(De,D.redirectTo,Vt);return D.redirectTo.startsWith("/")?tn(ft):this.lineralizeSegments(D,ft).pipe((0,at.zg)(Wt=>this.expandSegment(c,u,y,Wt.concat(I.slice(Je)),F,!1)))}matchSegmentAgainstRoute(c,u,y,D,I){if("**"===y.path)return y.loadChildren?(y._loadedConfig?(0,B.of)(y._loadedConfig):this.configLoader.load(c.injector,y)).pipe((0,qe.U)(Wt=>(y._loadedConfig=Wt,new bt(D,{})))):(0,B.of)(new bt(D,{}));const{matched:F,consumedSegments:G,lastChild:De}=S(u,y,D);if(!F)return fn(u);const Je=D.slice(De);return this.getChildConfig(c,y,D).pipe((0,at.zg)(ft=>{const Wt=ft.module,rn=ft.routes,{segmentGroup:qs,slicedSegments:Hr}=v(u,G,Je,rn),Xn=new bt(qs.segments,qs.children);if(0===Hr.length&&Xn.hasChildren())return this.expandChildren(Wt,rn,Xn).pipe((0,qe.U)(Ir=>new bt(G,Ir)));if(0===rn.length&&0===Hr.length)return(0,B.of)(new bt(G,{}));const es=Zn(y)===I;return this.expandSegment(Wt,Xn,rn,Hr,es?k:I,!0).pipe((0,qe.U)(Ar=>new bt(G.concat(Ar.segments),Ar.children)))}))}getChildConfig(c,u,y){return u.children?(0,B.of)(new cs(u.children,c)):u.loadChildren?void 0!==u._loadedConfig?(0,B.of)(u._loadedConfig):this.runCanLoadGuards(c.injector,u,y).pipe((0,at.zg)(D=>D?this.configLoader.load(c.injector,u).pipe((0,qe.U)(I=>(u._loadedConfig=I,I))):function Br(h){return new Q.y(c=>c.error(Ne(`Cannot load children because the guard of the route "path: '${h.path}'" returned false`)))}(u))):(0,B.of)(new cs([],c))}runCanLoadGuards(c,u,y){const D=u.canLoad;if(!D||0===D.length)return(0,B.of)(!0);const I=D.map(F=>{const G=c.get(F);let De;if(function Us(h){return h&&xn(h.canLoad)}(G))De=G.canLoad(u,y);else{if(!xn(G))throw new Error("Invalid CanLoad guard");De=G(u,y)}return yt(De)});return(0,B.of)(I).pipe(Qr(),(0,kt.b)(F=>{if(!qn(F))return;const G=Ne(`Redirecting to "${this.urlSerializer.serialize(F)}"`);throw G.url=F,G}),(0,qe.U)(F=>!0===F))}lineralizeSegments(c,u){let y=[],D=u.root;for(;;){if(y=y.concat(D.segments),0===D.numberOfChildren)return(0,B.of)(y);if(D.numberOfChildren>1||!D.children[k])return un(c.redirectTo);D=D.children[k]}}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 Cn(I,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(c,u){const y={};return Ht(c,(D,I)=>{if("string"==typeof D&&D.startsWith(":")){const G=D.substring(1);y[I]=u[G]}else y[I]=D}),y}createSegmentGroup(c,u,y,D){const I=this.createSegments(c,u.segments,y,D);let F={};return Ht(u.children,(G,De)=>{F[De]=this.createSegmentGroup(c,G,y,D)}),new bt(I,F)}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 qr(h){const c={};for(const y of Object.keys(h.children)){const I=qr(h.children[y]);(I.segments.length>0||I.hasChildren())&&(c[y]=I)}return function jr(h){if(1===h.numberOfChildren&&h.children[k]){const c=h.children[k];return new bt(h.segments.concat(c.segments),c.children)}return h}(new bt(h.segments,c))}class Ps{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(F=>{(function x(h,c,u,y,D={canDeactivateChecks:[],canActivateChecks:[]}){const I=h.value,F=c?c.value:null,G=u?u.getContext(h.value.outlet):null;if(F&&I.routeConfig===F.routeConfig){const De=function L(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)||!dt(h.queryParams,c.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wr(h,c)||!dt(h.queryParams,c.queryParams);default:return!wr(h,c)}}(F,I,I.routeConfig.runGuardsAndResolvers);De?D.canActivateChecks.push(new Ps(y)):(I.data=F.data,I._resolvedData=F._resolvedData),C(h,c,I.component?G?G.children:null:u,y,D),De&&G&&G.outlet&&G.outlet.isActivated&&D.canDeactivateChecks.push(new zs(G.outlet.component,F))}else F&&j(c,G,D),D.canActivateChecks.push(new Ps(y)),C(h,null,I.component?G?G.children:null:u,y,D)})(F,I[F.value.outlet],u,y.concat([F.value]),D),delete I[F.value.outlet]}),Ht(I,(F,G)=>j(F,u.getContext(G),D)),D}function j(h,c,u){const y=Wn(h),D=h.value;Ht(y,(I,F)=>{j(I,D.component?c?c.children.getContext(F):null:c,u)}),u.canDeactivateChecks.push(new zs(D.component&&c&&c.outlet&&c.outlet.isActivated?c.outlet.component:null,D))}class Tt{}function cn(h){return new Q.y(c=>c.error(h))}class hn{constructor(c,u,y,D,I,F){this.rootComponentType=c,this.config=u,this.urlTree=y,this.url=D,this.paramsInheritanceStrategy=I,this.relativeLinkResolution=F}recognize(){const c=v(this.urlTree.root,[],[],this.config.filter(F=>void 0===F.redirectTo),this.relativeLinkResolution).segmentGroup,u=this.processSegmentGroup(this.config,c,k);if(null===u)return null;const y=new gr([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},k,this.rootComponentType,null,this.urlTree.root,-1,{}),D=new Hn(y,u),I=new An(this.url,D);return this.inheritParamsAndData(I._root),I}inheritParamsAndData(c){const u=c.value,y=Gt(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 F=u.children[I],G=an(c,I),De=this.processSegmentGroup(G,F,I);if(null===De)return null;y.push(...De)}const D=Rn(y);return function Tn(h){h.sort((c,u)=>c.value.outlet===k?-1:u.value.outlet===k?1:c.value.outlet.localeCompare(u.value.outlet))}(D),D}processSegment(c,u,y,D){for(const I of c){const F=this.processSegmentAgainstRoute(I,u,y,D);if(null!==F)return F}return jt(u,y,D)?[]:null}processSegmentAgainstRoute(c,u,y,D){if(c.redirectTo||!Qt(c,u,y,D))return null;let I,F=[],G=[];if("**"===c.path){const rn=y.length>0?Et(y).parameters:{};I=new gr(y,rn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xs(c),Zn(c),c.component,c,Jn(u),lr(u)+y.length,fs(c))}else{const rn=S(u,c,y);if(!rn.matched)return null;F=rn.consumedSegments,G=y.slice(rn.lastChild),I=new gr(F,rn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xs(c),Zn(c),c.component,c,Jn(u),lr(u)+F.length,fs(c))}const De=function Zr(h){return h.children?h.children:h.loadChildren?h._loadedConfig.routes:[]}(c),{segmentGroup:Je,slicedSegments:Vt}=v(u,F,G,De.filter(rn=>void 0===rn.redirectTo),this.relativeLinkResolution);if(0===Vt.length&&Je.hasChildren()){const rn=this.processChildren(De,Je);return null===rn?null:[new Hn(I,rn)]}if(0===De.length&&0===Vt.length)return[new Hn(I,[])];const ft=Zn(c)===D,Wt=this.processSegment(De,Je,Vt,ft?k:D);return null===Wt?null:[new Hn(I,Wt)]}}function yr(h){const c=h.value.routeConfig;return c&&""===c.path&&void 0===c.redirectTo}function Rn(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=Rn(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 ut(h){return[...Object.keys(h),...Object.getOwnPropertySymbols(h)]}function Rt(h){return(0,Ue.w)(c=>{const u=h(c);return u?(0,le.D)(u).pipe((0,qe.U)(()=>c)):(0,B.of)(c)})}class Jt 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 Sn=new p.OlP("ROUTES");class Dt{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,qe.U)(I=>{this.onLoadEndListener&&this.onLoadEndListener(u);const F=I.create(c);return new cs(on(F.injector.get(Sn,void 0,p.XFs.Self|p.XFs.Optional)).map(Lr),F)}),(0,Xt.K)(I=>{throw u._loader$=void 0,I}));return u._loader$=new K.c(D,()=>new ce.xQ).pipe((0,Kt.x)()),u._loader$}loadModuleFactory(c){return yt(c()).pipe((0,at.zg)(u=>u instanceof p.YKP?(0,B.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 Nn(h){throw h}function Jr(h,c,u){return c.parse("/")}function Mr(h,c){return(0,B.of)(null)}const Xr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Bn=(()=>{class h{constructor(u,y,D,I,F,G,De){this.rootComponentType=u,this.urlSerializer=y,this.rootContexts=D,this.location=I,this.config=De,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ce.xQ,this.errorHandler=Nn,this.malformedUriErrorHandler=Jr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mr,afterPreactivation:Mr},this.urlHandlingStrategy=new uo,this.routeReuseStrategy=new Jt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=F.get(p.h0i),this.console=F.get(p.c2e);const ft=F.get(p.R0b);this.isNgZoneEnabled=ft instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(De),this.currentUrlTree=function Mt(){return new Cn(new bt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Dt(F,G,Wt=>this.triggerEvent(new Me(Wt)),Wt=>this.triggerEvent(new xe(Wt))),this.routerState=pr(this.currentUrlTree,this.rootComponentType),this.transitions=new N.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,Oe.h)(D=>0!==D.id),(0,qe.U)(D=>Object.assign(Object.assign({},D),{extractedUrl:this.urlHandlingStrategy.extract(D.rawUrl)})),(0,Ue.w)(D=>{let I=!1,F=!1;return(0,B.of)(D).pipe((0,kt.b)(G=>{this.currentNavigation={id:G.id,initialUrl:G.currentRawUrl,extractedUrl:G.extractedUrl,trigger:G.source,extras:G.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Ue.w)(G=>{const De=this.browserUrlTree.toString(),Je=!this.navigated||G.extractedUrl.toString()!==De||De!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Je)&&this.urlHandlingStrategy.shouldProcessUrl(G.rawUrl))return Gs(G.source)&&(this.browserUrlTree=G.extractedUrl),(0,B.of)(G).pipe((0,Ue.w)(ft=>{const Wt=this.transitions.getValue();return y.next(new Pe(ft.id,this.serializeUrl(ft.extractedUrl),ft.source,ft.restoredState)),Wt!==this.transitions.getValue()?V.E:Promise.resolve(ft)}),function Os(h,c,u,y){return(0,Ue.w)(D=>function ar(h,c,u,y,D){return new pt(h,c,u,y,D).apply()}(h,c,u,D.extractedUrl,y).pipe((0,qe.U)(I=>Object.assign(Object.assign({},D),{urlAfterRedirects:I}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,kt.b)(ft=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:ft.urlAfterRedirects})}),function Ur(h,c,u,y,D){return(0,at.zg)(I=>function nn(h,c,u,y,D="emptyOnly",I="legacy"){try{const F=new hn(h,c,u,y,D,I).recognize();return null===F?cn(new Tt):(0,B.of)(F)}catch(F){return cn(F)}}(h,c,I.urlAfterRedirects,u(I.urlAfterRedirects),y,D).pipe((0,qe.U)(F=>Object.assign(Object.assign({},I),{targetSnapshot:F}))))}(this.rootComponentType,this.config,ft=>this.serializeUrl(ft),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,kt.b)(ft=>{if("eager"===this.urlUpdateStrategy){if(!ft.extras.skipLocationChange){const rn=this.urlHandlingStrategy.merge(ft.urlAfterRedirects,ft.rawUrl);this.setBrowserUrl(rn,ft)}this.browserUrlTree=ft.urlAfterRedirects}const Wt=new ne(ft.id,this.serializeUrl(ft.extractedUrl),this.serializeUrl(ft.urlAfterRedirects),ft.targetSnapshot);y.next(Wt)}));if(Je&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Wt,extractedUrl:rn,source:qs,restoredState:Hr,extras:Xn}=G,es=new Pe(Wt,this.serializeUrl(rn),qs,Hr);y.next(es);const Zs=pr(rn,this.rootComponentType).snapshot;return(0,B.of)(Object.assign(Object.assign({},G),{targetSnapshot:Zs,urlAfterRedirects:rn,extras:Object.assign(Object.assign({},Xn),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=G.rawUrl,G.resolve(null),V.E}),Rt(G=>{const{targetSnapshot:De,id:Je,extractedUrl:Vt,rawUrl:ft,extras:{skipLocationChange:Wt,replaceUrl:rn}}=G;return this.hooks.beforePreactivation(De,{navigationId:Je,appliedUrlTree:Vt,rawUrlTree:ft,skipLocationChange:!!Wt,replaceUrl:!!rn})}),(0,kt.b)(G=>{const De=new re(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(G.urlAfterRedirects),G.targetSnapshot);this.triggerEvent(De)}),(0,qe.U)(G=>Object.assign(Object.assign({},G),{guards:w(G.targetSnapshot,G.currentSnapshot,this.rootContexts)})),function te(h,c){return(0,at.zg)(u=>{const{targetSnapshot:y,currentSnapshot:D,guards:{canActivateChecks:I,canDeactivateChecks:F}}=u;return 0===F.length&&0===I.length?(0,B.of)(Object.assign(Object.assign({},u),{guardsResult:!0})):function ve(h,c,u,y){return(0,le.D)(h).pipe((0,at.zg)(D=>function rt(h,c,u,y,D){const I=c&&c.routeConfig?c.routeConfig.canDeactivate:null;if(!I||0===I.length)return(0,B.of)(!0);const F=I.map(G=>{const De=o(G,c,D);let Je;if(function oi(h){return h&&xn(h.canDeactivate)}(De))Je=yt(De.canDeactivate(h,c,u,y));else{if(!xn(De))throw new Error("Invalid CanDeactivate guard");Je=yt(De(h,c,u,y))}return Je.pipe(ot())});return(0,B.of)(F).pipe(Qr())}(D.component,D.route,u,c,y)),ot(D=>!0!==D,!0))}(F,y,D,h).pipe((0,at.zg)(G=>G&&function Yr(h){return"boolean"==typeof h}(G)?function ke(h,c,u,y){return(0,le.D)(c).pipe((0,Yt.b)(D=>(0,oe.z)(function wt(h,c){return null!==h&&c&&c(new st(h)),(0,B.of)(!0)}(D.route.parent,y),function nt(h,c){return null!==h&&c&&c(new lt(h)),(0,B.of)(!0)}(D.route,y),function it(h,c,u){const y=c[c.length-1],I=c.slice(0,c.length-1).reverse().map(F=>function a(h){const c=h.routeConfig?h.routeConfig.canActivateChild:null;return c&&0!==c.length?{node:h,guards:c}:null}(F)).filter(F=>null!==F).map(F=>(0,U.P)(()=>{const G=F.guards.map(De=>{const Je=o(De,F.node,u);let Vt;if(function As(h){return h&&xn(h.canActivateChild)}(Je))Vt=yt(Je.canActivateChild(y,h));else{if(!xn(Je))throw new Error("Invalid CanActivateChild guard");Vt=yt(Je(y,h))}return Vt.pipe(ot())});return(0,B.of)(G).pipe(Qr())}));return(0,B.of)(I).pipe(Qr())}(h,D.path,u),function It(h,c,u){const y=c.routeConfig?c.routeConfig.canActivate:null;if(!y||0===y.length)return(0,B.of)(!0);const D=y.map(I=>(0,U.P)(()=>{const F=o(I,c,u);let G;if(function Hs(h){return h&&xn(h.canActivate)}(F))G=yt(F.canActivate(c,h));else{if(!xn(F))throw new Error("Invalid CanActivate guard");G=yt(F(c,h))}return G.pipe(ot())}));return(0,B.of)(D).pipe(Qr())}(h,D.route,u))),ot(D=>!0!==D,!0))}(y,I,h,c):(0,B.of)(G)),(0,qe.U)(G=>Object.assign(Object.assign({},u),{guardsResult:G})))})}(this.ngModule.injector,G=>this.triggerEvent(G)),(0,kt.b)(G=>{if(qn(G.guardsResult)){const Je=Ne(`Redirecting to "${this.serializeUrl(G.guardsResult)}"`);throw Je.url=G.guardsResult,Je}const De=new X(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(G.urlAfterRedirects),G.targetSnapshot,!!G.guardsResult);this.triggerEvent(De)}),(0,Oe.h)(G=>!!G.guardsResult||(this.restoreHistory(G),this.cancelNavigationTransition(G,""),!1)),Rt(G=>{if(G.guards.canActivateChecks.length)return(0,B.of)(G).pipe((0,kt.b)(De=>{const Je=new _e(De.id,this.serializeUrl(De.extractedUrl),this.serializeUrl(De.urlAfterRedirects),De.targetSnapshot);this.triggerEvent(Je)}),(0,Ue.w)(De=>{let Je=!1;return(0,B.of)(De).pipe(function Rs(h,c){return(0,at.zg)(u=>{const{targetSnapshot:y,guards:{canActivateChecks:D}}=u;if(!D.length)return(0,B.of)(u);let I=0;return(0,le.D)(D).pipe((0,Yt.b)(F=>function ui(h,c,u,y){return function Ze(h,c,u,y){const D=ut(h);if(0===D.length)return(0,B.of)({});const I={};return(0,le.D)(D).pipe((0,at.zg)(F=>function gt(h,c,u,y){const D=o(h,c,y);return yt(D.resolve?D.resolve(c,u):D(c,u))}(h[F],c,u,y).pipe((0,kt.b)(G=>{I[F]=G}))),Te(1),(0,at.zg)(()=>ut(I).length===D.length?(0,B.of)(I):V.E))}(h._resolve,h,c,y).pipe((0,qe.U)(I=>(h._resolvedData=I,h.data=Object.assign(Object.assign({},h.data),Gt(h,u).resolve),null)))}(F.route,y,h,c)),(0,kt.b)(()=>I++),Te(1),(0,at.zg)(F=>I===D.length?(0,B.of)(u):V.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,kt.b)({next:()=>Je=!0,complete:()=>{Je||(this.restoreHistory(De),this.cancelNavigationTransition(De,"At least one route resolver didn't emit any value."))}}))}),(0,kt.b)(De=>{const Je=new Fe(De.id,this.serializeUrl(De.extractedUrl),this.serializeUrl(De.urlAfterRedirects),De.targetSnapshot);this.triggerEvent(Je)}))}),Rt(G=>{const{targetSnapshot:De,id:Je,extractedUrl:Vt,rawUrl:ft,extras:{skipLocationChange:Wt,replaceUrl:rn}}=G;return this.hooks.afterPreactivation(De,{navigationId:Je,appliedUrlTree:Vt,rawUrlTree:ft,skipLocationChange:!!Wt,replaceUrl:!!rn})}),(0,qe.U)(G=>{const De=function On(h,c,u){const y=Kr(h,c._root,u?u._root:void 0);return new vn(y,c)}(this.routeReuseStrategy,G.targetSnapshot,G.currentRouterState);return Object.assign(Object.assign({},G),{targetRouterState:De})}),(0,kt.b)(G=>{this.currentUrlTree=G.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl),this.routerState=G.targetRouterState,"deferred"===this.urlUpdateStrategy&&(G.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,G),this.browserUrlTree=G.urlAfterRedirects)}),((h,c,u)=>(0,qe.U)(y=>(new ii(c,y.targetRouterState,y.currentRouterState,u).activate(h),y)))(this.rootContexts,this.routeReuseStrategy,G=>this.triggerEvent(G)),(0,kt.b)({next(){I=!0},complete(){I=!0}}),(0,he.x)(()=>{var G;I||F||this.cancelNavigationTransition(D,`Navigation ID ${D.id} is not equal to the current navigation id ${this.navigationId}`),(null===(G=this.currentNavigation)||void 0===G?void 0:G.id)===D.id&&(this.currentNavigation=null)}),(0,Xt.K)(G=>{if(F=!0,function Ke(h){return h&&h[Be]}(G)){const De=qn(G.url);De||(this.navigated=!0,this.restoreHistory(D,!0));const Je=new de(D.id,this.serializeUrl(D.extractedUrl),G.message);y.next(Je),De?setTimeout(()=>{const Vt=this.urlHandlingStrategy.merge(G.url,this.rawUrlTree),ft={skipLocationChange:D.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Gs(D.source)};this.scheduleNavigation(Vt,"imperative",null,ft,{resolve:D.resolve,reject:D.reject,promise:D.promise})},0):D.resolve(!1)}else{this.restoreHistory(D,!0);const De=new H(D.id,this.serializeUrl(D.extractedUrl),G);y.next(De);try{D.resolve(this.errorHandler(G))}catch(Je){D.reject(Je)}}return V.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},F=(null===(D=u.state)||void 0===D?void 0:D.navigationId)?u.state:null;if(F){const De=Object.assign({},F);delete De.navigationId,delete De.\u0275routerPageId,0!==Object.keys(De).length&&(I.state=De)}const G=this.parseUrl(u.url);this.scheduleNavigation(G,y,F,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:F,queryParamsHandling:G,preserveFragment:De}=y,Je=D||this.routerState.root,Vt=De?this.currentUrlTree.fragment:F;let ft=null;switch(G){case"merge":ft=Object.assign(Object.assign({},this.currentUrlTree.queryParams),I);break;case"preserve":ft=this.currentUrlTree.queryParams;break;default:ft=I||null}return null!==ft&&(ft=this.removeEmptyProps(ft)),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,F)=>{if("object"==typeof I&&null!=I){if(I.outlets){const G={};return Ht(I.outlets,(De,Je)=>{G[Je]="string"==typeof De?De.split("/"):De}),[...D,{outlets:G}]}if(I.segmentPath)return[...D,I.segmentPath]}return"string"!=typeof I?[...D,I]:0===F?(I.split("/").forEach((G,De)=>{0==De&&"."===G||(0==De&&""===G?u=!0:".."===G?c++:""!=G&&D.push(G))}),D):[...D,I]},[]);return new Cs(u,c,y)}(u);if(I.toRoot())return Bs(c.root,new bt([],{}),c,y,D);const F=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),G=F.processChildren?Ss(F.segmentGroup,F.index,I.commands):as(F.segmentGroup,F.index,I.commands);return Bs(F.segmentGroup,G,c,y,D)}(Je,this.currentUrlTree,u,ft,null!=Vt?Vt:null)}navigateByUrl(u,y={skipLocationChange:!1}){const D=qn(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,qn(u))return mn(this.currentUrlTree,u,D);const I=this.parseUrl(u);return mn(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 q(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,F){var G,De,Je;if(this.disposed)return Promise.resolve(!1);const Vt=this.transitions.value,ft=Gs(y)&&Vt&&!Gs(Vt.source),Wt=Vt.rawUrl.toString()===u.toString(),rn=Vt.id===(null===(G=this.currentNavigation)||void 0===G?void 0:G.id);if(ft&&Wt&&rn)return Promise.resolve(!0);let Hr,Xn,es;F?(Hr=F.resolve,Xn=F.reject,es=F.promise):es=new Promise((Ir,Js)=>{Hr=Ir,Xn=Js});const Zs=++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!==(De=this.browserPageId)&&void 0!==De?De:0:(null!==(Je=this.browserPageId)&&void 0!==Je?Je:0)+1):Ar=0,this.setTransition({id:Zs,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 F=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(D=this.currentNavigation)||void 0===D?void 0:D.finalUrl)||0===F?this.currentUrlTree===(null===(I=this.currentNavigation)||void 0===I?void 0:I.finalUrl)&&0===F&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(F)}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 de(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,F){this.router=u,this.route=y,this.tabIndexAttribute=D,this.renderer=I,this.el=F,this.commands=null,this.onChanges=new ce.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(Bn),p.Y36(zt),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 ce.xQ,this.subscription=u.events.subscribe(I=>{I instanceof q&&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,F){if(0!==u||y||D||I||F||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const G={skipLocationChange:ur(this.skipLocationChange),replaceUrl:ur(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,G),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ur(this.preserveFragment)})}}return h.\u0275fac=function(u){return new(u||h)(p.Y36(Bn),p.Y36(zt),p.Y36(J.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,F,G){this.router=u,this.element=y,this.renderer=D,this.cdr=I,this.link=F,this.linkWithHref=G,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new p.vpe,this.routerEventsSubscription=u.events.subscribe(De=>{De instanceof q&&this.update()})}ngAfterContentInit(){(0,B.of)(this.links.changes,this.linksWithHrefs.changes,(0,B.of)(null)).pipe((0,me.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,me.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(Bn),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,B.of)(null)}}let qo=(()=>{class h{constructor(u,y,D,I){this.router=u,this.injector=D,this.preloadingStrategy=I,this.loader=new Dt(D,y,De=>u.triggerEvent(new Me(De)),De=>u.triggerEvent(new xe(De)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Oe.h)(u=>u instanceof q),(0,Yt.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 F=I._loadedConfig;D.push(this.processRoutes(F.module,F.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,me.J)(),(0,qe.U)(I=>{}))}preloadConfig(u,y){return this.preloadingStrategy.preload(y,()=>(y._loadedConfig?(0,B.of)(y._loadedConfig):this.loader.load(u.injector,y)).pipe((0,at.zg)(I=>(y._loadedConfig=I,this.processRoutes(I.module,I.routes)))))}}return h.\u0275fac=function(u){return new(u||h)(p.LFG(Bn),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 Pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof q&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.router.parseUrl(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(u=>{u instanceof $&&(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 $(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"),Zo=[J.Ye,{provide:A,useClass:ee},{provide:Bn,useFactory:function Qs(h,c,u,y,D,I,F={},G,De){const Je=new Bn(null,h,c,u,y,D,on(I));return G&&(Je.urlHandlingStrategy=G),De&&(Je.routeReuseStrategy=De),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)}(F,Je),F.enableTracing&&Je.events.subscribe(Vt=>{var ft,Wt;null===(ft=console.group)||void 0===ft||ft.call(console,`Router Event: ${Vt.constructor.name}`),console.log(Vt.toString()),console.log(Vt),null===(Wt=console.groupEnd)||void 0===Wt||Wt.call(console)}),Je},deps:[A,Sr,J.Ye,p.zs3,p.Sil,Sn,Ks,[class ci{},new p.FiY],[class _n{},new p.FiY]]},Sr,{provide:zt,useFactory:function Ai(h){return h.routerState.root},deps:[Bn]},qo,Si,class di{preload(c,u){return u().pipe((0,Xt.K)(()=>(0,B.of)(null)))}},{provide:Ks,useValue:{enableTracing:!1}}];function fo(){return new p.PXZ("Router",Bn)}let Mi=(()=>{class h{constructor(u,y){}static forRoot(u,y){return{ngModule:h,providers:[Zo,ea(u),{provide:fi,useFactory:Ys,deps:[[Bn,new p.FiY,new p.tp0]]},{provide:Ks,useValue:y||{}},{provide:J.S$,useFactory:Xo,deps:[J.lw,[new p.tBr(J.mr),new p.FiY],Ks]},{provide:co,useFactory:Jo,deps:[Bn,J.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(Bn,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 J.Do(h,c):new J.b0(h,c)}function Ys(h){return"guarded"}function ea(h){return[{provide:p.deG,multi:!0,useValue:h},{provide:Sn,multi:!0,useValue:h}]}let ta=(()=>{class h{constructor(u){this.injector=u,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ce.xQ}appInitializer(){return this.injector.get(J.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let y=null;const D=new Promise(G=>y=G),I=this.injector.get(Bn),F=this.injector.get(Ks);return"disabled"===F.initialNavigation?(I.setUpLocationChangeListener(),y(!0)):"enabled"===F.initialNavigation||"enabledBlocking"===F.initialNavigation?(I.hooks.afterPreactivation=()=>this.initNavigation?(0,B.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(qo),I=this.injector.get(co),F=this.injector.get(Bn),G=this.injector.get(p.z2F);u===G.components[0]&&(("enabledNonBlocking"===y.initialNavigation||void 0===y.initialNavigation)&&F.initialNavigation(),D.setUpPreloading(),I.init(),F.resetRootComponentType(G.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")},6565:(Ye,fe,M)=>{M.d(fe,{Cz:()=>Pe,ys:()=>ue});var p=M(5e3),m=M(9808);function U(q,de,H,ne){return new(H||(H=Promise))(function(X,_e){function Fe(st){try{xe(ne.next(st))}catch(ct){_e(ct)}}function Me(st){try{xe(ne.throw(st))}catch(ct){_e(ct)}}function xe(st){st.done?X(st.value):function re(X){return X instanceof H?X:new H(function(_e){_e(X)})}(st.value).then(Fe,Me)}xe((ne=ne.apply(q,de||[])).next())})}var Xe=M(2916),ot=M(5254),qe=M(6053),Ue=M(8929),Fn=M(2986);function Nt(q,de,H,ne){return new Promise((re,X)=>{q||X("IndexedDB not available");const _e=q.open(de,H);let Fe;_e.onsuccess=Me=>{Fe=_e.result,re(Fe)},_e.onerror=Me=>{X(`IndexedDB error: ${_e.error}`)},"function"==typeof ne&&(_e.onupgradeneeded=Me=>{ne(Me,Fe)})})}function Xt(q,de,H,ne,re){if(!q)return;const X=q.open(de,H);X.onupgradeneeded=_e=>{const Fe=_e.target.result;ne.forEach(xe=>{if(!Fe.objectStoreNames.contains(xe.store)){const st=Fe.createObjectStore(xe.store,xe.storeConfig);xe.storeSchema.forEach(ct=>{st.createIndex(ct.name,ct.keypath,ct.options)})}});const Me=re&&re();Me&&Object.keys(Me).map(xe=>parseInt(xe,10)).filter(xe=>xe>_e.oldVersion).sort((xe,st)=>xe-st).forEach(xe=>{Me[xe](Fe,X.transaction)}),Fe.close()},X.onsuccess=_e=>{_e.target.result.close()}}function kt(q,de,H){q||H("You need to use the openDatabase function to create a database before you query it!"),function at(q,de){return q.objectStoreNames.contains(de)}(q,de)||H(`objectStore does not exists: ${de}`)}function Kt(q,de){const H=q.transaction(de.storeName,de.dbMode);return H.onerror=de.error,H.onabort=de.abort,H}function he(q,de,H,ne){return{storeName:de,dbMode:q,error:re=>{H(re)},abort:re=>{H(re)}}}var me=(()=>{return(q=me||(me={})).readonly="readonly",q.readwrite="readwrite",me;var q})();const J=new p.OlP(null);let ue=(()=>{class q{constructor(H,ne){if(this.dbConfig=H,this.platformId=ne,!H.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!H.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,Xt(this.indexedDB,H.name,H.version,H.objectStoresMeta,H.migrationFactory),Nt(this.indexedDB,H.name).then(re=>{re.version!==H.version&&(this.dbConfig.version=re.version)}))}createObjectStore(H,ne){const re=[H];Xt(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,re,ne)}add(H,ne,re){return new Xe.y(X=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(_e=>{const Me=Kt(_e,he(me.readwrite,H,X.error)).objectStore(H);(Boolean(re)?Me.add(ne,re):Me.add(ne)).onsuccess=st=>U(this,void 0,void 0,function*(){Me.get(st.target.result).onsuccess=ge=>{X.next(ge.target.result),X.complete()}})}).catch(_e=>X.error(_e))})}bulkAdd(H,ne){const re=new Promise((X,_e)=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Fe=>{const xe=Kt(Fe,he(me.readwrite,H,X)).objectStore(H),st=ne.map(ct=>new Promise((lt,ge)=>{const $=ct.key;delete ct.key,(Boolean($)?xe.add(ct,$):xe.add(ct)).onsuccess=Ie=>{lt(Ie.target.result)}}));X(Promise.all(st))}).catch(Fe=>_e(Fe))});return(0,ot.D)(re)}bulkDelete(H,ne){const re=ne.map(X=>new Promise((_e,Fe)=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Me=>{const xe=Kt(Me,he(me.readwrite,H,Fe));xe.objectStore(H).delete(X),xe.oncomplete=()=>{this.getAll(H).pipe((0,Fn.q)(1)).subscribe(ct=>{_e(ct)})}}).catch(Me=>Fe(Me))}));return(0,ot.D)(Promise.all(re))}getByKey(H,ne){return new Xe.y(re=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(X=>{const Me=Kt(X,he(me.readonly,H,re.error)).objectStore(H).get(ne);Me.onsuccess=xe=>{re.next(xe.target.result),re.complete()},Me.onerror=xe=>{re.error(xe)}}).catch(X=>re.error(X))})}bulkGet(H,ne){const re=ne.map(X=>this.getByKey(H,X));return new Xe.y(X=>{(0,qe.aj)(re).subscribe(_e=>{X.next(_e),X.complete()})})}getByID(H,ne){return new Xe.y(re=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(X=>{kt(X,H,re.error),Kt(X,he(me.readonly,H,re.error)).objectStore(H).get(ne).onsuccess=xe=>{re.next(xe.target.result)}}).catch(X=>re.error(X))})}getByIndex(H,ne,re){return new Xe.y(X=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(_e=>{kt(_e,H,X.error),Kt(_e,he(me.readonly,H,X.error)).objectStore(H).index(ne).get(re).onsuccess=ct=>{X.next(ct.target.result),X.complete()}}).catch(_e=>X.error(_e))})}getAll(H){return new Xe.y(ne=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(re=>{kt(re,H,ne.error);const Fe=Kt(re,he(me.readonly,H,ne.error)).objectStore(H).getAll();Fe.onerror=Me=>{ne.error(Me)},Fe.onsuccess=({target:{result:Me}})=>{ne.next(Me),ne.complete()}}).catch(re=>ne.error(re))})}update(H,ne){return new Xe.y(re=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(X=>{kt(X,H,re.error);const Fe=Kt(X,he(me.readwrite,H,re.error)).objectStore(H);Fe.put(ne).onsuccess=xe=>U(this,void 0,void 0,function*(){const st=xe.target.result;console.log("result )> ",st),Fe.get(st).onsuccess=lt=>{re.next(lt.target.result),re.complete()}})}).catch(X=>re.error(X))})}delete(H,ne){return new Xe.y(re=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(X=>{kt(X,H,re.error);const _e=Kt(X,he(me.readwrite,H,re.error));_e.objectStore(H).delete(ne),_e.oncomplete=()=>{this.getAll(H).pipe((0,Fn.q)(1)).subscribe(Me=>{re.next(Me),re.complete()})}}).catch(X=>re.error(X))})}deleteByKey(H,ne){return new Xe.y(re=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(X=>{kt(X,H,re.error);const _e=Kt(X,he(me.readwrite,H,re.error)),Fe=_e.objectStore(H);_e.oncomplete=()=>{re.next(!0),re.complete()},Fe.delete(ne)}).catch(X=>re.error(X))})}clear(H){return new Xe.y(ne=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(re=>{kt(re,H,ne.error);const X=Kt(re,he(me.readwrite,H,ne.error));X.objectStore(H).clear(),X.oncomplete=()=>{ne.next(!0),ne.complete()}}).catch(re=>ne.error(re))})}deleteDatabase(){return new Xe.y(H=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ne=>U(this,void 0,void 0,function*(){yield ne.close();const re=this.indexedDB.deleteDatabase(this.dbConfig.name);re.onsuccess=()=>{H.next(!0),H.complete()},re.onerror=X=>H.error(X),re.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(ne=>H.error(ne))})}openCursor(H,ne){return new Xe.y(re=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(X=>{kt(X,H,re.error);const Fe=Kt(X,he(me.readonly,H,re.error)).objectStore(H);(void 0===ne?Fe.openCursor():Fe.openCursor(ne)).onsuccess=xe=>{re.next(xe),re.complete()}}).catch(X=>re.error(X))})}openCursorByIndex(H,ne,re,X=me.readonly){const _e=new Ue.xQ;return Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Fe=>{kt(Fe,H,lt=>{_e.error(lt)}),Kt(Fe,he(X,H,lt=>{_e.error(lt)})).objectStore(H).index(ne).openCursor(re).onsuccess=lt=>{_e.next(lt)}}).catch(Fe=>_e.error(Fe)),_e}getAllByIndex(H,ne,re){const X=[];return new Xe.y(_e=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Fe=>{kt(Fe,H,_e.error),Kt(Fe,he(me.readonly,H,_e.error)).objectStore(H).index(ne).openCursor(re).onsuccess=lt=>{const ge=lt.target.result;ge?(X.push(ge.value),ge.continue()):(_e.next(X),_e.complete())}}).catch(Fe=>_e.error(Fe))})}getAllKeysByIndex(H,ne,re){const X=[];return new Xe.y(_e=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Fe=>{kt(Fe,H,_e.error),Kt(Fe,he(me.readonly,H,_e.error)).objectStore(H).index(ne).openKeyCursor(re).onsuccess=lt=>{const ge=lt.target.result;ge?(X.push({primaryKey:ge.primaryKey,key:ge.key}),ge.continue()):(_e.next(X),_e.complete())}}).catch(Fe=>_e.error(Fe))})}count(H,ne){return new Xe.y(re=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(X=>{kt(X,H,re.error);const Me=Kt(X,he(me.readonly,H,re.error)).objectStore(H).count(ne);Me.onerror=xe=>re.error(xe),Me.onsuccess=xe=>{re.next(xe.target.result),re.complete()}}).catch(X=>re.error(X))})}countByIndex(H,ne,re){return new Xe.y(X=>{Nt(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(_e=>{kt(_e,H,X.error);const st=Kt(_e,he(me.readonly,H,X.error)).objectStore(H).index(ne).count(re);st.onerror=ct=>X.error(ct),st.onsuccess=ct=>{X.next(ct.target.result),X.complete()}}).catch(_e=>X.error(_e))})}deleteObjectStore(H){return function Yt(q,de,H){if(!q||!de||!H)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new Xe.y(ne=>{try{const X=indexedDB.open(q,de+1);X.onupgradeneeded=_e=>{const Fe=_e.target.result;Fe.deleteObjectStore(H),Fe.close(),console.log("onupgradeneeded"),ne.next(!0),ne.complete()},X.onerror=_e=>ne.error(_e)}catch(re){ne.error(re)}})}(this.dbConfig.name,++this.dbConfig.version,H)}}return q.\u0275fac=function(H){return new(H||q)(p.LFG(J),p.LFG(p.Lbi))},q.\u0275prov=p.Yz7({token:q,factory:q.\u0275fac}),q})(),Pe=(()=>{class q{static forRoot(H){return{ngModule:q,providers:[ue,{provide:J,useValue:H}]}}}return q.\u0275fac=function(H){return new(H||q)},q.\u0275mod=p.oAB({type:q}),q.\u0275inj=p.cJS({imports:[[m.ez]]}),q})()}},Ye=>{Ye(Ye.s=6776)}]);
|