-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ebcd382d09e516d16b17.js
More file actions
1 lines (1 loc) · 225 KB
/
Copy pathmain.ebcd382d09e516d16b17.js
File metadata and controls
1 lines (1 loc) · 225 KB
1
(self.webpackChunkpro=self.webpackChunkpro||[]).push([[179],{255:Wo=>{function Pn(qo){return Promise.resolve().then(()=>{var _n=new Error("Cannot find module '"+qo+"'");throw _n.code="MODULE_NOT_FOUND",_n})}Pn.keys=()=>[],Pn.resolve=Pn,Pn.id=255,Wo.exports=Pn},117:(Wo,Pn,qo)=>{"use strict";function _n(t){return"function"==typeof t}let Hl=!1;const Ot={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Hl&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Hl=t},get useDeprecatedSynchronousErrorHandling(){return Hl}};function Rr(t){setTimeout(()=>{throw t},0)}const vs={closed:!0,next(t){},error(t){if(Ot.useDeprecatedSynchronousErrorHandling)throw t;Rr(t)},complete(){}},Ds=Array.isArray||(t=>t&&"number"==typeof t.length);function $l(t){return null!==t&&"object"==typeof t}const bs=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class me{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof me)n.remove(this);else if(null!==n)for(let s=0;s<n.length;++s)n[s].remove(this);if(_n(o)){r&&(this._unsubscribe=void 0);try{o.call(this)}catch(s){e=s instanceof bs?mh(s.errors):[s]}}if(Ds(i)){let s=-1,a=i.length;for(;++s<a;){const l=i[s];if($l(l))try{l.unsubscribe()}catch(u){e=e||[],u instanceof bs?e=e.concat(mh(u.errors)):e.push(u)}}}if(e)throw new bs(e)}add(e){let n=e;if(!e)return me.EMPTY;switch(typeof e){case"function":n=new me(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof me)){const i=n;n=new me,n._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof me){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}remove(e){const n=this._subscriptions;if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1)}}}var t;function mh(t){return t.reduce((e,n)=>e.concat(n instanceof bs?n.errors:n),[])}me.EMPTY=((t=new me).closed=!0,t);const Es="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class he extends me{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=vs;break;case 1:if(!e){this.destination=vs;break}if("object"==typeof e){e instanceof he?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new yh(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new yh(this,e,n,r)}}[Es](){return this}static create(e,n,r){const o=new he(e,n,r);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class yh extends he{constructor(e,n,r,o){super(),this._parentSubscriber=e;let i,s=this;_n(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==vs&&(s=Object.create(n),_n(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Ot.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Ot;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):Rr(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;Rr(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);Ot.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),Ot.useDeprecatedSynchronousErrorHandling)throw r;Rr(r)}}__tryOrSetError(e,n,r){if(!Ot.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return Ot.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(Rr(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const zo="function"==typeof Symbol&&Symbol.observable||"@@observable";function ws(t){return t}let ce=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof he)return t;if(t[Es])return t[Es]()}return t||e||n?new he(t,e,n):new he(vs)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||Ot.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Ot.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Ot.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof he?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=Ch(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(l){i(l),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[zo](){return this}pipe(...n){return 0===n.length?this:function(t){return 0===t.length?ws:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Ch(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Ch(t){if(t||(t=Ot.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Nr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Wb extends me{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class vh extends he{constructor(e){super(e),this.destination=e}}let Cn=(()=>{class t extends ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Es](){return new vh(this)}lift(n){const r=new Dh(this,this);return r.operator=n,r}next(n){if(this.closed)throw new Nr;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;s<o;s++)i[s].next(n)}}error(n){if(this.closed)throw new Nr;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;s<o;s++)i[s].error(n);this.observers.length=0}complete(){if(this.closed)throw new Nr;this.isStopped=!0;const{observers:n}=this,r=n.length,o=n.slice();for(let i=0;i<r;i++)o[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new Nr;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new Nr;return this.hasError?(n.error(this.thrownError),me.EMPTY):this.isStopped?(n.complete(),me.EMPTY):(this.observers.push(n),new Wb(this,n))}asObservable(){const n=new ce;return n.source=this,n}}return t.create=(e,n)=>new Dh(e,n),t})();class Dh extends Cn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):me.EMPTY}}function Is(t){return t&&"function"==typeof t.schedule}function re(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new qb(t,e))}}class qb{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new zb(e,this.project,this.thisArg))}}class zb extends he{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const bh=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},Ms="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",Eh=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function wh(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Gl=t=>{if(t&&"function"==typeof t[zo])return(t=>e=>{const n=t[zo]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(Eh(t))return bh(t);if(wh(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Rr),e))(t);if(t&&"function"==typeof t[Ms])return(t=>e=>{const n=t[Ms]();for(;;){let r;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${$l(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Wl(t,e){return new ce(n=>{const r=new me;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function ke(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[zo]}(t))return function(t,e){return new ce(n=>{const r=new me;return r.add(e.schedule(()=>{const o=t[zo]();r.add(o.subscribe({next(i){r.add(e.schedule(()=>n.next(i)))},error(i){r.add(e.schedule(()=>n.error(i)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(wh(t))return function(t,e){return new ce(n=>{const r=new me;return r.add(e.schedule(()=>t.then(o=>{r.add(e.schedule(()=>{n.next(o),r.add(e.schedule(()=>n.complete()))}))},o=>{r.add(e.schedule(()=>n.error(o)))}))),r})}(t,e);if(Eh(t))return Wl(t,e);if(function(t){return t&&"function"==typeof t[Ms]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new ce(n=>{const r=new me;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[Ms](),r.add(e.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof ce?t:new ce(Gl(t))}class ql extends he{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class zl extends he{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Ql(t,e){if(e.closed)return;if(t instanceof ce)return t.subscribe(e);let n;try{n=Gl(t)(e)}catch(r){e.error(r)}return n}function Le(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Le((o,i)=>ke(t(o,i)).pipe(re((s,a)=>e(o,s,i,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new oE(t,n)))}class oE{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new iE(e,this.project,this.concurrent))}}class iE extends zl{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this.active++,this._innerSub(n)}_innerSub(e){const n=new ql(this),r=this.destination;r.add(n);const o=Ql(e,n);o!==n&&r.add(o)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Qo(t=Number.POSITIVE_INFINITY){return Le(ws,t)}function Kl(t,e){return e?Wl(t,e):new ce(bh(t))}function Yl(){return function(e){return e.lift(new aE(e))}}class aE{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const o=new lE(e,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class lE extends he{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=e._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class Ih extends ce{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new me,e.add(this.source.subscribe(new cE(this.getSubject(),this))),e.closed&&(this._connection=null,e=me.EMPTY)),e}refCount(){return Yl()(this)}}const uE=(()=>{const t=Ih.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class cE extends vh{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}function pE(){return new Cn}function J(t){for(let e in t)if(t[e]===J)return e;throw Error("Could not find renamed property on target object.")}function $(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Jl(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const mE=J({__forward_ref__:J});function ie(t){return t.__forward_ref__=ie,t.toString=function(){return $(this())},t}function T(t){return function(t){return"function"==typeof t&&t.hasOwnProperty(mE)&&t.__forward_ref__===ie}(t)?t():t}class or extends Error{constructor(e,n){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(e,n)),this.code=e}}function j(t){return"string"==typeof t?t:null==t?"":String(t)}function Qe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():j(t)}function As(t,e){const n=e?` in ${e}`:"";throw new or("201",`No provider for ${Qe(t)} found${n}`)}function ut(t,e){null==t&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function G(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dn(t){return Ah(t,Ss)||Ah(t,Th)}function Ah(t,e){return t.hasOwnProperty(e)?t[e]:null}function Sh(t){return t&&(t.hasOwnProperty(eu)||t.hasOwnProperty(EE))?t[eu]:null}const Ss=J({\u0275prov:J}),eu=J({\u0275inj:J}),Th=J({ngInjectableDef:J}),EE=J({ngInjectorDef:J});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let tu;function Vn(t){const e=tu;return tu=t,e}function xh(t,e,n){const r=Dn(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==e?e:void As($(t),"Injector")}function kn(t){return{toString:t}.toString()}var Ct=(()=>((Ct=Ct||{})[Ct.OnPush=0]="OnPush",Ct[Ct.Default=1]="Default",Ct))(),Me=(()=>((Me=Me||{})[Me.Emulated=0]="Emulated",Me[Me.None=2]="None",Me[Me.ShadowDom=3]="ShadowDom",Me))();const IE="undefined"!=typeof globalThis&&globalThis,ME="undefined"!=typeof window&&window,AE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,X=IE||"undefined"!=typeof global&&global||ME||AE,Fr={},ne=[],Ts=J({\u0275cmp:J}),nu=J({\u0275dir:J}),ru=J({\u0275pipe:J}),Rh=J({\u0275mod:J}),SE=J({\u0275loc:J}),bn=J({\u0275fac:J}),Ko=J({__NG_ELEMENT_ID__:J});let TE=0;function Ln(t){return kn(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ne,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Me.Emulated,id:"c",styles:t.styles||ne,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=TE++,r.inputs=Ph(t.inputs,n),r.outputs=Ph(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Nh):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Fh):null,r})}function Nh(t){return Ke(t)||function(t){return t[nu]||null}(t)}function Fh(t){return function(t){return t[ru]||null}(t)}const Oh={};function Pt(t){return kn(()=>{const e={type:t.type,bootstrap:t.bootstrap||ne,declarations:t.declarations||ne,imports:t.imports||ne,exports:t.exports||ne,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Oh[t.id]=t.type),e})}function Ph(t,e){if(null==t)return Fr;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const N=Ln;function Ke(t){return t[Ts]||null}function vt(t,e){const n=t[Rh]||null;if(!n&&!0===e)throw new Error(`Type ${$(t)} does not have '\u0275mod' property.`);return n}const U=11;function en(t){return Array.isArray(t)&&"object"==typeof t[1]}function kt(t){return Array.isArray(t)&&!0===t[1]}function su(t){return 0!=(8&t.flags)}function Fs(t){return 2==(2&t.flags)}function Os(t){return 1==(1&t.flags)}function Lt(t){return null!==t.template}function VE(t){return 0!=(512&t[2])}function ur(t,e){return t.hasOwnProperty(bn)?t[bn]:null}class kh{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function He(){return Lh}function Lh(t){return t.type.prototype.ngOnChanges&&(t.setInput=BE),jE}function jE(){const t=Bh(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Fr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function BE(t,e,n,r){const o=Bh(t)||function(t,e){return t[jh]=e}(t,{previous:Fr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];i[a]=new kh(l&&l.currentValue,e,s===Fr),t[r]=e}He.ngInherit=!0;const jh="__ngSimpleChanges__";function Bh(t){return t[jh]||null}let uu;function ye(t){return!!t.listen}const $h={createRenderer:(t,e)=>void 0!==uu?uu:"undefined"!=typeof document?document:void 0};function be(t){for(;Array.isArray(t);)t=t[0];return t}function Et(t,e){return be(e[t.index])}function du(t,e){return t.data[e]}function ft(t,e){const n=e[t];return en(n)?n:n[0]}function Gh(t){return 4==(4&t[2])}function fu(t){return 128==(128&t[2])}function Bn(t,e){return null==e?null:t[e]}function Wh(t){t[18]=0}function hu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const P={lFrame:Xh(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qh(){return P.bindingsEnabled}function C(){return P.lFrame.lView}function Z(){return P.lFrame.tView}function Ae(){let t=zh();for(;null!==t&&64===t.type;)t=t.parent;return t}function zh(){return P.lFrame.currentTNode}function tn(t,e){const n=P.lFrame;n.currentTNode=t,n.isParent=e}function pu(){return P.lFrame.isParent}function Vs(){return P.isInCheckNoChangesMode}function ks(t){P.isInCheckNoChangesMode=t}function jr(){return P.lFrame.bindingIndex++}function nw(t,e){const n=P.lFrame;n.bindingIndex=n.bindingRootIndex=t,mu(e)}function mu(t){P.lFrame.currentDirectiveIndex=t}function Yh(){return P.lFrame.currentQueryIndex}function _u(t){P.lFrame.currentQueryIndex=t}function ow(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Zh(t,e,n){if(n&x.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&x.Host||(o=ow(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=P.lFrame=Jh();return r.currentTNode=e,r.lView=t,!0}function Ls(t){const e=Jh(),n=t[1];P.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Jh(){const t=P.lFrame,e=null===t?null:t.child;return null===e?Xh(t):e}function Xh(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ep(){const t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const tp=ep;function js(){const t=ep();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ze(){return P.lFrame.selectedIndex}function Un(t){P.lFrame.selectedIndex=t}function _e(){const t=P.lFrame;return du(t.tView,t.selectedIndex)}function Bs(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=i;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-n,l),u&&((t.viewHooks||(t.viewHooks=[])).push(n,u),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,u)),null!=c&&(t.destroyHooks||(t.destroyHooks=[])).push(n,c)}}function Us(t,e,n){np(t,e,3,n)}function Hs(t,e,n,r){(3&t[2])===n&&np(t,e,n,r)}function Cu(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function np(t,e,n,r){const i=null!=r?r:-1,s=e.length-1;let a=0;for(let l=void 0!==r?65535&t[18]:0;l<s;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(t[18]+=65536),(a<i||-1==i)&&(hw(t,n,e,l),t[18]=(4294901760&t[18])+l+2),l++}function hw(t,e,n,r){const o=n[r]<0,i=n[r+1],a=t[o?-n[r]:n[r]];if(o){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class ei{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function $s(t,e,n){const r=ye(t);let o=0;for(;o<n.length;){const i=n[o];if("number"==typeof i){if(0!==i)break;o++;const s=n[o++],a=n[o++],l=n[o++];r?t.setAttribute(e,a,l,s):e.setAttributeNS(s,a,l)}else{const s=i,a=n[++o];Du(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),o++}}return o}function rp(t){return 3===t||4===t||6===t}function Du(t){return 64===t.charCodeAt(0)}function Gs(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?n=o:0===n||op(t,n,o,null,-1===n||2===n?e[++r]:null)}}return t}function op(t,e,n,r,o){let i=0,s=t.length;if(-1===e)s=-1;else for(;i<t.length;){const a=t[i++];if("number"==typeof a){if(a===e){s=-1;break}if(a>e){s=i-1;break}}}for(;i<t.length;){const a=t[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(t[i+1]=o));if(r===t[i+1])return void(t[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==o&&t.splice(i++,0,o)}function ip(t){return-1!==t}function Br(t){return 32767&t}function Ur(t,e){let n=function(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let bu=!0;function Ws(t){const e=bu;return bu=t,e}let Cw=0;function ni(t,e){const n=wu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Eu(r.data,t),Eu(e,null),Eu(r.blueprint,null));const o=qs(t,e),i=t.injectorIndex;if(ip(o)){const s=Br(o),a=Ur(o,e),l=a[1].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|l[s+u]}return e[i+8]=o,i}function Eu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function wu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qs(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function zs(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ko)&&(r=n[Ko]),null==r&&(r=n[Ko]=Cw++);const o=255&r;e.data[t+(o>>5)]|=1<<o}(t,e,n)}function lp(t,e,n){if(n&x.Optional)return t;As(e,"NodeInjector")}function up(t,e,n,r){if(n&x.Optional&&void 0===r&&(r=null),0==(n&(x.Self|x.Host))){const o=t[9],i=Vn(void 0);try{return o?o.get(e,r,n&x.Optional):xh(e,r,n&x.Optional)}finally{Vn(i)}}return lp(r,e,n)}function cp(t,e,n,r=x.Default,o){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Ko)?t[Ko]:void 0;return"number"==typeof e?e>=0?255&e:bw:e}(n);if("function"==typeof i){if(!Zh(e,t,r))return r&x.Host?lp(o,n,r):up(e,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;As(n)}finally{tp()}}else if("number"==typeof i){let s=null,a=wu(t,e),l=-1,u=r&x.Host?e[16][6]:null;for((-1===a||r&x.SkipSelf)&&(l=-1===a?qs(t,e):e[a+8],-1!==l&&hp(r,!1)?(s=e[1],a=Br(l),e=Ur(l,e)):a=-1);-1!==a;){const c=e[1];if(fp(i,a,c.data)){const d=Ew(a,e,n,s,r,u);if(d!==dp)return d}l=e[a+8],-1!==l&&hp(r,e[1].data[a+8]===u)&&fp(i,a,e)?(s=c,a=Br(l),e=Ur(l,e)):a=-1}}}return up(e,n,r,o)}const dp={};function bw(){return new Hr(Ae(),C())}function Ew(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=Qs(a,s,n,null==r?Fs(a)&&bu:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?ri(e,s,c,a):dp}function Qs(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(o){const h=s[l];if(h&&Lt(h)&&h.type===n)return l}return null}function ri(t,e,n,r){let o=t[n];const i=e.data;if(function(t){return t instanceof ei}(o)){const s=o;s.resolving&&function(t,e){throw new or("200",`Circular dependency in DI detected for ${t}`)}(Qe(i[n]));const a=Ws(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Vn(s.injectImpl):null;Zh(t,r,x.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=Lh(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&Vn(l),Ws(a),s.resolving=!1,tp()}}return o}function fp(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function hp(t,e){return!(t&x.Self||t&x.Host&&e)}class Hr{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return cp(this._tNode,this._lView,e,r,n)}}function oi(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const i=n[o];if(rp(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===e)return n[o+1];o+=2}}}return null}(Ae(),t)}const Gr="__parameters__";function cr(t,e,n){return kn(()=>{const r=function(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Gr)?l[Gr]:Object.defineProperty(l,Gr,{value:[]})[Gr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class Q{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=G({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Aw=new Q("AnalyzeForEntryComponents"),Ks=Function;function It(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),It(r,e)):e!==t&&e.push(r)}return e}function rn(t,e){t.forEach(n=>Array.isArray(n)?rn(n,e):e(n))}function Zs(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function dr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const li={},Tu="__NG_DI_FLAG__",zr="ngTempTokenPath",kw=/\n/gm,xu="__source",Ru=J({provide:String,useValue:J});let ui;function Qr(t){const e=ui;return ui=t,e}function jw(t,e=x.Default){if(void 0===ui)throw new Error("inject() must be called from an injection context");return null===ui?xh(t,void 0,e):ui.get(t,e&x.Optional?null:void 0,e)}function M(t,e=x.Default){return(tu||jw)(T(t),e)}function fr(t){const e=[];for(let n=0;n<t.length;n++){const r=T(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,i=x.Default;for(let s=0;s<r.length;s++){const a=r[s],l=Bw(a);"number"==typeof l?-1===l?o=a.token:i|=l:o=a}e.push(M(o,i))}else e.push(M(r))}return e}function ci(t,e){return t[Tu]=e,t.prototype[Tu]=e,t}function Bw(t){return t[Tu]}function Cp(t,e,n,r){const o=t[zr];throw e[xu]&&o.unshift(e[xu]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=$(e);if(Array.isArray(e))o=e.map($).join(" -> ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):$(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(kw,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[zr]=null,t}const Kr=ci(cr("Inject",t=>({token:t})),-1),it=ci(cr("Optional"),8),Gn=ci(cr("SkipSelf"),4);class hr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function on(t,e){const n=function(t){return t instanceof hr&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}const c0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,d0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var oe=(()=>((oe=oe||{})[oe.NONE=0]="NONE",oe[oe.HTML=1]="HTML",oe[oe.STYLE=2]="STYLE",oe[oe.SCRIPT=3]="SCRIPT",oe[oe.URL=4]="URL",oe[oe.RESOURCE_URL=5]="RESOURCE_URL",oe))();function ju(t){const e=function(){const t=C();return t&&t[12]}();return e?e.sanitize(oe.URL,t)||"":on(t,"URL")?function(t){return t instanceof hr?t.changingThisBreaksApplicationSecurity:t}(t):function(t){return(t=String(t)).match(c0)||t.match(d0)?t:"unsafe:"+t}(j(t))}const Lp="__ngContext__";function $e(t,e){t[Lp]=e}function Uu(t){const e=function(t){return t[Lp]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function oa(t){return t.ngOriginalError}function F0(t,...e){t.error(...e)}class pr{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=this._findContext(e),o=function(t){return t&&t.ngErrorLogger||F0}(e);o(this._console,"ERROR",e),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?function(t){return t.ngDebugContext}(e)||this._findContext(oa(e)):null}_findOriginalError(e){let n=e&&oa(e);for(;n&&oa(n);)n=oa(n);return n||null}}const zp=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(X))();function an(t){return t instanceof Function?t():t}var gt=(()=>((gt=gt||{})[gt.Important=1]="Important",gt[gt.DashCase=2]="DashCase",gt))();function Gu(t,e){return undefined(t,e)}function mi(t){const e=t[3];return kt(e)?e[3]:e}function Wu(t){return Jp(t[13])}function qu(t){return Jp(t[4])}function Jp(t){for(;null!==t&&!kt(t);)t=t[4];return t}function Xr(t,e,n,r,o){if(null!=r){let i,s=!1;kt(r)?i=r:en(r)&&(s=!0,r=r[0]);const a=be(r);0===t&&null!==n?null==o?og(e,n,a):gr(e,n,a,o||null,!0):1===t&&null!==n?gr(e,n,a,o||null,!0):2===t?function(t,e,n){const r=sa(t,e);r&&function(t,e,n,r){ye(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,o){const i=n[7];i!==be(n)&&Xr(e,t,r,i,o);for(let a=10;a<n.length;a++){const l=n[a];yi(l[1],l,t,e,r,i)}}(e,t,i,n,o)}}function Qu(t,e,n){return ye(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function eg(t,e){const n=t[9],r=n.indexOf(e),o=e[3];1024&e[2]&&(e[2]&=-1025,hu(o,-1)),n.splice(r,1)}function Ku(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&eg(o,r),e>0&&(t[n-1][4]=r[4]);const i=dr(t,10+e);!function(t,e){yi(t,e,e[U],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function tg(t,e){if(!(256&e[2])){const n=e[U];ye(n)&&n.destroyNode&&yi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Yu(t[1],t);for(;e;){let n=null;if(en(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)en(e)&&Yu(e[1],e),e=e[3];null===e&&(e=t),en(e)&&Yu(e[1],e),n=e&&e[4]}e=n}}(e)}}function Yu(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const o=e[n[r]];if(!(o instanceof ei)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],l=i[s+1];try{l.call(a)}finally{}}else try{i.call(o)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,r=e[7];let o=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],a="function"==typeof s?s(e):be(e[s]),l=r[o=n[i+2]],u=n[i+3];"boolean"==typeof u?a.removeEventListener(n[i],l,u):u>=0?r[o=u]():r[o=-u].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i<r.length;i++)r[i]();e[7]=null}}(t,e),1===e[1].type&&ye(e[U])&&e[U].destroy();const n=e[17];if(null!==n&&kt(e[3])){n!==e[3]&&eg(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function ng(t,e,n){return function(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const o=t.data[r.directiveStart].encapsulation;if(o===Me.None||o===Me.Emulated)return null}return Et(r,n)}(t,e.parent,n)}function gr(t,e,n,r,o){ye(t)?t.insertBefore(e,n,r,o):e.insertBefore(n,r,o)}function og(t,e,n){ye(t)?t.appendChild(e,n):e.appendChild(n)}function ig(t,e,n,r,o){null!==r?gr(t,e,n,r,o):og(t,e,n)}function sa(t,e){return ye(t)?t.parentNode(e):e.parentNode}let lg=function(t,e,n){return 40&t.type?Et(t,n):null};function aa(t,e,n,r){const o=ng(t,r,e),i=e[U],a=function(t,e,n){return lg(t,e,n)}(r.parent||e[6],r,e);if(null!=o)if(Array.isArray(n))for(let l=0;l<n.length;l++)ig(i,o,n[l],a,!1);else ig(i,o,n,a,!1)}function la(t,e){if(null!==e){const n=e.type;if(3&n)return Et(e,t);if(4&n)return Ju(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return la(t,r);{const o=t[e.index];return kt(o)?Ju(-1,o):be(o)}}if(32&n)return Gu(e,t)()||be(t[e.index]);{const r=cg(t,e);return null!==r?Array.isArray(r)?r[0]:la(mi(t[16]),r):la(t,e.next)}}return null}function cg(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Ju(t,e){const n=10+t+1;if(n<e.length){const r=e[n],o=r[1].firstChild;if(null!==o)return la(r,o)}return e[7]}function Xu(t,e,n,r,o,i,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===e&&(a&&$e(be(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)Xu(t,e,n.child,r,o,i,!1),Xr(e,t,o,a,i);else if(32&l){const u=Gu(n,r);let c;for(;c=u();)Xr(e,t,o,c,i);Xr(e,t,o,a,i)}else 16&l?fg(t,e,r,n,o,i):Xr(e,t,o,a,i);n=s?n.projectionNext:n.next}}function yi(t,e,n,r,o,i){Xu(n,r,t.firstChild,e,o,i,!1)}function fg(t,e,n,r,o,i){const s=n[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)Xr(e,t,o,l[u],i);else Xu(t,e,l,s[3],o,i,!0)}function hg(t,e,n){ye(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ec(t,e,n){ye(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function pg(t,e,n){let r=t.length;for(;;){const o=t.indexOf(e,n);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}const gg="ng-template";function iI(t,e,n){let r=0;for(;r<t.length;){let o=t[r++];if(n&&"class"===o){if(o=t[r],-1!==pg(o.toLowerCase(),e,0))return!0}else if(1===o){for(;r<t.length&&"string"==typeof(o=t[r++]);)if(o.toLowerCase()===e)return!0;return!1}}return!1}function mg(t){return 4===t.type&&t.value!==gg}function sI(t,e,n){return e===(4!==t.type||n?t.value:gg)}function aI(t,e,n){let r=4;const o=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(rp(t[e]))return e;return t.length}(o);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!sI(t,l,n)||""===l&&1===e.length){if(jt(r))return!1;s=!0}}else{const u=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!iI(t.attrs,u,n)){if(jt(r))return!1;s=!0}continue}const d=lI(8&r?"class":l,o,mg(t),n);if(-1===d){if(jt(r))return!1;s=!0;continue}if(""!==u){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==pg(h,u,0)||2&r&&u!==f){if(jt(r))return!1;s=!0}}}}else{if(!s&&!jt(r)&&!jt(l))return!1;if(s&&jt(l))continue;s=!1,r=l|1&r}}return jt(r)||s}function jt(t){return 0==(1&t)}function lI(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){const s=e[o];if(s===t)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=e[++o];for(;"string"==typeof a;)a=e[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function yg(t,e,n=!1){for(let r=0;r<e.length;r++)if(aI(t,e[r],n))return!0;return!1}function _g(t,e){return t?":not("+e.trim()+")":e}function hI(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!jt(s)&&(e+=_g(i,o),o=""),r=s,i=i||!jt(r);n++}return""!==o&&(e+=_g(i,o)),e}const k={};function ua(t){Cg(Z(),C(),Ze()+t,Vs())}function Cg(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Us(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Hs(e,i,0,n)}Un(n)}function Tg(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],i=n[r+1];if(-1!==i){const s=t.data[i];_u(o),s.contentQueries(2,e[i],i)}}}function _i(t,e,n,r,o,i,s,a,l,u){const c=e.blueprint.slice();return c[0]=o,c[2]=140|r,Wh(c),c[3]=c[15]=t,c[8]=n,c[10]=s||t&&t[10],c[U]=a||t&&t[U],c[12]=l||t&&t[12]||null,c[9]=u||t&&t[9]||null,c[6]=i,c[16]=2==e.type?t[16]:c,c}function eo(t,e,n,r,o){let i=t.data[e];if(null===i)i=function(t,e,n,r,o){const i=zh(),s=pu(),l=t.data[e]=function(t,e,n,r,o,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,e,r,o);return null===t.firstChild&&(t.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l)),l}(t,e,n,r,o),P.lFrame.inI18n&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function(){const t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return tn(i,!0),i}function to(t,e,n,r){if(0===n)return-1;const o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function Ci(t,e,n){Ls(e);try{const r=t.viewQuery;null!==r&&Cc(1,r,n);const o=t.template;null!==o&&xg(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Tg(t,e),t.staticViewQueries&&Cc(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)qI(t,e[n])}(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,js()}}function no(t,e,n,r){const o=e[2];if(256==(256&o))return;Ls(e);const i=Vs();try{Wh(e),function(t){P.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&xg(t,e,n,2,r);const s=3==(3&o);if(!i)if(s){const u=t.preOrderCheckHooks;null!==u&&Us(e,u,null)}else{const u=t.preOrderHooks;null!==u&&Hs(e,u,0,null),Cu(e,0)}if(function(t){for(let e=Wu(t);null!==e;e=qu(e)){if(!e[2])continue;const n=e[9];for(let r=0;r<n.length;r++){const o=n[r],i=o[3];0==(1024&o[2])&&hu(i,1),o[2]|=1024}}}(e),function(t){for(let e=Wu(t);null!==e;e=qu(e))for(let n=10;n<e.length;n++){const r=e[n],o=r[1];fu(r)&&no(o,r,o.template,r[8])}}(e),null!==t.contentQueries&&Tg(t,e),!i)if(s){const u=t.contentCheckHooks;null!==u&&Us(e,u)}else{const u=t.contentHooks;null!==u&&Hs(e,u,1),Cu(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Un(~o);else{const i=o,s=n[++r],a=n[++r];nw(s,i),a(2,e[i])}}}finally{Un(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)WI(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Cc(2,l,r),!i)if(s){const u=t.viewCheckHooks;null!==u&&Us(e,u)}else{const u=t.viewHooks;null!==u&&Hs(e,u,2),Cu(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,hu(e[3],-1))}finally{js()}}function MI(t,e,n,r){const o=e[10],i=!Vs(),s=Gh(e);try{i&&!s&&o.begin&&o.begin(),s&&Ci(t,e,r),no(t,e,n,r)}finally{i&&!s&&o.end&&o.end()}}function xg(t,e,n,r,o){const i=Ze(),s=2&r;try{Un(-1),s&&e.length>20&&Cg(t,e,20,Vs()),n(r,o)}finally{Un(i)}}function Ng(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=ha(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function ha(t,e,n,r,o,i,s,a,l,u){const c=20+r,d=c+o,f=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:k);return n}(c,d),h="function"==typeof u?u():u;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,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 s?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function Pg(t,e,n,r){const o=Wg(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&qg(t).push(r,o.length-1))}function Vg(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const o=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,o):n[r]=[e,o]}return n}function mt(t,e,n,r,o,i,s,a){const l=Et(e,n);let c,u=e.inputs;!a&&null!=u&&(c=u[r])?(Kg(t,n,c,r,o),Fs(e)&&function(t,e){const n=ft(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),o=null!=s?s(o,e.value||"",r):o,ye(i)?i.setProperty(l,r,o):Du(r)||(l.setProperty?l.setProperty(r,o):l[r]=o))}function Lg(t,e,n,r,o,i){const s=i.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,o,s)}}function jg(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Bg(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function jI(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Lt(e)&&(n[""]=t)}}function Ug(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Hg(t,e,n,r,o){t.data[r]=o;const i=o.factory||(o.factory=ur(o.type)),s=new ei(i,Lt(o),null);t.blueprint[r]=s,n[r]=s,Lg(t,e,0,r,to(t,n,o.hostVars,k),o)}function BI(t,e,n){const r=Et(e,t),o=Ng(n),i=t[10],s=pa(t,_i(t,o,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n),null,null));t[e.index]=s}function ln(t,e,n,r,o,i){const s=Et(t,e);!function(t,e,n,r,o,i,s){if(null==i)ye(t)?t.removeAttribute(e,o,n):e.removeAttribute(o);else{const a=null==s?j(i):s(i,r||"",o);ye(t)?t.setAttribute(e,o,a,n):n?e.setAttributeNS(n,o,a):e.setAttribute(o,a)}}(e[U],s,i,t.value,n,r,o)}function UI(t,e,n,r,o,i){const s=i[e];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const u=s[l++],c=s[l++],d=s[l++];null!==a?r.setInput(n,d,u,c):n[c]=d}}}function HI(t,e){let n=null,r=0;for(;r<e.length;){const o=e[r];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,t[o],e[r+1])),r+=2}else r+=2;else r+=4}return n}function WI(t,e){const n=ft(e,t);if(fu(n)){const r=n[1];80&n[2]?no(r,n,r.template,n[8]):n[5]>0&&gc(n)}}function gc(t){for(let r=Wu(t);null!==r;r=qu(r))for(let o=10;o<r.length;o++){const i=r[o];if(1024&i[2]){const s=i[1];no(s,i,s.template,i[8])}else i[5]>0&&gc(i)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=ft(n[r],t);fu(o)&&o[5]>0&&gc(o)}}function qI(t,e){const n=ft(e,t),r=n[1];(function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),Ci(r,n,n[8])}function pa(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function mc(t){for(;t;){t[2]|=64;const e=mi(t);if(VE(t)&&!e)return t;t=e}return null}function _c(t,e,n){const r=e[10];r.begin&&r.begin();try{no(t,e,t.template,n)}catch(o){throw Qg(e,o),o}finally{r.end&&r.end()}}function Gg(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Uu(n),o=r[1];MI(o,r,o.template,n)}}(t[8])}function Cc(t,e,n){_u(0),e(t,n)}const ZI=(()=>Promise.resolve(null))();function Wg(t){return t[7]||(t[7]=[])}function qg(t){return t.cleanup||(t.cleanup=[])}function Qg(t,e){const n=t[9],r=n?n.get(pr,null):null;r&&r.handleError(e)}function Kg(t,e,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],l=e[s],u=t.data[s];null!==u.setInput?u.setInput(l,o,r,a):l[a]=o}}function ga(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(null!==e)for(let s=0;s<e.length;s++){const a=e[s];"number"==typeof a?i=a:1==i?o=Jl(o,a):2==i&&(r=Jl(r,a+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}const ro=new Q("INJECTOR",-1);class Yg{get(e,n=li){if(n===li){const r=new Error(`NullInjectorError: No provider for ${$(e)}!`);throw r.name="NullInjectorError",r}return n}}const vi=new Q("Set Injector scope."),Di={},eM={};let vc;function Zg(){return void 0===vc&&(vc=new Yg),vc}function Jg(t,e=null,n=null,r){return new nM(t,n,e||Zg(),r)}class nM{constructor(e,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];n&&rn(n,a=>this.processProvider(a,e,n)),rn([e],a=>this.processInjectorType(a,[],i)),this.records.set(ro,oo(void 0,this));const s=this.records.get(vi);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:$(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=li,r=x.Default){this.assertNotDestroyed();const o=Qr(this),i=Vn(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof Q}(e)&&Dn(e);a=l&&this.injectableDefInScope(l)?oo(Dc(e),Di):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&x.Self?Zg():this.parent).get(e,n=r&x.Optional&&n===li?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[zr]=s[zr]||[]).unshift($(e)),o)throw s;return Cp(s,e,"R3InjectorError",this.source)}throw s}finally{Vn(i),Qr(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push($(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,n,r){if(!(e=T(e)))return!1;let o=Sh(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=Sh(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{rn(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];rn(h,p=>this.processProvider(p,f,h||ne))}}this.injectorDefTypes.add(s);const l=ur(s)||(()=>new s);this.records.set(s,oo(l,Di));const u=o.providers;if(null!=u&&!a){const c=e;rn(u,d=>this.processProvider(d,c,u))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=io(e=T(e))?e:T(e&&e.provide);const i=function(t,e,n){return em(t)?oo(void 0,t.useValue):oo(function(t,e,n){let r;if(io(t)){const o=T(t);return ur(o)||Dc(o)}if(em(t))r=()=>T(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...fr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>M(T(t.useExisting));else{const o=T(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ur(o)||Dc(o);r=()=>new o(...fr(t.deps))}return r}(t),Di)}(e);if(io(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=oo(void 0,Di,!0),s.factory=()=>fr(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===Di&&(n.value=eM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=T(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Dc(t){const e=Dn(t),n=null!==e?e.factory:ur(t);if(null!==n)return n;if(t instanceof Q)throw new Error(`Token ${$(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=function(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?");throw new Error(`Can't resolve all parameters for ${$(t)}: (${r.join(", ")}).`)}const n=function(t){const e=t&&(t[Ss]||t[Th]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);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.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function oo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function em(t){return null!==t&&"object"==typeof t&&Ru in t}function io(t){return"function"==typeof t}const tm=function(t,e,n){return function(t,e=null,n=null,r){const o=Jg(t,e,n,r);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)};let te=(()=>{class t{static create(n,r){return Array.isArray(n)?tm(n,r,""):tm(n.providers,n.parent,n.name||"")}}return t.THROW_IF_NOT_FOUND=li,t.NULL=new Yg,t.\u0275prov=G({token:t,providedIn:"any",factory:()=>M(ro)}),t.__NG_ELEMENT_ID__=-1,t})();function EM(t,e){Bs(Uu(t)[1],Ae())}let ma=null;function so(){if(!ma){const t=X.Symbol;if(t&&t.iterator)ma=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ma=r)}}}return ma}function Ei(t){return!!Sc(t)&&(Array.isArray(t)||!(t instanceof Map)&&so()in t)}function Sc(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ge(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function cn(t,e,n,r){const o=C();return Ge(o,jr(),e)&&(Z(),ln(_e(),o,t,e,n,r)),cn}function v(t,e=x.Default){const n=C();return null===n?M(t,e):cp(Ae(),n,T(t),e)}function Ii(t,e,n){const r=C();return Ge(r,jr(),e)&&mt(Z(),_e(),r,t,e,r[U],n,!1),Ii}function Fc(t,e,n,r,o){const s=o?"class":"style";Kg(t,n,e.inputs[s],s,r)}function D(t,e,n,r){const o=C(),i=Z(),s=20+t,a=o[U],l=o[s]=Qu(a,e,P.lFrame.currentNamespace),u=i.firstCreatePass?function(t,e,n,r,o,i,s){const a=e.consts,u=eo(e,t,2,o,Bn(a,i));return function(t,e,n,r){let o=!1;if(qh()){const i=function(t,e,n){const r=t.directiveRegistry;let o=null;if(r)for(let i=0;i<r.length;i++){const s=r[i];yg(n,s.selectors,!1)&&(o||(o=[]),zs(ni(n,e),t,s.type),Lt(s)?(Bg(t,n),o.unshift(s)):o.push(s))}return o}(t,e,n),s=null===r?null:{"":-1};if(null!==i){o=!0,Ug(n,t.data.length,i.length);for(let c=0;c<i.length;c++){const d=i[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=to(t,e,i.length,null);for(let c=0;c<i.length;c++){const d=i[c];n.mergedAttrs=Gs(n.mergedAttrs,d.hostAttrs),Hg(t,n,e,u,d),jI(u,d,s),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),l=!0),u++}!function(t,e){const r=e.directiveEnd,o=t.data,i=e.attrs,s=[];let a=null,l=null;for(let u=e.directiveStart;u<r;u++){const c=o[u],d=c.inputs,f=null===i||mg(e)?null:HI(d,i);s.push(f),a=Vg(d,u,a),l=Vg(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=a,e.outputs=l}(t,n)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let o=0;o<e.length;o+=2){const i=n[e[o+1]];if(null==i)throw new or("301",`Export of name '${e[o+1]}' not found!`);r.push(e[o],i)}}}(n,r,s)}n.mergedAttrs=Gs(n.mergedAttrs,n.attrs)}(e,n,u,Bn(a,s)),null!==u.attrs&&ga(u,u.attrs,!1),null!==u.mergedAttrs&&ga(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(s,i,o,0,e,n,r):i.data[s];tn(u,!0);const c=u.mergedAttrs;null!==c&&$s(a,l,c);const d=u.classes;null!==d&&ec(a,l,d);const f=u.styles;null!==f&&hg(a,l,f),64!=(64&u.flags)&&aa(i,o,l,u),0===P.lFrame.elementDepthCount&&$e(l,o),P.lFrame.elementDepthCount++,Os(u)&&(function(t,e,n){!qh()||(function(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||ni(n,e),$e(r,e);const s=n.initialInputs;for(let a=o;a<i;a++){const l=t.data[a],u=Lt(l);u&&BI(e,n,l);const c=ri(e,t,a,n);$e(c,e),null!==s&&UI(0,a-o,c,l,0,s),u&&(ft(n.index,e)[8]=c)}}(t,e,n,Et(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,o=n.directiveEnd,s=n.index,a=P.lFrame.currentDirectiveIndex;try{Un(s);for(let l=r;l<o;l++){const u=t.data[l],c=e[l];mu(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&jg(u,c)}}finally{Un(-1),mu(a)}}(t,e,n))}(i,o,u),function(t,e,n){if(su(e)){const o=e.directiveEnd;for(let i=e.directiveStart;i<o;i++){const s=t.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}}(i,u,o)),null!==r&&function(t,e,n=Et){const r=e.localNames;if(null!==r){let o=e.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(e,t):t[s];t[o++]=a}}}(o,u)}function b(){let t=Ae();pu()?P.lFrame.isParent=!1:(t=t.parent,tn(t,!1));const e=t;P.lFrame.elementDepthCount--;const n=Z();n.firstCreatePass&&(Bs(n,t),su(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Fc(n,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Fc(n,e,C(),e.stylesWithoutHost,!1)}function A(t,e,n,r){D(t,e,n,r),b()}function Mi(t){return!!t&&"function"==typeof t.then}const Ca=function(t){return!!t&&"function"==typeof t.subscribe};function yt(t,e,n,r){const o=C(),i=Z(),s=Ae();return function(t,e,n,r,o,i,s,a){const l=Os(r),c=t.firstCreatePass&&qg(t),d=e[8],f=Wg(e);let h=!0;if(3&r.type||a){const g=Et(r,e),_=a?a(g):g,y=f.length,I=a?S=>a(be(S[r.index])):r.index;if(ye(n)){let S=null;if(!a&&l&&(S=function(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=e[7],l=o[i+2];return a.length>l?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,h=!1;else{i=Oc(r,e,d,i,!1);const W=n.listen(_,o,i);f.push(i,W),c&&c.push(o,I,y,y+1)}}else i=Oc(r,e,d,i,!0),_.addEventListener(o,i,s),f.push(i),c&&c.push(o,I,y,s)}else i=Oc(r,e,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const g=m.length;if(g)for(let _=0;_<g;_+=2){const Ne=e[m[_]][m[_+1]].subscribe(i),Ft=f.length;f.push(i,Ne),c&&c.push(o,r.index,Ft,-(Ft+1))}}}(i,o,o[U],s,t,e,!!n,r),yt}function Gm(t,e,n,r){try{return!1!==n(r)}catch(o){return Qg(t,o),!1}}function Oc(t,e,n,r,o){return function i(s){if(s===Function)return r;const a=2&t.flags?ft(t.index,e):e;0==(32&e[2])&&mc(a);let l=Gm(e,0,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Gm(e,0,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function O(t,e=""){const n=C(),r=Z(),o=t+20,i=r.firstCreatePass?eo(r,o,1,e,null):r.data[o],s=n[o]=function(t,e){return ye(t)?t.createText(e):t.createTextNode(e)}(n[U],e);aa(r,n,s,i),tn(i,!1)}function Lc(t,e,n){const r=C();return Ge(r,jr(),e)&&mt(Z(),_e(),r,t,e,r[U],n,!0),Lc}const yr=void 0;var JA=["en",[["a","p"],["AM","PM"],yr],[["AM","PM"],yr,yr],[["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"]],yr,[["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"]],yr,[["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}",yr,"{1} 'at' {0}",yr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Co={};function Oy(t){return t in Co||(Co[t]=X.ng&&X.ng.common&&X.ng.common.locales&&X.ng.common.locales[t]),Co[t]}var w=(()=>((w=w||{})[w.LocaleId=0]="LocaleId",w[w.DayPeriodsFormat=1]="DayPeriodsFormat",w[w.DayPeriodsStandalone=2]="DayPeriodsStandalone",w[w.DaysFormat=3]="DaysFormat",w[w.DaysStandalone=4]="DaysStandalone",w[w.MonthsFormat=5]="MonthsFormat",w[w.MonthsStandalone=6]="MonthsStandalone",w[w.Eras=7]="Eras",w[w.FirstDayOfWeek=8]="FirstDayOfWeek",w[w.WeekendRange=9]="WeekendRange",w[w.DateFormat=10]="DateFormat",w[w.TimeFormat=11]="TimeFormat",w[w.DateTimeFormat=12]="DateTimeFormat",w[w.NumberSymbols=13]="NumberSymbols",w[w.NumberFormats=14]="NumberFormats",w[w.CurrencyCode=15]="CurrencyCode",w[w.CurrencySymbol=16]="CurrencySymbol",w[w.CurrencyName=17]="CurrencyName",w[w.Currencies=18]="Currencies",w[w.Directionality=19]="Directionality",w[w.PluralCase=20]="PluralCase",w[w.ExtraData=21]="ExtraData",w))();const ba="en-US";let Py=ba;function jc(t){ut(t,"Expected localeId to be defined"),"string"==typeof t&&(Py=t.toLowerCase().replace(/_/g,"-"))}class s_{}const l_="ngComponent";class JS{resolveComponentFactory(e){throw function(t){const e=Error(`No component factory found for ${$(t)}. Did you add it to @NgModule.entryComponents?`);return e[l_]=t,e}(e)}}let _r=(()=>{class t{}return t.NULL=new JS,t})();function Aa(...t){}function Do(t,e){return new Oe(Et(t,e))}const tT=function(){return Do(Ae(),C())};let Oe=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=tT,t})();function u_(t){return t instanceof Oe?t.nativeElement:t}class Sa{}let Sn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>rT(),t})();const rT=function(){const t=C(),n=ft(Ae().index,t);return function(t){return t[U]}(en(n)?n:t)};let zc=(()=>{class t{}return t.\u0275prov=G({token:t,providedIn:"root",factory:()=>null}),t})();class Ni{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const c_=new Ni("12.2.13");class d_{constructor(){}supports(e){return Ei(e)}create(e){return new aT(e)}}const sT=(t,e)=>e;class aT{constructor(e){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=e||sT}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<h_(r,o,i)?n:r,a=h_(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const u=a-o,c=l-o;if(u!=c){for(let f=0;f<u;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<u&&(i[f]=h+1)}i[s.previousIndex]=c-u}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)e(n)}diff(e){if(null==e&&(e=[]),!Ei(e))throw new Error(`Error trying to diff '${$(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[so()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(e,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new lT(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=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(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new f_),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new f_),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class lT{constructor(e,n){this.item=e,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 uT{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class f_{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new uT,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function h_(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}class p_{constructor(){}supports(e){return e instanceof Map||Sc(e)}create(){return new cT}}class cT{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(e){let n;for(n=this._mapHead;null!==n;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}diff(e){if(e){if(!(e instanceof Map||Sc(e)))throw new Error(`Error trying to diff '${$(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,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(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new dT(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class dT{constructor(e){this.key=e,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 g_(){return new Fi([new d_])}let Fi=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||g_()),deps:[[t,new Gn,new it]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'`)}}return t.\u0275prov=G({token:t,providedIn:"root",factory:g_}),t})();function m_(){return new bo([new p_])}let bo=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||m_()),deps:[[t,new Gn,new it]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return t.\u0275prov=G({token:t,providedIn:"root",factory:m_}),t})();function Ta(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(be(i)),kt(i))for(let a=10;a<i.length;a++){const l=i[a],u=l[1].firstChild;null!==u&&Ta(l[1],l,u,r)}const s=n.type;if(8&s)Ta(t,e,n.child,r);else if(32&s){const a=Gu(n,e);let l;for(;l=a();)r.push(l)}else if(16&s){const a=cg(e,n);if(Array.isArray(a))r.push(...a);else{const l=mi(e[16]);Ta(l[1],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}class Oi{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return Ta(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(kt(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&(Ku(e,r),dr(n,r))}this._attachedToViewContainer=!1}tg(this._lView[1],this._lView)}onDestroy(e){Pg(this._lView[1],this._lView,null,e)}markForCheck(){mc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){_c(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ks(!0);try{_c(t,e,n)}finally{ks(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(t,e){yi(t,e,e[U],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class hT extends Oi{constructor(e){super(e),this._view=e}detectChanges(){Gg(this._view)}checkNoChanges(){!function(t){ks(!0);try{Gg(t)}finally{ks(!1)}}(this._view)}get context(){return null}}const gT=function(t){return function(t,e,n){if(Fs(t)&&!n){const r=ft(t.index,e);return new Oi(r,r)}return 47&t.type?new Oi(e[16],e):null}(Ae(),C(),16==(16&t))};let Qc=(()=>{class t{}return t.__NG_ELEMENT_ID__=gT,t})();const _T=[new p_],vT=new Fi([new d_]),DT=new bo(_T),ET=function(){return xa(Ae(),C())};let Tn=(()=>{class t{}return t.__NG_ELEMENT_ID__=ET,t})();const wT=Tn,IT=class extends wT{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=_i(this._declarationLView,n,e,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)),Ci(n,r,e),new Oi(r)}};function xa(t,e){return 4&t.type?new IT(e,t,Do(t,e)):null}class hn{}class y_{}const ST=function(){return v_(Ae(),C())};let Wt=(()=>{class t{}return t.__NG_ELEMENT_ID__=ST,t})();const xT=Wt,__=class extends xT{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Do(this._hostTNode,this._hostLView)}get injector(){return new Hr(this._hostTNode,this._hostLView)}get parentInjector(){const e=qs(this._hostTNode,this._hostLView);if(ip(e)){const n=Ur(e,this._hostLView),r=Br(e);return new Hr(n[1].data[r+8],n)}return new Hr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=C_(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=r||this.parentInjector;if(!i&&null==e.ngModule&&s){const l=s.get(hn,null);l&&(i=l)}const a=e.create(s,o,void 0,i);return this.insert(a.hostView,n),a}insert(e,n){const r=e._lView,o=r[1];if(function(t){return kt(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new __(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),r<i-10?(e[4]=n[o],Zs(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(o,r,s,i);const a=Ju(i,s),l=r[U],u=sa(l,s[7]);return null!==u&&function(t,e,n,r,o,i){r[0]=o,r[6]=e,yi(t,r,n,1,o,i)}(o,s[6],l,r,u,a),e.attachToViewContainerRef(),Zs(Kc(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=C_(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=Ku(this._lContainer,n);r&&(dr(Kc(this._lContainer),n),tg(r[1],r))}detach(e){const n=this._adjustIndex(e,-1),r=Ku(this._lContainer,n);return r&&null!=dr(Kc(this._lContainer),n)?new Oi(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function C_(t){return t[8]}function Kc(t){return t[8]||(t[8]=[])}function v_(t,e){let n;const r=e[t.index];if(kt(r))n=r;else{let o;if(8&t.type)o=be(r);else{const i=e[U];o=i.createComment("");const s=Et(t,e);gr(i,sa(i,s),o,function(t,e){return ye(t)?t.nextSibling(e):e.nextSibling}(i,s),!1)}e[t.index]=n=function(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}(r,e,o,t),pa(e,n)}return new __(n,t,e)}const Mo={};class B_ extends _r{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Ke(e);return new H_(n,this.ngModule)}}function U_(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Mx=new Q("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>zp});class H_ extends s_{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function(t){return t.map(hI).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return U_(this.componentDef.inputs)}get outputs(){return U_(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function(t,e){return{get:(n,r,o)=>{const i=t.get(n,Mo,o);return i!==Mo||r===Mo?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get(Sa,$h),a=i.get(zc,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function(t,e,n){if(ye(t))return t.selectRootElement(e,n===Me.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Qu(s.createRenderer(null,this.componentDef),u,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f=function(t,e){return{components:[],scheduler:t||zp,clean:ZI,playerHandler:e||null,flags:0}}(),h=ha(0,null,null,1,0,null,null,null,null,null),p=_i(null,h,f,d,null,null,s,l,a,i);let m,g;Ls(p);try{const _=function(t,e,n,r,o,i){const s=n[1];n[20]=t;const l=eo(s,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(ga(l,u,!0),null!==t&&($s(o,t,u),null!==l.classes&&ec(o,t,l.classes),null!==l.styles&&hg(o,t,l.styles)));const c=r.createRenderer(t,e),d=_i(n,Ng(e),null,e.onPush?64:16,n[20],l,r,c,i||null,null);return s.firstCreatePass&&(zs(ni(l,n),s,e.type),Bg(s,l),Ug(l,n.length,1)),pa(n,d),n[20]=d}(c,this.componentDef,p,s,l);if(c)if(r)$s(l,c,["ng-version",c_.full]);else{const{attrs:y,classes:I}=function(t){const e=[],n=[];let r=1,o=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===o?""!==i&&e.push(i,t[++r]):8===o&&n.push(i);else{if(!jt(o))break;o=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);y&&$s(l,c,y),I&&I.length>0&&ec(l,c,I.join(" "))}if(g=du(h,20),void 0!==n){const y=g.projection=[];for(let I=0;I<this.ngContentSelectors.length;I++){const S=n[I];y.push(null!=S?Array.from(S):null)}}m=function(t,e,n,r,o){const i=n[1],s=function(t,e,n){const r=Ae();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Hg(t,r,e,to(t,e,1,null),n));const o=ri(e,t,r.directiveStart,r);$e(o,e);const i=Et(r,e);return i&&$e(i,e),o}(i,n,e);if(r.components.push(s),t[8]=s,o&&o.forEach(l=>l(s,e)),e.contentQueries){const l=Ae();e.contentQueries(1,s,l.directiveStart)}const a=Ae();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Un(a.index),Lg(n[1],a,0,a.directiveStart,a.directiveEnd,e),jg(e,s)),s}(_,this.componentDef,p,f,[EM]),Ci(h,p,null)}finally{js()}return new Tx(this.componentType,m,Do(g,p),p,g)}}class Tx extends class{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new hT(o),this.componentType=e}get injector(){return new Hr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Ao=new Map;class Nx extends hn{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new B_(this);const r=vt(e),o=function(t){return t[SE]||null}(e);o&&jc(o),this._bootstrapComponents=an(r.bootstrap),this._r3Injector=Jg(e,n,[{provide:hn,useValue:this},{provide:_r,useValue:this.componentFactoryResolver}],$(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=te.THROW_IF_NOT_FOUND,r=x.Default){return e===te||e===hn||e===ro?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ld extends y_{constructor(e){super(),this.moduleType=e,null!==vt(e)&&function(t){const e=new Set;!function n(r){const o=vt(r,!0),i=o.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${$(e)} vs ${$(e.name)}`)}(i,Ao.get(i),r),Ao.set(i,r));const s=an(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new Nx(this.moduleType,e)}}function Pa(t,e,n){const r=function(){const t=P.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}()+t,o=C();return o[r]===k?function(t,e,n){return t[e]=n}(o,r,n?e.call(n):e()):function(t,e){return t[e]}(o,r)}function ud(t){return e=>{setTimeout(t,void 0,e)}}const xe=class extends Cn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var o,i,s;let a=e,l=n||(()=>null),u=r;if(e&&"object"==typeof e){const d=e;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(i=d.error)||void 0===i?void 0:i.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=ud(l),a&&(a=ud(a)),u&&(u=ud(u)));const c=super.subscribe({next:a,error:l,complete:u});return e instanceof me&&e.add(c),c}};function Yx(){return this._results[so()]()}class Va{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=so(),r=Va.prototype;r[n]||(r[n]=Yx)}get changes(){return this._changes||(this._changes=new xe)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const o=It(e);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class cd{constructor(e){this.queryList=e,this.matches=null}clone(){return new cd(this.queryList)}setDirty(){this.queryList.setDirty()}}class dd{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const r=null!==e.contentQueries?e.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new dd(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==eC(e,n).matches&&this.queries[n].setDirty()}}class Y_{constructor(e,n,r=null){this.predicate=e,this.flags=n,this.read=r}}class fd{constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new fd(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class hd{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new hd(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(e,n,Xx(n,i)),this.matchTNodeWithReadOption(e,n,Qs(n,e,i,!1,!1))}else r===Tn?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Qs(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===Oe||o===Wt||o===Tn&&4&n.type)this.addMatch(n.index,-2);else{const i=Qs(n,e,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function Xx(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function tR(t,e,n,r){return-1===n?function(t,e){return 11&t.type?Do(t,e):4&t.type?xa(t,e):null}(e,t):-2===n?function(t,e,n){return n===Oe?Do(e,t):n===Tn?xa(e,t):n===Wt?v_(e,t):void 0}(t,e,r):ri(t,t[1],n,e)}function Z_(t,e,n,r){const o=e[19].queries[r];if(null===o.matches){const i=t.data,s=n.matches,a=[];for(let l=0;l<s.length;l+=2){const u=s[l];a.push(u<0?null:tR(e,i[u],s[l+1],n.metadata.read))}o.matches=a}return o.matches}function pd(t,e,n,r){const o=t.queries.getByIndex(n),i=o.matches;if(null!==i){const s=Z_(t,e,o,n);for(let a=0;a<i.length;a+=2){const l=i[a];if(l>0)r.push(s[a/2]);else{const u=i[a+1],c=e[-l];for(let d=10;d<c.length;d++){const f=c[d];f[17]===f[3]&&pd(f[1],f,u,r)}if(null!==c[9]){const d=c[9];for(let f=0;f<d.length;f++){const h=d[f];pd(h[1],h,u,r)}}}}}return r}function gd(t){const e=C(),n=Z(),r=Yh();_u(r+1);const o=eC(n,r);if(t.dirty&&Gh(e)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{const i=o.crossesNgTemplate?pd(n,e,r,[]):Z_(n,e,o,r);t.reset(i,u_),t.notifyOnChanges()}return!0}return!1}function md(t,e,n,r){const o=Z();if(o.firstCreatePass){const i=Ae();(function(t,e,n){null===t.queries&&(t.queries=new fd),t.queries.track(new hd(e,n))})(o,new Y_(e,n,r),i.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(o,t),2==(2&n)&&(o.staticContentQueries=!0)}!function(t,e,n){const r=new Va(4==(4&n));Pg(t,e,r,r.destroy),null===e[19]&&(e[19]=new dd),e[19].queries.push(new cd(r))}(o,C(),n)}function yd(){return function(t,e){return t[19].queries[e].queryList}(C(),Yh())}function eC(t,e){return t.queries.getByIndex(e)}const qi=new Q("Application Initializer");let To=(()=>{class t{constructor(n){this.appInits=n,this.resolve=Aa,this.reject=Aa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const i=this.appInits[o]();if(Mi(i))n.push(i);else if(Ca(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(M(qi,8))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();const zi=new Q("AppId"),FR={provide:zi,useFactory:function(){return`${Ed()}${Ed()}${Ed()}`},deps:[]};function Ed(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _C=new Q("Platform Initializer"),wd=new Q("Platform ID"),CC=new Q("appBootstrapListener");let ja=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();const Qn=new Q("LocaleId"),vC=new Q("DefaultCurrencyCode");class PR{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}const Id=function(t){return new ld(t)},VR=Id,kR=function(t){return Promise.resolve(Id(t))},DC=function(t){const e=Id(t),r=an(vt(t).declarations).reduce((o,i)=>{const s=Ke(i);return s&&o.push(new H_(s)),o},[]);return new PR(e,r)},LR=DC,jR=function(t){return Promise.resolve(DC(t))};let Dr=(()=>{class t{constructor(){this.compileModuleSync=VR,this.compileModuleAsync=kR,this.compileModuleAndAllComponentsSync=LR,this.compileModuleAndAllComponentsAsync=jR}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();const HR=(()=>Promise.resolve(0))();function Md(t){"undefined"==typeof Zone?HR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ee{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let t=X.requestAnimationFrame,e=X.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(X,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sd(t),t.isCheckStableRunning=!0,Ad(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sd(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return bC(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),EC(t)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return bC(t),n.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),EC(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Sd(t),Ad(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ee.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ee.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,GR,Aa,Aa);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const GR={};function Ad(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sd(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function bC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function EC(t){t._nesting--,Ad(t)}class zR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let Td=(()=>{class t{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:()=>{Ee.assertNotInAngularZone(),Md(()=>{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())Md(()=>{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,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!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,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(M(Ee))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})(),wC=(()=>{class t{constructor(){this._applications=new Map,xd.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 xd.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();class QR{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let xd=new QR,IC=!0,MC=!1;let Qt;const SC=new Q("AllowMultipleToken");class Rd{constructor(e,n){this.name=e,this.token=n}}function TC(t,e,n=[]){const r=`Platform: ${e}`,o=new Q(r);return(i=[])=>{let s=xC();if(!s||s.injector.get(SC,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:vi,useValue:"platform"});!function(t){if(Qt&&!Qt.destroyed&&!Qt.injector.get(SC,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Qt=t.get(RC);const e=t.get(_C,null);e&&e.forEach(n=>n())}(te.create({providers:a,name:r}))}return function(t){const e=xC();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function xC(){return Qt&&!Qt.destroyed?Qt:null}let RC=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(t,e){let n;return n="noop"===t?new zR:("zone.js"===t?void 0:t)||new Ee({enableLongStackTrace:(MC=!0,IC),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:Ee,useValue:a}];return a.run(()=>{const u=te.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(pr,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{Nd(this._modules,c),f.unsubscribe()})}),function(t,e,n){try{const r=n();return Mi(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(To);return f.runInitializers(),f.donePromise.then(()=>(jc(c.injector.get(Qn,ba)||ba),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=NC({},r);return function(t,e,n){const r=new ld(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(xo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${$(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);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 Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(M(te))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();function NC(t,e){return Array.isArray(e)?e.reduce(NC,t):Object.assign(Object.assign({},t),e)}let xo=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,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 a=new ce(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new ce(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ee.assertNotInAngularZone(),Md(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Ee.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return Is(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof ce?t[0]:Qo(e)(Kl(t,n))}(a,l.pipe(t=>Yl()(function(t,e){return function(r){let o;o="function"==typeof t?t:function(){return t};const i=Object.create(r,uE);return i.source=r,i.subjectFactory=o,i}}(pE)(t))))}bootstrap(n,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let o;o=n instanceof s_?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(t){return t.isBoundToModule}(o)?void 0:this._injector.get(hn),a=o.create(te.NULL,[],r||o.selector,i),l=a.location.nativeElement,u=a.injector.get(Td,null),c=u&&a.injector.get(wC);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),Nd(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");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;Nd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(CC,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(M(Ee),M(te),M(pr),M(_r),M(To))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();function Nd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ua{}class u1{}const c1={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let d1=(()=>{class t{constructor(n,r){this._compiler=n,this._config=r||c1}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,o]=n.split("#");return void 0===o&&(o="default"),qo(255)(r).then(i=>i[o]).then(i=>VC(i,r,o)).then(i=>this._compiler.compileModuleAsync(i))}loadFactory(n){let[r,o]=n.split("#"),i="NgFactory";return void 0===o&&(o="default",i=""),qo(255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[o+i]).then(s=>VC(s,r,o))}}return t.\u0275fac=function(n){return new(n||t)(M(Dr),M(u1,8))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();function VC(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const D1=TC(null,"core",[{provide:wd,useValue:"unknown"},{provide:RC,deps:[te]},{provide:wC,deps:[]},{provide:ja,deps:[]}]),M1=[{provide:xo,useClass:xo,deps:[Ee,te,pr,_r,To]},{provide:Mx,deps:[Ee],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:To,useClass:To,deps:[[new it,qi]]},{provide:Dr,useClass:Dr,deps:[]},FR,{provide:Fi,useFactory:function(){return vT},deps:[]},{provide:bo,useFactory:function(){return DT},deps:[]},{provide:Qn,useFactory:function(t){return jc(t=t||"undefined"!=typeof $localize&&$localize.locale||ba),t},deps:[[new Kr(Qn),new it,new Gn]]},{provide:vC,useValue:"USD"}];let S1=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(M(xo))},t.\u0275mod=Pt({type:t}),t.\u0275inj=ct({providers:M1}),t})(),Za=null;function pn(){return Za}const je=new Q("DocumentToken");let wr=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=G({factory:AN,token:t,providedIn:"platform"}),t})();function AN(){return M(sv)}const SN=new Q("Location Initialized");let sv=(()=>{class t extends wr{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return pn().getBaseHref(this._doc)}onPopState(n){const r=pn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=pn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this.location.pathname=n}pushState(n,r,o){av()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){av()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(M(je))},t.\u0275prov=G({factory:TN,token:t,providedIn:"platform"}),t})();function av(){return!!window.history.pushState}function TN(){return new sv(M(je))}function zd(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function lv(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Rn(t){return t&&"?"!==t[0]?"?"+t:t}let Fo=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=G({factory:xN,token:t,providedIn:"root"}),t})();function xN(t){const e=M(je).location;return new uv(M(wr),e&&e.origin||"")}const Qd=new Q("appBaseHref");let uv=(()=>{class t extends Fo{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return zd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Rn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Rn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Rn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(M(wr),M(Qd,8))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})(),RN=(()=>{class t extends Fo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=zd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Rn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Rn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(M(wr),M(Qd,8))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})(),Ja=(()=>{class t{constructor(n,r){this._subject=new xe,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=lv(cv(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Rn(r))}normalize(n){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,cv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rn(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rn(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.\u0275fac=function(n){return new(n||t)(M(Fo),M(wr))},t.normalizeQueryParams=Rn,t.joinWithSlash=zd,t.stripTrailingSlash=lv,t.\u0275prov=G({factory:NN,token:t,providedIn:"root"}),t})();function NN(){return new Ja(M(Fo),M(wr))}function cv(t){return t.replace(/\/index.html$/,"")}var we=(()=>((we=we||{})[we.Zero=0]="Zero",we[we.One=1]="One",we[we.Two=2]="Two",we[we.Few=3]="Few",we[we.Many=4]="Many",we[we.Other=5]="Other",we))();const BN=function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Oy(e);if(n)return n;const r=e.split("-")[0];if(n=Oy(r),n)return n;if("en"===r)return JA;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[w.PluralCase]};class ll{}let gF=(()=>{class t extends ll{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(BN(r||this.locale)(n)){case we.Zero:return"zero";case we.One:return"one";case we.Two:return"two";case we.Few:return"few";case we.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(M(Qn))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})(),KF=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Pt({type:t}),t.\u0275inj=ct({providers:[{provide:ll,useClass:gF}]}),t})();let wv=(()=>{class t{}return t.\u0275prov=G({token:t,providedIn:"root",factory:()=>new XF(M(je),window)}),t})();class XF{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Iv(this.window.history)||Iv(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Iv(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class lf extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){Za||(Za=t)}(new lf)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=(es=es||document.querySelector("base"),es?es.getAttribute("href"):null);return null==n?null:function(t){ul=ul||document.createElement("a"),ul.setAttribute("href",t);const e=ul.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){es=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,e)}}let ul,es=null;const Mv=new Q("TRANSITION_ID"),sO=[{provide:qi,useFactory:function(t,e,n){return()=>{n.get(To).donePromise.then(()=>{const r=pn(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i<o.length;i++)r.remove(o[i])})}},deps:[Mv,je,te],multi:!0}];class uf{static init(){!function(t){xd=t}(new uf)}addToWindow(e){X.getAngularTestability=(r,o=!0)=>{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},X.getAllAngularTestabilities=()=>e.getAllTestabilities(),X.getAllAngularRootElements=()=>e.getAllRootElements(),X.frameworkStabilizers||(X.frameworkStabilizers=[]),X.frameworkStabilizers.push(r=>{const o=X.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?pn().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let aO=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();const ts=new Q("EventManagerPlugins");let dl=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i<o.length;i++){const s=o[i];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(M(ts),M(Ee))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();class cf{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const o=pn().getGlobalEventTarget(this._doc,e);if(!o)throw new Error(`Unsupported event target ${o} for event ${n}`);return this.addEventListener(o,n,r)}}let Sv=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})(),ns=(()=>{class t extends Sv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(Tv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Tv))}}return t.\u0275fac=function(n){return new(n||t)(M(je))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();function Tv(t){pn().remove(t)}const df={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/"},ff=/%COMP%/g;function fl(t,e,n){for(let r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?fl(t,o,n):(o=o.replace(ff,t),n.push(o))}return n}function Nv(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let hf=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new pf(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Me.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new bO(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Me.ShadowDom:return new EO(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=fl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(M(dl),M(ns),M(zi))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();class pf{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,n){return n?document.createElementNS(df[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=df[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=df[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(gt.DashCase|gt.Important)?e.style.setProperty(n,r,o>.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r>.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,Nv(r)):this.eventManager.addEventListener(e,n,Nv(r))}}class bO extends pf{constructor(e,n,r,o){super(e),this.component=r;const i=fl(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(ff,t)}(o+"-"+r.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(ff,t)}(o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class EO extends pf{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=fl(o.id,o.styles,[]);for(let s=0;s<i.length;s++){const a=document.createElement("style");a.textContent=i[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let wO=(()=>{class t extends cf{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(M(je))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();const Pv=["alt","control","meta","shift"],RO={"\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"},Vv={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"},NO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let FO=(()=>{class t extends cf{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>pn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(Pv.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Vv.hasOwnProperty(e)&&(e=Vv[e]))}return RO[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Pv.forEach(i=>{i!=o&&NO[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return t.\u0275fac=function(n){return new(n||t)(M(je))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();const UO=TC(D1,"browser",[{provide:wd,useValue:"browser"},{provide:_C,useValue:function(){lf.makeCurrent(),uf.init()},multi:!0},{provide:je,useFactory:function(){return function(t){uu=t}(document),document},deps:[]}]),HO=[[],{provide:vi,useValue:"root"},{provide:pr,useFactory:function(){return new pr},deps:[]},{provide:ts,useClass:wO,multi:!0,deps:[je,Ee,wd]},{provide:ts,useClass:FO,multi:!0,deps:[je]},[],{provide:hf,useClass:hf,deps:[dl,ns,zi]},{provide:Sa,useExisting:hf},{provide:Sv,useExisting:ns},{provide:ns,useClass:ns,deps:[je]},{provide:Td,useClass:Td,deps:[Ee]},{provide:dl,useClass:dl,deps:[ts,Ee]},{provide:class{},useClass:aO,deps:[]},[]];let $O=(()=>{class t{constructor(n){if(n)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(n){return{ngModule:t,providers:[{provide:zi,useValue:n.appId},{provide:Mv,useExisting:zi},sO]}}}return t.\u0275fac=function(n){return new(n||t)(M(t,12))},t.\u0275mod=Pt({type:t}),t.\u0275inj=ct({providers:HO,imports:[KF,S1]}),t})();function B(...t){let e=t[t.length-1];return Is(e)?(t.pop(),Wl(t,e)):Kl(t)}"undefined"!=typeof window&&window;class Xt extends Cn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Nr;return this._value}next(e){super.next(this._value=e)}}class ZO extends he{notifyNext(e,n,r,o,i){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class JO extends he{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function XO(t,e,n,r,o=new JO(t,n,r)){if(!o.closed)return e instanceof ce?e.subscribe(o):Gl(e)(o)}const Lv={};class tP{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new nP(e,this.resultSelector))}}class nP extends ZO{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Lv),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r<n;r++)this.add(XO(this,e[r],void 0,r))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,n,r){const o=this.values,s=this.toRespond?o[r]===Lv?--this.toRespond:this.toRespond:0;o[r]=n,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}_tryResultSelector(e){let n;try{n=this.resultSelector.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const hl=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Cf(...t){return Qo(1)(B(...t))}const Oo=new ce(t=>t.complete());function vf(t){return t?function(t){return new ce(e=>t.schedule(()=>e.complete()))}(t):Oo}function jv(t){return new ce(e=>{let n;try{n=t()}catch(o){return void e.error(o)}return(n?ke(n):vf()).subscribe(e)})}function Zn(t,e){return"function"==typeof e?n=>n.pipe(Zn((r,o)=>ke(t(r,o)).pipe(re((i,s)=>e(r,i,o,s))))):n=>n.lift(new iP(t))}class iP{constructor(e){this.project=e}call(e,n){return n.subscribe(new sP(e,this.project))}}class sP extends zl{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new ql(this),o=this.destination;o.add(r),this.innerSubscription=Ql(e,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Bv=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Df(t){return e=>0===t?vf():e.lift(new aP(t))}class aP{constructor(e){if(this.total=e,this.total<0)throw new Bv}call(e,n){return n.subscribe(new lP(e,this.total))}}class lP extends he{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function Uv(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new cP(t,e,n))}}class cP{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new dP(e,this.accumulator,this.seed,this.hasSeed))}}class dP extends he{constructor(e,n,r,o){super(e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function Po(t,e){return function(r){return r.lift(new fP(t,e))}}class fP{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new hP(e,this.predicate,this.thisArg))}}class hP extends he{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}function Ir(t){return function(n){const r=new pP(t),o=n.lift(r);return r.caught=o}}class pP{constructor(e){this.selector=e}call(e,n){return n.subscribe(new gP(e,this.selector,this.caught))}}class gP extends zl{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new ql(this);this.add(r);const o=Ql(n,r);o!==r&&this.add(o)}}}function rs(t,e){return Le(t,e,1)}function bf(t){return function(n){return 0===t?vf():n.lift(new mP(t))}}class mP{constructor(e){if(this.total=e,this.total<0)throw new Bv}call(e,n){return n.subscribe(new yP(e,this.total))}}class yP extends he{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,o=this.count++;n.length<r?n.push(e):n[o%r]=e}_complete(){const e=this.destination;let n=this.count;if(n>0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;i<r;i++){const s=n++%r;e.next(o[s])}}e.complete()}}function Hv(t=vP){return e=>e.lift(new _P(t))}class _P{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new CP(e,this.errorFactory))}}class CP extends he{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function vP(){return new hl}function $v(t=null){return e=>e.lift(new DP(t))}class DP{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new bP(e,this.defaultValue))}}class bP extends he{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Vo(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Po((o,i)=>t(o,i,r)):ws,Df(1),n?$v(e):Hv(()=>new hl))}function Jn(){}function _t(t,e,n){return function(o){return o.lift(new wP(t,e,n))}}class wP{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new IP(e,this.nextOrObserver,this.error,this.complete))}}class IP extends he{constructor(e,n,r,o){super(e),this._tapNext=Jn,this._tapError=Jn,this._tapComplete=Jn,this._tapError=r||Jn,this._tapComplete=o||Jn,_n(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Jn,this._tapError=n.error||Jn,this._tapComplete=n.complete||Jn)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class AP{constructor(e){this.callback=e}call(e,n){return n.subscribe(new SP(e,this.callback))}}class SP extends he{constructor(e,n){super(e),this.add(new me(n))}}class Fn{constructor(e,n){this.id=e,this.url=n}}class Ef extends Fn{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class os extends Fn{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Gv extends Fn{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class TP extends Fn{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class xP extends Fn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RP extends Fn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NP extends Fn{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class FP extends Fn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class OP extends Fn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wv{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qv{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class PP{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VP{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kP{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LP{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zv{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const z="primary";class jP{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function ko(t){return new jP(t)}const Qv="ngNavigationCancelingError";function wf(t){const e=Error("NavigationCancelingError: "+t);return e[Qv]=!0,e}function UP(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=t[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:o}}function gn(t,e){const n=t?Object.keys(t):void 0,r=e?Object.keys(e):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!Kv(t[o],e[o]))return!1;return!0}function Kv(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((o,i)=>r[i]===o)}return t===e}function Yv(t){return Array.prototype.concat.apply([],t)}function Zv(t){return t.length>0?t[t.length-1]:null}function Be(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function mn(t){return Ca(t)?t:Mi(t)?ke(Promise.resolve(t)):B(t)}const GP={exact:function eD(t,e,n){if(!Ar(t.segments,e.segments)||!pl(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!eD(t.children[r],e.children[r],n))return!1;return!0},subset:tD},Jv={exact:function(t,e){return gn(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Kv(t[n],e[n]))},ignored:()=>!0};function Xv(t,e,n){return GP[n.paths](t.root,e.root,n.matrixParams)&&Jv[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function tD(t,e,n){return nD(t,e,e.segments,n)}function nD(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!Ar(o,n)||e.hasChildren()||!pl(o,n,r))}if(t.segments.length===n.length){if(!Ar(t.segments,n)||!pl(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!tD(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(Ar(t.segments,o)&&pl(t.segments,o,r)&&t.children[z])&&nD(t.children[z],e,i,r)}}function pl(t,e,n){return e.every((r,o)=>Jv[n](t[o].parameters,r.parameters))}class Mr{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ko(this.queryParams)),this._queryParamMap}toString(){return KP.serialize(this)}}class Y{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Be(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gl(this)}}class is{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=ko(this.parameters)),this._parameterMap}toString(){return sD(this)}}function Ar(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class If{}class rD{parse(e){const n=new oV(e);return new Mr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){return`${`/${ss(e.root,!0)}`}${function(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${ml(n)}=${ml(o)}`).join("&"):`${ml(n)}=${ml(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${function(t){return encodeURI(t)}(e.fragment)}`:""}`}}const KP=new rD;function gl(t){return t.segments.map(e=>sD(e)).join("/")}function ss(t,e){if(!t.hasChildren())return gl(t);if(e){const n=t.children[z]?ss(t.children[z],!1):"",r=[];return Be(t.children,(o,i)=>{i!==z&&r.push(`${i}:${ss(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(t,e){let n=[];return Be(t.children,(r,o)=>{o===z&&(n=n.concat(e(r,o)))}),Be(t.children,(r,o)=>{o!==z&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===z?[ss(t.children[z],!1)]:[`${o}:${ss(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[z]?`${gl(t)}/${n[0]}`:`${gl(t)}/(${n.join("//")})`}}function oD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ml(t){return oD(t).replace(/%3B/gi,";")}function Mf(t){return oD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yl(t){return decodeURIComponent(t)}function iD(t){return yl(t.replace(/\+/g,"%20"))}function sD(t){return`${Mf(t.path)}${function(t){return Object.keys(t).map(e=>`;${Mf(e)}=${Mf(t[e])}`).join("")}(t.parameters)}`}const XP=/^[^\/()?;=#]+/;function _l(t){const e=t.match(XP);return e?e[0]:""}const eV=/^[^=?&#]+/,nV=/^[^?&#]+/;class oV{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[z]=new Y(e,n)),r}parseSegment(){const e=_l(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new is(yl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=_l(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=_l(this.remaining);o&&(r=o,this.capture(r))}e[yl(n)]=yl(r)}parseQueryParam(e){const n=function(t){const e=t.match(eV);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function(t){const e=t.match(nV);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=iD(n),i=iD(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=_l(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=z);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[z]:new Y([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class aD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=Af(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=Af(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Sf(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Sf(e,this._root).map(n=>n.value)}}function Af(t,e){if(t===e.value)return e;for(const n of e.children){const r=Af(t,n);if(r)return r}return null}function Sf(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Sf(t,n);if(r.length)return r.unshift(e),r}return[]}class On{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function as(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class lD extends aD{constructor(e,n){super(e),this.snapshot=n,Tf(this,e)}toString(){return this.snapshot.toString()}}function uD(t,e){const n=function(t,e){const s=new Cl([],{},{},"",{},z,e,null,t.root,-1,{});return new dD("",new On(s,[]))}(t,e),r=new Xt([new is("",{})]),o=new Xt({}),i=new Xt({}),s=new Xt({}),a=new Xt(""),l=new Lo(r,o,s,a,i,z,e,n.root);return l.snapshot=n.root,new lD(new On(l,[]),n)}class Lo{constructor(e,n,r,o,i,s,a,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=l}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(re(e=>ko(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(re(e=>ko(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cD(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Cl{constructor(e,n,r,o,i,s,a,l,u,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}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=ko(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ko(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dD extends aD{constructor(e,n){super(n),this.url=e,Tf(this,n)}toString(){return fD(this._root)}}function Tf(t,e){e.value._routerState=t,e.children.forEach(n=>Tf(t,n))}function fD(t){const e=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${e}`}function xf(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,gn(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),gn(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!gn(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),gn(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Rf(t,e){return gn(t.params,e.params)&&function(t,e){return Ar(t,e)&&t.every((n,r)=>gn(n.parameters,e[r].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||Rf(t.parent,e.parent))}function vl(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return vl(t,r,o);return vl(t,r)})}(t,e,n);return new On(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return hD(e,s),s}}const r=function(t){return new Lo(new Xt(t.url),new Xt(t.params),new Xt(t.queryParams),new Xt(t.fragment),new Xt(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>vl(t,i));return new On(r,o)}}function hD(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)hD(t.children[n],e.children[n])}function Dl(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ls(t){return"object"==typeof t&&null!=t&&t.outlets}function Nf(t,e,n,r,o){let i={};return r&&Be(r,(s,a)=>{i[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new Mr(n.root===t?e:pD(n.root,t,e),i,o)}function pD(t,e,n){const r={};return Be(t.children,(o,i)=>{r[i]=o===e?n:pD(o,e,n)}),new Y(t.segments,r)}class gD{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Dl(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(ls);if(o&&o!==Zv(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ff{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function mD(t,e,n){if(t||(t=new Y([],{})),0===t.segments.length&&t.hasChildren())return bl(t,e,n);const r=function(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(r>=n.length)return i;const s=t.segments[o],a=n[r];if(ls(a))break;const l=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!_D(l,u,s))return i;r+=2}else{if(!_D(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const i=new Y(t.segments.slice(0,r.pathIndex),{});return i.children[z]=new Y(t.segments.slice(r.pathIndex),t.children),bl(i,0,o)}return r.match&&0===o.length?new Y(t.segments,{}):r.match&&!t.hasChildren()?Of(t,e,n):r.match?bl(t,0,o):Of(t,e,n)}function bl(t,e,n){if(0===n.length)return new Y(t.segments,{});{const r=function(t){return ls(t[0])?t[0].outlets:{[z]:t}}(n),o={};return Be(r,(i,s)=>{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=mD(t.children[s],e,i))}),Be(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new Y(t.segments,o)}}function Of(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o<n.length;){const i=n[o];if(ls(i)){const l=mV(i.outlets);return new Y(r,l)}if(0===o&&Dl(n[0])){r.push(new is(t.segments[e].path,yD(n[0]))),o++;continue}const s=ls(i)?i.outlets[z]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Dl(a)?(r.push(new is(s,yD(a))),o+=2):(r.push(new is(s,{})),o++)}return new Y(r,{})}function mV(t){const e={};return Be(t,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=Of(new Y([],{}),0,n))}),e}function yD(t){const e={};return Be(t,(n,r)=>e[r]=`${n}`),e}function _D(t,e,n){return t==n.path&&gn(e,n.parameters)}class _V{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),xf(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=as(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Be(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet);if(r&&r.outlet){const o=r.outlet.detach(),i=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:i})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=as(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=as(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new LP(i.value.snapshot))}),e.children.length&&this.forwardEvent(new VP(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(xf(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),CD(a.route)}else{const a=function(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=l,s.outlet&&s.outlet.activateWith(o,l),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}function CD(t){xf(t.value),t.children.forEach(CD)}class Pf{constructor(e,n){this.routes=e,this.module=n}}function Xn(t){return"function"==typeof t}function Sr(t){return t instanceof Mr}const us=Symbol("INITIAL_VALUE");function cs(){return Zn(t=>function(...t){let e,n;return Is(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Ds(t[0])&&(t=t[0]),Kl(t,n).lift(new tP(e))}(t.map(e=>e.pipe(Df(1),function(...t){const e=t[t.length-1];return Is(e)?(t.pop(),n=>Cf(t,n,e)):n=>Cf(t,n)}(us)))).pipe(Uv((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==us?o:(i===us&&(r=!0),r||!1!==i&&s!==n.length-1&&!Sr(i)?o:i),e)},us),Po(e=>e!==us),re(e=>Sr(e)?e:!0===e),Df(1)))}let vD=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ln({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&A(0,"router-outlet")},directives:function(){return[Uf]},encapsulation:2}),t})();function DD(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];IV(r,MV(e,r))}}function IV(t,e){t.children&&DD(t.children,e)}function MV(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Vf(t){const e=t.children&&t.children.map(Vf),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==z&&(n.component=vD),n}function Nt(t){return t.outlet||z}function bD(t,e){const n=t.filter(r=>Nt(r)===e);return n.push(...t.filter(r=>Nt(r)!==e)),n}const ED={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function El(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},ED):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||UP)(n,t,e);if(!i)return Object.assign({},ED);const s={};Be(i.posParams,(l,u)=>{s[u]=l.path});const a=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function wl(t,e,n,r,o="corrected"){if(n.length>0&&function(t,e,n){return n.some(r=>Il(t,e,r)&&Nt(r)!==z)}(t,n,r)){const s=new Y(e,function(t,e,n,r){const o={};o[z]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Nt(i)!==z){const s=new Y([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[Nt(i)]=s}return o}(t,e,r,new Y(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(r=>Il(t,e,r))}(t,n,r)){const s=new Y(t.segments,function(t,e,n,r,o,i){const s={};for(const a of r)if(Il(t,n,a)&&!o[Nt(a)]){const l=new Y([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[Nt(a)]=l}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new Y(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Il(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function wD(t,e,n,r){return!!(Nt(t)===r||r!==z&&Il(e,n,t))&&("**"===t.path||El(e,t,n).matched)}function ID(t,e,n){return 0===e.length&&!t.children[n]}class ds{constructor(e){this.segmentGroup=e||null}}class MD{constructor(e){this.urlTree=e}}function Ml(t){return new ce(e=>e.error(new ds(t)))}function AD(t){return new ce(e=>e.error(new MD(t)))}function RV(t){return new ce(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class OV{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(hn)}apply(){const e=wl(this.urlTree.root,[],[],this.config).segmentGroup,n=new Y(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,z).pipe(re(i=>this.createUrlTree(kf(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ir(i=>{if(i instanceof MD)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof ds?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,z).pipe(re(o=>this.createUrlTree(kf(o),e.queryParams,e.fragment))).pipe(Ir(o=>{throw o instanceof ds?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new Y([],{[z]:e}):e;return new Mr(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(re(i=>new Y([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return ke(o).pipe(rs(i=>{const s=r.children[i],a=bD(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(re(l=>({segment:l,outlet:i})))}),Uv((i,s)=>(i[s.outlet]=s.segment,i),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Po((o,i)=>t(o,i,r)):ws,bf(1),n?$v(e):Hv(()=>new hl))}())}expandSegment(e,n,r,o,i,s){return ke(r).pipe(rs(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(Ir(u=>{if(u instanceof ds)return B(null);throw u}))),Vo(a=>!!a),Ir((a,l)=>{if(a instanceof hl||"EmptyError"===a.name){if(ID(n,o,i))return B(new Y([],{}));throw new ds(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return wD(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):Ml(n):Ml(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?AD(i):this.lineralizeSegments(r,i).pipe(Le(s=>{const a=new Y(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:l,lastChild:u,positionalParamSegments:c}=El(n,o,i);if(!a)return Ml(n);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?AD(d):this.lineralizeSegments(o,d).pipe(Le(f=>this.expandSegment(e,n,r,f.concat(i.slice(u)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?B(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(re(f=>(r._loadedConfig=f,new Y(o,{})))):B(new Y(o,{}));const{matched:s,consumedSegments:a,lastChild:l}=El(n,r,o);if(!s)return Ml(n);const u=o.slice(l);return this.getChildConfig(e,r,o).pipe(Le(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=wl(n,a,u,h),g=new Y(p.segments,p.children);if(0===m.length&&g.hasChildren())return this.expandChildren(f,h,g).pipe(re(S=>new Y(a,S)));if(0===h.length&&0===m.length)return B(new Y(a,{}));const _=Nt(r)===i;return this.expandSegment(f,g,h,m,_?z:i,!0).pipe(re(I=>new Y(a.concat(I.segments),I.children)))}))}getChildConfig(e,n,r){return n.children?B(new Pf(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?B(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(Le(o=>o?this.configLoader.load(e.injector,n).pipe(re(i=>(n._loadedConfig=i,i))):function(t){return new ce(e=>e.error(wf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):B(new Pf([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;return o&&0!==o.length?B(o.map(s=>{const a=e.get(s);let l;if(function(t){return t&&Xn(t.canLoad)}(a))l=a.canLoad(n,r);else{if(!Xn(a))throw new Error("Invalid CanLoad guard");l=a(n,r)}return mn(l)})).pipe(cs(),_t(s=>{if(!Sr(s))return;const a=wf(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),re(s=>!0===s)):B(!0)}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return B(r);if(o.numberOfChildren>1||!o.children[z])return RV(e.redirectTo);o=o.children[z]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new Mr(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return Be(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return Be(n.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,r,o)}),new Y(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function kf(t){const e={};for(const r of Object.keys(t.children)){const i=kf(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function(t){if(1===t.numberOfChildren&&t.children[z]){const e=t.children[z];return new Y(t.segments.concat(e.segments),e.children)}return t}(new Y(t.segments,e))}class SD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Al{constructor(e,n){this.component=e,this.route=n}}function kV(t,e,n){const r=t._root;return fs(r,e?e._root:null,n,[r.value])}function Sl(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function fs(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=as(e);return t.children.forEach(s=>{(function(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ar(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ar(t.url,e.url)||!gn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rf(t,e)||!gn(t.queryParams,e.queryParams);case"paramsChange":default:return!Rf(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new SD(r)):(i.data=s.data,i._resolvedData=s._resolvedData),fs(t,e,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Al(a.outlet.component,s))}else s&&hs(e,a,o),o.canActivateChecks.push(new SD(r)),fs(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Be(i,(s,a)=>hs(s,n.getContext(a),o)),o}function hs(t,e,n){const r=as(t),o=t.value;Be(r,(i,s)=>{hs(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new Al(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class YV{}function TD(t){return new ce(e=>e.error(t))}class JV{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=wl(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,z);if(null===n)return null;const r=new Cl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},z,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new On(r,n),i=new dD(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=cD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=bD(e,i),l=this.processSegmentGroup(a,s,i);if(null===l)return null;r.push(...l)}const o=xD(r);return function(t){t.sort((e,n)=>e.value.outlet===z?-1:n.value.outlet===z?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return ID(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!wD(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const h=r.length>0?Zv(r).parameters:{};i=new Cl(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,FD(e),Nt(e),e.component,e,RD(n),ND(n)+r.length,OD(e))}else{const h=El(n,e,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),i=new Cl(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,FD(e),Nt(e),e.component,e,RD(n),ND(n)+s.length,OD(e))}const l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:u,slicedSegments:c}=wl(n,s,a,l.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const h=this.processChildren(l,u);return null===h?null:[new On(i,h)]}if(0===l.length&&0===c.length)return[new On(i,[])];const d=Nt(e)===o,f=this.processSegment(l,u,c,d?z:o);return null===f?null:[new On(i,f)]}}function tk(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function xD(t){const e=[],n=new Set;for(const r of t){if(!tk(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=xD(r.children);e.push(new On(r.value,o))}return e.filter(r=>!n.has(r))}function RD(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ND(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function FD(t){return t.data||{}}function OD(t){return t.resolve||{}}function Lf(t){return Zn(e=>{const n=t(e);return n?ke(n).pipe(re(()=>e)):B(e)})}class uk extends class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const jf=new Q("ROUTES");class PD{constructor(e,n,r,o){this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(re(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new Pf(Yv(s.injector.get(jf,void 0,x.Self|x.Optional)).map(Vf),s)}),Ir(i=>{throw n._loader$=void 0,i}));return n._loader$=new Ih(o,()=>new Cn).pipe(Yl()),n._loader$}loadModuleFactory(e){return"string"==typeof e?ke(this.loader.load(e)):mn(e()).pipe(Le(n=>n instanceof y_?B(n):ke(this.compiler.compileModuleAsync(n))))}}class ck{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new jo,this.attachRef=null}}class jo{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new ck,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}class fk{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function hk(t){throw t}function pk(t,e,n){return e.parse("/")}function VD(t,e){return B(null)}const gk={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mk={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let at=(()=>{class t{constructor(n,r,o,i,s,a,l,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Cn,this.errorHandler=hk,this.malformedUriErrorHandler=pk,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:VD,afterPreactivation:VD},this.urlHandlingStrategy=new fk,this.routeReuseStrategy=new uk,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(hn),this.console=s.get(ja);const f=s.get(Ee);this.isNgZoneEnabled=f instanceof Ee&&Ee.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Mr(new Y([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new PD(a,l,h=>this.triggerEvent(new Wv(h)),h=>this.triggerEvent(new qv(h))),this.routerState=uD(this.currentUrlTree,this.rootComponentType),this.transitions=new Xt({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 n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Po(o=>0!==o.id),re(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Zn(o=>{let i=!1,s=!1;return B(o).pipe(_t(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Zn(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Tl(a.source)&&(this.browserUrlTree=a.extractedUrl),B(a).pipe(Zn(d=>{const f=this.transitions.getValue();return r.next(new Ef(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Oo:Promise.resolve(d)}),function(t,e,n,r){return Zn(o=>function(t,e,n,r,o){return new OV(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(re(i=>Object.assign(Object.assign({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),_t(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(t,e,n,r,o){return Le(i=>function(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new JV(t,e,n,r,o,i).recognize();return null===s?TD(new YV):B(s)}catch(s){return TD(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(re(s=>Object.assign(Object.assign({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),_t(d=>{"eager"===this.urlUpdateStrategy&&(d.extras.skipLocationChange||this.setBrowserUrl(d.urlAfterRedirects,d),this.browserUrlTree=d.urlAfterRedirects);const f=new xP(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:g}=a,_=new Ef(f,this.serializeUrl(h),p,m);r.next(_);const y=uD(h,this.rootComponentType).snapshot;return B(Object.assign(Object.assign({},a),{targetSnapshot:y,urlAfterRedirects:h,extras:Object.assign(Object.assign({},g),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Oo}),Lf(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),_t(a=>{const l=new RP(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),re(a=>Object.assign(Object.assign({},a),{guards:kV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,e){return Le(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?B(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return ke(t).pipe(Le(o=>function(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?B(i.map(a=>{const l=Sl(a,e,o);let u;if(function(t){return t&&Xn(t.canDeactivate)}(l))u=mn(l.canDeactivate(t,e,n,r));else{if(!Xn(l))throw new Error("Invalid CanDeactivate guard");u=mn(l(t,e,n,r))}return u.pipe(Vo())})).pipe(cs()):B(!0)}(o.component,o.route,n,e,r)),Vo(o=>!0!==o,!0))}(s,r,o,t).pipe(Le(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,e,n,r){return ke(e).pipe(rs(o=>Cf(function(t,e){return null!==t&&e&&e(new PP(t)),B(!0)}(o.route.parent,r),function(t,e){return null!==t&&e&&e(new kP(t)),B(!0)}(o.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>jv(()=>B(s.guards.map(l=>{const u=Sl(l,s.node,n);let c;if(function(t){return t&&Xn(t.canActivateChild)}(u))c=mn(u.canActivateChild(r,t));else{if(!Xn(u))throw new Error("Invalid CanActivateChild guard");c=mn(u(r,t))}return c.pipe(Vo())})).pipe(cs())));return B(i).pipe(cs())}(t,o.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?B(r.map(i=>jv(()=>{const s=Sl(i,e,n);let a;if(function(t){return t&&Xn(t.canActivate)}(s))a=mn(s.canActivate(e,t));else{if(!Xn(s))throw new Error("Invalid CanActivate guard");a=mn(s(e,t))}return a.pipe(Vo())}))).pipe(cs()):B(!0)}(t,o.route,n))),Vo(o=>!0!==o,!0))}(r,i,t,e):B(a)),re(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),_t(a=>{if(Sr(a.guardsResult)){const u=wf(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new NP(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Po(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Lf(a=>{if(a.guards.canActivateChecks.length)return B(a).pipe(_t(l=>{const u=new FP(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),Zn(l=>{let u=!1;return B(l).pipe(function(t,e){return Le(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return B(n);let i=0;return ke(o).pipe(rs(s=>function(t,e,n,r){return function(t,e,n,r){const o=Object.keys(t);if(0===o.length)return B({});const i={};return ke(o).pipe(Le(s=>function(t,e,n,r){const o=Sl(t,e,r);return mn(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe(_t(a=>{i[s]=a}))),bf(1),Le(()=>Object.keys(i).length===o.length?B(i):Oo))}(t._resolve,t,e,r).pipe(re(i=>(t._resolvedData=i,t.data=Object.assign(Object.assign({},t.data),cD(t,n).resolve),null)))}(s.route,r,t,e)),_t(()=>i++),bf(1),Le(s=>i===o.length?B(n):Oo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),_t({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),_t(l=>{const u=new OP(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),Lf(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),re(a=>{const l=function(t,e,n){const r=vl(t,e._root,n?n._root:void 0);return new lD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),_t(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>re(r=>(new _V(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),_t({next(){i=!0},complete(){i=!0}}),function(t){return e=>e.lift(new AP(t))}(()=>{var a;if(!i&&!s){const l=`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(o),this.cancelNavigationTransition(o,l)):this.cancelNavigationTransition(o,l)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Ir(a=>{if(s=!0,function(t){return t&&t[Qv]}(a)){const l=Sr(a.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const u=new Gv(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tl(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new TP(o.id,this.serializeUrl(o.extractedUrl),a);r.next(l);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return Oo}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}getTransition(){const n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r=this.extractLocationChangeInfoFromEvent(n);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:o,state:i,urlTree:s}=r,a={replaceUrl:!0};if(i){const l=Object.assign({},i);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(s,o,i,a)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(n){var r;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(r=n.state)||void 0===r?void 0:r.navigationId)?n.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(n,r){if(!n)return!0;const o=r.urlTree.toString()===n.urlTree.toString();return r.transitionId!==n.transitionId||!o||!("hashchange"===r.source&&"popstate"===n.source||"popstate"===r.source&&"hashchange"===n.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){DD(n),this.config=n.map(Vf),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(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=o||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,o){if(0===n.length)return Nf(e.root,e.root,e,r,o);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new gD(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Be(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new gD(n,e,r)}(n);if(i.toRoot())return Nf(e.root,new Y([],{}),e,r,o);const s=function(t,e,n){if(t.isAbsolute)return new Ff(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new Ff(i,i===e.root,0)}const r=Dl(t.commands[0])?0:1;return function(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new Ff(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?bl(s.segmentGroup,s.index,i.commands):mD(s.segmentGroup,s.index,i.commands);return Nf(s.segmentGroup,a,e,r,o)}(u,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Sr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(o){r=this.malformedUriErrorHandler(o,this.urlSerializer,n)}return r}isActive(n,r){let o;if(o=!0===r?Object.assign({},gk):!1===r?Object.assign({},mk):r,Sr(n))return Xv(this.currentUrlTree,n,o);const i=this.parseUrl(n);return Xv(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.keys(n).reduce((r,o)=>{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new os(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var a,l;if(this.disposed)return Promise.resolve(!1);const u=this.getTransition(),c=Tl(r)&&u&&!Tl(u.source),h=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===n.toString();if(c&&h)return Promise.resolve(!0);let p,m,g;s?(p=s.resolve,m=s.reject,g=s.promise):g=new Promise((I,S)=>{p=I,m=S});const _=++this.navigationId;let y;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),y=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):y=0,this.setTransition({id:_,targetPageId:y,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:p,reject:m,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(I=>Promise.reject(I))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new Gv(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){return new(n||t)(M(Ks),M(If),M(jo),M(Ja),M(te),M(Ua),M(Dr),M(void 0))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();function Tl(t){return"imperative"!==t}let xl=(()=>{class t{constructor(n,r,o,i,s){this.router=n,this.route=r,this.commands=[],this.onChanges=new Cn,null==o&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(n){this.onChanges.next(this)}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:[]}onClick(){const n={skipLocationChange:Bo(this.skipLocationChange),replaceUrl:Bo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Bo(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(v(at),v(Lo),oi("tabindex"),v(Sn),v(Oe))},t.\u0275dir=N({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(n,r){1&n&&yt("click",function(){return r.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[He]}),t})(),ps=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=[],this.onChanges=new Cn,this.subscription=n.events.subscribe(i=>{i instanceof os&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:[]}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:Bo(this.skipLocationChange),replaceUrl:Bo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Bo(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(v(at),v(Lo),v(Fo))},t.\u0275dir=N({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&yt("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&(Lc("href",r.href,ju),cn("target",r.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[He]}),t})();function Bo(t){return""===t||!!t}let Bf=(()=>{class t{constructor(n,r,o,i,s,a){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=n.events.subscribe(l=>{l instanceof os&&this.update()})}ngAfterContentInit(){B(this.links.changes,this.linksWithHrefs.changes,B(null)).pipe(Qo()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var n;null===(n=this.linkInputChangesSubscription)||void 0===n||n.unsubscribe();const r=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=ke(r).pipe(Qo()).subscribe(o=>{this.isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){var n;this.routerEventsSubscription.unsubscribe(),null===(n=this.linkInputChangesSubscription)||void 0===n||n.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this.isActive!==n&&(this.isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}))})}isLinkActive(n){const r=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.linkWithHref&&n(this.linkWithHref)||this.links.some(n)||this.linksWithHrefs.some(n)}}return t.\u0275fac=function(n){return new(n||t)(v(at),v(Oe),v(Sn),v(Qc),v(xl,8),v(ps,8))},t.\u0275dir=N({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&(md(o,xl,5),md(o,ps,5)),2&n){let i;gd(i=yd())&&(r.links=i),gd(i=yd())&&(r.linksWithHrefs=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[He]}),t})(),Uf=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new xe,this.deactivateEvents=new xe,this.name=i||z,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.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 n=this.activated;return this.activated=null,this._activatedRoute=null,n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new Ck(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(v(jo),v(Wt),v(_r),oi("name"),v(Qc))},t.\u0275dir=N({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ck{constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===Lo?this.route:e===jo?this.childContexts:this.parent.get(e,n)}}class kD{}class LD{preload(e,n){return B(null)}}let jD=(()=>{class t{constructor(n,r,o,i,s){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=new PD(r,o,u=>n.triggerEvent(new Wv(u)),u=>n.triggerEvent(new qv(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(Po(n=>n instanceof os),rs(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(hn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return ke(o).pipe(Qo(),re(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?B(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Le(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(M(at),M(Ua),M(Dr),M(te),M(kD))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})(),Hf=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Ef?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof os&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof zv&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new zv(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(M(at),M(wv),M(void 0))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();const Tr=new Q("ROUTER_CONFIGURATION"),BD=new Q("ROUTER_FORROOT_GUARD"),Dk=[Ja,{provide:If,useClass:rD},{provide:at,useFactory:function(t,e,n,r,o,i,s,a={},l,u){const c=new at(null,t,e,n,r,o,i,Yv(s));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,c),a.enableTracing&&c.events.subscribe(d=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[If,jo,Ja,te,Ua,Dr,jf,Tr,[class{},new it],[class{},new it]]},jo,{provide:Lo,useFactory:function(t){return t.routerState.root},deps:[at]},{provide:Ua,useClass:d1},jD,LD,class{preload(e,n){return n().pipe(Ir(()=>B(null)))}},{provide:Tr,useValue:{enableTracing:!1}}];function bk(){return new Rd("Router",at)}let UD=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[Dk,HD(n),{provide:BD,useFactory:Ik,deps:[[at,new it,new Gn]]},{provide:Tr,useValue:r||{}},{provide:Fo,useFactory:wk,deps:[wr,[new Kr(Qd),new it],Tr]},{provide:Hf,useFactory:Ek,deps:[at,wv,Tr]},{provide:kD,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:LD},{provide:Rd,multi:!0,useFactory:bk},[$f,{provide:qi,multi:!0,useFactory:Tk,deps:[$f]},{provide:$D,useFactory:xk,deps:[$f]},{provide:CC,multi:!0,useExisting:$D}]]}}static forChild(n){return{ngModule:t,providers:[HD(n)]}}}return t.\u0275fac=function(n){return new(n||t)(M(BD,8),M(at,8))},t.\u0275mod=Pt({type:t}),t.\u0275inj=ct({}),t})();function Ek(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Hf(t,e,n)}function wk(t,e,n={}){return n.useHash?new RN(t,e):new uv(t,e)}function Ik(t){return"guarded"}function HD(t){return[{provide:Aw,multi:!0,useValue:t},{provide:jf,multi:!0,useValue:t}]}let $f=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Cn}appInitializer(){return this.injector.get(SN,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get(at),s=this.injector.get(Tr);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?B(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(Tr),o=this.injector.get(jD),i=this.injector.get(Hf),s=this.injector.get(at),a=this.injector.get(xo);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(M(te))},t.\u0275prov=G({token:t,factory:t.\u0275fac}),t})();function Tk(t){return t.appInitializer.bind(t)}function xk(t){return t.bootstrapListener.bind(t)}const $D=new Q("Router Initializer"),Nk=function(){return["/login"]};let Fk=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ln({type:t,selectors:[["app-buy"]],decls:57,vars:2,consts:[[1,"container-fluid","alert","alert-secondary"],[1,"container"],[1,"row","mt-5"],[1,"col-lg-6","col-md-10","mx-auto"],[1,"card"],["src","./assets/img/isaac-martin-5Tm4YRqnNcM-unsplash.jpg","alt","Card image cap",1,"card-img-top"],[1,"card-title","W-100"],[1,"card-body"],[1,"badge","bg-success"],[2,"color","green","font","bold"],[1,"card-text"],[1,"bi","bi-caret-right-fill"],[1,"bi","bi-backspace-reverse-fill"],["href",""],[1,"bi","bi-bank"],["routerLinkActive","router-link-active",1,"btn","btn-primary","w-100",3,"routerLink"]],template:function(n,r){1&n&&(D(0,"div",0),D(1,"div",1),D(2,"div",2),D(3,"div",3),D(4,"div",4),A(5,"img",5),D(6,"h3",6),O(7,"APPLE iPhone 12 (Blue, 128 GB)"),b(),A(8,"div",7),b(),b(),D(9,"div",3),D(10,"div",4),D(11,"div",7),D(12,"h4"),O(13,"APPLE iPhone 12 (Blue, 128 GB)"),b(),D(14,"span",8),O(15,"4.7"),b(),D(16,"span"),O(17," 1,21,799 Ratings & 8,216 Reviews"),b(),D(18,"div",9),O(19,"Extra \u20b95901 off "),b(),D(20,"h3"),O(21,"\u20b964,999"),b(),D(22,"p",10),A(23,"i",11),O(24," color : grey "),A(25,"br"),A(26,"i",11),O(27," RAM : 6GB "),A(28,"br"),A(29,"i",11),O(30," ROM : 128GB "),A(31,"br"),A(32,"i",11),O(33," Proceser : A13"),b(),D(34,"h5"),O(35,"Available Offer"),b(),A(36,"br"),A(37,"i",12),O(38," Bank Offer5% Unlimited Cashback on Flipkart Axis Bank Credit CardT&C "),A(39,"br"),A(40,"br"),A(41,"i",12),O(42," Special PriceGet extra \u20b95901 off (price inclusive of discount)T&C "),A(43,"br"),A(44,"br"),A(45,"i",12),O(46," Partner OfferGST Invoice Available! Save up to 28% "),D(47,"a",13),O(48,"know more"),b(),A(49,"br"),A(50,"br"),A(51,"i",14),O(52," EMI starting from \u20b92,222/month "),A(53,"br"),A(54,"br"),D(55,"button",15),O(56,"Buy Product"),b(),b(),b(),b(),b(),b(),b()),2&n&&(ua(55),Ii("routerLink",Pa(1,Nk)))},directives:[Bf,xl],styles:[""]}),t})();function Rl(t,e){return new ce(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a<r;a++){const l=ke(t[a]);let u=!1;n.add(l.subscribe({next:c=>{u||(u=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!u)&&(s===r&&n.next(e?e.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}function tb(t){return null!=t}function nb(t){const e=Mi(t)?ke(t):t;return Ca(e),e}function rb(t){let e={};return t.forEach(n=>{e=null!=n?Object.assign(Object.assign({},e),n):e}),0===Object.keys(e).length?null:e}function ob(t,e){return e.map(n=>n(t))}function ib(t){return t.map(e=>function(t){return!t.validate}(e)?e:n=>e.validate(n))}function Wf(t){return null!=t?function(t){if(!t)return null;const e=t.filter(tb);return 0==e.length?null:function(n){return rb(ob(n,e))}}(ib(t)):null}function qf(t){return null!=t?function(t){if(!t)return null;const e=t.filter(tb);return 0==e.length?null:function(n){return function(...t){if(1===t.length){const e=t[0];if(Ds(e))return Rl(e,null);if($l(e)&&Object.getPrototypeOf(e)===Object.prototype){const n=Object.keys(e);return Rl(n.map(r=>e[r]),n)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Rl(t=1===t.length&&Ds(t[0])?t[0]:t,null).pipe(re(n=>e(...n)))}return Rl(t,null)}(ob(n,e).map(nb)).pipe(re(rb))}}(ib(t)):null}function zf(t){return t?Array.isArray(t)?t:[t]:[]}function Nl(t,e){return Array.isArray(t)?t.includes(e):t===e}function db(t,e){const n=zf(e);return zf(t).forEach(o=>{Nl(n,o)||n.push(o)}),n}function fb(t,e){return zf(e).filter(n=>!Nl(t,n))}function Ll(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ms="VALID",jl="INVALID",Uo="PENDING",ys="DISABLED";function Xf(t){return(th(t)?t.validators:t)||null}function _b(t){return Array.isArray(t)?Wf(t):t||null}function eh(t,e){return(th(e)?e.asyncValidators:t)||null}function Cb(t){return Array.isArray(t)?qf(t):t||null}function th(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class nh{constructor(e,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=_b(this._rawValidators),this._composedAsyncValidatorFn=Cb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ms}get invalid(){return this.status===jl}get pending(){return this.status==Uo}get disabled(){return this.status===ys}get enabled(){return this.status!==ys}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=_b(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Cb(e)}addValidators(e){this.setValidators(db(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(db(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(fb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(fb(e,this._rawAsyncValidators))}hasValidator(e){return Nl(this._rawValidators,e)}hasAsyncValidator(e){return Nl(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Uo,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=ys,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=ms,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ms||this.status===Uo)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ys:ms}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Uo,this._hasOwnPendingAsyncValidator=!0;const n=nb(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=r instanceof Ul?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof eL&&r.at(o)||null}),r}(this,e)}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new xe,this.statusChanges=new xe}_calculateStatus(){return this._allControlsDisabled()?ys:this.errors?jl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Uo)?Uo:this._anyControlsHaveStatus(jl)?jl:ms}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){th(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Bl extends nh{constructor(e=null,n,r){super(Xf(n),eh(r,n)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=null,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ll(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ll(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Ul extends nh{constructor(e,n,r){super(Xf(n),eh(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n instanceof Bl?n.value:n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class eL extends nh{constructor(e,n,r){super(Xf(n),eh(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){this._checkAllValuesPresent(e),e.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e instanceof Bl?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const SL=[{path:"",component:(()=>{class t{constructor(){}ngOnInit(){}cart(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ln({type:t,selectors:[["app-site"]],decls:59,vars:0,consts:[[1,"container-fluid","alert","alert-secondary"],["id","carouselExampleIndicators","data-bs-ride","carousel",1,"carousel","slide"],[1,"carousel-indicators"],["type","button","data-bs-target","#carouselExampleIndicators","data-bs-slide-to","0","aria-current","true","aria-label","Slide 1",1,"active"],["type","button","data-bs-target","#carouselExampleIndicators","data-bs-slide-to","1","aria-label","Slide 2"],["type","button","data-bs-target","#carouselExampleIndicators","data-bs-slide-to","2","aria-label","Slide 3"],[1,"carousel-inner",2,"height","550px","width","auto"],[1,"carousel-item","active"],["src","./assets/img/arnel-hasanovic-4oWSXdeAS2g-unsplash.jpg","alt","...",1,"d-block","w-100"],[1,"carousel-item"],["src","./assets/img/blocks-01voTCIdeWw-unsplash.jpg","alt","...",1,"d-block","w-100"],["src","./assets/img/drew-coffman-K1MxhTd6SKo-unsplash.jpg","alt","...",1,"d-block","w-100"],["type","button","data-bs-target","#carouselExampleIndicators","data-bs-slide","prev",1,"carousel-control-prev"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"visually-hidden"],["type","button","data-bs-target","#carouselExampleIndicators","data-bs-slide","next",1,"carousel-control-next"],["aria-hidden","true",1,"carousel-control-next-icon"],[1,"container"],[1,"row"],[1,"col-sm-12"],[1,"card","border-0"],[1,"col-md-6","text-center","mt-5"],["src","./assets/img/iphone-12-mjnm3hn-a-apple-original-imag2k2v6ehvnzfd.jpeg","st","","yle","height: 50vh;","alt","",1,"img-fluid"],[1,"col-sm-6","mt-2"],[1,"col-lg-12","col-md-6","col-lg-3"],[1,"card-title"],[1,"card-text"],[1,"badge","bg-success",2,"font-size","17px"],[2,"font-size","17px"],[1,"bi","bi-caret-right-fill"],["href","#","routerLink","buy",1,"btn","btn-warning",2,"font-size","20px"]],template:function(n,r){1&n&&(D(0,"div",0),D(1,"div",1),D(2,"div",2),A(3,"button",3),A(4,"button",4),A(5,"button",5),b(),D(6,"div",6),D(7,"div",7),A(8,"img",8),b(),D(9,"div",9),A(10,"img",10),b(),D(11,"div",9),A(12,"img",11),b(),b(),D(13,"button",12),A(14,"span",13),D(15,"span",14),O(16,"Previous"),b(),b(),D(17,"button",15),A(18,"span",16),D(19,"span",14),O(20,"Next"),b(),b(),b(),b(),D(21,"div",17),D(22,"div",18),D(23,"div",19),D(24,"div",20),D(25,"div",18),D(26,"div",21),A(27,"img",22),b(),D(28,"div",23),D(29,"div",24),D(30,"h3",25),O(31,"Apple iPhone 8 (64GB) - (Product) RED"),b(),D(32,"h6",26),O(33,"\u20b946,999 \u20b954,900 Save \u20b97,901 (14%)"),b(),D(34,"span",27),O(35,"4.7"),b(),D(36,"span"),O(37," 1,21,799 Ratings & 8,216 Reviews"),b(),D(38,"p",28),A(39,"i",29),O(40," 128 GB ROM "),A(41,"br"),A(42,"i",29),O(43," 15.49 cm (6.1 inch) Super Retina XDR "),A(44,"br"),A(45,"i",29),O(46," 12MP + 12MP | 12MP Front Camera "),A(47,"br"),A(48,"i",29),O(49," All Screen OLED Display "),A(50,"br"),A(51,"i",29),O(52," 12MP TrueDepth Front Camera with "),A(53,"br"),A(54,"i",29),O(55," Brand Warranty for 1 Year"),b(),D(56,"div"),D(57,"a",30),O(58,"Add to Cart"),b(),b(),b(),b(),b(),b(),b(),b(),b())},directives:[ps],styles:[""]}),t})()},{path:"buy",component:Fk},{path:"login",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ln({type:t,selectors:[["app-login"]],decls:16,vars:0,consts:[[1,"container"],[1,"row","mt-5"],[1,"col-sm-6","offset-sm-3"],[1,"card"],[1,"card-header"],[1,"card-body"],["type","text","placeholder","Please Enter Email",1,"form-control"],["type","text","placeholder","Please Enter Password",1,"form-control"],["type","submit",1,"btn","btn-lg","btn-success","w-100"],["href","",1,"nav-link"]],template:function(n,r){1&n&&(D(0,"div",0),D(1,"div",1),D(2,"div",2),D(3,"div",3),D(4,"div",4),O(5,"Login"),b(),D(6,"div",5),D(7,"form"),A(8,"input",6),A(9,"br"),A(10,"input",7),A(11,"br"),D(12,"button",8),O(13,"Login"),b(),D(14,"a",9),O(15,"login with google"),b(),b(),b(),b(),b(),b(),b())},styles:[""]}),t})()},{path:"admin",component:(()=>{class t{constructor(){this.form=new Ul({})}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ln({type:t,selectors:[["app-dashbord"]],decls:25,vars:0,consts:[[1,"contanier"],[1,"row","mt-5"],[1,"col-sm-6","offset-sm-3"],[1,"card"],[1,"card-header","text-center","alert","alert-success"],[1,"card-body"],["formArrayName","input"],[1,"input-group"],["placeholder","Enter Product Name","type","text",1,"form-control"],["placeholder","Enter Product Prize","type","text","name","","id","",1,"form-control"],["placeholder","Enter Discount","type","text","name","","id","",1,"form-control"],[1,"btn","btn-outline-warning","w-100","mt-3"],[1,"btn","btn-outline-danger","mt-3","w-100"],[1,"btn","btn-success","mt-3","w-100"]],template:function(n,r){1&n&&(D(0,"div",0),D(1,"div",1),D(2,"div",2),D(3,"div",3),D(4,"div",4),O(5,"Admin form"),b(),D(6,"div",5),D(7,"form"),D(8,"div",6),D(9,"div",7),A(10,"input",8),A(11,"br"),A(12,"br"),A(13,"input",9),A(14,"br"),A(15,"br"),A(16,"input",10),A(17,"br"),A(18,"br"),D(19,"button",11),O(20,"Add"),b(),D(21,"button",12),O(22,"-"),b(),D(23,"button",13),O(24," \u23e9 Submit"),b(),b(),b(),b(),b(),b(),b(),b(),b())},styles:[""]}),t})()}];let TL=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Pt({type:t}),t.\u0275inj=ct({imports:[[UD.forRoot(SL)],UD]}),t})();const xL=function(){return["/admin"]},RL=function(){return["/login"]};let NL=(()=>{class t{constructor(){this.title="pro"}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ln({type:t,selectors:[["app-root"]],decls:34,vars:4,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light","fixed-top"],[1,"container"],["href","#",1,"navbar-brand"],[1,"bi","bi-apple","display-6"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","mx-auto","mb-2","mb-lg-0"],[1,"nav-item"],["aria-current","page","href","#",1,"nav-link","active"],["routerLinkActive","router-link-active","aria-current","page","href","#",1,"nav-link","active",3,"routerLink"],["routerLinkActive","router-link-active",1,"nav-link",3,"routerLink"],[1,"nav-item","dropdown"],["href","#","id","navbarDropdown","role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","navbarDropdown",1,"dropdown-menu"],["href","#",1,"dropdown-item"],[1,"nav-link","disabled"],[1,"d-flex"],["type","search","placeholder","Search","aria-label","Search",1,"form-control","me-2"],["type","submit",1,"btn","btn-outline-success"]],template:function(n,r){1&n&&(O(0,".\n"),D(1,"nav",0),D(2,"div",1),D(3,"a",2),A(4,"i",3),O(5," iPhone"),b(),D(6,"button",4),A(7,"span",5),b(),D(8,"div",6),D(9,"ul",7),D(10,"li",8),D(11,"a",9),O(12,"Home"),b(),b(),D(13,"li",8),D(14,"a",10),O(15,"Admin"),b(),b(),D(16,"li",8),D(17,"a",11),O(18,"login"),b(),b(),D(19,"li",12),D(20,"a",13),O(21," Dropdown "),b(),D(22,"ul",14),D(23,"li"),D(24,"a",15),O(25,"history"),b(),b(),b(),b(),D(26,"li",8),D(27,"a",16),O(28,"Disabled"),b(),b(),b(),D(29,"form",17),A(30,"input",18),D(31,"button",19),O(32,"Search"),b(),b(),b(),b(),b(),A(33,"router-outlet")),2&n&&(ua(14),Ii("routerLink",Pa(2,xL)),ua(3),Ii("routerLink",Pa(3,RL)))},directives:[ps,Bf,Uf],styles:[""]}),t})(),FL=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Pt({type:t,bootstrap:[NL]}),t.\u0275inj=ct({providers:[],imports:[[$O,TL]]}),t})();(function(){if(MC)throw new Error("Cannot enable prod mode after platform setup.");IC=!1})(),UO().bootstrapModule(FL).catch(t=>console.error(t))}},Wo=>{Wo(Wo.s=117)}]);